api.ts 609 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Immich
  5. * Immich API
  6. *
  7. * The version of the OpenAPI document: 1.89.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 {string}
  445. * @memberof AssetBulkUpdateDto
  446. */
  447. 'dateTimeOriginal'?: string;
  448. /**
  449. *
  450. * @type {Array<string>}
  451. * @memberof AssetBulkUpdateDto
  452. */
  453. 'ids': Array<string>;
  454. /**
  455. *
  456. * @type {boolean}
  457. * @memberof AssetBulkUpdateDto
  458. */
  459. 'isArchived'?: boolean;
  460. /**
  461. *
  462. * @type {boolean}
  463. * @memberof AssetBulkUpdateDto
  464. */
  465. 'isFavorite'?: boolean;
  466. /**
  467. *
  468. * @type {number}
  469. * @memberof AssetBulkUpdateDto
  470. */
  471. 'latitude'?: number;
  472. /**
  473. *
  474. * @type {number}
  475. * @memberof AssetBulkUpdateDto
  476. */
  477. 'longitude'?: number;
  478. /**
  479. *
  480. * @type {boolean}
  481. * @memberof AssetBulkUpdateDto
  482. */
  483. 'removeParent'?: boolean;
  484. /**
  485. *
  486. * @type {string}
  487. * @memberof AssetBulkUpdateDto
  488. */
  489. 'stackParentId'?: string;
  490. }
  491. /**
  492. *
  493. * @export
  494. * @interface AssetBulkUploadCheckDto
  495. */
  496. export interface AssetBulkUploadCheckDto {
  497. /**
  498. *
  499. * @type {Array<AssetBulkUploadCheckItem>}
  500. * @memberof AssetBulkUploadCheckDto
  501. */
  502. 'assets': Array<AssetBulkUploadCheckItem>;
  503. }
  504. /**
  505. *
  506. * @export
  507. * @interface AssetBulkUploadCheckItem
  508. */
  509. export interface AssetBulkUploadCheckItem {
  510. /**
  511. * base64 or hex encoded sha1 hash
  512. * @type {string}
  513. * @memberof AssetBulkUploadCheckItem
  514. */
  515. 'checksum': string;
  516. /**
  517. *
  518. * @type {string}
  519. * @memberof AssetBulkUploadCheckItem
  520. */
  521. 'id': string;
  522. }
  523. /**
  524. *
  525. * @export
  526. * @interface AssetBulkUploadCheckResponseDto
  527. */
  528. export interface AssetBulkUploadCheckResponseDto {
  529. /**
  530. *
  531. * @type {Array<AssetBulkUploadCheckResult>}
  532. * @memberof AssetBulkUploadCheckResponseDto
  533. */
  534. 'results': Array<AssetBulkUploadCheckResult>;
  535. }
  536. /**
  537. *
  538. * @export
  539. * @interface AssetBulkUploadCheckResult
  540. */
  541. export interface AssetBulkUploadCheckResult {
  542. /**
  543. *
  544. * @type {string}
  545. * @memberof AssetBulkUploadCheckResult
  546. */
  547. 'action': AssetBulkUploadCheckResultActionEnum;
  548. /**
  549. *
  550. * @type {string}
  551. * @memberof AssetBulkUploadCheckResult
  552. */
  553. 'assetId'?: string;
  554. /**
  555. *
  556. * @type {string}
  557. * @memberof AssetBulkUploadCheckResult
  558. */
  559. 'id': string;
  560. /**
  561. *
  562. * @type {string}
  563. * @memberof AssetBulkUploadCheckResult
  564. */
  565. 'reason'?: AssetBulkUploadCheckResultReasonEnum;
  566. }
  567. export const AssetBulkUploadCheckResultActionEnum = {
  568. Accept: 'accept',
  569. Reject: 'reject'
  570. } as const;
  571. export type AssetBulkUploadCheckResultActionEnum = typeof AssetBulkUploadCheckResultActionEnum[keyof typeof AssetBulkUploadCheckResultActionEnum];
  572. export const AssetBulkUploadCheckResultReasonEnum = {
  573. Duplicate: 'duplicate',
  574. UnsupportedFormat: 'unsupported-format'
  575. } as const;
  576. export type AssetBulkUploadCheckResultReasonEnum = typeof AssetBulkUploadCheckResultReasonEnum[keyof typeof AssetBulkUploadCheckResultReasonEnum];
  577. /**
  578. *
  579. * @export
  580. * @interface AssetFileUploadResponseDto
  581. */
  582. export interface AssetFileUploadResponseDto {
  583. /**
  584. *
  585. * @type {boolean}
  586. * @memberof AssetFileUploadResponseDto
  587. */
  588. 'duplicate': boolean;
  589. /**
  590. *
  591. * @type {string}
  592. * @memberof AssetFileUploadResponseDto
  593. */
  594. 'id': string;
  595. }
  596. /**
  597. *
  598. * @export
  599. * @interface AssetIdsDto
  600. */
  601. export interface AssetIdsDto {
  602. /**
  603. *
  604. * @type {Array<string>}
  605. * @memberof AssetIdsDto
  606. */
  607. 'assetIds': Array<string>;
  608. }
  609. /**
  610. *
  611. * @export
  612. * @interface AssetIdsResponseDto
  613. */
  614. export interface AssetIdsResponseDto {
  615. /**
  616. *
  617. * @type {string}
  618. * @memberof AssetIdsResponseDto
  619. */
  620. 'assetId': string;
  621. /**
  622. *
  623. * @type {string}
  624. * @memberof AssetIdsResponseDto
  625. */
  626. 'error'?: AssetIdsResponseDtoErrorEnum;
  627. /**
  628. *
  629. * @type {boolean}
  630. * @memberof AssetIdsResponseDto
  631. */
  632. 'success': boolean;
  633. }
  634. export const AssetIdsResponseDtoErrorEnum = {
  635. Duplicate: 'duplicate',
  636. NoPermission: 'no_permission',
  637. NotFound: 'not_found'
  638. } as const;
  639. export type AssetIdsResponseDtoErrorEnum = typeof AssetIdsResponseDtoErrorEnum[keyof typeof AssetIdsResponseDtoErrorEnum];
  640. /**
  641. *
  642. * @export
  643. * @enum {string}
  644. */
  645. export const AssetJobName = {
  646. RegenerateThumbnail: 'regenerate-thumbnail',
  647. RefreshMetadata: 'refresh-metadata',
  648. TranscodeVideo: 'transcode-video'
  649. } as const;
  650. export type AssetJobName = typeof AssetJobName[keyof typeof AssetJobName];
  651. /**
  652. *
  653. * @export
  654. * @interface AssetJobsDto
  655. */
  656. export interface AssetJobsDto {
  657. /**
  658. *
  659. * @type {Array<string>}
  660. * @memberof AssetJobsDto
  661. */
  662. 'assetIds': Array<string>;
  663. /**
  664. *
  665. * @type {AssetJobName}
  666. * @memberof AssetJobsDto
  667. */
  668. 'name': AssetJobName;
  669. }
  670. /**
  671. *
  672. * @export
  673. * @enum {string}
  674. */
  675. export const AssetOrder = {
  676. Asc: 'asc',
  677. Desc: 'desc'
  678. } as const;
  679. export type AssetOrder = typeof AssetOrder[keyof typeof AssetOrder];
  680. /**
  681. *
  682. * @export
  683. * @interface AssetResponseDto
  684. */
  685. export interface AssetResponseDto {
  686. /**
  687. * base64 encoded sha1 hash
  688. * @type {string}
  689. * @memberof AssetResponseDto
  690. */
  691. 'checksum': string;
  692. /**
  693. *
  694. * @type {string}
  695. * @memberof AssetResponseDto
  696. */
  697. 'deviceAssetId': string;
  698. /**
  699. *
  700. * @type {string}
  701. * @memberof AssetResponseDto
  702. */
  703. 'deviceId': string;
  704. /**
  705. *
  706. * @type {string}
  707. * @memberof AssetResponseDto
  708. */
  709. 'duration': string;
  710. /**
  711. *
  712. * @type {ExifResponseDto}
  713. * @memberof AssetResponseDto
  714. */
  715. 'exifInfo'?: ExifResponseDto;
  716. /**
  717. *
  718. * @type {string}
  719. * @memberof AssetResponseDto
  720. */
  721. 'fileCreatedAt': string;
  722. /**
  723. *
  724. * @type {string}
  725. * @memberof AssetResponseDto
  726. */
  727. 'fileModifiedAt': string;
  728. /**
  729. *
  730. * @type {boolean}
  731. * @memberof AssetResponseDto
  732. */
  733. 'hasMetadata': boolean;
  734. /**
  735. *
  736. * @type {string}
  737. * @memberof AssetResponseDto
  738. */
  739. 'id': string;
  740. /**
  741. *
  742. * @type {boolean}
  743. * @memberof AssetResponseDto
  744. */
  745. 'isArchived': boolean;
  746. /**
  747. *
  748. * @type {boolean}
  749. * @memberof AssetResponseDto
  750. */
  751. 'isExternal': boolean;
  752. /**
  753. *
  754. * @type {boolean}
  755. * @memberof AssetResponseDto
  756. */
  757. 'isFavorite': boolean;
  758. /**
  759. *
  760. * @type {boolean}
  761. * @memberof AssetResponseDto
  762. */
  763. 'isOffline': boolean;
  764. /**
  765. *
  766. * @type {boolean}
  767. * @memberof AssetResponseDto
  768. */
  769. 'isReadOnly': boolean;
  770. /**
  771. *
  772. * @type {boolean}
  773. * @memberof AssetResponseDto
  774. */
  775. 'isTrashed': boolean;
  776. /**
  777. *
  778. * @type {string}
  779. * @memberof AssetResponseDto
  780. */
  781. 'libraryId': string;
  782. /**
  783. *
  784. * @type {string}
  785. * @memberof AssetResponseDto
  786. */
  787. 'livePhotoVideoId'?: string | null;
  788. /**
  789. *
  790. * @type {string}
  791. * @memberof AssetResponseDto
  792. */
  793. 'localDateTime': string;
  794. /**
  795. *
  796. * @type {string}
  797. * @memberof AssetResponseDto
  798. */
  799. 'originalFileName': string;
  800. /**
  801. *
  802. * @type {string}
  803. * @memberof AssetResponseDto
  804. */
  805. 'originalPath': string;
  806. /**
  807. *
  808. * @type {UserResponseDto}
  809. * @memberof AssetResponseDto
  810. */
  811. 'owner'?: UserResponseDto;
  812. /**
  813. *
  814. * @type {string}
  815. * @memberof AssetResponseDto
  816. */
  817. 'ownerId': string;
  818. /**
  819. *
  820. * @type {Array<PersonResponseDto>}
  821. * @memberof AssetResponseDto
  822. */
  823. 'people'?: Array<PersonResponseDto>;
  824. /**
  825. *
  826. * @type {boolean}
  827. * @memberof AssetResponseDto
  828. */
  829. 'resized': boolean;
  830. /**
  831. *
  832. * @type {SmartInfoResponseDto}
  833. * @memberof AssetResponseDto
  834. */
  835. 'smartInfo'?: SmartInfoResponseDto;
  836. /**
  837. *
  838. * @type {Array<AssetResponseDto>}
  839. * @memberof AssetResponseDto
  840. */
  841. 'stack'?: Array<AssetResponseDto>;
  842. /**
  843. *
  844. * @type {number}
  845. * @memberof AssetResponseDto
  846. */
  847. 'stackCount': number | null;
  848. /**
  849. *
  850. * @type {string}
  851. * @memberof AssetResponseDto
  852. */
  853. 'stackParentId'?: string | null;
  854. /**
  855. *
  856. * @type {Array<TagResponseDto>}
  857. * @memberof AssetResponseDto
  858. */
  859. 'tags'?: Array<TagResponseDto>;
  860. /**
  861. *
  862. * @type {string}
  863. * @memberof AssetResponseDto
  864. */
  865. 'thumbhash': string | null;
  866. /**
  867. *
  868. * @type {AssetTypeEnum}
  869. * @memberof AssetResponseDto
  870. */
  871. 'type': AssetTypeEnum;
  872. /**
  873. *
  874. * @type {string}
  875. * @memberof AssetResponseDto
  876. */
  877. 'updatedAt': string;
  878. }
  879. /**
  880. *
  881. * @export
  882. * @interface AssetStatsResponseDto
  883. */
  884. export interface AssetStatsResponseDto {
  885. /**
  886. *
  887. * @type {number}
  888. * @memberof AssetStatsResponseDto
  889. */
  890. 'images': number;
  891. /**
  892. *
  893. * @type {number}
  894. * @memberof AssetStatsResponseDto
  895. */
  896. 'total': number;
  897. /**
  898. *
  899. * @type {number}
  900. * @memberof AssetStatsResponseDto
  901. */
  902. 'videos': number;
  903. }
  904. /**
  905. *
  906. * @export
  907. * @enum {string}
  908. */
  909. export const AssetTypeEnum = {
  910. Image: 'IMAGE',
  911. Video: 'VIDEO',
  912. Audio: 'AUDIO',
  913. Other: 'OTHER'
  914. } as const;
  915. export type AssetTypeEnum = typeof AssetTypeEnum[keyof typeof AssetTypeEnum];
  916. /**
  917. *
  918. * @export
  919. * @enum {string}
  920. */
  921. export const AudioCodec = {
  922. Mp3: 'mp3',
  923. Aac: 'aac',
  924. Libopus: 'libopus'
  925. } as const;
  926. export type AudioCodec = typeof AudioCodec[keyof typeof AudioCodec];
  927. /**
  928. *
  929. * @export
  930. * @interface AuditDeletesResponseDto
  931. */
  932. export interface AuditDeletesResponseDto {
  933. /**
  934. *
  935. * @type {Array<string>}
  936. * @memberof AuditDeletesResponseDto
  937. */
  938. 'ids': Array<string>;
  939. /**
  940. *
  941. * @type {boolean}
  942. * @memberof AuditDeletesResponseDto
  943. */
  944. 'needsFullSync': boolean;
  945. }
  946. /**
  947. *
  948. * @export
  949. * @interface AuthDeviceResponseDto
  950. */
  951. export interface AuthDeviceResponseDto {
  952. /**
  953. *
  954. * @type {string}
  955. * @memberof AuthDeviceResponseDto
  956. */
  957. 'createdAt': string;
  958. /**
  959. *
  960. * @type {boolean}
  961. * @memberof AuthDeviceResponseDto
  962. */
  963. 'current': boolean;
  964. /**
  965. *
  966. * @type {string}
  967. * @memberof AuthDeviceResponseDto
  968. */
  969. 'deviceOS': string;
  970. /**
  971. *
  972. * @type {string}
  973. * @memberof AuthDeviceResponseDto
  974. */
  975. 'deviceType': string;
  976. /**
  977. *
  978. * @type {string}
  979. * @memberof AuthDeviceResponseDto
  980. */
  981. 'id': string;
  982. /**
  983. *
  984. * @type {string}
  985. * @memberof AuthDeviceResponseDto
  986. */
  987. 'updatedAt': string;
  988. }
  989. /**
  990. *
  991. * @export
  992. * @interface BulkIdResponseDto
  993. */
  994. export interface BulkIdResponseDto {
  995. /**
  996. *
  997. * @type {string}
  998. * @memberof BulkIdResponseDto
  999. */
  1000. 'error'?: BulkIdResponseDtoErrorEnum;
  1001. /**
  1002. *
  1003. * @type {string}
  1004. * @memberof BulkIdResponseDto
  1005. */
  1006. 'id': string;
  1007. /**
  1008. *
  1009. * @type {boolean}
  1010. * @memberof BulkIdResponseDto
  1011. */
  1012. 'success': boolean;
  1013. }
  1014. export const BulkIdResponseDtoErrorEnum = {
  1015. Duplicate: 'duplicate',
  1016. NoPermission: 'no_permission',
  1017. NotFound: 'not_found',
  1018. Unknown: 'unknown'
  1019. } as const;
  1020. export type BulkIdResponseDtoErrorEnum = typeof BulkIdResponseDtoErrorEnum[keyof typeof BulkIdResponseDtoErrorEnum];
  1021. /**
  1022. *
  1023. * @export
  1024. * @interface BulkIdsDto
  1025. */
  1026. export interface BulkIdsDto {
  1027. /**
  1028. *
  1029. * @type {Array<string>}
  1030. * @memberof BulkIdsDto
  1031. */
  1032. 'ids': Array<string>;
  1033. }
  1034. /**
  1035. *
  1036. * @export
  1037. * @interface CLIPConfig
  1038. */
  1039. export interface CLIPConfig {
  1040. /**
  1041. *
  1042. * @type {boolean}
  1043. * @memberof CLIPConfig
  1044. */
  1045. 'enabled': boolean;
  1046. /**
  1047. *
  1048. * @type {CLIPMode}
  1049. * @memberof CLIPConfig
  1050. */
  1051. 'mode'?: CLIPMode;
  1052. /**
  1053. *
  1054. * @type {string}
  1055. * @memberof CLIPConfig
  1056. */
  1057. 'modelName': string;
  1058. /**
  1059. *
  1060. * @type {ModelType}
  1061. * @memberof CLIPConfig
  1062. */
  1063. 'modelType'?: ModelType;
  1064. }
  1065. /**
  1066. *
  1067. * @export
  1068. * @enum {string}
  1069. */
  1070. export const CLIPMode = {
  1071. Vision: 'vision',
  1072. Text: 'text'
  1073. } as const;
  1074. export type CLIPMode = typeof CLIPMode[keyof typeof CLIPMode];
  1075. /**
  1076. *
  1077. * @export
  1078. * @enum {string}
  1079. */
  1080. export const CQMode = {
  1081. Auto: 'auto',
  1082. Cqp: 'cqp',
  1083. Icq: 'icq'
  1084. } as const;
  1085. export type CQMode = typeof CQMode[keyof typeof CQMode];
  1086. /**
  1087. *
  1088. * @export
  1089. * @interface ChangePasswordDto
  1090. */
  1091. export interface ChangePasswordDto {
  1092. /**
  1093. *
  1094. * @type {string}
  1095. * @memberof ChangePasswordDto
  1096. */
  1097. 'newPassword': string;
  1098. /**
  1099. *
  1100. * @type {string}
  1101. * @memberof ChangePasswordDto
  1102. */
  1103. 'password': string;
  1104. }
  1105. /**
  1106. *
  1107. * @export
  1108. * @interface CheckExistingAssetsDto
  1109. */
  1110. export interface CheckExistingAssetsDto {
  1111. /**
  1112. *
  1113. * @type {Array<string>}
  1114. * @memberof CheckExistingAssetsDto
  1115. */
  1116. 'deviceAssetIds': Array<string>;
  1117. /**
  1118. *
  1119. * @type {string}
  1120. * @memberof CheckExistingAssetsDto
  1121. */
  1122. 'deviceId': string;
  1123. }
  1124. /**
  1125. *
  1126. * @export
  1127. * @interface CheckExistingAssetsResponseDto
  1128. */
  1129. export interface CheckExistingAssetsResponseDto {
  1130. /**
  1131. *
  1132. * @type {Array<string>}
  1133. * @memberof CheckExistingAssetsResponseDto
  1134. */
  1135. 'existingIds': Array<string>;
  1136. }
  1137. /**
  1138. *
  1139. * @export
  1140. * @interface ClassificationConfig
  1141. */
  1142. export interface ClassificationConfig {
  1143. /**
  1144. *
  1145. * @type {boolean}
  1146. * @memberof ClassificationConfig
  1147. */
  1148. 'enabled': boolean;
  1149. /**
  1150. *
  1151. * @type {number}
  1152. * @memberof ClassificationConfig
  1153. */
  1154. 'minScore': number;
  1155. /**
  1156. *
  1157. * @type {string}
  1158. * @memberof ClassificationConfig
  1159. */
  1160. 'modelName': string;
  1161. /**
  1162. *
  1163. * @type {ModelType}
  1164. * @memberof ClassificationConfig
  1165. */
  1166. 'modelType'?: ModelType;
  1167. }
  1168. /**
  1169. *
  1170. * @export
  1171. * @enum {string}
  1172. */
  1173. export const Colorspace = {
  1174. Srgb: 'srgb',
  1175. P3: 'p3'
  1176. } as const;
  1177. export type Colorspace = typeof Colorspace[keyof typeof Colorspace];
  1178. /**
  1179. *
  1180. * @export
  1181. * @interface CreateAlbumDto
  1182. */
  1183. export interface CreateAlbumDto {
  1184. /**
  1185. *
  1186. * @type {string}
  1187. * @memberof CreateAlbumDto
  1188. */
  1189. 'albumName': string;
  1190. /**
  1191. *
  1192. * @type {Array<string>}
  1193. * @memberof CreateAlbumDto
  1194. */
  1195. 'assetIds'?: Array<string>;
  1196. /**
  1197. *
  1198. * @type {string}
  1199. * @memberof CreateAlbumDto
  1200. */
  1201. 'description'?: string;
  1202. /**
  1203. *
  1204. * @type {Array<string>}
  1205. * @memberof CreateAlbumDto
  1206. */
  1207. 'sharedWithUserIds'?: Array<string>;
  1208. }
  1209. /**
  1210. *
  1211. * @export
  1212. * @interface CreateLibraryDto
  1213. */
  1214. export interface CreateLibraryDto {
  1215. /**
  1216. *
  1217. * @type {Array<string>}
  1218. * @memberof CreateLibraryDto
  1219. */
  1220. 'exclusionPatterns'?: Array<string>;
  1221. /**
  1222. *
  1223. * @type {Array<string>}
  1224. * @memberof CreateLibraryDto
  1225. */
  1226. 'importPaths'?: Array<string>;
  1227. /**
  1228. *
  1229. * @type {boolean}
  1230. * @memberof CreateLibraryDto
  1231. */
  1232. 'isVisible'?: boolean;
  1233. /**
  1234. *
  1235. * @type {string}
  1236. * @memberof CreateLibraryDto
  1237. */
  1238. 'name'?: string;
  1239. /**
  1240. *
  1241. * @type {LibraryType}
  1242. * @memberof CreateLibraryDto
  1243. */
  1244. 'type': LibraryType;
  1245. }
  1246. /**
  1247. *
  1248. * @export
  1249. * @interface CreateProfileImageResponseDto
  1250. */
  1251. export interface CreateProfileImageResponseDto {
  1252. /**
  1253. *
  1254. * @type {string}
  1255. * @memberof CreateProfileImageResponseDto
  1256. */
  1257. 'profileImagePath': string;
  1258. /**
  1259. *
  1260. * @type {string}
  1261. * @memberof CreateProfileImageResponseDto
  1262. */
  1263. 'userId': string;
  1264. }
  1265. /**
  1266. *
  1267. * @export
  1268. * @interface CreateTagDto
  1269. */
  1270. export interface CreateTagDto {
  1271. /**
  1272. *
  1273. * @type {string}
  1274. * @memberof CreateTagDto
  1275. */
  1276. 'name': string;
  1277. /**
  1278. *
  1279. * @type {TagTypeEnum}
  1280. * @memberof CreateTagDto
  1281. */
  1282. 'type': TagTypeEnum;
  1283. }
  1284. /**
  1285. *
  1286. * @export
  1287. * @interface CreateUserDto
  1288. */
  1289. export interface CreateUserDto {
  1290. /**
  1291. *
  1292. * @type {string}
  1293. * @memberof CreateUserDto
  1294. */
  1295. 'email': string;
  1296. /**
  1297. *
  1298. * @type {string}
  1299. * @memberof CreateUserDto
  1300. */
  1301. 'externalPath'?: string | null;
  1302. /**
  1303. *
  1304. * @type {boolean}
  1305. * @memberof CreateUserDto
  1306. */
  1307. 'memoriesEnabled'?: boolean;
  1308. /**
  1309. *
  1310. * @type {string}
  1311. * @memberof CreateUserDto
  1312. */
  1313. 'name': string;
  1314. /**
  1315. *
  1316. * @type {string}
  1317. * @memberof CreateUserDto
  1318. */
  1319. 'password': string;
  1320. /**
  1321. *
  1322. * @type {string}
  1323. * @memberof CreateUserDto
  1324. */
  1325. 'storageLabel'?: string | null;
  1326. }
  1327. /**
  1328. *
  1329. * @export
  1330. * @interface CuratedLocationsResponseDto
  1331. */
  1332. export interface CuratedLocationsResponseDto {
  1333. /**
  1334. *
  1335. * @type {string}
  1336. * @memberof CuratedLocationsResponseDto
  1337. */
  1338. 'city': string;
  1339. /**
  1340. *
  1341. * @type {string}
  1342. * @memberof CuratedLocationsResponseDto
  1343. */
  1344. 'deviceAssetId': string;
  1345. /**
  1346. *
  1347. * @type {string}
  1348. * @memberof CuratedLocationsResponseDto
  1349. */
  1350. 'deviceId': string;
  1351. /**
  1352. *
  1353. * @type {string}
  1354. * @memberof CuratedLocationsResponseDto
  1355. */
  1356. 'id': string;
  1357. /**
  1358. *
  1359. * @type {string}
  1360. * @memberof CuratedLocationsResponseDto
  1361. */
  1362. 'resizePath': string;
  1363. }
  1364. /**
  1365. *
  1366. * @export
  1367. * @interface CuratedObjectsResponseDto
  1368. */
  1369. export interface CuratedObjectsResponseDto {
  1370. /**
  1371. *
  1372. * @type {string}
  1373. * @memberof CuratedObjectsResponseDto
  1374. */
  1375. 'deviceAssetId': string;
  1376. /**
  1377. *
  1378. * @type {string}
  1379. * @memberof CuratedObjectsResponseDto
  1380. */
  1381. 'deviceId': string;
  1382. /**
  1383. *
  1384. * @type {string}
  1385. * @memberof CuratedObjectsResponseDto
  1386. */
  1387. 'id': string;
  1388. /**
  1389. *
  1390. * @type {string}
  1391. * @memberof CuratedObjectsResponseDto
  1392. */
  1393. 'object': string;
  1394. /**
  1395. *
  1396. * @type {string}
  1397. * @memberof CuratedObjectsResponseDto
  1398. */
  1399. 'resizePath': string;
  1400. }
  1401. /**
  1402. *
  1403. * @export
  1404. * @interface DownloadArchiveInfo
  1405. */
  1406. export interface DownloadArchiveInfo {
  1407. /**
  1408. *
  1409. * @type {Array<string>}
  1410. * @memberof DownloadArchiveInfo
  1411. */
  1412. 'assetIds': Array<string>;
  1413. /**
  1414. *
  1415. * @type {number}
  1416. * @memberof DownloadArchiveInfo
  1417. */
  1418. 'size': number;
  1419. }
  1420. /**
  1421. *
  1422. * @export
  1423. * @interface DownloadInfoDto
  1424. */
  1425. export interface DownloadInfoDto {
  1426. /**
  1427. *
  1428. * @type {string}
  1429. * @memberof DownloadInfoDto
  1430. */
  1431. 'albumId'?: string;
  1432. /**
  1433. *
  1434. * @type {number}
  1435. * @memberof DownloadInfoDto
  1436. */
  1437. 'archiveSize'?: number;
  1438. /**
  1439. *
  1440. * @type {Array<string>}
  1441. * @memberof DownloadInfoDto
  1442. */
  1443. 'assetIds'?: Array<string>;
  1444. /**
  1445. *
  1446. * @type {string}
  1447. * @memberof DownloadInfoDto
  1448. */
  1449. 'userId'?: string;
  1450. }
  1451. /**
  1452. *
  1453. * @export
  1454. * @interface DownloadResponseDto
  1455. */
  1456. export interface DownloadResponseDto {
  1457. /**
  1458. *
  1459. * @type {Array<DownloadArchiveInfo>}
  1460. * @memberof DownloadResponseDto
  1461. */
  1462. 'archives': Array<DownloadArchiveInfo>;
  1463. /**
  1464. *
  1465. * @type {number}
  1466. * @memberof DownloadResponseDto
  1467. */
  1468. 'totalSize': number;
  1469. }
  1470. /**
  1471. *
  1472. * @export
  1473. * @enum {string}
  1474. */
  1475. export const EntityType = {
  1476. Asset: 'ASSET',
  1477. Album: 'ALBUM'
  1478. } as const;
  1479. export type EntityType = typeof EntityType[keyof typeof EntityType];
  1480. /**
  1481. *
  1482. * @export
  1483. * @interface ExifResponseDto
  1484. */
  1485. export interface ExifResponseDto {
  1486. /**
  1487. *
  1488. * @type {string}
  1489. * @memberof ExifResponseDto
  1490. */
  1491. 'city'?: string | null;
  1492. /**
  1493. *
  1494. * @type {string}
  1495. * @memberof ExifResponseDto
  1496. */
  1497. 'country'?: string | null;
  1498. /**
  1499. *
  1500. * @type {string}
  1501. * @memberof ExifResponseDto
  1502. */
  1503. 'dateTimeOriginal'?: string | null;
  1504. /**
  1505. *
  1506. * @type {string}
  1507. * @memberof ExifResponseDto
  1508. */
  1509. 'description'?: string | null;
  1510. /**
  1511. *
  1512. * @type {number}
  1513. * @memberof ExifResponseDto
  1514. */
  1515. 'exifImageHeight'?: number | null;
  1516. /**
  1517. *
  1518. * @type {number}
  1519. * @memberof ExifResponseDto
  1520. */
  1521. 'exifImageWidth'?: number | null;
  1522. /**
  1523. *
  1524. * @type {string}
  1525. * @memberof ExifResponseDto
  1526. */
  1527. 'exposureTime'?: string | null;
  1528. /**
  1529. *
  1530. * @type {number}
  1531. * @memberof ExifResponseDto
  1532. */
  1533. 'fNumber'?: number | null;
  1534. /**
  1535. *
  1536. * @type {number}
  1537. * @memberof ExifResponseDto
  1538. */
  1539. 'fileSizeInByte'?: number | null;
  1540. /**
  1541. *
  1542. * @type {number}
  1543. * @memberof ExifResponseDto
  1544. */
  1545. 'focalLength'?: number | null;
  1546. /**
  1547. *
  1548. * @type {number}
  1549. * @memberof ExifResponseDto
  1550. */
  1551. 'iso'?: number | null;
  1552. /**
  1553. *
  1554. * @type {number}
  1555. * @memberof ExifResponseDto
  1556. */
  1557. 'latitude'?: number | null;
  1558. /**
  1559. *
  1560. * @type {string}
  1561. * @memberof ExifResponseDto
  1562. */
  1563. 'lensModel'?: string | null;
  1564. /**
  1565. *
  1566. * @type {number}
  1567. * @memberof ExifResponseDto
  1568. */
  1569. 'longitude'?: number | null;
  1570. /**
  1571. *
  1572. * @type {string}
  1573. * @memberof ExifResponseDto
  1574. */
  1575. 'make'?: string | null;
  1576. /**
  1577. *
  1578. * @type {string}
  1579. * @memberof ExifResponseDto
  1580. */
  1581. 'model'?: string | null;
  1582. /**
  1583. *
  1584. * @type {string}
  1585. * @memberof ExifResponseDto
  1586. */
  1587. 'modifyDate'?: string | null;
  1588. /**
  1589. *
  1590. * @type {string}
  1591. * @memberof ExifResponseDto
  1592. */
  1593. 'orientation'?: string | null;
  1594. /**
  1595. *
  1596. * @type {string}
  1597. * @memberof ExifResponseDto
  1598. */
  1599. 'projectionType'?: string | null;
  1600. /**
  1601. *
  1602. * @type {string}
  1603. * @memberof ExifResponseDto
  1604. */
  1605. 'state'?: string | null;
  1606. /**
  1607. *
  1608. * @type {string}
  1609. * @memberof ExifResponseDto
  1610. */
  1611. 'timeZone'?: string | null;
  1612. }
  1613. /**
  1614. *
  1615. * @export
  1616. * @interface FileChecksumDto
  1617. */
  1618. export interface FileChecksumDto {
  1619. /**
  1620. *
  1621. * @type {Array<string>}
  1622. * @memberof FileChecksumDto
  1623. */
  1624. 'filenames': Array<string>;
  1625. }
  1626. /**
  1627. *
  1628. * @export
  1629. * @interface FileChecksumResponseDto
  1630. */
  1631. export interface FileChecksumResponseDto {
  1632. /**
  1633. *
  1634. * @type {string}
  1635. * @memberof FileChecksumResponseDto
  1636. */
  1637. 'checksum': string;
  1638. /**
  1639. *
  1640. * @type {string}
  1641. * @memberof FileChecksumResponseDto
  1642. */
  1643. 'filename': string;
  1644. }
  1645. /**
  1646. *
  1647. * @export
  1648. * @interface FileReportDto
  1649. */
  1650. export interface FileReportDto {
  1651. /**
  1652. *
  1653. * @type {Array<string>}
  1654. * @memberof FileReportDto
  1655. */
  1656. 'extras': Array<string>;
  1657. /**
  1658. *
  1659. * @type {Array<FileReportItemDto>}
  1660. * @memberof FileReportDto
  1661. */
  1662. 'orphans': Array<FileReportItemDto>;
  1663. }
  1664. /**
  1665. *
  1666. * @export
  1667. * @interface FileReportFixDto
  1668. */
  1669. export interface FileReportFixDto {
  1670. /**
  1671. *
  1672. * @type {Array<FileReportItemDto>}
  1673. * @memberof FileReportFixDto
  1674. */
  1675. 'items': Array<FileReportItemDto>;
  1676. }
  1677. /**
  1678. *
  1679. * @export
  1680. * @interface FileReportItemDto
  1681. */
  1682. export interface FileReportItemDto {
  1683. /**
  1684. *
  1685. * @type {string}
  1686. * @memberof FileReportItemDto
  1687. */
  1688. 'checksum'?: string;
  1689. /**
  1690. *
  1691. * @type {string}
  1692. * @memberof FileReportItemDto
  1693. */
  1694. 'entityId': string;
  1695. /**
  1696. *
  1697. * @type {PathEntityType}
  1698. * @memberof FileReportItemDto
  1699. */
  1700. 'entityType': PathEntityType;
  1701. /**
  1702. *
  1703. * @type {PathType}
  1704. * @memberof FileReportItemDto
  1705. */
  1706. 'pathType': PathType;
  1707. /**
  1708. *
  1709. * @type {string}
  1710. * @memberof FileReportItemDto
  1711. */
  1712. 'pathValue': string;
  1713. }
  1714. /**
  1715. *
  1716. * @export
  1717. * @enum {string}
  1718. */
  1719. export const JobCommand = {
  1720. Start: 'start',
  1721. Pause: 'pause',
  1722. Resume: 'resume',
  1723. Empty: 'empty'
  1724. } as const;
  1725. export type JobCommand = typeof JobCommand[keyof typeof JobCommand];
  1726. /**
  1727. *
  1728. * @export
  1729. * @interface JobCommandDto
  1730. */
  1731. export interface JobCommandDto {
  1732. /**
  1733. *
  1734. * @type {JobCommand}
  1735. * @memberof JobCommandDto
  1736. */
  1737. 'command': JobCommand;
  1738. /**
  1739. *
  1740. * @type {boolean}
  1741. * @memberof JobCommandDto
  1742. */
  1743. 'force': boolean;
  1744. }
  1745. /**
  1746. *
  1747. * @export
  1748. * @interface JobCountsDto
  1749. */
  1750. export interface JobCountsDto {
  1751. /**
  1752. *
  1753. * @type {number}
  1754. * @memberof JobCountsDto
  1755. */
  1756. 'active': number;
  1757. /**
  1758. *
  1759. * @type {number}
  1760. * @memberof JobCountsDto
  1761. */
  1762. 'completed': number;
  1763. /**
  1764. *
  1765. * @type {number}
  1766. * @memberof JobCountsDto
  1767. */
  1768. 'delayed': number;
  1769. /**
  1770. *
  1771. * @type {number}
  1772. * @memberof JobCountsDto
  1773. */
  1774. 'failed': number;
  1775. /**
  1776. *
  1777. * @type {number}
  1778. * @memberof JobCountsDto
  1779. */
  1780. 'paused': number;
  1781. /**
  1782. *
  1783. * @type {number}
  1784. * @memberof JobCountsDto
  1785. */
  1786. 'waiting': number;
  1787. }
  1788. /**
  1789. *
  1790. * @export
  1791. * @enum {string}
  1792. */
  1793. export const JobName = {
  1794. ThumbnailGeneration: 'thumbnailGeneration',
  1795. MetadataExtraction: 'metadataExtraction',
  1796. VideoConversion: 'videoConversion',
  1797. ObjectTagging: 'objectTagging',
  1798. RecognizeFaces: 'recognizeFaces',
  1799. ClipEncoding: 'clipEncoding',
  1800. BackgroundTask: 'backgroundTask',
  1801. StorageTemplateMigration: 'storageTemplateMigration',
  1802. Migration: 'migration',
  1803. Search: 'search',
  1804. Sidecar: 'sidecar',
  1805. Library: 'library'
  1806. } as const;
  1807. export type JobName = typeof JobName[keyof typeof JobName];
  1808. /**
  1809. *
  1810. * @export
  1811. * @interface JobSettingsDto
  1812. */
  1813. export interface JobSettingsDto {
  1814. /**
  1815. *
  1816. * @type {number}
  1817. * @memberof JobSettingsDto
  1818. */
  1819. 'concurrency': number;
  1820. }
  1821. /**
  1822. *
  1823. * @export
  1824. * @interface JobStatusDto
  1825. */
  1826. export interface JobStatusDto {
  1827. /**
  1828. *
  1829. * @type {JobCountsDto}
  1830. * @memberof JobStatusDto
  1831. */
  1832. 'jobCounts': JobCountsDto;
  1833. /**
  1834. *
  1835. * @type {QueueStatusDto}
  1836. * @memberof JobStatusDto
  1837. */
  1838. 'queueStatus': QueueStatusDto;
  1839. }
  1840. /**
  1841. *
  1842. * @export
  1843. * @interface LibraryResponseDto
  1844. */
  1845. export interface LibraryResponseDto {
  1846. /**
  1847. *
  1848. * @type {number}
  1849. * @memberof LibraryResponseDto
  1850. */
  1851. 'assetCount': number;
  1852. /**
  1853. *
  1854. * @type {string}
  1855. * @memberof LibraryResponseDto
  1856. */
  1857. 'createdAt': string;
  1858. /**
  1859. *
  1860. * @type {Array<string>}
  1861. * @memberof LibraryResponseDto
  1862. */
  1863. 'exclusionPatterns': Array<string>;
  1864. /**
  1865. *
  1866. * @type {string}
  1867. * @memberof LibraryResponseDto
  1868. */
  1869. 'id': string;
  1870. /**
  1871. *
  1872. * @type {Array<string>}
  1873. * @memberof LibraryResponseDto
  1874. */
  1875. 'importPaths': Array<string>;
  1876. /**
  1877. *
  1878. * @type {string}
  1879. * @memberof LibraryResponseDto
  1880. */
  1881. 'name': string;
  1882. /**
  1883. *
  1884. * @type {string}
  1885. * @memberof LibraryResponseDto
  1886. */
  1887. 'ownerId': string;
  1888. /**
  1889. *
  1890. * @type {string}
  1891. * @memberof LibraryResponseDto
  1892. */
  1893. 'refreshedAt': string | null;
  1894. /**
  1895. *
  1896. * @type {LibraryType}
  1897. * @memberof LibraryResponseDto
  1898. */
  1899. 'type': LibraryType;
  1900. /**
  1901. *
  1902. * @type {string}
  1903. * @memberof LibraryResponseDto
  1904. */
  1905. 'updatedAt': string;
  1906. }
  1907. /**
  1908. *
  1909. * @export
  1910. * @interface LibraryStatsResponseDto
  1911. */
  1912. export interface LibraryStatsResponseDto {
  1913. /**
  1914. *
  1915. * @type {number}
  1916. * @memberof LibraryStatsResponseDto
  1917. */
  1918. 'photos': number;
  1919. /**
  1920. *
  1921. * @type {number}
  1922. * @memberof LibraryStatsResponseDto
  1923. */
  1924. 'total': number;
  1925. /**
  1926. *
  1927. * @type {number}
  1928. * @memberof LibraryStatsResponseDto
  1929. */
  1930. 'usage': number;
  1931. /**
  1932. *
  1933. * @type {number}
  1934. * @memberof LibraryStatsResponseDto
  1935. */
  1936. 'videos': number;
  1937. }
  1938. /**
  1939. *
  1940. * @export
  1941. * @enum {string}
  1942. */
  1943. export const LibraryType = {
  1944. Upload: 'UPLOAD',
  1945. External: 'EXTERNAL'
  1946. } as const;
  1947. export type LibraryType = typeof LibraryType[keyof typeof LibraryType];
  1948. /**
  1949. *
  1950. * @export
  1951. * @interface LoginCredentialDto
  1952. */
  1953. export interface LoginCredentialDto {
  1954. /**
  1955. *
  1956. * @type {string}
  1957. * @memberof LoginCredentialDto
  1958. */
  1959. 'email': string;
  1960. /**
  1961. *
  1962. * @type {string}
  1963. * @memberof LoginCredentialDto
  1964. */
  1965. 'password': string;
  1966. }
  1967. /**
  1968. *
  1969. * @export
  1970. * @interface LoginResponseDto
  1971. */
  1972. export interface LoginResponseDto {
  1973. /**
  1974. *
  1975. * @type {string}
  1976. * @memberof LoginResponseDto
  1977. */
  1978. 'accessToken': string;
  1979. /**
  1980. *
  1981. * @type {boolean}
  1982. * @memberof LoginResponseDto
  1983. */
  1984. 'isAdmin': boolean;
  1985. /**
  1986. *
  1987. * @type {string}
  1988. * @memberof LoginResponseDto
  1989. */
  1990. 'name': string;
  1991. /**
  1992. *
  1993. * @type {string}
  1994. * @memberof LoginResponseDto
  1995. */
  1996. 'profileImagePath': string;
  1997. /**
  1998. *
  1999. * @type {boolean}
  2000. * @memberof LoginResponseDto
  2001. */
  2002. 'shouldChangePassword': boolean;
  2003. /**
  2004. *
  2005. * @type {string}
  2006. * @memberof LoginResponseDto
  2007. */
  2008. 'userEmail': string;
  2009. /**
  2010. *
  2011. * @type {string}
  2012. * @memberof LoginResponseDto
  2013. */
  2014. 'userId': string;
  2015. }
  2016. /**
  2017. *
  2018. * @export
  2019. * @interface LogoutResponseDto
  2020. */
  2021. export interface LogoutResponseDto {
  2022. /**
  2023. *
  2024. * @type {string}
  2025. * @memberof LogoutResponseDto
  2026. */
  2027. 'redirectUri': string;
  2028. /**
  2029. *
  2030. * @type {boolean}
  2031. * @memberof LogoutResponseDto
  2032. */
  2033. 'successful': boolean;
  2034. }
  2035. /**
  2036. *
  2037. * @export
  2038. * @interface MapMarkerResponseDto
  2039. */
  2040. export interface MapMarkerResponseDto {
  2041. /**
  2042. *
  2043. * @type {string}
  2044. * @memberof MapMarkerResponseDto
  2045. */
  2046. 'id': string;
  2047. /**
  2048. *
  2049. * @type {number}
  2050. * @memberof MapMarkerResponseDto
  2051. */
  2052. 'lat': number;
  2053. /**
  2054. *
  2055. * @type {number}
  2056. * @memberof MapMarkerResponseDto
  2057. */
  2058. 'lon': number;
  2059. }
  2060. /**
  2061. *
  2062. * @export
  2063. * @enum {string}
  2064. */
  2065. export const MapTheme = {
  2066. Light: 'light',
  2067. Dark: 'dark'
  2068. } as const;
  2069. export type MapTheme = typeof MapTheme[keyof typeof MapTheme];
  2070. /**
  2071. *
  2072. * @export
  2073. * @interface MemoryLaneResponseDto
  2074. */
  2075. export interface MemoryLaneResponseDto {
  2076. /**
  2077. *
  2078. * @type {Array<AssetResponseDto>}
  2079. * @memberof MemoryLaneResponseDto
  2080. */
  2081. 'assets': Array<AssetResponseDto>;
  2082. /**
  2083. *
  2084. * @type {string}
  2085. * @memberof MemoryLaneResponseDto
  2086. */
  2087. 'title': string;
  2088. }
  2089. /**
  2090. *
  2091. * @export
  2092. * @interface MergePersonDto
  2093. */
  2094. export interface MergePersonDto {
  2095. /**
  2096. *
  2097. * @type {Array<string>}
  2098. * @memberof MergePersonDto
  2099. */
  2100. 'ids': Array<string>;
  2101. }
  2102. /**
  2103. *
  2104. * @export
  2105. * @enum {string}
  2106. */
  2107. export const ModelType = {
  2108. ImageClassification: 'image-classification',
  2109. FacialRecognition: 'facial-recognition',
  2110. Clip: 'clip'
  2111. } as const;
  2112. export type ModelType = typeof ModelType[keyof typeof ModelType];
  2113. /**
  2114. *
  2115. * @export
  2116. * @interface OAuthAuthorizeResponseDto
  2117. */
  2118. export interface OAuthAuthorizeResponseDto {
  2119. /**
  2120. *
  2121. * @type {string}
  2122. * @memberof OAuthAuthorizeResponseDto
  2123. */
  2124. 'url': string;
  2125. }
  2126. /**
  2127. *
  2128. * @export
  2129. * @interface OAuthCallbackDto
  2130. */
  2131. export interface OAuthCallbackDto {
  2132. /**
  2133. *
  2134. * @type {string}
  2135. * @memberof OAuthCallbackDto
  2136. */
  2137. 'url': string;
  2138. }
  2139. /**
  2140. *
  2141. * @export
  2142. * @interface OAuthConfigDto
  2143. */
  2144. export interface OAuthConfigDto {
  2145. /**
  2146. *
  2147. * @type {string}
  2148. * @memberof OAuthConfigDto
  2149. */
  2150. 'redirectUri': string;
  2151. }
  2152. /**
  2153. *
  2154. * @export
  2155. * @interface OAuthConfigResponseDto
  2156. */
  2157. export interface OAuthConfigResponseDto {
  2158. /**
  2159. *
  2160. * @type {boolean}
  2161. * @memberof OAuthConfigResponseDto
  2162. */
  2163. 'autoLaunch'?: boolean;
  2164. /**
  2165. *
  2166. * @type {string}
  2167. * @memberof OAuthConfigResponseDto
  2168. */
  2169. 'buttonText'?: string;
  2170. /**
  2171. *
  2172. * @type {boolean}
  2173. * @memberof OAuthConfigResponseDto
  2174. */
  2175. 'enabled': boolean;
  2176. /**
  2177. *
  2178. * @type {boolean}
  2179. * @memberof OAuthConfigResponseDto
  2180. */
  2181. 'passwordLoginEnabled': boolean;
  2182. /**
  2183. *
  2184. * @type {string}
  2185. * @memberof OAuthConfigResponseDto
  2186. */
  2187. 'url'?: string;
  2188. }
  2189. /**
  2190. *
  2191. * @export
  2192. * @interface PartnerResponseDto
  2193. */
  2194. export interface PartnerResponseDto {
  2195. /**
  2196. *
  2197. * @type {UserAvatarColor}
  2198. * @memberof PartnerResponseDto
  2199. */
  2200. 'avatarColor': UserAvatarColor;
  2201. /**
  2202. *
  2203. * @type {string}
  2204. * @memberof PartnerResponseDto
  2205. */
  2206. 'createdAt': string;
  2207. /**
  2208. *
  2209. * @type {string}
  2210. * @memberof PartnerResponseDto
  2211. */
  2212. 'deletedAt': string | null;
  2213. /**
  2214. *
  2215. * @type {string}
  2216. * @memberof PartnerResponseDto
  2217. */
  2218. 'email': string;
  2219. /**
  2220. *
  2221. * @type {string}
  2222. * @memberof PartnerResponseDto
  2223. */
  2224. 'externalPath': string | null;
  2225. /**
  2226. *
  2227. * @type {string}
  2228. * @memberof PartnerResponseDto
  2229. */
  2230. 'id': string;
  2231. /**
  2232. *
  2233. * @type {boolean}
  2234. * @memberof PartnerResponseDto
  2235. */
  2236. 'inTimeline'?: boolean;
  2237. /**
  2238. *
  2239. * @type {boolean}
  2240. * @memberof PartnerResponseDto
  2241. */
  2242. 'isAdmin': boolean;
  2243. /**
  2244. *
  2245. * @type {boolean}
  2246. * @memberof PartnerResponseDto
  2247. */
  2248. 'memoriesEnabled'?: boolean;
  2249. /**
  2250. *
  2251. * @type {string}
  2252. * @memberof PartnerResponseDto
  2253. */
  2254. 'name': string;
  2255. /**
  2256. *
  2257. * @type {string}
  2258. * @memberof PartnerResponseDto
  2259. */
  2260. 'oauthId': string;
  2261. /**
  2262. *
  2263. * @type {string}
  2264. * @memberof PartnerResponseDto
  2265. */
  2266. 'profileImagePath': string;
  2267. /**
  2268. *
  2269. * @type {boolean}
  2270. * @memberof PartnerResponseDto
  2271. */
  2272. 'shouldChangePassword': boolean;
  2273. /**
  2274. *
  2275. * @type {string}
  2276. * @memberof PartnerResponseDto
  2277. */
  2278. 'storageLabel': string | null;
  2279. /**
  2280. *
  2281. * @type {string}
  2282. * @memberof PartnerResponseDto
  2283. */
  2284. 'updatedAt': string;
  2285. }
  2286. /**
  2287. *
  2288. * @export
  2289. * @enum {string}
  2290. */
  2291. export const PathEntityType = {
  2292. Asset: 'asset',
  2293. Person: 'person',
  2294. User: 'user'
  2295. } as const;
  2296. export type PathEntityType = typeof PathEntityType[keyof typeof PathEntityType];
  2297. /**
  2298. *
  2299. * @export
  2300. * @enum {string}
  2301. */
  2302. export const PathType = {
  2303. Original: 'original',
  2304. JpegThumbnail: 'jpeg_thumbnail',
  2305. WebpThumbnail: 'webp_thumbnail',
  2306. EncodedVideo: 'encoded_video',
  2307. Sidecar: 'sidecar',
  2308. Face: 'face',
  2309. Profile: 'profile'
  2310. } as const;
  2311. export type PathType = typeof PathType[keyof typeof PathType];
  2312. /**
  2313. *
  2314. * @export
  2315. * @interface PeopleResponseDto
  2316. */
  2317. export interface PeopleResponseDto {
  2318. /**
  2319. *
  2320. * @type {Array<PersonResponseDto>}
  2321. * @memberof PeopleResponseDto
  2322. */
  2323. 'people': Array<PersonResponseDto>;
  2324. /**
  2325. *
  2326. * @type {number}
  2327. * @memberof PeopleResponseDto
  2328. */
  2329. 'total': number;
  2330. /**
  2331. *
  2332. * @type {number}
  2333. * @memberof PeopleResponseDto
  2334. */
  2335. 'visible': number;
  2336. }
  2337. /**
  2338. *
  2339. * @export
  2340. * @interface PeopleUpdateDto
  2341. */
  2342. export interface PeopleUpdateDto {
  2343. /**
  2344. *
  2345. * @type {Array<PeopleUpdateItem>}
  2346. * @memberof PeopleUpdateDto
  2347. */
  2348. 'people': Array<PeopleUpdateItem>;
  2349. }
  2350. /**
  2351. *
  2352. * @export
  2353. * @interface PeopleUpdateItem
  2354. */
  2355. export interface PeopleUpdateItem {
  2356. /**
  2357. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2358. * @type {string}
  2359. * @memberof PeopleUpdateItem
  2360. */
  2361. 'birthDate'?: string | null;
  2362. /**
  2363. * Asset is used to get the feature face thumbnail.
  2364. * @type {string}
  2365. * @memberof PeopleUpdateItem
  2366. */
  2367. 'featureFaceAssetId'?: string;
  2368. /**
  2369. * Person id.
  2370. * @type {string}
  2371. * @memberof PeopleUpdateItem
  2372. */
  2373. 'id': string;
  2374. /**
  2375. * Person visibility
  2376. * @type {boolean}
  2377. * @memberof PeopleUpdateItem
  2378. */
  2379. 'isHidden'?: boolean;
  2380. /**
  2381. * Person name.
  2382. * @type {string}
  2383. * @memberof PeopleUpdateItem
  2384. */
  2385. 'name'?: string;
  2386. }
  2387. /**
  2388. *
  2389. * @export
  2390. * @interface PersonResponseDto
  2391. */
  2392. export interface PersonResponseDto {
  2393. /**
  2394. *
  2395. * @type {string}
  2396. * @memberof PersonResponseDto
  2397. */
  2398. 'birthDate': string | null;
  2399. /**
  2400. *
  2401. * @type {string}
  2402. * @memberof PersonResponseDto
  2403. */
  2404. 'id': string;
  2405. /**
  2406. *
  2407. * @type {boolean}
  2408. * @memberof PersonResponseDto
  2409. */
  2410. 'isHidden': boolean;
  2411. /**
  2412. *
  2413. * @type {string}
  2414. * @memberof PersonResponseDto
  2415. */
  2416. 'name': string;
  2417. /**
  2418. *
  2419. * @type {string}
  2420. * @memberof PersonResponseDto
  2421. */
  2422. 'thumbnailPath': string;
  2423. }
  2424. /**
  2425. *
  2426. * @export
  2427. * @interface PersonStatisticsResponseDto
  2428. */
  2429. export interface PersonStatisticsResponseDto {
  2430. /**
  2431. *
  2432. * @type {number}
  2433. * @memberof PersonStatisticsResponseDto
  2434. */
  2435. 'assets': number;
  2436. }
  2437. /**
  2438. *
  2439. * @export
  2440. * @interface PersonUpdateDto
  2441. */
  2442. export interface PersonUpdateDto {
  2443. /**
  2444. * Person date of birth. Note: the mobile app cannot currently set the birth date to null.
  2445. * @type {string}
  2446. * @memberof PersonUpdateDto
  2447. */
  2448. 'birthDate'?: string | null;
  2449. /**
  2450. * Asset is used to get the feature face thumbnail.
  2451. * @type {string}
  2452. * @memberof PersonUpdateDto
  2453. */
  2454. 'featureFaceAssetId'?: string;
  2455. /**
  2456. * Person visibility
  2457. * @type {boolean}
  2458. * @memberof PersonUpdateDto
  2459. */
  2460. 'isHidden'?: boolean;
  2461. /**
  2462. * Person name.
  2463. * @type {string}
  2464. * @memberof PersonUpdateDto
  2465. */
  2466. 'name'?: string;
  2467. }
  2468. /**
  2469. *
  2470. * @export
  2471. * @interface QueueStatusDto
  2472. */
  2473. export interface QueueStatusDto {
  2474. /**
  2475. *
  2476. * @type {boolean}
  2477. * @memberof QueueStatusDto
  2478. */
  2479. 'isActive': boolean;
  2480. /**
  2481. *
  2482. * @type {boolean}
  2483. * @memberof QueueStatusDto
  2484. */
  2485. 'isPaused': boolean;
  2486. }
  2487. /**
  2488. *
  2489. * @export
  2490. * @enum {string}
  2491. */
  2492. export const ReactionLevel = {
  2493. Album: 'album',
  2494. Asset: 'asset'
  2495. } as const;
  2496. export type ReactionLevel = typeof ReactionLevel[keyof typeof ReactionLevel];
  2497. /**
  2498. *
  2499. * @export
  2500. * @enum {string}
  2501. */
  2502. export const ReactionType = {
  2503. Comment: 'comment',
  2504. Like: 'like'
  2505. } as const;
  2506. export type ReactionType = typeof ReactionType[keyof typeof ReactionType];
  2507. /**
  2508. *
  2509. * @export
  2510. * @interface RecognitionConfig
  2511. */
  2512. export interface RecognitionConfig {
  2513. /**
  2514. *
  2515. * @type {boolean}
  2516. * @memberof RecognitionConfig
  2517. */
  2518. 'enabled': boolean;
  2519. /**
  2520. *
  2521. * @type {number}
  2522. * @memberof RecognitionConfig
  2523. */
  2524. 'maxDistance': number;
  2525. /**
  2526. *
  2527. * @type {number}
  2528. * @memberof RecognitionConfig
  2529. */
  2530. 'minFaces': number;
  2531. /**
  2532. *
  2533. * @type {number}
  2534. * @memberof RecognitionConfig
  2535. */
  2536. 'minScore': number;
  2537. /**
  2538. *
  2539. * @type {string}
  2540. * @memberof RecognitionConfig
  2541. */
  2542. 'modelName': string;
  2543. /**
  2544. *
  2545. * @type {ModelType}
  2546. * @memberof RecognitionConfig
  2547. */
  2548. 'modelType'?: ModelType;
  2549. }
  2550. /**
  2551. *
  2552. * @export
  2553. * @interface ScanLibraryDto
  2554. */
  2555. export interface ScanLibraryDto {
  2556. /**
  2557. *
  2558. * @type {boolean}
  2559. * @memberof ScanLibraryDto
  2560. */
  2561. 'refreshAllFiles'?: boolean;
  2562. /**
  2563. *
  2564. * @type {boolean}
  2565. * @memberof ScanLibraryDto
  2566. */
  2567. 'refreshModifiedFiles'?: boolean;
  2568. }
  2569. /**
  2570. *
  2571. * @export
  2572. * @interface SearchAlbumResponseDto
  2573. */
  2574. export interface SearchAlbumResponseDto {
  2575. /**
  2576. *
  2577. * @type {number}
  2578. * @memberof SearchAlbumResponseDto
  2579. */
  2580. 'count': number;
  2581. /**
  2582. *
  2583. * @type {Array<SearchFacetResponseDto>}
  2584. * @memberof SearchAlbumResponseDto
  2585. */
  2586. 'facets': Array<SearchFacetResponseDto>;
  2587. /**
  2588. *
  2589. * @type {Array<AlbumResponseDto>}
  2590. * @memberof SearchAlbumResponseDto
  2591. */
  2592. 'items': Array<AlbumResponseDto>;
  2593. /**
  2594. *
  2595. * @type {number}
  2596. * @memberof SearchAlbumResponseDto
  2597. */
  2598. 'total': number;
  2599. }
  2600. /**
  2601. *
  2602. * @export
  2603. * @interface SearchAssetResponseDto
  2604. */
  2605. export interface SearchAssetResponseDto {
  2606. /**
  2607. *
  2608. * @type {number}
  2609. * @memberof SearchAssetResponseDto
  2610. */
  2611. 'count': number;
  2612. /**
  2613. *
  2614. * @type {Array<SearchFacetResponseDto>}
  2615. * @memberof SearchAssetResponseDto
  2616. */
  2617. 'facets': Array<SearchFacetResponseDto>;
  2618. /**
  2619. *
  2620. * @type {Array<AssetResponseDto>}
  2621. * @memberof SearchAssetResponseDto
  2622. */
  2623. 'items': Array<AssetResponseDto>;
  2624. /**
  2625. *
  2626. * @type {number}
  2627. * @memberof SearchAssetResponseDto
  2628. */
  2629. 'total': number;
  2630. }
  2631. /**
  2632. *
  2633. * @export
  2634. * @interface SearchExploreItem
  2635. */
  2636. export interface SearchExploreItem {
  2637. /**
  2638. *
  2639. * @type {AssetResponseDto}
  2640. * @memberof SearchExploreItem
  2641. */
  2642. 'data': AssetResponseDto;
  2643. /**
  2644. *
  2645. * @type {string}
  2646. * @memberof SearchExploreItem
  2647. */
  2648. 'value': string;
  2649. }
  2650. /**
  2651. *
  2652. * @export
  2653. * @interface SearchExploreResponseDto
  2654. */
  2655. export interface SearchExploreResponseDto {
  2656. /**
  2657. *
  2658. * @type {string}
  2659. * @memberof SearchExploreResponseDto
  2660. */
  2661. 'fieldName': string;
  2662. /**
  2663. *
  2664. * @type {Array<SearchExploreItem>}
  2665. * @memberof SearchExploreResponseDto
  2666. */
  2667. 'items': Array<SearchExploreItem>;
  2668. }
  2669. /**
  2670. *
  2671. * @export
  2672. * @interface SearchFacetCountResponseDto
  2673. */
  2674. export interface SearchFacetCountResponseDto {
  2675. /**
  2676. *
  2677. * @type {number}
  2678. * @memberof SearchFacetCountResponseDto
  2679. */
  2680. 'count': number;
  2681. /**
  2682. *
  2683. * @type {string}
  2684. * @memberof SearchFacetCountResponseDto
  2685. */
  2686. 'value': string;
  2687. }
  2688. /**
  2689. *
  2690. * @export
  2691. * @interface SearchFacetResponseDto
  2692. */
  2693. export interface SearchFacetResponseDto {
  2694. /**
  2695. *
  2696. * @type {Array<SearchFacetCountResponseDto>}
  2697. * @memberof SearchFacetResponseDto
  2698. */
  2699. 'counts': Array<SearchFacetCountResponseDto>;
  2700. /**
  2701. *
  2702. * @type {string}
  2703. * @memberof SearchFacetResponseDto
  2704. */
  2705. 'fieldName': string;
  2706. }
  2707. /**
  2708. *
  2709. * @export
  2710. * @interface SearchResponseDto
  2711. */
  2712. export interface SearchResponseDto {
  2713. /**
  2714. *
  2715. * @type {SearchAlbumResponseDto}
  2716. * @memberof SearchResponseDto
  2717. */
  2718. 'albums': SearchAlbumResponseDto;
  2719. /**
  2720. *
  2721. * @type {SearchAssetResponseDto}
  2722. * @memberof SearchResponseDto
  2723. */
  2724. 'assets': SearchAssetResponseDto;
  2725. }
  2726. /**
  2727. *
  2728. * @export
  2729. * @interface ServerConfigDto
  2730. */
  2731. export interface ServerConfigDto {
  2732. /**
  2733. *
  2734. * @type {boolean}
  2735. * @memberof ServerConfigDto
  2736. */
  2737. 'isInitialized': boolean;
  2738. /**
  2739. *
  2740. * @type {string}
  2741. * @memberof ServerConfigDto
  2742. */
  2743. 'loginPageMessage': string;
  2744. /**
  2745. *
  2746. * @type {string}
  2747. * @memberof ServerConfigDto
  2748. */
  2749. 'oauthButtonText': string;
  2750. /**
  2751. *
  2752. * @type {number}
  2753. * @memberof ServerConfigDto
  2754. */
  2755. 'trashDays': number;
  2756. }
  2757. /**
  2758. *
  2759. * @export
  2760. * @interface ServerFeaturesDto
  2761. */
  2762. export interface ServerFeaturesDto {
  2763. /**
  2764. *
  2765. * @type {boolean}
  2766. * @memberof ServerFeaturesDto
  2767. */
  2768. 'clipEncode': boolean;
  2769. /**
  2770. *
  2771. * @type {boolean}
  2772. * @memberof ServerFeaturesDto
  2773. */
  2774. 'configFile': boolean;
  2775. /**
  2776. *
  2777. * @type {boolean}
  2778. * @memberof ServerFeaturesDto
  2779. */
  2780. 'facialRecognition': boolean;
  2781. /**
  2782. *
  2783. * @type {boolean}
  2784. * @memberof ServerFeaturesDto
  2785. */
  2786. 'map': boolean;
  2787. /**
  2788. *
  2789. * @type {boolean}
  2790. * @memberof ServerFeaturesDto
  2791. */
  2792. 'oauth': boolean;
  2793. /**
  2794. *
  2795. * @type {boolean}
  2796. * @memberof ServerFeaturesDto
  2797. */
  2798. 'oauthAutoLaunch': boolean;
  2799. /**
  2800. *
  2801. * @type {boolean}
  2802. * @memberof ServerFeaturesDto
  2803. */
  2804. 'passwordLogin': boolean;
  2805. /**
  2806. *
  2807. * @type {boolean}
  2808. * @memberof ServerFeaturesDto
  2809. */
  2810. 'reverseGeocoding': boolean;
  2811. /**
  2812. *
  2813. * @type {boolean}
  2814. * @memberof ServerFeaturesDto
  2815. */
  2816. 'search': boolean;
  2817. /**
  2818. *
  2819. * @type {boolean}
  2820. * @memberof ServerFeaturesDto
  2821. */
  2822. 'sidecar': boolean;
  2823. /**
  2824. *
  2825. * @type {boolean}
  2826. * @memberof ServerFeaturesDto
  2827. */
  2828. 'tagImage': boolean;
  2829. /**
  2830. *
  2831. * @type {boolean}
  2832. * @memberof ServerFeaturesDto
  2833. */
  2834. 'trash': boolean;
  2835. }
  2836. /**
  2837. *
  2838. * @export
  2839. * @interface ServerInfoResponseDto
  2840. */
  2841. export interface ServerInfoResponseDto {
  2842. /**
  2843. *
  2844. * @type {string}
  2845. * @memberof ServerInfoResponseDto
  2846. */
  2847. 'diskAvailable': string;
  2848. /**
  2849. *
  2850. * @type {number}
  2851. * @memberof ServerInfoResponseDto
  2852. */
  2853. 'diskAvailableRaw': number;
  2854. /**
  2855. *
  2856. * @type {string}
  2857. * @memberof ServerInfoResponseDto
  2858. */
  2859. 'diskSize': string;
  2860. /**
  2861. *
  2862. * @type {number}
  2863. * @memberof ServerInfoResponseDto
  2864. */
  2865. 'diskSizeRaw': number;
  2866. /**
  2867. *
  2868. * @type {number}
  2869. * @memberof ServerInfoResponseDto
  2870. */
  2871. 'diskUsagePercentage': number;
  2872. /**
  2873. *
  2874. * @type {string}
  2875. * @memberof ServerInfoResponseDto
  2876. */
  2877. 'diskUse': string;
  2878. /**
  2879. *
  2880. * @type {number}
  2881. * @memberof ServerInfoResponseDto
  2882. */
  2883. 'diskUseRaw': number;
  2884. }
  2885. /**
  2886. *
  2887. * @export
  2888. * @interface ServerMediaTypesResponseDto
  2889. */
  2890. export interface ServerMediaTypesResponseDto {
  2891. /**
  2892. *
  2893. * @type {Array<string>}
  2894. * @memberof ServerMediaTypesResponseDto
  2895. */
  2896. 'image': Array<string>;
  2897. /**
  2898. *
  2899. * @type {Array<string>}
  2900. * @memberof ServerMediaTypesResponseDto
  2901. */
  2902. 'sidecar': Array<string>;
  2903. /**
  2904. *
  2905. * @type {Array<string>}
  2906. * @memberof ServerMediaTypesResponseDto
  2907. */
  2908. 'video': Array<string>;
  2909. }
  2910. /**
  2911. *
  2912. * @export
  2913. * @interface ServerPingResponse
  2914. */
  2915. export interface ServerPingResponse {
  2916. /**
  2917. *
  2918. * @type {string}
  2919. * @memberof ServerPingResponse
  2920. */
  2921. 'res': string;
  2922. }
  2923. /**
  2924. *
  2925. * @export
  2926. * @interface ServerStatsResponseDto
  2927. */
  2928. export interface ServerStatsResponseDto {
  2929. /**
  2930. *
  2931. * @type {number}
  2932. * @memberof ServerStatsResponseDto
  2933. */
  2934. 'photos': number;
  2935. /**
  2936. *
  2937. * @type {number}
  2938. * @memberof ServerStatsResponseDto
  2939. */
  2940. 'usage': number;
  2941. /**
  2942. *
  2943. * @type {Array<UsageByUserDto>}
  2944. * @memberof ServerStatsResponseDto
  2945. */
  2946. 'usageByUser': Array<UsageByUserDto>;
  2947. /**
  2948. *
  2949. * @type {number}
  2950. * @memberof ServerStatsResponseDto
  2951. */
  2952. 'videos': number;
  2953. }
  2954. /**
  2955. *
  2956. * @export
  2957. * @interface ServerThemeDto
  2958. */
  2959. export interface ServerThemeDto {
  2960. /**
  2961. *
  2962. * @type {string}
  2963. * @memberof ServerThemeDto
  2964. */
  2965. 'customCss': string;
  2966. }
  2967. /**
  2968. *
  2969. * @export
  2970. * @interface ServerVersionResponseDto
  2971. */
  2972. export interface ServerVersionResponseDto {
  2973. /**
  2974. *
  2975. * @type {number}
  2976. * @memberof ServerVersionResponseDto
  2977. */
  2978. 'major': number;
  2979. /**
  2980. *
  2981. * @type {number}
  2982. * @memberof ServerVersionResponseDto
  2983. */
  2984. 'minor': number;
  2985. /**
  2986. *
  2987. * @type {number}
  2988. * @memberof ServerVersionResponseDto
  2989. */
  2990. 'patch': number;
  2991. }
  2992. /**
  2993. *
  2994. * @export
  2995. * @interface SharedLinkCreateDto
  2996. */
  2997. export interface SharedLinkCreateDto {
  2998. /**
  2999. *
  3000. * @type {string}
  3001. * @memberof SharedLinkCreateDto
  3002. */
  3003. 'albumId'?: string;
  3004. /**
  3005. *
  3006. * @type {boolean}
  3007. * @memberof SharedLinkCreateDto
  3008. */
  3009. 'allowDownload'?: boolean;
  3010. /**
  3011. *
  3012. * @type {boolean}
  3013. * @memberof SharedLinkCreateDto
  3014. */
  3015. 'allowUpload'?: boolean;
  3016. /**
  3017. *
  3018. * @type {Array<string>}
  3019. * @memberof SharedLinkCreateDto
  3020. */
  3021. 'assetIds'?: Array<string>;
  3022. /**
  3023. *
  3024. * @type {string}
  3025. * @memberof SharedLinkCreateDto
  3026. */
  3027. 'description'?: string;
  3028. /**
  3029. *
  3030. * @type {string}
  3031. * @memberof SharedLinkCreateDto
  3032. */
  3033. 'expiresAt'?: string | null;
  3034. /**
  3035. *
  3036. * @type {string}
  3037. * @memberof SharedLinkCreateDto
  3038. */
  3039. 'password'?: string;
  3040. /**
  3041. *
  3042. * @type {boolean}
  3043. * @memberof SharedLinkCreateDto
  3044. */
  3045. 'showMetadata'?: boolean;
  3046. /**
  3047. *
  3048. * @type {SharedLinkType}
  3049. * @memberof SharedLinkCreateDto
  3050. */
  3051. 'type': SharedLinkType;
  3052. }
  3053. /**
  3054. *
  3055. * @export
  3056. * @interface SharedLinkEditDto
  3057. */
  3058. export interface SharedLinkEditDto {
  3059. /**
  3060. *
  3061. * @type {boolean}
  3062. * @memberof SharedLinkEditDto
  3063. */
  3064. 'allowDownload'?: boolean;
  3065. /**
  3066. *
  3067. * @type {boolean}
  3068. * @memberof SharedLinkEditDto
  3069. */
  3070. 'allowUpload'?: boolean;
  3071. /**
  3072. * 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.
  3073. * @type {boolean}
  3074. * @memberof SharedLinkEditDto
  3075. */
  3076. 'changeExpiryTime'?: boolean;
  3077. /**
  3078. *
  3079. * @type {string}
  3080. * @memberof SharedLinkEditDto
  3081. */
  3082. 'description'?: string;
  3083. /**
  3084. *
  3085. * @type {string}
  3086. * @memberof SharedLinkEditDto
  3087. */
  3088. 'expiresAt'?: string | null;
  3089. /**
  3090. *
  3091. * @type {string}
  3092. * @memberof SharedLinkEditDto
  3093. */
  3094. 'password'?: string;
  3095. /**
  3096. *
  3097. * @type {boolean}
  3098. * @memberof SharedLinkEditDto
  3099. */
  3100. 'showMetadata'?: boolean;
  3101. }
  3102. /**
  3103. *
  3104. * @export
  3105. * @interface SharedLinkResponseDto
  3106. */
  3107. export interface SharedLinkResponseDto {
  3108. /**
  3109. *
  3110. * @type {AlbumResponseDto}
  3111. * @memberof SharedLinkResponseDto
  3112. */
  3113. 'album'?: AlbumResponseDto;
  3114. /**
  3115. *
  3116. * @type {boolean}
  3117. * @memberof SharedLinkResponseDto
  3118. */
  3119. 'allowDownload': boolean;
  3120. /**
  3121. *
  3122. * @type {boolean}
  3123. * @memberof SharedLinkResponseDto
  3124. */
  3125. 'allowUpload': boolean;
  3126. /**
  3127. *
  3128. * @type {Array<AssetResponseDto>}
  3129. * @memberof SharedLinkResponseDto
  3130. */
  3131. 'assets': Array<AssetResponseDto>;
  3132. /**
  3133. *
  3134. * @type {string}
  3135. * @memberof SharedLinkResponseDto
  3136. */
  3137. 'createdAt': string;
  3138. /**
  3139. *
  3140. * @type {string}
  3141. * @memberof SharedLinkResponseDto
  3142. */
  3143. 'description': string | null;
  3144. /**
  3145. *
  3146. * @type {string}
  3147. * @memberof SharedLinkResponseDto
  3148. */
  3149. 'expiresAt': string | null;
  3150. /**
  3151. *
  3152. * @type {string}
  3153. * @memberof SharedLinkResponseDto
  3154. */
  3155. 'id': string;
  3156. /**
  3157. *
  3158. * @type {string}
  3159. * @memberof SharedLinkResponseDto
  3160. */
  3161. 'key': string;
  3162. /**
  3163. *
  3164. * @type {string}
  3165. * @memberof SharedLinkResponseDto
  3166. */
  3167. 'password': string | null;
  3168. /**
  3169. *
  3170. * @type {boolean}
  3171. * @memberof SharedLinkResponseDto
  3172. */
  3173. 'showMetadata': boolean;
  3174. /**
  3175. *
  3176. * @type {string}
  3177. * @memberof SharedLinkResponseDto
  3178. */
  3179. 'token'?: string | null;
  3180. /**
  3181. *
  3182. * @type {SharedLinkType}
  3183. * @memberof SharedLinkResponseDto
  3184. */
  3185. 'type': SharedLinkType;
  3186. /**
  3187. *
  3188. * @type {string}
  3189. * @memberof SharedLinkResponseDto
  3190. */
  3191. 'userId': string;
  3192. }
  3193. /**
  3194. *
  3195. * @export
  3196. * @enum {string}
  3197. */
  3198. export const SharedLinkType = {
  3199. Album: 'ALBUM',
  3200. Individual: 'INDIVIDUAL'
  3201. } as const;
  3202. export type SharedLinkType = typeof SharedLinkType[keyof typeof SharedLinkType];
  3203. /**
  3204. *
  3205. * @export
  3206. * @interface SignUpDto
  3207. */
  3208. export interface SignUpDto {
  3209. /**
  3210. *
  3211. * @type {string}
  3212. * @memberof SignUpDto
  3213. */
  3214. 'email': string;
  3215. /**
  3216. *
  3217. * @type {string}
  3218. * @memberof SignUpDto
  3219. */
  3220. 'name': string;
  3221. /**
  3222. *
  3223. * @type {string}
  3224. * @memberof SignUpDto
  3225. */
  3226. 'password': string;
  3227. }
  3228. /**
  3229. *
  3230. * @export
  3231. * @interface SmartInfoResponseDto
  3232. */
  3233. export interface SmartInfoResponseDto {
  3234. /**
  3235. *
  3236. * @type {Array<string>}
  3237. * @memberof SmartInfoResponseDto
  3238. */
  3239. 'objects'?: Array<string> | null;
  3240. /**
  3241. *
  3242. * @type {Array<string>}
  3243. * @memberof SmartInfoResponseDto
  3244. */
  3245. 'tags'?: Array<string> | null;
  3246. }
  3247. /**
  3248. *
  3249. * @export
  3250. * @interface SystemConfigDto
  3251. */
  3252. export interface SystemConfigDto {
  3253. /**
  3254. *
  3255. * @type {SystemConfigFFmpegDto}
  3256. * @memberof SystemConfigDto
  3257. */
  3258. 'ffmpeg': SystemConfigFFmpegDto;
  3259. /**
  3260. *
  3261. * @type {SystemConfigJobDto}
  3262. * @memberof SystemConfigDto
  3263. */
  3264. 'job': SystemConfigJobDto;
  3265. /**
  3266. *
  3267. * @type {SystemConfigLibraryDto}
  3268. * @memberof SystemConfigDto
  3269. */
  3270. 'library': SystemConfigLibraryDto;
  3271. /**
  3272. *
  3273. * @type {SystemConfigMachineLearningDto}
  3274. * @memberof SystemConfigDto
  3275. */
  3276. 'machineLearning': SystemConfigMachineLearningDto;
  3277. /**
  3278. *
  3279. * @type {SystemConfigMapDto}
  3280. * @memberof SystemConfigDto
  3281. */
  3282. 'map': SystemConfigMapDto;
  3283. /**
  3284. *
  3285. * @type {SystemConfigNewVersionCheckDto}
  3286. * @memberof SystemConfigDto
  3287. */
  3288. 'newVersionCheck': SystemConfigNewVersionCheckDto;
  3289. /**
  3290. *
  3291. * @type {SystemConfigOAuthDto}
  3292. * @memberof SystemConfigDto
  3293. */
  3294. 'oauth': SystemConfigOAuthDto;
  3295. /**
  3296. *
  3297. * @type {SystemConfigPasswordLoginDto}
  3298. * @memberof SystemConfigDto
  3299. */
  3300. 'passwordLogin': SystemConfigPasswordLoginDto;
  3301. /**
  3302. *
  3303. * @type {SystemConfigReverseGeocodingDto}
  3304. * @memberof SystemConfigDto
  3305. */
  3306. 'reverseGeocoding': SystemConfigReverseGeocodingDto;
  3307. /**
  3308. *
  3309. * @type {SystemConfigStorageTemplateDto}
  3310. * @memberof SystemConfigDto
  3311. */
  3312. 'storageTemplate': SystemConfigStorageTemplateDto;
  3313. /**
  3314. *
  3315. * @type {SystemConfigThemeDto}
  3316. * @memberof SystemConfigDto
  3317. */
  3318. 'theme': SystemConfigThemeDto;
  3319. /**
  3320. *
  3321. * @type {SystemConfigThumbnailDto}
  3322. * @memberof SystemConfigDto
  3323. */
  3324. 'thumbnail': SystemConfigThumbnailDto;
  3325. /**
  3326. *
  3327. * @type {SystemConfigTrashDto}
  3328. * @memberof SystemConfigDto
  3329. */
  3330. 'trash': SystemConfigTrashDto;
  3331. }
  3332. /**
  3333. *
  3334. * @export
  3335. * @interface SystemConfigFFmpegDto
  3336. */
  3337. export interface SystemConfigFFmpegDto {
  3338. /**
  3339. *
  3340. * @type {TranscodeHWAccel}
  3341. * @memberof SystemConfigFFmpegDto
  3342. */
  3343. 'accel': TranscodeHWAccel;
  3344. /**
  3345. *
  3346. * @type {number}
  3347. * @memberof SystemConfigFFmpegDto
  3348. */
  3349. 'bframes': number;
  3350. /**
  3351. *
  3352. * @type {CQMode}
  3353. * @memberof SystemConfigFFmpegDto
  3354. */
  3355. 'cqMode': CQMode;
  3356. /**
  3357. *
  3358. * @type {number}
  3359. * @memberof SystemConfigFFmpegDto
  3360. */
  3361. 'crf': number;
  3362. /**
  3363. *
  3364. * @type {number}
  3365. * @memberof SystemConfigFFmpegDto
  3366. */
  3367. 'gopSize': number;
  3368. /**
  3369. *
  3370. * @type {string}
  3371. * @memberof SystemConfigFFmpegDto
  3372. */
  3373. 'maxBitrate': string;
  3374. /**
  3375. *
  3376. * @type {number}
  3377. * @memberof SystemConfigFFmpegDto
  3378. */
  3379. 'npl': number;
  3380. /**
  3381. *
  3382. * @type {string}
  3383. * @memberof SystemConfigFFmpegDto
  3384. */
  3385. 'preset': string;
  3386. /**
  3387. *
  3388. * @type {number}
  3389. * @memberof SystemConfigFFmpegDto
  3390. */
  3391. 'refs': number;
  3392. /**
  3393. *
  3394. * @type {AudioCodec}
  3395. * @memberof SystemConfigFFmpegDto
  3396. */
  3397. 'targetAudioCodec': AudioCodec;
  3398. /**
  3399. *
  3400. * @type {string}
  3401. * @memberof SystemConfigFFmpegDto
  3402. */
  3403. 'targetResolution': string;
  3404. /**
  3405. *
  3406. * @type {VideoCodec}
  3407. * @memberof SystemConfigFFmpegDto
  3408. */
  3409. 'targetVideoCodec': VideoCodec;
  3410. /**
  3411. *
  3412. * @type {boolean}
  3413. * @memberof SystemConfigFFmpegDto
  3414. */
  3415. 'temporalAQ': boolean;
  3416. /**
  3417. *
  3418. * @type {number}
  3419. * @memberof SystemConfigFFmpegDto
  3420. */
  3421. 'threads': number;
  3422. /**
  3423. *
  3424. * @type {ToneMapping}
  3425. * @memberof SystemConfigFFmpegDto
  3426. */
  3427. 'tonemap': ToneMapping;
  3428. /**
  3429. *
  3430. * @type {TranscodePolicy}
  3431. * @memberof SystemConfigFFmpegDto
  3432. */
  3433. 'transcode': TranscodePolicy;
  3434. /**
  3435. *
  3436. * @type {boolean}
  3437. * @memberof SystemConfigFFmpegDto
  3438. */
  3439. 'twoPass': boolean;
  3440. }
  3441. /**
  3442. *
  3443. * @export
  3444. * @interface SystemConfigJobDto
  3445. */
  3446. export interface SystemConfigJobDto {
  3447. /**
  3448. *
  3449. * @type {JobSettingsDto}
  3450. * @memberof SystemConfigJobDto
  3451. */
  3452. 'backgroundTask': JobSettingsDto;
  3453. /**
  3454. *
  3455. * @type {JobSettingsDto}
  3456. * @memberof SystemConfigJobDto
  3457. */
  3458. 'clipEncoding': JobSettingsDto;
  3459. /**
  3460. *
  3461. * @type {JobSettingsDto}
  3462. * @memberof SystemConfigJobDto
  3463. */
  3464. 'library': JobSettingsDto;
  3465. /**
  3466. *
  3467. * @type {JobSettingsDto}
  3468. * @memberof SystemConfigJobDto
  3469. */
  3470. 'metadataExtraction': JobSettingsDto;
  3471. /**
  3472. *
  3473. * @type {JobSettingsDto}
  3474. * @memberof SystemConfigJobDto
  3475. */
  3476. 'migration': JobSettingsDto;
  3477. /**
  3478. *
  3479. * @type {JobSettingsDto}
  3480. * @memberof SystemConfigJobDto
  3481. */
  3482. 'objectTagging': JobSettingsDto;
  3483. /**
  3484. *
  3485. * @type {JobSettingsDto}
  3486. * @memberof SystemConfigJobDto
  3487. */
  3488. 'recognizeFaces': JobSettingsDto;
  3489. /**
  3490. *
  3491. * @type {JobSettingsDto}
  3492. * @memberof SystemConfigJobDto
  3493. */
  3494. 'search': JobSettingsDto;
  3495. /**
  3496. *
  3497. * @type {JobSettingsDto}
  3498. * @memberof SystemConfigJobDto
  3499. */
  3500. 'sidecar': JobSettingsDto;
  3501. /**
  3502. *
  3503. * @type {JobSettingsDto}
  3504. * @memberof SystemConfigJobDto
  3505. */
  3506. 'storageTemplateMigration': JobSettingsDto;
  3507. /**
  3508. *
  3509. * @type {JobSettingsDto}
  3510. * @memberof SystemConfigJobDto
  3511. */
  3512. 'thumbnailGeneration': JobSettingsDto;
  3513. /**
  3514. *
  3515. * @type {JobSettingsDto}
  3516. * @memberof SystemConfigJobDto
  3517. */
  3518. 'videoConversion': JobSettingsDto;
  3519. }
  3520. /**
  3521. *
  3522. * @export
  3523. * @interface SystemConfigLibraryDto
  3524. */
  3525. export interface SystemConfigLibraryDto {
  3526. /**
  3527. *
  3528. * @type {SystemConfigLibraryScanDto}
  3529. * @memberof SystemConfigLibraryDto
  3530. */
  3531. 'scan': SystemConfigLibraryScanDto;
  3532. }
  3533. /**
  3534. *
  3535. * @export
  3536. * @interface SystemConfigLibraryScanDto
  3537. */
  3538. export interface SystemConfigLibraryScanDto {
  3539. /**
  3540. *
  3541. * @type {string}
  3542. * @memberof SystemConfigLibraryScanDto
  3543. */
  3544. 'cronExpression': string;
  3545. /**
  3546. *
  3547. * @type {boolean}
  3548. * @memberof SystemConfigLibraryScanDto
  3549. */
  3550. 'enabled': boolean;
  3551. }
  3552. /**
  3553. *
  3554. * @export
  3555. * @interface SystemConfigMachineLearningDto
  3556. */
  3557. export interface SystemConfigMachineLearningDto {
  3558. /**
  3559. *
  3560. * @type {ClassificationConfig}
  3561. * @memberof SystemConfigMachineLearningDto
  3562. */
  3563. 'classification': ClassificationConfig;
  3564. /**
  3565. *
  3566. * @type {CLIPConfig}
  3567. * @memberof SystemConfigMachineLearningDto
  3568. */
  3569. 'clip': CLIPConfig;
  3570. /**
  3571. *
  3572. * @type {boolean}
  3573. * @memberof SystemConfigMachineLearningDto
  3574. */
  3575. 'enabled': boolean;
  3576. /**
  3577. *
  3578. * @type {RecognitionConfig}
  3579. * @memberof SystemConfigMachineLearningDto
  3580. */
  3581. 'facialRecognition': RecognitionConfig;
  3582. /**
  3583. *
  3584. * @type {string}
  3585. * @memberof SystemConfigMachineLearningDto
  3586. */
  3587. 'url': string;
  3588. }
  3589. /**
  3590. *
  3591. * @export
  3592. * @interface SystemConfigMapDto
  3593. */
  3594. export interface SystemConfigMapDto {
  3595. /**
  3596. *
  3597. * @type {string}
  3598. * @memberof SystemConfigMapDto
  3599. */
  3600. 'darkStyle': string;
  3601. /**
  3602. *
  3603. * @type {boolean}
  3604. * @memberof SystemConfigMapDto
  3605. */
  3606. 'enabled': boolean;
  3607. /**
  3608. *
  3609. * @type {string}
  3610. * @memberof SystemConfigMapDto
  3611. */
  3612. 'lightStyle': string;
  3613. }
  3614. /**
  3615. *
  3616. * @export
  3617. * @interface SystemConfigNewVersionCheckDto
  3618. */
  3619. export interface SystemConfigNewVersionCheckDto {
  3620. /**
  3621. *
  3622. * @type {boolean}
  3623. * @memberof SystemConfigNewVersionCheckDto
  3624. */
  3625. 'enabled': boolean;
  3626. }
  3627. /**
  3628. *
  3629. * @export
  3630. * @interface SystemConfigOAuthDto
  3631. */
  3632. export interface SystemConfigOAuthDto {
  3633. /**
  3634. *
  3635. * @type {boolean}
  3636. * @memberof SystemConfigOAuthDto
  3637. */
  3638. 'autoLaunch': boolean;
  3639. /**
  3640. *
  3641. * @type {boolean}
  3642. * @memberof SystemConfigOAuthDto
  3643. */
  3644. 'autoRegister': boolean;
  3645. /**
  3646. *
  3647. * @type {string}
  3648. * @memberof SystemConfigOAuthDto
  3649. */
  3650. 'buttonText': string;
  3651. /**
  3652. *
  3653. * @type {string}
  3654. * @memberof SystemConfigOAuthDto
  3655. */
  3656. 'clientId': string;
  3657. /**
  3658. *
  3659. * @type {string}
  3660. * @memberof SystemConfigOAuthDto
  3661. */
  3662. 'clientSecret': string;
  3663. /**
  3664. *
  3665. * @type {boolean}
  3666. * @memberof SystemConfigOAuthDto
  3667. */
  3668. 'enabled': boolean;
  3669. /**
  3670. *
  3671. * @type {string}
  3672. * @memberof SystemConfigOAuthDto
  3673. */
  3674. 'issuerUrl': string;
  3675. /**
  3676. *
  3677. * @type {boolean}
  3678. * @memberof SystemConfigOAuthDto
  3679. */
  3680. 'mobileOverrideEnabled': boolean;
  3681. /**
  3682. *
  3683. * @type {string}
  3684. * @memberof SystemConfigOAuthDto
  3685. */
  3686. 'mobileRedirectUri': string;
  3687. /**
  3688. *
  3689. * @type {string}
  3690. * @memberof SystemConfigOAuthDto
  3691. */
  3692. 'scope': string;
  3693. /**
  3694. *
  3695. * @type {string}
  3696. * @memberof SystemConfigOAuthDto
  3697. */
  3698. 'storageLabelClaim': string;
  3699. }
  3700. /**
  3701. *
  3702. * @export
  3703. * @interface SystemConfigPasswordLoginDto
  3704. */
  3705. export interface SystemConfigPasswordLoginDto {
  3706. /**
  3707. *
  3708. * @type {boolean}
  3709. * @memberof SystemConfigPasswordLoginDto
  3710. */
  3711. 'enabled': boolean;
  3712. }
  3713. /**
  3714. *
  3715. * @export
  3716. * @interface SystemConfigReverseGeocodingDto
  3717. */
  3718. export interface SystemConfigReverseGeocodingDto {
  3719. /**
  3720. *
  3721. * @type {boolean}
  3722. * @memberof SystemConfigReverseGeocodingDto
  3723. */
  3724. 'enabled': boolean;
  3725. }
  3726. /**
  3727. *
  3728. * @export
  3729. * @interface SystemConfigStorageTemplateDto
  3730. */
  3731. export interface SystemConfigStorageTemplateDto {
  3732. /**
  3733. *
  3734. * @type {string}
  3735. * @memberof SystemConfigStorageTemplateDto
  3736. */
  3737. 'template': string;
  3738. }
  3739. /**
  3740. *
  3741. * @export
  3742. * @interface SystemConfigTemplateStorageOptionDto
  3743. */
  3744. export interface SystemConfigTemplateStorageOptionDto {
  3745. /**
  3746. *
  3747. * @type {Array<string>}
  3748. * @memberof SystemConfigTemplateStorageOptionDto
  3749. */
  3750. 'dayOptions': Array<string>;
  3751. /**
  3752. *
  3753. * @type {Array<string>}
  3754. * @memberof SystemConfigTemplateStorageOptionDto
  3755. */
  3756. 'hourOptions': Array<string>;
  3757. /**
  3758. *
  3759. * @type {Array<string>}
  3760. * @memberof SystemConfigTemplateStorageOptionDto
  3761. */
  3762. 'minuteOptions': Array<string>;
  3763. /**
  3764. *
  3765. * @type {Array<string>}
  3766. * @memberof SystemConfigTemplateStorageOptionDto
  3767. */
  3768. 'monthOptions': Array<string>;
  3769. /**
  3770. *
  3771. * @type {Array<string>}
  3772. * @memberof SystemConfigTemplateStorageOptionDto
  3773. */
  3774. 'presetOptions': Array<string>;
  3775. /**
  3776. *
  3777. * @type {Array<string>}
  3778. * @memberof SystemConfigTemplateStorageOptionDto
  3779. */
  3780. 'secondOptions': Array<string>;
  3781. /**
  3782. *
  3783. * @type {Array<string>}
  3784. * @memberof SystemConfigTemplateStorageOptionDto
  3785. */
  3786. 'weekOptions': Array<string>;
  3787. /**
  3788. *
  3789. * @type {Array<string>}
  3790. * @memberof SystemConfigTemplateStorageOptionDto
  3791. */
  3792. 'yearOptions': Array<string>;
  3793. }
  3794. /**
  3795. *
  3796. * @export
  3797. * @interface SystemConfigThemeDto
  3798. */
  3799. export interface SystemConfigThemeDto {
  3800. /**
  3801. *
  3802. * @type {string}
  3803. * @memberof SystemConfigThemeDto
  3804. */
  3805. 'customCss': string;
  3806. }
  3807. /**
  3808. *
  3809. * @export
  3810. * @interface SystemConfigThumbnailDto
  3811. */
  3812. export interface SystemConfigThumbnailDto {
  3813. /**
  3814. *
  3815. * @type {Colorspace}
  3816. * @memberof SystemConfigThumbnailDto
  3817. */
  3818. 'colorspace': Colorspace;
  3819. /**
  3820. *
  3821. * @type {number}
  3822. * @memberof SystemConfigThumbnailDto
  3823. */
  3824. 'jpegSize': number;
  3825. /**
  3826. *
  3827. * @type {number}
  3828. * @memberof SystemConfigThumbnailDto
  3829. */
  3830. 'quality': number;
  3831. /**
  3832. *
  3833. * @type {number}
  3834. * @memberof SystemConfigThumbnailDto
  3835. */
  3836. 'webpSize': number;
  3837. }
  3838. /**
  3839. *
  3840. * @export
  3841. * @interface SystemConfigTrashDto
  3842. */
  3843. export interface SystemConfigTrashDto {
  3844. /**
  3845. *
  3846. * @type {number}
  3847. * @memberof SystemConfigTrashDto
  3848. */
  3849. 'days': number;
  3850. /**
  3851. *
  3852. * @type {boolean}
  3853. * @memberof SystemConfigTrashDto
  3854. */
  3855. 'enabled': boolean;
  3856. }
  3857. /**
  3858. *
  3859. * @export
  3860. * @interface TagResponseDto
  3861. */
  3862. export interface TagResponseDto {
  3863. /**
  3864. *
  3865. * @type {string}
  3866. * @memberof TagResponseDto
  3867. */
  3868. 'id': string;
  3869. /**
  3870. *
  3871. * @type {string}
  3872. * @memberof TagResponseDto
  3873. */
  3874. 'name': string;
  3875. /**
  3876. *
  3877. * @type {TagTypeEnum}
  3878. * @memberof TagResponseDto
  3879. */
  3880. 'type': TagTypeEnum;
  3881. /**
  3882. *
  3883. * @type {string}
  3884. * @memberof TagResponseDto
  3885. */
  3886. 'userId': string;
  3887. }
  3888. /**
  3889. *
  3890. * @export
  3891. * @enum {string}
  3892. */
  3893. export const TagTypeEnum = {
  3894. Object: 'OBJECT',
  3895. Face: 'FACE',
  3896. Custom: 'CUSTOM'
  3897. } as const;
  3898. export type TagTypeEnum = typeof TagTypeEnum[keyof typeof TagTypeEnum];
  3899. /**
  3900. *
  3901. * @export
  3902. * @enum {string}
  3903. */
  3904. export const ThumbnailFormat = {
  3905. Jpeg: 'JPEG',
  3906. Webp: 'WEBP'
  3907. } as const;
  3908. export type ThumbnailFormat = typeof ThumbnailFormat[keyof typeof ThumbnailFormat];
  3909. /**
  3910. *
  3911. * @export
  3912. * @interface TimeBucketResponseDto
  3913. */
  3914. export interface TimeBucketResponseDto {
  3915. /**
  3916. *
  3917. * @type {number}
  3918. * @memberof TimeBucketResponseDto
  3919. */
  3920. 'count': number;
  3921. /**
  3922. *
  3923. * @type {string}
  3924. * @memberof TimeBucketResponseDto
  3925. */
  3926. 'timeBucket': string;
  3927. }
  3928. /**
  3929. *
  3930. * @export
  3931. * @enum {string}
  3932. */
  3933. export const TimeBucketSize = {
  3934. Day: 'DAY',
  3935. Month: 'MONTH'
  3936. } as const;
  3937. export type TimeBucketSize = typeof TimeBucketSize[keyof typeof TimeBucketSize];
  3938. /**
  3939. *
  3940. * @export
  3941. * @enum {string}
  3942. */
  3943. export const ToneMapping = {
  3944. Hable: 'hable',
  3945. Mobius: 'mobius',
  3946. Reinhard: 'reinhard',
  3947. Disabled: 'disabled'
  3948. } as const;
  3949. export type ToneMapping = typeof ToneMapping[keyof typeof ToneMapping];
  3950. /**
  3951. *
  3952. * @export
  3953. * @enum {string}
  3954. */
  3955. export const TranscodeHWAccel = {
  3956. Nvenc: 'nvenc',
  3957. Qsv: 'qsv',
  3958. Vaapi: 'vaapi',
  3959. Rkmpp: 'rkmpp',
  3960. Disabled: 'disabled'
  3961. } as const;
  3962. export type TranscodeHWAccel = typeof TranscodeHWAccel[keyof typeof TranscodeHWAccel];
  3963. /**
  3964. *
  3965. * @export
  3966. * @enum {string}
  3967. */
  3968. export const TranscodePolicy = {
  3969. All: 'all',
  3970. Optimal: 'optimal',
  3971. Required: 'required',
  3972. Disabled: 'disabled'
  3973. } as const;
  3974. export type TranscodePolicy = typeof TranscodePolicy[keyof typeof TranscodePolicy];
  3975. /**
  3976. *
  3977. * @export
  3978. * @interface UpdateAlbumDto
  3979. */
  3980. export interface UpdateAlbumDto {
  3981. /**
  3982. *
  3983. * @type {string}
  3984. * @memberof UpdateAlbumDto
  3985. */
  3986. 'albumName'?: string;
  3987. /**
  3988. *
  3989. * @type {string}
  3990. * @memberof UpdateAlbumDto
  3991. */
  3992. 'albumThumbnailAssetId'?: string;
  3993. /**
  3994. *
  3995. * @type {string}
  3996. * @memberof UpdateAlbumDto
  3997. */
  3998. 'description'?: string;
  3999. /**
  4000. *
  4001. * @type {boolean}
  4002. * @memberof UpdateAlbumDto
  4003. */
  4004. 'isActivityEnabled'?: boolean;
  4005. }
  4006. /**
  4007. *
  4008. * @export
  4009. * @interface UpdateAssetDto
  4010. */
  4011. export interface UpdateAssetDto {
  4012. /**
  4013. *
  4014. * @type {string}
  4015. * @memberof UpdateAssetDto
  4016. */
  4017. 'dateTimeOriginal'?: string;
  4018. /**
  4019. *
  4020. * @type {string}
  4021. * @memberof UpdateAssetDto
  4022. */
  4023. 'description'?: string;
  4024. /**
  4025. *
  4026. * @type {boolean}
  4027. * @memberof UpdateAssetDto
  4028. */
  4029. 'isArchived'?: boolean;
  4030. /**
  4031. *
  4032. * @type {boolean}
  4033. * @memberof UpdateAssetDto
  4034. */
  4035. 'isFavorite'?: boolean;
  4036. /**
  4037. *
  4038. * @type {number}
  4039. * @memberof UpdateAssetDto
  4040. */
  4041. 'latitude'?: number;
  4042. /**
  4043. *
  4044. * @type {number}
  4045. * @memberof UpdateAssetDto
  4046. */
  4047. 'longitude'?: number;
  4048. }
  4049. /**
  4050. *
  4051. * @export
  4052. * @interface UpdateLibraryDto
  4053. */
  4054. export interface UpdateLibraryDto {
  4055. /**
  4056. *
  4057. * @type {Array<string>}
  4058. * @memberof UpdateLibraryDto
  4059. */
  4060. 'exclusionPatterns'?: Array<string>;
  4061. /**
  4062. *
  4063. * @type {Array<string>}
  4064. * @memberof UpdateLibraryDto
  4065. */
  4066. 'importPaths'?: Array<string>;
  4067. /**
  4068. *
  4069. * @type {boolean}
  4070. * @memberof UpdateLibraryDto
  4071. */
  4072. 'isVisible'?: boolean;
  4073. /**
  4074. *
  4075. * @type {string}
  4076. * @memberof UpdateLibraryDto
  4077. */
  4078. 'name'?: string;
  4079. }
  4080. /**
  4081. *
  4082. * @export
  4083. * @interface UpdatePartnerDto
  4084. */
  4085. export interface UpdatePartnerDto {
  4086. /**
  4087. *
  4088. * @type {boolean}
  4089. * @memberof UpdatePartnerDto
  4090. */
  4091. 'inTimeline': boolean;
  4092. }
  4093. /**
  4094. *
  4095. * @export
  4096. * @interface UpdateStackParentDto
  4097. */
  4098. export interface UpdateStackParentDto {
  4099. /**
  4100. *
  4101. * @type {string}
  4102. * @memberof UpdateStackParentDto
  4103. */
  4104. 'newParentId': string;
  4105. /**
  4106. *
  4107. * @type {string}
  4108. * @memberof UpdateStackParentDto
  4109. */
  4110. 'oldParentId': string;
  4111. }
  4112. /**
  4113. *
  4114. * @export
  4115. * @interface UpdateTagDto
  4116. */
  4117. export interface UpdateTagDto {
  4118. /**
  4119. *
  4120. * @type {string}
  4121. * @memberof UpdateTagDto
  4122. */
  4123. 'name'?: string;
  4124. }
  4125. /**
  4126. *
  4127. * @export
  4128. * @interface UpdateUserDto
  4129. */
  4130. export interface UpdateUserDto {
  4131. /**
  4132. *
  4133. * @type {UserAvatarColor}
  4134. * @memberof UpdateUserDto
  4135. */
  4136. 'avatarColor'?: UserAvatarColor;
  4137. /**
  4138. *
  4139. * @type {string}
  4140. * @memberof UpdateUserDto
  4141. */
  4142. 'email'?: string;
  4143. /**
  4144. *
  4145. * @type {string}
  4146. * @memberof UpdateUserDto
  4147. */
  4148. 'externalPath'?: string;
  4149. /**
  4150. *
  4151. * @type {string}
  4152. * @memberof UpdateUserDto
  4153. */
  4154. 'id': string;
  4155. /**
  4156. *
  4157. * @type {boolean}
  4158. * @memberof UpdateUserDto
  4159. */
  4160. 'isAdmin'?: boolean;
  4161. /**
  4162. *
  4163. * @type {boolean}
  4164. * @memberof UpdateUserDto
  4165. */
  4166. 'memoriesEnabled'?: boolean;
  4167. /**
  4168. *
  4169. * @type {string}
  4170. * @memberof UpdateUserDto
  4171. */
  4172. 'name'?: string;
  4173. /**
  4174. *
  4175. * @type {string}
  4176. * @memberof UpdateUserDto
  4177. */
  4178. 'password'?: string;
  4179. /**
  4180. *
  4181. * @type {boolean}
  4182. * @memberof UpdateUserDto
  4183. */
  4184. 'shouldChangePassword'?: boolean;
  4185. /**
  4186. *
  4187. * @type {string}
  4188. * @memberof UpdateUserDto
  4189. */
  4190. 'storageLabel'?: string;
  4191. }
  4192. /**
  4193. *
  4194. * @export
  4195. * @interface UsageByUserDto
  4196. */
  4197. export interface UsageByUserDto {
  4198. /**
  4199. *
  4200. * @type {number}
  4201. * @memberof UsageByUserDto
  4202. */
  4203. 'photos': number;
  4204. /**
  4205. *
  4206. * @type {number}
  4207. * @memberof UsageByUserDto
  4208. */
  4209. 'usage': number;
  4210. /**
  4211. *
  4212. * @type {string}
  4213. * @memberof UsageByUserDto
  4214. */
  4215. 'userId': string;
  4216. /**
  4217. *
  4218. * @type {string}
  4219. * @memberof UsageByUserDto
  4220. */
  4221. 'userName': string;
  4222. /**
  4223. *
  4224. * @type {number}
  4225. * @memberof UsageByUserDto
  4226. */
  4227. 'videos': number;
  4228. }
  4229. /**
  4230. *
  4231. * @export
  4232. * @enum {string}
  4233. */
  4234. export const UserAvatarColor = {
  4235. Primary: 'primary',
  4236. Pink: 'pink',
  4237. Red: 'red',
  4238. Yellow: 'yellow',
  4239. Blue: 'blue',
  4240. Green: 'green',
  4241. Purple: 'purple',
  4242. Orange: 'orange',
  4243. Gray: 'gray',
  4244. Amber: 'amber'
  4245. } as const;
  4246. export type UserAvatarColor = typeof UserAvatarColor[keyof typeof UserAvatarColor];
  4247. /**
  4248. *
  4249. * @export
  4250. * @interface UserDto
  4251. */
  4252. export interface UserDto {
  4253. /**
  4254. *
  4255. * @type {UserAvatarColor}
  4256. * @memberof UserDto
  4257. */
  4258. 'avatarColor': UserAvatarColor;
  4259. /**
  4260. *
  4261. * @type {string}
  4262. * @memberof UserDto
  4263. */
  4264. 'email': string;
  4265. /**
  4266. *
  4267. * @type {string}
  4268. * @memberof UserDto
  4269. */
  4270. 'id': string;
  4271. /**
  4272. *
  4273. * @type {string}
  4274. * @memberof UserDto
  4275. */
  4276. 'name': string;
  4277. /**
  4278. *
  4279. * @type {string}
  4280. * @memberof UserDto
  4281. */
  4282. 'profileImagePath': string;
  4283. }
  4284. /**
  4285. *
  4286. * @export
  4287. * @interface UserResponseDto
  4288. */
  4289. export interface UserResponseDto {
  4290. /**
  4291. *
  4292. * @type {UserAvatarColor}
  4293. * @memberof UserResponseDto
  4294. */
  4295. 'avatarColor': UserAvatarColor;
  4296. /**
  4297. *
  4298. * @type {string}
  4299. * @memberof UserResponseDto
  4300. */
  4301. 'createdAt': string;
  4302. /**
  4303. *
  4304. * @type {string}
  4305. * @memberof UserResponseDto
  4306. */
  4307. 'deletedAt': string | null;
  4308. /**
  4309. *
  4310. * @type {string}
  4311. * @memberof UserResponseDto
  4312. */
  4313. 'email': string;
  4314. /**
  4315. *
  4316. * @type {string}
  4317. * @memberof UserResponseDto
  4318. */
  4319. 'externalPath': string | null;
  4320. /**
  4321. *
  4322. * @type {string}
  4323. * @memberof UserResponseDto
  4324. */
  4325. 'id': string;
  4326. /**
  4327. *
  4328. * @type {boolean}
  4329. * @memberof UserResponseDto
  4330. */
  4331. 'isAdmin': boolean;
  4332. /**
  4333. *
  4334. * @type {boolean}
  4335. * @memberof UserResponseDto
  4336. */
  4337. 'memoriesEnabled'?: boolean;
  4338. /**
  4339. *
  4340. * @type {string}
  4341. * @memberof UserResponseDto
  4342. */
  4343. 'name': string;
  4344. /**
  4345. *
  4346. * @type {string}
  4347. * @memberof UserResponseDto
  4348. */
  4349. 'oauthId': string;
  4350. /**
  4351. *
  4352. * @type {string}
  4353. * @memberof UserResponseDto
  4354. */
  4355. 'profileImagePath': string;
  4356. /**
  4357. *
  4358. * @type {boolean}
  4359. * @memberof UserResponseDto
  4360. */
  4361. 'shouldChangePassword': boolean;
  4362. /**
  4363. *
  4364. * @type {string}
  4365. * @memberof UserResponseDto
  4366. */
  4367. 'storageLabel': string | null;
  4368. /**
  4369. *
  4370. * @type {string}
  4371. * @memberof UserResponseDto
  4372. */
  4373. 'updatedAt': string;
  4374. }
  4375. /**
  4376. *
  4377. * @export
  4378. * @interface ValidateAccessTokenResponseDto
  4379. */
  4380. export interface ValidateAccessTokenResponseDto {
  4381. /**
  4382. *
  4383. * @type {boolean}
  4384. * @memberof ValidateAccessTokenResponseDto
  4385. */
  4386. 'authStatus': boolean;
  4387. }
  4388. /**
  4389. *
  4390. * @export
  4391. * @enum {string}
  4392. */
  4393. export const VideoCodec = {
  4394. H264: 'h264',
  4395. Hevc: 'hevc',
  4396. Vp9: 'vp9'
  4397. } as const;
  4398. export type VideoCodec = typeof VideoCodec[keyof typeof VideoCodec];
  4399. /**
  4400. * APIKeyApi - axios parameter creator
  4401. * @export
  4402. */
  4403. export const APIKeyApiAxiosParamCreator = function (configuration?: Configuration) {
  4404. return {
  4405. /**
  4406. *
  4407. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4408. * @param {*} [options] Override http request option.
  4409. * @throws {RequiredError}
  4410. */
  4411. createApiKey: async (aPIKeyCreateDto: APIKeyCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4412. // verify required parameter 'aPIKeyCreateDto' is not null or undefined
  4413. assertParamExists('createApiKey', 'aPIKeyCreateDto', aPIKeyCreateDto)
  4414. const localVarPath = `/api-key`;
  4415. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4416. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4417. let baseOptions;
  4418. if (configuration) {
  4419. baseOptions = configuration.baseOptions;
  4420. }
  4421. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4422. const localVarHeaderParameter = {} as any;
  4423. const localVarQueryParameter = {} as any;
  4424. // authentication cookie required
  4425. // authentication api_key required
  4426. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4427. // authentication bearer required
  4428. // http bearer authentication required
  4429. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4430. localVarHeaderParameter['Content-Type'] = 'application/json';
  4431. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4432. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4433. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4434. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyCreateDto, localVarRequestOptions, configuration)
  4435. return {
  4436. url: toPathString(localVarUrlObj),
  4437. options: localVarRequestOptions,
  4438. };
  4439. },
  4440. /**
  4441. *
  4442. * @param {string} id
  4443. * @param {*} [options] Override http request option.
  4444. * @throws {RequiredError}
  4445. */
  4446. deleteApiKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4447. // verify required parameter 'id' is not null or undefined
  4448. assertParamExists('deleteApiKey', 'id', id)
  4449. const localVarPath = `/api-key/{id}`
  4450. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4451. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4452. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4453. let baseOptions;
  4454. if (configuration) {
  4455. baseOptions = configuration.baseOptions;
  4456. }
  4457. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4458. const localVarHeaderParameter = {} as any;
  4459. const localVarQueryParameter = {} as any;
  4460. // authentication cookie required
  4461. // authentication api_key required
  4462. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4463. // authentication bearer required
  4464. // http bearer authentication required
  4465. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4466. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4467. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4468. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4469. return {
  4470. url: toPathString(localVarUrlObj),
  4471. options: localVarRequestOptions,
  4472. };
  4473. },
  4474. /**
  4475. *
  4476. * @param {string} id
  4477. * @param {*} [options] Override http request option.
  4478. * @throws {RequiredError}
  4479. */
  4480. getApiKey: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4481. // verify required parameter 'id' is not null or undefined
  4482. assertParamExists('getApiKey', 'id', id)
  4483. const localVarPath = `/api-key/{id}`
  4484. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4485. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4486. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4487. let baseOptions;
  4488. if (configuration) {
  4489. baseOptions = configuration.baseOptions;
  4490. }
  4491. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4492. const localVarHeaderParameter = {} as any;
  4493. const localVarQueryParameter = {} as any;
  4494. // authentication cookie required
  4495. // authentication api_key required
  4496. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4497. // authentication bearer required
  4498. // http bearer authentication required
  4499. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4500. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4501. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4502. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4503. return {
  4504. url: toPathString(localVarUrlObj),
  4505. options: localVarRequestOptions,
  4506. };
  4507. },
  4508. /**
  4509. *
  4510. * @param {*} [options] Override http request option.
  4511. * @throws {RequiredError}
  4512. */
  4513. getApiKeys: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4514. const localVarPath = `/api-key`;
  4515. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4516. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4517. let baseOptions;
  4518. if (configuration) {
  4519. baseOptions = configuration.baseOptions;
  4520. }
  4521. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4522. const localVarHeaderParameter = {} as any;
  4523. const localVarQueryParameter = {} as any;
  4524. // authentication cookie required
  4525. // authentication api_key required
  4526. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4527. // authentication bearer required
  4528. // http bearer authentication required
  4529. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4530. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4531. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4532. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4533. return {
  4534. url: toPathString(localVarUrlObj),
  4535. options: localVarRequestOptions,
  4536. };
  4537. },
  4538. /**
  4539. *
  4540. * @param {string} id
  4541. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4542. * @param {*} [options] Override http request option.
  4543. * @throws {RequiredError}
  4544. */
  4545. updateApiKey: async (id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4546. // verify required parameter 'id' is not null or undefined
  4547. assertParamExists('updateApiKey', 'id', id)
  4548. // verify required parameter 'aPIKeyUpdateDto' is not null or undefined
  4549. assertParamExists('updateApiKey', 'aPIKeyUpdateDto', aPIKeyUpdateDto)
  4550. const localVarPath = `/api-key/{id}`
  4551. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4552. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4553. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4554. let baseOptions;
  4555. if (configuration) {
  4556. baseOptions = configuration.baseOptions;
  4557. }
  4558. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  4559. const localVarHeaderParameter = {} as any;
  4560. const localVarQueryParameter = {} as any;
  4561. // authentication cookie required
  4562. // authentication api_key required
  4563. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4564. // authentication bearer required
  4565. // http bearer authentication required
  4566. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4567. localVarHeaderParameter['Content-Type'] = 'application/json';
  4568. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4569. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4570. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4571. localVarRequestOptions.data = serializeDataIfNeeded(aPIKeyUpdateDto, localVarRequestOptions, configuration)
  4572. return {
  4573. url: toPathString(localVarUrlObj),
  4574. options: localVarRequestOptions,
  4575. };
  4576. },
  4577. }
  4578. };
  4579. /**
  4580. * APIKeyApi - functional programming interface
  4581. * @export
  4582. */
  4583. export const APIKeyApiFp = function(configuration?: Configuration) {
  4584. const localVarAxiosParamCreator = APIKeyApiAxiosParamCreator(configuration)
  4585. return {
  4586. /**
  4587. *
  4588. * @param {APIKeyCreateDto} aPIKeyCreateDto
  4589. * @param {*} [options] Override http request option.
  4590. * @throws {RequiredError}
  4591. */
  4592. async createApiKey(aPIKeyCreateDto: APIKeyCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyCreateResponseDto>> {
  4593. const localVarAxiosArgs = await localVarAxiosParamCreator.createApiKey(aPIKeyCreateDto, options);
  4594. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4595. },
  4596. /**
  4597. *
  4598. * @param {string} id
  4599. * @param {*} [options] Override http request option.
  4600. * @throws {RequiredError}
  4601. */
  4602. async deleteApiKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4603. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApiKey(id, options);
  4604. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4605. },
  4606. /**
  4607. *
  4608. * @param {string} id
  4609. * @param {*} [options] Override http request option.
  4610. * @throws {RequiredError}
  4611. */
  4612. async getApiKey(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4613. const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKey(id, options);
  4614. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4615. },
  4616. /**
  4617. *
  4618. * @param {*} [options] Override http request option.
  4619. * @throws {RequiredError}
  4620. */
  4621. async getApiKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<APIKeyResponseDto>>> {
  4622. const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKeys(options);
  4623. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4624. },
  4625. /**
  4626. *
  4627. * @param {string} id
  4628. * @param {APIKeyUpdateDto} aPIKeyUpdateDto
  4629. * @param {*} [options] Override http request option.
  4630. * @throws {RequiredError}
  4631. */
  4632. async updateApiKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIKeyResponseDto>> {
  4633. const localVarAxiosArgs = await localVarAxiosParamCreator.updateApiKey(id, aPIKeyUpdateDto, options);
  4634. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4635. },
  4636. }
  4637. };
  4638. /**
  4639. * APIKeyApi - factory interface
  4640. * @export
  4641. */
  4642. export const APIKeyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  4643. const localVarFp = APIKeyApiFp(configuration)
  4644. return {
  4645. /**
  4646. *
  4647. * @param {APIKeyApiCreateApiKeyRequest} requestParameters Request parameters.
  4648. * @param {*} [options] Override http request option.
  4649. * @throws {RequiredError}
  4650. */
  4651. createApiKey(requestParameters: APIKeyApiCreateApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyCreateResponseDto> {
  4652. return localVarFp.createApiKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(axios, basePath));
  4653. },
  4654. /**
  4655. *
  4656. * @param {APIKeyApiDeleteApiKeyRequest} requestParameters Request parameters.
  4657. * @param {*} [options] Override http request option.
  4658. * @throws {RequiredError}
  4659. */
  4660. deleteApiKey(requestParameters: APIKeyApiDeleteApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  4661. return localVarFp.deleteApiKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4662. },
  4663. /**
  4664. *
  4665. * @param {APIKeyApiGetApiKeyRequest} requestParameters Request parameters.
  4666. * @param {*} [options] Override http request option.
  4667. * @throws {RequiredError}
  4668. */
  4669. getApiKey(requestParameters: APIKeyApiGetApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4670. return localVarFp.getApiKey(requestParameters.id, options).then((request) => request(axios, basePath));
  4671. },
  4672. /**
  4673. *
  4674. * @param {*} [options] Override http request option.
  4675. * @throws {RequiredError}
  4676. */
  4677. getApiKeys(options?: AxiosRequestConfig): AxiosPromise<Array<APIKeyResponseDto>> {
  4678. return localVarFp.getApiKeys(options).then((request) => request(axios, basePath));
  4679. },
  4680. /**
  4681. *
  4682. * @param {APIKeyApiUpdateApiKeyRequest} requestParameters Request parameters.
  4683. * @param {*} [options] Override http request option.
  4684. * @throws {RequiredError}
  4685. */
  4686. updateApiKey(requestParameters: APIKeyApiUpdateApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
  4687. return localVarFp.updateApiKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
  4688. },
  4689. };
  4690. };
  4691. /**
  4692. * Request parameters for createApiKey operation in APIKeyApi.
  4693. * @export
  4694. * @interface APIKeyApiCreateApiKeyRequest
  4695. */
  4696. export interface APIKeyApiCreateApiKeyRequest {
  4697. /**
  4698. *
  4699. * @type {APIKeyCreateDto}
  4700. * @memberof APIKeyApiCreateApiKey
  4701. */
  4702. readonly aPIKeyCreateDto: APIKeyCreateDto
  4703. }
  4704. /**
  4705. * Request parameters for deleteApiKey operation in APIKeyApi.
  4706. * @export
  4707. * @interface APIKeyApiDeleteApiKeyRequest
  4708. */
  4709. export interface APIKeyApiDeleteApiKeyRequest {
  4710. /**
  4711. *
  4712. * @type {string}
  4713. * @memberof APIKeyApiDeleteApiKey
  4714. */
  4715. readonly id: string
  4716. }
  4717. /**
  4718. * Request parameters for getApiKey operation in APIKeyApi.
  4719. * @export
  4720. * @interface APIKeyApiGetApiKeyRequest
  4721. */
  4722. export interface APIKeyApiGetApiKeyRequest {
  4723. /**
  4724. *
  4725. * @type {string}
  4726. * @memberof APIKeyApiGetApiKey
  4727. */
  4728. readonly id: string
  4729. }
  4730. /**
  4731. * Request parameters for updateApiKey operation in APIKeyApi.
  4732. * @export
  4733. * @interface APIKeyApiUpdateApiKeyRequest
  4734. */
  4735. export interface APIKeyApiUpdateApiKeyRequest {
  4736. /**
  4737. *
  4738. * @type {string}
  4739. * @memberof APIKeyApiUpdateApiKey
  4740. */
  4741. readonly id: string
  4742. /**
  4743. *
  4744. * @type {APIKeyUpdateDto}
  4745. * @memberof APIKeyApiUpdateApiKey
  4746. */
  4747. readonly aPIKeyUpdateDto: APIKeyUpdateDto
  4748. }
  4749. /**
  4750. * APIKeyApi - object-oriented interface
  4751. * @export
  4752. * @class APIKeyApi
  4753. * @extends {BaseAPI}
  4754. */
  4755. export class APIKeyApi extends BaseAPI {
  4756. /**
  4757. *
  4758. * @param {APIKeyApiCreateApiKeyRequest} requestParameters Request parameters.
  4759. * @param {*} [options] Override http request option.
  4760. * @throws {RequiredError}
  4761. * @memberof APIKeyApi
  4762. */
  4763. public createApiKey(requestParameters: APIKeyApiCreateApiKeyRequest, options?: AxiosRequestConfig) {
  4764. return APIKeyApiFp(this.configuration).createApiKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(this.axios, this.basePath));
  4765. }
  4766. /**
  4767. *
  4768. * @param {APIKeyApiDeleteApiKeyRequest} requestParameters Request parameters.
  4769. * @param {*} [options] Override http request option.
  4770. * @throws {RequiredError}
  4771. * @memberof APIKeyApi
  4772. */
  4773. public deleteApiKey(requestParameters: APIKeyApiDeleteApiKeyRequest, options?: AxiosRequestConfig) {
  4774. return APIKeyApiFp(this.configuration).deleteApiKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4775. }
  4776. /**
  4777. *
  4778. * @param {APIKeyApiGetApiKeyRequest} requestParameters Request parameters.
  4779. * @param {*} [options] Override http request option.
  4780. * @throws {RequiredError}
  4781. * @memberof APIKeyApi
  4782. */
  4783. public getApiKey(requestParameters: APIKeyApiGetApiKeyRequest, options?: AxiosRequestConfig) {
  4784. return APIKeyApiFp(this.configuration).getApiKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  4785. }
  4786. /**
  4787. *
  4788. * @param {*} [options] Override http request option.
  4789. * @throws {RequiredError}
  4790. * @memberof APIKeyApi
  4791. */
  4792. public getApiKeys(options?: AxiosRequestConfig) {
  4793. return APIKeyApiFp(this.configuration).getApiKeys(options).then((request) => request(this.axios, this.basePath));
  4794. }
  4795. /**
  4796. *
  4797. * @param {APIKeyApiUpdateApiKeyRequest} requestParameters Request parameters.
  4798. * @param {*} [options] Override http request option.
  4799. * @throws {RequiredError}
  4800. * @memberof APIKeyApi
  4801. */
  4802. public updateApiKey(requestParameters: APIKeyApiUpdateApiKeyRequest, options?: AxiosRequestConfig) {
  4803. return APIKeyApiFp(this.configuration).updateApiKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(this.axios, this.basePath));
  4804. }
  4805. }
  4806. /**
  4807. * ActivityApi - axios parameter creator
  4808. * @export
  4809. */
  4810. export const ActivityApiAxiosParamCreator = function (configuration?: Configuration) {
  4811. return {
  4812. /**
  4813. *
  4814. * @param {ActivityCreateDto} activityCreateDto
  4815. * @param {*} [options] Override http request option.
  4816. * @throws {RequiredError}
  4817. */
  4818. createActivity: async (activityCreateDto: ActivityCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4819. // verify required parameter 'activityCreateDto' is not null or undefined
  4820. assertParamExists('createActivity', 'activityCreateDto', activityCreateDto)
  4821. const localVarPath = `/activity`;
  4822. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4823. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4824. let baseOptions;
  4825. if (configuration) {
  4826. baseOptions = configuration.baseOptions;
  4827. }
  4828. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  4829. const localVarHeaderParameter = {} as any;
  4830. const localVarQueryParameter = {} as any;
  4831. // authentication cookie required
  4832. // authentication api_key required
  4833. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4834. // authentication bearer required
  4835. // http bearer authentication required
  4836. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4837. localVarHeaderParameter['Content-Type'] = 'application/json';
  4838. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4839. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4840. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4841. localVarRequestOptions.data = serializeDataIfNeeded(activityCreateDto, localVarRequestOptions, configuration)
  4842. return {
  4843. url: toPathString(localVarUrlObj),
  4844. options: localVarRequestOptions,
  4845. };
  4846. },
  4847. /**
  4848. *
  4849. * @param {string} id
  4850. * @param {*} [options] Override http request option.
  4851. * @throws {RequiredError}
  4852. */
  4853. deleteActivity: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4854. // verify required parameter 'id' is not null or undefined
  4855. assertParamExists('deleteActivity', 'id', id)
  4856. const localVarPath = `/activity/{id}`
  4857. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  4858. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4859. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4860. let baseOptions;
  4861. if (configuration) {
  4862. baseOptions = configuration.baseOptions;
  4863. }
  4864. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  4865. const localVarHeaderParameter = {} as any;
  4866. const localVarQueryParameter = {} as any;
  4867. // authentication cookie required
  4868. // authentication api_key required
  4869. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4870. // authentication bearer required
  4871. // http bearer authentication required
  4872. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4873. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4874. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4875. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4876. return {
  4877. url: toPathString(localVarUrlObj),
  4878. options: localVarRequestOptions,
  4879. };
  4880. },
  4881. /**
  4882. *
  4883. * @param {string} albumId
  4884. * @param {string} [assetId]
  4885. * @param {ReactionType} [type]
  4886. * @param {ReactionLevel} [level]
  4887. * @param {string} [userId]
  4888. * @param {*} [options] Override http request option.
  4889. * @throws {RequiredError}
  4890. */
  4891. getActivities: async (albumId: string, assetId?: string, type?: ReactionType, level?: ReactionLevel, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4892. // verify required parameter 'albumId' is not null or undefined
  4893. assertParamExists('getActivities', 'albumId', albumId)
  4894. const localVarPath = `/activity`;
  4895. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4896. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4897. let baseOptions;
  4898. if (configuration) {
  4899. baseOptions = configuration.baseOptions;
  4900. }
  4901. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4902. const localVarHeaderParameter = {} as any;
  4903. const localVarQueryParameter = {} as any;
  4904. // authentication cookie required
  4905. // authentication api_key required
  4906. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4907. // authentication bearer required
  4908. // http bearer authentication required
  4909. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4910. if (albumId !== undefined) {
  4911. localVarQueryParameter['albumId'] = albumId;
  4912. }
  4913. if (assetId !== undefined) {
  4914. localVarQueryParameter['assetId'] = assetId;
  4915. }
  4916. if (type !== undefined) {
  4917. localVarQueryParameter['type'] = type;
  4918. }
  4919. if (level !== undefined) {
  4920. localVarQueryParameter['level'] = level;
  4921. }
  4922. if (userId !== undefined) {
  4923. localVarQueryParameter['userId'] = userId;
  4924. }
  4925. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4926. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4927. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4928. return {
  4929. url: toPathString(localVarUrlObj),
  4930. options: localVarRequestOptions,
  4931. };
  4932. },
  4933. /**
  4934. *
  4935. * @param {string} albumId
  4936. * @param {string} [assetId]
  4937. * @param {*} [options] Override http request option.
  4938. * @throws {RequiredError}
  4939. */
  4940. getActivityStatistics: async (albumId: string, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  4941. // verify required parameter 'albumId' is not null or undefined
  4942. assertParamExists('getActivityStatistics', 'albumId', albumId)
  4943. const localVarPath = `/activity/statistics`;
  4944. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  4945. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  4946. let baseOptions;
  4947. if (configuration) {
  4948. baseOptions = configuration.baseOptions;
  4949. }
  4950. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  4951. const localVarHeaderParameter = {} as any;
  4952. const localVarQueryParameter = {} as any;
  4953. // authentication cookie required
  4954. // authentication api_key required
  4955. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  4956. // authentication bearer required
  4957. // http bearer authentication required
  4958. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  4959. if (albumId !== undefined) {
  4960. localVarQueryParameter['albumId'] = albumId;
  4961. }
  4962. if (assetId !== undefined) {
  4963. localVarQueryParameter['assetId'] = assetId;
  4964. }
  4965. setSearchParams(localVarUrlObj, localVarQueryParameter);
  4966. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  4967. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  4968. return {
  4969. url: toPathString(localVarUrlObj),
  4970. options: localVarRequestOptions,
  4971. };
  4972. },
  4973. }
  4974. };
  4975. /**
  4976. * ActivityApi - functional programming interface
  4977. * @export
  4978. */
  4979. export const ActivityApiFp = function(configuration?: Configuration) {
  4980. const localVarAxiosParamCreator = ActivityApiAxiosParamCreator(configuration)
  4981. return {
  4982. /**
  4983. *
  4984. * @param {ActivityCreateDto} activityCreateDto
  4985. * @param {*} [options] Override http request option.
  4986. * @throws {RequiredError}
  4987. */
  4988. async createActivity(activityCreateDto: ActivityCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityResponseDto>> {
  4989. const localVarAxiosArgs = await localVarAxiosParamCreator.createActivity(activityCreateDto, options);
  4990. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  4991. },
  4992. /**
  4993. *
  4994. * @param {string} id
  4995. * @param {*} [options] Override http request option.
  4996. * @throws {RequiredError}
  4997. */
  4998. async deleteActivity(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  4999. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActivity(id, options);
  5000. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5001. },
  5002. /**
  5003. *
  5004. * @param {string} albumId
  5005. * @param {string} [assetId]
  5006. * @param {ReactionType} [type]
  5007. * @param {ReactionLevel} [level]
  5008. * @param {string} [userId]
  5009. * @param {*} [options] Override http request option.
  5010. * @throws {RequiredError}
  5011. */
  5012. async getActivities(albumId: string, assetId?: string, type?: ReactionType, level?: ReactionLevel, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ActivityResponseDto>>> {
  5013. const localVarAxiosArgs = await localVarAxiosParamCreator.getActivities(albumId, assetId, type, level, userId, options);
  5014. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5015. },
  5016. /**
  5017. *
  5018. * @param {string} albumId
  5019. * @param {string} [assetId]
  5020. * @param {*} [options] Override http request option.
  5021. * @throws {RequiredError}
  5022. */
  5023. async getActivityStatistics(albumId: string, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivityStatisticsResponseDto>> {
  5024. const localVarAxiosArgs = await localVarAxiosParamCreator.getActivityStatistics(albumId, assetId, options);
  5025. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5026. },
  5027. }
  5028. };
  5029. /**
  5030. * ActivityApi - factory interface
  5031. * @export
  5032. */
  5033. export const ActivityApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5034. const localVarFp = ActivityApiFp(configuration)
  5035. return {
  5036. /**
  5037. *
  5038. * @param {ActivityApiCreateActivityRequest} requestParameters Request parameters.
  5039. * @param {*} [options] Override http request option.
  5040. * @throws {RequiredError}
  5041. */
  5042. createActivity(requestParameters: ActivityApiCreateActivityRequest, options?: AxiosRequestConfig): AxiosPromise<ActivityResponseDto> {
  5043. return localVarFp.createActivity(requestParameters.activityCreateDto, options).then((request) => request(axios, basePath));
  5044. },
  5045. /**
  5046. *
  5047. * @param {ActivityApiDeleteActivityRequest} requestParameters Request parameters.
  5048. * @param {*} [options] Override http request option.
  5049. * @throws {RequiredError}
  5050. */
  5051. deleteActivity(requestParameters: ActivityApiDeleteActivityRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5052. return localVarFp.deleteActivity(requestParameters.id, options).then((request) => request(axios, basePath));
  5053. },
  5054. /**
  5055. *
  5056. * @param {ActivityApiGetActivitiesRequest} requestParameters Request parameters.
  5057. * @param {*} [options] Override http request option.
  5058. * @throws {RequiredError}
  5059. */
  5060. getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig): AxiosPromise<Array<ActivityResponseDto>> {
  5061. return localVarFp.getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.level, requestParameters.userId, options).then((request) => request(axios, basePath));
  5062. },
  5063. /**
  5064. *
  5065. * @param {ActivityApiGetActivityStatisticsRequest} requestParameters Request parameters.
  5066. * @param {*} [options] Override http request option.
  5067. * @throws {RequiredError}
  5068. */
  5069. getActivityStatistics(requestParameters: ActivityApiGetActivityStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<ActivityStatisticsResponseDto> {
  5070. return localVarFp.getActivityStatistics(requestParameters.albumId, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5071. },
  5072. };
  5073. };
  5074. /**
  5075. * Request parameters for createActivity operation in ActivityApi.
  5076. * @export
  5077. * @interface ActivityApiCreateActivityRequest
  5078. */
  5079. export interface ActivityApiCreateActivityRequest {
  5080. /**
  5081. *
  5082. * @type {ActivityCreateDto}
  5083. * @memberof ActivityApiCreateActivity
  5084. */
  5085. readonly activityCreateDto: ActivityCreateDto
  5086. }
  5087. /**
  5088. * Request parameters for deleteActivity operation in ActivityApi.
  5089. * @export
  5090. * @interface ActivityApiDeleteActivityRequest
  5091. */
  5092. export interface ActivityApiDeleteActivityRequest {
  5093. /**
  5094. *
  5095. * @type {string}
  5096. * @memberof ActivityApiDeleteActivity
  5097. */
  5098. readonly id: string
  5099. }
  5100. /**
  5101. * Request parameters for getActivities operation in ActivityApi.
  5102. * @export
  5103. * @interface ActivityApiGetActivitiesRequest
  5104. */
  5105. export interface ActivityApiGetActivitiesRequest {
  5106. /**
  5107. *
  5108. * @type {string}
  5109. * @memberof ActivityApiGetActivities
  5110. */
  5111. readonly albumId: string
  5112. /**
  5113. *
  5114. * @type {string}
  5115. * @memberof ActivityApiGetActivities
  5116. */
  5117. readonly assetId?: string
  5118. /**
  5119. *
  5120. * @type {ReactionType}
  5121. * @memberof ActivityApiGetActivities
  5122. */
  5123. readonly type?: ReactionType
  5124. /**
  5125. *
  5126. * @type {ReactionLevel}
  5127. * @memberof ActivityApiGetActivities
  5128. */
  5129. readonly level?: ReactionLevel
  5130. /**
  5131. *
  5132. * @type {string}
  5133. * @memberof ActivityApiGetActivities
  5134. */
  5135. readonly userId?: string
  5136. }
  5137. /**
  5138. * Request parameters for getActivityStatistics operation in ActivityApi.
  5139. * @export
  5140. * @interface ActivityApiGetActivityStatisticsRequest
  5141. */
  5142. export interface ActivityApiGetActivityStatisticsRequest {
  5143. /**
  5144. *
  5145. * @type {string}
  5146. * @memberof ActivityApiGetActivityStatistics
  5147. */
  5148. readonly albumId: string
  5149. /**
  5150. *
  5151. * @type {string}
  5152. * @memberof ActivityApiGetActivityStatistics
  5153. */
  5154. readonly assetId?: string
  5155. }
  5156. /**
  5157. * ActivityApi - object-oriented interface
  5158. * @export
  5159. * @class ActivityApi
  5160. * @extends {BaseAPI}
  5161. */
  5162. export class ActivityApi extends BaseAPI {
  5163. /**
  5164. *
  5165. * @param {ActivityApiCreateActivityRequest} requestParameters Request parameters.
  5166. * @param {*} [options] Override http request option.
  5167. * @throws {RequiredError}
  5168. * @memberof ActivityApi
  5169. */
  5170. public createActivity(requestParameters: ActivityApiCreateActivityRequest, options?: AxiosRequestConfig) {
  5171. return ActivityApiFp(this.configuration).createActivity(requestParameters.activityCreateDto, options).then((request) => request(this.axios, this.basePath));
  5172. }
  5173. /**
  5174. *
  5175. * @param {ActivityApiDeleteActivityRequest} requestParameters Request parameters.
  5176. * @param {*} [options] Override http request option.
  5177. * @throws {RequiredError}
  5178. * @memberof ActivityApi
  5179. */
  5180. public deleteActivity(requestParameters: ActivityApiDeleteActivityRequest, options?: AxiosRequestConfig) {
  5181. return ActivityApiFp(this.configuration).deleteActivity(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  5182. }
  5183. /**
  5184. *
  5185. * @param {ActivityApiGetActivitiesRequest} requestParameters Request parameters.
  5186. * @param {*} [options] Override http request option.
  5187. * @throws {RequiredError}
  5188. * @memberof ActivityApi
  5189. */
  5190. public getActivities(requestParameters: ActivityApiGetActivitiesRequest, options?: AxiosRequestConfig) {
  5191. return ActivityApiFp(this.configuration).getActivities(requestParameters.albumId, requestParameters.assetId, requestParameters.type, requestParameters.level, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  5192. }
  5193. /**
  5194. *
  5195. * @param {ActivityApiGetActivityStatisticsRequest} requestParameters Request parameters.
  5196. * @param {*} [options] Override http request option.
  5197. * @throws {RequiredError}
  5198. * @memberof ActivityApi
  5199. */
  5200. public getActivityStatistics(requestParameters: ActivityApiGetActivityStatisticsRequest, options?: AxiosRequestConfig) {
  5201. return ActivityApiFp(this.configuration).getActivityStatistics(requestParameters.albumId, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  5202. }
  5203. }
  5204. /**
  5205. * AlbumApi - axios parameter creator
  5206. * @export
  5207. */
  5208. export const AlbumApiAxiosParamCreator = function (configuration?: Configuration) {
  5209. return {
  5210. /**
  5211. *
  5212. * @param {string} id
  5213. * @param {BulkIdsDto} bulkIdsDto
  5214. * @param {string} [key]
  5215. * @param {*} [options] Override http request option.
  5216. * @throws {RequiredError}
  5217. */
  5218. addAssetsToAlbum: async (id: string, bulkIdsDto: BulkIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5219. // verify required parameter 'id' is not null or undefined
  5220. assertParamExists('addAssetsToAlbum', 'id', id)
  5221. // verify required parameter 'bulkIdsDto' is not null or undefined
  5222. assertParamExists('addAssetsToAlbum', 'bulkIdsDto', bulkIdsDto)
  5223. const localVarPath = `/album/{id}/assets`
  5224. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5225. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5226. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5227. let baseOptions;
  5228. if (configuration) {
  5229. baseOptions = configuration.baseOptions;
  5230. }
  5231. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  5232. const localVarHeaderParameter = {} as any;
  5233. const localVarQueryParameter = {} as any;
  5234. // authentication cookie required
  5235. // authentication api_key required
  5236. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5237. // authentication bearer required
  5238. // http bearer authentication required
  5239. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5240. if (key !== undefined) {
  5241. localVarQueryParameter['key'] = key;
  5242. }
  5243. localVarHeaderParameter['Content-Type'] = 'application/json';
  5244. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5245. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5246. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5247. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  5248. return {
  5249. url: toPathString(localVarUrlObj),
  5250. options: localVarRequestOptions,
  5251. };
  5252. },
  5253. /**
  5254. *
  5255. * @param {string} id
  5256. * @param {AddUsersDto} addUsersDto
  5257. * @param {*} [options] Override http request option.
  5258. * @throws {RequiredError}
  5259. */
  5260. addUsersToAlbum: async (id: string, addUsersDto: AddUsersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5261. // verify required parameter 'id' is not null or undefined
  5262. assertParamExists('addUsersToAlbum', 'id', id)
  5263. // verify required parameter 'addUsersDto' is not null or undefined
  5264. assertParamExists('addUsersToAlbum', 'addUsersDto', addUsersDto)
  5265. const localVarPath = `/album/{id}/users`
  5266. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5267. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5268. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5269. let baseOptions;
  5270. if (configuration) {
  5271. baseOptions = configuration.baseOptions;
  5272. }
  5273. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  5274. const localVarHeaderParameter = {} as any;
  5275. const localVarQueryParameter = {} as any;
  5276. // authentication cookie required
  5277. // authentication api_key required
  5278. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5279. // authentication bearer required
  5280. // http bearer authentication required
  5281. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5282. localVarHeaderParameter['Content-Type'] = 'application/json';
  5283. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5284. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5285. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5286. localVarRequestOptions.data = serializeDataIfNeeded(addUsersDto, localVarRequestOptions, configuration)
  5287. return {
  5288. url: toPathString(localVarUrlObj),
  5289. options: localVarRequestOptions,
  5290. };
  5291. },
  5292. /**
  5293. *
  5294. * @param {CreateAlbumDto} createAlbumDto
  5295. * @param {*} [options] Override http request option.
  5296. * @throws {RequiredError}
  5297. */
  5298. createAlbum: async (createAlbumDto: CreateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5299. // verify required parameter 'createAlbumDto' is not null or undefined
  5300. assertParamExists('createAlbum', 'createAlbumDto', createAlbumDto)
  5301. const localVarPath = `/album`;
  5302. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5303. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5304. let baseOptions;
  5305. if (configuration) {
  5306. baseOptions = configuration.baseOptions;
  5307. }
  5308. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  5309. const localVarHeaderParameter = {} as any;
  5310. const localVarQueryParameter = {} as any;
  5311. // authentication cookie required
  5312. // authentication api_key required
  5313. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5314. // authentication bearer required
  5315. // http bearer authentication required
  5316. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5317. localVarHeaderParameter['Content-Type'] = 'application/json';
  5318. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5319. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5320. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5321. localVarRequestOptions.data = serializeDataIfNeeded(createAlbumDto, localVarRequestOptions, configuration)
  5322. return {
  5323. url: toPathString(localVarUrlObj),
  5324. options: localVarRequestOptions,
  5325. };
  5326. },
  5327. /**
  5328. *
  5329. * @param {string} id
  5330. * @param {*} [options] Override http request option.
  5331. * @throws {RequiredError}
  5332. */
  5333. deleteAlbum: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5334. // verify required parameter 'id' is not null or undefined
  5335. assertParamExists('deleteAlbum', 'id', id)
  5336. const localVarPath = `/album/{id}`
  5337. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5338. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5339. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5340. let baseOptions;
  5341. if (configuration) {
  5342. baseOptions = configuration.baseOptions;
  5343. }
  5344. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5345. const localVarHeaderParameter = {} as any;
  5346. const localVarQueryParameter = {} as any;
  5347. // authentication cookie required
  5348. // authentication api_key required
  5349. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5350. // authentication bearer required
  5351. // http bearer authentication required
  5352. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5353. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5354. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5355. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5356. return {
  5357. url: toPathString(localVarUrlObj),
  5358. options: localVarRequestOptions,
  5359. };
  5360. },
  5361. /**
  5362. *
  5363. * @param {*} [options] Override http request option.
  5364. * @throws {RequiredError}
  5365. */
  5366. getAlbumCount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5367. const localVarPath = `/album/count`;
  5368. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5369. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5370. let baseOptions;
  5371. if (configuration) {
  5372. baseOptions = configuration.baseOptions;
  5373. }
  5374. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5375. const localVarHeaderParameter = {} as any;
  5376. const localVarQueryParameter = {} as any;
  5377. // authentication cookie required
  5378. // authentication api_key required
  5379. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5380. // authentication bearer required
  5381. // http bearer authentication required
  5382. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5383. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5384. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5385. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5386. return {
  5387. url: toPathString(localVarUrlObj),
  5388. options: localVarRequestOptions,
  5389. };
  5390. },
  5391. /**
  5392. *
  5393. * @param {string} id
  5394. * @param {boolean} [withoutAssets]
  5395. * @param {string} [key]
  5396. * @param {*} [options] Override http request option.
  5397. * @throws {RequiredError}
  5398. */
  5399. getAlbumInfo: async (id: string, withoutAssets?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5400. // verify required parameter 'id' is not null or undefined
  5401. assertParamExists('getAlbumInfo', 'id', id)
  5402. const localVarPath = `/album/{id}`
  5403. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5404. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5405. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5406. let baseOptions;
  5407. if (configuration) {
  5408. baseOptions = configuration.baseOptions;
  5409. }
  5410. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5411. const localVarHeaderParameter = {} as any;
  5412. const localVarQueryParameter = {} as any;
  5413. // authentication cookie required
  5414. // authentication api_key required
  5415. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5416. // authentication bearer required
  5417. // http bearer authentication required
  5418. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5419. if (withoutAssets !== undefined) {
  5420. localVarQueryParameter['withoutAssets'] = withoutAssets;
  5421. }
  5422. if (key !== undefined) {
  5423. localVarQueryParameter['key'] = key;
  5424. }
  5425. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5426. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5427. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5428. return {
  5429. url: toPathString(localVarUrlObj),
  5430. options: localVarRequestOptions,
  5431. };
  5432. },
  5433. /**
  5434. *
  5435. * @param {boolean} [shared]
  5436. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5437. * @param {*} [options] Override http request option.
  5438. * @throws {RequiredError}
  5439. */
  5440. getAllAlbums: async (shared?: boolean, assetId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5441. const localVarPath = `/album`;
  5442. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5443. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5444. let baseOptions;
  5445. if (configuration) {
  5446. baseOptions = configuration.baseOptions;
  5447. }
  5448. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  5449. const localVarHeaderParameter = {} as any;
  5450. const localVarQueryParameter = {} as any;
  5451. // authentication cookie required
  5452. // authentication api_key required
  5453. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5454. // authentication bearer required
  5455. // http bearer authentication required
  5456. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5457. if (shared !== undefined) {
  5458. localVarQueryParameter['shared'] = shared;
  5459. }
  5460. if (assetId !== undefined) {
  5461. localVarQueryParameter['assetId'] = assetId;
  5462. }
  5463. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5464. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5465. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5466. return {
  5467. url: toPathString(localVarUrlObj),
  5468. options: localVarRequestOptions,
  5469. };
  5470. },
  5471. /**
  5472. *
  5473. * @param {string} id
  5474. * @param {BulkIdsDto} bulkIdsDto
  5475. * @param {*} [options] Override http request option.
  5476. * @throws {RequiredError}
  5477. */
  5478. removeAssetFromAlbum: async (id: string, bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5479. // verify required parameter 'id' is not null or undefined
  5480. assertParamExists('removeAssetFromAlbum', 'id', id)
  5481. // verify required parameter 'bulkIdsDto' is not null or undefined
  5482. assertParamExists('removeAssetFromAlbum', 'bulkIdsDto', bulkIdsDto)
  5483. const localVarPath = `/album/{id}/assets`
  5484. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5485. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5486. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5487. let baseOptions;
  5488. if (configuration) {
  5489. baseOptions = configuration.baseOptions;
  5490. }
  5491. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5492. const localVarHeaderParameter = {} as any;
  5493. const localVarQueryParameter = {} as any;
  5494. // authentication cookie required
  5495. // authentication api_key required
  5496. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5497. // authentication bearer required
  5498. // http bearer authentication required
  5499. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5500. localVarHeaderParameter['Content-Type'] = 'application/json';
  5501. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5502. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5503. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5504. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  5505. return {
  5506. url: toPathString(localVarUrlObj),
  5507. options: localVarRequestOptions,
  5508. };
  5509. },
  5510. /**
  5511. *
  5512. * @param {string} id
  5513. * @param {string} userId
  5514. * @param {*} [options] Override http request option.
  5515. * @throws {RequiredError}
  5516. */
  5517. removeUserFromAlbum: async (id: string, userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5518. // verify required parameter 'id' is not null or undefined
  5519. assertParamExists('removeUserFromAlbum', 'id', id)
  5520. // verify required parameter 'userId' is not null or undefined
  5521. assertParamExists('removeUserFromAlbum', 'userId', userId)
  5522. const localVarPath = `/album/{id}/user/{userId}`
  5523. .replace(`{${"id"}}`, encodeURIComponent(String(id)))
  5524. .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
  5525. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5526. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5527. let baseOptions;
  5528. if (configuration) {
  5529. baseOptions = configuration.baseOptions;
  5530. }
  5531. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  5532. const localVarHeaderParameter = {} as any;
  5533. const localVarQueryParameter = {} as any;
  5534. // authentication cookie required
  5535. // authentication api_key required
  5536. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5537. // authentication bearer required
  5538. // http bearer authentication required
  5539. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5540. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5541. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5542. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5543. return {
  5544. url: toPathString(localVarUrlObj),
  5545. options: localVarRequestOptions,
  5546. };
  5547. },
  5548. /**
  5549. *
  5550. * @param {string} id
  5551. * @param {UpdateAlbumDto} updateAlbumDto
  5552. * @param {*} [options] Override http request option.
  5553. * @throws {RequiredError}
  5554. */
  5555. updateAlbumInfo: async (id: string, updateAlbumDto: UpdateAlbumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  5556. // verify required parameter 'id' is not null or undefined
  5557. assertParamExists('updateAlbumInfo', 'id', id)
  5558. // verify required parameter 'updateAlbumDto' is not null or undefined
  5559. assertParamExists('updateAlbumInfo', 'updateAlbumDto', updateAlbumDto)
  5560. const localVarPath = `/album/{id}`
  5561. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  5562. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  5563. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  5564. let baseOptions;
  5565. if (configuration) {
  5566. baseOptions = configuration.baseOptions;
  5567. }
  5568. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  5569. const localVarHeaderParameter = {} as any;
  5570. const localVarQueryParameter = {} as any;
  5571. // authentication cookie required
  5572. // authentication api_key required
  5573. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  5574. // authentication bearer required
  5575. // http bearer authentication required
  5576. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  5577. localVarHeaderParameter['Content-Type'] = 'application/json';
  5578. setSearchParams(localVarUrlObj, localVarQueryParameter);
  5579. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  5580. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  5581. localVarRequestOptions.data = serializeDataIfNeeded(updateAlbumDto, localVarRequestOptions, configuration)
  5582. return {
  5583. url: toPathString(localVarUrlObj),
  5584. options: localVarRequestOptions,
  5585. };
  5586. },
  5587. }
  5588. };
  5589. /**
  5590. * AlbumApi - functional programming interface
  5591. * @export
  5592. */
  5593. export const AlbumApiFp = function(configuration?: Configuration) {
  5594. const localVarAxiosParamCreator = AlbumApiAxiosParamCreator(configuration)
  5595. return {
  5596. /**
  5597. *
  5598. * @param {string} id
  5599. * @param {BulkIdsDto} bulkIdsDto
  5600. * @param {string} [key]
  5601. * @param {*} [options] Override http request option.
  5602. * @throws {RequiredError}
  5603. */
  5604. async addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5605. const localVarAxiosArgs = await localVarAxiosParamCreator.addAssetsToAlbum(id, bulkIdsDto, key, options);
  5606. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5607. },
  5608. /**
  5609. *
  5610. * @param {string} id
  5611. * @param {AddUsersDto} addUsersDto
  5612. * @param {*} [options] Override http request option.
  5613. * @throws {RequiredError}
  5614. */
  5615. async addUsersToAlbum(id: string, addUsersDto: AddUsersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5616. const localVarAxiosArgs = await localVarAxiosParamCreator.addUsersToAlbum(id, addUsersDto, options);
  5617. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5618. },
  5619. /**
  5620. *
  5621. * @param {CreateAlbumDto} createAlbumDto
  5622. * @param {*} [options] Override http request option.
  5623. * @throws {RequiredError}
  5624. */
  5625. async createAlbum(createAlbumDto: CreateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5626. const localVarAxiosArgs = await localVarAxiosParamCreator.createAlbum(createAlbumDto, options);
  5627. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5628. },
  5629. /**
  5630. *
  5631. * @param {string} id
  5632. * @param {*} [options] Override http request option.
  5633. * @throws {RequiredError}
  5634. */
  5635. async deleteAlbum(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5636. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlbum(id, options);
  5637. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5638. },
  5639. /**
  5640. *
  5641. * @param {*} [options] Override http request option.
  5642. * @throws {RequiredError}
  5643. */
  5644. async getAlbumCount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumCountResponseDto>> {
  5645. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumCount(options);
  5646. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5647. },
  5648. /**
  5649. *
  5650. * @param {string} id
  5651. * @param {boolean} [withoutAssets]
  5652. * @param {string} [key]
  5653. * @param {*} [options] Override http request option.
  5654. * @throws {RequiredError}
  5655. */
  5656. async getAlbumInfo(id: string, withoutAssets?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5657. const localVarAxiosArgs = await localVarAxiosParamCreator.getAlbumInfo(id, withoutAssets, key, options);
  5658. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5659. },
  5660. /**
  5661. *
  5662. * @param {boolean} [shared]
  5663. * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5664. * @param {*} [options] Override http request option.
  5665. * @throws {RequiredError}
  5666. */
  5667. async getAllAlbums(shared?: boolean, assetId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AlbumResponseDto>>> {
  5668. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAlbums(shared, assetId, options);
  5669. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5670. },
  5671. /**
  5672. *
  5673. * @param {string} id
  5674. * @param {BulkIdsDto} bulkIdsDto
  5675. * @param {*} [options] Override http request option.
  5676. * @throws {RequiredError}
  5677. */
  5678. async removeAssetFromAlbum(id: string, bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  5679. const localVarAxiosArgs = await localVarAxiosParamCreator.removeAssetFromAlbum(id, bulkIdsDto, options);
  5680. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5681. },
  5682. /**
  5683. *
  5684. * @param {string} id
  5685. * @param {string} userId
  5686. * @param {*} [options] Override http request option.
  5687. * @throws {RequiredError}
  5688. */
  5689. async removeUserFromAlbum(id: string, userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  5690. const localVarAxiosArgs = await localVarAxiosParamCreator.removeUserFromAlbum(id, userId, options);
  5691. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5692. },
  5693. /**
  5694. *
  5695. * @param {string} id
  5696. * @param {UpdateAlbumDto} updateAlbumDto
  5697. * @param {*} [options] Override http request option.
  5698. * @throws {RequiredError}
  5699. */
  5700. async updateAlbumInfo(id: string, updateAlbumDto: UpdateAlbumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlbumResponseDto>> {
  5701. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlbumInfo(id, updateAlbumDto, options);
  5702. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  5703. },
  5704. }
  5705. };
  5706. /**
  5707. * AlbumApi - factory interface
  5708. * @export
  5709. */
  5710. export const AlbumApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  5711. const localVarFp = AlbumApiFp(configuration)
  5712. return {
  5713. /**
  5714. *
  5715. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5716. * @param {*} [options] Override http request option.
  5717. * @throws {RequiredError}
  5718. */
  5719. addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5720. return localVarFp.addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  5721. },
  5722. /**
  5723. *
  5724. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5725. * @param {*} [options] Override http request option.
  5726. * @throws {RequiredError}
  5727. */
  5728. addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5729. return localVarFp.addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(axios, basePath));
  5730. },
  5731. /**
  5732. *
  5733. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  5734. * @param {*} [options] Override http request option.
  5735. * @throws {RequiredError}
  5736. */
  5737. createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5738. return localVarFp.createAlbum(requestParameters.createAlbumDto, options).then((request) => request(axios, basePath));
  5739. },
  5740. /**
  5741. *
  5742. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  5743. * @param {*} [options] Override http request option.
  5744. * @throws {RequiredError}
  5745. */
  5746. deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5747. return localVarFp.deleteAlbum(requestParameters.id, options).then((request) => request(axios, basePath));
  5748. },
  5749. /**
  5750. *
  5751. * @param {*} [options] Override http request option.
  5752. * @throws {RequiredError}
  5753. */
  5754. getAlbumCount(options?: AxiosRequestConfig): AxiosPromise<AlbumCountResponseDto> {
  5755. return localVarFp.getAlbumCount(options).then((request) => request(axios, basePath));
  5756. },
  5757. /**
  5758. *
  5759. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  5760. * @param {*} [options] Override http request option.
  5761. * @throws {RequiredError}
  5762. */
  5763. getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5764. return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(axios, basePath));
  5765. },
  5766. /**
  5767. *
  5768. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  5769. * @param {*} [options] Override http request option.
  5770. * @throws {RequiredError}
  5771. */
  5772. getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AlbumResponseDto>> {
  5773. return localVarFp.getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(axios, basePath));
  5774. },
  5775. /**
  5776. *
  5777. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  5778. * @param {*} [options] Override http request option.
  5779. * @throws {RequiredError}
  5780. */
  5781. removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  5782. return localVarFp.removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  5783. },
  5784. /**
  5785. *
  5786. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  5787. * @param {*} [options] Override http request option.
  5788. * @throws {RequiredError}
  5789. */
  5790. removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  5791. return localVarFp.removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(axios, basePath));
  5792. },
  5793. /**
  5794. *
  5795. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  5796. * @param {*} [options] Override http request option.
  5797. * @throws {RequiredError}
  5798. */
  5799. updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
  5800. return localVarFp.updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(axios, basePath));
  5801. },
  5802. };
  5803. };
  5804. /**
  5805. * Request parameters for addAssetsToAlbum operation in AlbumApi.
  5806. * @export
  5807. * @interface AlbumApiAddAssetsToAlbumRequest
  5808. */
  5809. export interface AlbumApiAddAssetsToAlbumRequest {
  5810. /**
  5811. *
  5812. * @type {string}
  5813. * @memberof AlbumApiAddAssetsToAlbum
  5814. */
  5815. readonly id: string
  5816. /**
  5817. *
  5818. * @type {BulkIdsDto}
  5819. * @memberof AlbumApiAddAssetsToAlbum
  5820. */
  5821. readonly bulkIdsDto: BulkIdsDto
  5822. /**
  5823. *
  5824. * @type {string}
  5825. * @memberof AlbumApiAddAssetsToAlbum
  5826. */
  5827. readonly key?: string
  5828. }
  5829. /**
  5830. * Request parameters for addUsersToAlbum operation in AlbumApi.
  5831. * @export
  5832. * @interface AlbumApiAddUsersToAlbumRequest
  5833. */
  5834. export interface AlbumApiAddUsersToAlbumRequest {
  5835. /**
  5836. *
  5837. * @type {string}
  5838. * @memberof AlbumApiAddUsersToAlbum
  5839. */
  5840. readonly id: string
  5841. /**
  5842. *
  5843. * @type {AddUsersDto}
  5844. * @memberof AlbumApiAddUsersToAlbum
  5845. */
  5846. readonly addUsersDto: AddUsersDto
  5847. }
  5848. /**
  5849. * Request parameters for createAlbum operation in AlbumApi.
  5850. * @export
  5851. * @interface AlbumApiCreateAlbumRequest
  5852. */
  5853. export interface AlbumApiCreateAlbumRequest {
  5854. /**
  5855. *
  5856. * @type {CreateAlbumDto}
  5857. * @memberof AlbumApiCreateAlbum
  5858. */
  5859. readonly createAlbumDto: CreateAlbumDto
  5860. }
  5861. /**
  5862. * Request parameters for deleteAlbum operation in AlbumApi.
  5863. * @export
  5864. * @interface AlbumApiDeleteAlbumRequest
  5865. */
  5866. export interface AlbumApiDeleteAlbumRequest {
  5867. /**
  5868. *
  5869. * @type {string}
  5870. * @memberof AlbumApiDeleteAlbum
  5871. */
  5872. readonly id: string
  5873. }
  5874. /**
  5875. * Request parameters for getAlbumInfo operation in AlbumApi.
  5876. * @export
  5877. * @interface AlbumApiGetAlbumInfoRequest
  5878. */
  5879. export interface AlbumApiGetAlbumInfoRequest {
  5880. /**
  5881. *
  5882. * @type {string}
  5883. * @memberof AlbumApiGetAlbumInfo
  5884. */
  5885. readonly id: string
  5886. /**
  5887. *
  5888. * @type {boolean}
  5889. * @memberof AlbumApiGetAlbumInfo
  5890. */
  5891. readonly withoutAssets?: boolean
  5892. /**
  5893. *
  5894. * @type {string}
  5895. * @memberof AlbumApiGetAlbumInfo
  5896. */
  5897. readonly key?: string
  5898. }
  5899. /**
  5900. * Request parameters for getAllAlbums operation in AlbumApi.
  5901. * @export
  5902. * @interface AlbumApiGetAllAlbumsRequest
  5903. */
  5904. export interface AlbumApiGetAllAlbumsRequest {
  5905. /**
  5906. *
  5907. * @type {boolean}
  5908. * @memberof AlbumApiGetAllAlbums
  5909. */
  5910. readonly shared?: boolean
  5911. /**
  5912. * Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
  5913. * @type {string}
  5914. * @memberof AlbumApiGetAllAlbums
  5915. */
  5916. readonly assetId?: string
  5917. }
  5918. /**
  5919. * Request parameters for removeAssetFromAlbum operation in AlbumApi.
  5920. * @export
  5921. * @interface AlbumApiRemoveAssetFromAlbumRequest
  5922. */
  5923. export interface AlbumApiRemoveAssetFromAlbumRequest {
  5924. /**
  5925. *
  5926. * @type {string}
  5927. * @memberof AlbumApiRemoveAssetFromAlbum
  5928. */
  5929. readonly id: string
  5930. /**
  5931. *
  5932. * @type {BulkIdsDto}
  5933. * @memberof AlbumApiRemoveAssetFromAlbum
  5934. */
  5935. readonly bulkIdsDto: BulkIdsDto
  5936. }
  5937. /**
  5938. * Request parameters for removeUserFromAlbum operation in AlbumApi.
  5939. * @export
  5940. * @interface AlbumApiRemoveUserFromAlbumRequest
  5941. */
  5942. export interface AlbumApiRemoveUserFromAlbumRequest {
  5943. /**
  5944. *
  5945. * @type {string}
  5946. * @memberof AlbumApiRemoveUserFromAlbum
  5947. */
  5948. readonly id: string
  5949. /**
  5950. *
  5951. * @type {string}
  5952. * @memberof AlbumApiRemoveUserFromAlbum
  5953. */
  5954. readonly userId: string
  5955. }
  5956. /**
  5957. * Request parameters for updateAlbumInfo operation in AlbumApi.
  5958. * @export
  5959. * @interface AlbumApiUpdateAlbumInfoRequest
  5960. */
  5961. export interface AlbumApiUpdateAlbumInfoRequest {
  5962. /**
  5963. *
  5964. * @type {string}
  5965. * @memberof AlbumApiUpdateAlbumInfo
  5966. */
  5967. readonly id: string
  5968. /**
  5969. *
  5970. * @type {UpdateAlbumDto}
  5971. * @memberof AlbumApiUpdateAlbumInfo
  5972. */
  5973. readonly updateAlbumDto: UpdateAlbumDto
  5974. }
  5975. /**
  5976. * AlbumApi - object-oriented interface
  5977. * @export
  5978. * @class AlbumApi
  5979. * @extends {BaseAPI}
  5980. */
  5981. export class AlbumApi extends BaseAPI {
  5982. /**
  5983. *
  5984. * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
  5985. * @param {*} [options] Override http request option.
  5986. * @throws {RequiredError}
  5987. * @memberof AlbumApi
  5988. */
  5989. public addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig) {
  5990. return AlbumApiFp(this.configuration).addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  5991. }
  5992. /**
  5993. *
  5994. * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
  5995. * @param {*} [options] Override http request option.
  5996. * @throws {RequiredError}
  5997. * @memberof AlbumApi
  5998. */
  5999. public addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig) {
  6000. return AlbumApiFp(this.configuration).addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(this.axios, this.basePath));
  6001. }
  6002. /**
  6003. *
  6004. * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
  6005. * @param {*} [options] Override http request option.
  6006. * @throws {RequiredError}
  6007. * @memberof AlbumApi
  6008. */
  6009. public createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig) {
  6010. return AlbumApiFp(this.configuration).createAlbum(requestParameters.createAlbumDto, options).then((request) => request(this.axios, this.basePath));
  6011. }
  6012. /**
  6013. *
  6014. * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
  6015. * @param {*} [options] Override http request option.
  6016. * @throws {RequiredError}
  6017. * @memberof AlbumApi
  6018. */
  6019. public deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig) {
  6020. return AlbumApiFp(this.configuration).deleteAlbum(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  6021. }
  6022. /**
  6023. *
  6024. * @param {*} [options] Override http request option.
  6025. * @throws {RequiredError}
  6026. * @memberof AlbumApi
  6027. */
  6028. public getAlbumCount(options?: AxiosRequestConfig) {
  6029. return AlbumApiFp(this.configuration).getAlbumCount(options).then((request) => request(this.axios, this.basePath));
  6030. }
  6031. /**
  6032. *
  6033. * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
  6034. * @param {*} [options] Override http request option.
  6035. * @throws {RequiredError}
  6036. * @memberof AlbumApi
  6037. */
  6038. public getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig) {
  6039. return AlbumApiFp(this.configuration).getAlbumInfo(requestParameters.id, requestParameters.withoutAssets, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  6040. }
  6041. /**
  6042. *
  6043. * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
  6044. * @param {*} [options] Override http request option.
  6045. * @throws {RequiredError}
  6046. * @memberof AlbumApi
  6047. */
  6048. public getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig) {
  6049. return AlbumApiFp(this.configuration).getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(this.axios, this.basePath));
  6050. }
  6051. /**
  6052. *
  6053. * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
  6054. * @param {*} [options] Override http request option.
  6055. * @throws {RequiredError}
  6056. * @memberof AlbumApi
  6057. */
  6058. public removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig) {
  6059. return AlbumApiFp(this.configuration).removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  6060. }
  6061. /**
  6062. *
  6063. * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
  6064. * @param {*} [options] Override http request option.
  6065. * @throws {RequiredError}
  6066. * @memberof AlbumApi
  6067. */
  6068. public removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig) {
  6069. return AlbumApiFp(this.configuration).removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  6070. }
  6071. /**
  6072. *
  6073. * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
  6074. * @param {*} [options] Override http request option.
  6075. * @throws {RequiredError}
  6076. * @memberof AlbumApi
  6077. */
  6078. public updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig) {
  6079. return AlbumApiFp(this.configuration).updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(this.axios, this.basePath));
  6080. }
  6081. }
  6082. /**
  6083. * AssetApi - axios parameter creator
  6084. * @export
  6085. */
  6086. export const AssetApiAxiosParamCreator = function (configuration?: Configuration) {
  6087. return {
  6088. /**
  6089. * Checks if assets exist by checksums
  6090. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  6091. * @param {*} [options] Override http request option.
  6092. * @throws {RequiredError}
  6093. */
  6094. checkBulkUpload: async (assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6095. // verify required parameter 'assetBulkUploadCheckDto' is not null or undefined
  6096. assertParamExists('checkBulkUpload', 'assetBulkUploadCheckDto', assetBulkUploadCheckDto)
  6097. const localVarPath = `/asset/bulk-upload-check`;
  6098. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6099. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6100. let baseOptions;
  6101. if (configuration) {
  6102. baseOptions = configuration.baseOptions;
  6103. }
  6104. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6105. const localVarHeaderParameter = {} as any;
  6106. const localVarQueryParameter = {} as any;
  6107. // authentication cookie required
  6108. // authentication api_key required
  6109. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6110. // authentication bearer required
  6111. // http bearer authentication required
  6112. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6113. localVarHeaderParameter['Content-Type'] = 'application/json';
  6114. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6115. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6116. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6117. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUploadCheckDto, localVarRequestOptions, configuration)
  6118. return {
  6119. url: toPathString(localVarUrlObj),
  6120. options: localVarRequestOptions,
  6121. };
  6122. },
  6123. /**
  6124. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  6125. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  6126. * @param {*} [options] Override http request option.
  6127. * @throws {RequiredError}
  6128. */
  6129. checkExistingAssets: async (checkExistingAssetsDto: CheckExistingAssetsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6130. // verify required parameter 'checkExistingAssetsDto' is not null or undefined
  6131. assertParamExists('checkExistingAssets', 'checkExistingAssetsDto', checkExistingAssetsDto)
  6132. const localVarPath = `/asset/exist`;
  6133. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6134. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6135. let baseOptions;
  6136. if (configuration) {
  6137. baseOptions = configuration.baseOptions;
  6138. }
  6139. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6140. const localVarHeaderParameter = {} as any;
  6141. const localVarQueryParameter = {} as any;
  6142. // authentication cookie required
  6143. // authentication api_key required
  6144. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6145. // authentication bearer required
  6146. // http bearer authentication required
  6147. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6148. localVarHeaderParameter['Content-Type'] = 'application/json';
  6149. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6150. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6151. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6152. localVarRequestOptions.data = serializeDataIfNeeded(checkExistingAssetsDto, localVarRequestOptions, configuration)
  6153. return {
  6154. url: toPathString(localVarUrlObj),
  6155. options: localVarRequestOptions,
  6156. };
  6157. },
  6158. /**
  6159. *
  6160. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  6161. * @param {*} [options] Override http request option.
  6162. * @throws {RequiredError}
  6163. */
  6164. deleteAssets: async (assetBulkDeleteDto: AssetBulkDeleteDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6165. // verify required parameter 'assetBulkDeleteDto' is not null or undefined
  6166. assertParamExists('deleteAssets', 'assetBulkDeleteDto', assetBulkDeleteDto)
  6167. const localVarPath = `/asset`;
  6168. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6169. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6170. let baseOptions;
  6171. if (configuration) {
  6172. baseOptions = configuration.baseOptions;
  6173. }
  6174. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  6175. const localVarHeaderParameter = {} as any;
  6176. const localVarQueryParameter = {} as any;
  6177. // authentication cookie required
  6178. // authentication api_key required
  6179. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6180. // authentication bearer required
  6181. // http bearer authentication required
  6182. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6183. localVarHeaderParameter['Content-Type'] = 'application/json';
  6184. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6185. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6186. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6187. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkDeleteDto, localVarRequestOptions, configuration)
  6188. return {
  6189. url: toPathString(localVarUrlObj),
  6190. options: localVarRequestOptions,
  6191. };
  6192. },
  6193. /**
  6194. *
  6195. * @param {AssetIdsDto} assetIdsDto
  6196. * @param {string} [key]
  6197. * @param {*} [options] Override http request option.
  6198. * @throws {RequiredError}
  6199. */
  6200. downloadArchive: async (assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6201. // verify required parameter 'assetIdsDto' is not null or undefined
  6202. assertParamExists('downloadArchive', 'assetIdsDto', assetIdsDto)
  6203. const localVarPath = `/asset/download/archive`;
  6204. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6205. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6206. let baseOptions;
  6207. if (configuration) {
  6208. baseOptions = configuration.baseOptions;
  6209. }
  6210. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6211. const localVarHeaderParameter = {} as any;
  6212. const localVarQueryParameter = {} as any;
  6213. // authentication cookie required
  6214. // authentication api_key required
  6215. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6216. // authentication bearer required
  6217. // http bearer authentication required
  6218. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6219. if (key !== undefined) {
  6220. localVarQueryParameter['key'] = key;
  6221. }
  6222. localVarHeaderParameter['Content-Type'] = 'application/json';
  6223. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6224. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6225. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6226. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  6227. return {
  6228. url: toPathString(localVarUrlObj),
  6229. options: localVarRequestOptions,
  6230. };
  6231. },
  6232. /**
  6233. *
  6234. * @param {string} id
  6235. * @param {string} [key]
  6236. * @param {*} [options] Override http request option.
  6237. * @throws {RequiredError}
  6238. */
  6239. downloadFile: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6240. // verify required parameter 'id' is not null or undefined
  6241. assertParamExists('downloadFile', 'id', id)
  6242. const localVarPath = `/asset/download/{id}`
  6243. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  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: 'POST', ...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. if (key !== undefined) {
  6260. localVarQueryParameter['key'] = key;
  6261. }
  6262. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6263. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6264. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6265. return {
  6266. url: toPathString(localVarUrlObj),
  6267. options: localVarRequestOptions,
  6268. };
  6269. },
  6270. /**
  6271. *
  6272. * @param {*} [options] Override http request option.
  6273. * @throws {RequiredError}
  6274. */
  6275. emptyTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6276. const localVarPath = `/asset/trash/empty`;
  6277. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6278. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6279. let baseOptions;
  6280. if (configuration) {
  6281. baseOptions = configuration.baseOptions;
  6282. }
  6283. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6284. const localVarHeaderParameter = {} as any;
  6285. const localVarQueryParameter = {} as any;
  6286. // authentication cookie required
  6287. // authentication api_key required
  6288. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6289. // authentication bearer required
  6290. // http bearer authentication required
  6291. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6292. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6293. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6294. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6295. return {
  6296. url: toPathString(localVarUrlObj),
  6297. options: localVarRequestOptions,
  6298. };
  6299. },
  6300. /**
  6301. * Get all AssetEntity belong to the user
  6302. * @param {number} [skip]
  6303. * @param {number} [take]
  6304. * @param {string} [userId]
  6305. * @param {boolean} [isFavorite]
  6306. * @param {boolean} [isArchived]
  6307. * @param {string} [updatedAfter]
  6308. * @param {string} [updatedBefore]
  6309. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  6310. * @param {*} [options] Override http request option.
  6311. * @throws {RequiredError}
  6312. */
  6313. getAllAssets: async (skip?: number, take?: number, userId?: string, isFavorite?: boolean, isArchived?: boolean, updatedAfter?: string, updatedBefore?: string, ifNoneMatch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6314. const localVarPath = `/asset`;
  6315. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6316. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6317. let baseOptions;
  6318. if (configuration) {
  6319. baseOptions = configuration.baseOptions;
  6320. }
  6321. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6322. const localVarHeaderParameter = {} as any;
  6323. const localVarQueryParameter = {} as any;
  6324. // authentication cookie required
  6325. // authentication api_key required
  6326. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6327. // authentication bearer required
  6328. // http bearer authentication required
  6329. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6330. if (skip !== undefined) {
  6331. localVarQueryParameter['skip'] = skip;
  6332. }
  6333. if (take !== undefined) {
  6334. localVarQueryParameter['take'] = take;
  6335. }
  6336. if (userId !== undefined) {
  6337. localVarQueryParameter['userId'] = userId;
  6338. }
  6339. if (isFavorite !== undefined) {
  6340. localVarQueryParameter['isFavorite'] = isFavorite;
  6341. }
  6342. if (isArchived !== undefined) {
  6343. localVarQueryParameter['isArchived'] = isArchived;
  6344. }
  6345. if (updatedAfter !== undefined) {
  6346. localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
  6347. (updatedAfter as any).toISOString() :
  6348. updatedAfter;
  6349. }
  6350. if (updatedBefore !== undefined) {
  6351. localVarQueryParameter['updatedBefore'] = (updatedBefore as any instanceof Date) ?
  6352. (updatedBefore as any).toISOString() :
  6353. updatedBefore;
  6354. }
  6355. if (ifNoneMatch != null) {
  6356. localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
  6357. }
  6358. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6359. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6360. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6361. return {
  6362. url: toPathString(localVarUrlObj),
  6363. options: localVarRequestOptions,
  6364. };
  6365. },
  6366. /**
  6367. * Get all asset of a device that are in the database, ID only.
  6368. * @param {string} deviceId
  6369. * @param {*} [options] Override http request option.
  6370. * @throws {RequiredError}
  6371. */
  6372. getAllUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6373. // verify required parameter 'deviceId' is not null or undefined
  6374. assertParamExists('getAllUserAssetsByDeviceId', 'deviceId', deviceId)
  6375. const localVarPath = `/asset/device/{deviceId}`
  6376. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  6377. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6378. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6379. let baseOptions;
  6380. if (configuration) {
  6381. baseOptions = configuration.baseOptions;
  6382. }
  6383. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6384. const localVarHeaderParameter = {} as any;
  6385. const localVarQueryParameter = {} as any;
  6386. // authentication cookie required
  6387. // authentication api_key required
  6388. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6389. // authentication bearer required
  6390. // http bearer authentication required
  6391. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6392. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6393. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6394. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6395. return {
  6396. url: toPathString(localVarUrlObj),
  6397. options: localVarRequestOptions,
  6398. };
  6399. },
  6400. /**
  6401. * Get a single asset\'s information
  6402. * @param {string} id
  6403. * @param {string} [key]
  6404. * @param {*} [options] Override http request option.
  6405. * @throws {RequiredError}
  6406. */
  6407. getAssetById: async (id: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6408. // verify required parameter 'id' is not null or undefined
  6409. assertParamExists('getAssetById', 'id', id)
  6410. const localVarPath = `/asset/assetById/{id}`
  6411. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6412. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6413. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6414. let baseOptions;
  6415. if (configuration) {
  6416. baseOptions = configuration.baseOptions;
  6417. }
  6418. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6419. const localVarHeaderParameter = {} as any;
  6420. const localVarQueryParameter = {} as any;
  6421. // authentication cookie required
  6422. // authentication api_key required
  6423. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6424. // authentication bearer required
  6425. // http bearer authentication required
  6426. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6427. if (key !== undefined) {
  6428. localVarQueryParameter['key'] = key;
  6429. }
  6430. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6431. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6432. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6433. return {
  6434. url: toPathString(localVarUrlObj),
  6435. options: localVarRequestOptions,
  6436. };
  6437. },
  6438. /**
  6439. *
  6440. * @param {*} [options] Override http request option.
  6441. * @throws {RequiredError}
  6442. */
  6443. getAssetSearchTerms: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6444. const localVarPath = `/asset/search-terms`;
  6445. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6446. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6447. let baseOptions;
  6448. if (configuration) {
  6449. baseOptions = configuration.baseOptions;
  6450. }
  6451. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6452. const localVarHeaderParameter = {} as any;
  6453. const localVarQueryParameter = {} as any;
  6454. // authentication cookie required
  6455. // authentication api_key required
  6456. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6457. // authentication bearer required
  6458. // http bearer authentication required
  6459. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6460. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6461. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6462. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6463. return {
  6464. url: toPathString(localVarUrlObj),
  6465. options: localVarRequestOptions,
  6466. };
  6467. },
  6468. /**
  6469. *
  6470. * @param {boolean} [isArchived]
  6471. * @param {boolean} [isFavorite]
  6472. * @param {boolean} [isTrashed]
  6473. * @param {*} [options] Override http request option.
  6474. * @throws {RequiredError}
  6475. */
  6476. getAssetStatistics: async (isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6477. const localVarPath = `/asset/statistics`;
  6478. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6479. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6480. let baseOptions;
  6481. if (configuration) {
  6482. baseOptions = configuration.baseOptions;
  6483. }
  6484. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6485. const localVarHeaderParameter = {} as any;
  6486. const localVarQueryParameter = {} as any;
  6487. // authentication cookie required
  6488. // authentication api_key required
  6489. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6490. // authentication bearer required
  6491. // http bearer authentication required
  6492. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6493. if (isArchived !== undefined) {
  6494. localVarQueryParameter['isArchived'] = isArchived;
  6495. }
  6496. if (isFavorite !== undefined) {
  6497. localVarQueryParameter['isFavorite'] = isFavorite;
  6498. }
  6499. if (isTrashed !== undefined) {
  6500. localVarQueryParameter['isTrashed'] = isTrashed;
  6501. }
  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 {string} id
  6513. * @param {ThumbnailFormat} [format]
  6514. * @param {string} [key]
  6515. * @param {*} [options] Override http request option.
  6516. * @throws {RequiredError}
  6517. */
  6518. getAssetThumbnail: async (id: string, format?: ThumbnailFormat, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6519. // verify required parameter 'id' is not null or undefined
  6520. assertParamExists('getAssetThumbnail', 'id', id)
  6521. const localVarPath = `/asset/thumbnail/{id}`
  6522. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  6523. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6524. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6525. let baseOptions;
  6526. if (configuration) {
  6527. baseOptions = configuration.baseOptions;
  6528. }
  6529. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6530. const localVarHeaderParameter = {} as any;
  6531. const localVarQueryParameter = {} as any;
  6532. // authentication cookie required
  6533. // authentication api_key required
  6534. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6535. // authentication bearer required
  6536. // http bearer authentication required
  6537. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6538. if (format !== undefined) {
  6539. localVarQueryParameter['format'] = format;
  6540. }
  6541. if (key !== undefined) {
  6542. localVarQueryParameter['key'] = key;
  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 {*} [options] Override http request option.
  6555. * @throws {RequiredError}
  6556. */
  6557. getCuratedLocations: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6558. const localVarPath = `/asset/curated-locations`;
  6559. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6560. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6561. let baseOptions;
  6562. if (configuration) {
  6563. baseOptions = configuration.baseOptions;
  6564. }
  6565. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6566. const localVarHeaderParameter = {} as any;
  6567. const localVarQueryParameter = {} as any;
  6568. // authentication cookie required
  6569. // authentication api_key required
  6570. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6571. // authentication bearer required
  6572. // http bearer authentication required
  6573. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6574. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6575. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6576. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6577. return {
  6578. url: toPathString(localVarUrlObj),
  6579. options: localVarRequestOptions,
  6580. };
  6581. },
  6582. /**
  6583. *
  6584. * @param {*} [options] Override http request option.
  6585. * @throws {RequiredError}
  6586. */
  6587. getCuratedObjects: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6588. const localVarPath = `/asset/curated-objects`;
  6589. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6590. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6591. let baseOptions;
  6592. if (configuration) {
  6593. baseOptions = configuration.baseOptions;
  6594. }
  6595. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6596. const localVarHeaderParameter = {} as any;
  6597. const localVarQueryParameter = {} as any;
  6598. // authentication cookie required
  6599. // authentication api_key required
  6600. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6601. // authentication bearer required
  6602. // http bearer authentication required
  6603. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6604. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6605. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6606. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6607. return {
  6608. url: toPathString(localVarUrlObj),
  6609. options: localVarRequestOptions,
  6610. };
  6611. },
  6612. /**
  6613. *
  6614. * @param {DownloadInfoDto} downloadInfoDto
  6615. * @param {string} [key]
  6616. * @param {*} [options] Override http request option.
  6617. * @throws {RequiredError}
  6618. */
  6619. getDownloadInfo: async (downloadInfoDto: DownloadInfoDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6620. // verify required parameter 'downloadInfoDto' is not null or undefined
  6621. assertParamExists('getDownloadInfo', 'downloadInfoDto', downloadInfoDto)
  6622. const localVarPath = `/asset/download/info`;
  6623. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6624. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6625. let baseOptions;
  6626. if (configuration) {
  6627. baseOptions = configuration.baseOptions;
  6628. }
  6629. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6630. const localVarHeaderParameter = {} as any;
  6631. const localVarQueryParameter = {} as any;
  6632. // authentication cookie required
  6633. // authentication api_key required
  6634. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6635. // authentication bearer required
  6636. // http bearer authentication required
  6637. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6638. if (key !== undefined) {
  6639. localVarQueryParameter['key'] = key;
  6640. }
  6641. localVarHeaderParameter['Content-Type'] = 'application/json';
  6642. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6643. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6644. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6645. localVarRequestOptions.data = serializeDataIfNeeded(downloadInfoDto, localVarRequestOptions, configuration)
  6646. return {
  6647. url: toPathString(localVarUrlObj),
  6648. options: localVarRequestOptions,
  6649. };
  6650. },
  6651. /**
  6652. *
  6653. * @param {boolean} [isArchived]
  6654. * @param {boolean} [isFavorite]
  6655. * @param {string} [fileCreatedAfter]
  6656. * @param {string} [fileCreatedBefore]
  6657. * @param {*} [options] Override http request option.
  6658. * @throws {RequiredError}
  6659. */
  6660. getMapMarkers: async (isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6661. const localVarPath = `/asset/map-marker`;
  6662. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6663. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6664. let baseOptions;
  6665. if (configuration) {
  6666. baseOptions = configuration.baseOptions;
  6667. }
  6668. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6669. const localVarHeaderParameter = {} as any;
  6670. const localVarQueryParameter = {} as any;
  6671. // authentication cookie required
  6672. // authentication api_key required
  6673. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6674. // authentication bearer required
  6675. // http bearer authentication required
  6676. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6677. if (isArchived !== undefined) {
  6678. localVarQueryParameter['isArchived'] = isArchived;
  6679. }
  6680. if (isFavorite !== undefined) {
  6681. localVarQueryParameter['isFavorite'] = isFavorite;
  6682. }
  6683. if (fileCreatedAfter !== undefined) {
  6684. localVarQueryParameter['fileCreatedAfter'] = (fileCreatedAfter as any instanceof Date) ?
  6685. (fileCreatedAfter as any).toISOString() :
  6686. fileCreatedAfter;
  6687. }
  6688. if (fileCreatedBefore !== undefined) {
  6689. localVarQueryParameter['fileCreatedBefore'] = (fileCreatedBefore as any instanceof Date) ?
  6690. (fileCreatedBefore as any).toISOString() :
  6691. fileCreatedBefore;
  6692. }
  6693. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6694. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6695. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6696. return {
  6697. url: toPathString(localVarUrlObj),
  6698. options: localVarRequestOptions,
  6699. };
  6700. },
  6701. /**
  6702. *
  6703. * @param {number} day
  6704. * @param {number} month
  6705. * @param {*} [options] Override http request option.
  6706. * @throws {RequiredError}
  6707. */
  6708. getMemoryLane: async (day: number, month: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6709. // verify required parameter 'day' is not null or undefined
  6710. assertParamExists('getMemoryLane', 'day', day)
  6711. // verify required parameter 'month' is not null or undefined
  6712. assertParamExists('getMemoryLane', 'month', month)
  6713. const localVarPath = `/asset/memory-lane`;
  6714. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6715. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6716. let baseOptions;
  6717. if (configuration) {
  6718. baseOptions = configuration.baseOptions;
  6719. }
  6720. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6721. const localVarHeaderParameter = {} as any;
  6722. const localVarQueryParameter = {} as any;
  6723. // authentication cookie required
  6724. // authentication api_key required
  6725. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6726. // authentication bearer required
  6727. // http bearer authentication required
  6728. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6729. if (day !== undefined) {
  6730. localVarQueryParameter['day'] = day;
  6731. }
  6732. if (month !== undefined) {
  6733. localVarQueryParameter['month'] = month;
  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} [count]
  6746. * @param {*} [options] Override http request option.
  6747. * @throws {RequiredError}
  6748. */
  6749. getRandom: async (count?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6750. const localVarPath = `/asset/random`;
  6751. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6752. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6753. let baseOptions;
  6754. if (configuration) {
  6755. baseOptions = configuration.baseOptions;
  6756. }
  6757. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6758. const localVarHeaderParameter = {} as any;
  6759. const localVarQueryParameter = {} as any;
  6760. // authentication cookie required
  6761. // authentication api_key required
  6762. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6763. // authentication bearer required
  6764. // http bearer authentication required
  6765. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6766. if (count !== undefined) {
  6767. localVarQueryParameter['count'] = count;
  6768. }
  6769. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6770. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6771. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6772. return {
  6773. url: toPathString(localVarUrlObj),
  6774. options: localVarRequestOptions,
  6775. };
  6776. },
  6777. /**
  6778. *
  6779. * @param {TimeBucketSize} size
  6780. * @param {string} timeBucket
  6781. * @param {string} [userId]
  6782. * @param {string} [albumId]
  6783. * @param {string} [personId]
  6784. * @param {boolean} [isArchived]
  6785. * @param {boolean} [isFavorite]
  6786. * @param {boolean} [isTrashed]
  6787. * @param {boolean} [withStacked]
  6788. * @param {boolean} [withPartners]
  6789. * @param {string} [key]
  6790. * @param {*} [options] Override http request option.
  6791. * @throws {RequiredError}
  6792. */
  6793. 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> => {
  6794. // verify required parameter 'size' is not null or undefined
  6795. assertParamExists('getTimeBucket', 'size', size)
  6796. // verify required parameter 'timeBucket' is not null or undefined
  6797. assertParamExists('getTimeBucket', 'timeBucket', timeBucket)
  6798. const localVarPath = `/asset/time-bucket`;
  6799. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6800. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6801. let baseOptions;
  6802. if (configuration) {
  6803. baseOptions = configuration.baseOptions;
  6804. }
  6805. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6806. const localVarHeaderParameter = {} as any;
  6807. const localVarQueryParameter = {} as any;
  6808. // authentication cookie required
  6809. // authentication api_key required
  6810. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6811. // authentication bearer required
  6812. // http bearer authentication required
  6813. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6814. if (size !== undefined) {
  6815. localVarQueryParameter['size'] = size;
  6816. }
  6817. if (userId !== undefined) {
  6818. localVarQueryParameter['userId'] = userId;
  6819. }
  6820. if (albumId !== undefined) {
  6821. localVarQueryParameter['albumId'] = albumId;
  6822. }
  6823. if (personId !== undefined) {
  6824. localVarQueryParameter['personId'] = personId;
  6825. }
  6826. if (isArchived !== undefined) {
  6827. localVarQueryParameter['isArchived'] = isArchived;
  6828. }
  6829. if (isFavorite !== undefined) {
  6830. localVarQueryParameter['isFavorite'] = isFavorite;
  6831. }
  6832. if (isTrashed !== undefined) {
  6833. localVarQueryParameter['isTrashed'] = isTrashed;
  6834. }
  6835. if (withStacked !== undefined) {
  6836. localVarQueryParameter['withStacked'] = withStacked;
  6837. }
  6838. if (withPartners !== undefined) {
  6839. localVarQueryParameter['withPartners'] = withPartners;
  6840. }
  6841. if (timeBucket !== undefined) {
  6842. localVarQueryParameter['timeBucket'] = timeBucket;
  6843. }
  6844. if (key !== undefined) {
  6845. localVarQueryParameter['key'] = key;
  6846. }
  6847. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6848. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6849. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6850. return {
  6851. url: toPathString(localVarUrlObj),
  6852. options: localVarRequestOptions,
  6853. };
  6854. },
  6855. /**
  6856. *
  6857. * @param {TimeBucketSize} size
  6858. * @param {string} [userId]
  6859. * @param {string} [albumId]
  6860. * @param {string} [personId]
  6861. * @param {boolean} [isArchived]
  6862. * @param {boolean} [isFavorite]
  6863. * @param {boolean} [isTrashed]
  6864. * @param {boolean} [withStacked]
  6865. * @param {boolean} [withPartners]
  6866. * @param {string} [key]
  6867. * @param {*} [options] Override http request option.
  6868. * @throws {RequiredError}
  6869. */
  6870. 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> => {
  6871. // verify required parameter 'size' is not null or undefined
  6872. assertParamExists('getTimeBuckets', 'size', size)
  6873. const localVarPath = `/asset/time-buckets`;
  6874. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6875. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6876. let baseOptions;
  6877. if (configuration) {
  6878. baseOptions = configuration.baseOptions;
  6879. }
  6880. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6881. const localVarHeaderParameter = {} as any;
  6882. const localVarQueryParameter = {} as any;
  6883. // authentication cookie required
  6884. // authentication api_key required
  6885. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6886. // authentication bearer required
  6887. // http bearer authentication required
  6888. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6889. if (size !== undefined) {
  6890. localVarQueryParameter['size'] = size;
  6891. }
  6892. if (userId !== undefined) {
  6893. localVarQueryParameter['userId'] = userId;
  6894. }
  6895. if (albumId !== undefined) {
  6896. localVarQueryParameter['albumId'] = albumId;
  6897. }
  6898. if (personId !== undefined) {
  6899. localVarQueryParameter['personId'] = personId;
  6900. }
  6901. if (isArchived !== undefined) {
  6902. localVarQueryParameter['isArchived'] = isArchived;
  6903. }
  6904. if (isFavorite !== undefined) {
  6905. localVarQueryParameter['isFavorite'] = isFavorite;
  6906. }
  6907. if (isTrashed !== undefined) {
  6908. localVarQueryParameter['isTrashed'] = isTrashed;
  6909. }
  6910. if (withStacked !== undefined) {
  6911. localVarQueryParameter['withStacked'] = withStacked;
  6912. }
  6913. if (withPartners !== undefined) {
  6914. localVarQueryParameter['withPartners'] = withPartners;
  6915. }
  6916. if (key !== undefined) {
  6917. localVarQueryParameter['key'] = key;
  6918. }
  6919. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6920. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6921. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6922. return {
  6923. url: toPathString(localVarUrlObj),
  6924. options: localVarRequestOptions,
  6925. };
  6926. },
  6927. /**
  6928. *
  6929. * @summary Use /asset/device/:deviceId instead - Remove in 1.92 release
  6930. * @param {string} deviceId
  6931. * @param {*} [options] Override http request option.
  6932. * @deprecated
  6933. * @throws {RequiredError}
  6934. */
  6935. getUserAssetsByDeviceId: async (deviceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6936. // verify required parameter 'deviceId' is not null or undefined
  6937. assertParamExists('getUserAssetsByDeviceId', 'deviceId', deviceId)
  6938. const localVarPath = `/asset/{deviceId}`
  6939. .replace(`{${"deviceId"}}`, encodeURIComponent(String(deviceId)));
  6940. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6941. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6942. let baseOptions;
  6943. if (configuration) {
  6944. baseOptions = configuration.baseOptions;
  6945. }
  6946. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  6947. const localVarHeaderParameter = {} as any;
  6948. const localVarQueryParameter = {} as any;
  6949. // authentication cookie required
  6950. // authentication api_key required
  6951. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6952. // authentication bearer required
  6953. // http bearer authentication required
  6954. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6955. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6956. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6957. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6958. return {
  6959. url: toPathString(localVarUrlObj),
  6960. options: localVarRequestOptions,
  6961. };
  6962. },
  6963. /**
  6964. *
  6965. * @param {BulkIdsDto} bulkIdsDto
  6966. * @param {*} [options] Override http request option.
  6967. * @throws {RequiredError}
  6968. */
  6969. restoreAssets: async (bulkIdsDto: BulkIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  6970. // verify required parameter 'bulkIdsDto' is not null or undefined
  6971. assertParamExists('restoreAssets', 'bulkIdsDto', bulkIdsDto)
  6972. const localVarPath = `/asset/restore`;
  6973. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  6974. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  6975. let baseOptions;
  6976. if (configuration) {
  6977. baseOptions = configuration.baseOptions;
  6978. }
  6979. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  6980. const localVarHeaderParameter = {} as any;
  6981. const localVarQueryParameter = {} as any;
  6982. // authentication cookie required
  6983. // authentication api_key required
  6984. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  6985. // authentication bearer required
  6986. // http bearer authentication required
  6987. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  6988. localVarHeaderParameter['Content-Type'] = 'application/json';
  6989. setSearchParams(localVarUrlObj, localVarQueryParameter);
  6990. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  6991. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  6992. localVarRequestOptions.data = serializeDataIfNeeded(bulkIdsDto, localVarRequestOptions, configuration)
  6993. return {
  6994. url: toPathString(localVarUrlObj),
  6995. options: localVarRequestOptions,
  6996. };
  6997. },
  6998. /**
  6999. *
  7000. * @param {*} [options] Override http request option.
  7001. * @throws {RequiredError}
  7002. */
  7003. restoreTrash: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7004. const localVarPath = `/asset/trash/restore`;
  7005. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7006. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7007. let baseOptions;
  7008. if (configuration) {
  7009. baseOptions = configuration.baseOptions;
  7010. }
  7011. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7012. const localVarHeaderParameter = {} as any;
  7013. const localVarQueryParameter = {} as any;
  7014. // authentication cookie required
  7015. // authentication api_key required
  7016. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7017. // authentication bearer required
  7018. // http bearer authentication required
  7019. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7020. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7021. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7022. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7023. return {
  7024. url: toPathString(localVarUrlObj),
  7025. options: localVarRequestOptions,
  7026. };
  7027. },
  7028. /**
  7029. *
  7030. * @param {AssetJobsDto} assetJobsDto
  7031. * @param {*} [options] Override http request option.
  7032. * @throws {RequiredError}
  7033. */
  7034. runAssetJobs: async (assetJobsDto: AssetJobsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7035. // verify required parameter 'assetJobsDto' is not null or undefined
  7036. assertParamExists('runAssetJobs', 'assetJobsDto', assetJobsDto)
  7037. const localVarPath = `/asset/jobs`;
  7038. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7039. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7040. let baseOptions;
  7041. if (configuration) {
  7042. baseOptions = configuration.baseOptions;
  7043. }
  7044. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7045. const localVarHeaderParameter = {} as any;
  7046. const localVarQueryParameter = {} as any;
  7047. // authentication cookie required
  7048. // authentication api_key required
  7049. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7050. // authentication bearer required
  7051. // http bearer authentication required
  7052. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7053. localVarHeaderParameter['Content-Type'] = 'application/json';
  7054. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7055. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7056. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7057. localVarRequestOptions.data = serializeDataIfNeeded(assetJobsDto, localVarRequestOptions, configuration)
  7058. return {
  7059. url: toPathString(localVarUrlObj),
  7060. options: localVarRequestOptions,
  7061. };
  7062. },
  7063. /**
  7064. *
  7065. * @param {string} [id]
  7066. * @param {string} [libraryId]
  7067. * @param {AssetTypeEnum} [type]
  7068. * @param {AssetOrder} [order]
  7069. * @param {string} [deviceAssetId]
  7070. * @param {string} [deviceId]
  7071. * @param {string} [checksum]
  7072. * @param {boolean} [isArchived]
  7073. * @param {boolean} [isEncoded]
  7074. * @param {boolean} [isExternal]
  7075. * @param {boolean} [isFavorite]
  7076. * @param {boolean} [isMotion]
  7077. * @param {boolean} [isOffline]
  7078. * @param {boolean} [isReadOnly]
  7079. * @param {boolean} [isVisible]
  7080. * @param {boolean} [withDeleted]
  7081. * @param {boolean} [withStacked]
  7082. * @param {boolean} [withExif]
  7083. * @param {boolean} [withPeople]
  7084. * @param {string} [createdBefore]
  7085. * @param {string} [createdAfter]
  7086. * @param {string} [updatedBefore]
  7087. * @param {string} [updatedAfter]
  7088. * @param {string} [trashedBefore]
  7089. * @param {string} [trashedAfter]
  7090. * @param {string} [takenBefore]
  7091. * @param {string} [takenAfter]
  7092. * @param {string} [originalFileName]
  7093. * @param {string} [originalPath]
  7094. * @param {string} [resizePath]
  7095. * @param {string} [webpPath]
  7096. * @param {string} [encodedVideoPath]
  7097. * @param {string} [city]
  7098. * @param {string} [state]
  7099. * @param {string} [country]
  7100. * @param {string} [make]
  7101. * @param {string} [model]
  7102. * @param {string} [lensModel]
  7103. * @param {number} [page]
  7104. * @param {number} [size]
  7105. * @param {*} [options] Override http request option.
  7106. * @throws {RequiredError}
  7107. */
  7108. searchAssets: async (id?: string, libraryId?: string, type?: AssetTypeEnum, order?: AssetOrder, deviceAssetId?: string, deviceId?: string, checksum?: string, isArchived?: boolean, isEncoded?: boolean, isExternal?: boolean, isFavorite?: boolean, isMotion?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, withDeleted?: boolean, withStacked?: boolean, withExif?: boolean, withPeople?: boolean, createdBefore?: string, createdAfter?: string, updatedBefore?: string, updatedAfter?: string, trashedBefore?: string, trashedAfter?: string, takenBefore?: string, takenAfter?: string, originalFileName?: string, originalPath?: string, resizePath?: string, webpPath?: string, encodedVideoPath?: string, city?: string, state?: string, country?: string, make?: string, model?: string, lensModel?: string, page?: number, size?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7109. const localVarPath = `/assets`;
  7110. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7111. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7112. let baseOptions;
  7113. if (configuration) {
  7114. baseOptions = configuration.baseOptions;
  7115. }
  7116. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7117. const localVarHeaderParameter = {} as any;
  7118. const localVarQueryParameter = {} as any;
  7119. // authentication cookie required
  7120. // authentication api_key required
  7121. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7122. // authentication bearer required
  7123. // http bearer authentication required
  7124. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7125. if (id !== undefined) {
  7126. localVarQueryParameter['id'] = id;
  7127. }
  7128. if (libraryId !== undefined) {
  7129. localVarQueryParameter['libraryId'] = libraryId;
  7130. }
  7131. if (type !== undefined) {
  7132. localVarQueryParameter['type'] = type;
  7133. }
  7134. if (order !== undefined) {
  7135. localVarQueryParameter['order'] = order;
  7136. }
  7137. if (deviceAssetId !== undefined) {
  7138. localVarQueryParameter['deviceAssetId'] = deviceAssetId;
  7139. }
  7140. if (deviceId !== undefined) {
  7141. localVarQueryParameter['deviceId'] = deviceId;
  7142. }
  7143. if (checksum !== undefined) {
  7144. localVarQueryParameter['checksum'] = checksum;
  7145. }
  7146. if (isArchived !== undefined) {
  7147. localVarQueryParameter['isArchived'] = isArchived;
  7148. }
  7149. if (isEncoded !== undefined) {
  7150. localVarQueryParameter['isEncoded'] = isEncoded;
  7151. }
  7152. if (isExternal !== undefined) {
  7153. localVarQueryParameter['isExternal'] = isExternal;
  7154. }
  7155. if (isFavorite !== undefined) {
  7156. localVarQueryParameter['isFavorite'] = isFavorite;
  7157. }
  7158. if (isMotion !== undefined) {
  7159. localVarQueryParameter['isMotion'] = isMotion;
  7160. }
  7161. if (isOffline !== undefined) {
  7162. localVarQueryParameter['isOffline'] = isOffline;
  7163. }
  7164. if (isReadOnly !== undefined) {
  7165. localVarQueryParameter['isReadOnly'] = isReadOnly;
  7166. }
  7167. if (isVisible !== undefined) {
  7168. localVarQueryParameter['isVisible'] = isVisible;
  7169. }
  7170. if (withDeleted !== undefined) {
  7171. localVarQueryParameter['withDeleted'] = withDeleted;
  7172. }
  7173. if (withStacked !== undefined) {
  7174. localVarQueryParameter['withStacked'] = withStacked;
  7175. }
  7176. if (withExif !== undefined) {
  7177. localVarQueryParameter['withExif'] = withExif;
  7178. }
  7179. if (withPeople !== undefined) {
  7180. localVarQueryParameter['withPeople'] = withPeople;
  7181. }
  7182. if (createdBefore !== undefined) {
  7183. localVarQueryParameter['createdBefore'] = (createdBefore as any instanceof Date) ?
  7184. (createdBefore as any).toISOString() :
  7185. createdBefore;
  7186. }
  7187. if (createdAfter !== undefined) {
  7188. localVarQueryParameter['createdAfter'] = (createdAfter as any instanceof Date) ?
  7189. (createdAfter as any).toISOString() :
  7190. createdAfter;
  7191. }
  7192. if (updatedBefore !== undefined) {
  7193. localVarQueryParameter['updatedBefore'] = (updatedBefore as any instanceof Date) ?
  7194. (updatedBefore as any).toISOString() :
  7195. updatedBefore;
  7196. }
  7197. if (updatedAfter !== undefined) {
  7198. localVarQueryParameter['updatedAfter'] = (updatedAfter as any instanceof Date) ?
  7199. (updatedAfter as any).toISOString() :
  7200. updatedAfter;
  7201. }
  7202. if (trashedBefore !== undefined) {
  7203. localVarQueryParameter['trashedBefore'] = (trashedBefore as any instanceof Date) ?
  7204. (trashedBefore as any).toISOString() :
  7205. trashedBefore;
  7206. }
  7207. if (trashedAfter !== undefined) {
  7208. localVarQueryParameter['trashedAfter'] = (trashedAfter as any instanceof Date) ?
  7209. (trashedAfter as any).toISOString() :
  7210. trashedAfter;
  7211. }
  7212. if (takenBefore !== undefined) {
  7213. localVarQueryParameter['takenBefore'] = (takenBefore as any instanceof Date) ?
  7214. (takenBefore as any).toISOString() :
  7215. takenBefore;
  7216. }
  7217. if (takenAfter !== undefined) {
  7218. localVarQueryParameter['takenAfter'] = (takenAfter as any instanceof Date) ?
  7219. (takenAfter as any).toISOString() :
  7220. takenAfter;
  7221. }
  7222. if (originalFileName !== undefined) {
  7223. localVarQueryParameter['originalFileName'] = originalFileName;
  7224. }
  7225. if (originalPath !== undefined) {
  7226. localVarQueryParameter['originalPath'] = originalPath;
  7227. }
  7228. if (resizePath !== undefined) {
  7229. localVarQueryParameter['resizePath'] = resizePath;
  7230. }
  7231. if (webpPath !== undefined) {
  7232. localVarQueryParameter['webpPath'] = webpPath;
  7233. }
  7234. if (encodedVideoPath !== undefined) {
  7235. localVarQueryParameter['encodedVideoPath'] = encodedVideoPath;
  7236. }
  7237. if (city !== undefined) {
  7238. localVarQueryParameter['city'] = city;
  7239. }
  7240. if (state !== undefined) {
  7241. localVarQueryParameter['state'] = state;
  7242. }
  7243. if (country !== undefined) {
  7244. localVarQueryParameter['country'] = country;
  7245. }
  7246. if (make !== undefined) {
  7247. localVarQueryParameter['make'] = make;
  7248. }
  7249. if (model !== undefined) {
  7250. localVarQueryParameter['model'] = model;
  7251. }
  7252. if (lensModel !== undefined) {
  7253. localVarQueryParameter['lensModel'] = lensModel;
  7254. }
  7255. if (page !== undefined) {
  7256. localVarQueryParameter['page'] = page;
  7257. }
  7258. if (size !== undefined) {
  7259. localVarQueryParameter['size'] = size;
  7260. }
  7261. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7262. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7263. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7264. return {
  7265. url: toPathString(localVarUrlObj),
  7266. options: localVarRequestOptions,
  7267. };
  7268. },
  7269. /**
  7270. *
  7271. * @param {string} id
  7272. * @param {boolean} [isThumb]
  7273. * @param {boolean} [isWeb]
  7274. * @param {string} [key]
  7275. * @param {*} [options] Override http request option.
  7276. * @throws {RequiredError}
  7277. */
  7278. serveFile: async (id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7279. // verify required parameter 'id' is not null or undefined
  7280. assertParamExists('serveFile', 'id', id)
  7281. const localVarPath = `/asset/file/{id}`
  7282. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7283. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7284. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7285. let baseOptions;
  7286. if (configuration) {
  7287. baseOptions = configuration.baseOptions;
  7288. }
  7289. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  7290. const localVarHeaderParameter = {} as any;
  7291. const localVarQueryParameter = {} as any;
  7292. // authentication cookie required
  7293. // authentication api_key required
  7294. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7295. // authentication bearer required
  7296. // http bearer authentication required
  7297. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7298. if (isThumb !== undefined) {
  7299. localVarQueryParameter['isThumb'] = isThumb;
  7300. }
  7301. if (isWeb !== undefined) {
  7302. localVarQueryParameter['isWeb'] = isWeb;
  7303. }
  7304. if (key !== undefined) {
  7305. localVarQueryParameter['key'] = key;
  7306. }
  7307. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7308. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7309. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7310. return {
  7311. url: toPathString(localVarUrlObj),
  7312. options: localVarRequestOptions,
  7313. };
  7314. },
  7315. /**
  7316. *
  7317. * @param {string} id
  7318. * @param {UpdateAssetDto} updateAssetDto
  7319. * @param {*} [options] Override http request option.
  7320. * @throws {RequiredError}
  7321. */
  7322. updateAsset: async (id: string, updateAssetDto: UpdateAssetDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7323. // verify required parameter 'id' is not null or undefined
  7324. assertParamExists('updateAsset', 'id', id)
  7325. // verify required parameter 'updateAssetDto' is not null or undefined
  7326. assertParamExists('updateAsset', 'updateAssetDto', updateAssetDto)
  7327. const localVarPath = `/asset/{id}`
  7328. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  7329. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7330. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7331. let baseOptions;
  7332. if (configuration) {
  7333. baseOptions = configuration.baseOptions;
  7334. }
  7335. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7336. const localVarHeaderParameter = {} as any;
  7337. const localVarQueryParameter = {} as any;
  7338. // authentication cookie required
  7339. // authentication api_key required
  7340. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7341. // authentication bearer required
  7342. // http bearer authentication required
  7343. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7344. localVarHeaderParameter['Content-Type'] = 'application/json';
  7345. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7346. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7347. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7348. localVarRequestOptions.data = serializeDataIfNeeded(updateAssetDto, localVarRequestOptions, configuration)
  7349. return {
  7350. url: toPathString(localVarUrlObj),
  7351. options: localVarRequestOptions,
  7352. };
  7353. },
  7354. /**
  7355. *
  7356. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7357. * @param {*} [options] Override http request option.
  7358. * @throws {RequiredError}
  7359. */
  7360. updateAssets: async (assetBulkUpdateDto: AssetBulkUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7361. // verify required parameter 'assetBulkUpdateDto' is not null or undefined
  7362. assertParamExists('updateAssets', 'assetBulkUpdateDto', assetBulkUpdateDto)
  7363. const localVarPath = `/asset`;
  7364. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7365. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7366. let baseOptions;
  7367. if (configuration) {
  7368. baseOptions = configuration.baseOptions;
  7369. }
  7370. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7371. const localVarHeaderParameter = {} as any;
  7372. const localVarQueryParameter = {} as any;
  7373. // authentication cookie required
  7374. // authentication api_key required
  7375. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7376. // authentication bearer required
  7377. // http bearer authentication required
  7378. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7379. localVarHeaderParameter['Content-Type'] = 'application/json';
  7380. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7381. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7382. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7383. localVarRequestOptions.data = serializeDataIfNeeded(assetBulkUpdateDto, localVarRequestOptions, configuration)
  7384. return {
  7385. url: toPathString(localVarUrlObj),
  7386. options: localVarRequestOptions,
  7387. };
  7388. },
  7389. /**
  7390. *
  7391. * @param {UpdateStackParentDto} updateStackParentDto
  7392. * @param {*} [options] Override http request option.
  7393. * @throws {RequiredError}
  7394. */
  7395. updateStackParent: async (updateStackParentDto: UpdateStackParentDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  7396. // verify required parameter 'updateStackParentDto' is not null or undefined
  7397. assertParamExists('updateStackParent', 'updateStackParentDto', updateStackParentDto)
  7398. const localVarPath = `/asset/stack/parent`;
  7399. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7400. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7401. let baseOptions;
  7402. if (configuration) {
  7403. baseOptions = configuration.baseOptions;
  7404. }
  7405. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  7406. const localVarHeaderParameter = {} as any;
  7407. const localVarQueryParameter = {} as any;
  7408. // authentication cookie required
  7409. // authentication api_key required
  7410. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7411. // authentication bearer required
  7412. // http bearer authentication required
  7413. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7414. localVarHeaderParameter['Content-Type'] = 'application/json';
  7415. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7416. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7417. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7418. localVarRequestOptions.data = serializeDataIfNeeded(updateStackParentDto, localVarRequestOptions, configuration)
  7419. return {
  7420. url: toPathString(localVarUrlObj),
  7421. options: localVarRequestOptions,
  7422. };
  7423. },
  7424. /**
  7425. *
  7426. * @param {File} assetData
  7427. * @param {string} deviceAssetId
  7428. * @param {string} deviceId
  7429. * @param {string} fileCreatedAt
  7430. * @param {string} fileModifiedAt
  7431. * @param {string} [key]
  7432. * @param {string} [duration]
  7433. * @param {boolean} [isArchived]
  7434. * @param {boolean} [isExternal]
  7435. * @param {boolean} [isFavorite]
  7436. * @param {boolean} [isOffline]
  7437. * @param {boolean} [isReadOnly]
  7438. * @param {boolean} [isVisible]
  7439. * @param {string} [libraryId]
  7440. * @param {File} [livePhotoData]
  7441. * @param {File} [sidecarData]
  7442. * @param {*} [options] Override http request option.
  7443. * @throws {RequiredError}
  7444. */
  7445. 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> => {
  7446. // verify required parameter 'assetData' is not null or undefined
  7447. assertParamExists('uploadFile', 'assetData', assetData)
  7448. // verify required parameter 'deviceAssetId' is not null or undefined
  7449. assertParamExists('uploadFile', 'deviceAssetId', deviceAssetId)
  7450. // verify required parameter 'deviceId' is not null or undefined
  7451. assertParamExists('uploadFile', 'deviceId', deviceId)
  7452. // verify required parameter 'fileCreatedAt' is not null or undefined
  7453. assertParamExists('uploadFile', 'fileCreatedAt', fileCreatedAt)
  7454. // verify required parameter 'fileModifiedAt' is not null or undefined
  7455. assertParamExists('uploadFile', 'fileModifiedAt', fileModifiedAt)
  7456. const localVarPath = `/asset/upload`;
  7457. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  7458. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  7459. let baseOptions;
  7460. if (configuration) {
  7461. baseOptions = configuration.baseOptions;
  7462. }
  7463. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  7464. const localVarHeaderParameter = {} as any;
  7465. const localVarQueryParameter = {} as any;
  7466. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  7467. // authentication cookie required
  7468. // authentication api_key required
  7469. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  7470. // authentication bearer required
  7471. // http bearer authentication required
  7472. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  7473. if (key !== undefined) {
  7474. localVarQueryParameter['key'] = key;
  7475. }
  7476. if (assetData !== undefined) {
  7477. localVarFormParams.append('assetData', assetData as any);
  7478. }
  7479. if (deviceAssetId !== undefined) {
  7480. localVarFormParams.append('deviceAssetId', deviceAssetId as any);
  7481. }
  7482. if (deviceId !== undefined) {
  7483. localVarFormParams.append('deviceId', deviceId as any);
  7484. }
  7485. if (duration !== undefined) {
  7486. localVarFormParams.append('duration', duration as any);
  7487. }
  7488. if (fileCreatedAt !== undefined) {
  7489. localVarFormParams.append('fileCreatedAt', fileCreatedAt as any);
  7490. }
  7491. if (fileModifiedAt !== undefined) {
  7492. localVarFormParams.append('fileModifiedAt', fileModifiedAt as any);
  7493. }
  7494. if (isArchived !== undefined) {
  7495. localVarFormParams.append('isArchived', isArchived as any);
  7496. }
  7497. if (isExternal !== undefined) {
  7498. localVarFormParams.append('isExternal', isExternal as any);
  7499. }
  7500. if (isFavorite !== undefined) {
  7501. localVarFormParams.append('isFavorite', isFavorite as any);
  7502. }
  7503. if (isOffline !== undefined) {
  7504. localVarFormParams.append('isOffline', isOffline as any);
  7505. }
  7506. if (isReadOnly !== undefined) {
  7507. localVarFormParams.append('isReadOnly', isReadOnly as any);
  7508. }
  7509. if (isVisible !== undefined) {
  7510. localVarFormParams.append('isVisible', isVisible as any);
  7511. }
  7512. if (libraryId !== undefined) {
  7513. localVarFormParams.append('libraryId', libraryId as any);
  7514. }
  7515. if (livePhotoData !== undefined) {
  7516. localVarFormParams.append('livePhotoData', livePhotoData as any);
  7517. }
  7518. if (sidecarData !== undefined) {
  7519. localVarFormParams.append('sidecarData', sidecarData as any);
  7520. }
  7521. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  7522. setSearchParams(localVarUrlObj, localVarQueryParameter);
  7523. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  7524. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  7525. localVarRequestOptions.data = localVarFormParams;
  7526. return {
  7527. url: toPathString(localVarUrlObj),
  7528. options: localVarRequestOptions,
  7529. };
  7530. },
  7531. }
  7532. };
  7533. /**
  7534. * AssetApi - functional programming interface
  7535. * @export
  7536. */
  7537. export const AssetApiFp = function(configuration?: Configuration) {
  7538. const localVarAxiosParamCreator = AssetApiAxiosParamCreator(configuration)
  7539. return {
  7540. /**
  7541. * Checks if assets exist by checksums
  7542. * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
  7543. * @param {*} [options] Override http request option.
  7544. * @throws {RequiredError}
  7545. */
  7546. async checkBulkUpload(assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetBulkUploadCheckResponseDto>> {
  7547. const localVarAxiosArgs = await localVarAxiosParamCreator.checkBulkUpload(assetBulkUploadCheckDto, options);
  7548. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7549. },
  7550. /**
  7551. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7552. * @param {CheckExistingAssetsDto} checkExistingAssetsDto
  7553. * @param {*} [options] Override http request option.
  7554. * @throws {RequiredError}
  7555. */
  7556. async checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CheckExistingAssetsResponseDto>> {
  7557. const localVarAxiosArgs = await localVarAxiosParamCreator.checkExistingAssets(checkExistingAssetsDto, options);
  7558. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7559. },
  7560. /**
  7561. *
  7562. * @param {AssetBulkDeleteDto} assetBulkDeleteDto
  7563. * @param {*} [options] Override http request option.
  7564. * @throws {RequiredError}
  7565. */
  7566. async deleteAssets(assetBulkDeleteDto: AssetBulkDeleteDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7567. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAssets(assetBulkDeleteDto, options);
  7568. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7569. },
  7570. /**
  7571. *
  7572. * @param {AssetIdsDto} assetIdsDto
  7573. * @param {string} [key]
  7574. * @param {*} [options] Override http request option.
  7575. * @throws {RequiredError}
  7576. */
  7577. async downloadArchive(assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7578. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadArchive(assetIdsDto, key, options);
  7579. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7580. },
  7581. /**
  7582. *
  7583. * @param {string} id
  7584. * @param {string} [key]
  7585. * @param {*} [options] Override http request option.
  7586. * @throws {RequiredError}
  7587. */
  7588. async downloadFile(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7589. const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(id, key, options);
  7590. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7591. },
  7592. /**
  7593. *
  7594. * @param {*} [options] Override http request option.
  7595. * @throws {RequiredError}
  7596. */
  7597. async emptyTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7598. const localVarAxiosArgs = await localVarAxiosParamCreator.emptyTrash(options);
  7599. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7600. },
  7601. /**
  7602. * Get all AssetEntity belong to the user
  7603. * @param {number} [skip]
  7604. * @param {number} [take]
  7605. * @param {string} [userId]
  7606. * @param {boolean} [isFavorite]
  7607. * @param {boolean} [isArchived]
  7608. * @param {string} [updatedAfter]
  7609. * @param {string} [updatedBefore]
  7610. * @param {string} [ifNoneMatch] ETag of data already cached on the client
  7611. * @param {*} [options] Override http request option.
  7612. * @throws {RequiredError}
  7613. */
  7614. 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>>> {
  7615. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllAssets(skip, take, userId, isFavorite, isArchived, updatedAfter, updatedBefore, ifNoneMatch, options);
  7616. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7617. },
  7618. /**
  7619. * Get all asset of a device that are in the database, ID only.
  7620. * @param {string} deviceId
  7621. * @param {*} [options] Override http request option.
  7622. * @throws {RequiredError}
  7623. */
  7624. async getAllUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  7625. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUserAssetsByDeviceId(deviceId, options);
  7626. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7627. },
  7628. /**
  7629. * Get a single asset\'s information
  7630. * @param {string} id
  7631. * @param {string} [key]
  7632. * @param {*} [options] Override http request option.
  7633. * @throws {RequiredError}
  7634. */
  7635. async getAssetById(id: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7636. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetById(id, key, options);
  7637. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7638. },
  7639. /**
  7640. *
  7641. * @param {*} [options] Override http request option.
  7642. * @throws {RequiredError}
  7643. */
  7644. async getAssetSearchTerms(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  7645. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetSearchTerms(options);
  7646. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7647. },
  7648. /**
  7649. *
  7650. * @param {boolean} [isArchived]
  7651. * @param {boolean} [isFavorite]
  7652. * @param {boolean} [isTrashed]
  7653. * @param {*} [options] Override http request option.
  7654. * @throws {RequiredError}
  7655. */
  7656. async getAssetStatistics(isArchived?: boolean, isFavorite?: boolean, isTrashed?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetStatsResponseDto>> {
  7657. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetStatistics(isArchived, isFavorite, isTrashed, options);
  7658. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7659. },
  7660. /**
  7661. *
  7662. * @param {string} id
  7663. * @param {ThumbnailFormat} [format]
  7664. * @param {string} [key]
  7665. * @param {*} [options] Override http request option.
  7666. * @throws {RequiredError}
  7667. */
  7668. async getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7669. const localVarAxiosArgs = await localVarAxiosParamCreator.getAssetThumbnail(id, format, key, options);
  7670. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7671. },
  7672. /**
  7673. *
  7674. * @param {*} [options] Override http request option.
  7675. * @throws {RequiredError}
  7676. */
  7677. async getCuratedLocations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedLocationsResponseDto>>> {
  7678. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedLocations(options);
  7679. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7680. },
  7681. /**
  7682. *
  7683. * @param {*} [options] Override http request option.
  7684. * @throws {RequiredError}
  7685. */
  7686. async getCuratedObjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CuratedObjectsResponseDto>>> {
  7687. const localVarAxiosArgs = await localVarAxiosParamCreator.getCuratedObjects(options);
  7688. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7689. },
  7690. /**
  7691. *
  7692. * @param {DownloadInfoDto} downloadInfoDto
  7693. * @param {string} [key]
  7694. * @param {*} [options] Override http request option.
  7695. * @throws {RequiredError}
  7696. */
  7697. async getDownloadInfo(downloadInfoDto: DownloadInfoDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DownloadResponseDto>> {
  7698. const localVarAxiosArgs = await localVarAxiosParamCreator.getDownloadInfo(downloadInfoDto, key, options);
  7699. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7700. },
  7701. /**
  7702. *
  7703. * @param {boolean} [isArchived]
  7704. * @param {boolean} [isFavorite]
  7705. * @param {string} [fileCreatedAfter]
  7706. * @param {string} [fileCreatedBefore]
  7707. * @param {*} [options] Override http request option.
  7708. * @throws {RequiredError}
  7709. */
  7710. async getMapMarkers(isArchived?: boolean, isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MapMarkerResponseDto>>> {
  7711. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapMarkers(isArchived, isFavorite, fileCreatedAfter, fileCreatedBefore, options);
  7712. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7713. },
  7714. /**
  7715. *
  7716. * @param {number} day
  7717. * @param {number} month
  7718. * @param {*} [options] Override http request option.
  7719. * @throws {RequiredError}
  7720. */
  7721. async getMemoryLane(day: number, month: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MemoryLaneResponseDto>>> {
  7722. const localVarAxiosArgs = await localVarAxiosParamCreator.getMemoryLane(day, month, options);
  7723. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7724. },
  7725. /**
  7726. *
  7727. * @param {number} [count]
  7728. * @param {*} [options] Override http request option.
  7729. * @throws {RequiredError}
  7730. */
  7731. async getRandom(count?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7732. const localVarAxiosArgs = await localVarAxiosParamCreator.getRandom(count, options);
  7733. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7734. },
  7735. /**
  7736. *
  7737. * @param {TimeBucketSize} size
  7738. * @param {string} timeBucket
  7739. * @param {string} [userId]
  7740. * @param {string} [albumId]
  7741. * @param {string} [personId]
  7742. * @param {boolean} [isArchived]
  7743. * @param {boolean} [isFavorite]
  7744. * @param {boolean} [isTrashed]
  7745. * @param {boolean} [withStacked]
  7746. * @param {boolean} [withPartners]
  7747. * @param {string} [key]
  7748. * @param {*} [options] Override http request option.
  7749. * @throws {RequiredError}
  7750. */
  7751. 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>>> {
  7752. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBucket(size, timeBucket, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, withPartners, key, options);
  7753. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7754. },
  7755. /**
  7756. *
  7757. * @param {TimeBucketSize} size
  7758. * @param {string} [userId]
  7759. * @param {string} [albumId]
  7760. * @param {string} [personId]
  7761. * @param {boolean} [isArchived]
  7762. * @param {boolean} [isFavorite]
  7763. * @param {boolean} [isTrashed]
  7764. * @param {boolean} [withStacked]
  7765. * @param {boolean} [withPartners]
  7766. * @param {string} [key]
  7767. * @param {*} [options] Override http request option.
  7768. * @throws {RequiredError}
  7769. */
  7770. 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>>> {
  7771. const localVarAxiosArgs = await localVarAxiosParamCreator.getTimeBuckets(size, userId, albumId, personId, isArchived, isFavorite, isTrashed, withStacked, withPartners, key, options);
  7772. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7773. },
  7774. /**
  7775. *
  7776. * @summary Use /asset/device/:deviceId instead - Remove in 1.92 release
  7777. * @param {string} deviceId
  7778. * @param {*} [options] Override http request option.
  7779. * @deprecated
  7780. * @throws {RequiredError}
  7781. */
  7782. async getUserAssetsByDeviceId(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
  7783. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserAssetsByDeviceId(deviceId, options);
  7784. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7785. },
  7786. /**
  7787. *
  7788. * @param {BulkIdsDto} bulkIdsDto
  7789. * @param {*} [options] Override http request option.
  7790. * @throws {RequiredError}
  7791. */
  7792. async restoreAssets(bulkIdsDto: BulkIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7793. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreAssets(bulkIdsDto, options);
  7794. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7795. },
  7796. /**
  7797. *
  7798. * @param {*} [options] Override http request option.
  7799. * @throws {RequiredError}
  7800. */
  7801. async restoreTrash(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7802. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreTrash(options);
  7803. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7804. },
  7805. /**
  7806. *
  7807. * @param {AssetJobsDto} assetJobsDto
  7808. * @param {*} [options] Override http request option.
  7809. * @throws {RequiredError}
  7810. */
  7811. async runAssetJobs(assetJobsDto: AssetJobsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7812. const localVarAxiosArgs = await localVarAxiosParamCreator.runAssetJobs(assetJobsDto, options);
  7813. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7814. },
  7815. /**
  7816. *
  7817. * @param {string} [id]
  7818. * @param {string} [libraryId]
  7819. * @param {AssetTypeEnum} [type]
  7820. * @param {AssetOrder} [order]
  7821. * @param {string} [deviceAssetId]
  7822. * @param {string} [deviceId]
  7823. * @param {string} [checksum]
  7824. * @param {boolean} [isArchived]
  7825. * @param {boolean} [isEncoded]
  7826. * @param {boolean} [isExternal]
  7827. * @param {boolean} [isFavorite]
  7828. * @param {boolean} [isMotion]
  7829. * @param {boolean} [isOffline]
  7830. * @param {boolean} [isReadOnly]
  7831. * @param {boolean} [isVisible]
  7832. * @param {boolean} [withDeleted]
  7833. * @param {boolean} [withStacked]
  7834. * @param {boolean} [withExif]
  7835. * @param {boolean} [withPeople]
  7836. * @param {string} [createdBefore]
  7837. * @param {string} [createdAfter]
  7838. * @param {string} [updatedBefore]
  7839. * @param {string} [updatedAfter]
  7840. * @param {string} [trashedBefore]
  7841. * @param {string} [trashedAfter]
  7842. * @param {string} [takenBefore]
  7843. * @param {string} [takenAfter]
  7844. * @param {string} [originalFileName]
  7845. * @param {string} [originalPath]
  7846. * @param {string} [resizePath]
  7847. * @param {string} [webpPath]
  7848. * @param {string} [encodedVideoPath]
  7849. * @param {string} [city]
  7850. * @param {string} [state]
  7851. * @param {string} [country]
  7852. * @param {string} [make]
  7853. * @param {string} [model]
  7854. * @param {string} [lensModel]
  7855. * @param {number} [page]
  7856. * @param {number} [size]
  7857. * @param {*} [options] Override http request option.
  7858. * @throws {RequiredError}
  7859. */
  7860. async searchAssets(id?: string, libraryId?: string, type?: AssetTypeEnum, order?: AssetOrder, deviceAssetId?: string, deviceId?: string, checksum?: string, isArchived?: boolean, isEncoded?: boolean, isExternal?: boolean, isFavorite?: boolean, isMotion?: boolean, isOffline?: boolean, isReadOnly?: boolean, isVisible?: boolean, withDeleted?: boolean, withStacked?: boolean, withExif?: boolean, withPeople?: boolean, createdBefore?: string, createdAfter?: string, updatedBefore?: string, updatedAfter?: string, trashedBefore?: string, trashedAfter?: string, takenBefore?: string, takenAfter?: string, originalFileName?: string, originalPath?: string, resizePath?: string, webpPath?: string, encodedVideoPath?: string, city?: string, state?: string, country?: string, make?: string, model?: string, lensModel?: string, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  7861. const localVarAxiosArgs = await localVarAxiosParamCreator.searchAssets(id, libraryId, type, order, deviceAssetId, deviceId, checksum, isArchived, isEncoded, isExternal, isFavorite, isMotion, isOffline, isReadOnly, isVisible, withDeleted, withStacked, withExif, withPeople, createdBefore, createdAfter, updatedBefore, updatedAfter, trashedBefore, trashedAfter, takenBefore, takenAfter, originalFileName, originalPath, resizePath, webpPath, encodedVideoPath, city, state, country, make, model, lensModel, page, size, options);
  7862. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7863. },
  7864. /**
  7865. *
  7866. * @param {string} id
  7867. * @param {boolean} [isThumb]
  7868. * @param {boolean} [isWeb]
  7869. * @param {string} [key]
  7870. * @param {*} [options] Override http request option.
  7871. * @throws {RequiredError}
  7872. */
  7873. async serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  7874. const localVarAxiosArgs = await localVarAxiosParamCreator.serveFile(id, isThumb, isWeb, key, options);
  7875. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7876. },
  7877. /**
  7878. *
  7879. * @param {string} id
  7880. * @param {UpdateAssetDto} updateAssetDto
  7881. * @param {*} [options] Override http request option.
  7882. * @throws {RequiredError}
  7883. */
  7884. async updateAsset(id: string, updateAssetDto: UpdateAssetDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssetResponseDto>> {
  7885. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAsset(id, updateAssetDto, options);
  7886. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7887. },
  7888. /**
  7889. *
  7890. * @param {AssetBulkUpdateDto} assetBulkUpdateDto
  7891. * @param {*} [options] Override http request option.
  7892. * @throws {RequiredError}
  7893. */
  7894. async updateAssets(assetBulkUpdateDto: AssetBulkUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7895. const localVarAxiosArgs = await localVarAxiosParamCreator.updateAssets(assetBulkUpdateDto, options);
  7896. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7897. },
  7898. /**
  7899. *
  7900. * @param {UpdateStackParentDto} updateStackParentDto
  7901. * @param {*} [options] Override http request option.
  7902. * @throws {RequiredError}
  7903. */
  7904. async updateStackParent(updateStackParentDto: UpdateStackParentDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  7905. const localVarAxiosArgs = await localVarAxiosParamCreator.updateStackParent(updateStackParentDto, options);
  7906. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7907. },
  7908. /**
  7909. *
  7910. * @param {File} assetData
  7911. * @param {string} deviceAssetId
  7912. * @param {string} deviceId
  7913. * @param {string} fileCreatedAt
  7914. * @param {string} fileModifiedAt
  7915. * @param {string} [key]
  7916. * @param {string} [duration]
  7917. * @param {boolean} [isArchived]
  7918. * @param {boolean} [isExternal]
  7919. * @param {boolean} [isFavorite]
  7920. * @param {boolean} [isOffline]
  7921. * @param {boolean} [isReadOnly]
  7922. * @param {boolean} [isVisible]
  7923. * @param {string} [libraryId]
  7924. * @param {File} [livePhotoData]
  7925. * @param {File} [sidecarData]
  7926. * @param {*} [options] Override http request option.
  7927. * @throws {RequiredError}
  7928. */
  7929. 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>> {
  7930. const localVarAxiosArgs = await localVarAxiosParamCreator.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, key, duration, isArchived, isExternal, isFavorite, isOffline, isReadOnly, isVisible, libraryId, livePhotoData, sidecarData, options);
  7931. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  7932. },
  7933. }
  7934. };
  7935. /**
  7936. * AssetApi - factory interface
  7937. * @export
  7938. */
  7939. export const AssetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  7940. const localVarFp = AssetApiFp(configuration)
  7941. return {
  7942. /**
  7943. * Checks if assets exist by checksums
  7944. * @param {AssetApiCheckBulkUploadRequest} requestParameters Request parameters.
  7945. * @param {*} [options] Override http request option.
  7946. * @throws {RequiredError}
  7947. */
  7948. checkBulkUpload(requestParameters: AssetApiCheckBulkUploadRequest, options?: AxiosRequestConfig): AxiosPromise<AssetBulkUploadCheckResponseDto> {
  7949. return localVarFp.checkBulkUpload(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(axios, basePath));
  7950. },
  7951. /**
  7952. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  7953. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  7954. * @param {*} [options] Override http request option.
  7955. * @throws {RequiredError}
  7956. */
  7957. checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<CheckExistingAssetsResponseDto> {
  7958. return localVarFp.checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(axios, basePath));
  7959. },
  7960. /**
  7961. *
  7962. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  7963. * @param {*} [options] Override http request option.
  7964. * @throws {RequiredError}
  7965. */
  7966. deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  7967. return localVarFp.deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(axios, basePath));
  7968. },
  7969. /**
  7970. *
  7971. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  7972. * @param {*} [options] Override http request option.
  7973. * @throws {RequiredError}
  7974. */
  7975. downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7976. return localVarFp.downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  7977. },
  7978. /**
  7979. *
  7980. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  7981. * @param {*} [options] Override http request option.
  7982. * @throws {RequiredError}
  7983. */
  7984. downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  7985. return localVarFp.downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  7986. },
  7987. /**
  7988. *
  7989. * @param {*} [options] Override http request option.
  7990. * @throws {RequiredError}
  7991. */
  7992. emptyTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  7993. return localVarFp.emptyTrash(options).then((request) => request(axios, basePath));
  7994. },
  7995. /**
  7996. * Get all AssetEntity belong to the user
  7997. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  7998. * @param {*} [options] Override http request option.
  7999. * @throws {RequiredError}
  8000. */
  8001. getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  8002. 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));
  8003. },
  8004. /**
  8005. * Get all asset of a device that are in the database, ID only.
  8006. * @param {AssetApiGetAllUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  8007. * @param {*} [options] Override http request option.
  8008. * @throws {RequiredError}
  8009. */
  8010. getAllUserAssetsByDeviceId(requestParameters: AssetApiGetAllUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  8011. return localVarFp.getAllUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
  8012. },
  8013. /**
  8014. * Get a single asset\'s information
  8015. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  8016. * @param {*} [options] Override http request option.
  8017. * @throws {RequiredError}
  8018. */
  8019. getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  8020. return localVarFp.getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
  8021. },
  8022. /**
  8023. *
  8024. * @param {*} [options] Override http request option.
  8025. * @throws {RequiredError}
  8026. */
  8027. getAssetSearchTerms(options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  8028. return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
  8029. },
  8030. /**
  8031. *
  8032. * @param {AssetApiGetAssetStatisticsRequest} requestParameters Request parameters.
  8033. * @param {*} [options] Override http request option.
  8034. * @throws {RequiredError}
  8035. */
  8036. getAssetStatistics(requestParameters: AssetApiGetAssetStatisticsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<AssetStatsResponseDto> {
  8037. return localVarFp.getAssetStatistics(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(axios, basePath));
  8038. },
  8039. /**
  8040. *
  8041. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  8042. * @param {*} [options] Override http request option.
  8043. * @throws {RequiredError}
  8044. */
  8045. getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  8046. return localVarFp.getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(axios, basePath));
  8047. },
  8048. /**
  8049. *
  8050. * @param {*} [options] Override http request option.
  8051. * @throws {RequiredError}
  8052. */
  8053. getCuratedLocations(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedLocationsResponseDto>> {
  8054. return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
  8055. },
  8056. /**
  8057. *
  8058. * @param {*} [options] Override http request option.
  8059. * @throws {RequiredError}
  8060. */
  8061. getCuratedObjects(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedObjectsResponseDto>> {
  8062. return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
  8063. },
  8064. /**
  8065. *
  8066. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  8067. * @param {*} [options] Override http request option.
  8068. * @throws {RequiredError}
  8069. */
  8070. getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig): AxiosPromise<DownloadResponseDto> {
  8071. return localVarFp.getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(axios, basePath));
  8072. },
  8073. /**
  8074. *
  8075. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  8076. * @param {*} [options] Override http request option.
  8077. * @throws {RequiredError}
  8078. */
  8079. getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<MapMarkerResponseDto>> {
  8080. return localVarFp.getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(axios, basePath));
  8081. },
  8082. /**
  8083. *
  8084. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  8085. * @param {*} [options] Override http request option.
  8086. * @throws {RequiredError}
  8087. */
  8088. getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig): AxiosPromise<Array<MemoryLaneResponseDto>> {
  8089. return localVarFp.getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(axios, basePath));
  8090. },
  8091. /**
  8092. *
  8093. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  8094. * @param {*} [options] Override http request option.
  8095. * @throws {RequiredError}
  8096. */
  8097. getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  8098. return localVarFp.getRandom(requestParameters.count, options).then((request) => request(axios, basePath));
  8099. },
  8100. /**
  8101. *
  8102. * @param {AssetApiGetTimeBucketRequest} requestParameters Request parameters.
  8103. * @param {*} [options] Override http request option.
  8104. * @throws {RequiredError}
  8105. */
  8106. getTimeBucket(requestParameters: AssetApiGetTimeBucketRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  8107. 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));
  8108. },
  8109. /**
  8110. *
  8111. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  8112. * @param {*} [options] Override http request option.
  8113. * @throws {RequiredError}
  8114. */
  8115. getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<TimeBucketResponseDto>> {
  8116. 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));
  8117. },
  8118. /**
  8119. *
  8120. * @summary Use /asset/device/:deviceId instead - Remove in 1.92 release
  8121. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  8122. * @param {*} [options] Override http request option.
  8123. * @deprecated
  8124. * @throws {RequiredError}
  8125. */
  8126. getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
  8127. return localVarFp.getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
  8128. },
  8129. /**
  8130. *
  8131. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  8132. * @param {*} [options] Override http request option.
  8133. * @throws {RequiredError}
  8134. */
  8135. restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8136. return localVarFp.restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
  8137. },
  8138. /**
  8139. *
  8140. * @param {*} [options] Override http request option.
  8141. * @throws {RequiredError}
  8142. */
  8143. restoreTrash(options?: AxiosRequestConfig): AxiosPromise<void> {
  8144. return localVarFp.restoreTrash(options).then((request) => request(axios, basePath));
  8145. },
  8146. /**
  8147. *
  8148. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  8149. * @param {*} [options] Override http request option.
  8150. * @throws {RequiredError}
  8151. */
  8152. runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8153. return localVarFp.runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(axios, basePath));
  8154. },
  8155. /**
  8156. *
  8157. * @param {AssetApiSearchAssetsRequest} requestParameters Request parameters.
  8158. * @param {*} [options] Override http request option.
  8159. * @throws {RequiredError}
  8160. */
  8161. searchAssets(requestParameters: AssetApiSearchAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  8162. return localVarFp.searchAssets(requestParameters.id, requestParameters.libraryId, requestParameters.type, requestParameters.order, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.checksum, requestParameters.isArchived, requestParameters.isEncoded, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isMotion, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.withDeleted, requestParameters.withStacked, requestParameters.withExif, requestParameters.withPeople, requestParameters.createdBefore, requestParameters.createdAfter, requestParameters.updatedBefore, requestParameters.updatedAfter, requestParameters.trashedBefore, requestParameters.trashedAfter, requestParameters.takenBefore, requestParameters.takenAfter, requestParameters.originalFileName, requestParameters.originalPath, requestParameters.resizePath, requestParameters.webpPath, requestParameters.encodedVideoPath, requestParameters.city, requestParameters.state, requestParameters.country, requestParameters.make, requestParameters.model, requestParameters.lensModel, requestParameters.page, requestParameters.size, options).then((request) => request(axios, basePath));
  8163. },
  8164. /**
  8165. *
  8166. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  8167. * @param {*} [options] Override http request option.
  8168. * @throws {RequiredError}
  8169. */
  8170. serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  8171. return localVarFp.serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(axios, basePath));
  8172. },
  8173. /**
  8174. *
  8175. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  8176. * @param {*} [options] Override http request option.
  8177. * @throws {RequiredError}
  8178. */
  8179. updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
  8180. return localVarFp.updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(axios, basePath));
  8181. },
  8182. /**
  8183. *
  8184. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  8185. * @param {*} [options] Override http request option.
  8186. * @throws {RequiredError}
  8187. */
  8188. updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8189. return localVarFp.updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(axios, basePath));
  8190. },
  8191. /**
  8192. *
  8193. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  8194. * @param {*} [options] Override http request option.
  8195. * @throws {RequiredError}
  8196. */
  8197. updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  8198. return localVarFp.updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(axios, basePath));
  8199. },
  8200. /**
  8201. *
  8202. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  8203. * @param {*} [options] Override http request option.
  8204. * @throws {RequiredError}
  8205. */
  8206. uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
  8207. 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));
  8208. },
  8209. };
  8210. };
  8211. /**
  8212. * Request parameters for checkBulkUpload operation in AssetApi.
  8213. * @export
  8214. * @interface AssetApiCheckBulkUploadRequest
  8215. */
  8216. export interface AssetApiCheckBulkUploadRequest {
  8217. /**
  8218. *
  8219. * @type {AssetBulkUploadCheckDto}
  8220. * @memberof AssetApiCheckBulkUpload
  8221. */
  8222. readonly assetBulkUploadCheckDto: AssetBulkUploadCheckDto
  8223. }
  8224. /**
  8225. * Request parameters for checkExistingAssets operation in AssetApi.
  8226. * @export
  8227. * @interface AssetApiCheckExistingAssetsRequest
  8228. */
  8229. export interface AssetApiCheckExistingAssetsRequest {
  8230. /**
  8231. *
  8232. * @type {CheckExistingAssetsDto}
  8233. * @memberof AssetApiCheckExistingAssets
  8234. */
  8235. readonly checkExistingAssetsDto: CheckExistingAssetsDto
  8236. }
  8237. /**
  8238. * Request parameters for deleteAssets operation in AssetApi.
  8239. * @export
  8240. * @interface AssetApiDeleteAssetsRequest
  8241. */
  8242. export interface AssetApiDeleteAssetsRequest {
  8243. /**
  8244. *
  8245. * @type {AssetBulkDeleteDto}
  8246. * @memberof AssetApiDeleteAssets
  8247. */
  8248. readonly assetBulkDeleteDto: AssetBulkDeleteDto
  8249. }
  8250. /**
  8251. * Request parameters for downloadArchive operation in AssetApi.
  8252. * @export
  8253. * @interface AssetApiDownloadArchiveRequest
  8254. */
  8255. export interface AssetApiDownloadArchiveRequest {
  8256. /**
  8257. *
  8258. * @type {AssetIdsDto}
  8259. * @memberof AssetApiDownloadArchive
  8260. */
  8261. readonly assetIdsDto: AssetIdsDto
  8262. /**
  8263. *
  8264. * @type {string}
  8265. * @memberof AssetApiDownloadArchive
  8266. */
  8267. readonly key?: string
  8268. }
  8269. /**
  8270. * Request parameters for downloadFile operation in AssetApi.
  8271. * @export
  8272. * @interface AssetApiDownloadFileRequest
  8273. */
  8274. export interface AssetApiDownloadFileRequest {
  8275. /**
  8276. *
  8277. * @type {string}
  8278. * @memberof AssetApiDownloadFile
  8279. */
  8280. readonly id: string
  8281. /**
  8282. *
  8283. * @type {string}
  8284. * @memberof AssetApiDownloadFile
  8285. */
  8286. readonly key?: string
  8287. }
  8288. /**
  8289. * Request parameters for getAllAssets operation in AssetApi.
  8290. * @export
  8291. * @interface AssetApiGetAllAssetsRequest
  8292. */
  8293. export interface AssetApiGetAllAssetsRequest {
  8294. /**
  8295. *
  8296. * @type {number}
  8297. * @memberof AssetApiGetAllAssets
  8298. */
  8299. readonly skip?: number
  8300. /**
  8301. *
  8302. * @type {number}
  8303. * @memberof AssetApiGetAllAssets
  8304. */
  8305. readonly take?: number
  8306. /**
  8307. *
  8308. * @type {string}
  8309. * @memberof AssetApiGetAllAssets
  8310. */
  8311. readonly userId?: string
  8312. /**
  8313. *
  8314. * @type {boolean}
  8315. * @memberof AssetApiGetAllAssets
  8316. */
  8317. readonly isFavorite?: boolean
  8318. /**
  8319. *
  8320. * @type {boolean}
  8321. * @memberof AssetApiGetAllAssets
  8322. */
  8323. readonly isArchived?: boolean
  8324. /**
  8325. *
  8326. * @type {string}
  8327. * @memberof AssetApiGetAllAssets
  8328. */
  8329. readonly updatedAfter?: string
  8330. /**
  8331. *
  8332. * @type {string}
  8333. * @memberof AssetApiGetAllAssets
  8334. */
  8335. readonly updatedBefore?: string
  8336. /**
  8337. * ETag of data already cached on the client
  8338. * @type {string}
  8339. * @memberof AssetApiGetAllAssets
  8340. */
  8341. readonly ifNoneMatch?: string
  8342. }
  8343. /**
  8344. * Request parameters for getAllUserAssetsByDeviceId operation in AssetApi.
  8345. * @export
  8346. * @interface AssetApiGetAllUserAssetsByDeviceIdRequest
  8347. */
  8348. export interface AssetApiGetAllUserAssetsByDeviceIdRequest {
  8349. /**
  8350. *
  8351. * @type {string}
  8352. * @memberof AssetApiGetAllUserAssetsByDeviceId
  8353. */
  8354. readonly deviceId: string
  8355. }
  8356. /**
  8357. * Request parameters for getAssetById operation in AssetApi.
  8358. * @export
  8359. * @interface AssetApiGetAssetByIdRequest
  8360. */
  8361. export interface AssetApiGetAssetByIdRequest {
  8362. /**
  8363. *
  8364. * @type {string}
  8365. * @memberof AssetApiGetAssetById
  8366. */
  8367. readonly id: string
  8368. /**
  8369. *
  8370. * @type {string}
  8371. * @memberof AssetApiGetAssetById
  8372. */
  8373. readonly key?: string
  8374. }
  8375. /**
  8376. * Request parameters for getAssetStatistics operation in AssetApi.
  8377. * @export
  8378. * @interface AssetApiGetAssetStatisticsRequest
  8379. */
  8380. export interface AssetApiGetAssetStatisticsRequest {
  8381. /**
  8382. *
  8383. * @type {boolean}
  8384. * @memberof AssetApiGetAssetStatistics
  8385. */
  8386. readonly isArchived?: boolean
  8387. /**
  8388. *
  8389. * @type {boolean}
  8390. * @memberof AssetApiGetAssetStatistics
  8391. */
  8392. readonly isFavorite?: boolean
  8393. /**
  8394. *
  8395. * @type {boolean}
  8396. * @memberof AssetApiGetAssetStatistics
  8397. */
  8398. readonly isTrashed?: boolean
  8399. }
  8400. /**
  8401. * Request parameters for getAssetThumbnail operation in AssetApi.
  8402. * @export
  8403. * @interface AssetApiGetAssetThumbnailRequest
  8404. */
  8405. export interface AssetApiGetAssetThumbnailRequest {
  8406. /**
  8407. *
  8408. * @type {string}
  8409. * @memberof AssetApiGetAssetThumbnail
  8410. */
  8411. readonly id: string
  8412. /**
  8413. *
  8414. * @type {ThumbnailFormat}
  8415. * @memberof AssetApiGetAssetThumbnail
  8416. */
  8417. readonly format?: ThumbnailFormat
  8418. /**
  8419. *
  8420. * @type {string}
  8421. * @memberof AssetApiGetAssetThumbnail
  8422. */
  8423. readonly key?: string
  8424. }
  8425. /**
  8426. * Request parameters for getDownloadInfo operation in AssetApi.
  8427. * @export
  8428. * @interface AssetApiGetDownloadInfoRequest
  8429. */
  8430. export interface AssetApiGetDownloadInfoRequest {
  8431. /**
  8432. *
  8433. * @type {DownloadInfoDto}
  8434. * @memberof AssetApiGetDownloadInfo
  8435. */
  8436. readonly downloadInfoDto: DownloadInfoDto
  8437. /**
  8438. *
  8439. * @type {string}
  8440. * @memberof AssetApiGetDownloadInfo
  8441. */
  8442. readonly key?: string
  8443. }
  8444. /**
  8445. * Request parameters for getMapMarkers operation in AssetApi.
  8446. * @export
  8447. * @interface AssetApiGetMapMarkersRequest
  8448. */
  8449. export interface AssetApiGetMapMarkersRequest {
  8450. /**
  8451. *
  8452. * @type {boolean}
  8453. * @memberof AssetApiGetMapMarkers
  8454. */
  8455. readonly isArchived?: boolean
  8456. /**
  8457. *
  8458. * @type {boolean}
  8459. * @memberof AssetApiGetMapMarkers
  8460. */
  8461. readonly isFavorite?: boolean
  8462. /**
  8463. *
  8464. * @type {string}
  8465. * @memberof AssetApiGetMapMarkers
  8466. */
  8467. readonly fileCreatedAfter?: string
  8468. /**
  8469. *
  8470. * @type {string}
  8471. * @memberof AssetApiGetMapMarkers
  8472. */
  8473. readonly fileCreatedBefore?: string
  8474. }
  8475. /**
  8476. * Request parameters for getMemoryLane operation in AssetApi.
  8477. * @export
  8478. * @interface AssetApiGetMemoryLaneRequest
  8479. */
  8480. export interface AssetApiGetMemoryLaneRequest {
  8481. /**
  8482. *
  8483. * @type {number}
  8484. * @memberof AssetApiGetMemoryLane
  8485. */
  8486. readonly day: number
  8487. /**
  8488. *
  8489. * @type {number}
  8490. * @memberof AssetApiGetMemoryLane
  8491. */
  8492. readonly month: number
  8493. }
  8494. /**
  8495. * Request parameters for getRandom operation in AssetApi.
  8496. * @export
  8497. * @interface AssetApiGetRandomRequest
  8498. */
  8499. export interface AssetApiGetRandomRequest {
  8500. /**
  8501. *
  8502. * @type {number}
  8503. * @memberof AssetApiGetRandom
  8504. */
  8505. readonly count?: number
  8506. }
  8507. /**
  8508. * Request parameters for getTimeBucket operation in AssetApi.
  8509. * @export
  8510. * @interface AssetApiGetTimeBucketRequest
  8511. */
  8512. export interface AssetApiGetTimeBucketRequest {
  8513. /**
  8514. *
  8515. * @type {TimeBucketSize}
  8516. * @memberof AssetApiGetTimeBucket
  8517. */
  8518. readonly size: TimeBucketSize
  8519. /**
  8520. *
  8521. * @type {string}
  8522. * @memberof AssetApiGetTimeBucket
  8523. */
  8524. readonly timeBucket: string
  8525. /**
  8526. *
  8527. * @type {string}
  8528. * @memberof AssetApiGetTimeBucket
  8529. */
  8530. readonly userId?: string
  8531. /**
  8532. *
  8533. * @type {string}
  8534. * @memberof AssetApiGetTimeBucket
  8535. */
  8536. readonly albumId?: string
  8537. /**
  8538. *
  8539. * @type {string}
  8540. * @memberof AssetApiGetTimeBucket
  8541. */
  8542. readonly personId?: string
  8543. /**
  8544. *
  8545. * @type {boolean}
  8546. * @memberof AssetApiGetTimeBucket
  8547. */
  8548. readonly isArchived?: boolean
  8549. /**
  8550. *
  8551. * @type {boolean}
  8552. * @memberof AssetApiGetTimeBucket
  8553. */
  8554. readonly isFavorite?: boolean
  8555. /**
  8556. *
  8557. * @type {boolean}
  8558. * @memberof AssetApiGetTimeBucket
  8559. */
  8560. readonly isTrashed?: boolean
  8561. /**
  8562. *
  8563. * @type {boolean}
  8564. * @memberof AssetApiGetTimeBucket
  8565. */
  8566. readonly withStacked?: boolean
  8567. /**
  8568. *
  8569. * @type {boolean}
  8570. * @memberof AssetApiGetTimeBucket
  8571. */
  8572. readonly withPartners?: boolean
  8573. /**
  8574. *
  8575. * @type {string}
  8576. * @memberof AssetApiGetTimeBucket
  8577. */
  8578. readonly key?: string
  8579. }
  8580. /**
  8581. * Request parameters for getTimeBuckets operation in AssetApi.
  8582. * @export
  8583. * @interface AssetApiGetTimeBucketsRequest
  8584. */
  8585. export interface AssetApiGetTimeBucketsRequest {
  8586. /**
  8587. *
  8588. * @type {TimeBucketSize}
  8589. * @memberof AssetApiGetTimeBuckets
  8590. */
  8591. readonly size: TimeBucketSize
  8592. /**
  8593. *
  8594. * @type {string}
  8595. * @memberof AssetApiGetTimeBuckets
  8596. */
  8597. readonly userId?: string
  8598. /**
  8599. *
  8600. * @type {string}
  8601. * @memberof AssetApiGetTimeBuckets
  8602. */
  8603. readonly albumId?: string
  8604. /**
  8605. *
  8606. * @type {string}
  8607. * @memberof AssetApiGetTimeBuckets
  8608. */
  8609. readonly personId?: string
  8610. /**
  8611. *
  8612. * @type {boolean}
  8613. * @memberof AssetApiGetTimeBuckets
  8614. */
  8615. readonly isArchived?: boolean
  8616. /**
  8617. *
  8618. * @type {boolean}
  8619. * @memberof AssetApiGetTimeBuckets
  8620. */
  8621. readonly isFavorite?: boolean
  8622. /**
  8623. *
  8624. * @type {boolean}
  8625. * @memberof AssetApiGetTimeBuckets
  8626. */
  8627. readonly isTrashed?: boolean
  8628. /**
  8629. *
  8630. * @type {boolean}
  8631. * @memberof AssetApiGetTimeBuckets
  8632. */
  8633. readonly withStacked?: boolean
  8634. /**
  8635. *
  8636. * @type {boolean}
  8637. * @memberof AssetApiGetTimeBuckets
  8638. */
  8639. readonly withPartners?: boolean
  8640. /**
  8641. *
  8642. * @type {string}
  8643. * @memberof AssetApiGetTimeBuckets
  8644. */
  8645. readonly key?: string
  8646. }
  8647. /**
  8648. * Request parameters for getUserAssetsByDeviceId operation in AssetApi.
  8649. * @export
  8650. * @interface AssetApiGetUserAssetsByDeviceIdRequest
  8651. */
  8652. export interface AssetApiGetUserAssetsByDeviceIdRequest {
  8653. /**
  8654. *
  8655. * @type {string}
  8656. * @memberof AssetApiGetUserAssetsByDeviceId
  8657. */
  8658. readonly deviceId: string
  8659. }
  8660. /**
  8661. * Request parameters for restoreAssets operation in AssetApi.
  8662. * @export
  8663. * @interface AssetApiRestoreAssetsRequest
  8664. */
  8665. export interface AssetApiRestoreAssetsRequest {
  8666. /**
  8667. *
  8668. * @type {BulkIdsDto}
  8669. * @memberof AssetApiRestoreAssets
  8670. */
  8671. readonly bulkIdsDto: BulkIdsDto
  8672. }
  8673. /**
  8674. * Request parameters for runAssetJobs operation in AssetApi.
  8675. * @export
  8676. * @interface AssetApiRunAssetJobsRequest
  8677. */
  8678. export interface AssetApiRunAssetJobsRequest {
  8679. /**
  8680. *
  8681. * @type {AssetJobsDto}
  8682. * @memberof AssetApiRunAssetJobs
  8683. */
  8684. readonly assetJobsDto: AssetJobsDto
  8685. }
  8686. /**
  8687. * Request parameters for searchAssets operation in AssetApi.
  8688. * @export
  8689. * @interface AssetApiSearchAssetsRequest
  8690. */
  8691. export interface AssetApiSearchAssetsRequest {
  8692. /**
  8693. *
  8694. * @type {string}
  8695. * @memberof AssetApiSearchAssets
  8696. */
  8697. readonly id?: string
  8698. /**
  8699. *
  8700. * @type {string}
  8701. * @memberof AssetApiSearchAssets
  8702. */
  8703. readonly libraryId?: string
  8704. /**
  8705. *
  8706. * @type {AssetTypeEnum}
  8707. * @memberof AssetApiSearchAssets
  8708. */
  8709. readonly type?: AssetTypeEnum
  8710. /**
  8711. *
  8712. * @type {AssetOrder}
  8713. * @memberof AssetApiSearchAssets
  8714. */
  8715. readonly order?: AssetOrder
  8716. /**
  8717. *
  8718. * @type {string}
  8719. * @memberof AssetApiSearchAssets
  8720. */
  8721. readonly deviceAssetId?: string
  8722. /**
  8723. *
  8724. * @type {string}
  8725. * @memberof AssetApiSearchAssets
  8726. */
  8727. readonly deviceId?: string
  8728. /**
  8729. *
  8730. * @type {string}
  8731. * @memberof AssetApiSearchAssets
  8732. */
  8733. readonly checksum?: string
  8734. /**
  8735. *
  8736. * @type {boolean}
  8737. * @memberof AssetApiSearchAssets
  8738. */
  8739. readonly isArchived?: boolean
  8740. /**
  8741. *
  8742. * @type {boolean}
  8743. * @memberof AssetApiSearchAssets
  8744. */
  8745. readonly isEncoded?: boolean
  8746. /**
  8747. *
  8748. * @type {boolean}
  8749. * @memberof AssetApiSearchAssets
  8750. */
  8751. readonly isExternal?: boolean
  8752. /**
  8753. *
  8754. * @type {boolean}
  8755. * @memberof AssetApiSearchAssets
  8756. */
  8757. readonly isFavorite?: boolean
  8758. /**
  8759. *
  8760. * @type {boolean}
  8761. * @memberof AssetApiSearchAssets
  8762. */
  8763. readonly isMotion?: boolean
  8764. /**
  8765. *
  8766. * @type {boolean}
  8767. * @memberof AssetApiSearchAssets
  8768. */
  8769. readonly isOffline?: boolean
  8770. /**
  8771. *
  8772. * @type {boolean}
  8773. * @memberof AssetApiSearchAssets
  8774. */
  8775. readonly isReadOnly?: boolean
  8776. /**
  8777. *
  8778. * @type {boolean}
  8779. * @memberof AssetApiSearchAssets
  8780. */
  8781. readonly isVisible?: boolean
  8782. /**
  8783. *
  8784. * @type {boolean}
  8785. * @memberof AssetApiSearchAssets
  8786. */
  8787. readonly withDeleted?: boolean
  8788. /**
  8789. *
  8790. * @type {boolean}
  8791. * @memberof AssetApiSearchAssets
  8792. */
  8793. readonly withStacked?: boolean
  8794. /**
  8795. *
  8796. * @type {boolean}
  8797. * @memberof AssetApiSearchAssets
  8798. */
  8799. readonly withExif?: boolean
  8800. /**
  8801. *
  8802. * @type {boolean}
  8803. * @memberof AssetApiSearchAssets
  8804. */
  8805. readonly withPeople?: boolean
  8806. /**
  8807. *
  8808. * @type {string}
  8809. * @memberof AssetApiSearchAssets
  8810. */
  8811. readonly createdBefore?: string
  8812. /**
  8813. *
  8814. * @type {string}
  8815. * @memberof AssetApiSearchAssets
  8816. */
  8817. readonly createdAfter?: string
  8818. /**
  8819. *
  8820. * @type {string}
  8821. * @memberof AssetApiSearchAssets
  8822. */
  8823. readonly updatedBefore?: string
  8824. /**
  8825. *
  8826. * @type {string}
  8827. * @memberof AssetApiSearchAssets
  8828. */
  8829. readonly updatedAfter?: string
  8830. /**
  8831. *
  8832. * @type {string}
  8833. * @memberof AssetApiSearchAssets
  8834. */
  8835. readonly trashedBefore?: string
  8836. /**
  8837. *
  8838. * @type {string}
  8839. * @memberof AssetApiSearchAssets
  8840. */
  8841. readonly trashedAfter?: string
  8842. /**
  8843. *
  8844. * @type {string}
  8845. * @memberof AssetApiSearchAssets
  8846. */
  8847. readonly takenBefore?: string
  8848. /**
  8849. *
  8850. * @type {string}
  8851. * @memberof AssetApiSearchAssets
  8852. */
  8853. readonly takenAfter?: string
  8854. /**
  8855. *
  8856. * @type {string}
  8857. * @memberof AssetApiSearchAssets
  8858. */
  8859. readonly originalFileName?: string
  8860. /**
  8861. *
  8862. * @type {string}
  8863. * @memberof AssetApiSearchAssets
  8864. */
  8865. readonly originalPath?: string
  8866. /**
  8867. *
  8868. * @type {string}
  8869. * @memberof AssetApiSearchAssets
  8870. */
  8871. readonly resizePath?: string
  8872. /**
  8873. *
  8874. * @type {string}
  8875. * @memberof AssetApiSearchAssets
  8876. */
  8877. readonly webpPath?: string
  8878. /**
  8879. *
  8880. * @type {string}
  8881. * @memberof AssetApiSearchAssets
  8882. */
  8883. readonly encodedVideoPath?: string
  8884. /**
  8885. *
  8886. * @type {string}
  8887. * @memberof AssetApiSearchAssets
  8888. */
  8889. readonly city?: string
  8890. /**
  8891. *
  8892. * @type {string}
  8893. * @memberof AssetApiSearchAssets
  8894. */
  8895. readonly state?: string
  8896. /**
  8897. *
  8898. * @type {string}
  8899. * @memberof AssetApiSearchAssets
  8900. */
  8901. readonly country?: string
  8902. /**
  8903. *
  8904. * @type {string}
  8905. * @memberof AssetApiSearchAssets
  8906. */
  8907. readonly make?: string
  8908. /**
  8909. *
  8910. * @type {string}
  8911. * @memberof AssetApiSearchAssets
  8912. */
  8913. readonly model?: string
  8914. /**
  8915. *
  8916. * @type {string}
  8917. * @memberof AssetApiSearchAssets
  8918. */
  8919. readonly lensModel?: string
  8920. /**
  8921. *
  8922. * @type {number}
  8923. * @memberof AssetApiSearchAssets
  8924. */
  8925. readonly page?: number
  8926. /**
  8927. *
  8928. * @type {number}
  8929. * @memberof AssetApiSearchAssets
  8930. */
  8931. readonly size?: number
  8932. }
  8933. /**
  8934. * Request parameters for serveFile operation in AssetApi.
  8935. * @export
  8936. * @interface AssetApiServeFileRequest
  8937. */
  8938. export interface AssetApiServeFileRequest {
  8939. /**
  8940. *
  8941. * @type {string}
  8942. * @memberof AssetApiServeFile
  8943. */
  8944. readonly id: string
  8945. /**
  8946. *
  8947. * @type {boolean}
  8948. * @memberof AssetApiServeFile
  8949. */
  8950. readonly isThumb?: boolean
  8951. /**
  8952. *
  8953. * @type {boolean}
  8954. * @memberof AssetApiServeFile
  8955. */
  8956. readonly isWeb?: boolean
  8957. /**
  8958. *
  8959. * @type {string}
  8960. * @memberof AssetApiServeFile
  8961. */
  8962. readonly key?: string
  8963. }
  8964. /**
  8965. * Request parameters for updateAsset operation in AssetApi.
  8966. * @export
  8967. * @interface AssetApiUpdateAssetRequest
  8968. */
  8969. export interface AssetApiUpdateAssetRequest {
  8970. /**
  8971. *
  8972. * @type {string}
  8973. * @memberof AssetApiUpdateAsset
  8974. */
  8975. readonly id: string
  8976. /**
  8977. *
  8978. * @type {UpdateAssetDto}
  8979. * @memberof AssetApiUpdateAsset
  8980. */
  8981. readonly updateAssetDto: UpdateAssetDto
  8982. }
  8983. /**
  8984. * Request parameters for updateAssets operation in AssetApi.
  8985. * @export
  8986. * @interface AssetApiUpdateAssetsRequest
  8987. */
  8988. export interface AssetApiUpdateAssetsRequest {
  8989. /**
  8990. *
  8991. * @type {AssetBulkUpdateDto}
  8992. * @memberof AssetApiUpdateAssets
  8993. */
  8994. readonly assetBulkUpdateDto: AssetBulkUpdateDto
  8995. }
  8996. /**
  8997. * Request parameters for updateStackParent operation in AssetApi.
  8998. * @export
  8999. * @interface AssetApiUpdateStackParentRequest
  9000. */
  9001. export interface AssetApiUpdateStackParentRequest {
  9002. /**
  9003. *
  9004. * @type {UpdateStackParentDto}
  9005. * @memberof AssetApiUpdateStackParent
  9006. */
  9007. readonly updateStackParentDto: UpdateStackParentDto
  9008. }
  9009. /**
  9010. * Request parameters for uploadFile operation in AssetApi.
  9011. * @export
  9012. * @interface AssetApiUploadFileRequest
  9013. */
  9014. export interface AssetApiUploadFileRequest {
  9015. /**
  9016. *
  9017. * @type {File}
  9018. * @memberof AssetApiUploadFile
  9019. */
  9020. readonly assetData: File
  9021. /**
  9022. *
  9023. * @type {string}
  9024. * @memberof AssetApiUploadFile
  9025. */
  9026. readonly deviceAssetId: string
  9027. /**
  9028. *
  9029. * @type {string}
  9030. * @memberof AssetApiUploadFile
  9031. */
  9032. readonly deviceId: string
  9033. /**
  9034. *
  9035. * @type {string}
  9036. * @memberof AssetApiUploadFile
  9037. */
  9038. readonly fileCreatedAt: string
  9039. /**
  9040. *
  9041. * @type {string}
  9042. * @memberof AssetApiUploadFile
  9043. */
  9044. readonly fileModifiedAt: string
  9045. /**
  9046. *
  9047. * @type {string}
  9048. * @memberof AssetApiUploadFile
  9049. */
  9050. readonly key?: string
  9051. /**
  9052. *
  9053. * @type {string}
  9054. * @memberof AssetApiUploadFile
  9055. */
  9056. readonly duration?: string
  9057. /**
  9058. *
  9059. * @type {boolean}
  9060. * @memberof AssetApiUploadFile
  9061. */
  9062. readonly isArchived?: boolean
  9063. /**
  9064. *
  9065. * @type {boolean}
  9066. * @memberof AssetApiUploadFile
  9067. */
  9068. readonly isExternal?: boolean
  9069. /**
  9070. *
  9071. * @type {boolean}
  9072. * @memberof AssetApiUploadFile
  9073. */
  9074. readonly isFavorite?: boolean
  9075. /**
  9076. *
  9077. * @type {boolean}
  9078. * @memberof AssetApiUploadFile
  9079. */
  9080. readonly isOffline?: boolean
  9081. /**
  9082. *
  9083. * @type {boolean}
  9084. * @memberof AssetApiUploadFile
  9085. */
  9086. readonly isReadOnly?: boolean
  9087. /**
  9088. *
  9089. * @type {boolean}
  9090. * @memberof AssetApiUploadFile
  9091. */
  9092. readonly isVisible?: boolean
  9093. /**
  9094. *
  9095. * @type {string}
  9096. * @memberof AssetApiUploadFile
  9097. */
  9098. readonly libraryId?: string
  9099. /**
  9100. *
  9101. * @type {File}
  9102. * @memberof AssetApiUploadFile
  9103. */
  9104. readonly livePhotoData?: File
  9105. /**
  9106. *
  9107. * @type {File}
  9108. * @memberof AssetApiUploadFile
  9109. */
  9110. readonly sidecarData?: File
  9111. }
  9112. /**
  9113. * AssetApi - object-oriented interface
  9114. * @export
  9115. * @class AssetApi
  9116. * @extends {BaseAPI}
  9117. */
  9118. export class AssetApi extends BaseAPI {
  9119. /**
  9120. * Checks if assets exist by checksums
  9121. * @param {AssetApiCheckBulkUploadRequest} requestParameters Request parameters.
  9122. * @param {*} [options] Override http request option.
  9123. * @throws {RequiredError}
  9124. * @memberof AssetApi
  9125. */
  9126. public checkBulkUpload(requestParameters: AssetApiCheckBulkUploadRequest, options?: AxiosRequestConfig) {
  9127. return AssetApiFp(this.configuration).checkBulkUpload(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(this.axios, this.basePath));
  9128. }
  9129. /**
  9130. * Checks if multiple assets exist on the server and returns all existing - used by background backup
  9131. * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
  9132. * @param {*} [options] Override http request option.
  9133. * @throws {RequiredError}
  9134. * @memberof AssetApi
  9135. */
  9136. public checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig) {
  9137. return AssetApiFp(this.configuration).checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(this.axios, this.basePath));
  9138. }
  9139. /**
  9140. *
  9141. * @param {AssetApiDeleteAssetsRequest} requestParameters Request parameters.
  9142. * @param {*} [options] Override http request option.
  9143. * @throws {RequiredError}
  9144. * @memberof AssetApi
  9145. */
  9146. public deleteAssets(requestParameters: AssetApiDeleteAssetsRequest, options?: AxiosRequestConfig) {
  9147. return AssetApiFp(this.configuration).deleteAssets(requestParameters.assetBulkDeleteDto, options).then((request) => request(this.axios, this.basePath));
  9148. }
  9149. /**
  9150. *
  9151. * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
  9152. * @param {*} [options] Override http request option.
  9153. * @throws {RequiredError}
  9154. * @memberof AssetApi
  9155. */
  9156. public downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig) {
  9157. return AssetApiFp(this.configuration).downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9158. }
  9159. /**
  9160. *
  9161. * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
  9162. * @param {*} [options] Override http request option.
  9163. * @throws {RequiredError}
  9164. * @memberof AssetApi
  9165. */
  9166. public downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig) {
  9167. return AssetApiFp(this.configuration).downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9168. }
  9169. /**
  9170. *
  9171. * @param {*} [options] Override http request option.
  9172. * @throws {RequiredError}
  9173. * @memberof AssetApi
  9174. */
  9175. public emptyTrash(options?: AxiosRequestConfig) {
  9176. return AssetApiFp(this.configuration).emptyTrash(options).then((request) => request(this.axios, this.basePath));
  9177. }
  9178. /**
  9179. * Get all AssetEntity belong to the user
  9180. * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
  9181. * @param {*} [options] Override http request option.
  9182. * @throws {RequiredError}
  9183. * @memberof AssetApi
  9184. */
  9185. public getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig) {
  9186. 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));
  9187. }
  9188. /**
  9189. * Get all asset of a device that are in the database, ID only.
  9190. * @param {AssetApiGetAllUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  9191. * @param {*} [options] Override http request option.
  9192. * @throws {RequiredError}
  9193. * @memberof AssetApi
  9194. */
  9195. public getAllUserAssetsByDeviceId(requestParameters: AssetApiGetAllUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig) {
  9196. return AssetApiFp(this.configuration).getAllUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
  9197. }
  9198. /**
  9199. * Get a single asset\'s information
  9200. * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
  9201. * @param {*} [options] Override http request option.
  9202. * @throws {RequiredError}
  9203. * @memberof AssetApi
  9204. */
  9205. public getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig) {
  9206. return AssetApiFp(this.configuration).getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9207. }
  9208. /**
  9209. *
  9210. * @param {*} [options] Override http request option.
  9211. * @throws {RequiredError}
  9212. * @memberof AssetApi
  9213. */
  9214. public getAssetSearchTerms(options?: AxiosRequestConfig) {
  9215. return AssetApiFp(this.configuration).getAssetSearchTerms(options).then((request) => request(this.axios, this.basePath));
  9216. }
  9217. /**
  9218. *
  9219. * @param {AssetApiGetAssetStatisticsRequest} requestParameters Request parameters.
  9220. * @param {*} [options] Override http request option.
  9221. * @throws {RequiredError}
  9222. * @memberof AssetApi
  9223. */
  9224. public getAssetStatistics(requestParameters: AssetApiGetAssetStatisticsRequest = {}, options?: AxiosRequestConfig) {
  9225. return AssetApiFp(this.configuration).getAssetStatistics(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.isTrashed, options).then((request) => request(this.axios, this.basePath));
  9226. }
  9227. /**
  9228. *
  9229. * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
  9230. * @param {*} [options] Override http request option.
  9231. * @throws {RequiredError}
  9232. * @memberof AssetApi
  9233. */
  9234. public getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig) {
  9235. return AssetApiFp(this.configuration).getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9236. }
  9237. /**
  9238. *
  9239. * @param {*} [options] Override http request option.
  9240. * @throws {RequiredError}
  9241. * @memberof AssetApi
  9242. */
  9243. public getCuratedLocations(options?: AxiosRequestConfig) {
  9244. return AssetApiFp(this.configuration).getCuratedLocations(options).then((request) => request(this.axios, this.basePath));
  9245. }
  9246. /**
  9247. *
  9248. * @param {*} [options] Override http request option.
  9249. * @throws {RequiredError}
  9250. * @memberof AssetApi
  9251. */
  9252. public getCuratedObjects(options?: AxiosRequestConfig) {
  9253. return AssetApiFp(this.configuration).getCuratedObjects(options).then((request) => request(this.axios, this.basePath));
  9254. }
  9255. /**
  9256. *
  9257. * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
  9258. * @param {*} [options] Override http request option.
  9259. * @throws {RequiredError}
  9260. * @memberof AssetApi
  9261. */
  9262. public getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest, options?: AxiosRequestConfig) {
  9263. return AssetApiFp(this.configuration).getDownloadInfo(requestParameters.downloadInfoDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9264. }
  9265. /**
  9266. *
  9267. * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
  9268. * @param {*} [options] Override http request option.
  9269. * @throws {RequiredError}
  9270. * @memberof AssetApi
  9271. */
  9272. public getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig) {
  9273. return AssetApiFp(this.configuration).getMapMarkers(requestParameters.isArchived, requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(this.axios, this.basePath));
  9274. }
  9275. /**
  9276. *
  9277. * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
  9278. * @param {*} [options] Override http request option.
  9279. * @throws {RequiredError}
  9280. * @memberof AssetApi
  9281. */
  9282. public getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig) {
  9283. return AssetApiFp(this.configuration).getMemoryLane(requestParameters.day, requestParameters.month, options).then((request) => request(this.axios, this.basePath));
  9284. }
  9285. /**
  9286. *
  9287. * @param {AssetApiGetRandomRequest} requestParameters Request parameters.
  9288. * @param {*} [options] Override http request option.
  9289. * @throws {RequiredError}
  9290. * @memberof AssetApi
  9291. */
  9292. public getRandom(requestParameters: AssetApiGetRandomRequest = {}, options?: AxiosRequestConfig) {
  9293. return AssetApiFp(this.configuration).getRandom(requestParameters.count, options).then((request) => request(this.axios, this.basePath));
  9294. }
  9295. /**
  9296. *
  9297. * @param {AssetApiGetTimeBucketRequest} requestParameters Request parameters.
  9298. * @param {*} [options] Override http request option.
  9299. * @throws {RequiredError}
  9300. * @memberof AssetApi
  9301. */
  9302. public getTimeBucket(requestParameters: AssetApiGetTimeBucketRequest, options?: AxiosRequestConfig) {
  9303. 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));
  9304. }
  9305. /**
  9306. *
  9307. * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
  9308. * @param {*} [options] Override http request option.
  9309. * @throws {RequiredError}
  9310. * @memberof AssetApi
  9311. */
  9312. public getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig) {
  9313. 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));
  9314. }
  9315. /**
  9316. *
  9317. * @summary Use /asset/device/:deviceId instead - Remove in 1.92 release
  9318. * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
  9319. * @param {*} [options] Override http request option.
  9320. * @deprecated
  9321. * @throws {RequiredError}
  9322. * @memberof AssetApi
  9323. */
  9324. public getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig) {
  9325. return AssetApiFp(this.configuration).getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(this.axios, this.basePath));
  9326. }
  9327. /**
  9328. *
  9329. * @param {AssetApiRestoreAssetsRequest} requestParameters Request parameters.
  9330. * @param {*} [options] Override http request option.
  9331. * @throws {RequiredError}
  9332. * @memberof AssetApi
  9333. */
  9334. public restoreAssets(requestParameters: AssetApiRestoreAssetsRequest, options?: AxiosRequestConfig) {
  9335. return AssetApiFp(this.configuration).restoreAssets(requestParameters.bulkIdsDto, options).then((request) => request(this.axios, this.basePath));
  9336. }
  9337. /**
  9338. *
  9339. * @param {*} [options] Override http request option.
  9340. * @throws {RequiredError}
  9341. * @memberof AssetApi
  9342. */
  9343. public restoreTrash(options?: AxiosRequestConfig) {
  9344. return AssetApiFp(this.configuration).restoreTrash(options).then((request) => request(this.axios, this.basePath));
  9345. }
  9346. /**
  9347. *
  9348. * @param {AssetApiRunAssetJobsRequest} requestParameters Request parameters.
  9349. * @param {*} [options] Override http request option.
  9350. * @throws {RequiredError}
  9351. * @memberof AssetApi
  9352. */
  9353. public runAssetJobs(requestParameters: AssetApiRunAssetJobsRequest, options?: AxiosRequestConfig) {
  9354. return AssetApiFp(this.configuration).runAssetJobs(requestParameters.assetJobsDto, options).then((request) => request(this.axios, this.basePath));
  9355. }
  9356. /**
  9357. *
  9358. * @param {AssetApiSearchAssetsRequest} requestParameters Request parameters.
  9359. * @param {*} [options] Override http request option.
  9360. * @throws {RequiredError}
  9361. * @memberof AssetApi
  9362. */
  9363. public searchAssets(requestParameters: AssetApiSearchAssetsRequest = {}, options?: AxiosRequestConfig) {
  9364. return AssetApiFp(this.configuration).searchAssets(requestParameters.id, requestParameters.libraryId, requestParameters.type, requestParameters.order, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.checksum, requestParameters.isArchived, requestParameters.isEncoded, requestParameters.isExternal, requestParameters.isFavorite, requestParameters.isMotion, requestParameters.isOffline, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.withDeleted, requestParameters.withStacked, requestParameters.withExif, requestParameters.withPeople, requestParameters.createdBefore, requestParameters.createdAfter, requestParameters.updatedBefore, requestParameters.updatedAfter, requestParameters.trashedBefore, requestParameters.trashedAfter, requestParameters.takenBefore, requestParameters.takenAfter, requestParameters.originalFileName, requestParameters.originalPath, requestParameters.resizePath, requestParameters.webpPath, requestParameters.encodedVideoPath, requestParameters.city, requestParameters.state, requestParameters.country, requestParameters.make, requestParameters.model, requestParameters.lensModel, requestParameters.page, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
  9365. }
  9366. /**
  9367. *
  9368. * @param {AssetApiServeFileRequest} requestParameters Request parameters.
  9369. * @param {*} [options] Override http request option.
  9370. * @throws {RequiredError}
  9371. * @memberof AssetApi
  9372. */
  9373. public serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig) {
  9374. return AssetApiFp(this.configuration).serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  9375. }
  9376. /**
  9377. *
  9378. * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
  9379. * @param {*} [options] Override http request option.
  9380. * @throws {RequiredError}
  9381. * @memberof AssetApi
  9382. */
  9383. public updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig) {
  9384. return AssetApiFp(this.configuration).updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(this.axios, this.basePath));
  9385. }
  9386. /**
  9387. *
  9388. * @param {AssetApiUpdateAssetsRequest} requestParameters Request parameters.
  9389. * @param {*} [options] Override http request option.
  9390. * @throws {RequiredError}
  9391. * @memberof AssetApi
  9392. */
  9393. public updateAssets(requestParameters: AssetApiUpdateAssetsRequest, options?: AxiosRequestConfig) {
  9394. return AssetApiFp(this.configuration).updateAssets(requestParameters.assetBulkUpdateDto, options).then((request) => request(this.axios, this.basePath));
  9395. }
  9396. /**
  9397. *
  9398. * @param {AssetApiUpdateStackParentRequest} requestParameters Request parameters.
  9399. * @param {*} [options] Override http request option.
  9400. * @throws {RequiredError}
  9401. * @memberof AssetApi
  9402. */
  9403. public updateStackParent(requestParameters: AssetApiUpdateStackParentRequest, options?: AxiosRequestConfig) {
  9404. return AssetApiFp(this.configuration).updateStackParent(requestParameters.updateStackParentDto, options).then((request) => request(this.axios, this.basePath));
  9405. }
  9406. /**
  9407. *
  9408. * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
  9409. * @param {*} [options] Override http request option.
  9410. * @throws {RequiredError}
  9411. * @memberof AssetApi
  9412. */
  9413. public uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig) {
  9414. 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));
  9415. }
  9416. }
  9417. /**
  9418. * AuditApi - axios parameter creator
  9419. * @export
  9420. */
  9421. export const AuditApiAxiosParamCreator = function (configuration?: Configuration) {
  9422. return {
  9423. /**
  9424. *
  9425. * @param {FileReportFixDto} fileReportFixDto
  9426. * @param {*} [options] Override http request option.
  9427. * @throws {RequiredError}
  9428. */
  9429. fixAuditFiles: async (fileReportFixDto: FileReportFixDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9430. // verify required parameter 'fileReportFixDto' is not null or undefined
  9431. assertParamExists('fixAuditFiles', 'fileReportFixDto', fileReportFixDto)
  9432. const localVarPath = `/audit/file-report/fix`;
  9433. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9434. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9435. let baseOptions;
  9436. if (configuration) {
  9437. baseOptions = configuration.baseOptions;
  9438. }
  9439. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9440. const localVarHeaderParameter = {} as any;
  9441. const localVarQueryParameter = {} as any;
  9442. // authentication cookie required
  9443. // authentication api_key required
  9444. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9445. // authentication bearer required
  9446. // http bearer authentication required
  9447. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9448. localVarHeaderParameter['Content-Type'] = 'application/json';
  9449. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9450. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9451. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9452. localVarRequestOptions.data = serializeDataIfNeeded(fileReportFixDto, localVarRequestOptions, configuration)
  9453. return {
  9454. url: toPathString(localVarUrlObj),
  9455. options: localVarRequestOptions,
  9456. };
  9457. },
  9458. /**
  9459. *
  9460. * @param {EntityType} entityType
  9461. * @param {string} after
  9462. * @param {string} [userId]
  9463. * @param {*} [options] Override http request option.
  9464. * @throws {RequiredError}
  9465. */
  9466. getAuditDeletes: async (entityType: EntityType, after: string, userId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9467. // verify required parameter 'entityType' is not null or undefined
  9468. assertParamExists('getAuditDeletes', 'entityType', entityType)
  9469. // verify required parameter 'after' is not null or undefined
  9470. assertParamExists('getAuditDeletes', 'after', after)
  9471. const localVarPath = `/audit/deletes`;
  9472. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9473. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9474. let baseOptions;
  9475. if (configuration) {
  9476. baseOptions = configuration.baseOptions;
  9477. }
  9478. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9479. const localVarHeaderParameter = {} as any;
  9480. const localVarQueryParameter = {} as any;
  9481. // authentication cookie required
  9482. // authentication api_key required
  9483. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9484. // authentication bearer required
  9485. // http bearer authentication required
  9486. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9487. if (entityType !== undefined) {
  9488. localVarQueryParameter['entityType'] = entityType;
  9489. }
  9490. if (userId !== undefined) {
  9491. localVarQueryParameter['userId'] = userId;
  9492. }
  9493. if (after !== undefined) {
  9494. localVarQueryParameter['after'] = (after as any instanceof Date) ?
  9495. (after as any).toISOString() :
  9496. after;
  9497. }
  9498. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9499. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9500. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9501. return {
  9502. url: toPathString(localVarUrlObj),
  9503. options: localVarRequestOptions,
  9504. };
  9505. },
  9506. /**
  9507. *
  9508. * @param {*} [options] Override http request option.
  9509. * @throws {RequiredError}
  9510. */
  9511. getAuditFiles: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9512. const localVarPath = `/audit/file-report`;
  9513. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9514. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9515. let baseOptions;
  9516. if (configuration) {
  9517. baseOptions = configuration.baseOptions;
  9518. }
  9519. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9520. const localVarHeaderParameter = {} as any;
  9521. const localVarQueryParameter = {} as any;
  9522. // authentication cookie required
  9523. // authentication api_key required
  9524. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9525. // authentication bearer required
  9526. // http bearer authentication required
  9527. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9528. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9529. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9530. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9531. return {
  9532. url: toPathString(localVarUrlObj),
  9533. options: localVarRequestOptions,
  9534. };
  9535. },
  9536. /**
  9537. *
  9538. * @param {FileChecksumDto} fileChecksumDto
  9539. * @param {*} [options] Override http request option.
  9540. * @throws {RequiredError}
  9541. */
  9542. getFileChecksums: async (fileChecksumDto: FileChecksumDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9543. // verify required parameter 'fileChecksumDto' is not null or undefined
  9544. assertParamExists('getFileChecksums', 'fileChecksumDto', fileChecksumDto)
  9545. const localVarPath = `/audit/file-report/checksum`;
  9546. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9547. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9548. let baseOptions;
  9549. if (configuration) {
  9550. baseOptions = configuration.baseOptions;
  9551. }
  9552. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9553. const localVarHeaderParameter = {} as any;
  9554. const localVarQueryParameter = {} as any;
  9555. // authentication cookie required
  9556. // authentication api_key required
  9557. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9558. // authentication bearer required
  9559. // http bearer authentication required
  9560. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9561. localVarHeaderParameter['Content-Type'] = 'application/json';
  9562. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9563. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9564. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9565. localVarRequestOptions.data = serializeDataIfNeeded(fileChecksumDto, localVarRequestOptions, configuration)
  9566. return {
  9567. url: toPathString(localVarUrlObj),
  9568. options: localVarRequestOptions,
  9569. };
  9570. },
  9571. }
  9572. };
  9573. /**
  9574. * AuditApi - functional programming interface
  9575. * @export
  9576. */
  9577. export const AuditApiFp = function(configuration?: Configuration) {
  9578. const localVarAxiosParamCreator = AuditApiAxiosParamCreator(configuration)
  9579. return {
  9580. /**
  9581. *
  9582. * @param {FileReportFixDto} fileReportFixDto
  9583. * @param {*} [options] Override http request option.
  9584. * @throws {RequiredError}
  9585. */
  9586. async fixAuditFiles(fileReportFixDto: FileReportFixDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  9587. const localVarAxiosArgs = await localVarAxiosParamCreator.fixAuditFiles(fileReportFixDto, options);
  9588. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9589. },
  9590. /**
  9591. *
  9592. * @param {EntityType} entityType
  9593. * @param {string} after
  9594. * @param {string} [userId]
  9595. * @param {*} [options] Override http request option.
  9596. * @throws {RequiredError}
  9597. */
  9598. async getAuditDeletes(entityType: EntityType, after: string, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditDeletesResponseDto>> {
  9599. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditDeletes(entityType, after, userId, options);
  9600. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9601. },
  9602. /**
  9603. *
  9604. * @param {*} [options] Override http request option.
  9605. * @throws {RequiredError}
  9606. */
  9607. async getAuditFiles(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileReportDto>> {
  9608. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuditFiles(options);
  9609. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9610. },
  9611. /**
  9612. *
  9613. * @param {FileChecksumDto} fileChecksumDto
  9614. * @param {*} [options] Override http request option.
  9615. * @throws {RequiredError}
  9616. */
  9617. async getFileChecksums(fileChecksumDto: FileChecksumDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileChecksumResponseDto>>> {
  9618. const localVarAxiosArgs = await localVarAxiosParamCreator.getFileChecksums(fileChecksumDto, options);
  9619. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  9620. },
  9621. }
  9622. };
  9623. /**
  9624. * AuditApi - factory interface
  9625. * @export
  9626. */
  9627. export const AuditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  9628. const localVarFp = AuditApiFp(configuration)
  9629. return {
  9630. /**
  9631. *
  9632. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  9633. * @param {*} [options] Override http request option.
  9634. * @throws {RequiredError}
  9635. */
  9636. fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  9637. return localVarFp.fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(axios, basePath));
  9638. },
  9639. /**
  9640. *
  9641. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  9642. * @param {*} [options] Override http request option.
  9643. * @throws {RequiredError}
  9644. */
  9645. getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig): AxiosPromise<AuditDeletesResponseDto> {
  9646. return localVarFp.getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(axios, basePath));
  9647. },
  9648. /**
  9649. *
  9650. * @param {*} [options] Override http request option.
  9651. * @throws {RequiredError}
  9652. */
  9653. getAuditFiles(options?: AxiosRequestConfig): AxiosPromise<FileReportDto> {
  9654. return localVarFp.getAuditFiles(options).then((request) => request(axios, basePath));
  9655. },
  9656. /**
  9657. *
  9658. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  9659. * @param {*} [options] Override http request option.
  9660. * @throws {RequiredError}
  9661. */
  9662. getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<FileChecksumResponseDto>> {
  9663. return localVarFp.getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(axios, basePath));
  9664. },
  9665. };
  9666. };
  9667. /**
  9668. * Request parameters for fixAuditFiles operation in AuditApi.
  9669. * @export
  9670. * @interface AuditApiFixAuditFilesRequest
  9671. */
  9672. export interface AuditApiFixAuditFilesRequest {
  9673. /**
  9674. *
  9675. * @type {FileReportFixDto}
  9676. * @memberof AuditApiFixAuditFiles
  9677. */
  9678. readonly fileReportFixDto: FileReportFixDto
  9679. }
  9680. /**
  9681. * Request parameters for getAuditDeletes operation in AuditApi.
  9682. * @export
  9683. * @interface AuditApiGetAuditDeletesRequest
  9684. */
  9685. export interface AuditApiGetAuditDeletesRequest {
  9686. /**
  9687. *
  9688. * @type {EntityType}
  9689. * @memberof AuditApiGetAuditDeletes
  9690. */
  9691. readonly entityType: EntityType
  9692. /**
  9693. *
  9694. * @type {string}
  9695. * @memberof AuditApiGetAuditDeletes
  9696. */
  9697. readonly after: string
  9698. /**
  9699. *
  9700. * @type {string}
  9701. * @memberof AuditApiGetAuditDeletes
  9702. */
  9703. readonly userId?: string
  9704. }
  9705. /**
  9706. * Request parameters for getFileChecksums operation in AuditApi.
  9707. * @export
  9708. * @interface AuditApiGetFileChecksumsRequest
  9709. */
  9710. export interface AuditApiGetFileChecksumsRequest {
  9711. /**
  9712. *
  9713. * @type {FileChecksumDto}
  9714. * @memberof AuditApiGetFileChecksums
  9715. */
  9716. readonly fileChecksumDto: FileChecksumDto
  9717. }
  9718. /**
  9719. * AuditApi - object-oriented interface
  9720. * @export
  9721. * @class AuditApi
  9722. * @extends {BaseAPI}
  9723. */
  9724. export class AuditApi extends BaseAPI {
  9725. /**
  9726. *
  9727. * @param {AuditApiFixAuditFilesRequest} requestParameters Request parameters.
  9728. * @param {*} [options] Override http request option.
  9729. * @throws {RequiredError}
  9730. * @memberof AuditApi
  9731. */
  9732. public fixAuditFiles(requestParameters: AuditApiFixAuditFilesRequest, options?: AxiosRequestConfig) {
  9733. return AuditApiFp(this.configuration).fixAuditFiles(requestParameters.fileReportFixDto, options).then((request) => request(this.axios, this.basePath));
  9734. }
  9735. /**
  9736. *
  9737. * @param {AuditApiGetAuditDeletesRequest} requestParameters Request parameters.
  9738. * @param {*} [options] Override http request option.
  9739. * @throws {RequiredError}
  9740. * @memberof AuditApi
  9741. */
  9742. public getAuditDeletes(requestParameters: AuditApiGetAuditDeletesRequest, options?: AxiosRequestConfig) {
  9743. return AuditApiFp(this.configuration).getAuditDeletes(requestParameters.entityType, requestParameters.after, requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
  9744. }
  9745. /**
  9746. *
  9747. * @param {*} [options] Override http request option.
  9748. * @throws {RequiredError}
  9749. * @memberof AuditApi
  9750. */
  9751. public getAuditFiles(options?: AxiosRequestConfig) {
  9752. return AuditApiFp(this.configuration).getAuditFiles(options).then((request) => request(this.axios, this.basePath));
  9753. }
  9754. /**
  9755. *
  9756. * @param {AuditApiGetFileChecksumsRequest} requestParameters Request parameters.
  9757. * @param {*} [options] Override http request option.
  9758. * @throws {RequiredError}
  9759. * @memberof AuditApi
  9760. */
  9761. public getFileChecksums(requestParameters: AuditApiGetFileChecksumsRequest, options?: AxiosRequestConfig) {
  9762. return AuditApiFp(this.configuration).getFileChecksums(requestParameters.fileChecksumDto, options).then((request) => request(this.axios, this.basePath));
  9763. }
  9764. }
  9765. /**
  9766. * AuthenticationApi - axios parameter creator
  9767. * @export
  9768. */
  9769. export const AuthenticationApiAxiosParamCreator = function (configuration?: Configuration) {
  9770. return {
  9771. /**
  9772. *
  9773. * @param {ChangePasswordDto} changePasswordDto
  9774. * @param {*} [options] Override http request option.
  9775. * @throws {RequiredError}
  9776. */
  9777. changePassword: async (changePasswordDto: ChangePasswordDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9778. // verify required parameter 'changePasswordDto' is not null or undefined
  9779. assertParamExists('changePassword', 'changePasswordDto', changePasswordDto)
  9780. const localVarPath = `/auth/change-password`;
  9781. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9782. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9783. let baseOptions;
  9784. if (configuration) {
  9785. baseOptions = configuration.baseOptions;
  9786. }
  9787. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9788. const localVarHeaderParameter = {} as any;
  9789. const localVarQueryParameter = {} as any;
  9790. // authentication cookie required
  9791. // authentication api_key required
  9792. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9793. // authentication bearer required
  9794. // http bearer authentication required
  9795. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9796. localVarHeaderParameter['Content-Type'] = 'application/json';
  9797. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9798. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9799. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9800. localVarRequestOptions.data = serializeDataIfNeeded(changePasswordDto, localVarRequestOptions, configuration)
  9801. return {
  9802. url: toPathString(localVarUrlObj),
  9803. options: localVarRequestOptions,
  9804. };
  9805. },
  9806. /**
  9807. *
  9808. * @param {*} [options] Override http request option.
  9809. * @throws {RequiredError}
  9810. */
  9811. getAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9812. const localVarPath = `/auth/devices`;
  9813. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9814. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9815. let baseOptions;
  9816. if (configuration) {
  9817. baseOptions = configuration.baseOptions;
  9818. }
  9819. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  9820. const localVarHeaderParameter = {} as any;
  9821. const localVarQueryParameter = {} as any;
  9822. // authentication cookie required
  9823. // authentication api_key required
  9824. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9825. // authentication bearer required
  9826. // http bearer authentication required
  9827. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9828. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9829. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9830. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9831. return {
  9832. url: toPathString(localVarUrlObj),
  9833. options: localVarRequestOptions,
  9834. };
  9835. },
  9836. /**
  9837. *
  9838. * @param {LoginCredentialDto} loginCredentialDto
  9839. * @param {*} [options] Override http request option.
  9840. * @throws {RequiredError}
  9841. */
  9842. login: async (loginCredentialDto: LoginCredentialDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9843. // verify required parameter 'loginCredentialDto' is not null or undefined
  9844. assertParamExists('login', 'loginCredentialDto', loginCredentialDto)
  9845. const localVarPath = `/auth/login`;
  9846. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9847. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9848. let baseOptions;
  9849. if (configuration) {
  9850. baseOptions = configuration.baseOptions;
  9851. }
  9852. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9853. const localVarHeaderParameter = {} as any;
  9854. const localVarQueryParameter = {} as any;
  9855. localVarHeaderParameter['Content-Type'] = 'application/json';
  9856. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9857. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9858. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9859. localVarRequestOptions.data = serializeDataIfNeeded(loginCredentialDto, localVarRequestOptions, configuration)
  9860. return {
  9861. url: toPathString(localVarUrlObj),
  9862. options: localVarRequestOptions,
  9863. };
  9864. },
  9865. /**
  9866. *
  9867. * @param {*} [options] Override http request option.
  9868. * @throws {RequiredError}
  9869. */
  9870. logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9871. const localVarPath = `/auth/logout`;
  9872. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9873. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9874. let baseOptions;
  9875. if (configuration) {
  9876. baseOptions = configuration.baseOptions;
  9877. }
  9878. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9879. const localVarHeaderParameter = {} as any;
  9880. const localVarQueryParameter = {} as any;
  9881. // authentication cookie required
  9882. // authentication api_key required
  9883. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9884. // authentication bearer required
  9885. // http bearer authentication required
  9886. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9887. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9888. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9889. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9890. return {
  9891. url: toPathString(localVarUrlObj),
  9892. options: localVarRequestOptions,
  9893. };
  9894. },
  9895. /**
  9896. *
  9897. * @param {string} id
  9898. * @param {*} [options] Override http request option.
  9899. * @throws {RequiredError}
  9900. */
  9901. logoutAuthDevice: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9902. // verify required parameter 'id' is not null or undefined
  9903. assertParamExists('logoutAuthDevice', 'id', id)
  9904. const localVarPath = `/auth/devices/{id}`
  9905. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  9906. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9907. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9908. let baseOptions;
  9909. if (configuration) {
  9910. baseOptions = configuration.baseOptions;
  9911. }
  9912. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9913. const localVarHeaderParameter = {} as any;
  9914. const localVarQueryParameter = {} as any;
  9915. // authentication cookie required
  9916. // authentication api_key required
  9917. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9918. // authentication bearer required
  9919. // http bearer authentication required
  9920. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9921. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9922. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9923. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9924. return {
  9925. url: toPathString(localVarUrlObj),
  9926. options: localVarRequestOptions,
  9927. };
  9928. },
  9929. /**
  9930. *
  9931. * @param {*} [options] Override http request option.
  9932. * @throws {RequiredError}
  9933. */
  9934. logoutAuthDevices: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9935. const localVarPath = `/auth/devices`;
  9936. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9937. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9938. let baseOptions;
  9939. if (configuration) {
  9940. baseOptions = configuration.baseOptions;
  9941. }
  9942. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  9943. const localVarHeaderParameter = {} as any;
  9944. const localVarQueryParameter = {} as any;
  9945. // authentication cookie required
  9946. // authentication api_key required
  9947. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  9948. // authentication bearer required
  9949. // http bearer authentication required
  9950. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  9951. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9952. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9953. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9954. return {
  9955. url: toPathString(localVarUrlObj),
  9956. options: localVarRequestOptions,
  9957. };
  9958. },
  9959. /**
  9960. *
  9961. * @param {SignUpDto} signUpDto
  9962. * @param {*} [options] Override http request option.
  9963. * @throws {RequiredError}
  9964. */
  9965. signUpAdmin: async (signUpDto: SignUpDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9966. // verify required parameter 'signUpDto' is not null or undefined
  9967. assertParamExists('signUpAdmin', 'signUpDto', signUpDto)
  9968. const localVarPath = `/auth/admin-sign-up`;
  9969. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9970. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9971. let baseOptions;
  9972. if (configuration) {
  9973. baseOptions = configuration.baseOptions;
  9974. }
  9975. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  9976. const localVarHeaderParameter = {} as any;
  9977. const localVarQueryParameter = {} as any;
  9978. localVarHeaderParameter['Content-Type'] = 'application/json';
  9979. setSearchParams(localVarUrlObj, localVarQueryParameter);
  9980. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  9981. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  9982. localVarRequestOptions.data = serializeDataIfNeeded(signUpDto, localVarRequestOptions, configuration)
  9983. return {
  9984. url: toPathString(localVarUrlObj),
  9985. options: localVarRequestOptions,
  9986. };
  9987. },
  9988. /**
  9989. *
  9990. * @param {*} [options] Override http request option.
  9991. * @throws {RequiredError}
  9992. */
  9993. validateAccessToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  9994. const localVarPath = `/auth/validateToken`;
  9995. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  9996. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  9997. let baseOptions;
  9998. if (configuration) {
  9999. baseOptions = configuration.baseOptions;
  10000. }
  10001. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10002. const localVarHeaderParameter = {} as any;
  10003. const localVarQueryParameter = {} as any;
  10004. // authentication cookie required
  10005. // authentication api_key required
  10006. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10007. // authentication bearer required
  10008. // http bearer authentication required
  10009. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10010. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10011. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10012. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10013. return {
  10014. url: toPathString(localVarUrlObj),
  10015. options: localVarRequestOptions,
  10016. };
  10017. },
  10018. }
  10019. };
  10020. /**
  10021. * AuthenticationApi - functional programming interface
  10022. * @export
  10023. */
  10024. export const AuthenticationApiFp = function(configuration?: Configuration) {
  10025. const localVarAxiosParamCreator = AuthenticationApiAxiosParamCreator(configuration)
  10026. return {
  10027. /**
  10028. *
  10029. * @param {ChangePasswordDto} changePasswordDto
  10030. * @param {*} [options] Override http request option.
  10031. * @throws {RequiredError}
  10032. */
  10033. async changePassword(changePasswordDto: ChangePasswordDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10034. const localVarAxiosArgs = await localVarAxiosParamCreator.changePassword(changePasswordDto, options);
  10035. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10036. },
  10037. /**
  10038. *
  10039. * @param {*} [options] Override http request option.
  10040. * @throws {RequiredError}
  10041. */
  10042. async getAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuthDeviceResponseDto>>> {
  10043. const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthDevices(options);
  10044. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10045. },
  10046. /**
  10047. *
  10048. * @param {LoginCredentialDto} loginCredentialDto
  10049. * @param {*} [options] Override http request option.
  10050. * @throws {RequiredError}
  10051. */
  10052. async login(loginCredentialDto: LoginCredentialDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  10053. const localVarAxiosArgs = await localVarAxiosParamCreator.login(loginCredentialDto, options);
  10054. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10055. },
  10056. /**
  10057. *
  10058. * @param {*} [options] Override http request option.
  10059. * @throws {RequiredError}
  10060. */
  10061. async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogoutResponseDto>> {
  10062. const localVarAxiosArgs = await localVarAxiosParamCreator.logout(options);
  10063. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10064. },
  10065. /**
  10066. *
  10067. * @param {string} id
  10068. * @param {*} [options] Override http request option.
  10069. * @throws {RequiredError}
  10070. */
  10071. async logoutAuthDevice(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10072. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevice(id, options);
  10073. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10074. },
  10075. /**
  10076. *
  10077. * @param {*} [options] Override http request option.
  10078. * @throws {RequiredError}
  10079. */
  10080. async logoutAuthDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10081. const localVarAxiosArgs = await localVarAxiosParamCreator.logoutAuthDevices(options);
  10082. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10083. },
  10084. /**
  10085. *
  10086. * @param {SignUpDto} signUpDto
  10087. * @param {*} [options] Override http request option.
  10088. * @throws {RequiredError}
  10089. */
  10090. async signUpAdmin(signUpDto: SignUpDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  10091. const localVarAxiosArgs = await localVarAxiosParamCreator.signUpAdmin(signUpDto, options);
  10092. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10093. },
  10094. /**
  10095. *
  10096. * @param {*} [options] Override http request option.
  10097. * @throws {RequiredError}
  10098. */
  10099. async validateAccessToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAccessTokenResponseDto>> {
  10100. const localVarAxiosArgs = await localVarAxiosParamCreator.validateAccessToken(options);
  10101. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10102. },
  10103. }
  10104. };
  10105. /**
  10106. * AuthenticationApi - factory interface
  10107. * @export
  10108. */
  10109. export const AuthenticationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10110. const localVarFp = AuthenticationApiFp(configuration)
  10111. return {
  10112. /**
  10113. *
  10114. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  10115. * @param {*} [options] Override http request option.
  10116. * @throws {RequiredError}
  10117. */
  10118. changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10119. return localVarFp.changePassword(requestParameters.changePasswordDto, options).then((request) => request(axios, basePath));
  10120. },
  10121. /**
  10122. *
  10123. * @param {*} [options] Override http request option.
  10124. * @throws {RequiredError}
  10125. */
  10126. getAuthDevices(options?: AxiosRequestConfig): AxiosPromise<Array<AuthDeviceResponseDto>> {
  10127. return localVarFp.getAuthDevices(options).then((request) => request(axios, basePath));
  10128. },
  10129. /**
  10130. *
  10131. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  10132. * @param {*} [options] Override http request option.
  10133. * @throws {RequiredError}
  10134. */
  10135. login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  10136. return localVarFp.login(requestParameters.loginCredentialDto, options).then((request) => request(axios, basePath));
  10137. },
  10138. /**
  10139. *
  10140. * @param {*} [options] Override http request option.
  10141. * @throws {RequiredError}
  10142. */
  10143. logout(options?: AxiosRequestConfig): AxiosPromise<LogoutResponseDto> {
  10144. return localVarFp.logout(options).then((request) => request(axios, basePath));
  10145. },
  10146. /**
  10147. *
  10148. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  10149. * @param {*} [options] Override http request option.
  10150. * @throws {RequiredError}
  10151. */
  10152. logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10153. return localVarFp.logoutAuthDevice(requestParameters.id, options).then((request) => request(axios, basePath));
  10154. },
  10155. /**
  10156. *
  10157. * @param {*} [options] Override http request option.
  10158. * @throws {RequiredError}
  10159. */
  10160. logoutAuthDevices(options?: AxiosRequestConfig): AxiosPromise<void> {
  10161. return localVarFp.logoutAuthDevices(options).then((request) => request(axios, basePath));
  10162. },
  10163. /**
  10164. *
  10165. * @param {AuthenticationApiSignUpAdminRequest} requestParameters Request parameters.
  10166. * @param {*} [options] Override http request option.
  10167. * @throws {RequiredError}
  10168. */
  10169. signUpAdmin(requestParameters: AuthenticationApiSignUpAdminRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  10170. return localVarFp.signUpAdmin(requestParameters.signUpDto, options).then((request) => request(axios, basePath));
  10171. },
  10172. /**
  10173. *
  10174. * @param {*} [options] Override http request option.
  10175. * @throws {RequiredError}
  10176. */
  10177. validateAccessToken(options?: AxiosRequestConfig): AxiosPromise<ValidateAccessTokenResponseDto> {
  10178. return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
  10179. },
  10180. };
  10181. };
  10182. /**
  10183. * Request parameters for changePassword operation in AuthenticationApi.
  10184. * @export
  10185. * @interface AuthenticationApiChangePasswordRequest
  10186. */
  10187. export interface AuthenticationApiChangePasswordRequest {
  10188. /**
  10189. *
  10190. * @type {ChangePasswordDto}
  10191. * @memberof AuthenticationApiChangePassword
  10192. */
  10193. readonly changePasswordDto: ChangePasswordDto
  10194. }
  10195. /**
  10196. * Request parameters for login operation in AuthenticationApi.
  10197. * @export
  10198. * @interface AuthenticationApiLoginRequest
  10199. */
  10200. export interface AuthenticationApiLoginRequest {
  10201. /**
  10202. *
  10203. * @type {LoginCredentialDto}
  10204. * @memberof AuthenticationApiLogin
  10205. */
  10206. readonly loginCredentialDto: LoginCredentialDto
  10207. }
  10208. /**
  10209. * Request parameters for logoutAuthDevice operation in AuthenticationApi.
  10210. * @export
  10211. * @interface AuthenticationApiLogoutAuthDeviceRequest
  10212. */
  10213. export interface AuthenticationApiLogoutAuthDeviceRequest {
  10214. /**
  10215. *
  10216. * @type {string}
  10217. * @memberof AuthenticationApiLogoutAuthDevice
  10218. */
  10219. readonly id: string
  10220. }
  10221. /**
  10222. * Request parameters for signUpAdmin operation in AuthenticationApi.
  10223. * @export
  10224. * @interface AuthenticationApiSignUpAdminRequest
  10225. */
  10226. export interface AuthenticationApiSignUpAdminRequest {
  10227. /**
  10228. *
  10229. * @type {SignUpDto}
  10230. * @memberof AuthenticationApiSignUpAdmin
  10231. */
  10232. readonly signUpDto: SignUpDto
  10233. }
  10234. /**
  10235. * AuthenticationApi - object-oriented interface
  10236. * @export
  10237. * @class AuthenticationApi
  10238. * @extends {BaseAPI}
  10239. */
  10240. export class AuthenticationApi extends BaseAPI {
  10241. /**
  10242. *
  10243. * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
  10244. * @param {*} [options] Override http request option.
  10245. * @throws {RequiredError}
  10246. * @memberof AuthenticationApi
  10247. */
  10248. public changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig) {
  10249. return AuthenticationApiFp(this.configuration).changePassword(requestParameters.changePasswordDto, options).then((request) => request(this.axios, this.basePath));
  10250. }
  10251. /**
  10252. *
  10253. * @param {*} [options] Override http request option.
  10254. * @throws {RequiredError}
  10255. * @memberof AuthenticationApi
  10256. */
  10257. public getAuthDevices(options?: AxiosRequestConfig) {
  10258. return AuthenticationApiFp(this.configuration).getAuthDevices(options).then((request) => request(this.axios, this.basePath));
  10259. }
  10260. /**
  10261. *
  10262. * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
  10263. * @param {*} [options] Override http request option.
  10264. * @throws {RequiredError}
  10265. * @memberof AuthenticationApi
  10266. */
  10267. public login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig) {
  10268. return AuthenticationApiFp(this.configuration).login(requestParameters.loginCredentialDto, options).then((request) => request(this.axios, this.basePath));
  10269. }
  10270. /**
  10271. *
  10272. * @param {*} [options] Override http request option.
  10273. * @throws {RequiredError}
  10274. * @memberof AuthenticationApi
  10275. */
  10276. public logout(options?: AxiosRequestConfig) {
  10277. return AuthenticationApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
  10278. }
  10279. /**
  10280. *
  10281. * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
  10282. * @param {*} [options] Override http request option.
  10283. * @throws {RequiredError}
  10284. * @memberof AuthenticationApi
  10285. */
  10286. public logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig) {
  10287. return AuthenticationApiFp(this.configuration).logoutAuthDevice(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  10288. }
  10289. /**
  10290. *
  10291. * @param {*} [options] Override http request option.
  10292. * @throws {RequiredError}
  10293. * @memberof AuthenticationApi
  10294. */
  10295. public logoutAuthDevices(options?: AxiosRequestConfig) {
  10296. return AuthenticationApiFp(this.configuration).logoutAuthDevices(options).then((request) => request(this.axios, this.basePath));
  10297. }
  10298. /**
  10299. *
  10300. * @param {AuthenticationApiSignUpAdminRequest} requestParameters Request parameters.
  10301. * @param {*} [options] Override http request option.
  10302. * @throws {RequiredError}
  10303. * @memberof AuthenticationApi
  10304. */
  10305. public signUpAdmin(requestParameters: AuthenticationApiSignUpAdminRequest, options?: AxiosRequestConfig) {
  10306. return AuthenticationApiFp(this.configuration).signUpAdmin(requestParameters.signUpDto, options).then((request) => request(this.axios, this.basePath));
  10307. }
  10308. /**
  10309. *
  10310. * @param {*} [options] Override http request option.
  10311. * @throws {RequiredError}
  10312. * @memberof AuthenticationApi
  10313. */
  10314. public validateAccessToken(options?: AxiosRequestConfig) {
  10315. return AuthenticationApiFp(this.configuration).validateAccessToken(options).then((request) => request(this.axios, this.basePath));
  10316. }
  10317. }
  10318. /**
  10319. * JobApi - axios parameter creator
  10320. * @export
  10321. */
  10322. export const JobApiAxiosParamCreator = function (configuration?: Configuration) {
  10323. return {
  10324. /**
  10325. *
  10326. * @param {*} [options] Override http request option.
  10327. * @throws {RequiredError}
  10328. */
  10329. getAllJobsStatus: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10330. const localVarPath = `/jobs`;
  10331. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10332. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10333. let baseOptions;
  10334. if (configuration) {
  10335. baseOptions = configuration.baseOptions;
  10336. }
  10337. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10338. const localVarHeaderParameter = {} as any;
  10339. const localVarQueryParameter = {} as any;
  10340. // authentication cookie required
  10341. // authentication api_key required
  10342. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10343. // authentication bearer required
  10344. // http bearer authentication required
  10345. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10346. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10347. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10348. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10349. return {
  10350. url: toPathString(localVarUrlObj),
  10351. options: localVarRequestOptions,
  10352. };
  10353. },
  10354. /**
  10355. *
  10356. * @param {JobName} id
  10357. * @param {JobCommandDto} jobCommandDto
  10358. * @param {*} [options] Override http request option.
  10359. * @throws {RequiredError}
  10360. */
  10361. sendJobCommand: async (id: JobName, jobCommandDto: JobCommandDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10362. // verify required parameter 'id' is not null or undefined
  10363. assertParamExists('sendJobCommand', 'id', id)
  10364. // verify required parameter 'jobCommandDto' is not null or undefined
  10365. assertParamExists('sendJobCommand', 'jobCommandDto', jobCommandDto)
  10366. const localVarPath = `/jobs/{id}`
  10367. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10368. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10369. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10370. let baseOptions;
  10371. if (configuration) {
  10372. baseOptions = configuration.baseOptions;
  10373. }
  10374. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10375. const localVarHeaderParameter = {} as any;
  10376. const localVarQueryParameter = {} as any;
  10377. // authentication cookie required
  10378. // authentication api_key required
  10379. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10380. // authentication bearer required
  10381. // http bearer authentication required
  10382. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10383. localVarHeaderParameter['Content-Type'] = 'application/json';
  10384. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10385. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10386. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10387. localVarRequestOptions.data = serializeDataIfNeeded(jobCommandDto, localVarRequestOptions, configuration)
  10388. return {
  10389. url: toPathString(localVarUrlObj),
  10390. options: localVarRequestOptions,
  10391. };
  10392. },
  10393. }
  10394. };
  10395. /**
  10396. * JobApi - functional programming interface
  10397. * @export
  10398. */
  10399. export const JobApiFp = function(configuration?: Configuration) {
  10400. const localVarAxiosParamCreator = JobApiAxiosParamCreator(configuration)
  10401. return {
  10402. /**
  10403. *
  10404. * @param {*} [options] Override http request option.
  10405. * @throws {RequiredError}
  10406. */
  10407. async getAllJobsStatus(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllJobStatusResponseDto>> {
  10408. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllJobsStatus(options);
  10409. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10410. },
  10411. /**
  10412. *
  10413. * @param {JobName} id
  10414. * @param {JobCommandDto} jobCommandDto
  10415. * @param {*} [options] Override http request option.
  10416. * @throws {RequiredError}
  10417. */
  10418. async sendJobCommand(id: JobName, jobCommandDto: JobCommandDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<JobStatusDto>> {
  10419. const localVarAxiosArgs = await localVarAxiosParamCreator.sendJobCommand(id, jobCommandDto, options);
  10420. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10421. },
  10422. }
  10423. };
  10424. /**
  10425. * JobApi - factory interface
  10426. * @export
  10427. */
  10428. export const JobApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10429. const localVarFp = JobApiFp(configuration)
  10430. return {
  10431. /**
  10432. *
  10433. * @param {*} [options] Override http request option.
  10434. * @throws {RequiredError}
  10435. */
  10436. getAllJobsStatus(options?: AxiosRequestConfig): AxiosPromise<AllJobStatusResponseDto> {
  10437. return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
  10438. },
  10439. /**
  10440. *
  10441. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  10442. * @param {*} [options] Override http request option.
  10443. * @throws {RequiredError}
  10444. */
  10445. sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig): AxiosPromise<JobStatusDto> {
  10446. return localVarFp.sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(axios, basePath));
  10447. },
  10448. };
  10449. };
  10450. /**
  10451. * Request parameters for sendJobCommand operation in JobApi.
  10452. * @export
  10453. * @interface JobApiSendJobCommandRequest
  10454. */
  10455. export interface JobApiSendJobCommandRequest {
  10456. /**
  10457. *
  10458. * @type {JobName}
  10459. * @memberof JobApiSendJobCommand
  10460. */
  10461. readonly id: JobName
  10462. /**
  10463. *
  10464. * @type {JobCommandDto}
  10465. * @memberof JobApiSendJobCommand
  10466. */
  10467. readonly jobCommandDto: JobCommandDto
  10468. }
  10469. /**
  10470. * JobApi - object-oriented interface
  10471. * @export
  10472. * @class JobApi
  10473. * @extends {BaseAPI}
  10474. */
  10475. export class JobApi extends BaseAPI {
  10476. /**
  10477. *
  10478. * @param {*} [options] Override http request option.
  10479. * @throws {RequiredError}
  10480. * @memberof JobApi
  10481. */
  10482. public getAllJobsStatus(options?: AxiosRequestConfig) {
  10483. return JobApiFp(this.configuration).getAllJobsStatus(options).then((request) => request(this.axios, this.basePath));
  10484. }
  10485. /**
  10486. *
  10487. * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
  10488. * @param {*} [options] Override http request option.
  10489. * @throws {RequiredError}
  10490. * @memberof JobApi
  10491. */
  10492. public sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig) {
  10493. return JobApiFp(this.configuration).sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(this.axios, this.basePath));
  10494. }
  10495. }
  10496. /**
  10497. * LibraryApi - axios parameter creator
  10498. * @export
  10499. */
  10500. export const LibraryApiAxiosParamCreator = function (configuration?: Configuration) {
  10501. return {
  10502. /**
  10503. *
  10504. * @param {CreateLibraryDto} createLibraryDto
  10505. * @param {*} [options] Override http request option.
  10506. * @throws {RequiredError}
  10507. */
  10508. createLibrary: async (createLibraryDto: CreateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10509. // verify required parameter 'createLibraryDto' is not null or undefined
  10510. assertParamExists('createLibrary', 'createLibraryDto', createLibraryDto)
  10511. const localVarPath = `/library`;
  10512. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10513. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10514. let baseOptions;
  10515. if (configuration) {
  10516. baseOptions = configuration.baseOptions;
  10517. }
  10518. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10519. const localVarHeaderParameter = {} as any;
  10520. const localVarQueryParameter = {} as any;
  10521. // authentication cookie required
  10522. // authentication api_key required
  10523. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10524. // authentication bearer required
  10525. // http bearer authentication required
  10526. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10527. localVarHeaderParameter['Content-Type'] = 'application/json';
  10528. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10529. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10530. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10531. localVarRequestOptions.data = serializeDataIfNeeded(createLibraryDto, localVarRequestOptions, configuration)
  10532. return {
  10533. url: toPathString(localVarUrlObj),
  10534. options: localVarRequestOptions,
  10535. };
  10536. },
  10537. /**
  10538. *
  10539. * @param {string} id
  10540. * @param {*} [options] Override http request option.
  10541. * @throws {RequiredError}
  10542. */
  10543. deleteLibrary: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10544. // verify required parameter 'id' is not null or undefined
  10545. assertParamExists('deleteLibrary', 'id', id)
  10546. const localVarPath = `/library/{id}`
  10547. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10548. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10549. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10550. let baseOptions;
  10551. if (configuration) {
  10552. baseOptions = configuration.baseOptions;
  10553. }
  10554. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  10555. const localVarHeaderParameter = {} as any;
  10556. const localVarQueryParameter = {} as any;
  10557. // authentication cookie required
  10558. // authentication api_key required
  10559. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10560. // authentication bearer required
  10561. // http bearer authentication required
  10562. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10563. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10564. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10565. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10566. return {
  10567. url: toPathString(localVarUrlObj),
  10568. options: localVarRequestOptions,
  10569. };
  10570. },
  10571. /**
  10572. *
  10573. * @param {*} [options] Override http request option.
  10574. * @throws {RequiredError}
  10575. */
  10576. getLibraries: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10577. const localVarPath = `/library`;
  10578. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10579. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10580. let baseOptions;
  10581. if (configuration) {
  10582. baseOptions = configuration.baseOptions;
  10583. }
  10584. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10585. const localVarHeaderParameter = {} as any;
  10586. const localVarQueryParameter = {} as any;
  10587. // authentication cookie required
  10588. // authentication api_key required
  10589. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10590. // authentication bearer required
  10591. // http bearer authentication required
  10592. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10593. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10594. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10595. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10596. return {
  10597. url: toPathString(localVarUrlObj),
  10598. options: localVarRequestOptions,
  10599. };
  10600. },
  10601. /**
  10602. *
  10603. * @param {string} id
  10604. * @param {*} [options] Override http request option.
  10605. * @throws {RequiredError}
  10606. */
  10607. getLibraryInfo: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10608. // verify required parameter 'id' is not null or undefined
  10609. assertParamExists('getLibraryInfo', 'id', id)
  10610. const localVarPath = `/library/{id}`
  10611. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10612. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10613. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10614. let baseOptions;
  10615. if (configuration) {
  10616. baseOptions = configuration.baseOptions;
  10617. }
  10618. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10619. const localVarHeaderParameter = {} as any;
  10620. const localVarQueryParameter = {} as any;
  10621. // authentication cookie required
  10622. // authentication api_key required
  10623. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10624. // authentication bearer required
  10625. // http bearer authentication required
  10626. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10627. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10628. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10629. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10630. return {
  10631. url: toPathString(localVarUrlObj),
  10632. options: localVarRequestOptions,
  10633. };
  10634. },
  10635. /**
  10636. *
  10637. * @param {string} id
  10638. * @param {*} [options] Override http request option.
  10639. * @throws {RequiredError}
  10640. */
  10641. getLibraryStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10642. // verify required parameter 'id' is not null or undefined
  10643. assertParamExists('getLibraryStatistics', 'id', id)
  10644. const localVarPath = `/library/{id}/statistics`
  10645. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10646. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10647. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10648. let baseOptions;
  10649. if (configuration) {
  10650. baseOptions = configuration.baseOptions;
  10651. }
  10652. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  10653. const localVarHeaderParameter = {} as any;
  10654. const localVarQueryParameter = {} as any;
  10655. // authentication cookie required
  10656. // authentication api_key required
  10657. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10658. // authentication bearer required
  10659. // http bearer authentication required
  10660. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10661. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10662. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10663. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10664. return {
  10665. url: toPathString(localVarUrlObj),
  10666. options: localVarRequestOptions,
  10667. };
  10668. },
  10669. /**
  10670. *
  10671. * @param {string} id
  10672. * @param {*} [options] Override http request option.
  10673. * @throws {RequiredError}
  10674. */
  10675. removeOfflineFiles: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10676. // verify required parameter 'id' is not null or undefined
  10677. assertParamExists('removeOfflineFiles', 'id', id)
  10678. const localVarPath = `/library/{id}/removeOffline`
  10679. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10680. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10681. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10682. let baseOptions;
  10683. if (configuration) {
  10684. baseOptions = configuration.baseOptions;
  10685. }
  10686. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10687. const localVarHeaderParameter = {} as any;
  10688. const localVarQueryParameter = {} as any;
  10689. // authentication cookie required
  10690. // authentication api_key required
  10691. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10692. // authentication bearer required
  10693. // http bearer authentication required
  10694. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10695. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10696. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10697. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10698. return {
  10699. url: toPathString(localVarUrlObj),
  10700. options: localVarRequestOptions,
  10701. };
  10702. },
  10703. /**
  10704. *
  10705. * @param {string} id
  10706. * @param {ScanLibraryDto} scanLibraryDto
  10707. * @param {*} [options] Override http request option.
  10708. * @throws {RequiredError}
  10709. */
  10710. scanLibrary: async (id: string, scanLibraryDto: ScanLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10711. // verify required parameter 'id' is not null or undefined
  10712. assertParamExists('scanLibrary', 'id', id)
  10713. // verify required parameter 'scanLibraryDto' is not null or undefined
  10714. assertParamExists('scanLibrary', 'scanLibraryDto', scanLibraryDto)
  10715. const localVarPath = `/library/{id}/scan`
  10716. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10717. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10718. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10719. let baseOptions;
  10720. if (configuration) {
  10721. baseOptions = configuration.baseOptions;
  10722. }
  10723. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  10724. const localVarHeaderParameter = {} as any;
  10725. const localVarQueryParameter = {} as any;
  10726. // authentication cookie required
  10727. // authentication api_key required
  10728. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10729. // authentication bearer required
  10730. // http bearer authentication required
  10731. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10732. localVarHeaderParameter['Content-Type'] = 'application/json';
  10733. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10734. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10735. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10736. localVarRequestOptions.data = serializeDataIfNeeded(scanLibraryDto, localVarRequestOptions, configuration)
  10737. return {
  10738. url: toPathString(localVarUrlObj),
  10739. options: localVarRequestOptions,
  10740. };
  10741. },
  10742. /**
  10743. *
  10744. * @param {string} id
  10745. * @param {UpdateLibraryDto} updateLibraryDto
  10746. * @param {*} [options] Override http request option.
  10747. * @throws {RequiredError}
  10748. */
  10749. updateLibrary: async (id: string, updateLibraryDto: UpdateLibraryDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  10750. // verify required parameter 'id' is not null or undefined
  10751. assertParamExists('updateLibrary', 'id', id)
  10752. // verify required parameter 'updateLibraryDto' is not null or undefined
  10753. assertParamExists('updateLibrary', 'updateLibraryDto', updateLibraryDto)
  10754. const localVarPath = `/library/{id}`
  10755. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  10756. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  10757. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  10758. let baseOptions;
  10759. if (configuration) {
  10760. baseOptions = configuration.baseOptions;
  10761. }
  10762. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  10763. const localVarHeaderParameter = {} as any;
  10764. const localVarQueryParameter = {} as any;
  10765. // authentication cookie required
  10766. // authentication api_key required
  10767. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  10768. // authentication bearer required
  10769. // http bearer authentication required
  10770. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  10771. localVarHeaderParameter['Content-Type'] = 'application/json';
  10772. setSearchParams(localVarUrlObj, localVarQueryParameter);
  10773. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  10774. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  10775. localVarRequestOptions.data = serializeDataIfNeeded(updateLibraryDto, localVarRequestOptions, configuration)
  10776. return {
  10777. url: toPathString(localVarUrlObj),
  10778. options: localVarRequestOptions,
  10779. };
  10780. },
  10781. }
  10782. };
  10783. /**
  10784. * LibraryApi - functional programming interface
  10785. * @export
  10786. */
  10787. export const LibraryApiFp = function(configuration?: Configuration) {
  10788. const localVarAxiosParamCreator = LibraryApiAxiosParamCreator(configuration)
  10789. return {
  10790. /**
  10791. *
  10792. * @param {CreateLibraryDto} createLibraryDto
  10793. * @param {*} [options] Override http request option.
  10794. * @throws {RequiredError}
  10795. */
  10796. async createLibrary(createLibraryDto: CreateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10797. const localVarAxiosArgs = await localVarAxiosParamCreator.createLibrary(createLibraryDto, options);
  10798. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10799. },
  10800. /**
  10801. *
  10802. * @param {string} id
  10803. * @param {*} [options] Override http request option.
  10804. * @throws {RequiredError}
  10805. */
  10806. async deleteLibrary(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10807. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLibrary(id, options);
  10808. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10809. },
  10810. /**
  10811. *
  10812. * @param {*} [options] Override http request option.
  10813. * @throws {RequiredError}
  10814. */
  10815. async getLibraries(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LibraryResponseDto>>> {
  10816. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraries(options);
  10817. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10818. },
  10819. /**
  10820. *
  10821. * @param {string} id
  10822. * @param {*} [options] Override http request option.
  10823. * @throws {RequiredError}
  10824. */
  10825. async getLibraryInfo(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10826. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryInfo(id, options);
  10827. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10828. },
  10829. /**
  10830. *
  10831. * @param {string} id
  10832. * @param {*} [options] Override http request option.
  10833. * @throws {RequiredError}
  10834. */
  10835. async getLibraryStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryStatsResponseDto>> {
  10836. const localVarAxiosArgs = await localVarAxiosParamCreator.getLibraryStatistics(id, options);
  10837. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10838. },
  10839. /**
  10840. *
  10841. * @param {string} id
  10842. * @param {*} [options] Override http request option.
  10843. * @throws {RequiredError}
  10844. */
  10845. async removeOfflineFiles(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10846. const localVarAxiosArgs = await localVarAxiosParamCreator.removeOfflineFiles(id, options);
  10847. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10848. },
  10849. /**
  10850. *
  10851. * @param {string} id
  10852. * @param {ScanLibraryDto} scanLibraryDto
  10853. * @param {*} [options] Override http request option.
  10854. * @throws {RequiredError}
  10855. */
  10856. async scanLibrary(id: string, scanLibraryDto: ScanLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  10857. const localVarAxiosArgs = await localVarAxiosParamCreator.scanLibrary(id, scanLibraryDto, options);
  10858. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10859. },
  10860. /**
  10861. *
  10862. * @param {string} id
  10863. * @param {UpdateLibraryDto} updateLibraryDto
  10864. * @param {*} [options] Override http request option.
  10865. * @throws {RequiredError}
  10866. */
  10867. async updateLibrary(id: string, updateLibraryDto: UpdateLibraryDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LibraryResponseDto>> {
  10868. const localVarAxiosArgs = await localVarAxiosParamCreator.updateLibrary(id, updateLibraryDto, options);
  10869. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  10870. },
  10871. }
  10872. };
  10873. /**
  10874. * LibraryApi - factory interface
  10875. * @export
  10876. */
  10877. export const LibraryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  10878. const localVarFp = LibraryApiFp(configuration)
  10879. return {
  10880. /**
  10881. *
  10882. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  10883. * @param {*} [options] Override http request option.
  10884. * @throws {RequiredError}
  10885. */
  10886. createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10887. return localVarFp.createLibrary(requestParameters.createLibraryDto, options).then((request) => request(axios, basePath));
  10888. },
  10889. /**
  10890. *
  10891. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  10892. * @param {*} [options] Override http request option.
  10893. * @throws {RequiredError}
  10894. */
  10895. deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10896. return localVarFp.deleteLibrary(requestParameters.id, options).then((request) => request(axios, basePath));
  10897. },
  10898. /**
  10899. *
  10900. * @param {*} [options] Override http request option.
  10901. * @throws {RequiredError}
  10902. */
  10903. getLibraries(options?: AxiosRequestConfig): AxiosPromise<Array<LibraryResponseDto>> {
  10904. return localVarFp.getLibraries(options).then((request) => request(axios, basePath));
  10905. },
  10906. /**
  10907. *
  10908. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  10909. * @param {*} [options] Override http request option.
  10910. * @throws {RequiredError}
  10911. */
  10912. getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10913. return localVarFp.getLibraryInfo(requestParameters.id, options).then((request) => request(axios, basePath));
  10914. },
  10915. /**
  10916. *
  10917. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  10918. * @param {*} [options] Override http request option.
  10919. * @throws {RequiredError}
  10920. */
  10921. getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryStatsResponseDto> {
  10922. return localVarFp.getLibraryStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  10923. },
  10924. /**
  10925. *
  10926. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  10927. * @param {*} [options] Override http request option.
  10928. * @throws {RequiredError}
  10929. */
  10930. removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10931. return localVarFp.removeOfflineFiles(requestParameters.id, options).then((request) => request(axios, basePath));
  10932. },
  10933. /**
  10934. *
  10935. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  10936. * @param {*} [options] Override http request option.
  10937. * @throws {RequiredError}
  10938. */
  10939. scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  10940. return localVarFp.scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(axios, basePath));
  10941. },
  10942. /**
  10943. *
  10944. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  10945. * @param {*} [options] Override http request option.
  10946. * @throws {RequiredError}
  10947. */
  10948. updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig): AxiosPromise<LibraryResponseDto> {
  10949. return localVarFp.updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(axios, basePath));
  10950. },
  10951. };
  10952. };
  10953. /**
  10954. * Request parameters for createLibrary operation in LibraryApi.
  10955. * @export
  10956. * @interface LibraryApiCreateLibraryRequest
  10957. */
  10958. export interface LibraryApiCreateLibraryRequest {
  10959. /**
  10960. *
  10961. * @type {CreateLibraryDto}
  10962. * @memberof LibraryApiCreateLibrary
  10963. */
  10964. readonly createLibraryDto: CreateLibraryDto
  10965. }
  10966. /**
  10967. * Request parameters for deleteLibrary operation in LibraryApi.
  10968. * @export
  10969. * @interface LibraryApiDeleteLibraryRequest
  10970. */
  10971. export interface LibraryApiDeleteLibraryRequest {
  10972. /**
  10973. *
  10974. * @type {string}
  10975. * @memberof LibraryApiDeleteLibrary
  10976. */
  10977. readonly id: string
  10978. }
  10979. /**
  10980. * Request parameters for getLibraryInfo operation in LibraryApi.
  10981. * @export
  10982. * @interface LibraryApiGetLibraryInfoRequest
  10983. */
  10984. export interface LibraryApiGetLibraryInfoRequest {
  10985. /**
  10986. *
  10987. * @type {string}
  10988. * @memberof LibraryApiGetLibraryInfo
  10989. */
  10990. readonly id: string
  10991. }
  10992. /**
  10993. * Request parameters for getLibraryStatistics operation in LibraryApi.
  10994. * @export
  10995. * @interface LibraryApiGetLibraryStatisticsRequest
  10996. */
  10997. export interface LibraryApiGetLibraryStatisticsRequest {
  10998. /**
  10999. *
  11000. * @type {string}
  11001. * @memberof LibraryApiGetLibraryStatistics
  11002. */
  11003. readonly id: string
  11004. }
  11005. /**
  11006. * Request parameters for removeOfflineFiles operation in LibraryApi.
  11007. * @export
  11008. * @interface LibraryApiRemoveOfflineFilesRequest
  11009. */
  11010. export interface LibraryApiRemoveOfflineFilesRequest {
  11011. /**
  11012. *
  11013. * @type {string}
  11014. * @memberof LibraryApiRemoveOfflineFiles
  11015. */
  11016. readonly id: string
  11017. }
  11018. /**
  11019. * Request parameters for scanLibrary operation in LibraryApi.
  11020. * @export
  11021. * @interface LibraryApiScanLibraryRequest
  11022. */
  11023. export interface LibraryApiScanLibraryRequest {
  11024. /**
  11025. *
  11026. * @type {string}
  11027. * @memberof LibraryApiScanLibrary
  11028. */
  11029. readonly id: string
  11030. /**
  11031. *
  11032. * @type {ScanLibraryDto}
  11033. * @memberof LibraryApiScanLibrary
  11034. */
  11035. readonly scanLibraryDto: ScanLibraryDto
  11036. }
  11037. /**
  11038. * Request parameters for updateLibrary operation in LibraryApi.
  11039. * @export
  11040. * @interface LibraryApiUpdateLibraryRequest
  11041. */
  11042. export interface LibraryApiUpdateLibraryRequest {
  11043. /**
  11044. *
  11045. * @type {string}
  11046. * @memberof LibraryApiUpdateLibrary
  11047. */
  11048. readonly id: string
  11049. /**
  11050. *
  11051. * @type {UpdateLibraryDto}
  11052. * @memberof LibraryApiUpdateLibrary
  11053. */
  11054. readonly updateLibraryDto: UpdateLibraryDto
  11055. }
  11056. /**
  11057. * LibraryApi - object-oriented interface
  11058. * @export
  11059. * @class LibraryApi
  11060. * @extends {BaseAPI}
  11061. */
  11062. export class LibraryApi extends BaseAPI {
  11063. /**
  11064. *
  11065. * @param {LibraryApiCreateLibraryRequest} requestParameters Request parameters.
  11066. * @param {*} [options] Override http request option.
  11067. * @throws {RequiredError}
  11068. * @memberof LibraryApi
  11069. */
  11070. public createLibrary(requestParameters: LibraryApiCreateLibraryRequest, options?: AxiosRequestConfig) {
  11071. return LibraryApiFp(this.configuration).createLibrary(requestParameters.createLibraryDto, options).then((request) => request(this.axios, this.basePath));
  11072. }
  11073. /**
  11074. *
  11075. * @param {LibraryApiDeleteLibraryRequest} requestParameters Request parameters.
  11076. * @param {*} [options] Override http request option.
  11077. * @throws {RequiredError}
  11078. * @memberof LibraryApi
  11079. */
  11080. public deleteLibrary(requestParameters: LibraryApiDeleteLibraryRequest, options?: AxiosRequestConfig) {
  11081. return LibraryApiFp(this.configuration).deleteLibrary(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11082. }
  11083. /**
  11084. *
  11085. * @param {*} [options] Override http request option.
  11086. * @throws {RequiredError}
  11087. * @memberof LibraryApi
  11088. */
  11089. public getLibraries(options?: AxiosRequestConfig) {
  11090. return LibraryApiFp(this.configuration).getLibraries(options).then((request) => request(this.axios, this.basePath));
  11091. }
  11092. /**
  11093. *
  11094. * @param {LibraryApiGetLibraryInfoRequest} requestParameters Request parameters.
  11095. * @param {*} [options] Override http request option.
  11096. * @throws {RequiredError}
  11097. * @memberof LibraryApi
  11098. */
  11099. public getLibraryInfo(requestParameters: LibraryApiGetLibraryInfoRequest, options?: AxiosRequestConfig) {
  11100. return LibraryApiFp(this.configuration).getLibraryInfo(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11101. }
  11102. /**
  11103. *
  11104. * @param {LibraryApiGetLibraryStatisticsRequest} requestParameters Request parameters.
  11105. * @param {*} [options] Override http request option.
  11106. * @throws {RequiredError}
  11107. * @memberof LibraryApi
  11108. */
  11109. public getLibraryStatistics(requestParameters: LibraryApiGetLibraryStatisticsRequest, options?: AxiosRequestConfig) {
  11110. return LibraryApiFp(this.configuration).getLibraryStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11111. }
  11112. /**
  11113. *
  11114. * @param {LibraryApiRemoveOfflineFilesRequest} requestParameters Request parameters.
  11115. * @param {*} [options] Override http request option.
  11116. * @throws {RequiredError}
  11117. * @memberof LibraryApi
  11118. */
  11119. public removeOfflineFiles(requestParameters: LibraryApiRemoveOfflineFilesRequest, options?: AxiosRequestConfig) {
  11120. return LibraryApiFp(this.configuration).removeOfflineFiles(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11121. }
  11122. /**
  11123. *
  11124. * @param {LibraryApiScanLibraryRequest} requestParameters Request parameters.
  11125. * @param {*} [options] Override http request option.
  11126. * @throws {RequiredError}
  11127. * @memberof LibraryApi
  11128. */
  11129. public scanLibrary(requestParameters: LibraryApiScanLibraryRequest, options?: AxiosRequestConfig) {
  11130. return LibraryApiFp(this.configuration).scanLibrary(requestParameters.id, requestParameters.scanLibraryDto, options).then((request) => request(this.axios, this.basePath));
  11131. }
  11132. /**
  11133. *
  11134. * @param {LibraryApiUpdateLibraryRequest} requestParameters Request parameters.
  11135. * @param {*} [options] Override http request option.
  11136. * @throws {RequiredError}
  11137. * @memberof LibraryApi
  11138. */
  11139. public updateLibrary(requestParameters: LibraryApiUpdateLibraryRequest, options?: AxiosRequestConfig) {
  11140. return LibraryApiFp(this.configuration).updateLibrary(requestParameters.id, requestParameters.updateLibraryDto, options).then((request) => request(this.axios, this.basePath));
  11141. }
  11142. }
  11143. /**
  11144. * OAuthApi - axios parameter creator
  11145. * @export
  11146. */
  11147. export const OAuthApiAxiosParamCreator = function (configuration?: Configuration) {
  11148. return {
  11149. /**
  11150. *
  11151. * @param {OAuthCallbackDto} oAuthCallbackDto
  11152. * @param {*} [options] Override http request option.
  11153. * @throws {RequiredError}
  11154. */
  11155. finishOAuth: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11156. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  11157. assertParamExists('finishOAuth', 'oAuthCallbackDto', oAuthCallbackDto)
  11158. const localVarPath = `/oauth/callback`;
  11159. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11160. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11161. let baseOptions;
  11162. if (configuration) {
  11163. baseOptions = configuration.baseOptions;
  11164. }
  11165. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11166. const localVarHeaderParameter = {} as any;
  11167. const localVarQueryParameter = {} as any;
  11168. localVarHeaderParameter['Content-Type'] = 'application/json';
  11169. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11170. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11171. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11172. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  11173. return {
  11174. url: toPathString(localVarUrlObj),
  11175. options: localVarRequestOptions,
  11176. };
  11177. },
  11178. /**
  11179. * @deprecated use feature flags and /oauth/authorize
  11180. * @param {OAuthConfigDto} oAuthConfigDto
  11181. * @param {*} [options] Override http request option.
  11182. * @deprecated
  11183. * @throws {RequiredError}
  11184. */
  11185. generateOAuthConfig: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11186. // verify required parameter 'oAuthConfigDto' is not null or undefined
  11187. assertParamExists('generateOAuthConfig', 'oAuthConfigDto', oAuthConfigDto)
  11188. const localVarPath = `/oauth/config`;
  11189. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11190. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11191. let baseOptions;
  11192. if (configuration) {
  11193. baseOptions = configuration.baseOptions;
  11194. }
  11195. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11196. const localVarHeaderParameter = {} as any;
  11197. const localVarQueryParameter = {} as any;
  11198. localVarHeaderParameter['Content-Type'] = 'application/json';
  11199. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11200. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11201. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11202. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  11203. return {
  11204. url: toPathString(localVarUrlObj),
  11205. options: localVarRequestOptions,
  11206. };
  11207. },
  11208. /**
  11209. *
  11210. * @param {OAuthCallbackDto} oAuthCallbackDto
  11211. * @param {*} [options] Override http request option.
  11212. * @throws {RequiredError}
  11213. */
  11214. linkOAuthAccount: async (oAuthCallbackDto: OAuthCallbackDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11215. // verify required parameter 'oAuthCallbackDto' is not null or undefined
  11216. assertParamExists('linkOAuthAccount', 'oAuthCallbackDto', oAuthCallbackDto)
  11217. const localVarPath = `/oauth/link`;
  11218. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11219. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11220. let baseOptions;
  11221. if (configuration) {
  11222. baseOptions = configuration.baseOptions;
  11223. }
  11224. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11225. const localVarHeaderParameter = {} as any;
  11226. const localVarQueryParameter = {} as any;
  11227. // authentication cookie required
  11228. // authentication api_key required
  11229. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11230. // authentication bearer required
  11231. // http bearer authentication required
  11232. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11233. localVarHeaderParameter['Content-Type'] = 'application/json';
  11234. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11235. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11236. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11237. localVarRequestOptions.data = serializeDataIfNeeded(oAuthCallbackDto, localVarRequestOptions, configuration)
  11238. return {
  11239. url: toPathString(localVarUrlObj),
  11240. options: localVarRequestOptions,
  11241. };
  11242. },
  11243. /**
  11244. *
  11245. * @param {*} [options] Override http request option.
  11246. * @throws {RequiredError}
  11247. */
  11248. redirectOAuthToMobile: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11249. const localVarPath = `/oauth/mobile-redirect`;
  11250. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11251. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11252. let baseOptions;
  11253. if (configuration) {
  11254. baseOptions = configuration.baseOptions;
  11255. }
  11256. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11257. const localVarHeaderParameter = {} as any;
  11258. const localVarQueryParameter = {} as any;
  11259. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11260. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11261. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11262. return {
  11263. url: toPathString(localVarUrlObj),
  11264. options: localVarRequestOptions,
  11265. };
  11266. },
  11267. /**
  11268. *
  11269. * @param {OAuthConfigDto} oAuthConfigDto
  11270. * @param {*} [options] Override http request option.
  11271. * @throws {RequiredError}
  11272. */
  11273. startOAuth: async (oAuthConfigDto: OAuthConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11274. // verify required parameter 'oAuthConfigDto' is not null or undefined
  11275. assertParamExists('startOAuth', 'oAuthConfigDto', oAuthConfigDto)
  11276. const localVarPath = `/oauth/authorize`;
  11277. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11278. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11279. let baseOptions;
  11280. if (configuration) {
  11281. baseOptions = configuration.baseOptions;
  11282. }
  11283. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11284. const localVarHeaderParameter = {} as any;
  11285. const localVarQueryParameter = {} as any;
  11286. localVarHeaderParameter['Content-Type'] = 'application/json';
  11287. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11288. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11289. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11290. localVarRequestOptions.data = serializeDataIfNeeded(oAuthConfigDto, localVarRequestOptions, configuration)
  11291. return {
  11292. url: toPathString(localVarUrlObj),
  11293. options: localVarRequestOptions,
  11294. };
  11295. },
  11296. /**
  11297. *
  11298. * @param {*} [options] Override http request option.
  11299. * @throws {RequiredError}
  11300. */
  11301. unlinkOAuthAccount: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11302. const localVarPath = `/oauth/unlink`;
  11303. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11304. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11305. let baseOptions;
  11306. if (configuration) {
  11307. baseOptions = configuration.baseOptions;
  11308. }
  11309. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11310. const localVarHeaderParameter = {} as any;
  11311. const localVarQueryParameter = {} as any;
  11312. // authentication cookie required
  11313. // authentication api_key required
  11314. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11315. // authentication bearer required
  11316. // http bearer authentication required
  11317. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11318. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11319. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11320. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11321. return {
  11322. url: toPathString(localVarUrlObj),
  11323. options: localVarRequestOptions,
  11324. };
  11325. },
  11326. }
  11327. };
  11328. /**
  11329. * OAuthApi - functional programming interface
  11330. * @export
  11331. */
  11332. export const OAuthApiFp = function(configuration?: Configuration) {
  11333. const localVarAxiosParamCreator = OAuthApiAxiosParamCreator(configuration)
  11334. return {
  11335. /**
  11336. *
  11337. * @param {OAuthCallbackDto} oAuthCallbackDto
  11338. * @param {*} [options] Override http request option.
  11339. * @throws {RequiredError}
  11340. */
  11341. async finishOAuth(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LoginResponseDto>> {
  11342. const localVarAxiosArgs = await localVarAxiosParamCreator.finishOAuth(oAuthCallbackDto, options);
  11343. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11344. },
  11345. /**
  11346. * @deprecated use feature flags and /oauth/authorize
  11347. * @param {OAuthConfigDto} oAuthConfigDto
  11348. * @param {*} [options] Override http request option.
  11349. * @deprecated
  11350. * @throws {RequiredError}
  11351. */
  11352. async generateOAuthConfig(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthConfigResponseDto>> {
  11353. const localVarAxiosArgs = await localVarAxiosParamCreator.generateOAuthConfig(oAuthConfigDto, options);
  11354. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11355. },
  11356. /**
  11357. *
  11358. * @param {OAuthCallbackDto} oAuthCallbackDto
  11359. * @param {*} [options] Override http request option.
  11360. * @throws {RequiredError}
  11361. */
  11362. async linkOAuthAccount(oAuthCallbackDto: OAuthCallbackDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  11363. const localVarAxiosArgs = await localVarAxiosParamCreator.linkOAuthAccount(oAuthCallbackDto, options);
  11364. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11365. },
  11366. /**
  11367. *
  11368. * @param {*} [options] Override http request option.
  11369. * @throws {RequiredError}
  11370. */
  11371. async redirectOAuthToMobile(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  11372. const localVarAxiosArgs = await localVarAxiosParamCreator.redirectOAuthToMobile(options);
  11373. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11374. },
  11375. /**
  11376. *
  11377. * @param {OAuthConfigDto} oAuthConfigDto
  11378. * @param {*} [options] Override http request option.
  11379. * @throws {RequiredError}
  11380. */
  11381. async startOAuth(oAuthConfigDto: OAuthConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OAuthAuthorizeResponseDto>> {
  11382. const localVarAxiosArgs = await localVarAxiosParamCreator.startOAuth(oAuthConfigDto, options);
  11383. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11384. },
  11385. /**
  11386. *
  11387. * @param {*} [options] Override http request option.
  11388. * @throws {RequiredError}
  11389. */
  11390. async unlinkOAuthAccount(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  11391. const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkOAuthAccount(options);
  11392. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11393. },
  11394. }
  11395. };
  11396. /**
  11397. * OAuthApi - factory interface
  11398. * @export
  11399. */
  11400. export const OAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11401. const localVarFp = OAuthApiFp(configuration)
  11402. return {
  11403. /**
  11404. *
  11405. * @param {OAuthApiFinishOAuthRequest} requestParameters Request parameters.
  11406. * @param {*} [options] Override http request option.
  11407. * @throws {RequiredError}
  11408. */
  11409. finishOAuth(requestParameters: OAuthApiFinishOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
  11410. return localVarFp.finishOAuth(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  11411. },
  11412. /**
  11413. * @deprecated use feature flags and /oauth/authorize
  11414. * @param {OAuthApiGenerateOAuthConfigRequest} requestParameters Request parameters.
  11415. * @param {*} [options] Override http request option.
  11416. * @deprecated
  11417. * @throws {RequiredError}
  11418. */
  11419. generateOAuthConfig(requestParameters: OAuthApiGenerateOAuthConfigRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthConfigResponseDto> {
  11420. return localVarFp.generateOAuthConfig(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  11421. },
  11422. /**
  11423. *
  11424. * @param {OAuthApiLinkOAuthAccountRequest} requestParameters Request parameters.
  11425. * @param {*} [options] Override http request option.
  11426. * @throws {RequiredError}
  11427. */
  11428. linkOAuthAccount(requestParameters: OAuthApiLinkOAuthAccountRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  11429. return localVarFp.linkOAuthAccount(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
  11430. },
  11431. /**
  11432. *
  11433. * @param {*} [options] Override http request option.
  11434. * @throws {RequiredError}
  11435. */
  11436. redirectOAuthToMobile(options?: AxiosRequestConfig): AxiosPromise<void> {
  11437. return localVarFp.redirectOAuthToMobile(options).then((request) => request(axios, basePath));
  11438. },
  11439. /**
  11440. *
  11441. * @param {OAuthApiStartOAuthRequest} requestParameters Request parameters.
  11442. * @param {*} [options] Override http request option.
  11443. * @throws {RequiredError}
  11444. */
  11445. startOAuth(requestParameters: OAuthApiStartOAuthRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthAuthorizeResponseDto> {
  11446. return localVarFp.startOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
  11447. },
  11448. /**
  11449. *
  11450. * @param {*} [options] Override http request option.
  11451. * @throws {RequiredError}
  11452. */
  11453. unlinkOAuthAccount(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  11454. return localVarFp.unlinkOAuthAccount(options).then((request) => request(axios, basePath));
  11455. },
  11456. };
  11457. };
  11458. /**
  11459. * Request parameters for finishOAuth operation in OAuthApi.
  11460. * @export
  11461. * @interface OAuthApiFinishOAuthRequest
  11462. */
  11463. export interface OAuthApiFinishOAuthRequest {
  11464. /**
  11465. *
  11466. * @type {OAuthCallbackDto}
  11467. * @memberof OAuthApiFinishOAuth
  11468. */
  11469. readonly oAuthCallbackDto: OAuthCallbackDto
  11470. }
  11471. /**
  11472. * Request parameters for generateOAuthConfig operation in OAuthApi.
  11473. * @export
  11474. * @interface OAuthApiGenerateOAuthConfigRequest
  11475. */
  11476. export interface OAuthApiGenerateOAuthConfigRequest {
  11477. /**
  11478. *
  11479. * @type {OAuthConfigDto}
  11480. * @memberof OAuthApiGenerateOAuthConfig
  11481. */
  11482. readonly oAuthConfigDto: OAuthConfigDto
  11483. }
  11484. /**
  11485. * Request parameters for linkOAuthAccount operation in OAuthApi.
  11486. * @export
  11487. * @interface OAuthApiLinkOAuthAccountRequest
  11488. */
  11489. export interface OAuthApiLinkOAuthAccountRequest {
  11490. /**
  11491. *
  11492. * @type {OAuthCallbackDto}
  11493. * @memberof OAuthApiLinkOAuthAccount
  11494. */
  11495. readonly oAuthCallbackDto: OAuthCallbackDto
  11496. }
  11497. /**
  11498. * Request parameters for startOAuth operation in OAuthApi.
  11499. * @export
  11500. * @interface OAuthApiStartOAuthRequest
  11501. */
  11502. export interface OAuthApiStartOAuthRequest {
  11503. /**
  11504. *
  11505. * @type {OAuthConfigDto}
  11506. * @memberof OAuthApiStartOAuth
  11507. */
  11508. readonly oAuthConfigDto: OAuthConfigDto
  11509. }
  11510. /**
  11511. * OAuthApi - object-oriented interface
  11512. * @export
  11513. * @class OAuthApi
  11514. * @extends {BaseAPI}
  11515. */
  11516. export class OAuthApi extends BaseAPI {
  11517. /**
  11518. *
  11519. * @param {OAuthApiFinishOAuthRequest} requestParameters Request parameters.
  11520. * @param {*} [options] Override http request option.
  11521. * @throws {RequiredError}
  11522. * @memberof OAuthApi
  11523. */
  11524. public finishOAuth(requestParameters: OAuthApiFinishOAuthRequest, options?: AxiosRequestConfig) {
  11525. return OAuthApiFp(this.configuration).finishOAuth(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  11526. }
  11527. /**
  11528. * @deprecated use feature flags and /oauth/authorize
  11529. * @param {OAuthApiGenerateOAuthConfigRequest} requestParameters Request parameters.
  11530. * @param {*} [options] Override http request option.
  11531. * @deprecated
  11532. * @throws {RequiredError}
  11533. * @memberof OAuthApi
  11534. */
  11535. public generateOAuthConfig(requestParameters: OAuthApiGenerateOAuthConfigRequest, options?: AxiosRequestConfig) {
  11536. return OAuthApiFp(this.configuration).generateOAuthConfig(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  11537. }
  11538. /**
  11539. *
  11540. * @param {OAuthApiLinkOAuthAccountRequest} requestParameters Request parameters.
  11541. * @param {*} [options] Override http request option.
  11542. * @throws {RequiredError}
  11543. * @memberof OAuthApi
  11544. */
  11545. public linkOAuthAccount(requestParameters: OAuthApiLinkOAuthAccountRequest, options?: AxiosRequestConfig) {
  11546. return OAuthApiFp(this.configuration).linkOAuthAccount(requestParameters.oAuthCallbackDto, options).then((request) => request(this.axios, this.basePath));
  11547. }
  11548. /**
  11549. *
  11550. * @param {*} [options] Override http request option.
  11551. * @throws {RequiredError}
  11552. * @memberof OAuthApi
  11553. */
  11554. public redirectOAuthToMobile(options?: AxiosRequestConfig) {
  11555. return OAuthApiFp(this.configuration).redirectOAuthToMobile(options).then((request) => request(this.axios, this.basePath));
  11556. }
  11557. /**
  11558. *
  11559. * @param {OAuthApiStartOAuthRequest} requestParameters Request parameters.
  11560. * @param {*} [options] Override http request option.
  11561. * @throws {RequiredError}
  11562. * @memberof OAuthApi
  11563. */
  11564. public startOAuth(requestParameters: OAuthApiStartOAuthRequest, options?: AxiosRequestConfig) {
  11565. return OAuthApiFp(this.configuration).startOAuth(requestParameters.oAuthConfigDto, options).then((request) => request(this.axios, this.basePath));
  11566. }
  11567. /**
  11568. *
  11569. * @param {*} [options] Override http request option.
  11570. * @throws {RequiredError}
  11571. * @memberof OAuthApi
  11572. */
  11573. public unlinkOAuthAccount(options?: AxiosRequestConfig) {
  11574. return OAuthApiFp(this.configuration).unlinkOAuthAccount(options).then((request) => request(this.axios, this.basePath));
  11575. }
  11576. }
  11577. /**
  11578. * PartnerApi - axios parameter creator
  11579. * @export
  11580. */
  11581. export const PartnerApiAxiosParamCreator = function (configuration?: Configuration) {
  11582. return {
  11583. /**
  11584. *
  11585. * @param {string} id
  11586. * @param {*} [options] Override http request option.
  11587. * @throws {RequiredError}
  11588. */
  11589. createPartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11590. // verify required parameter 'id' is not null or undefined
  11591. assertParamExists('createPartner', 'id', id)
  11592. const localVarPath = `/partner/{id}`
  11593. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11594. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11595. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11596. let baseOptions;
  11597. if (configuration) {
  11598. baseOptions = configuration.baseOptions;
  11599. }
  11600. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  11601. const localVarHeaderParameter = {} as any;
  11602. const localVarQueryParameter = {} as any;
  11603. // authentication cookie required
  11604. // authentication api_key required
  11605. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11606. // authentication bearer required
  11607. // http bearer authentication required
  11608. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11609. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11610. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11611. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11612. return {
  11613. url: toPathString(localVarUrlObj),
  11614. options: localVarRequestOptions,
  11615. };
  11616. },
  11617. /**
  11618. *
  11619. * @param {'shared-by' | 'shared-with'} direction
  11620. * @param {*} [options] Override http request option.
  11621. * @throws {RequiredError}
  11622. */
  11623. getPartners: async (direction: 'shared-by' | 'shared-with', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11624. // verify required parameter 'direction' is not null or undefined
  11625. assertParamExists('getPartners', 'direction', direction)
  11626. const localVarPath = `/partner`;
  11627. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11628. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11629. let baseOptions;
  11630. if (configuration) {
  11631. baseOptions = configuration.baseOptions;
  11632. }
  11633. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11634. const localVarHeaderParameter = {} as any;
  11635. const localVarQueryParameter = {} as any;
  11636. // authentication cookie required
  11637. // authentication api_key required
  11638. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11639. // authentication bearer required
  11640. // http bearer authentication required
  11641. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11642. if (direction !== undefined) {
  11643. localVarQueryParameter['direction'] = direction;
  11644. }
  11645. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11646. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11647. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11648. return {
  11649. url: toPathString(localVarUrlObj),
  11650. options: localVarRequestOptions,
  11651. };
  11652. },
  11653. /**
  11654. *
  11655. * @param {string} id
  11656. * @param {*} [options] Override http request option.
  11657. * @throws {RequiredError}
  11658. */
  11659. removePartner: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11660. // verify required parameter 'id' is not null or undefined
  11661. assertParamExists('removePartner', 'id', id)
  11662. const localVarPath = `/partner/{id}`
  11663. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11664. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11665. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11666. let baseOptions;
  11667. if (configuration) {
  11668. baseOptions = configuration.baseOptions;
  11669. }
  11670. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  11671. const localVarHeaderParameter = {} as any;
  11672. const localVarQueryParameter = {} as any;
  11673. // authentication cookie required
  11674. // authentication api_key required
  11675. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11676. // authentication bearer required
  11677. // http bearer authentication required
  11678. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11679. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11680. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11681. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11682. return {
  11683. url: toPathString(localVarUrlObj),
  11684. options: localVarRequestOptions,
  11685. };
  11686. },
  11687. /**
  11688. *
  11689. * @param {string} id
  11690. * @param {UpdatePartnerDto} updatePartnerDto
  11691. * @param {*} [options] Override http request option.
  11692. * @throws {RequiredError}
  11693. */
  11694. updatePartner: async (id: string, updatePartnerDto: UpdatePartnerDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11695. // verify required parameter 'id' is not null or undefined
  11696. assertParamExists('updatePartner', 'id', id)
  11697. // verify required parameter 'updatePartnerDto' is not null or undefined
  11698. assertParamExists('updatePartner', 'updatePartnerDto', updatePartnerDto)
  11699. const localVarPath = `/partner/{id}`
  11700. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11701. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11702. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11703. let baseOptions;
  11704. if (configuration) {
  11705. baseOptions = configuration.baseOptions;
  11706. }
  11707. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  11708. const localVarHeaderParameter = {} as any;
  11709. const localVarQueryParameter = {} as any;
  11710. // authentication cookie required
  11711. // authentication api_key required
  11712. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11713. // authentication bearer required
  11714. // http bearer authentication required
  11715. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11716. localVarHeaderParameter['Content-Type'] = 'application/json';
  11717. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11718. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11719. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11720. localVarRequestOptions.data = serializeDataIfNeeded(updatePartnerDto, localVarRequestOptions, configuration)
  11721. return {
  11722. url: toPathString(localVarUrlObj),
  11723. options: localVarRequestOptions,
  11724. };
  11725. },
  11726. }
  11727. };
  11728. /**
  11729. * PartnerApi - functional programming interface
  11730. * @export
  11731. */
  11732. export const PartnerApiFp = function(configuration?: Configuration) {
  11733. const localVarAxiosParamCreator = PartnerApiAxiosParamCreator(configuration)
  11734. return {
  11735. /**
  11736. *
  11737. * @param {string} id
  11738. * @param {*} [options] Override http request option.
  11739. * @throws {RequiredError}
  11740. */
  11741. async createPartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerResponseDto>> {
  11742. const localVarAxiosArgs = await localVarAxiosParamCreator.createPartner(id, options);
  11743. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11744. },
  11745. /**
  11746. *
  11747. * @param {'shared-by' | 'shared-with'} direction
  11748. * @param {*} [options] Override http request option.
  11749. * @throws {RequiredError}
  11750. */
  11751. async getPartners(direction: 'shared-by' | 'shared-with', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PartnerResponseDto>>> {
  11752. const localVarAxiosArgs = await localVarAxiosParamCreator.getPartners(direction, options);
  11753. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11754. },
  11755. /**
  11756. *
  11757. * @param {string} id
  11758. * @param {*} [options] Override http request option.
  11759. * @throws {RequiredError}
  11760. */
  11761. async removePartner(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  11762. const localVarAxiosArgs = await localVarAxiosParamCreator.removePartner(id, options);
  11763. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11764. },
  11765. /**
  11766. *
  11767. * @param {string} id
  11768. * @param {UpdatePartnerDto} updatePartnerDto
  11769. * @param {*} [options] Override http request option.
  11770. * @throws {RequiredError}
  11771. */
  11772. async updatePartner(id: string, updatePartnerDto: UpdatePartnerDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PartnerResponseDto>> {
  11773. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartner(id, updatePartnerDto, options);
  11774. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  11775. },
  11776. }
  11777. };
  11778. /**
  11779. * PartnerApi - factory interface
  11780. * @export
  11781. */
  11782. export const PartnerApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  11783. const localVarFp = PartnerApiFp(configuration)
  11784. return {
  11785. /**
  11786. *
  11787. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  11788. * @param {*} [options] Override http request option.
  11789. * @throws {RequiredError}
  11790. */
  11791. createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<PartnerResponseDto> {
  11792. return localVarFp.createPartner(requestParameters.id, options).then((request) => request(axios, basePath));
  11793. },
  11794. /**
  11795. *
  11796. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  11797. * @param {*} [options] Override http request option.
  11798. * @throws {RequiredError}
  11799. */
  11800. getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PartnerResponseDto>> {
  11801. return localVarFp.getPartners(requestParameters.direction, options).then((request) => request(axios, basePath));
  11802. },
  11803. /**
  11804. *
  11805. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  11806. * @param {*} [options] Override http request option.
  11807. * @throws {RequiredError}
  11808. */
  11809. removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  11810. return localVarFp.removePartner(requestParameters.id, options).then((request) => request(axios, basePath));
  11811. },
  11812. /**
  11813. *
  11814. * @param {PartnerApiUpdatePartnerRequest} requestParameters Request parameters.
  11815. * @param {*} [options] Override http request option.
  11816. * @throws {RequiredError}
  11817. */
  11818. updatePartner(requestParameters: PartnerApiUpdatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<PartnerResponseDto> {
  11819. return localVarFp.updatePartner(requestParameters.id, requestParameters.updatePartnerDto, options).then((request) => request(axios, basePath));
  11820. },
  11821. };
  11822. };
  11823. /**
  11824. * Request parameters for createPartner operation in PartnerApi.
  11825. * @export
  11826. * @interface PartnerApiCreatePartnerRequest
  11827. */
  11828. export interface PartnerApiCreatePartnerRequest {
  11829. /**
  11830. *
  11831. * @type {string}
  11832. * @memberof PartnerApiCreatePartner
  11833. */
  11834. readonly id: string
  11835. }
  11836. /**
  11837. * Request parameters for getPartners operation in PartnerApi.
  11838. * @export
  11839. * @interface PartnerApiGetPartnersRequest
  11840. */
  11841. export interface PartnerApiGetPartnersRequest {
  11842. /**
  11843. *
  11844. * @type {'shared-by' | 'shared-with'}
  11845. * @memberof PartnerApiGetPartners
  11846. */
  11847. readonly direction: 'shared-by' | 'shared-with'
  11848. }
  11849. /**
  11850. * Request parameters for removePartner operation in PartnerApi.
  11851. * @export
  11852. * @interface PartnerApiRemovePartnerRequest
  11853. */
  11854. export interface PartnerApiRemovePartnerRequest {
  11855. /**
  11856. *
  11857. * @type {string}
  11858. * @memberof PartnerApiRemovePartner
  11859. */
  11860. readonly id: string
  11861. }
  11862. /**
  11863. * Request parameters for updatePartner operation in PartnerApi.
  11864. * @export
  11865. * @interface PartnerApiUpdatePartnerRequest
  11866. */
  11867. export interface PartnerApiUpdatePartnerRequest {
  11868. /**
  11869. *
  11870. * @type {string}
  11871. * @memberof PartnerApiUpdatePartner
  11872. */
  11873. readonly id: string
  11874. /**
  11875. *
  11876. * @type {UpdatePartnerDto}
  11877. * @memberof PartnerApiUpdatePartner
  11878. */
  11879. readonly updatePartnerDto: UpdatePartnerDto
  11880. }
  11881. /**
  11882. * PartnerApi - object-oriented interface
  11883. * @export
  11884. * @class PartnerApi
  11885. * @extends {BaseAPI}
  11886. */
  11887. export class PartnerApi extends BaseAPI {
  11888. /**
  11889. *
  11890. * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
  11891. * @param {*} [options] Override http request option.
  11892. * @throws {RequiredError}
  11893. * @memberof PartnerApi
  11894. */
  11895. public createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig) {
  11896. return PartnerApiFp(this.configuration).createPartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11897. }
  11898. /**
  11899. *
  11900. * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
  11901. * @param {*} [options] Override http request option.
  11902. * @throws {RequiredError}
  11903. * @memberof PartnerApi
  11904. */
  11905. public getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig) {
  11906. return PartnerApiFp(this.configuration).getPartners(requestParameters.direction, options).then((request) => request(this.axios, this.basePath));
  11907. }
  11908. /**
  11909. *
  11910. * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
  11911. * @param {*} [options] Override http request option.
  11912. * @throws {RequiredError}
  11913. * @memberof PartnerApi
  11914. */
  11915. public removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig) {
  11916. return PartnerApiFp(this.configuration).removePartner(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  11917. }
  11918. /**
  11919. *
  11920. * @param {PartnerApiUpdatePartnerRequest} requestParameters Request parameters.
  11921. * @param {*} [options] Override http request option.
  11922. * @throws {RequiredError}
  11923. * @memberof PartnerApi
  11924. */
  11925. public updatePartner(requestParameters: PartnerApiUpdatePartnerRequest, options?: AxiosRequestConfig) {
  11926. return PartnerApiFp(this.configuration).updatePartner(requestParameters.id, requestParameters.updatePartnerDto, options).then((request) => request(this.axios, this.basePath));
  11927. }
  11928. }
  11929. /**
  11930. * PersonApi - axios parameter creator
  11931. * @export
  11932. */
  11933. export const PersonApiAxiosParamCreator = function (configuration?: Configuration) {
  11934. return {
  11935. /**
  11936. *
  11937. * @param {boolean} [withHidden]
  11938. * @param {*} [options] Override http request option.
  11939. * @throws {RequiredError}
  11940. */
  11941. getAllPeople: async (withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11942. const localVarPath = `/person`;
  11943. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11944. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11945. let baseOptions;
  11946. if (configuration) {
  11947. baseOptions = configuration.baseOptions;
  11948. }
  11949. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11950. const localVarHeaderParameter = {} as any;
  11951. const localVarQueryParameter = {} as any;
  11952. // authentication cookie required
  11953. // authentication api_key required
  11954. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11955. // authentication bearer required
  11956. // http bearer authentication required
  11957. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11958. if (withHidden !== undefined) {
  11959. localVarQueryParameter['withHidden'] = withHidden;
  11960. }
  11961. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11962. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11963. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11964. return {
  11965. url: toPathString(localVarUrlObj),
  11966. options: localVarRequestOptions,
  11967. };
  11968. },
  11969. /**
  11970. *
  11971. * @param {string} id
  11972. * @param {*} [options] Override http request option.
  11973. * @throws {RequiredError}
  11974. */
  11975. getPerson: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  11976. // verify required parameter 'id' is not null or undefined
  11977. assertParamExists('getPerson', 'id', id)
  11978. const localVarPath = `/person/{id}`
  11979. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  11980. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  11981. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  11982. let baseOptions;
  11983. if (configuration) {
  11984. baseOptions = configuration.baseOptions;
  11985. }
  11986. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  11987. const localVarHeaderParameter = {} as any;
  11988. const localVarQueryParameter = {} as any;
  11989. // authentication cookie required
  11990. // authentication api_key required
  11991. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  11992. // authentication bearer required
  11993. // http bearer authentication required
  11994. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  11995. setSearchParams(localVarUrlObj, localVarQueryParameter);
  11996. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  11997. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  11998. return {
  11999. url: toPathString(localVarUrlObj),
  12000. options: localVarRequestOptions,
  12001. };
  12002. },
  12003. /**
  12004. *
  12005. * @param {string} id
  12006. * @param {*} [options] Override http request option.
  12007. * @throws {RequiredError}
  12008. */
  12009. getPersonAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12010. // verify required parameter 'id' is not null or undefined
  12011. assertParamExists('getPersonAssets', 'id', id)
  12012. const localVarPath = `/person/{id}/assets`
  12013. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12014. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12015. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12016. let baseOptions;
  12017. if (configuration) {
  12018. baseOptions = configuration.baseOptions;
  12019. }
  12020. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12021. const localVarHeaderParameter = {} as any;
  12022. const localVarQueryParameter = {} as any;
  12023. // authentication cookie required
  12024. // authentication api_key required
  12025. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12026. // authentication bearer required
  12027. // http bearer authentication required
  12028. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12029. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12030. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12031. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12032. return {
  12033. url: toPathString(localVarUrlObj),
  12034. options: localVarRequestOptions,
  12035. };
  12036. },
  12037. /**
  12038. *
  12039. * @param {string} id
  12040. * @param {*} [options] Override http request option.
  12041. * @throws {RequiredError}
  12042. */
  12043. getPersonStatistics: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12044. // verify required parameter 'id' is not null or undefined
  12045. assertParamExists('getPersonStatistics', 'id', id)
  12046. const localVarPath = `/person/{id}/statistics`
  12047. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12048. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12049. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12050. let baseOptions;
  12051. if (configuration) {
  12052. baseOptions = configuration.baseOptions;
  12053. }
  12054. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12055. const localVarHeaderParameter = {} as any;
  12056. const localVarQueryParameter = {} as any;
  12057. // authentication cookie required
  12058. // authentication api_key required
  12059. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12060. // authentication bearer required
  12061. // http bearer authentication required
  12062. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12063. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12064. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12065. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12066. return {
  12067. url: toPathString(localVarUrlObj),
  12068. options: localVarRequestOptions,
  12069. };
  12070. },
  12071. /**
  12072. *
  12073. * @param {string} id
  12074. * @param {*} [options] Override http request option.
  12075. * @throws {RequiredError}
  12076. */
  12077. getPersonThumbnail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12078. // verify required parameter 'id' is not null or undefined
  12079. assertParamExists('getPersonThumbnail', 'id', id)
  12080. const localVarPath = `/person/{id}/thumbnail`
  12081. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12082. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12083. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12084. let baseOptions;
  12085. if (configuration) {
  12086. baseOptions = configuration.baseOptions;
  12087. }
  12088. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12089. const localVarHeaderParameter = {} as any;
  12090. const localVarQueryParameter = {} as any;
  12091. // authentication cookie required
  12092. // authentication api_key required
  12093. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12094. // authentication bearer required
  12095. // http bearer authentication required
  12096. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12097. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12098. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12099. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12100. return {
  12101. url: toPathString(localVarUrlObj),
  12102. options: localVarRequestOptions,
  12103. };
  12104. },
  12105. /**
  12106. *
  12107. * @param {string} id
  12108. * @param {MergePersonDto} mergePersonDto
  12109. * @param {*} [options] Override http request option.
  12110. * @throws {RequiredError}
  12111. */
  12112. mergePerson: async (id: string, mergePersonDto: MergePersonDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12113. // verify required parameter 'id' is not null or undefined
  12114. assertParamExists('mergePerson', 'id', id)
  12115. // verify required parameter 'mergePersonDto' is not null or undefined
  12116. assertParamExists('mergePerson', 'mergePersonDto', mergePersonDto)
  12117. const localVarPath = `/person/{id}/merge`
  12118. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12119. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12120. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12121. let baseOptions;
  12122. if (configuration) {
  12123. baseOptions = configuration.baseOptions;
  12124. }
  12125. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  12126. const localVarHeaderParameter = {} as any;
  12127. const localVarQueryParameter = {} as any;
  12128. // authentication cookie required
  12129. // authentication api_key required
  12130. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12131. // authentication bearer required
  12132. // http bearer authentication required
  12133. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12134. localVarHeaderParameter['Content-Type'] = 'application/json';
  12135. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12136. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12137. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12138. localVarRequestOptions.data = serializeDataIfNeeded(mergePersonDto, localVarRequestOptions, configuration)
  12139. return {
  12140. url: toPathString(localVarUrlObj),
  12141. options: localVarRequestOptions,
  12142. };
  12143. },
  12144. /**
  12145. *
  12146. * @param {PeopleUpdateDto} peopleUpdateDto
  12147. * @param {*} [options] Override http request option.
  12148. * @throws {RequiredError}
  12149. */
  12150. updatePeople: async (peopleUpdateDto: PeopleUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12151. // verify required parameter 'peopleUpdateDto' is not null or undefined
  12152. assertParamExists('updatePeople', 'peopleUpdateDto', peopleUpdateDto)
  12153. const localVarPath = `/person`;
  12154. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12155. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12156. let baseOptions;
  12157. if (configuration) {
  12158. baseOptions = configuration.baseOptions;
  12159. }
  12160. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12161. const localVarHeaderParameter = {} as any;
  12162. const localVarQueryParameter = {} as any;
  12163. // authentication cookie required
  12164. // authentication api_key required
  12165. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12166. // authentication bearer required
  12167. // http bearer authentication required
  12168. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12169. localVarHeaderParameter['Content-Type'] = 'application/json';
  12170. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12171. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12172. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12173. localVarRequestOptions.data = serializeDataIfNeeded(peopleUpdateDto, localVarRequestOptions, configuration)
  12174. return {
  12175. url: toPathString(localVarUrlObj),
  12176. options: localVarRequestOptions,
  12177. };
  12178. },
  12179. /**
  12180. *
  12181. * @param {string} id
  12182. * @param {PersonUpdateDto} personUpdateDto
  12183. * @param {*} [options] Override http request option.
  12184. * @throws {RequiredError}
  12185. */
  12186. updatePerson: async (id: string, personUpdateDto: PersonUpdateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12187. // verify required parameter 'id' is not null or undefined
  12188. assertParamExists('updatePerson', 'id', id)
  12189. // verify required parameter 'personUpdateDto' is not null or undefined
  12190. assertParamExists('updatePerson', 'personUpdateDto', personUpdateDto)
  12191. const localVarPath = `/person/{id}`
  12192. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  12193. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12194. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12195. let baseOptions;
  12196. if (configuration) {
  12197. baseOptions = configuration.baseOptions;
  12198. }
  12199. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  12200. const localVarHeaderParameter = {} as any;
  12201. const localVarQueryParameter = {} as any;
  12202. // authentication cookie required
  12203. // authentication api_key required
  12204. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12205. // authentication bearer required
  12206. // http bearer authentication required
  12207. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12208. localVarHeaderParameter['Content-Type'] = 'application/json';
  12209. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12210. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12211. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12212. localVarRequestOptions.data = serializeDataIfNeeded(personUpdateDto, localVarRequestOptions, configuration)
  12213. return {
  12214. url: toPathString(localVarUrlObj),
  12215. options: localVarRequestOptions,
  12216. };
  12217. },
  12218. }
  12219. };
  12220. /**
  12221. * PersonApi - functional programming interface
  12222. * @export
  12223. */
  12224. export const PersonApiFp = function(configuration?: Configuration) {
  12225. const localVarAxiosParamCreator = PersonApiAxiosParamCreator(configuration)
  12226. return {
  12227. /**
  12228. *
  12229. * @param {boolean} [withHidden]
  12230. * @param {*} [options] Override http request option.
  12231. * @throws {RequiredError}
  12232. */
  12233. async getAllPeople(withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PeopleResponseDto>> {
  12234. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllPeople(withHidden, options);
  12235. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12236. },
  12237. /**
  12238. *
  12239. * @param {string} id
  12240. * @param {*} [options] Override http request option.
  12241. * @throws {RequiredError}
  12242. */
  12243. async getPerson(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  12244. const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, options);
  12245. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12246. },
  12247. /**
  12248. *
  12249. * @param {string} id
  12250. * @param {*} [options] Override http request option.
  12251. * @throws {RequiredError}
  12252. */
  12253. async getPersonAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  12254. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonAssets(id, options);
  12255. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12256. },
  12257. /**
  12258. *
  12259. * @param {string} id
  12260. * @param {*} [options] Override http request option.
  12261. * @throws {RequiredError}
  12262. */
  12263. async getPersonStatistics(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonStatisticsResponseDto>> {
  12264. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonStatistics(id, options);
  12265. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12266. },
  12267. /**
  12268. *
  12269. * @param {string} id
  12270. * @param {*} [options] Override http request option.
  12271. * @throws {RequiredError}
  12272. */
  12273. async getPersonThumbnail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
  12274. const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonThumbnail(id, options);
  12275. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12276. },
  12277. /**
  12278. *
  12279. * @param {string} id
  12280. * @param {MergePersonDto} mergePersonDto
  12281. * @param {*} [options] Override http request option.
  12282. * @throws {RequiredError}
  12283. */
  12284. async mergePerson(id: string, mergePersonDto: MergePersonDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  12285. const localVarAxiosArgs = await localVarAxiosParamCreator.mergePerson(id, mergePersonDto, options);
  12286. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12287. },
  12288. /**
  12289. *
  12290. * @param {PeopleUpdateDto} peopleUpdateDto
  12291. * @param {*} [options] Override http request option.
  12292. * @throws {RequiredError}
  12293. */
  12294. async updatePeople(peopleUpdateDto: PeopleUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BulkIdResponseDto>>> {
  12295. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePeople(peopleUpdateDto, options);
  12296. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12297. },
  12298. /**
  12299. *
  12300. * @param {string} id
  12301. * @param {PersonUpdateDto} personUpdateDto
  12302. * @param {*} [options] Override http request option.
  12303. * @throws {RequiredError}
  12304. */
  12305. async updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PersonResponseDto>> {
  12306. const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, personUpdateDto, options);
  12307. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12308. },
  12309. }
  12310. };
  12311. /**
  12312. * PersonApi - factory interface
  12313. * @export
  12314. */
  12315. export const PersonApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12316. const localVarFp = PersonApiFp(configuration)
  12317. return {
  12318. /**
  12319. *
  12320. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  12321. * @param {*} [options] Override http request option.
  12322. * @throws {RequiredError}
  12323. */
  12324. getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig): AxiosPromise<PeopleResponseDto> {
  12325. return localVarFp.getAllPeople(requestParameters.withHidden, options).then((request) => request(axios, basePath));
  12326. },
  12327. /**
  12328. *
  12329. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  12330. * @param {*} [options] Override http request option.
  12331. * @throws {RequiredError}
  12332. */
  12333. getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  12334. return localVarFp.getPerson(requestParameters.id, options).then((request) => request(axios, basePath));
  12335. },
  12336. /**
  12337. *
  12338. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  12339. * @param {*} [options] Override http request option.
  12340. * @throws {RequiredError}
  12341. */
  12342. getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  12343. return localVarFp.getPersonAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  12344. },
  12345. /**
  12346. *
  12347. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  12348. * @param {*} [options] Override http request option.
  12349. * @throws {RequiredError}
  12350. */
  12351. getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig): AxiosPromise<PersonStatisticsResponseDto> {
  12352. return localVarFp.getPersonStatistics(requestParameters.id, options).then((request) => request(axios, basePath));
  12353. },
  12354. /**
  12355. *
  12356. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  12357. * @param {*} [options] Override http request option.
  12358. * @throws {RequiredError}
  12359. */
  12360. getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
  12361. return localVarFp.getPersonThumbnail(requestParameters.id, options).then((request) => request(axios, basePath));
  12362. },
  12363. /**
  12364. *
  12365. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  12366. * @param {*} [options] Override http request option.
  12367. * @throws {RequiredError}
  12368. */
  12369. mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  12370. return localVarFp.mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(axios, basePath));
  12371. },
  12372. /**
  12373. *
  12374. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  12375. * @param {*} [options] Override http request option.
  12376. * @throws {RequiredError}
  12377. */
  12378. updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
  12379. return localVarFp.updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(axios, basePath));
  12380. },
  12381. /**
  12382. *
  12383. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  12384. * @param {*} [options] Override http request option.
  12385. * @throws {RequiredError}
  12386. */
  12387. updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
  12388. return localVarFp.updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(axios, basePath));
  12389. },
  12390. };
  12391. };
  12392. /**
  12393. * Request parameters for getAllPeople operation in PersonApi.
  12394. * @export
  12395. * @interface PersonApiGetAllPeopleRequest
  12396. */
  12397. export interface PersonApiGetAllPeopleRequest {
  12398. /**
  12399. *
  12400. * @type {boolean}
  12401. * @memberof PersonApiGetAllPeople
  12402. */
  12403. readonly withHidden?: boolean
  12404. }
  12405. /**
  12406. * Request parameters for getPerson operation in PersonApi.
  12407. * @export
  12408. * @interface PersonApiGetPersonRequest
  12409. */
  12410. export interface PersonApiGetPersonRequest {
  12411. /**
  12412. *
  12413. * @type {string}
  12414. * @memberof PersonApiGetPerson
  12415. */
  12416. readonly id: string
  12417. }
  12418. /**
  12419. * Request parameters for getPersonAssets operation in PersonApi.
  12420. * @export
  12421. * @interface PersonApiGetPersonAssetsRequest
  12422. */
  12423. export interface PersonApiGetPersonAssetsRequest {
  12424. /**
  12425. *
  12426. * @type {string}
  12427. * @memberof PersonApiGetPersonAssets
  12428. */
  12429. readonly id: string
  12430. }
  12431. /**
  12432. * Request parameters for getPersonStatistics operation in PersonApi.
  12433. * @export
  12434. * @interface PersonApiGetPersonStatisticsRequest
  12435. */
  12436. export interface PersonApiGetPersonStatisticsRequest {
  12437. /**
  12438. *
  12439. * @type {string}
  12440. * @memberof PersonApiGetPersonStatistics
  12441. */
  12442. readonly id: string
  12443. }
  12444. /**
  12445. * Request parameters for getPersonThumbnail operation in PersonApi.
  12446. * @export
  12447. * @interface PersonApiGetPersonThumbnailRequest
  12448. */
  12449. export interface PersonApiGetPersonThumbnailRequest {
  12450. /**
  12451. *
  12452. * @type {string}
  12453. * @memberof PersonApiGetPersonThumbnail
  12454. */
  12455. readonly id: string
  12456. }
  12457. /**
  12458. * Request parameters for mergePerson operation in PersonApi.
  12459. * @export
  12460. * @interface PersonApiMergePersonRequest
  12461. */
  12462. export interface PersonApiMergePersonRequest {
  12463. /**
  12464. *
  12465. * @type {string}
  12466. * @memberof PersonApiMergePerson
  12467. */
  12468. readonly id: string
  12469. /**
  12470. *
  12471. * @type {MergePersonDto}
  12472. * @memberof PersonApiMergePerson
  12473. */
  12474. readonly mergePersonDto: MergePersonDto
  12475. }
  12476. /**
  12477. * Request parameters for updatePeople operation in PersonApi.
  12478. * @export
  12479. * @interface PersonApiUpdatePeopleRequest
  12480. */
  12481. export interface PersonApiUpdatePeopleRequest {
  12482. /**
  12483. *
  12484. * @type {PeopleUpdateDto}
  12485. * @memberof PersonApiUpdatePeople
  12486. */
  12487. readonly peopleUpdateDto: PeopleUpdateDto
  12488. }
  12489. /**
  12490. * Request parameters for updatePerson operation in PersonApi.
  12491. * @export
  12492. * @interface PersonApiUpdatePersonRequest
  12493. */
  12494. export interface PersonApiUpdatePersonRequest {
  12495. /**
  12496. *
  12497. * @type {string}
  12498. * @memberof PersonApiUpdatePerson
  12499. */
  12500. readonly id: string
  12501. /**
  12502. *
  12503. * @type {PersonUpdateDto}
  12504. * @memberof PersonApiUpdatePerson
  12505. */
  12506. readonly personUpdateDto: PersonUpdateDto
  12507. }
  12508. /**
  12509. * PersonApi - object-oriented interface
  12510. * @export
  12511. * @class PersonApi
  12512. * @extends {BaseAPI}
  12513. */
  12514. export class PersonApi extends BaseAPI {
  12515. /**
  12516. *
  12517. * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
  12518. * @param {*} [options] Override http request option.
  12519. * @throws {RequiredError}
  12520. * @memberof PersonApi
  12521. */
  12522. public getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig) {
  12523. return PersonApiFp(this.configuration).getAllPeople(requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  12524. }
  12525. /**
  12526. *
  12527. * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
  12528. * @param {*} [options] Override http request option.
  12529. * @throws {RequiredError}
  12530. * @memberof PersonApi
  12531. */
  12532. public getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig) {
  12533. return PersonApiFp(this.configuration).getPerson(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12534. }
  12535. /**
  12536. *
  12537. * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
  12538. * @param {*} [options] Override http request option.
  12539. * @throws {RequiredError}
  12540. * @memberof PersonApi
  12541. */
  12542. public getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig) {
  12543. return PersonApiFp(this.configuration).getPersonAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12544. }
  12545. /**
  12546. *
  12547. * @param {PersonApiGetPersonStatisticsRequest} requestParameters Request parameters.
  12548. * @param {*} [options] Override http request option.
  12549. * @throws {RequiredError}
  12550. * @memberof PersonApi
  12551. */
  12552. public getPersonStatistics(requestParameters: PersonApiGetPersonStatisticsRequest, options?: AxiosRequestConfig) {
  12553. return PersonApiFp(this.configuration).getPersonStatistics(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12554. }
  12555. /**
  12556. *
  12557. * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
  12558. * @param {*} [options] Override http request option.
  12559. * @throws {RequiredError}
  12560. * @memberof PersonApi
  12561. */
  12562. public getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig) {
  12563. return PersonApiFp(this.configuration).getPersonThumbnail(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  12564. }
  12565. /**
  12566. *
  12567. * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
  12568. * @param {*} [options] Override http request option.
  12569. * @throws {RequiredError}
  12570. * @memberof PersonApi
  12571. */
  12572. public mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig) {
  12573. return PersonApiFp(this.configuration).mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(this.axios, this.basePath));
  12574. }
  12575. /**
  12576. *
  12577. * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
  12578. * @param {*} [options] Override http request option.
  12579. * @throws {RequiredError}
  12580. * @memberof PersonApi
  12581. */
  12582. public updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig) {
  12583. return PersonApiFp(this.configuration).updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(this.axios, this.basePath));
  12584. }
  12585. /**
  12586. *
  12587. * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
  12588. * @param {*} [options] Override http request option.
  12589. * @throws {RequiredError}
  12590. * @memberof PersonApi
  12591. */
  12592. public updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig) {
  12593. return PersonApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(this.axios, this.basePath));
  12594. }
  12595. }
  12596. /**
  12597. * SearchApi - axios parameter creator
  12598. * @export
  12599. */
  12600. export const SearchApiAxiosParamCreator = function (configuration?: Configuration) {
  12601. return {
  12602. /**
  12603. *
  12604. * @param {*} [options] Override http request option.
  12605. * @throws {RequiredError}
  12606. */
  12607. getExploreData: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12608. const localVarPath = `/search/explore`;
  12609. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12610. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12611. let baseOptions;
  12612. if (configuration) {
  12613. baseOptions = configuration.baseOptions;
  12614. }
  12615. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12616. const localVarHeaderParameter = {} as any;
  12617. const localVarQueryParameter = {} as any;
  12618. // authentication cookie required
  12619. // authentication api_key required
  12620. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12621. // authentication bearer required
  12622. // http bearer authentication required
  12623. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12624. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12625. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12626. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12627. return {
  12628. url: toPathString(localVarUrlObj),
  12629. options: localVarRequestOptions,
  12630. };
  12631. },
  12632. /**
  12633. *
  12634. * @param {string} [q]
  12635. * @param {string} [query]
  12636. * @param {boolean} [clip]
  12637. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  12638. * @param {boolean} [isFavorite]
  12639. * @param {boolean} [isArchived]
  12640. * @param {string} [exifInfoCity]
  12641. * @param {string} [exifInfoState]
  12642. * @param {string} [exifInfoCountry]
  12643. * @param {string} [exifInfoMake]
  12644. * @param {string} [exifInfoModel]
  12645. * @param {string} [exifInfoProjectionType]
  12646. * @param {Array<string>} [smartInfoObjects]
  12647. * @param {Array<string>} [smartInfoTags]
  12648. * @param {boolean} [recent]
  12649. * @param {boolean} [motion]
  12650. * @param {*} [options] Override http request option.
  12651. * @throws {RequiredError}
  12652. */
  12653. 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> => {
  12654. const localVarPath = `/search`;
  12655. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12656. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12657. let baseOptions;
  12658. if (configuration) {
  12659. baseOptions = configuration.baseOptions;
  12660. }
  12661. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12662. const localVarHeaderParameter = {} as any;
  12663. const localVarQueryParameter = {} as any;
  12664. // authentication cookie required
  12665. // authentication api_key required
  12666. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12667. // authentication bearer required
  12668. // http bearer authentication required
  12669. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12670. if (q !== undefined) {
  12671. localVarQueryParameter['q'] = q;
  12672. }
  12673. if (query !== undefined) {
  12674. localVarQueryParameter['query'] = query;
  12675. }
  12676. if (clip !== undefined) {
  12677. localVarQueryParameter['clip'] = clip;
  12678. }
  12679. if (type !== undefined) {
  12680. localVarQueryParameter['type'] = type;
  12681. }
  12682. if (isFavorite !== undefined) {
  12683. localVarQueryParameter['isFavorite'] = isFavorite;
  12684. }
  12685. if (isArchived !== undefined) {
  12686. localVarQueryParameter['isArchived'] = isArchived;
  12687. }
  12688. if (exifInfoCity !== undefined) {
  12689. localVarQueryParameter['exifInfo.city'] = exifInfoCity;
  12690. }
  12691. if (exifInfoState !== undefined) {
  12692. localVarQueryParameter['exifInfo.state'] = exifInfoState;
  12693. }
  12694. if (exifInfoCountry !== undefined) {
  12695. localVarQueryParameter['exifInfo.country'] = exifInfoCountry;
  12696. }
  12697. if (exifInfoMake !== undefined) {
  12698. localVarQueryParameter['exifInfo.make'] = exifInfoMake;
  12699. }
  12700. if (exifInfoModel !== undefined) {
  12701. localVarQueryParameter['exifInfo.model'] = exifInfoModel;
  12702. }
  12703. if (exifInfoProjectionType !== undefined) {
  12704. localVarQueryParameter['exifInfo.projectionType'] = exifInfoProjectionType;
  12705. }
  12706. if (smartInfoObjects) {
  12707. localVarQueryParameter['smartInfo.objects'] = smartInfoObjects;
  12708. }
  12709. if (smartInfoTags) {
  12710. localVarQueryParameter['smartInfo.tags'] = smartInfoTags;
  12711. }
  12712. if (recent !== undefined) {
  12713. localVarQueryParameter['recent'] = recent;
  12714. }
  12715. if (motion !== undefined) {
  12716. localVarQueryParameter['motion'] = motion;
  12717. }
  12718. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12719. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12720. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12721. return {
  12722. url: toPathString(localVarUrlObj),
  12723. options: localVarRequestOptions,
  12724. };
  12725. },
  12726. /**
  12727. *
  12728. * @param {string} name
  12729. * @param {boolean} [withHidden]
  12730. * @param {*} [options] Override http request option.
  12731. * @throws {RequiredError}
  12732. */
  12733. searchPerson: async (name: string, withHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  12734. // verify required parameter 'name' is not null or undefined
  12735. assertParamExists('searchPerson', 'name', name)
  12736. const localVarPath = `/search/person`;
  12737. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  12738. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  12739. let baseOptions;
  12740. if (configuration) {
  12741. baseOptions = configuration.baseOptions;
  12742. }
  12743. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  12744. const localVarHeaderParameter = {} as any;
  12745. const localVarQueryParameter = {} as any;
  12746. // authentication cookie required
  12747. // authentication api_key required
  12748. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  12749. // authentication bearer required
  12750. // http bearer authentication required
  12751. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  12752. if (name !== undefined) {
  12753. localVarQueryParameter['name'] = name;
  12754. }
  12755. if (withHidden !== undefined) {
  12756. localVarQueryParameter['withHidden'] = withHidden;
  12757. }
  12758. setSearchParams(localVarUrlObj, localVarQueryParameter);
  12759. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  12760. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  12761. return {
  12762. url: toPathString(localVarUrlObj),
  12763. options: localVarRequestOptions,
  12764. };
  12765. },
  12766. }
  12767. };
  12768. /**
  12769. * SearchApi - functional programming interface
  12770. * @export
  12771. */
  12772. export const SearchApiFp = function(configuration?: Configuration) {
  12773. const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration)
  12774. return {
  12775. /**
  12776. *
  12777. * @param {*} [options] Override http request option.
  12778. * @throws {RequiredError}
  12779. */
  12780. async getExploreData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SearchExploreResponseDto>>> {
  12781. const localVarAxiosArgs = await localVarAxiosParamCreator.getExploreData(options);
  12782. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12783. },
  12784. /**
  12785. *
  12786. * @param {string} [q]
  12787. * @param {string} [query]
  12788. * @param {boolean} [clip]
  12789. * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
  12790. * @param {boolean} [isFavorite]
  12791. * @param {boolean} [isArchived]
  12792. * @param {string} [exifInfoCity]
  12793. * @param {string} [exifInfoState]
  12794. * @param {string} [exifInfoCountry]
  12795. * @param {string} [exifInfoMake]
  12796. * @param {string} [exifInfoModel]
  12797. * @param {string} [exifInfoProjectionType]
  12798. * @param {Array<string>} [smartInfoObjects]
  12799. * @param {Array<string>} [smartInfoTags]
  12800. * @param {boolean} [recent]
  12801. * @param {boolean} [motion]
  12802. * @param {*} [options] Override http request option.
  12803. * @throws {RequiredError}
  12804. */
  12805. 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>> {
  12806. const localVarAxiosArgs = await localVarAxiosParamCreator.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options);
  12807. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12808. },
  12809. /**
  12810. *
  12811. * @param {string} name
  12812. * @param {boolean} [withHidden]
  12813. * @param {*} [options] Override http request option.
  12814. * @throws {RequiredError}
  12815. */
  12816. async searchPerson(name: string, withHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PersonResponseDto>>> {
  12817. const localVarAxiosArgs = await localVarAxiosParamCreator.searchPerson(name, withHidden, options);
  12818. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  12819. },
  12820. }
  12821. };
  12822. /**
  12823. * SearchApi - factory interface
  12824. * @export
  12825. */
  12826. export const SearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  12827. const localVarFp = SearchApiFp(configuration)
  12828. return {
  12829. /**
  12830. *
  12831. * @param {*} [options] Override http request option.
  12832. * @throws {RequiredError}
  12833. */
  12834. getExploreData(options?: AxiosRequestConfig): AxiosPromise<Array<SearchExploreResponseDto>> {
  12835. return localVarFp.getExploreData(options).then((request) => request(axios, basePath));
  12836. },
  12837. /**
  12838. *
  12839. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  12840. * @param {*} [options] Override http request option.
  12841. * @throws {RequiredError}
  12842. */
  12843. search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SearchResponseDto> {
  12844. 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));
  12845. },
  12846. /**
  12847. *
  12848. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  12849. * @param {*} [options] Override http request option.
  12850. * @throws {RequiredError}
  12851. */
  12852. searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<PersonResponseDto>> {
  12853. return localVarFp.searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(axios, basePath));
  12854. },
  12855. };
  12856. };
  12857. /**
  12858. * Request parameters for search operation in SearchApi.
  12859. * @export
  12860. * @interface SearchApiSearchRequest
  12861. */
  12862. export interface SearchApiSearchRequest {
  12863. /**
  12864. *
  12865. * @type {string}
  12866. * @memberof SearchApiSearch
  12867. */
  12868. readonly q?: string
  12869. /**
  12870. *
  12871. * @type {string}
  12872. * @memberof SearchApiSearch
  12873. */
  12874. readonly query?: string
  12875. /**
  12876. *
  12877. * @type {boolean}
  12878. * @memberof SearchApiSearch
  12879. */
  12880. readonly clip?: boolean
  12881. /**
  12882. *
  12883. * @type {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'}
  12884. * @memberof SearchApiSearch
  12885. */
  12886. readonly type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'
  12887. /**
  12888. *
  12889. * @type {boolean}
  12890. * @memberof SearchApiSearch
  12891. */
  12892. readonly isFavorite?: boolean
  12893. /**
  12894. *
  12895. * @type {boolean}
  12896. * @memberof SearchApiSearch
  12897. */
  12898. readonly isArchived?: boolean
  12899. /**
  12900. *
  12901. * @type {string}
  12902. * @memberof SearchApiSearch
  12903. */
  12904. readonly exifInfoCity?: string
  12905. /**
  12906. *
  12907. * @type {string}
  12908. * @memberof SearchApiSearch
  12909. */
  12910. readonly exifInfoState?: string
  12911. /**
  12912. *
  12913. * @type {string}
  12914. * @memberof SearchApiSearch
  12915. */
  12916. readonly exifInfoCountry?: string
  12917. /**
  12918. *
  12919. * @type {string}
  12920. * @memberof SearchApiSearch
  12921. */
  12922. readonly exifInfoMake?: string
  12923. /**
  12924. *
  12925. * @type {string}
  12926. * @memberof SearchApiSearch
  12927. */
  12928. readonly exifInfoModel?: string
  12929. /**
  12930. *
  12931. * @type {string}
  12932. * @memberof SearchApiSearch
  12933. */
  12934. readonly exifInfoProjectionType?: string
  12935. /**
  12936. *
  12937. * @type {Array<string>}
  12938. * @memberof SearchApiSearch
  12939. */
  12940. readonly smartInfoObjects?: Array<string>
  12941. /**
  12942. *
  12943. * @type {Array<string>}
  12944. * @memberof SearchApiSearch
  12945. */
  12946. readonly smartInfoTags?: Array<string>
  12947. /**
  12948. *
  12949. * @type {boolean}
  12950. * @memberof SearchApiSearch
  12951. */
  12952. readonly recent?: boolean
  12953. /**
  12954. *
  12955. * @type {boolean}
  12956. * @memberof SearchApiSearch
  12957. */
  12958. readonly motion?: boolean
  12959. }
  12960. /**
  12961. * Request parameters for searchPerson operation in SearchApi.
  12962. * @export
  12963. * @interface SearchApiSearchPersonRequest
  12964. */
  12965. export interface SearchApiSearchPersonRequest {
  12966. /**
  12967. *
  12968. * @type {string}
  12969. * @memberof SearchApiSearchPerson
  12970. */
  12971. readonly name: string
  12972. /**
  12973. *
  12974. * @type {boolean}
  12975. * @memberof SearchApiSearchPerson
  12976. */
  12977. readonly withHidden?: boolean
  12978. }
  12979. /**
  12980. * SearchApi - object-oriented interface
  12981. * @export
  12982. * @class SearchApi
  12983. * @extends {BaseAPI}
  12984. */
  12985. export class SearchApi extends BaseAPI {
  12986. /**
  12987. *
  12988. * @param {*} [options] Override http request option.
  12989. * @throws {RequiredError}
  12990. * @memberof SearchApi
  12991. */
  12992. public getExploreData(options?: AxiosRequestConfig) {
  12993. return SearchApiFp(this.configuration).getExploreData(options).then((request) => request(this.axios, this.basePath));
  12994. }
  12995. /**
  12996. *
  12997. * @param {SearchApiSearchRequest} requestParameters Request parameters.
  12998. * @param {*} [options] Override http request option.
  12999. * @throws {RequiredError}
  13000. * @memberof SearchApi
  13001. */
  13002. public search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig) {
  13003. 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));
  13004. }
  13005. /**
  13006. *
  13007. * @param {SearchApiSearchPersonRequest} requestParameters Request parameters.
  13008. * @param {*} [options] Override http request option.
  13009. * @throws {RequiredError}
  13010. * @memberof SearchApi
  13011. */
  13012. public searchPerson(requestParameters: SearchApiSearchPersonRequest, options?: AxiosRequestConfig) {
  13013. return SearchApiFp(this.configuration).searchPerson(requestParameters.name, requestParameters.withHidden, options).then((request) => request(this.axios, this.basePath));
  13014. }
  13015. }
  13016. /**
  13017. * ServerInfoApi - axios parameter creator
  13018. * @export
  13019. */
  13020. export const ServerInfoApiAxiosParamCreator = function (configuration?: Configuration) {
  13021. return {
  13022. /**
  13023. *
  13024. * @param {*} [options] Override http request option.
  13025. * @throws {RequiredError}
  13026. */
  13027. getServerConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13028. const localVarPath = `/server-info/config`;
  13029. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13030. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13031. let baseOptions;
  13032. if (configuration) {
  13033. baseOptions = configuration.baseOptions;
  13034. }
  13035. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13036. const localVarHeaderParameter = {} as any;
  13037. const localVarQueryParameter = {} as any;
  13038. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13039. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13040. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13041. return {
  13042. url: toPathString(localVarUrlObj),
  13043. options: localVarRequestOptions,
  13044. };
  13045. },
  13046. /**
  13047. *
  13048. * @param {*} [options] Override http request option.
  13049. * @throws {RequiredError}
  13050. */
  13051. getServerFeatures: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13052. const localVarPath = `/server-info/features`;
  13053. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13054. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13055. let baseOptions;
  13056. if (configuration) {
  13057. baseOptions = configuration.baseOptions;
  13058. }
  13059. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13060. const localVarHeaderParameter = {} as any;
  13061. const localVarQueryParameter = {} as any;
  13062. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13063. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13064. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13065. return {
  13066. url: toPathString(localVarUrlObj),
  13067. options: localVarRequestOptions,
  13068. };
  13069. },
  13070. /**
  13071. *
  13072. * @param {*} [options] Override http request option.
  13073. * @throws {RequiredError}
  13074. */
  13075. getServerInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13076. const localVarPath = `/server-info`;
  13077. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13078. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13079. let baseOptions;
  13080. if (configuration) {
  13081. baseOptions = configuration.baseOptions;
  13082. }
  13083. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13084. const localVarHeaderParameter = {} as any;
  13085. const localVarQueryParameter = {} as any;
  13086. // authentication cookie required
  13087. // authentication api_key required
  13088. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13089. // authentication bearer required
  13090. // http bearer authentication required
  13091. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13092. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13093. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13094. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13095. return {
  13096. url: toPathString(localVarUrlObj),
  13097. options: localVarRequestOptions,
  13098. };
  13099. },
  13100. /**
  13101. *
  13102. * @param {*} [options] Override http request option.
  13103. * @throws {RequiredError}
  13104. */
  13105. getServerStatistics: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13106. const localVarPath = `/server-info/statistics`;
  13107. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13108. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13109. let baseOptions;
  13110. if (configuration) {
  13111. baseOptions = configuration.baseOptions;
  13112. }
  13113. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13114. const localVarHeaderParameter = {} as any;
  13115. const localVarQueryParameter = {} as any;
  13116. // authentication cookie required
  13117. // authentication api_key required
  13118. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13119. // authentication bearer required
  13120. // http bearer authentication required
  13121. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13122. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13123. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13124. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13125. return {
  13126. url: toPathString(localVarUrlObj),
  13127. options: localVarRequestOptions,
  13128. };
  13129. },
  13130. /**
  13131. *
  13132. * @param {*} [options] Override http request option.
  13133. * @throws {RequiredError}
  13134. */
  13135. getServerVersion: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13136. const localVarPath = `/server-info/version`;
  13137. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13138. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13139. let baseOptions;
  13140. if (configuration) {
  13141. baseOptions = configuration.baseOptions;
  13142. }
  13143. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13144. const localVarHeaderParameter = {} as any;
  13145. const localVarQueryParameter = {} as any;
  13146. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13147. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13148. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13149. return {
  13150. url: toPathString(localVarUrlObj),
  13151. options: localVarRequestOptions,
  13152. };
  13153. },
  13154. /**
  13155. *
  13156. * @param {*} [options] Override http request option.
  13157. * @throws {RequiredError}
  13158. */
  13159. getSupportedMediaTypes: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13160. const localVarPath = `/server-info/media-types`;
  13161. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13162. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13163. let baseOptions;
  13164. if (configuration) {
  13165. baseOptions = configuration.baseOptions;
  13166. }
  13167. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13168. const localVarHeaderParameter = {} as any;
  13169. const localVarQueryParameter = {} as any;
  13170. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13171. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13172. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13173. return {
  13174. url: toPathString(localVarUrlObj),
  13175. options: localVarRequestOptions,
  13176. };
  13177. },
  13178. /**
  13179. *
  13180. * @param {*} [options] Override http request option.
  13181. * @throws {RequiredError}
  13182. */
  13183. getTheme: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13184. const localVarPath = `/server-info/theme`;
  13185. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13186. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13187. let baseOptions;
  13188. if (configuration) {
  13189. baseOptions = configuration.baseOptions;
  13190. }
  13191. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13192. const localVarHeaderParameter = {} as any;
  13193. const localVarQueryParameter = {} as any;
  13194. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13195. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13196. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13197. return {
  13198. url: toPathString(localVarUrlObj),
  13199. options: localVarRequestOptions,
  13200. };
  13201. },
  13202. /**
  13203. *
  13204. * @param {*} [options] Override http request option.
  13205. * @throws {RequiredError}
  13206. */
  13207. pingServer: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13208. const localVarPath = `/server-info/ping`;
  13209. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13210. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13211. let baseOptions;
  13212. if (configuration) {
  13213. baseOptions = configuration.baseOptions;
  13214. }
  13215. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13216. const localVarHeaderParameter = {} as any;
  13217. const localVarQueryParameter = {} as any;
  13218. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13219. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13220. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13221. return {
  13222. url: toPathString(localVarUrlObj),
  13223. options: localVarRequestOptions,
  13224. };
  13225. },
  13226. }
  13227. };
  13228. /**
  13229. * ServerInfoApi - functional programming interface
  13230. * @export
  13231. */
  13232. export const ServerInfoApiFp = function(configuration?: Configuration) {
  13233. const localVarAxiosParamCreator = ServerInfoApiAxiosParamCreator(configuration)
  13234. return {
  13235. /**
  13236. *
  13237. * @param {*} [options] Override http request option.
  13238. * @throws {RequiredError}
  13239. */
  13240. async getServerConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerConfigDto>> {
  13241. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerConfig(options);
  13242. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13243. },
  13244. /**
  13245. *
  13246. * @param {*} [options] Override http request option.
  13247. * @throws {RequiredError}
  13248. */
  13249. async getServerFeatures(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerFeaturesDto>> {
  13250. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerFeatures(options);
  13251. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13252. },
  13253. /**
  13254. *
  13255. * @param {*} [options] Override http request option.
  13256. * @throws {RequiredError}
  13257. */
  13258. async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfoResponseDto>> {
  13259. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
  13260. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13261. },
  13262. /**
  13263. *
  13264. * @param {*} [options] Override http request option.
  13265. * @throws {RequiredError}
  13266. */
  13267. async getServerStatistics(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerStatsResponseDto>> {
  13268. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerStatistics(options);
  13269. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13270. },
  13271. /**
  13272. *
  13273. * @param {*} [options] Override http request option.
  13274. * @throws {RequiredError}
  13275. */
  13276. async getServerVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerVersionResponseDto>> {
  13277. const localVarAxiosArgs = await localVarAxiosParamCreator.getServerVersion(options);
  13278. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13279. },
  13280. /**
  13281. *
  13282. * @param {*} [options] Override http request option.
  13283. * @throws {RequiredError}
  13284. */
  13285. async getSupportedMediaTypes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerMediaTypesResponseDto>> {
  13286. const localVarAxiosArgs = await localVarAxiosParamCreator.getSupportedMediaTypes(options);
  13287. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13288. },
  13289. /**
  13290. *
  13291. * @param {*} [options] Override http request option.
  13292. * @throws {RequiredError}
  13293. */
  13294. async getTheme(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerThemeDto>> {
  13295. const localVarAxiosArgs = await localVarAxiosParamCreator.getTheme(options);
  13296. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13297. },
  13298. /**
  13299. *
  13300. * @param {*} [options] Override http request option.
  13301. * @throws {RequiredError}
  13302. */
  13303. async pingServer(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerPingResponse>> {
  13304. const localVarAxiosArgs = await localVarAxiosParamCreator.pingServer(options);
  13305. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13306. },
  13307. }
  13308. };
  13309. /**
  13310. * ServerInfoApi - factory interface
  13311. * @export
  13312. */
  13313. export const ServerInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13314. const localVarFp = ServerInfoApiFp(configuration)
  13315. return {
  13316. /**
  13317. *
  13318. * @param {*} [options] Override http request option.
  13319. * @throws {RequiredError}
  13320. */
  13321. getServerConfig(options?: AxiosRequestConfig): AxiosPromise<ServerConfigDto> {
  13322. return localVarFp.getServerConfig(options).then((request) => request(axios, basePath));
  13323. },
  13324. /**
  13325. *
  13326. * @param {*} [options] Override http request option.
  13327. * @throws {RequiredError}
  13328. */
  13329. getServerFeatures(options?: AxiosRequestConfig): AxiosPromise<ServerFeaturesDto> {
  13330. return localVarFp.getServerFeatures(options).then((request) => request(axios, basePath));
  13331. },
  13332. /**
  13333. *
  13334. * @param {*} [options] Override http request option.
  13335. * @throws {RequiredError}
  13336. */
  13337. getServerInfo(options?: AxiosRequestConfig): AxiosPromise<ServerInfoResponseDto> {
  13338. return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
  13339. },
  13340. /**
  13341. *
  13342. * @param {*} [options] Override http request option.
  13343. * @throws {RequiredError}
  13344. */
  13345. getServerStatistics(options?: AxiosRequestConfig): AxiosPromise<ServerStatsResponseDto> {
  13346. return localVarFp.getServerStatistics(options).then((request) => request(axios, basePath));
  13347. },
  13348. /**
  13349. *
  13350. * @param {*} [options] Override http request option.
  13351. * @throws {RequiredError}
  13352. */
  13353. getServerVersion(options?: AxiosRequestConfig): AxiosPromise<ServerVersionResponseDto> {
  13354. return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
  13355. },
  13356. /**
  13357. *
  13358. * @param {*} [options] Override http request option.
  13359. * @throws {RequiredError}
  13360. */
  13361. getSupportedMediaTypes(options?: AxiosRequestConfig): AxiosPromise<ServerMediaTypesResponseDto> {
  13362. return localVarFp.getSupportedMediaTypes(options).then((request) => request(axios, basePath));
  13363. },
  13364. /**
  13365. *
  13366. * @param {*} [options] Override http request option.
  13367. * @throws {RequiredError}
  13368. */
  13369. getTheme(options?: AxiosRequestConfig): AxiosPromise<ServerThemeDto> {
  13370. return localVarFp.getTheme(options).then((request) => request(axios, basePath));
  13371. },
  13372. /**
  13373. *
  13374. * @param {*} [options] Override http request option.
  13375. * @throws {RequiredError}
  13376. */
  13377. pingServer(options?: AxiosRequestConfig): AxiosPromise<ServerPingResponse> {
  13378. return localVarFp.pingServer(options).then((request) => request(axios, basePath));
  13379. },
  13380. };
  13381. };
  13382. /**
  13383. * ServerInfoApi - object-oriented interface
  13384. * @export
  13385. * @class ServerInfoApi
  13386. * @extends {BaseAPI}
  13387. */
  13388. export class ServerInfoApi extends BaseAPI {
  13389. /**
  13390. *
  13391. * @param {*} [options] Override http request option.
  13392. * @throws {RequiredError}
  13393. * @memberof ServerInfoApi
  13394. */
  13395. public getServerConfig(options?: AxiosRequestConfig) {
  13396. return ServerInfoApiFp(this.configuration).getServerConfig(options).then((request) => request(this.axios, this.basePath));
  13397. }
  13398. /**
  13399. *
  13400. * @param {*} [options] Override http request option.
  13401. * @throws {RequiredError}
  13402. * @memberof ServerInfoApi
  13403. */
  13404. public getServerFeatures(options?: AxiosRequestConfig) {
  13405. return ServerInfoApiFp(this.configuration).getServerFeatures(options).then((request) => request(this.axios, this.basePath));
  13406. }
  13407. /**
  13408. *
  13409. * @param {*} [options] Override http request option.
  13410. * @throws {RequiredError}
  13411. * @memberof ServerInfoApi
  13412. */
  13413. public getServerInfo(options?: AxiosRequestConfig) {
  13414. return ServerInfoApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
  13415. }
  13416. /**
  13417. *
  13418. * @param {*} [options] Override http request option.
  13419. * @throws {RequiredError}
  13420. * @memberof ServerInfoApi
  13421. */
  13422. public getServerStatistics(options?: AxiosRequestConfig) {
  13423. return ServerInfoApiFp(this.configuration).getServerStatistics(options).then((request) => request(this.axios, this.basePath));
  13424. }
  13425. /**
  13426. *
  13427. * @param {*} [options] Override http request option.
  13428. * @throws {RequiredError}
  13429. * @memberof ServerInfoApi
  13430. */
  13431. public getServerVersion(options?: AxiosRequestConfig) {
  13432. return ServerInfoApiFp(this.configuration).getServerVersion(options).then((request) => request(this.axios, this.basePath));
  13433. }
  13434. /**
  13435. *
  13436. * @param {*} [options] Override http request option.
  13437. * @throws {RequiredError}
  13438. * @memberof ServerInfoApi
  13439. */
  13440. public getSupportedMediaTypes(options?: AxiosRequestConfig) {
  13441. return ServerInfoApiFp(this.configuration).getSupportedMediaTypes(options).then((request) => request(this.axios, this.basePath));
  13442. }
  13443. /**
  13444. *
  13445. * @param {*} [options] Override http request option.
  13446. * @throws {RequiredError}
  13447. * @memberof ServerInfoApi
  13448. */
  13449. public getTheme(options?: AxiosRequestConfig) {
  13450. return ServerInfoApiFp(this.configuration).getTheme(options).then((request) => request(this.axios, this.basePath));
  13451. }
  13452. /**
  13453. *
  13454. * @param {*} [options] Override http request option.
  13455. * @throws {RequiredError}
  13456. * @memberof ServerInfoApi
  13457. */
  13458. public pingServer(options?: AxiosRequestConfig) {
  13459. return ServerInfoApiFp(this.configuration).pingServer(options).then((request) => request(this.axios, this.basePath));
  13460. }
  13461. }
  13462. /**
  13463. * SharedLinkApi - axios parameter creator
  13464. * @export
  13465. */
  13466. export const SharedLinkApiAxiosParamCreator = function (configuration?: Configuration) {
  13467. return {
  13468. /**
  13469. *
  13470. * @param {string} id
  13471. * @param {AssetIdsDto} assetIdsDto
  13472. * @param {string} [key]
  13473. * @param {*} [options] Override http request option.
  13474. * @throws {RequiredError}
  13475. */
  13476. addSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13477. // verify required parameter 'id' is not null or undefined
  13478. assertParamExists('addSharedLinkAssets', 'id', id)
  13479. // verify required parameter 'assetIdsDto' is not null or undefined
  13480. assertParamExists('addSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  13481. const localVarPath = `/shared-link/{id}/assets`
  13482. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13483. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13484. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13485. let baseOptions;
  13486. if (configuration) {
  13487. baseOptions = configuration.baseOptions;
  13488. }
  13489. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  13490. const localVarHeaderParameter = {} as any;
  13491. const localVarQueryParameter = {} as any;
  13492. // authentication cookie required
  13493. // authentication api_key required
  13494. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13495. // authentication bearer required
  13496. // http bearer authentication required
  13497. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13498. if (key !== undefined) {
  13499. localVarQueryParameter['key'] = key;
  13500. }
  13501. localVarHeaderParameter['Content-Type'] = 'application/json';
  13502. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13503. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13504. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13505. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13506. return {
  13507. url: toPathString(localVarUrlObj),
  13508. options: localVarRequestOptions,
  13509. };
  13510. },
  13511. /**
  13512. *
  13513. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  13514. * @param {*} [options] Override http request option.
  13515. * @throws {RequiredError}
  13516. */
  13517. createSharedLink: async (sharedLinkCreateDto: SharedLinkCreateDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13518. // verify required parameter 'sharedLinkCreateDto' is not null or undefined
  13519. assertParamExists('createSharedLink', 'sharedLinkCreateDto', sharedLinkCreateDto)
  13520. const localVarPath = `/shared-link`;
  13521. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13522. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13523. let baseOptions;
  13524. if (configuration) {
  13525. baseOptions = configuration.baseOptions;
  13526. }
  13527. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  13528. const localVarHeaderParameter = {} as any;
  13529. const localVarQueryParameter = {} as any;
  13530. // authentication cookie required
  13531. // authentication api_key required
  13532. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13533. // authentication bearer required
  13534. // http bearer authentication required
  13535. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13536. localVarHeaderParameter['Content-Type'] = 'application/json';
  13537. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13538. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13539. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13540. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkCreateDto, localVarRequestOptions, configuration)
  13541. return {
  13542. url: toPathString(localVarUrlObj),
  13543. options: localVarRequestOptions,
  13544. };
  13545. },
  13546. /**
  13547. *
  13548. * @param {*} [options] Override http request option.
  13549. * @throws {RequiredError}
  13550. */
  13551. getAllSharedLinks: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13552. const localVarPath = `/shared-link`;
  13553. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13554. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13555. let baseOptions;
  13556. if (configuration) {
  13557. baseOptions = configuration.baseOptions;
  13558. }
  13559. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13560. const localVarHeaderParameter = {} as any;
  13561. const localVarQueryParameter = {} as any;
  13562. // authentication cookie required
  13563. // authentication api_key required
  13564. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13565. // authentication bearer required
  13566. // http bearer authentication required
  13567. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13568. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13569. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13570. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13571. return {
  13572. url: toPathString(localVarUrlObj),
  13573. options: localVarRequestOptions,
  13574. };
  13575. },
  13576. /**
  13577. *
  13578. * @param {string} [password]
  13579. * @param {string} [token]
  13580. * @param {string} [key]
  13581. * @param {*} [options] Override http request option.
  13582. * @throws {RequiredError}
  13583. */
  13584. getMySharedLink: async (password?: string, token?: string, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13585. const localVarPath = `/shared-link/me`;
  13586. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13587. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13588. let baseOptions;
  13589. if (configuration) {
  13590. baseOptions = configuration.baseOptions;
  13591. }
  13592. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13593. const localVarHeaderParameter = {} as any;
  13594. const localVarQueryParameter = {} as any;
  13595. // authentication cookie required
  13596. // authentication api_key required
  13597. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13598. // authentication bearer required
  13599. // http bearer authentication required
  13600. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13601. if (password !== undefined) {
  13602. localVarQueryParameter['password'] = password;
  13603. }
  13604. if (token !== undefined) {
  13605. localVarQueryParameter['token'] = token;
  13606. }
  13607. if (key !== undefined) {
  13608. localVarQueryParameter['key'] = key;
  13609. }
  13610. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13611. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13612. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13613. return {
  13614. url: toPathString(localVarUrlObj),
  13615. options: localVarRequestOptions,
  13616. };
  13617. },
  13618. /**
  13619. *
  13620. * @param {string} id
  13621. * @param {*} [options] Override http request option.
  13622. * @throws {RequiredError}
  13623. */
  13624. getSharedLinkById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13625. // verify required parameter 'id' is not null or undefined
  13626. assertParamExists('getSharedLinkById', 'id', id)
  13627. const localVarPath = `/shared-link/{id}`
  13628. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13629. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13630. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13631. let baseOptions;
  13632. if (configuration) {
  13633. baseOptions = configuration.baseOptions;
  13634. }
  13635. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  13636. const localVarHeaderParameter = {} as any;
  13637. const localVarQueryParameter = {} as any;
  13638. // authentication cookie required
  13639. // authentication api_key required
  13640. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13641. // authentication bearer required
  13642. // http bearer authentication required
  13643. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13644. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13645. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13646. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13647. return {
  13648. url: toPathString(localVarUrlObj),
  13649. options: localVarRequestOptions,
  13650. };
  13651. },
  13652. /**
  13653. *
  13654. * @param {string} id
  13655. * @param {*} [options] Override http request option.
  13656. * @throws {RequiredError}
  13657. */
  13658. removeSharedLink: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13659. // verify required parameter 'id' is not null or undefined
  13660. assertParamExists('removeSharedLink', 'id', id)
  13661. const localVarPath = `/shared-link/{id}`
  13662. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13663. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13664. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13665. let baseOptions;
  13666. if (configuration) {
  13667. baseOptions = configuration.baseOptions;
  13668. }
  13669. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13670. const localVarHeaderParameter = {} as any;
  13671. const localVarQueryParameter = {} as any;
  13672. // authentication cookie required
  13673. // authentication api_key required
  13674. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13675. // authentication bearer required
  13676. // http bearer authentication required
  13677. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13678. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13679. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13680. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13681. return {
  13682. url: toPathString(localVarUrlObj),
  13683. options: localVarRequestOptions,
  13684. };
  13685. },
  13686. /**
  13687. *
  13688. * @param {string} id
  13689. * @param {AssetIdsDto} assetIdsDto
  13690. * @param {string} [key]
  13691. * @param {*} [options] Override http request option.
  13692. * @throws {RequiredError}
  13693. */
  13694. removeSharedLinkAssets: async (id: string, assetIdsDto: AssetIdsDto, key?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13695. // verify required parameter 'id' is not null or undefined
  13696. assertParamExists('removeSharedLinkAssets', 'id', id)
  13697. // verify required parameter 'assetIdsDto' is not null or undefined
  13698. assertParamExists('removeSharedLinkAssets', 'assetIdsDto', assetIdsDto)
  13699. const localVarPath = `/shared-link/{id}/assets`
  13700. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13701. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13702. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13703. let baseOptions;
  13704. if (configuration) {
  13705. baseOptions = configuration.baseOptions;
  13706. }
  13707. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  13708. const localVarHeaderParameter = {} as any;
  13709. const localVarQueryParameter = {} as any;
  13710. // authentication cookie required
  13711. // authentication api_key required
  13712. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13713. // authentication bearer required
  13714. // http bearer authentication required
  13715. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13716. if (key !== undefined) {
  13717. localVarQueryParameter['key'] = key;
  13718. }
  13719. localVarHeaderParameter['Content-Type'] = 'application/json';
  13720. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13721. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13722. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13723. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  13724. return {
  13725. url: toPathString(localVarUrlObj),
  13726. options: localVarRequestOptions,
  13727. };
  13728. },
  13729. /**
  13730. *
  13731. * @param {string} id
  13732. * @param {SharedLinkEditDto} sharedLinkEditDto
  13733. * @param {*} [options] Override http request option.
  13734. * @throws {RequiredError}
  13735. */
  13736. updateSharedLink: async (id: string, sharedLinkEditDto: SharedLinkEditDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  13737. // verify required parameter 'id' is not null or undefined
  13738. assertParamExists('updateSharedLink', 'id', id)
  13739. // verify required parameter 'sharedLinkEditDto' is not null or undefined
  13740. assertParamExists('updateSharedLink', 'sharedLinkEditDto', sharedLinkEditDto)
  13741. const localVarPath = `/shared-link/{id}`
  13742. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  13743. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  13744. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  13745. let baseOptions;
  13746. if (configuration) {
  13747. baseOptions = configuration.baseOptions;
  13748. }
  13749. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  13750. const localVarHeaderParameter = {} as any;
  13751. const localVarQueryParameter = {} as any;
  13752. // authentication cookie required
  13753. // authentication api_key required
  13754. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  13755. // authentication bearer required
  13756. // http bearer authentication required
  13757. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  13758. localVarHeaderParameter['Content-Type'] = 'application/json';
  13759. setSearchParams(localVarUrlObj, localVarQueryParameter);
  13760. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  13761. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  13762. localVarRequestOptions.data = serializeDataIfNeeded(sharedLinkEditDto, localVarRequestOptions, configuration)
  13763. return {
  13764. url: toPathString(localVarUrlObj),
  13765. options: localVarRequestOptions,
  13766. };
  13767. },
  13768. }
  13769. };
  13770. /**
  13771. * SharedLinkApi - functional programming interface
  13772. * @export
  13773. */
  13774. export const SharedLinkApiFp = function(configuration?: Configuration) {
  13775. const localVarAxiosParamCreator = SharedLinkApiAxiosParamCreator(configuration)
  13776. return {
  13777. /**
  13778. *
  13779. * @param {string} id
  13780. * @param {AssetIdsDto} assetIdsDto
  13781. * @param {string} [key]
  13782. * @param {*} [options] Override http request option.
  13783. * @throws {RequiredError}
  13784. */
  13785. async addSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13786. const localVarAxiosArgs = await localVarAxiosParamCreator.addSharedLinkAssets(id, assetIdsDto, key, options);
  13787. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13788. },
  13789. /**
  13790. *
  13791. * @param {SharedLinkCreateDto} sharedLinkCreateDto
  13792. * @param {*} [options] Override http request option.
  13793. * @throws {RequiredError}
  13794. */
  13795. async createSharedLink(sharedLinkCreateDto: SharedLinkCreateDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13796. const localVarAxiosArgs = await localVarAxiosParamCreator.createSharedLink(sharedLinkCreateDto, options);
  13797. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13798. },
  13799. /**
  13800. *
  13801. * @param {*} [options] Override http request option.
  13802. * @throws {RequiredError}
  13803. */
  13804. async getAllSharedLinks(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SharedLinkResponseDto>>> {
  13805. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllSharedLinks(options);
  13806. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13807. },
  13808. /**
  13809. *
  13810. * @param {string} [password]
  13811. * @param {string} [token]
  13812. * @param {string} [key]
  13813. * @param {*} [options] Override http request option.
  13814. * @throws {RequiredError}
  13815. */
  13816. async getMySharedLink(password?: string, token?: string, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13817. const localVarAxiosArgs = await localVarAxiosParamCreator.getMySharedLink(password, token, key, options);
  13818. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13819. },
  13820. /**
  13821. *
  13822. * @param {string} id
  13823. * @param {*} [options] Override http request option.
  13824. * @throws {RequiredError}
  13825. */
  13826. async getSharedLinkById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13827. const localVarAxiosArgs = await localVarAxiosParamCreator.getSharedLinkById(id, options);
  13828. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13829. },
  13830. /**
  13831. *
  13832. * @param {string} id
  13833. * @param {*} [options] Override http request option.
  13834. * @throws {RequiredError}
  13835. */
  13836. async removeSharedLink(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  13837. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLink(id, options);
  13838. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13839. },
  13840. /**
  13841. *
  13842. * @param {string} id
  13843. * @param {AssetIdsDto} assetIdsDto
  13844. * @param {string} [key]
  13845. * @param {*} [options] Override http request option.
  13846. * @throws {RequiredError}
  13847. */
  13848. async removeSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  13849. const localVarAxiosArgs = await localVarAxiosParamCreator.removeSharedLinkAssets(id, assetIdsDto, key, options);
  13850. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13851. },
  13852. /**
  13853. *
  13854. * @param {string} id
  13855. * @param {SharedLinkEditDto} sharedLinkEditDto
  13856. * @param {*} [options] Override http request option.
  13857. * @throws {RequiredError}
  13858. */
  13859. async updateSharedLink(id: string, sharedLinkEditDto: SharedLinkEditDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SharedLinkResponseDto>> {
  13860. const localVarAxiosArgs = await localVarAxiosParamCreator.updateSharedLink(id, sharedLinkEditDto, options);
  13861. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  13862. },
  13863. }
  13864. };
  13865. /**
  13866. * SharedLinkApi - factory interface
  13867. * @export
  13868. */
  13869. export const SharedLinkApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  13870. const localVarFp = SharedLinkApiFp(configuration)
  13871. return {
  13872. /**
  13873. *
  13874. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  13875. * @param {*} [options] Override http request option.
  13876. * @throws {RequiredError}
  13877. */
  13878. addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13879. return localVarFp.addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  13880. },
  13881. /**
  13882. *
  13883. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  13884. * @param {*} [options] Override http request option.
  13885. * @throws {RequiredError}
  13886. */
  13887. createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13888. return localVarFp.createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(axios, basePath));
  13889. },
  13890. /**
  13891. *
  13892. * @param {*} [options] Override http request option.
  13893. * @throws {RequiredError}
  13894. */
  13895. getAllSharedLinks(options?: AxiosRequestConfig): AxiosPromise<Array<SharedLinkResponseDto>> {
  13896. return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
  13897. },
  13898. /**
  13899. *
  13900. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  13901. * @param {*} [options] Override http request option.
  13902. * @throws {RequiredError}
  13903. */
  13904. getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13905. return localVarFp.getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(axios, basePath));
  13906. },
  13907. /**
  13908. *
  13909. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  13910. * @param {*} [options] Override http request option.
  13911. * @throws {RequiredError}
  13912. */
  13913. getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13914. return localVarFp.getSharedLinkById(requestParameters.id, options).then((request) => request(axios, basePath));
  13915. },
  13916. /**
  13917. *
  13918. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  13919. * @param {*} [options] Override http request option.
  13920. * @throws {RequiredError}
  13921. */
  13922. removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  13923. return localVarFp.removeSharedLink(requestParameters.id, options).then((request) => request(axios, basePath));
  13924. },
  13925. /**
  13926. *
  13927. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  13928. * @param {*} [options] Override http request option.
  13929. * @throws {RequiredError}
  13930. */
  13931. removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  13932. return localVarFp.removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
  13933. },
  13934. /**
  13935. *
  13936. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  13937. * @param {*} [options] Override http request option.
  13938. * @throws {RequiredError}
  13939. */
  13940. updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
  13941. return localVarFp.updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(axios, basePath));
  13942. },
  13943. };
  13944. };
  13945. /**
  13946. * Request parameters for addSharedLinkAssets operation in SharedLinkApi.
  13947. * @export
  13948. * @interface SharedLinkApiAddSharedLinkAssetsRequest
  13949. */
  13950. export interface SharedLinkApiAddSharedLinkAssetsRequest {
  13951. /**
  13952. *
  13953. * @type {string}
  13954. * @memberof SharedLinkApiAddSharedLinkAssets
  13955. */
  13956. readonly id: string
  13957. /**
  13958. *
  13959. * @type {AssetIdsDto}
  13960. * @memberof SharedLinkApiAddSharedLinkAssets
  13961. */
  13962. readonly assetIdsDto: AssetIdsDto
  13963. /**
  13964. *
  13965. * @type {string}
  13966. * @memberof SharedLinkApiAddSharedLinkAssets
  13967. */
  13968. readonly key?: string
  13969. }
  13970. /**
  13971. * Request parameters for createSharedLink operation in SharedLinkApi.
  13972. * @export
  13973. * @interface SharedLinkApiCreateSharedLinkRequest
  13974. */
  13975. export interface SharedLinkApiCreateSharedLinkRequest {
  13976. /**
  13977. *
  13978. * @type {SharedLinkCreateDto}
  13979. * @memberof SharedLinkApiCreateSharedLink
  13980. */
  13981. readonly sharedLinkCreateDto: SharedLinkCreateDto
  13982. }
  13983. /**
  13984. * Request parameters for getMySharedLink operation in SharedLinkApi.
  13985. * @export
  13986. * @interface SharedLinkApiGetMySharedLinkRequest
  13987. */
  13988. export interface SharedLinkApiGetMySharedLinkRequest {
  13989. /**
  13990. *
  13991. * @type {string}
  13992. * @memberof SharedLinkApiGetMySharedLink
  13993. */
  13994. readonly password?: string
  13995. /**
  13996. *
  13997. * @type {string}
  13998. * @memberof SharedLinkApiGetMySharedLink
  13999. */
  14000. readonly token?: string
  14001. /**
  14002. *
  14003. * @type {string}
  14004. * @memberof SharedLinkApiGetMySharedLink
  14005. */
  14006. readonly key?: string
  14007. }
  14008. /**
  14009. * Request parameters for getSharedLinkById operation in SharedLinkApi.
  14010. * @export
  14011. * @interface SharedLinkApiGetSharedLinkByIdRequest
  14012. */
  14013. export interface SharedLinkApiGetSharedLinkByIdRequest {
  14014. /**
  14015. *
  14016. * @type {string}
  14017. * @memberof SharedLinkApiGetSharedLinkById
  14018. */
  14019. readonly id: string
  14020. }
  14021. /**
  14022. * Request parameters for removeSharedLink operation in SharedLinkApi.
  14023. * @export
  14024. * @interface SharedLinkApiRemoveSharedLinkRequest
  14025. */
  14026. export interface SharedLinkApiRemoveSharedLinkRequest {
  14027. /**
  14028. *
  14029. * @type {string}
  14030. * @memberof SharedLinkApiRemoveSharedLink
  14031. */
  14032. readonly id: string
  14033. }
  14034. /**
  14035. * Request parameters for removeSharedLinkAssets operation in SharedLinkApi.
  14036. * @export
  14037. * @interface SharedLinkApiRemoveSharedLinkAssetsRequest
  14038. */
  14039. export interface SharedLinkApiRemoveSharedLinkAssetsRequest {
  14040. /**
  14041. *
  14042. * @type {string}
  14043. * @memberof SharedLinkApiRemoveSharedLinkAssets
  14044. */
  14045. readonly id: string
  14046. /**
  14047. *
  14048. * @type {AssetIdsDto}
  14049. * @memberof SharedLinkApiRemoveSharedLinkAssets
  14050. */
  14051. readonly assetIdsDto: AssetIdsDto
  14052. /**
  14053. *
  14054. * @type {string}
  14055. * @memberof SharedLinkApiRemoveSharedLinkAssets
  14056. */
  14057. readonly key?: string
  14058. }
  14059. /**
  14060. * Request parameters for updateSharedLink operation in SharedLinkApi.
  14061. * @export
  14062. * @interface SharedLinkApiUpdateSharedLinkRequest
  14063. */
  14064. export interface SharedLinkApiUpdateSharedLinkRequest {
  14065. /**
  14066. *
  14067. * @type {string}
  14068. * @memberof SharedLinkApiUpdateSharedLink
  14069. */
  14070. readonly id: string
  14071. /**
  14072. *
  14073. * @type {SharedLinkEditDto}
  14074. * @memberof SharedLinkApiUpdateSharedLink
  14075. */
  14076. readonly sharedLinkEditDto: SharedLinkEditDto
  14077. }
  14078. /**
  14079. * SharedLinkApi - object-oriented interface
  14080. * @export
  14081. * @class SharedLinkApi
  14082. * @extends {BaseAPI}
  14083. */
  14084. export class SharedLinkApi extends BaseAPI {
  14085. /**
  14086. *
  14087. * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
  14088. * @param {*} [options] Override http request option.
  14089. * @throws {RequiredError}
  14090. * @memberof SharedLinkApi
  14091. */
  14092. public addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  14093. return SharedLinkApiFp(this.configuration).addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  14094. }
  14095. /**
  14096. *
  14097. * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
  14098. * @param {*} [options] Override http request option.
  14099. * @throws {RequiredError}
  14100. * @memberof SharedLinkApi
  14101. */
  14102. public createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig) {
  14103. return SharedLinkApiFp(this.configuration).createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(this.axios, this.basePath));
  14104. }
  14105. /**
  14106. *
  14107. * @param {*} [options] Override http request option.
  14108. * @throws {RequiredError}
  14109. * @memberof SharedLinkApi
  14110. */
  14111. public getAllSharedLinks(options?: AxiosRequestConfig) {
  14112. return SharedLinkApiFp(this.configuration).getAllSharedLinks(options).then((request) => request(this.axios, this.basePath));
  14113. }
  14114. /**
  14115. *
  14116. * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
  14117. * @param {*} [options] Override http request option.
  14118. * @throws {RequiredError}
  14119. * @memberof SharedLinkApi
  14120. */
  14121. public getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig) {
  14122. return SharedLinkApiFp(this.configuration).getMySharedLink(requestParameters.password, requestParameters.token, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  14123. }
  14124. /**
  14125. *
  14126. * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
  14127. * @param {*} [options] Override http request option.
  14128. * @throws {RequiredError}
  14129. * @memberof SharedLinkApi
  14130. */
  14131. public getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig) {
  14132. return SharedLinkApiFp(this.configuration).getSharedLinkById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14133. }
  14134. /**
  14135. *
  14136. * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
  14137. * @param {*} [options] Override http request option.
  14138. * @throws {RequiredError}
  14139. * @memberof SharedLinkApi
  14140. */
  14141. public removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig) {
  14142. return SharedLinkApiFp(this.configuration).removeSharedLink(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  14143. }
  14144. /**
  14145. *
  14146. * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
  14147. * @param {*} [options] Override http request option.
  14148. * @throws {RequiredError}
  14149. * @memberof SharedLinkApi
  14150. */
  14151. public removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig) {
  14152. return SharedLinkApiFp(this.configuration).removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
  14153. }
  14154. /**
  14155. *
  14156. * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
  14157. * @param {*} [options] Override http request option.
  14158. * @throws {RequiredError}
  14159. * @memberof SharedLinkApi
  14160. */
  14161. public updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig) {
  14162. return SharedLinkApiFp(this.configuration).updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(this.axios, this.basePath));
  14163. }
  14164. }
  14165. /**
  14166. * SystemConfigApi - axios parameter creator
  14167. * @export
  14168. */
  14169. export const SystemConfigApiAxiosParamCreator = function (configuration?: Configuration) {
  14170. return {
  14171. /**
  14172. *
  14173. * @param {*} [options] Override http request option.
  14174. * @throws {RequiredError}
  14175. */
  14176. getConfig: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14177. const localVarPath = `/system-config`;
  14178. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14179. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14180. let baseOptions;
  14181. if (configuration) {
  14182. baseOptions = configuration.baseOptions;
  14183. }
  14184. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14185. const localVarHeaderParameter = {} as any;
  14186. const localVarQueryParameter = {} as any;
  14187. // authentication cookie required
  14188. // authentication api_key required
  14189. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14190. // authentication bearer required
  14191. // http bearer authentication required
  14192. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14193. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14194. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14195. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14196. return {
  14197. url: toPathString(localVarUrlObj),
  14198. options: localVarRequestOptions,
  14199. };
  14200. },
  14201. /**
  14202. *
  14203. * @param {*} [options] Override http request option.
  14204. * @throws {RequiredError}
  14205. */
  14206. getConfigDefaults: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14207. const localVarPath = `/system-config/defaults`;
  14208. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14209. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14210. let baseOptions;
  14211. if (configuration) {
  14212. baseOptions = configuration.baseOptions;
  14213. }
  14214. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14215. const localVarHeaderParameter = {} as any;
  14216. const localVarQueryParameter = {} as any;
  14217. // authentication cookie required
  14218. // authentication api_key required
  14219. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14220. // authentication bearer required
  14221. // http bearer authentication required
  14222. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14223. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14224. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14225. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14226. return {
  14227. url: toPathString(localVarUrlObj),
  14228. options: localVarRequestOptions,
  14229. };
  14230. },
  14231. /**
  14232. *
  14233. * @param {MapTheme} theme
  14234. * @param {*} [options] Override http request option.
  14235. * @throws {RequiredError}
  14236. */
  14237. getMapStyle: async (theme: MapTheme, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14238. // verify required parameter 'theme' is not null or undefined
  14239. assertParamExists('getMapStyle', 'theme', theme)
  14240. const localVarPath = `/system-config/map/style.json`;
  14241. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14242. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14243. let baseOptions;
  14244. if (configuration) {
  14245. baseOptions = configuration.baseOptions;
  14246. }
  14247. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14248. const localVarHeaderParameter = {} as any;
  14249. const localVarQueryParameter = {} as any;
  14250. // authentication cookie required
  14251. // authentication api_key required
  14252. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14253. // authentication bearer required
  14254. // http bearer authentication required
  14255. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14256. if (theme !== undefined) {
  14257. localVarQueryParameter['theme'] = theme;
  14258. }
  14259. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14260. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14261. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14262. return {
  14263. url: toPathString(localVarUrlObj),
  14264. options: localVarRequestOptions,
  14265. };
  14266. },
  14267. /**
  14268. *
  14269. * @param {*} [options] Override http request option.
  14270. * @throws {RequiredError}
  14271. */
  14272. getStorageTemplateOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14273. const localVarPath = `/system-config/storage-template-options`;
  14274. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14275. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14276. let baseOptions;
  14277. if (configuration) {
  14278. baseOptions = configuration.baseOptions;
  14279. }
  14280. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14281. const localVarHeaderParameter = {} as any;
  14282. const localVarQueryParameter = {} as any;
  14283. // authentication cookie required
  14284. // authentication api_key required
  14285. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14286. // authentication bearer required
  14287. // http bearer authentication required
  14288. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14289. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14290. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14291. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14292. return {
  14293. url: toPathString(localVarUrlObj),
  14294. options: localVarRequestOptions,
  14295. };
  14296. },
  14297. /**
  14298. *
  14299. * @param {SystemConfigDto} systemConfigDto
  14300. * @param {*} [options] Override http request option.
  14301. * @throws {RequiredError}
  14302. */
  14303. updateConfig: async (systemConfigDto: SystemConfigDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14304. // verify required parameter 'systemConfigDto' is not null or undefined
  14305. assertParamExists('updateConfig', 'systemConfigDto', systemConfigDto)
  14306. const localVarPath = `/system-config`;
  14307. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14308. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14309. let baseOptions;
  14310. if (configuration) {
  14311. baseOptions = configuration.baseOptions;
  14312. }
  14313. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  14314. const localVarHeaderParameter = {} as any;
  14315. const localVarQueryParameter = {} as any;
  14316. // authentication cookie required
  14317. // authentication api_key required
  14318. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14319. // authentication bearer required
  14320. // http bearer authentication required
  14321. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14322. localVarHeaderParameter['Content-Type'] = 'application/json';
  14323. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14324. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14325. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14326. localVarRequestOptions.data = serializeDataIfNeeded(systemConfigDto, localVarRequestOptions, configuration)
  14327. return {
  14328. url: toPathString(localVarUrlObj),
  14329. options: localVarRequestOptions,
  14330. };
  14331. },
  14332. }
  14333. };
  14334. /**
  14335. * SystemConfigApi - functional programming interface
  14336. * @export
  14337. */
  14338. export const SystemConfigApiFp = function(configuration?: Configuration) {
  14339. const localVarAxiosParamCreator = SystemConfigApiAxiosParamCreator(configuration)
  14340. return {
  14341. /**
  14342. *
  14343. * @param {*} [options] Override http request option.
  14344. * @throws {RequiredError}
  14345. */
  14346. async getConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  14347. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfig(options);
  14348. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14349. },
  14350. /**
  14351. *
  14352. * @param {*} [options] Override http request option.
  14353. * @throws {RequiredError}
  14354. */
  14355. async getConfigDefaults(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  14356. const localVarAxiosArgs = await localVarAxiosParamCreator.getConfigDefaults(options);
  14357. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14358. },
  14359. /**
  14360. *
  14361. * @param {MapTheme} theme
  14362. * @param {*} [options] Override http request option.
  14363. * @throws {RequiredError}
  14364. */
  14365. async getMapStyle(theme: MapTheme, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  14366. const localVarAxiosArgs = await localVarAxiosParamCreator.getMapStyle(theme, options);
  14367. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14368. },
  14369. /**
  14370. *
  14371. * @param {*} [options] Override http request option.
  14372. * @throws {RequiredError}
  14373. */
  14374. async getStorageTemplateOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigTemplateStorageOptionDto>> {
  14375. const localVarAxiosArgs = await localVarAxiosParamCreator.getStorageTemplateOptions(options);
  14376. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14377. },
  14378. /**
  14379. *
  14380. * @param {SystemConfigDto} systemConfigDto
  14381. * @param {*} [options] Override http request option.
  14382. * @throws {RequiredError}
  14383. */
  14384. async updateConfig(systemConfigDto: SystemConfigDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SystemConfigDto>> {
  14385. const localVarAxiosArgs = await localVarAxiosParamCreator.updateConfig(systemConfigDto, options);
  14386. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14387. },
  14388. }
  14389. };
  14390. /**
  14391. * SystemConfigApi - factory interface
  14392. * @export
  14393. */
  14394. export const SystemConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14395. const localVarFp = SystemConfigApiFp(configuration)
  14396. return {
  14397. /**
  14398. *
  14399. * @param {*} [options] Override http request option.
  14400. * @throws {RequiredError}
  14401. */
  14402. getConfig(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  14403. return localVarFp.getConfig(options).then((request) => request(axios, basePath));
  14404. },
  14405. /**
  14406. *
  14407. * @param {*} [options] Override http request option.
  14408. * @throws {RequiredError}
  14409. */
  14410. getConfigDefaults(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  14411. return localVarFp.getConfigDefaults(options).then((request) => request(axios, basePath));
  14412. },
  14413. /**
  14414. *
  14415. * @param {SystemConfigApiGetMapStyleRequest} requestParameters Request parameters.
  14416. * @param {*} [options] Override http request option.
  14417. * @throws {RequiredError}
  14418. */
  14419. getMapStyle(requestParameters: SystemConfigApiGetMapStyleRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  14420. return localVarFp.getMapStyle(requestParameters.theme, options).then((request) => request(axios, basePath));
  14421. },
  14422. /**
  14423. *
  14424. * @param {*} [options] Override http request option.
  14425. * @throws {RequiredError}
  14426. */
  14427. getStorageTemplateOptions(options?: AxiosRequestConfig): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
  14428. return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
  14429. },
  14430. /**
  14431. *
  14432. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  14433. * @param {*} [options] Override http request option.
  14434. * @throws {RequiredError}
  14435. */
  14436. updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
  14437. return localVarFp.updateConfig(requestParameters.systemConfigDto, options).then((request) => request(axios, basePath));
  14438. },
  14439. };
  14440. };
  14441. /**
  14442. * Request parameters for getMapStyle operation in SystemConfigApi.
  14443. * @export
  14444. * @interface SystemConfigApiGetMapStyleRequest
  14445. */
  14446. export interface SystemConfigApiGetMapStyleRequest {
  14447. /**
  14448. *
  14449. * @type {MapTheme}
  14450. * @memberof SystemConfigApiGetMapStyle
  14451. */
  14452. readonly theme: MapTheme
  14453. }
  14454. /**
  14455. * Request parameters for updateConfig operation in SystemConfigApi.
  14456. * @export
  14457. * @interface SystemConfigApiUpdateConfigRequest
  14458. */
  14459. export interface SystemConfigApiUpdateConfigRequest {
  14460. /**
  14461. *
  14462. * @type {SystemConfigDto}
  14463. * @memberof SystemConfigApiUpdateConfig
  14464. */
  14465. readonly systemConfigDto: SystemConfigDto
  14466. }
  14467. /**
  14468. * SystemConfigApi - object-oriented interface
  14469. * @export
  14470. * @class SystemConfigApi
  14471. * @extends {BaseAPI}
  14472. */
  14473. export class SystemConfigApi extends BaseAPI {
  14474. /**
  14475. *
  14476. * @param {*} [options] Override http request option.
  14477. * @throws {RequiredError}
  14478. * @memberof SystemConfigApi
  14479. */
  14480. public getConfig(options?: AxiosRequestConfig) {
  14481. return SystemConfigApiFp(this.configuration).getConfig(options).then((request) => request(this.axios, this.basePath));
  14482. }
  14483. /**
  14484. *
  14485. * @param {*} [options] Override http request option.
  14486. * @throws {RequiredError}
  14487. * @memberof SystemConfigApi
  14488. */
  14489. public getConfigDefaults(options?: AxiosRequestConfig) {
  14490. return SystemConfigApiFp(this.configuration).getConfigDefaults(options).then((request) => request(this.axios, this.basePath));
  14491. }
  14492. /**
  14493. *
  14494. * @param {SystemConfigApiGetMapStyleRequest} requestParameters Request parameters.
  14495. * @param {*} [options] Override http request option.
  14496. * @throws {RequiredError}
  14497. * @memberof SystemConfigApi
  14498. */
  14499. public getMapStyle(requestParameters: SystemConfigApiGetMapStyleRequest, options?: AxiosRequestConfig) {
  14500. return SystemConfigApiFp(this.configuration).getMapStyle(requestParameters.theme, options).then((request) => request(this.axios, this.basePath));
  14501. }
  14502. /**
  14503. *
  14504. * @param {*} [options] Override http request option.
  14505. * @throws {RequiredError}
  14506. * @memberof SystemConfigApi
  14507. */
  14508. public getStorageTemplateOptions(options?: AxiosRequestConfig) {
  14509. return SystemConfigApiFp(this.configuration).getStorageTemplateOptions(options).then((request) => request(this.axios, this.basePath));
  14510. }
  14511. /**
  14512. *
  14513. * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
  14514. * @param {*} [options] Override http request option.
  14515. * @throws {RequiredError}
  14516. * @memberof SystemConfigApi
  14517. */
  14518. public updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig) {
  14519. return SystemConfigApiFp(this.configuration).updateConfig(requestParameters.systemConfigDto, options).then((request) => request(this.axios, this.basePath));
  14520. }
  14521. }
  14522. /**
  14523. * TagApi - axios parameter creator
  14524. * @export
  14525. */
  14526. export const TagApiAxiosParamCreator = function (configuration?: Configuration) {
  14527. return {
  14528. /**
  14529. *
  14530. * @param {CreateTagDto} createTagDto
  14531. * @param {*} [options] Override http request option.
  14532. * @throws {RequiredError}
  14533. */
  14534. createTag: async (createTagDto: CreateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14535. // verify required parameter 'createTagDto' is not null or undefined
  14536. assertParamExists('createTag', 'createTagDto', createTagDto)
  14537. const localVarPath = `/tag`;
  14538. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14539. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14540. let baseOptions;
  14541. if (configuration) {
  14542. baseOptions = configuration.baseOptions;
  14543. }
  14544. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  14545. const localVarHeaderParameter = {} as any;
  14546. const localVarQueryParameter = {} as any;
  14547. // authentication cookie required
  14548. // authentication api_key required
  14549. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14550. // authentication bearer required
  14551. // http bearer authentication required
  14552. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14553. localVarHeaderParameter['Content-Type'] = 'application/json';
  14554. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14555. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14556. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14557. localVarRequestOptions.data = serializeDataIfNeeded(createTagDto, localVarRequestOptions, configuration)
  14558. return {
  14559. url: toPathString(localVarUrlObj),
  14560. options: localVarRequestOptions,
  14561. };
  14562. },
  14563. /**
  14564. *
  14565. * @param {string} id
  14566. * @param {*} [options] Override http request option.
  14567. * @throws {RequiredError}
  14568. */
  14569. deleteTag: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14570. // verify required parameter 'id' is not null or undefined
  14571. assertParamExists('deleteTag', 'id', id)
  14572. const localVarPath = `/tag/{id}`
  14573. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14574. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14575. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14576. let baseOptions;
  14577. if (configuration) {
  14578. baseOptions = configuration.baseOptions;
  14579. }
  14580. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14581. const localVarHeaderParameter = {} as any;
  14582. const localVarQueryParameter = {} as any;
  14583. // authentication cookie required
  14584. // authentication api_key required
  14585. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14586. // authentication bearer required
  14587. // http bearer authentication required
  14588. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14589. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14590. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14591. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14592. return {
  14593. url: toPathString(localVarUrlObj),
  14594. options: localVarRequestOptions,
  14595. };
  14596. },
  14597. /**
  14598. *
  14599. * @param {*} [options] Override http request option.
  14600. * @throws {RequiredError}
  14601. */
  14602. getAllTags: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14603. const localVarPath = `/tag`;
  14604. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14605. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14606. let baseOptions;
  14607. if (configuration) {
  14608. baseOptions = configuration.baseOptions;
  14609. }
  14610. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14611. const localVarHeaderParameter = {} as any;
  14612. const localVarQueryParameter = {} as any;
  14613. // authentication cookie required
  14614. // authentication api_key required
  14615. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14616. // authentication bearer required
  14617. // http bearer authentication required
  14618. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14619. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14620. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14621. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14622. return {
  14623. url: toPathString(localVarUrlObj),
  14624. options: localVarRequestOptions,
  14625. };
  14626. },
  14627. /**
  14628. *
  14629. * @param {string} id
  14630. * @param {*} [options] Override http request option.
  14631. * @throws {RequiredError}
  14632. */
  14633. getTagAssets: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14634. // verify required parameter 'id' is not null or undefined
  14635. assertParamExists('getTagAssets', 'id', id)
  14636. const localVarPath = `/tag/{id}/assets`
  14637. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14638. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14639. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14640. let baseOptions;
  14641. if (configuration) {
  14642. baseOptions = configuration.baseOptions;
  14643. }
  14644. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14645. const localVarHeaderParameter = {} as any;
  14646. const localVarQueryParameter = {} as any;
  14647. // authentication cookie required
  14648. // authentication api_key required
  14649. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14650. // authentication bearer required
  14651. // http bearer authentication required
  14652. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14653. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14654. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14655. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14656. return {
  14657. url: toPathString(localVarUrlObj),
  14658. options: localVarRequestOptions,
  14659. };
  14660. },
  14661. /**
  14662. *
  14663. * @param {string} id
  14664. * @param {*} [options] Override http request option.
  14665. * @throws {RequiredError}
  14666. */
  14667. getTagById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14668. // verify required parameter 'id' is not null or undefined
  14669. assertParamExists('getTagById', 'id', id)
  14670. const localVarPath = `/tag/{id}`
  14671. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14672. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14673. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14674. let baseOptions;
  14675. if (configuration) {
  14676. baseOptions = configuration.baseOptions;
  14677. }
  14678. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  14679. const localVarHeaderParameter = {} as any;
  14680. const localVarQueryParameter = {} as any;
  14681. // authentication cookie required
  14682. // authentication api_key required
  14683. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14684. // authentication bearer required
  14685. // http bearer authentication required
  14686. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14687. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14688. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14689. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14690. return {
  14691. url: toPathString(localVarUrlObj),
  14692. options: localVarRequestOptions,
  14693. };
  14694. },
  14695. /**
  14696. *
  14697. * @param {string} id
  14698. * @param {AssetIdsDto} assetIdsDto
  14699. * @param {*} [options] Override http request option.
  14700. * @throws {RequiredError}
  14701. */
  14702. tagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14703. // verify required parameter 'id' is not null or undefined
  14704. assertParamExists('tagAssets', 'id', id)
  14705. // verify required parameter 'assetIdsDto' is not null or undefined
  14706. assertParamExists('tagAssets', 'assetIdsDto', assetIdsDto)
  14707. const localVarPath = `/tag/{id}/assets`
  14708. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14709. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14710. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14711. let baseOptions;
  14712. if (configuration) {
  14713. baseOptions = configuration.baseOptions;
  14714. }
  14715. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  14716. const localVarHeaderParameter = {} as any;
  14717. const localVarQueryParameter = {} as any;
  14718. // authentication cookie required
  14719. // authentication api_key required
  14720. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14721. // authentication bearer required
  14722. // http bearer authentication required
  14723. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14724. localVarHeaderParameter['Content-Type'] = 'application/json';
  14725. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14726. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14727. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14728. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  14729. return {
  14730. url: toPathString(localVarUrlObj),
  14731. options: localVarRequestOptions,
  14732. };
  14733. },
  14734. /**
  14735. *
  14736. * @param {string} id
  14737. * @param {AssetIdsDto} assetIdsDto
  14738. * @param {*} [options] Override http request option.
  14739. * @throws {RequiredError}
  14740. */
  14741. untagAssets: async (id: string, assetIdsDto: AssetIdsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14742. // verify required parameter 'id' is not null or undefined
  14743. assertParamExists('untagAssets', 'id', id)
  14744. // verify required parameter 'assetIdsDto' is not null or undefined
  14745. assertParamExists('untagAssets', 'assetIdsDto', assetIdsDto)
  14746. const localVarPath = `/tag/{id}/assets`
  14747. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14748. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14749. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14750. let baseOptions;
  14751. if (configuration) {
  14752. baseOptions = configuration.baseOptions;
  14753. }
  14754. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  14755. const localVarHeaderParameter = {} as any;
  14756. const localVarQueryParameter = {} as any;
  14757. // authentication cookie required
  14758. // authentication api_key required
  14759. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14760. // authentication bearer required
  14761. // http bearer authentication required
  14762. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14763. localVarHeaderParameter['Content-Type'] = 'application/json';
  14764. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14765. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14766. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14767. localVarRequestOptions.data = serializeDataIfNeeded(assetIdsDto, localVarRequestOptions, configuration)
  14768. return {
  14769. url: toPathString(localVarUrlObj),
  14770. options: localVarRequestOptions,
  14771. };
  14772. },
  14773. /**
  14774. *
  14775. * @param {string} id
  14776. * @param {UpdateTagDto} updateTagDto
  14777. * @param {*} [options] Override http request option.
  14778. * @throws {RequiredError}
  14779. */
  14780. updateTag: async (id: string, updateTagDto: UpdateTagDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  14781. // verify required parameter 'id' is not null or undefined
  14782. assertParamExists('updateTag', 'id', id)
  14783. // verify required parameter 'updateTagDto' is not null or undefined
  14784. assertParamExists('updateTag', 'updateTagDto', updateTagDto)
  14785. const localVarPath = `/tag/{id}`
  14786. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  14787. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  14788. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  14789. let baseOptions;
  14790. if (configuration) {
  14791. baseOptions = configuration.baseOptions;
  14792. }
  14793. const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
  14794. const localVarHeaderParameter = {} as any;
  14795. const localVarQueryParameter = {} as any;
  14796. // authentication cookie required
  14797. // authentication api_key required
  14798. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  14799. // authentication bearer required
  14800. // http bearer authentication required
  14801. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  14802. localVarHeaderParameter['Content-Type'] = 'application/json';
  14803. setSearchParams(localVarUrlObj, localVarQueryParameter);
  14804. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  14805. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  14806. localVarRequestOptions.data = serializeDataIfNeeded(updateTagDto, localVarRequestOptions, configuration)
  14807. return {
  14808. url: toPathString(localVarUrlObj),
  14809. options: localVarRequestOptions,
  14810. };
  14811. },
  14812. }
  14813. };
  14814. /**
  14815. * TagApi - functional programming interface
  14816. * @export
  14817. */
  14818. export const TagApiFp = function(configuration?: Configuration) {
  14819. const localVarAxiosParamCreator = TagApiAxiosParamCreator(configuration)
  14820. return {
  14821. /**
  14822. *
  14823. * @param {CreateTagDto} createTagDto
  14824. * @param {*} [options] Override http request option.
  14825. * @throws {RequiredError}
  14826. */
  14827. async createTag(createTagDto: CreateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14828. const localVarAxiosArgs = await localVarAxiosParamCreator.createTag(createTagDto, options);
  14829. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14830. },
  14831. /**
  14832. *
  14833. * @param {string} id
  14834. * @param {*} [options] Override http request option.
  14835. * @throws {RequiredError}
  14836. */
  14837. async deleteTag(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  14838. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag(id, options);
  14839. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14840. },
  14841. /**
  14842. *
  14843. * @param {*} [options] Override http request option.
  14844. * @throws {RequiredError}
  14845. */
  14846. async getAllTags(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TagResponseDto>>> {
  14847. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllTags(options);
  14848. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14849. },
  14850. /**
  14851. *
  14852. * @param {string} id
  14853. * @param {*} [options] Override http request option.
  14854. * @throws {RequiredError}
  14855. */
  14856. async getTagAssets(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetResponseDto>>> {
  14857. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagAssets(id, options);
  14858. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14859. },
  14860. /**
  14861. *
  14862. * @param {string} id
  14863. * @param {*} [options] Override http request option.
  14864. * @throws {RequiredError}
  14865. */
  14866. async getTagById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14867. const localVarAxiosArgs = await localVarAxiosParamCreator.getTagById(id, options);
  14868. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14869. },
  14870. /**
  14871. *
  14872. * @param {string} id
  14873. * @param {AssetIdsDto} assetIdsDto
  14874. * @param {*} [options] Override http request option.
  14875. * @throws {RequiredError}
  14876. */
  14877. async tagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  14878. const localVarAxiosArgs = await localVarAxiosParamCreator.tagAssets(id, assetIdsDto, options);
  14879. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14880. },
  14881. /**
  14882. *
  14883. * @param {string} id
  14884. * @param {AssetIdsDto} assetIdsDto
  14885. * @param {*} [options] Override http request option.
  14886. * @throws {RequiredError}
  14887. */
  14888. async untagAssets(id: string, assetIdsDto: AssetIdsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AssetIdsResponseDto>>> {
  14889. const localVarAxiosArgs = await localVarAxiosParamCreator.untagAssets(id, assetIdsDto, options);
  14890. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14891. },
  14892. /**
  14893. *
  14894. * @param {string} id
  14895. * @param {UpdateTagDto} updateTagDto
  14896. * @param {*} [options] Override http request option.
  14897. * @throws {RequiredError}
  14898. */
  14899. async updateTag(id: string, updateTagDto: UpdateTagDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagResponseDto>> {
  14900. const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(id, updateTagDto, options);
  14901. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  14902. },
  14903. }
  14904. };
  14905. /**
  14906. * TagApi - factory interface
  14907. * @export
  14908. */
  14909. export const TagApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  14910. const localVarFp = TagApiFp(configuration)
  14911. return {
  14912. /**
  14913. *
  14914. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  14915. * @param {*} [options] Override http request option.
  14916. * @throws {RequiredError}
  14917. */
  14918. createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14919. return localVarFp.createTag(requestParameters.createTagDto, options).then((request) => request(axios, basePath));
  14920. },
  14921. /**
  14922. *
  14923. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  14924. * @param {*} [options] Override http request option.
  14925. * @throws {RequiredError}
  14926. */
  14927. deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
  14928. return localVarFp.deleteTag(requestParameters.id, options).then((request) => request(axios, basePath));
  14929. },
  14930. /**
  14931. *
  14932. * @param {*} [options] Override http request option.
  14933. * @throws {RequiredError}
  14934. */
  14935. getAllTags(options?: AxiosRequestConfig): AxiosPromise<Array<TagResponseDto>> {
  14936. return localVarFp.getAllTags(options).then((request) => request(axios, basePath));
  14937. },
  14938. /**
  14939. *
  14940. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  14941. * @param {*} [options] Override http request option.
  14942. * @throws {RequiredError}
  14943. */
  14944. getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
  14945. return localVarFp.getTagAssets(requestParameters.id, options).then((request) => request(axios, basePath));
  14946. },
  14947. /**
  14948. *
  14949. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  14950. * @param {*} [options] Override http request option.
  14951. * @throws {RequiredError}
  14952. */
  14953. getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14954. return localVarFp.getTagById(requestParameters.id, options).then((request) => request(axios, basePath));
  14955. },
  14956. /**
  14957. *
  14958. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  14959. * @param {*} [options] Override http request option.
  14960. * @throws {RequiredError}
  14961. */
  14962. tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  14963. return localVarFp.tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  14964. },
  14965. /**
  14966. *
  14967. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  14968. * @param {*} [options] Override http request option.
  14969. * @throws {RequiredError}
  14970. */
  14971. untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
  14972. return localVarFp.untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
  14973. },
  14974. /**
  14975. *
  14976. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  14977. * @param {*} [options] Override http request option.
  14978. * @throws {RequiredError}
  14979. */
  14980. updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
  14981. return localVarFp.updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(axios, basePath));
  14982. },
  14983. };
  14984. };
  14985. /**
  14986. * Request parameters for createTag operation in TagApi.
  14987. * @export
  14988. * @interface TagApiCreateTagRequest
  14989. */
  14990. export interface TagApiCreateTagRequest {
  14991. /**
  14992. *
  14993. * @type {CreateTagDto}
  14994. * @memberof TagApiCreateTag
  14995. */
  14996. readonly createTagDto: CreateTagDto
  14997. }
  14998. /**
  14999. * Request parameters for deleteTag operation in TagApi.
  15000. * @export
  15001. * @interface TagApiDeleteTagRequest
  15002. */
  15003. export interface TagApiDeleteTagRequest {
  15004. /**
  15005. *
  15006. * @type {string}
  15007. * @memberof TagApiDeleteTag
  15008. */
  15009. readonly id: string
  15010. }
  15011. /**
  15012. * Request parameters for getTagAssets operation in TagApi.
  15013. * @export
  15014. * @interface TagApiGetTagAssetsRequest
  15015. */
  15016. export interface TagApiGetTagAssetsRequest {
  15017. /**
  15018. *
  15019. * @type {string}
  15020. * @memberof TagApiGetTagAssets
  15021. */
  15022. readonly id: string
  15023. }
  15024. /**
  15025. * Request parameters for getTagById operation in TagApi.
  15026. * @export
  15027. * @interface TagApiGetTagByIdRequest
  15028. */
  15029. export interface TagApiGetTagByIdRequest {
  15030. /**
  15031. *
  15032. * @type {string}
  15033. * @memberof TagApiGetTagById
  15034. */
  15035. readonly id: string
  15036. }
  15037. /**
  15038. * Request parameters for tagAssets operation in TagApi.
  15039. * @export
  15040. * @interface TagApiTagAssetsRequest
  15041. */
  15042. export interface TagApiTagAssetsRequest {
  15043. /**
  15044. *
  15045. * @type {string}
  15046. * @memberof TagApiTagAssets
  15047. */
  15048. readonly id: string
  15049. /**
  15050. *
  15051. * @type {AssetIdsDto}
  15052. * @memberof TagApiTagAssets
  15053. */
  15054. readonly assetIdsDto: AssetIdsDto
  15055. }
  15056. /**
  15057. * Request parameters for untagAssets operation in TagApi.
  15058. * @export
  15059. * @interface TagApiUntagAssetsRequest
  15060. */
  15061. export interface TagApiUntagAssetsRequest {
  15062. /**
  15063. *
  15064. * @type {string}
  15065. * @memberof TagApiUntagAssets
  15066. */
  15067. readonly id: string
  15068. /**
  15069. *
  15070. * @type {AssetIdsDto}
  15071. * @memberof TagApiUntagAssets
  15072. */
  15073. readonly assetIdsDto: AssetIdsDto
  15074. }
  15075. /**
  15076. * Request parameters for updateTag operation in TagApi.
  15077. * @export
  15078. * @interface TagApiUpdateTagRequest
  15079. */
  15080. export interface TagApiUpdateTagRequest {
  15081. /**
  15082. *
  15083. * @type {string}
  15084. * @memberof TagApiUpdateTag
  15085. */
  15086. readonly id: string
  15087. /**
  15088. *
  15089. * @type {UpdateTagDto}
  15090. * @memberof TagApiUpdateTag
  15091. */
  15092. readonly updateTagDto: UpdateTagDto
  15093. }
  15094. /**
  15095. * TagApi - object-oriented interface
  15096. * @export
  15097. * @class TagApi
  15098. * @extends {BaseAPI}
  15099. */
  15100. export class TagApi extends BaseAPI {
  15101. /**
  15102. *
  15103. * @param {TagApiCreateTagRequest} requestParameters Request parameters.
  15104. * @param {*} [options] Override http request option.
  15105. * @throws {RequiredError}
  15106. * @memberof TagApi
  15107. */
  15108. public createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig) {
  15109. return TagApiFp(this.configuration).createTag(requestParameters.createTagDto, options).then((request) => request(this.axios, this.basePath));
  15110. }
  15111. /**
  15112. *
  15113. * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
  15114. * @param {*} [options] Override http request option.
  15115. * @throws {RequiredError}
  15116. * @memberof TagApi
  15117. */
  15118. public deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig) {
  15119. return TagApiFp(this.configuration).deleteTag(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15120. }
  15121. /**
  15122. *
  15123. * @param {*} [options] Override http request option.
  15124. * @throws {RequiredError}
  15125. * @memberof TagApi
  15126. */
  15127. public getAllTags(options?: AxiosRequestConfig) {
  15128. return TagApiFp(this.configuration).getAllTags(options).then((request) => request(this.axios, this.basePath));
  15129. }
  15130. /**
  15131. *
  15132. * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
  15133. * @param {*} [options] Override http request option.
  15134. * @throws {RequiredError}
  15135. * @memberof TagApi
  15136. */
  15137. public getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig) {
  15138. return TagApiFp(this.configuration).getTagAssets(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15139. }
  15140. /**
  15141. *
  15142. * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
  15143. * @param {*} [options] Override http request option.
  15144. * @throws {RequiredError}
  15145. * @memberof TagApi
  15146. */
  15147. public getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig) {
  15148. return TagApiFp(this.configuration).getTagById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15149. }
  15150. /**
  15151. *
  15152. * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
  15153. * @param {*} [options] Override http request option.
  15154. * @throws {RequiredError}
  15155. * @memberof TagApi
  15156. */
  15157. public tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig) {
  15158. return TagApiFp(this.configuration).tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  15159. }
  15160. /**
  15161. *
  15162. * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
  15163. * @param {*} [options] Override http request option.
  15164. * @throws {RequiredError}
  15165. * @memberof TagApi
  15166. */
  15167. public untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig) {
  15168. return TagApiFp(this.configuration).untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(this.axios, this.basePath));
  15169. }
  15170. /**
  15171. *
  15172. * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
  15173. * @param {*} [options] Override http request option.
  15174. * @throws {RequiredError}
  15175. * @memberof TagApi
  15176. */
  15177. public updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig) {
  15178. return TagApiFp(this.configuration).updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(this.axios, this.basePath));
  15179. }
  15180. }
  15181. /**
  15182. * UserApi - axios parameter creator
  15183. * @export
  15184. */
  15185. export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
  15186. return {
  15187. /**
  15188. *
  15189. * @param {File} file
  15190. * @param {*} [options] Override http request option.
  15191. * @throws {RequiredError}
  15192. */
  15193. createProfileImage: async (file: File, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15194. // verify required parameter 'file' is not null or undefined
  15195. assertParamExists('createProfileImage', 'file', file)
  15196. const localVarPath = `/user/profile-image`;
  15197. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15198. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15199. let baseOptions;
  15200. if (configuration) {
  15201. baseOptions = configuration.baseOptions;
  15202. }
  15203. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  15204. const localVarHeaderParameter = {} as any;
  15205. const localVarQueryParameter = {} as any;
  15206. const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
  15207. // authentication cookie required
  15208. // authentication api_key required
  15209. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15210. // authentication bearer required
  15211. // http bearer authentication required
  15212. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15213. if (file !== undefined) {
  15214. localVarFormParams.append('file', file as any);
  15215. }
  15216. localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
  15217. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15218. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15219. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15220. localVarRequestOptions.data = localVarFormParams;
  15221. return {
  15222. url: toPathString(localVarUrlObj),
  15223. options: localVarRequestOptions,
  15224. };
  15225. },
  15226. /**
  15227. *
  15228. * @param {CreateUserDto} createUserDto
  15229. * @param {*} [options] Override http request option.
  15230. * @throws {RequiredError}
  15231. */
  15232. createUser: async (createUserDto: CreateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15233. // verify required parameter 'createUserDto' is not null or undefined
  15234. assertParamExists('createUser', 'createUserDto', createUserDto)
  15235. const localVarPath = `/user`;
  15236. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15237. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15238. let baseOptions;
  15239. if (configuration) {
  15240. baseOptions = configuration.baseOptions;
  15241. }
  15242. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  15243. const localVarHeaderParameter = {} as any;
  15244. const localVarQueryParameter = {} as any;
  15245. // authentication cookie required
  15246. // authentication api_key required
  15247. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15248. // authentication bearer required
  15249. // http bearer authentication required
  15250. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15251. localVarHeaderParameter['Content-Type'] = 'application/json';
  15252. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15253. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15254. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15255. localVarRequestOptions.data = serializeDataIfNeeded(createUserDto, localVarRequestOptions, configuration)
  15256. return {
  15257. url: toPathString(localVarUrlObj),
  15258. options: localVarRequestOptions,
  15259. };
  15260. },
  15261. /**
  15262. *
  15263. * @param {*} [options] Override http request option.
  15264. * @throws {RequiredError}
  15265. */
  15266. deleteProfileImage: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15267. const localVarPath = `/user/profile-image`;
  15268. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15269. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15270. let baseOptions;
  15271. if (configuration) {
  15272. baseOptions = configuration.baseOptions;
  15273. }
  15274. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  15275. const localVarHeaderParameter = {} as any;
  15276. const localVarQueryParameter = {} as any;
  15277. // authentication cookie required
  15278. // authentication api_key required
  15279. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15280. // authentication bearer required
  15281. // http bearer authentication required
  15282. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15283. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15284. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15285. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15286. return {
  15287. url: toPathString(localVarUrlObj),
  15288. options: localVarRequestOptions,
  15289. };
  15290. },
  15291. /**
  15292. *
  15293. * @param {string} id
  15294. * @param {*} [options] Override http request option.
  15295. * @throws {RequiredError}
  15296. */
  15297. deleteUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15298. // verify required parameter 'id' is not null or undefined
  15299. assertParamExists('deleteUser', 'id', id)
  15300. const localVarPath = `/user/{id}`
  15301. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  15302. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15303. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15304. let baseOptions;
  15305. if (configuration) {
  15306. baseOptions = configuration.baseOptions;
  15307. }
  15308. const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
  15309. const localVarHeaderParameter = {} as any;
  15310. const localVarQueryParameter = {} as any;
  15311. // authentication cookie required
  15312. // authentication api_key required
  15313. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15314. // authentication bearer required
  15315. // http bearer authentication required
  15316. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15317. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15318. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15319. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15320. return {
  15321. url: toPathString(localVarUrlObj),
  15322. options: localVarRequestOptions,
  15323. };
  15324. },
  15325. /**
  15326. *
  15327. * @param {boolean} isAll
  15328. * @param {*} [options] Override http request option.
  15329. * @throws {RequiredError}
  15330. */
  15331. getAllUsers: async (isAll: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15332. // verify required parameter 'isAll' is not null or undefined
  15333. assertParamExists('getAllUsers', 'isAll', isAll)
  15334. const localVarPath = `/user`;
  15335. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15336. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15337. let baseOptions;
  15338. if (configuration) {
  15339. baseOptions = configuration.baseOptions;
  15340. }
  15341. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  15342. const localVarHeaderParameter = {} as any;
  15343. const localVarQueryParameter = {} as any;
  15344. // authentication cookie required
  15345. // authentication api_key required
  15346. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15347. // authentication bearer required
  15348. // http bearer authentication required
  15349. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15350. if (isAll !== undefined) {
  15351. localVarQueryParameter['isAll'] = isAll;
  15352. }
  15353. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15354. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15355. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15356. return {
  15357. url: toPathString(localVarUrlObj),
  15358. options: localVarRequestOptions,
  15359. };
  15360. },
  15361. /**
  15362. *
  15363. * @param {*} [options] Override http request option.
  15364. * @throws {RequiredError}
  15365. */
  15366. getMyUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15367. const localVarPath = `/user/me`;
  15368. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15369. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15370. let baseOptions;
  15371. if (configuration) {
  15372. baseOptions = configuration.baseOptions;
  15373. }
  15374. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  15375. const localVarHeaderParameter = {} as any;
  15376. const localVarQueryParameter = {} as any;
  15377. // authentication cookie required
  15378. // authentication api_key required
  15379. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15380. // authentication bearer required
  15381. // http bearer authentication required
  15382. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15383. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15384. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15385. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15386. return {
  15387. url: toPathString(localVarUrlObj),
  15388. options: localVarRequestOptions,
  15389. };
  15390. },
  15391. /**
  15392. *
  15393. * @param {string} id
  15394. * @param {*} [options] Override http request option.
  15395. * @throws {RequiredError}
  15396. */
  15397. getProfileImage: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15398. // verify required parameter 'id' is not null or undefined
  15399. assertParamExists('getProfileImage', 'id', id)
  15400. const localVarPath = `/user/profile-image/{id}`
  15401. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  15402. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15403. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15404. let baseOptions;
  15405. if (configuration) {
  15406. baseOptions = configuration.baseOptions;
  15407. }
  15408. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  15409. const localVarHeaderParameter = {} as any;
  15410. const localVarQueryParameter = {} as any;
  15411. // authentication cookie required
  15412. // authentication api_key required
  15413. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15414. // authentication bearer required
  15415. // http bearer authentication required
  15416. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15417. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15418. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15419. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15420. return {
  15421. url: toPathString(localVarUrlObj),
  15422. options: localVarRequestOptions,
  15423. };
  15424. },
  15425. /**
  15426. *
  15427. * @param {string} id
  15428. * @param {*} [options] Override http request option.
  15429. * @throws {RequiredError}
  15430. */
  15431. getUserById: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15432. // verify required parameter 'id' is not null or undefined
  15433. assertParamExists('getUserById', 'id', id)
  15434. const localVarPath = `/user/info/{id}`
  15435. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  15436. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15437. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15438. let baseOptions;
  15439. if (configuration) {
  15440. baseOptions = configuration.baseOptions;
  15441. }
  15442. const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
  15443. const localVarHeaderParameter = {} as any;
  15444. const localVarQueryParameter = {} as any;
  15445. // authentication cookie required
  15446. // authentication api_key required
  15447. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15448. // authentication bearer required
  15449. // http bearer authentication required
  15450. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15451. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15452. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15453. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15454. return {
  15455. url: toPathString(localVarUrlObj),
  15456. options: localVarRequestOptions,
  15457. };
  15458. },
  15459. /**
  15460. *
  15461. * @param {string} id
  15462. * @param {*} [options] Override http request option.
  15463. * @throws {RequiredError}
  15464. */
  15465. restoreUser: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15466. // verify required parameter 'id' is not null or undefined
  15467. assertParamExists('restoreUser', 'id', id)
  15468. const localVarPath = `/user/{id}/restore`
  15469. .replace(`{${"id"}}`, encodeURIComponent(String(id)));
  15470. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15471. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15472. let baseOptions;
  15473. if (configuration) {
  15474. baseOptions = configuration.baseOptions;
  15475. }
  15476. const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
  15477. const localVarHeaderParameter = {} as any;
  15478. const localVarQueryParameter = {} as any;
  15479. // authentication cookie required
  15480. // authentication api_key required
  15481. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15482. // authentication bearer required
  15483. // http bearer authentication required
  15484. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15485. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15486. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15487. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15488. return {
  15489. url: toPathString(localVarUrlObj),
  15490. options: localVarRequestOptions,
  15491. };
  15492. },
  15493. /**
  15494. *
  15495. * @param {UpdateUserDto} updateUserDto
  15496. * @param {*} [options] Override http request option.
  15497. * @throws {RequiredError}
  15498. */
  15499. updateUser: async (updateUserDto: UpdateUserDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
  15500. // verify required parameter 'updateUserDto' is not null or undefined
  15501. assertParamExists('updateUser', 'updateUserDto', updateUserDto)
  15502. const localVarPath = `/user`;
  15503. // use dummy base URL string because the URL constructor only accepts absolute URLs.
  15504. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
  15505. let baseOptions;
  15506. if (configuration) {
  15507. baseOptions = configuration.baseOptions;
  15508. }
  15509. const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
  15510. const localVarHeaderParameter = {} as any;
  15511. const localVarQueryParameter = {} as any;
  15512. // authentication cookie required
  15513. // authentication api_key required
  15514. await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
  15515. // authentication bearer required
  15516. // http bearer authentication required
  15517. await setBearerAuthToObject(localVarHeaderParameter, configuration)
  15518. localVarHeaderParameter['Content-Type'] = 'application/json';
  15519. setSearchParams(localVarUrlObj, localVarQueryParameter);
  15520. let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
  15521. localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
  15522. localVarRequestOptions.data = serializeDataIfNeeded(updateUserDto, localVarRequestOptions, configuration)
  15523. return {
  15524. url: toPathString(localVarUrlObj),
  15525. options: localVarRequestOptions,
  15526. };
  15527. },
  15528. }
  15529. };
  15530. /**
  15531. * UserApi - functional programming interface
  15532. * @export
  15533. */
  15534. export const UserApiFp = function(configuration?: Configuration) {
  15535. const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
  15536. return {
  15537. /**
  15538. *
  15539. * @param {File} file
  15540. * @param {*} [options] Override http request option.
  15541. * @throws {RequiredError}
  15542. */
  15543. async createProfileImage(file: File, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProfileImageResponseDto>> {
  15544. const localVarAxiosArgs = await localVarAxiosParamCreator.createProfileImage(file, options);
  15545. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15546. },
  15547. /**
  15548. *
  15549. * @param {CreateUserDto} createUserDto
  15550. * @param {*} [options] Override http request option.
  15551. * @throws {RequiredError}
  15552. */
  15553. async createUser(createUserDto: CreateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15554. const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUserDto, options);
  15555. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15556. },
  15557. /**
  15558. *
  15559. * @param {*} [options] Override http request option.
  15560. * @throws {RequiredError}
  15561. */
  15562. async deleteProfileImage(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
  15563. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProfileImage(options);
  15564. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15565. },
  15566. /**
  15567. *
  15568. * @param {string} id
  15569. * @param {*} [options] Override http request option.
  15570. * @throws {RequiredError}
  15571. */
  15572. async deleteUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15573. const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, options);
  15574. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15575. },
  15576. /**
  15577. *
  15578. * @param {boolean} isAll
  15579. * @param {*} [options] Override http request option.
  15580. * @throws {RequiredError}
  15581. */
  15582. async getAllUsers(isAll: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserResponseDto>>> {
  15583. const localVarAxiosArgs = await localVarAxiosParamCreator.getAllUsers(isAll, options);
  15584. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15585. },
  15586. /**
  15587. *
  15588. * @param {*} [options] Override http request option.
  15589. * @throws {RequiredError}
  15590. */
  15591. async getMyUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15592. const localVarAxiosArgs = await localVarAxiosParamCreator.getMyUserInfo(options);
  15593. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15594. },
  15595. /**
  15596. *
  15597. * @param {string} id
  15598. * @param {*} [options] Override http request option.
  15599. * @throws {RequiredError}
  15600. */
  15601. async getProfileImage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
  15602. const localVarAxiosArgs = await localVarAxiosParamCreator.getProfileImage(id, options);
  15603. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15604. },
  15605. /**
  15606. *
  15607. * @param {string} id
  15608. * @param {*} [options] Override http request option.
  15609. * @throws {RequiredError}
  15610. */
  15611. async getUserById(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15612. const localVarAxiosArgs = await localVarAxiosParamCreator.getUserById(id, options);
  15613. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15614. },
  15615. /**
  15616. *
  15617. * @param {string} id
  15618. * @param {*} [options] Override http request option.
  15619. * @throws {RequiredError}
  15620. */
  15621. async restoreUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15622. const localVarAxiosArgs = await localVarAxiosParamCreator.restoreUser(id, options);
  15623. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15624. },
  15625. /**
  15626. *
  15627. * @param {UpdateUserDto} updateUserDto
  15628. * @param {*} [options] Override http request option.
  15629. * @throws {RequiredError}
  15630. */
  15631. async updateUser(updateUserDto: UpdateUserDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserResponseDto>> {
  15632. const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(updateUserDto, options);
  15633. return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
  15634. },
  15635. }
  15636. };
  15637. /**
  15638. * UserApi - factory interface
  15639. * @export
  15640. */
  15641. export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
  15642. const localVarFp = UserApiFp(configuration)
  15643. return {
  15644. /**
  15645. *
  15646. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  15647. * @param {*} [options] Override http request option.
  15648. * @throws {RequiredError}
  15649. */
  15650. createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<CreateProfileImageResponseDto> {
  15651. return localVarFp.createProfileImage(requestParameters.file, options).then((request) => request(axios, basePath));
  15652. },
  15653. /**
  15654. *
  15655. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  15656. * @param {*} [options] Override http request option.
  15657. * @throws {RequiredError}
  15658. */
  15659. createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15660. return localVarFp.createUser(requestParameters.createUserDto, options).then((request) => request(axios, basePath));
  15661. },
  15662. /**
  15663. *
  15664. * @param {*} [options] Override http request option.
  15665. * @throws {RequiredError}
  15666. */
  15667. deleteProfileImage(options?: AxiosRequestConfig): AxiosPromise<void> {
  15668. return localVarFp.deleteProfileImage(options).then((request) => request(axios, basePath));
  15669. },
  15670. /**
  15671. *
  15672. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  15673. * @param {*} [options] Override http request option.
  15674. * @throws {RequiredError}
  15675. */
  15676. deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15677. return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
  15678. },
  15679. /**
  15680. *
  15681. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  15682. * @param {*} [options] Override http request option.
  15683. * @throws {RequiredError}
  15684. */
  15685. getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
  15686. return localVarFp.getAllUsers(requestParameters.isAll, options).then((request) => request(axios, basePath));
  15687. },
  15688. /**
  15689. *
  15690. * @param {*} [options] Override http request option.
  15691. * @throws {RequiredError}
  15692. */
  15693. getMyUserInfo(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15694. return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
  15695. },
  15696. /**
  15697. *
  15698. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  15699. * @param {*} [options] Override http request option.
  15700. * @throws {RequiredError}
  15701. */
  15702. getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
  15703. return localVarFp.getProfileImage(requestParameters.id, options).then((request) => request(axios, basePath));
  15704. },
  15705. /**
  15706. *
  15707. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  15708. * @param {*} [options] Override http request option.
  15709. * @throws {RequiredError}
  15710. */
  15711. getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15712. return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
  15713. },
  15714. /**
  15715. *
  15716. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  15717. * @param {*} [options] Override http request option.
  15718. * @throws {RequiredError}
  15719. */
  15720. restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15721. return localVarFp.restoreUser(requestParameters.id, options).then((request) => request(axios, basePath));
  15722. },
  15723. /**
  15724. *
  15725. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  15726. * @param {*} [options] Override http request option.
  15727. * @throws {RequiredError}
  15728. */
  15729. updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
  15730. return localVarFp.updateUser(requestParameters.updateUserDto, options).then((request) => request(axios, basePath));
  15731. },
  15732. };
  15733. };
  15734. /**
  15735. * Request parameters for createProfileImage operation in UserApi.
  15736. * @export
  15737. * @interface UserApiCreateProfileImageRequest
  15738. */
  15739. export interface UserApiCreateProfileImageRequest {
  15740. /**
  15741. *
  15742. * @type {File}
  15743. * @memberof UserApiCreateProfileImage
  15744. */
  15745. readonly file: File
  15746. }
  15747. /**
  15748. * Request parameters for createUser operation in UserApi.
  15749. * @export
  15750. * @interface UserApiCreateUserRequest
  15751. */
  15752. export interface UserApiCreateUserRequest {
  15753. /**
  15754. *
  15755. * @type {CreateUserDto}
  15756. * @memberof UserApiCreateUser
  15757. */
  15758. readonly createUserDto: CreateUserDto
  15759. }
  15760. /**
  15761. * Request parameters for deleteUser operation in UserApi.
  15762. * @export
  15763. * @interface UserApiDeleteUserRequest
  15764. */
  15765. export interface UserApiDeleteUserRequest {
  15766. /**
  15767. *
  15768. * @type {string}
  15769. * @memberof UserApiDeleteUser
  15770. */
  15771. readonly id: string
  15772. }
  15773. /**
  15774. * Request parameters for getAllUsers operation in UserApi.
  15775. * @export
  15776. * @interface UserApiGetAllUsersRequest
  15777. */
  15778. export interface UserApiGetAllUsersRequest {
  15779. /**
  15780. *
  15781. * @type {boolean}
  15782. * @memberof UserApiGetAllUsers
  15783. */
  15784. readonly isAll: boolean
  15785. }
  15786. /**
  15787. * Request parameters for getProfileImage operation in UserApi.
  15788. * @export
  15789. * @interface UserApiGetProfileImageRequest
  15790. */
  15791. export interface UserApiGetProfileImageRequest {
  15792. /**
  15793. *
  15794. * @type {string}
  15795. * @memberof UserApiGetProfileImage
  15796. */
  15797. readonly id: string
  15798. }
  15799. /**
  15800. * Request parameters for getUserById operation in UserApi.
  15801. * @export
  15802. * @interface UserApiGetUserByIdRequest
  15803. */
  15804. export interface UserApiGetUserByIdRequest {
  15805. /**
  15806. *
  15807. * @type {string}
  15808. * @memberof UserApiGetUserById
  15809. */
  15810. readonly id: string
  15811. }
  15812. /**
  15813. * Request parameters for restoreUser operation in UserApi.
  15814. * @export
  15815. * @interface UserApiRestoreUserRequest
  15816. */
  15817. export interface UserApiRestoreUserRequest {
  15818. /**
  15819. *
  15820. * @type {string}
  15821. * @memberof UserApiRestoreUser
  15822. */
  15823. readonly id: string
  15824. }
  15825. /**
  15826. * Request parameters for updateUser operation in UserApi.
  15827. * @export
  15828. * @interface UserApiUpdateUserRequest
  15829. */
  15830. export interface UserApiUpdateUserRequest {
  15831. /**
  15832. *
  15833. * @type {UpdateUserDto}
  15834. * @memberof UserApiUpdateUser
  15835. */
  15836. readonly updateUserDto: UpdateUserDto
  15837. }
  15838. /**
  15839. * UserApi - object-oriented interface
  15840. * @export
  15841. * @class UserApi
  15842. * @extends {BaseAPI}
  15843. */
  15844. export class UserApi extends BaseAPI {
  15845. /**
  15846. *
  15847. * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
  15848. * @param {*} [options] Override http request option.
  15849. * @throws {RequiredError}
  15850. * @memberof UserApi
  15851. */
  15852. public createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig) {
  15853. return UserApiFp(this.configuration).createProfileImage(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
  15854. }
  15855. /**
  15856. *
  15857. * @param {UserApiCreateUserRequest} requestParameters Request parameters.
  15858. * @param {*} [options] Override http request option.
  15859. * @throws {RequiredError}
  15860. * @memberof UserApi
  15861. */
  15862. public createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig) {
  15863. return UserApiFp(this.configuration).createUser(requestParameters.createUserDto, options).then((request) => request(this.axios, this.basePath));
  15864. }
  15865. /**
  15866. *
  15867. * @param {*} [options] Override http request option.
  15868. * @throws {RequiredError}
  15869. * @memberof UserApi
  15870. */
  15871. public deleteProfileImage(options?: AxiosRequestConfig) {
  15872. return UserApiFp(this.configuration).deleteProfileImage(options).then((request) => request(this.axios, this.basePath));
  15873. }
  15874. /**
  15875. *
  15876. * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
  15877. * @param {*} [options] Override http request option.
  15878. * @throws {RequiredError}
  15879. * @memberof UserApi
  15880. */
  15881. public deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig) {
  15882. return UserApiFp(this.configuration).deleteUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15883. }
  15884. /**
  15885. *
  15886. * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
  15887. * @param {*} [options] Override http request option.
  15888. * @throws {RequiredError}
  15889. * @memberof UserApi
  15890. */
  15891. public getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig) {
  15892. return UserApiFp(this.configuration).getAllUsers(requestParameters.isAll, options).then((request) => request(this.axios, this.basePath));
  15893. }
  15894. /**
  15895. *
  15896. * @param {*} [options] Override http request option.
  15897. * @throws {RequiredError}
  15898. * @memberof UserApi
  15899. */
  15900. public getMyUserInfo(options?: AxiosRequestConfig) {
  15901. return UserApiFp(this.configuration).getMyUserInfo(options).then((request) => request(this.axios, this.basePath));
  15902. }
  15903. /**
  15904. *
  15905. * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
  15906. * @param {*} [options] Override http request option.
  15907. * @throws {RequiredError}
  15908. * @memberof UserApi
  15909. */
  15910. public getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig) {
  15911. return UserApiFp(this.configuration).getProfileImage(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15912. }
  15913. /**
  15914. *
  15915. * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
  15916. * @param {*} [options] Override http request option.
  15917. * @throws {RequiredError}
  15918. * @memberof UserApi
  15919. */
  15920. public getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig) {
  15921. return UserApiFp(this.configuration).getUserById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15922. }
  15923. /**
  15924. *
  15925. * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
  15926. * @param {*} [options] Override http request option.
  15927. * @throws {RequiredError}
  15928. * @memberof UserApi
  15929. */
  15930. public restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig) {
  15931. return UserApiFp(this.configuration).restoreUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
  15932. }
  15933. /**
  15934. *
  15935. * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
  15936. * @param {*} [options] Override http request option.
  15937. * @throws {RequiredError}
  15938. * @memberof UserApi
  15939. */
  15940. public updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig) {
  15941. return UserApiFp(this.configuration).updateUser(requestParameters.updateUserDto, options).then((request) => request(this.axios, this.basePath));
  15942. }
  15943. }