1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258(* generated by: awso-codegen generate-all --botocore-data vendor/botocore/botocore/data -o aws --runtime-dir lib/runtime/awso --cli-dir awso-cli *)openAwsoopen!Import[@@@warning"-32"]letservice=Service.devops_agentletapiVersion="2026-01-01"letendpointPrefix="aidevops"letserviceFullName="AWS DevOps Agent Service"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letsimple_to_jsonto_valuex=Botodata.Json.value_to_json_scalar(to_valuex)letcomposed_to_jsonto_valuex=Botodata.Json.value_to_json(to_valuex)letto_queryto_valuex=Client.Query.of_value(to_valuex)letstructure_to_value_auxst~f=letfilter=function|(k,Somev)->Some(k,v)|_->Noneinletpairkv=(k,v)inletdefer_value(k,dv)=pairkdvin((List.filter_mapst~f:filter)|>(List.map~f:defer_value))|>(funx->`Structure(fx))letstructure_to_value=structure_to_value_aux~f:Fn.idletstructure_to_wrapped_value~wrapper~response=structure_to_value_aux~f:(funx->[(wrapper,(`Structurex));(response,(`Structure[]))])moduleSlackChannelChannelIdString=structtypenonrect=stringletcontext_="SlackChannelChannelIdString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:8)>>=(fun()->(check_string_maxi~max:16)>>=(fun()->check_patterni~pattern:"[CGD][A-Z0-9]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SlackChannelChannelIdString"jletto_json=simple_to_jsonto_valueendmoduleString_=structtypenonrect=stringletcontext_="String"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"String"jletto_json=simple_to_jsonto_valueendmoduleExchangeParameterValue=structtypenonrect=string[@@ocaml.doc"Exchange Parameter value for MCP authentication"]letcontext_="ExchangeParameterValue"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ExchangeParameterValue"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Exchange Parameter value for MCP authentication"]moduleNewRelicAlertPolicyIdsMemberString=structtypenonrect=stringletcontext_="NewRelicAlertPolicyIdsMemberString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[0-9]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NewRelicAlertPolicyIdsMemberString"jletto_json=simple_to_jsonto_valueendmoduleNewRelicApplicationIdsMemberString=structtypenonrect=stringletcontext_="NewRelicApplicationIdsMemberString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[0-9]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NewRelicApplicationIdsMemberString"jletto_json=simple_to_jsonto_valueendmoduleNewRelicEntityGuidsMemberString=structtypenonrect=stringletcontext_="NewRelicEntityGuidsMemberString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9_.-]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NewRelicEntityGuidsMemberString"jletto_json=simple_to_jsonto_valueendmoduleDocument=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevendmoduleMCPToolsListMemberString=structtypenonrect=stringletcontext_="MCPToolsListMemberString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9_-]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPToolsListMemberString"jletto_json=simple_to_jsonto_valueendmoduleSlackChannel=structtypenonrect={channelName:String_.toption[@ocaml.doc"Slack channel name"];channelId:SlackChannelChannelIdString.t[@ocaml.doc"Slack channel ID"]}letcontext_="SlackChannel"letmake?channelName=fun~channelId->fun()->{channelName;channelId}letto_valuex=structure_to_value[("channelName",(Option.mapx.channelName~f:String_.to_value));("channelId",(Some(SlackChannelChannelIdString.to_valuex.channelId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letchannelId=SlackChannelChannelIdString.of_xml(Xml.child_exn~context:context_xml_arg0"channelId")inletchannelName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"channelName")inmake~channelId?channelName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letchannelId=field_map_exnjson__"channelId"SlackChannelChannelIdString.of_jsoninletchannelName=field_mapjson__"channelName"String_.of_jsoninmake~channelId?channelName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a Slack channel with its ID and optional name."]moduleMCPServerAuthorizationDiscoveryConfigReturnToEndpointString=structtypenonrect=stringletcontext_="MCPServerAuthorizationDiscoveryConfigReturnToEndpointString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"https://[a-zA-Z0-9.-]*\\.(console\\.(aws|aws-dev)|awsc-(integ|preprod)\\.aws)\\.amazon\\.com(/.*)?");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerAuthorizationDiscoveryConfigReturnToEndpointString"jletto_json=simple_to_jsonto_valueendmoduleClientId=structtypenonrect=string[@@ocaml.doc"Client ID for service authentication."]letcontext_="ClientId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9._-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ClientId"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Client ID for service authentication."]moduleClientSecret=structtypenonrect=string[@@ocaml.doc"Client secret for service authentication."]letcontext_="ClientSecret"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:512)>>=(fun()->check_patterni~pattern:"[\\S]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ClientSecret"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Client secret for service authentication."]moduleDynatraceOAuthClientCredentialsConfigClientNameString=structtypenonrect=stringletcontext_="DynatraceOAuthClientCredentialsConfigClientNameString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:"[\\p{L}\\p{N}\\p{Z}._-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DynatraceOAuthClientCredentialsConfigClientNameString"jletto_json=simple_to_jsonto_valueendmoduleExchangeParameters=structtypenonrect=(String_.t*ExchangeParameterValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((String_.of_stringchopped),(ExchangeParameterValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(ExchangeParameterValue.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:String_.of_string~of_json:ExchangeParameterValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMCPServerAPIKeyConfigApiKeyHeaderString=structtypenonrect=stringletcontext_="MCPServerAPIKeyConfigApiKeyHeaderString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9-_]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerAPIKeyConfigApiKeyHeaderString"jletto_json=simple_to_jsonto_valueendmoduleMCPServerAPIKeyConfigApiKeyNameString=structtypenonrect=stringletcontext_="MCPServerAPIKeyConfigApiKeyNameString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9_\\s-]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerAPIKeyConfigApiKeyNameString"jletto_json=simple_to_jsonto_valueendmoduleMCPServerAPIKeyConfigApiKeyValueString=structtypenonrect=string[@@ocaml.doc"API Key Value for service."]letcontext_="MCPServerAPIKeyConfigApiKeyValueString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->check_patterni~pattern:"[!-~]([ \\t]*[!-~])*"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerAPIKeyConfigApiKeyValueString"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"API Key Value for service."]moduleMCPServerBearerTokenConfigAuthorizationHeaderString=structtypenonrect=stringletcontext_="MCPServerBearerTokenConfigAuthorizationHeaderString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9-]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerBearerTokenConfigAuthorizationHeaderString"jletto_json=simple_to_jsonto_valueendmoduleMCPServerBearerTokenConfigTokenNameString=structtypenonrect=stringletcontext_="MCPServerBearerTokenConfigTokenNameString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9_\\s-]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerBearerTokenConfigTokenNameString"jletto_json=simple_to_jsonto_valueendmoduleMCPServerBearerTokenConfigTokenValueString=structtypenonrect=string[@@ocaml.doc"Token value for authentication."]letcontext_="MCPServerBearerTokenConfigTokenValueString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[\\S]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerBearerTokenConfigTokenValueString"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Token value for authentication."]moduleBoolean=structtypenonrect=boolletmakei=iletof_string=Bool.of_stringletto_valuex=`Booleanxletto_queryv=to_queryto_valuevletto_headerx=Bool.to_stringxletof_xmlxml_arg0=Bool.of_string(string_of_xml~kind:"a boolean"xml_arg0)letof_json=bool_of_jsonletto_json=simple_to_jsonto_valueendmoduleMCPServerOAuth3LOConfigAuthorizationUrlString=structtypenonrect=stringletcontext_="MCPServerOAuth3LOConfigAuthorizationUrlString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"https://[a-zA-Z0-9.-]+(?::[0-9]+)?(?:/.*)?");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerOAuth3LOConfigAuthorizationUrlString"jletto_json=simple_to_jsonto_valueendmoduleMCPServerOAuth3LOConfigClientNameString=structtypenonrect=stringletcontext_="MCPServerOAuth3LOConfigClientNameString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:"[\\p{L}\\p{N}\\p{Z}._-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerOAuth3LOConfigClientNameString"jletto_json=simple_to_jsonto_valueendmoduleMCPServerOAuth3LOConfigExchangeUrlString=structtypenonrect=stringletcontext_="MCPServerOAuth3LOConfigExchangeUrlString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"https://[a-zA-Z0-9.-]+(?::[0-9]+)?(?:/.*)?");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerOAuth3LOConfigExchangeUrlString"jletto_json=simple_to_jsonto_valueendmoduleMCPServerOAuth3LOConfigReturnToEndpointString=structtypenonrect=stringletcontext_="MCPServerOAuth3LOConfigReturnToEndpointString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"https://[a-zA-Z0-9.-]*\\.(console\\.(aws|aws-dev)|awsc-(integ|preprod)\\.aws)\\.amazon\\.com(/.*)?");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerOAuth3LOConfigReturnToEndpointString"jletto_json=simple_to_jsonto_valueendmoduleScopes=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"Scopes"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMCPServerOAuthClientCredentialsConfigClientNameString=structtypenonrect=stringletcontext_="MCPServerOAuthClientCredentialsConfigClientNameString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:"[\\p{L}\\p{N}\\p{Z}._-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerOAuthClientCredentialsConfigClientNameString"jletto_json=simple_to_jsonto_valueendmoduleMCPServerOAuthClientCredentialsConfigExchangeUrlString=structtypenonrect=stringletcontext_="MCPServerOAuthClientCredentialsConfigExchangeUrlString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"https://[a-zA-Z0-9.-]+(?::[0-9]+)?(?:/.*)?");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerOAuthClientCredentialsConfigExchangeUrlString"jletto_json=simple_to_jsonto_valueendmoduleNewRelicAlertPolicyIds=structtypenonrect=NewRelicAlertPolicyIdsMemberString.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:NewRelicAlertPolicyIdsMemberString.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:NewRelicAlertPolicyIdsMemberString.of_xml)letof_jsonj=list_of_json~kind:"NewRelicAlertPolicyIds"~of_json:NewRelicAlertPolicyIdsMemberString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNewRelicApiKeyConfigAccountIdString=structtypenonrect=stringletcontext_="NewRelicApiKeyConfigAccountIdString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[0-9]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NewRelicApiKeyConfigAccountIdString"jletto_json=simple_to_jsonto_valueendmoduleNewRelicApiKeyConfigApiKeyString=structtypenonrect=string[@@ocaml.doc"API Key Value for service."]letcontext_="NewRelicApiKeyConfigApiKeyString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->check_patterni~pattern:"NRAK-[A-Z0-9]+"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NewRelicApiKeyConfigApiKeyString"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"API Key Value for service."]moduleNewRelicApplicationIds=structtypenonrect=NewRelicApplicationIdsMemberString.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:NewRelicApplicationIdsMemberString.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:NewRelicApplicationIdsMemberString.of_xml)letof_jsonj=list_of_json~kind:"NewRelicApplicationIds"~of_json:NewRelicApplicationIdsMemberString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNewRelicEntityGuids=structtypenonrect=NewRelicEntityGuidsMemberString.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:NewRelicEntityGuidsMemberString.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:NewRelicEntityGuidsMemberString.of_xml)letof_jsonj=list_of_json~kind:"NewRelicEntityGuids"~of_json:NewRelicEntityGuidsMemberString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNewRelicRegion=structtypenonrect=|US|EU|Non_static_idofstringletmakei=iletto_string=function|US->"US"|EU->"EU"|Non_static_ids->sletof_string=function|"US"->US|"EU"->EU|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration NewRelicRegion"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"NewRelicRegion"j)letto_json=simple_to_jsonto_valueendmodulePagerDutyOAuthClientCredentialsConfigClientNameString=structtypenonrect=stringletcontext_="PagerDutyOAuthClientCredentialsConfigClientNameString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:"[\\p{L}\\p{N}\\p{Z}._-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PagerDutyOAuthClientCredentialsConfigClientNameString"jletto_json=simple_to_jsonto_valueendmoduleServiceNowOAuthClientCredentialsConfigClientNameString=structtypenonrect=stringletcontext_="ServiceNowOAuthClientCredentialsConfigClientNameString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(fun()->check_patterni~pattern:"[\\p{L}\\p{N}\\p{Z}._-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ServiceNowOAuthClientCredentialsConfigClientNameString"jletto_json=simple_to_jsonto_valueendmoduleGuid=structtypenonrect=string[@@ocaml.doc"Globally Unique Identifier (GUID) in standard format."]letcontext_="Guid"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:36)>>=(fun()->check_patterni~pattern:"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Guid"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Globally Unique Identifier (GUID) in standard format."]moduleRoleArn=structtypenonrect=string[@@ocaml.doc"AWS IAM role ARN."]letcontext_="RoleArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"arn:aws:iam::\\d{12}:role/[a-zA-Z0-9+=,.@_/-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RoleArn"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"AWS IAM role ARN."]moduleWebIdentityTokenAudienceList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"WebIdentityTokenAudienceList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleGitLabTokenType=structtypenonrect=|Personal|Group|Non_static_idofstringletmakei=iletto_string=function|Personal->"personal"|Group->"group"|Non_static_ids->sletof_string=function|"personal"->Personal|"group"->Group|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration GitLabTokenType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"GitLabTokenType"j)letto_json=simple_to_jsonto_valueendmoduleGithubRepoOwnerType=structtypenonrect=|Organization|User|Non_static_idofstringletmakei=iletto_string=function|Organization->"organization"|User->"user"|Non_static_ids->sletof_string=function|"organization"->Organization|"user"->User|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration GithubRepoOwnerType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"GithubRepoOwnerType"j)letto_json=simple_to_jsonto_valueendmoduleMCPServerAuthorizationMethod=structtypenonrect=|Oauth_client_credentials|Oauth_3lo|Api_key|Bearer_token|Non_static_idofstringletmakei=iletto_string=function|Oauth_client_credentials->"oauth-client-credentials"|Oauth_3lo->"oauth-3lo"|Api_key->"api-key"|Bearer_token->"bearer-token"|Non_static_ids->sletof_string=function|"oauth-client-credentials"->Oauth_client_credentials|"oauth-3lo"->Oauth_3lo|"api-key"->Api_key|"bearer-token"->Bearer_token|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration MCPServerAuthorizationMethod"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MCPServerAuthorizationMethod"j)letto_json=simple_to_jsonto_valueendmoduleRegisteredGrafanaServerDetailsEndpointString=structtypenonrect=stringletcontext_="RegisteredGrafanaServerDetailsEndpointString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"https://[a-zA-Z0-9.-]+(?::[0-9]+)?(?:/.*)?");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RegisteredGrafanaServerDetailsEndpointString"jletto_json=simple_to_jsonto_valueendmoduleDescription=structtypenonrect=string[@@ocaml.doc"Description field"]letcontext_="Description"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:1000)>>=(fun()->check_patterni~pattern:"[\\p{L}\\p{N}\\p{P}\\p{S}\\p{Z}]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Description"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Description field"]modulePagerDutyScopesList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"PagerDutyScopesList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceNowInstanceUrl=structtypenonrect=string[@@ocaml.doc"ServiceNow instance URL."]letcontext_="ServiceNowInstanceUrl"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"https://[a-zA-Z0-9]([a-zA-Z0-9.-]*[a-zA-Z0-9])\\.service-now\\.com/?")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ServiceNowInstanceUrl"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"ServiceNow instance URL."]moduleAssistantMessageBlock=structtypenonrect={text:String_.toption[@ocaml.doc"Text content from the assistant."];toolUse:Document.toption[@ocaml.doc"Tool use request from the assistant."]}letmake?text=fun?toolUse->fun()->{text;toolUse}letto_valuex=structure_to_value[("text",(Option.mapx.text~f:String_.to_value));("toolUse",(Option.mapx.toolUse~f:Document.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettoolUse=(Option.map~f:Document.of_xml)(Xml.childxml_arg0"toolUse")inlettext=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"text")inmake?toolUse?text()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettoolUse=field_mapjson__"toolUse"Document.of_jsoninlettext=field_mapjson__"text"String_.of_jsoninmake?toolUse?text()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A block of content in an assistant message."]moduleUserMessageBlock=structtypenonrect={text:String_.toption[@ocaml.doc"Text content from the user."];toolResult:Document.toption[@ocaml.doc"Tool execution result provided by the user."]}letmake?text=fun?toolResult->fun()->{text;toolResult}letto_valuex=structure_to_value[("text",(Option.mapx.text~f:String_.to_value));("toolResult",(Option.mapx.toolResult~f:Document.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettoolResult=(Option.map~f:Document.of_xml)(Xml.childxml_arg0"toolResult")inlettext=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"text")inmake?toolResult?text()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettoolResult=field_mapjson__"toolResult"Document.of_jsoninlettext=field_mapjson__"text"String_.of_jsoninmake?toolResult?text()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A block of content in a user message."]moduleAWSConfigurationAccountIdString=structtypenonrect=stringletcontext_="AWSConfigurationAccountIdString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"\\d{12}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AWSConfigurationAccountIdString"jletto_json=simple_to_jsonto_valueendmoduleMonitorAccountType=structtypenonrect=|Monitor|Non_static_idofstringletmakei=iletto_string=function|Monitor->"monitor"|Non_static_ids->sletof_string=function|"monitor"->Monitor|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration MonitorAccountType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MonitorAccountType"j)letto_json=simple_to_jsonto_valueendmoduleDynatraceResourceList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"DynatraceResourceList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMCPToolsList=structtypenonrect=MCPToolsListMemberString.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MCPToolsListMemberString.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:MCPToolsListMemberString.of_xml)letof_jsonj=list_of_json~kind:"MCPToolsList"~of_json:MCPToolsListMemberString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMCPServerGrafanaConfigurationEndpointString=structtypenonrect=stringletcontext_="MCPServerGrafanaConfigurationEndpointString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"https://[a-zA-Z0-9.-]+(?::[0-9]+)?(?:/.*)?");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerGrafanaConfigurationEndpointString"jletto_json=simple_to_jsonto_valueendmoduleMCPServerGrafanaConfigurationOrganizationIdString=structtypenonrect=stringletcontext_="MCPServerGrafanaConfigurationOrganizationIdString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[0-9]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerGrafanaConfigurationOrganizationIdString"jletto_json=simple_to_jsonto_valueendmoduleMCPServerNewRelicConfigurationAccountIdString=structtypenonrect=stringletcontext_="MCPServerNewRelicConfigurationAccountIdString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:6)>>=(fun()->check_patterni~pattern:"[0-9]+"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerNewRelicConfigurationAccountIdString"jletto_json=simple_to_jsonto_valueendmoduleMCPServerNewRelicConfigurationEndpointString=structtypenonrect=stringletcontext_="MCPServerNewRelicConfigurationEndpointString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"https://[a-zA-Z0-9.-]+(?::[0-9]+)?(?:/.*)?");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerNewRelicConfigurationEndpointString"jletto_json=simple_to_jsonto_valueendmoduleEmailAddress=structtypenonrect=string[@@ocaml.doc"Email address"]letcontext_="EmailAddress"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9._%+\\-]+@[a-zA-Z0-9.\\-]+\\.[a-zA-Z]{2,}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"EmailAddress"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Email address"]modulePagerDutyServicesList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"PagerDutyServicesList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceNowAuthenticationScopeList=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"ServiceNowAuthenticationScopeList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSlackConfigurationWorkspaceIdString=structtypenonrect=stringletcontext_="SlackConfigurationWorkspaceIdString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[TE][A-Z0-9]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SlackConfigurationWorkspaceIdString"jletto_json=simple_to_jsonto_valueendmoduleSlackTransmissionTarget=structtypenonrect={opsOncallTarget:SlackChannel.t[@ocaml.doc"Destination for On-call Agent (Ops1)"];opsSRETarget:SlackChannel.toption[@ocaml.doc"Destination for SRE Agent (Ops1.5)"]}letcontext_="SlackTransmissionTarget"letmake?opsSRETarget=fun~opsOncallTarget->fun()->{opsSRETarget;opsOncallTarget}letto_valuex=structure_to_value[("opsOncallTarget",(Some(SlackChannel.to_valuex.opsOncallTarget)));("opsSRETarget",(Option.mapx.opsSRETarget~f:SlackChannel.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letopsSRETarget=(Option.map~f:SlackChannel.of_xml)(Xml.childxml_arg0"opsSRETarget")inletopsOncallTarget=SlackChannel.of_xml(Xml.child_exn~context:context_xml_arg0"opsOncallTarget")inmake?opsSRETarget~opsOncallTarget()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letopsSRETarget=field_mapjson__"opsSRETarget"SlackChannel.of_jsoninletopsOncallTarget=field_map_exnjson__"opsOncallTarget"SlackChannel.of_jsoninmake?opsSRETarget~opsOncallTarget()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Defines Slack channels for different types of agent notifications."]moduleSourceAccountType=structtypenonrect=|Source|Non_static_idofstringletmakei=iletto_string=function|Source->"source"|Non_static_ids->sletof_string=function|"source"->Source|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration SourceAccountType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SourceAccountType"j)letto_json=simple_to_jsonto_valueendmoduleSourceAwsConfigurationAccountIdString=structtypenonrect=stringletcontext_="SourceAwsConfigurationAccountIdString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"\\d{12}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SourceAwsConfigurationAccountIdString"jletto_json=simple_to_jsonto_valueendmoduleSendMessageJsonDelta=structtypenonrect={partialJson:String_.toption[@ocaml.doc"Partial JSON string"]}letmake?partialJson=fun()->{partialJson}letto_valuex=structure_to_value[("partialJson",(Option.mapx.partialJson~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpartialJson=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"partialJson")inmake?partialJson()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpartialJson=field_mapjson__"partialJson"String_.of_jsoninmake?partialJson()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"JSON delta containing partial JSON"]moduleSendMessageTextDelta=structtypenonrect={text:String_.toption[@ocaml.doc"The text fragment"]}letmake?text=fun()->{text}letto_valuex=structure_to_value[("text",(Option.mapx.text~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettext=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"text")inmake?text()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettext=field_mapjson__"text"String_.of_jsoninmake?text()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Text delta containing a text fragment"]moduleInteger=structtypenonrect=intletmakei=iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for Integer"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleMCPServerAuthorizationDiscoveryConfig=structtypenonrect={returnToEndpoint:MCPServerAuthorizationDiscoveryConfigReturnToEndpointString.t[@ocaml.doc"The endpoint to return to after OAuth flow completes (must be AWS console domain)"]}letcontext_="MCPServerAuthorizationDiscoveryConfig"letmake~returnToEndpoint=fun()->{returnToEndpoint}letto_valuex=structure_to_value[("returnToEndpoint",(Some(MCPServerAuthorizationDiscoveryConfigReturnToEndpointString.to_valuex.returnToEndpoint)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letreturnToEndpoint=MCPServerAuthorizationDiscoveryConfigReturnToEndpointString.of_xml(Xml.child_exn~context:context_xml_arg0"returnToEndpoint")inmake~returnToEndpoint()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letreturnToEndpoint=field_map_exnjson__"returnToEndpoint"MCPServerAuthorizationDiscoveryConfigReturnToEndpointString.of_jsoninmake~returnToEndpoint()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Authorization discovery configuration for MCP server."]moduleDynatraceOAuthClientCredentialsConfig=structtypenonrect={clientName:DynatraceOAuthClientCredentialsConfigClientNameString.toption[@ocaml.doc"User friendly OAuth client name specified by end user."];clientId:ClientId.t[@ocaml.doc"OAuth client ID for authenticating with the service."];exchangeParameters:ExchangeParameters.toption[@ocaml.doc"OAuth token exchange parameters for authenticating with the service."];clientSecret:ClientSecret.t[@ocaml.doc"OAuth client secret for authenticating with the service."]}letcontext_="DynatraceOAuthClientCredentialsConfig"letmake?clientName=fun?exchangeParameters->fun~clientId->fun~clientSecret->fun()->{clientName;exchangeParameters;clientId;clientSecret}letto_valuex=structure_to_value[("clientName",(Option.mapx.clientName~f:DynatraceOAuthClientCredentialsConfigClientNameString.to_value));("clientId",(Some(ClientId.to_valuex.clientId)));("exchangeParameters",(Option.mapx.exchangeParameters~f:ExchangeParameters.to_value));("clientSecret",(Some(ClientSecret.to_valuex.clientSecret)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientSecret=ClientSecret.of_xml(Xml.child_exn~context:context_xml_arg0"clientSecret")inletexchangeParameters=(Option.map~f:ExchangeParameters.of_xml)(Xml.childxml_arg0"exchangeParameters")inletclientId=ClientId.of_xml(Xml.child_exn~context:context_xml_arg0"clientId")inletclientName=(Option.map~f:DynatraceOAuthClientCredentialsConfigClientNameString.of_xml)(Xml.childxml_arg0"clientName")inmake~clientSecret?exchangeParameters~clientId?clientName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientSecret=field_map_exnjson__"clientSecret"ClientSecret.of_jsoninletexchangeParameters=field_mapjson__"exchangeParameters"ExchangeParameters.of_jsoninletclientId=field_map_exnjson__"clientId"ClientId.of_jsoninletclientName=field_mapjson__"clientName"DynatraceOAuthClientCredentialsConfigClientNameString.of_jsoninmake~clientSecret?exchangeParameters~clientId?clientName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"OAuth client credentials configuration for Dynatrace."]moduleMCPServerAPIKeyConfig=structtypenonrect={apiKeyName:MCPServerAPIKeyConfigApiKeyNameString.t[@ocaml.doc"User friendly API key name specified by end user."];apiKeyValue:MCPServerAPIKeyConfigApiKeyValueString.t[@ocaml.doc"API key value for authenticating with the service."];apiKeyHeader:MCPServerAPIKeyConfigApiKeyHeaderString.t[@ocaml.doc"HTTP header name to send the API key in requests to the service."]}letcontext_="MCPServerAPIKeyConfig"letmake~apiKeyName=fun~apiKeyValue->fun~apiKeyHeader->fun()->{apiKeyName;apiKeyValue;apiKeyHeader}letto_valuex=structure_to_value[("apiKeyName",(Some(MCPServerAPIKeyConfigApiKeyNameString.to_valuex.apiKeyName)));("apiKeyValue",(Some(MCPServerAPIKeyConfigApiKeyValueString.to_valuex.apiKeyValue)));("apiKeyHeader",(Some(MCPServerAPIKeyConfigApiKeyHeaderString.to_valuex.apiKeyHeader)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapiKeyHeader=MCPServerAPIKeyConfigApiKeyHeaderString.of_xml(Xml.child_exn~context:context_xml_arg0"apiKeyHeader")inletapiKeyValue=MCPServerAPIKeyConfigApiKeyValueString.of_xml(Xml.child_exn~context:context_xml_arg0"apiKeyValue")inletapiKeyName=MCPServerAPIKeyConfigApiKeyNameString.of_xml(Xml.child_exn~context:context_xml_arg0"apiKeyName")inmake~apiKeyHeader~apiKeyValue~apiKeyName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapiKeyHeader=field_map_exnjson__"apiKeyHeader"MCPServerAPIKeyConfigApiKeyHeaderString.of_jsoninletapiKeyValue=field_map_exnjson__"apiKeyValue"MCPServerAPIKeyConfigApiKeyValueString.of_jsoninletapiKeyName=field_map_exnjson__"apiKeyName"MCPServerAPIKeyConfigApiKeyNameString.of_jsoninmake~apiKeyHeader~apiKeyValue~apiKeyName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"API key configuration for MCP server."]moduleMCPServerBearerTokenConfig=structtypenonrect={tokenName:MCPServerBearerTokenConfigTokenNameString.t[@ocaml.doc"User friendly bearer token name specified by end user."];tokenValue:MCPServerBearerTokenConfigTokenValueString.t[@ocaml.doc"Bearer token value in alphanumeric for authenticating with the service."];authorizationHeader:MCPServerBearerTokenConfigAuthorizationHeaderString.toption[@ocaml.doc"HTTP header name to send the bearer token in requests to the service. Defaults to 'Authorization' per RFC 6750."]}letcontext_="MCPServerBearerTokenConfig"letmake?authorizationHeader=fun~tokenName->fun~tokenValue->fun()->{authorizationHeader;tokenName;tokenValue}letto_valuex=structure_to_value[("tokenName",(Some(MCPServerBearerTokenConfigTokenNameString.to_valuex.tokenName)));("tokenValue",(Some(MCPServerBearerTokenConfigTokenValueString.to_valuex.tokenValue)));("authorizationHeader",(Option.mapx.authorizationHeader~f:MCPServerBearerTokenConfigAuthorizationHeaderString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthorizationHeader=(Option.map~f:MCPServerBearerTokenConfigAuthorizationHeaderString.of_xml)(Xml.childxml_arg0"authorizationHeader")inlettokenValue=MCPServerBearerTokenConfigTokenValueString.of_xml(Xml.child_exn~context:context_xml_arg0"tokenValue")inlettokenName=MCPServerBearerTokenConfigTokenNameString.of_xml(Xml.child_exn~context:context_xml_arg0"tokenName")inmake?authorizationHeader~tokenValue~tokenName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthorizationHeader=field_mapjson__"authorizationHeader"MCPServerBearerTokenConfigAuthorizationHeaderString.of_jsoninlettokenValue=field_map_exnjson__"tokenValue"MCPServerBearerTokenConfigTokenValueString.of_jsoninlettokenName=field_map_exnjson__"tokenName"MCPServerBearerTokenConfigTokenNameString.of_jsoninmake?authorizationHeader~tokenValue~tokenName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Bearer token configuration for MCP server (RFC 6750)."]moduleMCPServerOAuth3LOConfig=structtypenonrect={clientName:MCPServerOAuth3LOConfigClientNameString.toption[@ocaml.doc"User friendly OAuth client name specified by end user."];clientId:ClientId.t[@ocaml.doc"OAuth client ID for authenticating with the service."];exchangeParameters:ExchangeParameters.toption[@ocaml.doc"OAuth token exchange parameters for authenticating with the service."];returnToEndpoint:MCPServerOAuth3LOConfigReturnToEndpointString.t[@ocaml.doc"The endpoint to return to after OAuth flow completes (must be AWS console domain)"];authorizationUrl:MCPServerOAuth3LOConfigAuthorizationUrlString.t[@ocaml.doc"OAuth authorization URL for 3LO authentication."];exchangeUrl:MCPServerOAuth3LOConfigExchangeUrlString.t[@ocaml.doc"OAuth token exchange URL."];clientSecret:ClientSecret.toption[@ocaml.doc"OAuth client secret for authenticating with the service. Required for confidential clients or when PKCE is not supported. Optional for public clients using PKCE."];supportCodeChallenge:Boolean.toption[@ocaml.doc"Whether the service supports PKCE (Proof Key for Code Exchange) for enhanced security during the OAuth flow."];scopes:Scopes.toption[@ocaml.doc"OAuth scopes for 3LO authentication. The service will always request scope offline_access."]}letcontext_="MCPServerOAuth3LOConfig"letmake?clientName=fun?exchangeParameters->fun?clientSecret->fun?supportCodeChallenge->fun?scopes->fun~clientId->fun~returnToEndpoint->fun~authorizationUrl->fun~exchangeUrl->fun()->{clientName;exchangeParameters;clientSecret;supportCodeChallenge;scopes;clientId;returnToEndpoint;authorizationUrl;exchangeUrl}letto_valuex=structure_to_value[("clientName",(Option.mapx.clientName~f:MCPServerOAuth3LOConfigClientNameString.to_value));("clientId",(Some(ClientId.to_valuex.clientId)));("exchangeParameters",(Option.mapx.exchangeParameters~f:ExchangeParameters.to_value));("returnToEndpoint",(Some(MCPServerOAuth3LOConfigReturnToEndpointString.to_valuex.returnToEndpoint)));("authorizationUrl",(Some(MCPServerOAuth3LOConfigAuthorizationUrlString.to_valuex.authorizationUrl)));("exchangeUrl",(Some(MCPServerOAuth3LOConfigExchangeUrlString.to_valuex.exchangeUrl)));("clientSecret",(Option.mapx.clientSecret~f:ClientSecret.to_value));("supportCodeChallenge",(Option.mapx.supportCodeChallenge~f:Boolean.to_value));("scopes",(Option.mapx.scopes~f:Scopes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letscopes=(Option.map~f:Scopes.of_xml)(Xml.childxml_arg0"scopes")inletsupportCodeChallenge=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"supportCodeChallenge")inletclientSecret=(Option.map~f:ClientSecret.of_xml)(Xml.childxml_arg0"clientSecret")inletexchangeUrl=MCPServerOAuth3LOConfigExchangeUrlString.of_xml(Xml.child_exn~context:context_xml_arg0"exchangeUrl")inletauthorizationUrl=MCPServerOAuth3LOConfigAuthorizationUrlString.of_xml(Xml.child_exn~context:context_xml_arg0"authorizationUrl")inletreturnToEndpoint=MCPServerOAuth3LOConfigReturnToEndpointString.of_xml(Xml.child_exn~context:context_xml_arg0"returnToEndpoint")inletexchangeParameters=(Option.map~f:ExchangeParameters.of_xml)(Xml.childxml_arg0"exchangeParameters")inletclientId=ClientId.of_xml(Xml.child_exn~context:context_xml_arg0"clientId")inletclientName=(Option.map~f:MCPServerOAuth3LOConfigClientNameString.of_xml)(Xml.childxml_arg0"clientName")inmake?scopes?supportCodeChallenge?clientSecret~exchangeUrl~authorizationUrl~returnToEndpoint?exchangeParameters~clientId?clientName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letscopes=field_mapjson__"scopes"Scopes.of_jsoninletsupportCodeChallenge=field_mapjson__"supportCodeChallenge"Boolean.of_jsoninletclientSecret=field_mapjson__"clientSecret"ClientSecret.of_jsoninletexchangeUrl=field_map_exnjson__"exchangeUrl"MCPServerOAuth3LOConfigExchangeUrlString.of_jsoninletauthorizationUrl=field_map_exnjson__"authorizationUrl"MCPServerOAuth3LOConfigAuthorizationUrlString.of_jsoninletreturnToEndpoint=field_map_exnjson__"returnToEndpoint"MCPServerOAuth3LOConfigReturnToEndpointString.of_jsoninletexchangeParameters=field_mapjson__"exchangeParameters"ExchangeParameters.of_jsoninletclientId=field_map_exnjson__"clientId"ClientId.of_jsoninletclientName=field_mapjson__"clientName"MCPServerOAuth3LOConfigClientNameString.of_jsoninmake?scopes?supportCodeChallenge?clientSecret~exchangeUrl~authorizationUrl~returnToEndpoint?exchangeParameters~clientId?clientName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"OAuth 3-legged authorization configuration for MCP server."]moduleMCPServerOAuthClientCredentialsConfig=structtypenonrect={clientName:MCPServerOAuthClientCredentialsConfigClientNameString.toption[@ocaml.doc"User friendly OAuth client name specified by end user."];clientId:ClientId.t[@ocaml.doc"OAuth client ID for authenticating with the service."];exchangeParameters:ExchangeParameters.toption[@ocaml.doc"OAuth token exchange parameters for authenticating with the service."];clientSecret:ClientSecret.t[@ocaml.doc"OAuth client secret for authenticating with the service."];exchangeUrl:MCPServerOAuthClientCredentialsConfigExchangeUrlString.t[@ocaml.doc"OAuth token exchange URL."];scopes:Scopes.toption[@ocaml.doc"OAuth scopes for 3LO authentication. The service will always request scope offline_access."]}letcontext_="MCPServerOAuthClientCredentialsConfig"letmake?clientName=fun?exchangeParameters->fun?scopes->fun~clientId->fun~clientSecret->fun~exchangeUrl->fun()->{clientName;exchangeParameters;scopes;clientId;clientSecret;exchangeUrl}letto_valuex=structure_to_value[("clientName",(Option.mapx.clientName~f:MCPServerOAuthClientCredentialsConfigClientNameString.to_value));("clientId",(Some(ClientId.to_valuex.clientId)));("exchangeParameters",(Option.mapx.exchangeParameters~f:ExchangeParameters.to_value));("clientSecret",(Some(ClientSecret.to_valuex.clientSecret)));("exchangeUrl",(Some(MCPServerOAuthClientCredentialsConfigExchangeUrlString.to_valuex.exchangeUrl)));("scopes",(Option.mapx.scopes~f:Scopes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letscopes=(Option.map~f:Scopes.of_xml)(Xml.childxml_arg0"scopes")inletexchangeUrl=MCPServerOAuthClientCredentialsConfigExchangeUrlString.of_xml(Xml.child_exn~context:context_xml_arg0"exchangeUrl")inletclientSecret=ClientSecret.of_xml(Xml.child_exn~context:context_xml_arg0"clientSecret")inletexchangeParameters=(Option.map~f:ExchangeParameters.of_xml)(Xml.childxml_arg0"exchangeParameters")inletclientId=ClientId.of_xml(Xml.child_exn~context:context_xml_arg0"clientId")inletclientName=(Option.map~f:MCPServerOAuthClientCredentialsConfigClientNameString.of_xml)(Xml.childxml_arg0"clientName")inmake?scopes~exchangeUrl~clientSecret?exchangeParameters~clientId?clientName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letscopes=field_mapjson__"scopes"Scopes.of_jsoninletexchangeUrl=field_map_exnjson__"exchangeUrl"MCPServerOAuthClientCredentialsConfigExchangeUrlString.of_jsoninletclientSecret=field_map_exnjson__"clientSecret"ClientSecret.of_jsoninletexchangeParameters=field_mapjson__"exchangeParameters"ExchangeParameters.of_jsoninletclientId=field_map_exnjson__"clientId"ClientId.of_jsoninletclientName=field_mapjson__"clientName"MCPServerOAuthClientCredentialsConfigClientNameString.of_jsoninmake?scopes~exchangeUrl~clientSecret?exchangeParameters~clientId?clientName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"OAuth client credentials configuration for MCP server."]moduleNewRelicApiKeyConfig=structtypenonrect={apiKey:NewRelicApiKeyConfigApiKeyString.t[@ocaml.doc"New Relic User API Key"];accountId:NewRelicApiKeyConfigAccountIdString.t[@ocaml.doc"New Relic Account ID"];region:NewRelicRegion.t[@ocaml.doc"New Relic region (US or EU)"];applicationIds:NewRelicApplicationIds.toption[@ocaml.doc"List of monitored APM application IDs in New Relic"];entityGuids:NewRelicEntityGuids.toption[@ocaml.doc"List of globally unique IDs for New Relic resources (apps, hosts, services)"];alertPolicyIds:NewRelicAlertPolicyIds.toption[@ocaml.doc"List of alert policy IDs grouping related conditions"]}letcontext_="NewRelicApiKeyConfig"letmake?applicationIds=fun?entityGuids->fun?alertPolicyIds->fun~apiKey->fun~accountId->fun~region->fun()->{applicationIds;entityGuids;alertPolicyIds;apiKey;accountId;region}letto_valuex=structure_to_value[("apiKey",(Some(NewRelicApiKeyConfigApiKeyString.to_valuex.apiKey)));("accountId",(Some(NewRelicApiKeyConfigAccountIdString.to_valuex.accountId)));("region",(Some(NewRelicRegion.to_valuex.region)));("applicationIds",(Option.mapx.applicationIds~f:NewRelicApplicationIds.to_value));("entityGuids",(Option.mapx.entityGuids~f:NewRelicEntityGuids.to_value));("alertPolicyIds",(Option.mapx.alertPolicyIds~f:NewRelicAlertPolicyIds.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letalertPolicyIds=(Option.map~f:NewRelicAlertPolicyIds.of_xml)(Xml.childxml_arg0"alertPolicyIds")inletentityGuids=(Option.map~f:NewRelicEntityGuids.of_xml)(Xml.childxml_arg0"entityGuids")inletapplicationIds=(Option.map~f:NewRelicApplicationIds.of_xml)(Xml.childxml_arg0"applicationIds")inletregion=NewRelicRegion.of_xml(Xml.child_exn~context:context_xml_arg0"region")inletaccountId=NewRelicApiKeyConfigAccountIdString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inletapiKey=NewRelicApiKeyConfigApiKeyString.of_xml(Xml.child_exn~context:context_xml_arg0"apiKey")inmake?alertPolicyIds?entityGuids?applicationIds~region~accountId~apiKey()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letalertPolicyIds=field_mapjson__"alertPolicyIds"NewRelicAlertPolicyIds.of_jsoninletentityGuids=field_mapjson__"entityGuids"NewRelicEntityGuids.of_jsoninletapplicationIds=field_mapjson__"applicationIds"NewRelicApplicationIds.of_jsoninletregion=field_map_exnjson__"region"NewRelicRegion.of_jsoninletaccountId=field_map_exnjson__"accountId"NewRelicApiKeyConfigAccountIdString.of_jsoninletapiKey=field_map_exnjson__"apiKey"NewRelicApiKeyConfigApiKeyString.of_jsoninmake?alertPolicyIds?entityGuids?applicationIds~region~accountId~apiKey()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"API key authentication configuration for New Relic service."]modulePagerDutyOAuthClientCredentialsConfig=structtypenonrect={clientName:PagerDutyOAuthClientCredentialsConfigClientNameString.toption[@ocaml.doc"User friendly OAuth client name specified by end user."];clientId:ClientId.t[@ocaml.doc"OAuth client ID for authenticating with the service."];exchangeParameters:ExchangeParameters.toption[@ocaml.doc"OAuth token exchange parameters for authenticating with the service."];clientSecret:ClientSecret.t[@ocaml.doc"OAuth client secret for authenticating with the service."]}letcontext_="PagerDutyOAuthClientCredentialsConfig"letmake?clientName=fun?exchangeParameters->fun~clientId->fun~clientSecret->fun()->{clientName;exchangeParameters;clientId;clientSecret}letto_valuex=structure_to_value[("clientName",(Option.mapx.clientName~f:PagerDutyOAuthClientCredentialsConfigClientNameString.to_value));("clientId",(Some(ClientId.to_valuex.clientId)));("exchangeParameters",(Option.mapx.exchangeParameters~f:ExchangeParameters.to_value));("clientSecret",(Some(ClientSecret.to_valuex.clientSecret)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientSecret=ClientSecret.of_xml(Xml.child_exn~context:context_xml_arg0"clientSecret")inletexchangeParameters=(Option.map~f:ExchangeParameters.of_xml)(Xml.childxml_arg0"exchangeParameters")inletclientId=ClientId.of_xml(Xml.child_exn~context:context_xml_arg0"clientId")inletclientName=(Option.map~f:PagerDutyOAuthClientCredentialsConfigClientNameString.of_xml)(Xml.childxml_arg0"clientName")inmake~clientSecret?exchangeParameters~clientId?clientName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientSecret=field_map_exnjson__"clientSecret"ClientSecret.of_jsoninletexchangeParameters=field_mapjson__"exchangeParameters"ExchangeParameters.of_jsoninletclientId=field_map_exnjson__"clientId"ClientId.of_jsoninletclientName=field_mapjson__"clientName"PagerDutyOAuthClientCredentialsConfigClientNameString.of_jsoninmake~clientSecret?exchangeParameters~clientId?clientName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"OAuth client credentials configuration for PagerDuty."]moduleServiceNowOAuthClientCredentialsConfig=structtypenonrect={clientName:ServiceNowOAuthClientCredentialsConfigClientNameString.toption[@ocaml.doc"User friendly OAuth client name specified by end user."];clientId:ClientId.t[@ocaml.doc"OAuth client ID for authenticating with the service."];exchangeParameters:ExchangeParameters.toption[@ocaml.doc"OAuth token exchange parameters for authenticating with the service."];clientSecret:ClientSecret.t[@ocaml.doc"OAuth client secret for authenticating with the service."]}letcontext_="ServiceNowOAuthClientCredentialsConfig"letmake?clientName=fun?exchangeParameters->fun~clientId->fun~clientSecret->fun()->{clientName;exchangeParameters;clientId;clientSecret}letto_valuex=structure_to_value[("clientName",(Option.mapx.clientName~f:ServiceNowOAuthClientCredentialsConfigClientNameString.to_value));("clientId",(Some(ClientId.to_valuex.clientId)));("exchangeParameters",(Option.mapx.exchangeParameters~f:ExchangeParameters.to_value));("clientSecret",(Some(ClientSecret.to_valuex.clientSecret)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientSecret=ClientSecret.of_xml(Xml.child_exn~context:context_xml_arg0"clientSecret")inletexchangeParameters=(Option.map~f:ExchangeParameters.of_xml)(Xml.childxml_arg0"exchangeParameters")inletclientId=ClientId.of_xml(Xml.child_exn~context:context_xml_arg0"clientId")inletclientName=(Option.map~f:ServiceNowOAuthClientCredentialsConfigClientNameString.of_xml)(Xml.childxml_arg0"clientName")inmake~clientSecret?exchangeParameters~clientId?clientName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientSecret=field_map_exnjson__"clientSecret"ClientSecret.of_jsoninletexchangeParameters=field_mapjson__"exchangeParameters"ExchangeParameters.of_jsoninletclientId=field_map_exnjson__"clientId"ClientId.of_jsoninletclientName=field_mapjson__"clientName"ServiceNowOAuthClientCredentialsConfigClientNameString.of_jsoninmake~clientSecret?exchangeParameters~clientId?clientName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"OAuth client credentials configuration for ServiceNow."]moduleRegisteredAzureDevOpsServiceDetails=structtypenonrect={organizationName:String_.toption[@ocaml.doc"The Azure DevOps Organization name associated with the service."]}letmake?organizationName=fun()->{organizationName}letto_valuex=structure_to_value[("organizationName",(Option.mapx.organizationName~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letorganizationName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"organizationName")inmake?organizationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letorganizationName=field_mapjson__"organizationName"String_.of_jsoninmake?organizationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details specific to a registered Azure DevOps service."]moduleRegisteredAzureIdentityDetails=structtypenonrect={tenantId:Guid.t[@ocaml.doc"The Azure Active Directory tenant ID for the identity."];clientId:Guid.t[@ocaml.doc"The client ID of the service principal or managed identity used for authentication."];webIdentityRoleArn:RoleArn.t[@ocaml.doc"The role ARN to be assumed by DevOps Agent for requesting Web Identity Token."];webIdentityTokenAudiences:WebIdentityTokenAudienceList.t[@ocaml.doc"The audiences for the Web Identity Token."]}letcontext_="RegisteredAzureIdentityDetails"letmake~tenantId=fun~clientId->fun~webIdentityRoleArn->fun~webIdentityTokenAudiences->fun()->{tenantId;clientId;webIdentityRoleArn;webIdentityTokenAudiences}letto_valuex=structure_to_value[("tenantId",(Some(Guid.to_valuex.tenantId)));("clientId",(Some(Guid.to_valuex.clientId)));("webIdentityRoleArn",(Some(RoleArn.to_valuex.webIdentityRoleArn)));("webIdentityTokenAudiences",(Some(WebIdentityTokenAudienceList.to_valuex.webIdentityTokenAudiences)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwebIdentityTokenAudiences=WebIdentityTokenAudienceList.of_xml(Xml.child_exn~context:context_xml_arg0"webIdentityTokenAudiences")inletwebIdentityRoleArn=RoleArn.of_xml(Xml.child_exn~context:context_xml_arg0"webIdentityRoleArn")inletclientId=Guid.of_xml(Xml.child_exn~context:context_xml_arg0"clientId")inlettenantId=Guid.of_xml(Xml.child_exn~context:context_xml_arg0"tenantId")inmake~webIdentityTokenAudiences~webIdentityRoleArn~clientId~tenantId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwebIdentityTokenAudiences=field_map_exnjson__"webIdentityTokenAudiences"WebIdentityTokenAudienceList.of_jsoninletwebIdentityRoleArn=field_map_exnjson__"webIdentityRoleArn"RoleArn.of_jsoninletclientId=field_map_exnjson__"clientId"Guid.of_jsoninlettenantId=field_map_exnjson__"tenantId"Guid.of_jsoninmake~webIdentityTokenAudiences~webIdentityRoleArn~clientId~tenantId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details specific to a registered Azure identity using AWS Outbound Identity Federation."]moduleRegisteredGitLabServiceDetails=structtypenonrect={targetUrl:String_.toption[@ocaml.doc"The GitLab instance URL."];tokenType:GitLabTokenType.toption[@ocaml.doc"Type of GitLab access token"];groupId:String_.toption[@ocaml.doc"Optional GitLab group ID for group-level access tokens"]}letmake?targetUrl=fun?tokenType->fun?groupId->fun()->{targetUrl;tokenType;groupId}letto_valuex=structure_to_value[("targetUrl",(Option.mapx.targetUrl~f:String_.to_value));("tokenType",(Option.mapx.tokenType~f:GitLabTokenType.to_value));("groupId",(Option.mapx.groupId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroupId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"groupId")inlettokenType=(Option.map~f:GitLabTokenType.of_xml)(Xml.childxml_arg0"tokenType")inlettargetUrl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"targetUrl")inmake?groupId?tokenType?targetUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroupId=field_mapjson__"groupId"String_.of_jsoninlettokenType=field_mapjson__"tokenType"GitLabTokenType.of_jsoninlettargetUrl=field_mapjson__"targetUrl"String_.of_jsoninmake?groupId?tokenType?targetUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details specific to a registered GitLab instance."]moduleRegisteredGithubServiceDetails=structtypenonrect={owner:String_.toption[@ocaml.doc"The GitHub repository owner name."];ownerType:GithubRepoOwnerType.toption[@ocaml.doc"The GitHub repository owner type."];targetUrl:String_.toption[@ocaml.doc"The GitHub Enterprise Server instance URL (absent for github.com)."]}letmake?owner=fun?ownerType->fun?targetUrl->fun()->{owner;ownerType;targetUrl}letto_valuex=structure_to_value[("owner",(Option.mapx.owner~f:String_.to_value));("ownerType",(Option.mapx.ownerType~f:GithubRepoOwnerType.to_value));("targetUrl",(Option.mapx.targetUrl~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettargetUrl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"targetUrl")inletownerType=(Option.map~f:GithubRepoOwnerType.of_xml)(Xml.childxml_arg0"ownerType")inletowner=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"owner")inmake?targetUrl?ownerType?owner()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettargetUrl=field_mapjson__"targetUrl"String_.of_jsoninletownerType=field_mapjson__"ownerType"GithubRepoOwnerType.of_jsoninletowner=field_mapjson__"owner"String_.of_jsoninmake?targetUrl?ownerType?owner()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details specific to a registered GitHub service."]moduleRegisteredGrafanaServerDetails=structtypenonrect={endpoint:RegisteredGrafanaServerDetailsEndpointString.toption[@ocaml.doc"Grafana instance URL (e.g., https://your-instance.grafana.net)"];authorizationMethod:MCPServerAuthorizationMethod.toption[@ocaml.doc"The authz method used by the MCP server."]}letmake?endpoint=fun?authorizationMethod->fun()->{endpoint;authorizationMethod}letto_valuex=structure_to_value[("endpoint",(Option.mapx.endpoint~f:RegisteredGrafanaServerDetailsEndpointString.to_value));("authorizationMethod",(Option.mapx.authorizationMethod~f:MCPServerAuthorizationMethod.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthorizationMethod=(Option.map~f:MCPServerAuthorizationMethod.of_xml)(Xml.childxml_arg0"authorizationMethod")inletendpoint=(Option.map~f:RegisteredGrafanaServerDetailsEndpointString.of_xml)(Xml.childxml_arg0"endpoint")inmake?authorizationMethod?endpoint()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthorizationMethod=field_mapjson__"authorizationMethod"MCPServerAuthorizationMethod.of_jsoninletendpoint=field_mapjson__"endpoint"RegisteredGrafanaServerDetailsEndpointString.of_jsoninmake?authorizationMethod?endpoint()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details specific to a registered Grafana server, used by the built-in MCP server."]moduleRegisteredMCPServerDetails=structtypenonrect={name:String_.toption[@ocaml.doc"The MCP server name."];endpoint:String_.toption[@ocaml.doc"The MCP server endpoint URL."];authorizationMethod:MCPServerAuthorizationMethod.toption[@ocaml.doc"The MCP server uses this authorization method."];description:Description.toption[@ocaml.doc"Optional description for the MCP server."];apiKeyHeader:String_.toption[@ocaml.doc"If the MCP server uses API key authentication, these details are provided."]}letmake?name=fun?endpoint->fun?authorizationMethod->fun?description->fun?apiKeyHeader->fun()->{name;endpoint;authorizationMethod;description;apiKeyHeader}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:String_.to_value));("endpoint",(Option.mapx.endpoint~f:String_.to_value));("authorizationMethod",(Option.mapx.authorizationMethod~f:MCPServerAuthorizationMethod.to_value));("description",(Option.mapx.description~f:Description.to_value));("apiKeyHeader",(Option.mapx.apiKeyHeader~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapiKeyHeader=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"apiKeyHeader")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"description")inletauthorizationMethod=(Option.map~f:MCPServerAuthorizationMethod.of_xml)(Xml.childxml_arg0"authorizationMethod")inletendpoint=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"endpoint")inletname=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"name")inmake?apiKeyHeader?description?authorizationMethod?endpoint?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapiKeyHeader=field_mapjson__"apiKeyHeader"String_.of_jsoninletdescription=field_mapjson__"description"Description.of_jsoninletauthorizationMethod=field_mapjson__"authorizationMethod"MCPServerAuthorizationMethod.of_jsoninletendpoint=field_mapjson__"endpoint"String_.of_jsoninletname=field_mapjson__"name"String_.of_jsoninmake?apiKeyHeader?description?authorizationMethod?endpoint?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details specific to a registered MCP (Model Context Protocol) server."]moduleRegisteredNewRelicDetails=structtypenonrect={accountId:String_.toption[@ocaml.doc"The NewRelic account ID."];region:NewRelicRegion.toption[@ocaml.doc"The NewRelic region (determines API endpoint)."];description:Description.toption[@ocaml.doc"Optional user description."]}letmake?accountId=fun?region->fun?description->fun()->{accountId;region;description}letto_valuex=structure_to_value[("accountId",(Option.mapx.accountId~f:String_.to_value));("region",(Option.mapx.region~f:NewRelicRegion.to_value));("description",(Option.mapx.description~f:Description.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"description")inletregion=(Option.map~f:NewRelicRegion.of_xml)(Xml.childxml_arg0"region")inletaccountId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"accountId")inmake?description?region?accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdescription=field_mapjson__"description"Description.of_jsoninletregion=field_mapjson__"region"NewRelicRegion.of_jsoninletaccountId=field_mapjson__"accountId"String_.of_jsoninmake?description?region?accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details specific to a registered NewRelic instance."]moduleRegisteredPagerDutyDetails=structtypenonrect={scopes:PagerDutyScopesList.toption[@ocaml.doc"The scopes that were assigned to the service"]}letmake?scopes=fun()->{scopes}letto_valuex=structure_to_value[("scopes",(Option.mapx.scopes~f:PagerDutyScopesList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letscopes=(Option.map~f:PagerDutyScopesList.of_xml)(Xml.childxml_arg0"scopes")inmake?scopes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letscopes=field_mapjson__"scopes"PagerDutyScopesList.of_jsoninmake?scopes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details specific to a registered PagerDuty service."]moduleRegisteredServiceNowDetails=structtypenonrect={instanceUrl:ServiceNowInstanceUrl.toption[@ocaml.doc"The ServiceNow instance url"]}letmake?instanceUrl=fun()->{instanceUrl}letto_valuex=structure_to_value[("instanceUrl",(Option.mapx.instanceUrl~f:ServiceNowInstanceUrl.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinstanceUrl=(Option.map~f:ServiceNowInstanceUrl.of_xml)(Xml.childxml_arg0"instanceUrl")inmake?instanceUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinstanceUrl=field_mapjson__"instanceUrl"ServiceNowInstanceUrl.of_jsoninmake?instanceUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details specific to a registered ServiceNow instance."]moduleRegisteredSlackServiceDetails=structtypenonrect={teamId:String_.toption[@ocaml.doc"The Slack team ID."];teamName:String_.toption[@ocaml.doc"The Slack team name."]}letmake?teamId=fun?teamName->fun()->{teamId;teamName}letto_valuex=structure_to_value[("teamId",(Option.mapx.teamId~f:String_.to_value));("teamName",(Option.mapx.teamName~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letteamName=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"teamName")inletteamId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"teamId")inmake?teamName?teamId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letteamName=field_mapjson__"teamName"String_.of_jsoninletteamId=field_mapjson__"teamId"String_.of_jsoninmake?teamName?teamId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details specific to a registered Slack workspace."]moduleRecommendationContentSpecString=structtypenonrect=stringletcontext_="RecommendationContentSpecString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100000)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RecommendationContentSpecString"jletto_json=simple_to_jsonto_valueendmoduleAssistantMessage=structtypenonrect=AssistantMessageBlock.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AssistantMessageBlock.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:AssistantMessageBlock.of_xml)letof_jsonj=list_of_json~kind:"AssistantMessage"~of_json:AssistantMessageBlock.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUserMessage=structtypenonrect=UserMessageBlock.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:UserMessageBlock.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:UserMessageBlock.of_xml)letof_jsonj=list_of_json~kind:"UserMessage"~of_json:UserMessageBlock.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUserType=structtypenonrect=|IAM|IDC|IDP|Non_static_idofstringletmakei=iletto_string=function|IAM->"IAM"|IDC->"IDC"|IDP->"IDP"|Non_static_ids->sletof_string=function|"IAM"->IAM|"IDC"->IDC|"IDP"->IDP|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration UserType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"UserType"j)letto_json=simple_to_jsonto_valueendmoduleSchedulerState=structtypenonrect=|ENABLED|DISABLED|Non_static_idofstringletmakei=iletto_string=function|ENABLED->"ENABLED"|DISABLED->"DISABLED"|Non_static_ids->sletof_string=function|"ENABLED"->ENABLED|"DISABLED"->DISABLED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration SchedulerState"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SchedulerState"j)letto_json=simple_to_jsonto_valueendmoduleAWSConfiguration=structtypenonrect={assumableRoleArn:RoleArn.t[@ocaml.doc"Role ARN to be assumed by AIDevOps to operate on behalf of customer."];accountId:AWSConfigurationAccountIdString.t[@ocaml.doc"AWS Account Id corresponding to provided resources."];accountType:MonitorAccountType.t[@ocaml.doc"Account Type 'monitor' for AIDevOps monitoring."]}letcontext_="AWSConfiguration"letmake~assumableRoleArn=fun~accountId->fun~accountType->fun()->{assumableRoleArn;accountId;accountType}letto_valuex=structure_to_value[("assumableRoleArn",(Some(RoleArn.to_valuex.assumableRoleArn)));("accountId",(Some(AWSConfigurationAccountIdString.to_valuex.accountId)));("accountType",(Some(MonitorAccountType.to_valuex.accountType)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccountType=MonitorAccountType.of_xml(Xml.child_exn~context:context_xml_arg0"accountType")inletaccountId=AWSConfigurationAccountIdString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inletassumableRoleArn=RoleArn.of_xml(Xml.child_exn~context:context_xml_arg0"assumableRoleArn")inmake~accountType~accountId~assumableRoleArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccountType=field_map_exnjson__"accountType"MonitorAccountType.of_jsoninletaccountId=field_map_exnjson__"accountId"AWSConfigurationAccountIdString.of_jsoninletassumableRoleArn=field_map_exnjson__"assumableRoleArn"RoleArn.of_jsoninmake~accountType~accountId~assumableRoleArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for AWS monitor account integration, allowing AIDevOps to monitor AWS resources."]moduleAzureConfiguration=structtypenonrect={subscriptionId:String_.t[@ocaml.doc"Azure subscription ID corresponding to provided resources."]}letcontext_="AzureConfiguration"letmake~subscriptionId=fun()->{subscriptionId}letto_valuex=structure_to_value[("subscriptionId",(Some(String_.to_valuex.subscriptionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsubscriptionId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"subscriptionId")inmake~subscriptionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsubscriptionId=field_map_exnjson__"subscriptionId"String_.of_jsoninmake~subscriptionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for Azure subscription integration."]moduleAzureDevOpsConfiguration=structtypenonrect={organizationName:String_.t[@ocaml.doc"Azure DevOps organization name."];projectId:String_.t[@ocaml.doc"Azure DevOps project ID."];projectName:String_.t[@ocaml.doc"Azure DevOps project name."]}letcontext_="AzureDevOpsConfiguration"letmake~organizationName=fun~projectId->fun~projectName->fun()->{organizationName;projectId;projectName}letto_valuex=structure_to_value[("organizationName",(Some(String_.to_valuex.organizationName)));("projectId",(Some(String_.to_valuex.projectId)));("projectName",(Some(String_.to_valuex.projectName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprojectName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"projectName")inletprojectId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"projectId")inletorganizationName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"organizationName")inmake~projectName~projectId~organizationName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprojectName=field_map_exnjson__"projectName"String_.of_jsoninletprojectId=field_map_exnjson__"projectId"String_.of_jsoninletorganizationName=field_map_exnjson__"organizationName"String_.of_jsoninmake~projectName~projectId~organizationName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for Azure DevOps project integration."]moduleDynatraceConfiguration=structtypenonrect={envId:String_.t[@ocaml.doc"Dynatrace environment id"];resources:DynatraceResourceList.toption[@ocaml.doc"List of Dynatrace resources to monitor"]}letcontext_="DynatraceConfiguration"letmake?resources=fun~envId->fun()->{resources;envId}letto_valuex=structure_to_value[("envId",(Some(String_.to_valuex.envId)));("resources",(Option.mapx.resources~f:DynatraceResourceList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresources=(Option.map~f:DynatraceResourceList.of_xml)(Xml.childxml_arg0"resources")inletenvId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"envId")inmake?resources~envId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresources=field_mapjson__"resources"DynatraceResourceList.of_jsoninletenvId=field_map_exnjson__"envId"String_.of_jsoninmake?resources~envId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for Dynatrace monitoring integration."]moduleEventChannelConfiguration=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for Event Channel integration."]moduleGitHubConfiguration=structtypenonrect={repoName:String_.t[@ocaml.doc"Associated Github repo name"];repoId:String_.t[@ocaml.doc"Associated Github repo ID"];owner:String_.t[@ocaml.doc"The GitHub repository owner name."];ownerType:GithubRepoOwnerType.t;instanceIdentifier:String_.toption[@ocaml.doc"GitHub instance identifier (e.g., github.com or github.enterprise.com)"]}letcontext_="GitHubConfiguration"letmake?instanceIdentifier=fun~repoName->fun~repoId->fun~owner->fun~ownerType->fun()->{instanceIdentifier;repoName;repoId;owner;ownerType}letto_valuex=structure_to_value[("repoName",(Some(String_.to_valuex.repoName)));("repoId",(Some(String_.to_valuex.repoId)));("owner",(Some(String_.to_valuex.owner)));("ownerType",(Some(GithubRepoOwnerType.to_valuex.ownerType)));("instanceIdentifier",(Option.mapx.instanceIdentifier~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinstanceIdentifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"instanceIdentifier")inletownerType=GithubRepoOwnerType.of_xml(Xml.child_exn~context:context_xml_arg0"ownerType")inletowner=String_.of_xml(Xml.child_exn~context:context_xml_arg0"owner")inletrepoId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"repoId")inletrepoName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"repoName")inmake?instanceIdentifier~ownerType~owner~repoId~repoName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinstanceIdentifier=field_mapjson__"instanceIdentifier"String_.of_jsoninletownerType=field_map_exnjson__"ownerType"GithubRepoOwnerType.of_jsoninletowner=field_map_exnjson__"owner"String_.of_jsoninletrepoId=field_map_exnjson__"repoId"String_.of_jsoninletrepoName=field_map_exnjson__"repoName"String_.of_jsoninmake?instanceIdentifier~ownerType~owner~repoId~repoName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for GitHub repository integration."]moduleGitLabConfiguration=structtypenonrect={projectId:String_.t[@ocaml.doc"GitLab numeric project ID."];projectPath:String_.t[@ocaml.doc"Full GitLab project path (e.g., namespace/project-name)."];instanceIdentifier:String_.toption[@ocaml.doc"GitLab instance identifier (e.g., gitlab.com or e2e.gamma.dev.us-east-1.gitlab.falco.ai.aws.dev)"]}letcontext_="GitLabConfiguration"letmake?instanceIdentifier=fun~projectId->fun~projectPath->fun()->{instanceIdentifier;projectId;projectPath}letto_valuex=structure_to_value[("projectId",(Some(String_.to_valuex.projectId)));("projectPath",(Some(String_.to_valuex.projectPath)));("instanceIdentifier",(Option.mapx.instanceIdentifier~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letinstanceIdentifier=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"instanceIdentifier")inletprojectPath=String_.of_xml(Xml.child_exn~context:context_xml_arg0"projectPath")inletprojectId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"projectId")inmake?instanceIdentifier~projectPath~projectId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letinstanceIdentifier=field_mapjson__"instanceIdentifier"String_.of_jsoninletprojectPath=field_map_exnjson__"projectPath"String_.of_jsoninletprojectId=field_map_exnjson__"projectId"String_.of_jsoninmake?instanceIdentifier~projectPath~projectId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for GitLab project integration."]moduleMCPServerConfiguration=structtypenonrect={tools:MCPToolsList.t[@ocaml.doc"List of MCP tools can be used with the association."]}letcontext_="MCPServerConfiguration"letmake~tools=fun()->{tools}letto_valuex=structure_to_value[("tools",(Some(MCPToolsList.to_valuex.tools)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettools=MCPToolsList.of_xml(Xml.child_exn~context:context_xml_arg0"tools")inmake~tools()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettools=field_map_exnjson__"tools"MCPToolsList.of_jsoninmake~tools()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for Model Context Protocol (MCP) server integration."]moduleMCPServerDatadogConfiguration=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Mixin for webhook update support."]moduleMCPServerGrafanaConfiguration=structtypenonrect={endpoint:MCPServerGrafanaConfigurationEndpointString.t[@ocaml.doc"Grafana instance URL (e.g., https://your-instance.grafana.net)"];organizationId:MCPServerGrafanaConfigurationOrganizationIdString.toption[@ocaml.doc"The Grafana organization ID that can be used."];tools:MCPToolsList.toption[@ocaml.doc"List of MCP tools that can be used."]}letcontext_="MCPServerGrafanaConfiguration"letmake?organizationId=fun?tools->fun~endpoint->fun()->{organizationId;tools;endpoint}letto_valuex=structure_to_value[("endpoint",(Some(MCPServerGrafanaConfigurationEndpointString.to_valuex.endpoint)));("organizationId",(Option.mapx.organizationId~f:MCPServerGrafanaConfigurationOrganizationIdString.to_value));("tools",(Option.mapx.tools~f:MCPToolsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettools=(Option.map~f:MCPToolsList.of_xml)(Xml.childxml_arg0"tools")inletorganizationId=(Option.map~f:MCPServerGrafanaConfigurationOrganizationIdString.of_xml)(Xml.childxml_arg0"organizationId")inletendpoint=MCPServerGrafanaConfigurationEndpointString.of_xml(Xml.child_exn~context:context_xml_arg0"endpoint")inmake?tools?organizationId~endpoint()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettools=field_mapjson__"tools"MCPToolsList.of_jsoninletorganizationId=field_mapjson__"organizationId"MCPServerGrafanaConfigurationOrganizationIdString.of_jsoninletendpoint=field_map_exnjson__"endpoint"MCPServerGrafanaConfigurationEndpointString.of_jsoninmake?tools?organizationId~endpoint()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for Grafana MCP server integration, used with an AWS-hosted MCP server."]moduleMCPServerNewRelicConfiguration=structtypenonrect={accountId:MCPServerNewRelicConfigurationAccountIdString.t[@ocaml.doc"New Relic Account ID"];endpoint:MCPServerNewRelicConfigurationEndpointString.t[@ocaml.doc"MCP server endpoint URL (e.g., https://mcp.newrelic.com/mcp/)"]}letcontext_="MCPServerNewRelicConfiguration"letmake~accountId=fun~endpoint->fun()->{accountId;endpoint}letto_valuex=structure_to_value[("accountId",(Some(MCPServerNewRelicConfigurationAccountIdString.to_valuex.accountId)));("endpoint",(Some(MCPServerNewRelicConfigurationEndpointString.to_valuex.endpoint)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letendpoint=MCPServerNewRelicConfigurationEndpointString.of_xml(Xml.child_exn~context:context_xml_arg0"endpoint")inletaccountId=MCPServerNewRelicConfigurationAccountIdString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake~endpoint~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letendpoint=field_map_exnjson__"endpoint"MCPServerNewRelicConfigurationEndpointString.of_jsoninletaccountId=field_map_exnjson__"accountId"MCPServerNewRelicConfigurationAccountIdString.of_jsoninmake~endpoint~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Mixin for webhook update support."]moduleMCPServerSplunkConfiguration=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Mixin for webhook update support."]modulePagerDutyConfiguration=structtypenonrect={services:PagerDutyServicesList.t[@ocaml.doc"List of Pagerduty service available for the association."];customerEmail:EmailAddress.t[@ocaml.doc"Email to be used in Pagerduty API header"]}letcontext_="PagerDutyConfiguration"letmake~services=fun~customerEmail->fun()->{services;customerEmail}letto_valuex=structure_to_value[("services",(Some(PagerDutyServicesList.to_valuex.services)));("customerEmail",(Some(EmailAddress.to_valuex.customerEmail)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcustomerEmail=EmailAddress.of_xml(Xml.child_exn~context:context_xml_arg0"customerEmail")inletservices=PagerDutyServicesList.of_xml(Xml.child_exn~context:context_xml_arg0"services")inmake~customerEmail~services()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcustomerEmail=field_map_exnjson__"customerEmail"EmailAddress.of_jsoninletservices=field_map_exnjson__"services"PagerDutyServicesList.of_jsoninmake~customerEmail~services()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for Pagerduty integration."]moduleServiceNowConfiguration=structtypenonrect={instanceId:String_.toption[@ocaml.doc"ServiceNow instance ID"];authScopes:ServiceNowAuthenticationScopeList.toption[@ocaml.doc"Scoped down authentication scopes for fine grained control"]}letmake?instanceId=fun?authScopes->fun()->{instanceId;authScopes}letto_valuex=structure_to_value[("instanceId",(Option.mapx.instanceId~f:String_.to_value));("authScopes",(Option.mapx.authScopes~f:ServiceNowAuthenticationScopeList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthScopes=(Option.map~f:ServiceNowAuthenticationScopeList.of_xml)(Xml.childxml_arg0"authScopes")inletinstanceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"instanceId")inmake?authScopes?instanceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthScopes=field_mapjson__"authScopes"ServiceNowAuthenticationScopeList.of_jsoninletinstanceId=field_mapjson__"instanceId"String_.of_jsoninmake?authScopes?instanceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for ServiceNow instance integration."]moduleSlackConfiguration=structtypenonrect={workspaceId:SlackConfigurationWorkspaceIdString.t[@ocaml.doc"Associated Slack workspace ID"];workspaceName:String_.t[@ocaml.doc"Associated Slack workspace name"];transmissionTarget:SlackTransmissionTarget.t[@ocaml.doc"Transmission targets for agent notifications"]}letcontext_="SlackConfiguration"letmake~workspaceId=fun~workspaceName->fun~transmissionTarget->fun()->{workspaceId;workspaceName;transmissionTarget}letto_valuex=structure_to_value[("workspaceId",(Some(SlackConfigurationWorkspaceIdString.to_valuex.workspaceId)));("workspaceName",(Some(String_.to_valuex.workspaceName)));("transmissionTarget",(Some(SlackTransmissionTarget.to_valuex.transmissionTarget)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettransmissionTarget=SlackTransmissionTarget.of_xml(Xml.child_exn~context:context_xml_arg0"transmissionTarget")inletworkspaceName=String_.of_xml(Xml.child_exn~context:context_xml_arg0"workspaceName")inletworkspaceId=SlackConfigurationWorkspaceIdString.of_xml(Xml.child_exn~context:context_xml_arg0"workspaceId")inmake~transmissionTarget~workspaceName~workspaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettransmissionTarget=field_map_exnjson__"transmissionTarget"SlackTransmissionTarget.of_jsoninletworkspaceName=field_map_exnjson__"workspaceName"String_.of_jsoninletworkspaceId=field_map_exnjson__"workspaceId"SlackConfigurationWorkspaceIdString.of_jsoninmake~transmissionTarget~workspaceName~workspaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for Slack workspace integration."]moduleSourceAwsConfiguration=structtypenonrect={accountId:SourceAwsConfigurationAccountIdString.t[@ocaml.doc"AWS Account Id corresponding to provided resources."];accountType:SourceAccountType.t[@ocaml.doc"Account Type 'source' for AIDevOps monitoring."];assumableRoleArn:RoleArn.t[@ocaml.doc"Role ARN to be assumed by AIDevOps to operate on behalf of customer."];externalId:String_.toption[@ocaml.doc"External ID for additional security when assuming the role. Used to prevent the confused deputy problem."]}letcontext_="SourceAwsConfiguration"letmake?externalId=fun~accountId->fun~accountType->fun~assumableRoleArn->fun()->{externalId;accountId;accountType;assumableRoleArn}letto_valuex=structure_to_value[("accountId",(Some(SourceAwsConfigurationAccountIdString.to_valuex.accountId)));("accountType",(Some(SourceAccountType.to_valuex.accountType)));("assumableRoleArn",(Some(RoleArn.to_valuex.assumableRoleArn)));("externalId",(Option.mapx.externalId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexternalId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"externalId")inletassumableRoleArn=RoleArn.of_xml(Xml.child_exn~context:context_xml_arg0"assumableRoleArn")inletaccountType=SourceAccountType.of_xml(Xml.child_exn~context:context_xml_arg0"accountType")inletaccountId=SourceAwsConfigurationAccountIdString.of_xml(Xml.child_exn~context:context_xml_arg0"accountId")inmake?externalId~assumableRoleArn~accountType~accountId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexternalId=field_mapjson__"externalId"String_.of_jsoninletassumableRoleArn=field_map_exnjson__"assumableRoleArn"RoleArn.of_jsoninletaccountType=field_map_exnjson__"accountType"SourceAccountType.of_jsoninletaccountId=field_map_exnjson__"accountId"SourceAwsConfigurationAccountIdString.of_jsoninmake?externalId~assumableRoleArn~accountType~accountId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for AWS source account integration. Note: passRole check on 'assumableRoleArn' is not supported."]moduleSecurityGroupId=structtypenonrect=string[@@ocaml.doc"Security group identifier."]letcontext_="SecurityGroupId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:11)>>=(fun()->(check_string_maxi~max:20)>>=(fun()->check_patterni~pattern:"sg-(([0-9a-z]{8})|([0-9a-z]{17}))")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SecurityGroupId"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Security group identifier."]moduleSubnetId=structtypenonrect=string[@@ocaml.doc"Subnet identifier."]letcontext_="SubnetId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:15)>>=(fun()->(check_string_maxi~max:24)>>=(fun()->check_patterni~pattern:"subnet-(([0-9a-z]{8})|([0-9a-z]{17}))")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SubnetId"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Subnet identifier."]modulePortRange=structtypenonrect=string[@@ocaml.doc"TCP port range expression (single port or range e.g. '443' or '8080-8090'). Valid port values are 1-65535, enforced at runtime."]letcontext_="PortRange"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->check_patterni~pattern:"((\\d{1,5}\\-\\d{1,5})|(\\d+))"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PortRange"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"TCP port range expression (single port or range e.g. '443' or '8080-8090'). Valid port values are 1-65535, enforced at runtime."]moduleValidationExceptionField=structtypenonrect={path:String_.toption[@ocaml.doc"A JSONPointer expression to the structure member whose value failed to satisfy the modeled constraints."];message:String_.toption[@ocaml.doc"A detailed description of the validation failure."]}letmake?path=fun?message->fun()->{path;message}letto_valuex=structure_to_value[("path",(Option.mapx.path~f:String_.to_value));("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inletpath=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"path")inmake?message?path()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninletpath=field_mapjson__"path"String_.of_jsoninmake?message?path()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Describes one specific validation failure for an input member."]moduleSendMessageContentBlockDelta=structtypenonrect={textDelta:SendMessageTextDelta.toption[@ocaml.doc"Text delta for text-based content blocks"];jsonDelta:SendMessageJsonDelta.toption[@ocaml.doc"JSON delta for structured content blocks"]}letmake?textDelta=fun?jsonDelta->fun()->{textDelta;jsonDelta}letto_valuex=structure_to_value[("textDelta",(Option.mapx.textDelta~f:SendMessageTextDelta.to_value));("jsonDelta",(Option.mapx.jsonDelta~f:SendMessageJsonDelta.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjsonDelta=(Option.map~f:SendMessageJsonDelta.of_xml)(Xml.childxml_arg0"jsonDelta")inlettextDelta=(Option.map~f:SendMessageTextDelta.of_xml)(Xml.childxml_arg0"textDelta")inmake?jsonDelta?textDelta()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjsonDelta=field_mapjson__"jsonDelta"SendMessageJsonDelta.of_jsoninlettextDelta=field_mapjson__"textDelta"SendMessageTextDelta.of_jsoninmake?jsonDelta?textDelta()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Union of possible delta payloads within a content block delta event"]moduleSendMessageUsageInfo=structtypenonrect={inputTokens:Integer.toption[@ocaml.doc"Number of input tokens"];outputTokens:Integer.toption[@ocaml.doc"Number of output tokens"];totalTokens:Integer.toption[@ocaml.doc"Total tokens used"]}letmake?inputTokens=fun?outputTokens->fun?totalTokens->fun()->{inputTokens;outputTokens;totalTokens}letto_valuex=structure_to_value[("inputTokens",(Option.mapx.inputTokens~f:Integer.to_value));("outputTokens",(Option.mapx.outputTokens~f:Integer.to_value));("totalTokens",(Option.mapx.totalTokens~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettotalTokens=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"totalTokens")inletoutputTokens=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"outputTokens")inletinputTokens=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"inputTokens")inmake?totalTokens?outputTokens?inputTokens()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettotalTokens=field_mapjson__"totalTokens"Integer.of_jsoninletoutputTokens=field_mapjson__"outputTokens"Integer.of_jsoninletinputTokens=field_mapjson__"inputTokens"Integer.of_jsoninmake?totalTokens?outputTokens?inputTokens()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Token usage information"]moduleDatadogAuthorizationConfig=structtypenonrect={authorizationDiscovery:MCPServerAuthorizationDiscoveryConfig.toption[@ocaml.doc"Datadog MCP server authorization discovery configuration."]}letmake?authorizationDiscovery=fun()->{authorizationDiscovery}letto_valuex=structure_to_value[("authorizationDiscovery",(Option.mapx.authorizationDiscovery~f:MCPServerAuthorizationDiscoveryConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthorizationDiscovery=(Option.map~f:MCPServerAuthorizationDiscoveryConfig.of_xml)(Xml.childxml_arg0"authorizationDiscovery")inmake?authorizationDiscovery()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthorizationDiscovery=field_mapjson__"authorizationDiscovery"MCPServerAuthorizationDiscoveryConfig.of_jsoninmake?authorizationDiscovery()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Authorization configuration for Datadog MCP server (uses authorization discovery only)."]moduleDatadogServiceDetailsDescriptionString=structtypenonrect=string[@@ocaml.doc"Description field"]letcontext_="DatadogServiceDetailsDescriptionString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:500)>>=(fun()->check_patterni~pattern:"[\\p{L}\\p{N}\\p{P}\\p{S}\\p{Z}]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DatadogServiceDetailsDescriptionString"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Description field"]moduleDatadogServiceDetailsEndpointString=structtypenonrect=stringletcontext_="DatadogServiceDetailsEndpointString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"https://[a-zA-Z0-9.-]+(?::[0-9]+)?(?:/.*)?");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DatadogServiceDetailsEndpointString"jletto_json=simple_to_jsonto_valueendmoduleDatadogServiceDetailsNameString=structtypenonrect=stringletcontext_="DatadogServiceDetailsNameString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9_-]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DatadogServiceDetailsNameString"jletto_json=simple_to_jsonto_valueendmoduleDynatraceServiceAuthorizationConfig=structtypenonrect={oAuthClientCredentials:DynatraceOAuthClientCredentialsConfig.toption[@ocaml.doc"OAuth client credentials configuration."]}letmake?oAuthClientCredentials=fun()->{oAuthClientCredentials}letto_valuex=structure_to_value[("oAuthClientCredentials",(Option.mapx.oAuthClientCredentials~f:DynatraceOAuthClientCredentialsConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoAuthClientCredentials=(Option.map~f:DynatraceOAuthClientCredentialsConfig.of_xml)(Xml.childxml_arg0"oAuthClientCredentials")inmake?oAuthClientCredentials()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoAuthClientCredentials=field_mapjson__"oAuthClientCredentials"DynatraceOAuthClientCredentialsConfig.of_jsoninmake?oAuthClientCredentials()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Authorization configuration options for Dynatrace service."]moduleDynatraceServiceDetailsAccountUrnString=structtypenonrect=stringletcontext_="DynatraceServiceDetailsAccountUrnString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"urn:dtaccount:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DynatraceServiceDetailsAccountUrnString"jletto_json=simple_to_jsonto_valueendmoduleEventChannelType=structtypenonrect=|Webhook|Non_static_idofstringletmakei=iletto_string=function|Webhook->"webhook"|Non_static_ids->sletof_string=function|"webhook"->Webhook|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration EventChannelType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"EventChannelType"j)letto_json=simple_to_jsonto_valueendmoduleGitLabDetailsTargetUrlString=structtypenonrect=stringletcontext_="GitLabDetailsTargetUrlString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"https://[a-zA-Z0-9]([a-zA-Z0-9.-]*[a-zA-Z0-9])?(?::[0-9]{1,5})?/?");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"GitLabDetailsTargetUrlString"jletto_json=simple_to_jsonto_valueendmoduleGitLabDetailsTokenValueString=structtypenonrect=string[@@ocaml.doc"Token value for authentication."]letcontext_="GitLabDetailsTokenValueString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9._-]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"GitLabDetailsTokenValueString"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Token value for authentication."]moduleGrafanaServiceDetailsDescriptionString=structtypenonrect=string[@@ocaml.doc"Description field"]letcontext_="GrafanaServiceDetailsDescriptionString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:500)>>=(fun()->check_patterni~pattern:"[\\p{L}\\p{N}\\p{P}\\p{S}\\p{Z}]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"GrafanaServiceDetailsDescriptionString"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Description field"]moduleGrafanaServiceDetailsEndpointString=structtypenonrect=stringletcontext_="GrafanaServiceDetailsEndpointString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"https://[a-zA-Z0-9.-]+(?::[0-9]+)?(?:/.*)?");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"GrafanaServiceDetailsEndpointString"jletto_json=simple_to_jsonto_valueendmoduleGrafanaServiceDetailsNameString=structtypenonrect=stringletcontext_="GrafanaServiceDetailsNameString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9_-]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"GrafanaServiceDetailsNameString"jletto_json=simple_to_jsonto_valueendmoduleMCPServerAuthorizationConfig=structtypenonrect={oAuthClientCredentials:MCPServerOAuthClientCredentialsConfig.toption[@ocaml.doc"MCP server configuration with OAuth client credentials."];oAuth3LO:MCPServerOAuth3LOConfig.toption[@ocaml.doc"MCP server configuration with OAuth 3LO."];apiKey:MCPServerAPIKeyConfig.toption[@ocaml.doc"MCP server configuration with API key authentication."];bearerToken:MCPServerBearerTokenConfig.toption[@ocaml.doc"MCP server configuration with Bearer token (RFC 6750)."];authorizationDiscovery:MCPServerAuthorizationDiscoveryConfig.toption[@ocaml.doc"MCP server authorization discovery configuration."]}letmake?oAuthClientCredentials=fun?oAuth3LO->fun?apiKey->fun?bearerToken->fun?authorizationDiscovery->fun()->{oAuthClientCredentials;oAuth3LO;apiKey;bearerToken;authorizationDiscovery}letto_valuex=structure_to_value[("oAuthClientCredentials",(Option.mapx.oAuthClientCredentials~f:MCPServerOAuthClientCredentialsConfig.to_value));("oAuth3LO",(Option.mapx.oAuth3LO~f:MCPServerOAuth3LOConfig.to_value));("apiKey",(Option.mapx.apiKey~f:MCPServerAPIKeyConfig.to_value));("bearerToken",(Option.mapx.bearerToken~f:MCPServerBearerTokenConfig.to_value));("authorizationDiscovery",(Option.mapx.authorizationDiscovery~f:MCPServerAuthorizationDiscoveryConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthorizationDiscovery=(Option.map~f:MCPServerAuthorizationDiscoveryConfig.of_xml)(Xml.childxml_arg0"authorizationDiscovery")inletbearerToken=(Option.map~f:MCPServerBearerTokenConfig.of_xml)(Xml.childxml_arg0"bearerToken")inletapiKey=(Option.map~f:MCPServerAPIKeyConfig.of_xml)(Xml.childxml_arg0"apiKey")inletoAuth3LO=(Option.map~f:MCPServerOAuth3LOConfig.of_xml)(Xml.childxml_arg0"oAuth3LO")inletoAuthClientCredentials=(Option.map~f:MCPServerOAuthClientCredentialsConfig.of_xml)(Xml.childxml_arg0"oAuthClientCredentials")inmake?authorizationDiscovery?bearerToken?apiKey?oAuth3LO?oAuthClientCredentials()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthorizationDiscovery=field_mapjson__"authorizationDiscovery"MCPServerAuthorizationDiscoveryConfig.of_jsoninletbearerToken=field_mapjson__"bearerToken"MCPServerBearerTokenConfig.of_jsoninletapiKey=field_mapjson__"apiKey"MCPServerAPIKeyConfig.of_jsoninletoAuth3LO=field_mapjson__"oAuth3LO"MCPServerOAuth3LOConfig.of_jsoninletoAuthClientCredentials=field_mapjson__"oAuthClientCredentials"MCPServerOAuthClientCredentialsConfig.of_jsoninmake?authorizationDiscovery?bearerToken?apiKey?oAuth3LO?oAuthClientCredentials()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Authorization configuration options for MCP server, supporting OAuth, API key, bearer token, and authorization discovery methods."]moduleMCPServerDetailsDescriptionString=structtypenonrect=string[@@ocaml.doc"Description field"]letcontext_="MCPServerDetailsDescriptionString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:500)>>=(fun()->check_patterni~pattern:"[\\p{L}\\p{N}\\p{P}\\p{S}\\p{Z}]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerDetailsDescriptionString"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Description field"]moduleMCPServerDetailsEndpointString=structtypenonrect=stringletcontext_="MCPServerDetailsEndpointString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"https://[a-zA-Z0-9.-]+(?::[0-9]+)?(?:/.*)?");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerDetailsEndpointString"jletto_json=simple_to_jsonto_valueendmoduleMCPServerDetailsNameString=structtypenonrect=stringletcontext_="MCPServerDetailsNameString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9_-]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MCPServerDetailsNameString"jletto_json=simple_to_jsonto_valueendmoduleNewRelicServiceAuthorizationConfig=structtypenonrect={apiKey:NewRelicApiKeyConfig.toption[@ocaml.doc"New Relic API Key authentication (apiKey, accountId, region)."]}letmake?apiKey=fun()->{apiKey}letto_valuex=structure_to_value[("apiKey",(Option.mapx.apiKey~f:NewRelicApiKeyConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapiKey=(Option.map~f:NewRelicApiKeyConfig.of_xml)(Xml.childxml_arg0"apiKey")inmake?apiKey()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapiKey=field_mapjson__"apiKey"NewRelicApiKeyConfig.of_jsoninmake?apiKey()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Authorization configuration options for New Relic service."]modulePagerDutyAuthorizationConfig=structtypenonrect={oAuthClientCredentials:PagerDutyOAuthClientCredentialsConfig.toption[@ocaml.doc"OAuth client credentials configuration."]}letmake?oAuthClientCredentials=fun()->{oAuthClientCredentials}letto_valuex=structure_to_value[("oAuthClientCredentials",(Option.mapx.oAuthClientCredentials~f:PagerDutyOAuthClientCredentialsConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoAuthClientCredentials=(Option.map~f:PagerDutyOAuthClientCredentialsConfig.of_xml)(Xml.childxml_arg0"oAuthClientCredentials")inmake?oAuthClientCredentials()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoAuthClientCredentials=field_mapjson__"oAuthClientCredentials"PagerDutyOAuthClientCredentialsConfig.of_jsoninmake?oAuthClientCredentials()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Authorization configuration options for PagerDuty service."]modulePagerDutyScopes=structtypenonrect=String_.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:String_.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:String_.of_xml)letof_jsonj=list_of_json~kind:"PagerDutyScopes"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleServiceNowServiceAuthorizationConfig=structtypenonrect={oAuthClientCredentials:ServiceNowOAuthClientCredentialsConfig.toption[@ocaml.doc"OAuth client credentials configuration."]}letmake?oAuthClientCredentials=fun()->{oAuthClientCredentials}letto_valuex=structure_to_value[("oAuthClientCredentials",(Option.mapx.oAuthClientCredentials~f:ServiceNowOAuthClientCredentialsConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoAuthClientCredentials=(Option.map~f:ServiceNowOAuthClientCredentialsConfig.of_xml)(Xml.childxml_arg0"oAuthClientCredentials")inmake?oAuthClientCredentials()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoAuthClientCredentials=field_mapjson__"oAuthClientCredentials"ServiceNowOAuthClientCredentialsConfig.of_jsoninmake?oAuthClientCredentials()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Authorization configuration options for ServiceNow service."]moduleWebhookType=structtypenonrect=|Hmac|Apikey|Gitlab|Pagerduty|Non_static_idofstringletmakei=iletto_string=function|Hmac->"hmac"|Apikey->"apikey"|Gitlab->"gitlab"|Pagerduty->"pagerduty"|Non_static_ids->sletof_string=function|"hmac"->Hmac|"apikey"->Apikey|"gitlab"->Gitlab|"pagerduty"->Pagerduty|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration WebhookType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"WebhookType"j)letto_json=simple_to_jsonto_valueendmoduleWebhookWebhookIdString=structtypenonrect=stringletcontext_="WebhookWebhookIdString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"WebhookWebhookIdString"jletto_json=simple_to_jsonto_valueendmoduleWebhookWebhookUrlString=structtypenonrect=stringletcontext_="WebhookWebhookUrlString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"https://[a-zA-Z0-9.-]+(?:/.*)?");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"WebhookWebhookUrlString"jletto_json=simple_to_jsonto_valueendmoduleAdditionalServiceDetails=structtypenonrect={github:RegisteredGithubServiceDetails.toption[@ocaml.doc"GitHub-specific service details."];slack:RegisteredSlackServiceDetails.toption[@ocaml.doc"Slack-specific service details."];mcpserverdatadog:RegisteredMCPServerDetails.toption[@ocaml.doc"Datadog MCP server-specific service details."];mcpserver:RegisteredMCPServerDetails.toption[@ocaml.doc"MCP server-specific service details."];servicenow:RegisteredServiceNowDetails.toption[@ocaml.doc"ServiceNow-specific service details."];gitlab:RegisteredGitLabServiceDetails.toption[@ocaml.doc"GitLab-specific service details."];mcpserversplunk:RegisteredMCPServerDetails.toption[@ocaml.doc"Splunk MCP server-specific service details."];mcpservernewrelic:RegisteredNewRelicDetails.toption[@ocaml.doc"New Relic MCP server-specific service details."];azuredevops:RegisteredAzureDevOpsServiceDetails.toption[@ocaml.doc"Azure DevOps specific service details."];azureidentity:RegisteredAzureIdentityDetails.toption[@ocaml.doc"Azure identity details for services using Azure authentication."];mcpservergrafana:RegisteredGrafanaServerDetails.toption[@ocaml.doc"Grafana MCP server-specific service details."];pagerduty:RegisteredPagerDutyDetails.toption[@ocaml.doc"Pagerduty service details."]}letmake?github=fun?slack->fun?mcpserverdatadog->fun?mcpserver->fun?servicenow->fun?gitlab->fun?mcpserversplunk->fun?mcpservernewrelic->fun?azuredevops->fun?azureidentity->fun?mcpservergrafana->fun?pagerduty->fun()->{github;slack;mcpserverdatadog;mcpserver;servicenow;gitlab;mcpserversplunk;mcpservernewrelic;azuredevops;azureidentity;mcpservergrafana;pagerduty}letto_valuex=structure_to_value[("github",(Option.mapx.github~f:RegisteredGithubServiceDetails.to_value));("slack",(Option.mapx.slack~f:RegisteredSlackServiceDetails.to_value));("mcpserverdatadog",(Option.mapx.mcpserverdatadog~f:RegisteredMCPServerDetails.to_value));("mcpserver",(Option.mapx.mcpserver~f:RegisteredMCPServerDetails.to_value));("servicenow",(Option.mapx.servicenow~f:RegisteredServiceNowDetails.to_value));("gitlab",(Option.mapx.gitlab~f:RegisteredGitLabServiceDetails.to_value));("mcpserversplunk",(Option.mapx.mcpserversplunk~f:RegisteredMCPServerDetails.to_value));("mcpservernewrelic",(Option.mapx.mcpservernewrelic~f:RegisteredNewRelicDetails.to_value));("azuredevops",(Option.mapx.azuredevops~f:RegisteredAzureDevOpsServiceDetails.to_value));("azureidentity",(Option.mapx.azureidentity~f:RegisteredAzureIdentityDetails.to_value));("mcpservergrafana",(Option.mapx.mcpservergrafana~f:RegisteredGrafanaServerDetails.to_value));("pagerduty",(Option.mapx.pagerduty~f:RegisteredPagerDutyDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpagerduty=(Option.map~f:RegisteredPagerDutyDetails.of_xml)(Xml.childxml_arg0"pagerduty")inletmcpservergrafana=(Option.map~f:RegisteredGrafanaServerDetails.of_xml)(Xml.childxml_arg0"mcpservergrafana")inletazureidentity=(Option.map~f:RegisteredAzureIdentityDetails.of_xml)(Xml.childxml_arg0"azureidentity")inletazuredevops=(Option.map~f:RegisteredAzureDevOpsServiceDetails.of_xml)(Xml.childxml_arg0"azuredevops")inletmcpservernewrelic=(Option.map~f:RegisteredNewRelicDetails.of_xml)(Xml.childxml_arg0"mcpservernewrelic")inletmcpserversplunk=(Option.map~f:RegisteredMCPServerDetails.of_xml)(Xml.childxml_arg0"mcpserversplunk")inletgitlab=(Option.map~f:RegisteredGitLabServiceDetails.of_xml)(Xml.childxml_arg0"gitlab")inletservicenow=(Option.map~f:RegisteredServiceNowDetails.of_xml)(Xml.childxml_arg0"servicenow")inletmcpserver=(Option.map~f:RegisteredMCPServerDetails.of_xml)(Xml.childxml_arg0"mcpserver")inletmcpserverdatadog=(Option.map~f:RegisteredMCPServerDetails.of_xml)(Xml.childxml_arg0"mcpserverdatadog")inletslack=(Option.map~f:RegisteredSlackServiceDetails.of_xml)(Xml.childxml_arg0"slack")inletgithub=(Option.map~f:RegisteredGithubServiceDetails.of_xml)(Xml.childxml_arg0"github")inmake?pagerduty?mcpservergrafana?azureidentity?azuredevops?mcpservernewrelic?mcpserversplunk?gitlab?servicenow?mcpserver?mcpserverdatadog?slack?github()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpagerduty=field_mapjson__"pagerduty"RegisteredPagerDutyDetails.of_jsoninletmcpservergrafana=field_mapjson__"mcpservergrafana"RegisteredGrafanaServerDetails.of_jsoninletazureidentity=field_mapjson__"azureidentity"RegisteredAzureIdentityDetails.of_jsoninletazuredevops=field_mapjson__"azuredevops"RegisteredAzureDevOpsServiceDetails.of_jsoninletmcpservernewrelic=field_mapjson__"mcpservernewrelic"RegisteredNewRelicDetails.of_jsoninletmcpserversplunk=field_mapjson__"mcpserversplunk"RegisteredMCPServerDetails.of_jsoninletgitlab=field_mapjson__"gitlab"RegisteredGitLabServiceDetails.of_jsoninletservicenow=field_mapjson__"servicenow"RegisteredServiceNowDetails.of_jsoninletmcpserver=field_mapjson__"mcpserver"RegisteredMCPServerDetails.of_jsoninletmcpserverdatadog=field_mapjson__"mcpserverdatadog"RegisteredMCPServerDetails.of_jsoninletslack=field_mapjson__"slack"RegisteredSlackServiceDetails.of_jsoninletgithub=field_mapjson__"github"RegisteredGithubServiceDetails.of_jsoninmake?pagerduty?mcpservergrafana?azureidentity?azuredevops?mcpservernewrelic?mcpserversplunk?gitlab?servicenow?mcpserver?mcpserverdatadog?slack?github()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Union of service-specific details for different service types."]moduleDocumentList=structtypenonrect=Document.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Document.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Document.of_xml)letof_jsonj=list_of_json~kind:"DocumentList"~of_json:Document.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleKmsKeyArn=structtypenonrect=string[@@ocaml.doc"The ARN of the AWS Key Management Service (AWS KMS) customer managed key that's used to encrypt resources."]letcontext_="KmsKeyArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:20)>>=(fun()->check_patterni~pattern:"arn:aws[a-zA-Z-]*:kms:[a-z0-9-]+:[0-9]{12}:key/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"KmsKeyArn"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"The ARN of the AWS Key Management Service (AWS KMS) customer managed key that's used to encrypt resources."]modulePrivateConnectionName=structtypenonrect=string[@@ocaml.doc"Unique name for a Private Connection within an account."]letcontext_="PrivateConnectionName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:3)>>=(fun()->(check_string_maxi~max:30)>>=(fun()->check_patterni~pattern:"[a-z0-9]([a-z0-9-]*[a-z0-9])?")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"PrivateConnectionName"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Unique name for a Private Connection within an account."]moduleService=structtypenonrect=|Github|Slack|Azure|Azuredevops|Dynatrace|Servicenow|Pagerduty|Gitlab|EventChannel|Mcpservernewrelic|Mcpservergrafana|Mcpserverdatadog|Mcpserver|Mcpserversplunk|Azureidentity|Non_static_idofstringletmakei=iletto_string=function|Github->"github"|Slack->"slack"|Azure->"azure"|Azuredevops->"azuredevops"|Dynatrace->"dynatrace"|Servicenow->"servicenow"|Pagerduty->"pagerduty"|Gitlab->"gitlab"|EventChannel->"eventChannel"|Mcpservernewrelic->"mcpservernewrelic"|Mcpservergrafana->"mcpservergrafana"|Mcpserverdatadog->"mcpserverdatadog"|Mcpserver->"mcpserver"|Mcpserversplunk->"mcpserversplunk"|Azureidentity->"azureidentity"|Non_static_ids->sletof_string=function|"github"->Github|"slack"->Slack|"azure"->Azure|"azuredevops"->Azuredevops|"dynatrace"->Dynatrace|"servicenow"->Servicenow|"pagerduty"->Pagerduty|"gitlab"->Gitlab|"eventChannel"->EventChannel|"mcpservernewrelic"->Mcpservernewrelic|"mcpservergrafana"->Mcpservergrafana|"mcpserverdatadog"->Mcpserverdatadog|"mcpserver"->Mcpserver|"mcpserversplunk"->Mcpserversplunk|"azureidentity"->Azureidentity|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration Service"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Service"j)letto_json=simple_to_jsonto_valueendmoduleServiceId=structtypenonrect=string[@@ocaml.doc"Unique identifier for a registered service"]letcontext_="ServiceId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9_-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ServiceId"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Unique identifier for a registered service"]moduleServiceName=structtypenonrect=string[@@ocaml.doc"The display name for a registered service."]letcontext_="ServiceName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"[\\p{L}\\p{N}\\p{P}\\p{S}\\p{Z}]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ServiceName"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"The display name for a registered service."]moduleBackLogTimestamp=structtypenonrect=string[@@ocaml.doc"Timestamp format used for backlog operations"]letmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Timestamp format used for backlog operations"]moduleLong=structtypenonrect=Int64.tletmakei=iletof_string=Int64.of_stringletto_valuex=`Longxletto_queryv=to_queryto_valuevletto_headerx=Int64.to_stringxletof_xmlxml_arg0=Int64.of_string(string_of_xml~kind:"a long"xml_arg0)letof_jsonj=Int64.of_float(float_of_json~kind:"a long"j)letto_json=simple_to_jsonto_valueendmoduleRecommendationContent=structtypenonrect={summary:String_.toption[@ocaml.doc"A brief summary of the recommendation."];spec:RecommendationContentSpecString.toption[@ocaml.doc"Agent-ready specification with detailed implementation steps"]}letmake?summary=fun?spec->fun()->{summary;spec}letto_valuex=structure_to_value[("summary",(Option.mapx.summary~f:String_.to_value));("spec",(Option.mapx.spec~f:RecommendationContentSpecString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letspec=(Option.map~f:RecommendationContentSpecString.of_xml)(Xml.childxml_arg0"spec")inletsummary=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"summary")inmake?spec?summary()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letspec=field_mapjson__"spec"RecommendationContentSpecString.of_jsoninletsummary=field_mapjson__"summary"String_.of_jsoninmake?spec?summary()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Content of a recommendation"]moduleRecommendationPriority=structtypenonrect=|HIGH|MEDIUM|LOW|Non_static_idofstringletmakei=iletto_string=function|HIGH->"HIGH"|MEDIUM->"MEDIUM"|LOW->"LOW"|Non_static_ids->sletof_string=function|"HIGH"->HIGH|"MEDIUM"->MEDIUM|"LOW"->LOW|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration RecommendationPriority"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RecommendationPriority"j)letto_json=simple_to_jsonto_valueendmoduleRecommendationStatus=structtypenonrect=|PROPOSED|ACCEPTED|REJECTED|CLOSED|COMPLETED|UPDATE_IN_PROGRESS|Non_static_idofstringletmakei=iletto_string=function|PROPOSED->"PROPOSED"|ACCEPTED->"ACCEPTED"|REJECTED->"REJECTED"|CLOSED->"CLOSED"|COMPLETED->"COMPLETED"|UPDATE_IN_PROGRESS->"UPDATE_IN_PROGRESS"|Non_static_ids->sletof_string=function|"PROPOSED"->PROPOSED|"ACCEPTED"->ACCEPTED|"REJECTED"->REJECTED|"CLOSED"->CLOSED|"COMPLETED"->COMPLETED|"UPDATE_IN_PROGRESS"->UPDATE_IN_PROGRESS|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration RecommendationStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RecommendationStatus"j)letto_json=simple_to_jsonto_valueendmoduleIpAddressOrDnsName=structtypenonrect=string[@@ocaml.doc"IP address or DNS name of a target resource."]letcontext_="IpAddressOrDnsName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:3)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9.:\\-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IpAddressOrDnsName"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"IP address or DNS name of a target resource."]modulePrivateConnectionStatus=structtypenonrect=|ACTIVE|CREATE_IN_PROGRESS|CREATE_FAILED|DELETE_IN_PROGRESS|DELETE_FAILED|Non_static_idofstringletmakei=iletto_string=function|ACTIVE->"ACTIVE"|CREATE_IN_PROGRESS->"CREATE_IN_PROGRESS"|CREATE_FAILED->"CREATE_FAILED"|DELETE_IN_PROGRESS->"DELETE_IN_PROGRESS"|DELETE_FAILED->"DELETE_FAILED"|Non_static_ids->sletof_string=function|"ACTIVE"->ACTIVE|"CREATE_IN_PROGRESS"->CREATE_IN_PROGRESS|"CREATE_FAILED"->CREATE_FAILED|"DELETE_IN_PROGRESS"->DELETE_IN_PROGRESS|"DELETE_FAILED"->DELETE_FAILED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration PrivateConnectionStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PrivateConnectionStatus"j)letto_json=simple_to_jsonto_valueendmodulePrivateConnectionType=structtypenonrect=|SELF_MANAGED|SERVICE_MANAGED|Non_static_idofstringletmakei=iletto_string=function|SELF_MANAGED->"SELF_MANAGED"|SERVICE_MANAGED->"SERVICE_MANAGED"|Non_static_ids->sletof_string=function|"SELF_MANAGED"->SELF_MANAGED|"SERVICE_MANAGED"->SERVICE_MANAGED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration PrivateConnectionType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PrivateConnectionType"j)letto_json=simple_to_jsonto_valueendmoduleResourceConfigurationArn=structtypenonrect=string[@@ocaml.doc"The ID or ARN of the Resource Configuration."]letcontext_="ResourceConfigurationArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:20)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"(arn:[a-z0-9\\-]+:vpc-lattice:[a-zA-Z0-9\\-]+:\\d{12}:resourceconfiguration/rcfg-[0-9a-z]{17}|rcfg-[0-9a-z]{17})")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ResourceConfigurationArn"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"The ID or ARN of the Resource Configuration."]moduleResourceGatewayArn=structtypenonrect=string[@@ocaml.doc"Resource Gateway ARN."]letcontext_="ResourceGatewayArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:20)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:[a-z0-9\\-]+:vpc-lattice:[a-zA-Z0-9\\-]+:\\d{12}:resourcegateway/rgw-[0-9a-z]{17}")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ResourceGatewayArn"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Resource Gateway ARN."]moduleSyntheticTimestamp_date_time=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleVpcId=structtypenonrect=string[@@ocaml.doc"VPC identifier."]letcontext_="VpcId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:5)>>=(fun()->(check_string_maxi~max:50)>>=(fun()->check_patterni~pattern:"vpc-(([0-9a-z]{8})|([0-9a-z]{17}))")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"VpcId"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"VPC identifier."]moduleMessage=structtypenonrect={userMessage:UserMessage.toption[@ocaml.doc"A message from the user."];assistantMessage:AssistantMessage.toption[@ocaml.doc"A message from the assistant."]}letmake?userMessage=fun?assistantMessage->fun()->{userMessage;assistantMessage}letto_valuex=structure_to_value[("userMessage",(Option.mapx.userMessage~f:UserMessage.to_value));("assistantMessage",(Option.mapx.assistantMessage~f:AssistantMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassistantMessage=(Option.map~f:AssistantMessage.of_xml)(Xml.childxml_arg0"assistantMessage")inletuserMessage=(Option.map~f:UserMessage.of_xml)(Xml.childxml_arg0"userMessage")inmake?assistantMessage?userMessage()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassistantMessage=field_mapjson__"assistantMessage"AssistantMessage.of_jsoninletuserMessage=field_mapjson__"userMessage"UserMessage.of_jsoninmake?assistantMessage?userMessage()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A message in a conversation, either from the user or the assistant."]moduleJournalTimestamp=structtypenonrect=string[@@ocaml.doc"Timestamp format used for journal operations"]letmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Timestamp format used for journal operations"]moduleUserReference=structtypenonrect={userId:String_.toption[@ocaml.doc"The unique identifier for the user"];userType:UserType.toption[@ocaml.doc"The type of user"]}letmake?userId=fun?userType->fun()->{userId;userType}letto_valuex=structure_to_value[("userId",(Option.mapx.userId~f:String_.to_value));("userType",(Option.mapx.userType~f:UserType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserType=(Option.map~f:UserType.of_xml)(Xml.childxml_arg0"userType")inletuserId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"userId")inmake?userType?userId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserType=field_mapjson__"userType"UserType.of_jsoninletuserId=field_mapjson__"userId"String_.of_jsoninmake?userType?userId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Reference to a user in the system"]moduleGoalContent=structtypenonrect={description:String_.toption[@ocaml.doc"A detailed description of the goal."];objectives:String_.toption[@ocaml.doc"The objectives to be achieved for this goal."]}letmake?description=fun?objectives->fun()->{description;objectives}letto_valuex=structure_to_value[("description",(Option.mapx.description~f:String_.to_value));("objectives",(Option.mapx.objectives~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letobjectives=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"objectives")inletdescription=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"description")inmake?objectives?description()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letobjectives=field_mapjson__"objectives"String_.of_jsoninletdescription=field_mapjson__"description"String_.of_jsoninmake?objectives?description()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Content of a goal"]moduleGoalSchedule=structtypenonrect={state:SchedulerState.toption[@ocaml.doc"Whether the schedule is enabled or disabled"];expression:String_.toption[@ocaml.doc"Schedule expression (e.g., 'rate(7 days)')"]}letmake?state=fun?expression->fun()->{state;expression}letto_valuex=structure_to_value[("state",(Option.mapx.state~f:SchedulerState.to_value));("expression",(Option.mapx.expression~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexpression=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"expression")inletstate=(Option.map~f:SchedulerState.of_xml)(Xml.childxml_arg0"state")inmake?expression?state()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexpression=field_mapjson__"expression"String_.of_jsoninletstate=field_mapjson__"state"SchedulerState.of_jsoninmake?expression?state()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Schedule configuration for goal evaluations"]moduleGoalStatus=structtypenonrect=|ACTIVE|PAUSED|COMPLETE|Non_static_idofstringletmakei=iletto_string=function|ACTIVE->"ACTIVE"|PAUSED->"PAUSED"|COMPLETE->"COMPLETE"|Non_static_ids->sletof_string=function|"ACTIVE"->ACTIVE|"PAUSED"->PAUSED|"COMPLETE"->COMPLETE|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration GoalStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"GoalStatus"j)letto_json=simple_to_jsonto_valueendmoduleGoalType=structtypenonrect=|CUSTOMER_DEFINED|ONCALL_REPORT|Non_static_idofstringletmakei=iletto_string=function|CUSTOMER_DEFINED->"CUSTOMER_DEFINED"|ONCALL_REPORT->"ONCALL_REPORT"|Non_static_ids->sletof_string=function|"CUSTOMER_DEFINED"->CUSTOMER_DEFINED|"ONCALL_REPORT"->ONCALL_REPORT|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration GoalType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"GoalType"j)letto_json=simple_to_jsonto_valueendmoduleExecutionStatus=structtypenonrect=|FAILED|RUNNING|STOPPED|CANCELED|TIMED_OUT|Non_static_idofstringletmakei=iletto_string=function|FAILED->"FAILED"|RUNNING->"RUNNING"|STOPPED->"STOPPED"|CANCELED->"CANCELED"|TIMED_OUT->"TIMED_OUT"|Non_static_ids->sletof_string=function|"FAILED"->FAILED|"RUNNING"->RUNNING|"STOPPED"->STOPPED|"CANCELED"->CANCELED|"TIMED_OUT"->TIMED_OUT|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ExecutionStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ExecutionStatus"j)letto_json=simple_to_jsonto_valueendmoduleResourceId=structtypenonrect=string[@@ocaml.doc"Generic resource identifier (allows alphanumeric characters, hyphens, and underscores; 1-128 characters)"]letcontext_="ResourceId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9_.-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ResourceId"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Generic resource identifier (allows alphanumeric characters, hyphens, and underscores; 1-128 characters)"]moduleTimestamp=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmodulePriority=structtypenonrect=|CRITICAL|HIGH|MEDIUM|LOW|MINIMAL|Non_static_idofstringletmakei=iletto_string=function|CRITICAL->"CRITICAL"|HIGH->"HIGH"|MEDIUM->"MEDIUM"|LOW->"LOW"|MINIMAL->"MINIMAL"|Non_static_ids->sletof_string=function|"CRITICAL"->CRITICAL|"HIGH"->HIGH|"MEDIUM"->MEDIUM|"LOW"->LOW|"MINIMAL"->MINIMAL|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration Priority"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"Priority"j)letto_json=simple_to_jsonto_valueendmoduleReferenceOutput=structtypenonrect={system:String_.toption[@ocaml.doc"The name of the external system"];title:String_.toption[@ocaml.doc"Optional title for the reference"];referenceId:String_.toption[@ocaml.doc"The unique identifier in the external system"];referenceUrl:String_.toption[@ocaml.doc"URL to access the reference in the external system"];associationId:String_.toption[@ocaml.doc"Association identifier of the external system"]}letmake?system=fun?title->fun?referenceId->fun?referenceUrl->fun?associationId->fun()->{system;title;referenceId;referenceUrl;associationId}letto_valuex=structure_to_value[("system",(Option.mapx.system~f:String_.to_value));("title",(Option.mapx.title~f:String_.to_value));("referenceId",(Option.mapx.referenceId~f:String_.to_value));("referenceUrl",(Option.mapx.referenceUrl~f:String_.to_value));("associationId",(Option.mapx.associationId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociationId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"associationId")inletreferenceUrl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"referenceUrl")inletreferenceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"referenceId")inlettitle=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"title")inletsystem=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"system")inmake?associationId?referenceUrl?referenceId?title?system()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociationId=field_mapjson__"associationId"String_.of_jsoninletreferenceUrl=field_mapjson__"referenceUrl"String_.of_jsoninletreferenceId=field_mapjson__"referenceId"String_.of_jsoninlettitle=field_mapjson__"title"String_.of_jsoninletsystem=field_mapjson__"system"String_.of_jsoninmake?associationId?referenceUrl?referenceId?title?system()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Reference information linking a task to external systems - for output without validation"]moduleTaskStatus=structtypenonrect=|PENDING_TRIAGE|LINKED|PENDING_START|IN_PROGRESS|PENDING_CUSTOMER_APPROVAL|COMPLETED|FAILED|TIMED_OUT|CANCELED|Non_static_idofstringletmakei=iletto_string=function|PENDING_TRIAGE->"PENDING_TRIAGE"|LINKED->"LINKED"|PENDING_START->"PENDING_START"|IN_PROGRESS->"IN_PROGRESS"|PENDING_CUSTOMER_APPROVAL->"PENDING_CUSTOMER_APPROVAL"|COMPLETED->"COMPLETED"|FAILED->"FAILED"|TIMED_OUT->"TIMED_OUT"|CANCELED->"CANCELED"|Non_static_ids->sletof_string=function|"PENDING_TRIAGE"->PENDING_TRIAGE|"LINKED"->LINKED|"PENDING_START"->PENDING_START|"IN_PROGRESS"->IN_PROGRESS|"PENDING_CUSTOMER_APPROVAL"->PENDING_CUSTOMER_APPROVAL|"COMPLETED"->COMPLETED|"FAILED"->FAILED|"TIMED_OUT"->TIMED_OUT|"CANCELED"->CANCELED|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration TaskStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TaskStatus"j)letto_json=simple_to_jsonto_valueendmoduleTaskType=structtypenonrect=|INVESTIGATION|EVALUATION|Non_static_idofstringletmakei=iletto_string=function|INVESTIGATION->"INVESTIGATION"|EVALUATION->"EVALUATION"|Non_static_ids->sletof_string=function|"INVESTIGATION"->INVESTIGATION|"EVALUATION"->EVALUATION|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration TaskType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TaskType"j)letto_json=simple_to_jsonto_valueendmoduleAgentSpaceId=structtypenonrect=string[@@ocaml.doc"Unique identifier for an agent space (allows alphanumeric characters and hyphens; 1-64 characters)"]letcontext_="AgentSpaceId"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-zA-Z0-9-]{1,64}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AgentSpaceId"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Unique identifier for an agent space (allows alphanumeric characters and hyphens; 1-64 characters)"]moduleAssociationId=structtypenonrect=string[@@ocaml.doc"Unique identifier for a service association within an AgentSpace"]letcontext_="AssociationId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"[a-zA-Z0-9-]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AssociationId"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Unique identifier for a service association within an AgentSpace"]moduleServiceConfiguration=structtypenonrect={sourceAws:SourceAwsConfiguration.toption[@ocaml.doc"AWS source account configuration for monitoring resources."];aws:AWSConfiguration.toption[@ocaml.doc"AWS monitor account configuration."];github:GitHubConfiguration.toption[@ocaml.doc"GitHub repository integration configuration."];slack:SlackConfiguration.toption[@ocaml.doc"Slack workspace integration configuration."];dynatrace:DynatraceConfiguration.toption[@ocaml.doc"Dynatrace monitoring integration configuration."];servicenow:ServiceNowConfiguration.toption[@ocaml.doc"ServiceNow instance integration configuration."];mcpservernewrelic:MCPServerNewRelicConfiguration.toption[@ocaml.doc"NewRelic instance integration configuration."];mcpserverdatadog:MCPServerDatadogConfiguration.toption[@ocaml.doc"Datadog MCP server integration configuration."];mcpserver:MCPServerConfiguration.toption[@ocaml.doc"MCP (Model Context Protocol) server integration configuration."];gitlab:GitLabConfiguration.toption[@ocaml.doc"GitLab project integration configuration."];mcpserversplunk:MCPServerSplunkConfiguration.toption[@ocaml.doc"Splunk MCP server integration configuration."];eventChannel:EventChannelConfiguration.toption[@ocaml.doc"Event Channel instance integration configuration."];azure:AzureConfiguration.toption[@ocaml.doc"Azure subscription integration configuration."];azuredevops:AzureDevOpsConfiguration.toption[@ocaml.doc"Azure DevOps project integration configuration."];mcpservergrafana:MCPServerGrafanaConfiguration.toption[@ocaml.doc"Grafana MCP server integration configuration."];pagerduty:PagerDutyConfiguration.toption[@ocaml.doc"PagerDuty integration configuration"]}letmake?sourceAws=fun?aws->fun?github->fun?slack->fun?dynatrace->fun?servicenow->fun?mcpservernewrelic->fun?mcpserverdatadog->fun?mcpserver->fun?gitlab->fun?mcpserversplunk->fun?eventChannel->fun?azure->fun?azuredevops->fun?mcpservergrafana->fun?pagerduty->fun()->{sourceAws;aws;github;slack;dynatrace;servicenow;mcpservernewrelic;mcpserverdatadog;mcpserver;gitlab;mcpserversplunk;eventChannel;azure;azuredevops;mcpservergrafana;pagerduty}letto_valuex=structure_to_value[("sourceAws",(Option.mapx.sourceAws~f:SourceAwsConfiguration.to_value));("aws",(Option.mapx.aws~f:AWSConfiguration.to_value));("github",(Option.mapx.github~f:GitHubConfiguration.to_value));("slack",(Option.mapx.slack~f:SlackConfiguration.to_value));("dynatrace",(Option.mapx.dynatrace~f:DynatraceConfiguration.to_value));("servicenow",(Option.mapx.servicenow~f:ServiceNowConfiguration.to_value));("mcpservernewrelic",(Option.mapx.mcpservernewrelic~f:MCPServerNewRelicConfiguration.to_value));("mcpserverdatadog",(Option.mapx.mcpserverdatadog~f:MCPServerDatadogConfiguration.to_value));("mcpserver",(Option.mapx.mcpserver~f:MCPServerConfiguration.to_value));("gitlab",(Option.mapx.gitlab~f:GitLabConfiguration.to_value));("mcpserversplunk",(Option.mapx.mcpserversplunk~f:MCPServerSplunkConfiguration.to_value));("eventChannel",(Option.mapx.eventChannel~f:EventChannelConfiguration.to_value));("azure",(Option.mapx.azure~f:AzureConfiguration.to_value));("azuredevops",(Option.mapx.azuredevops~f:AzureDevOpsConfiguration.to_value));("mcpservergrafana",(Option.mapx.mcpservergrafana~f:MCPServerGrafanaConfiguration.to_value));("pagerduty",(Option.mapx.pagerduty~f:PagerDutyConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letpagerduty=(Option.map~f:PagerDutyConfiguration.of_xml)(Xml.childxml_arg0"pagerduty")inletmcpservergrafana=(Option.map~f:MCPServerGrafanaConfiguration.of_xml)(Xml.childxml_arg0"mcpservergrafana")inletazuredevops=(Option.map~f:AzureDevOpsConfiguration.of_xml)(Xml.childxml_arg0"azuredevops")inletazure=(Option.map~f:AzureConfiguration.of_xml)(Xml.childxml_arg0"azure")inleteventChannel=(Option.map~f:EventChannelConfiguration.of_xml)(Xml.childxml_arg0"eventChannel")inletmcpserversplunk=(Option.map~f:MCPServerSplunkConfiguration.of_xml)(Xml.childxml_arg0"mcpserversplunk")inletgitlab=(Option.map~f:GitLabConfiguration.of_xml)(Xml.childxml_arg0"gitlab")inletmcpserver=(Option.map~f:MCPServerConfiguration.of_xml)(Xml.childxml_arg0"mcpserver")inletmcpserverdatadog=(Option.map~f:MCPServerDatadogConfiguration.of_xml)(Xml.childxml_arg0"mcpserverdatadog")inletmcpservernewrelic=(Option.map~f:MCPServerNewRelicConfiguration.of_xml)(Xml.childxml_arg0"mcpservernewrelic")inletservicenow=(Option.map~f:ServiceNowConfiguration.of_xml)(Xml.childxml_arg0"servicenow")inletdynatrace=(Option.map~f:DynatraceConfiguration.of_xml)(Xml.childxml_arg0"dynatrace")inletslack=(Option.map~f:SlackConfiguration.of_xml)(Xml.childxml_arg0"slack")inletgithub=(Option.map~f:GitHubConfiguration.of_xml)(Xml.childxml_arg0"github")inletaws=(Option.map~f:AWSConfiguration.of_xml)(Xml.childxml_arg0"aws")inletsourceAws=(Option.map~f:SourceAwsConfiguration.of_xml)(Xml.childxml_arg0"sourceAws")inmake?pagerduty?mcpservergrafana?azuredevops?azure?eventChannel?mcpserversplunk?gitlab?mcpserver?mcpserverdatadog?mcpservernewrelic?servicenow?dynatrace?slack?github?aws?sourceAws()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letpagerduty=field_mapjson__"pagerduty"PagerDutyConfiguration.of_jsoninletmcpservergrafana=field_mapjson__"mcpservergrafana"MCPServerGrafanaConfiguration.of_jsoninletazuredevops=field_mapjson__"azuredevops"AzureDevOpsConfiguration.of_jsoninletazure=field_mapjson__"azure"AzureConfiguration.of_jsoninleteventChannel=field_mapjson__"eventChannel"EventChannelConfiguration.of_jsoninletmcpserversplunk=field_mapjson__"mcpserversplunk"MCPServerSplunkConfiguration.of_jsoninletgitlab=field_mapjson__"gitlab"GitLabConfiguration.of_jsoninletmcpserver=field_mapjson__"mcpserver"MCPServerConfiguration.of_jsoninletmcpserverdatadog=field_mapjson__"mcpserverdatadog"MCPServerDatadogConfiguration.of_jsoninletmcpservernewrelic=field_mapjson__"mcpservernewrelic"MCPServerNewRelicConfiguration.of_jsoninletservicenow=field_mapjson__"servicenow"ServiceNowConfiguration.of_jsoninletdynatrace=field_mapjson__"dynatrace"DynatraceConfiguration.of_jsoninletslack=field_mapjson__"slack"SlackConfiguration.of_jsoninletgithub=field_mapjson__"github"GitHubConfiguration.of_jsoninletaws=field_mapjson__"aws"AWSConfiguration.of_jsoninletsourceAws=field_mapjson__"sourceAws"SourceAwsConfiguration.of_jsoninmake?pagerduty?mcpservergrafana?azuredevops?azure?eventChannel?mcpserversplunk?gitlab?mcpserver?mcpserverdatadog?mcpservernewrelic?servicenow?dynatrace?slack?github?aws?sourceAws()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Union of all supported service configuration types. Each service has its own specific configuration structure."]moduleValidationStatus=structtypenonrect=|Valid|Invalid|Pending_confirmation|Non_static_idofstringletmakei=iletto_string=function|Valid->"valid"|Invalid->"invalid"|Pending_confirmation->"pending-confirmation"|Non_static_ids->sletof_string=function|"valid"->Valid|"invalid"->Invalid|"pending-confirmation"->Pending_confirmation|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ValidationStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ValidationStatus"j)letto_json=simple_to_jsonto_valueendmoduleAgentSpaceName=structtypenonrect=string[@@ocaml.doc"Agent space name field"]letcontext_="AgentSpaceName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"[\\p{L}\\p{N}\\p{P}\\p{S}\\p{Z}]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AgentSpaceName"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Agent space name field"]moduleLocale=structtypenonrect=string[@@ocaml.doc"A BCP 47 locale identifier for configuring the language used in agent responses."]letcontext_="Locale"letmakei=letopenResultinok_or_failwith((check_string_mini~min:2)>>=(fun()->(check_string_maxi~max:35)>>=(fun()->check_patterni~pattern:"[a-zA-Z]{2,3}(-[a-zA-Z0-9]{2,8})*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Locale"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"A BCP 47 locale identifier for configuring the language used in agent responses."]moduleCertificateString=structtypenonrect=string[@@ocaml.doc"String type for certificate or certificate chain."]letcontext_="CertificateString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:32768)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CertificateString"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"String type for certificate or certificate chain."]moduleIpAddressType=structtypenonrect=|IPV4|IPV6|DUAL_STACK|Non_static_idofstringletmakei=iletto_string=function|IPV4->"IPV4"|IPV6->"IPV6"|DUAL_STACK->"DUAL_STACK"|Non_static_ids->sletof_string=function|"IPV4"->IPV4|"IPV6"->IPV6|"DUAL_STACK"->DUAL_STACK|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration IpAddressType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"IpAddressType"j)letto_json=simple_to_jsonto_valueendmoduleListOfSecurityGroupIds=structtypenonrect=SecurityGroupId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:5)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SecurityGroupId.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:SecurityGroupId.of_xml)letof_jsonj=list_of_json~kind:"ListOfSecurityGroupIds"~of_json:SecurityGroupId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListOfSubnetIds=structtypenonrect=SubnetId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:20)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SubnetId.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:SubnetId.of_xml)letof_jsonj=list_of_json~kind:"ListOfSubnetIds"~of_json:SubnetId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxIpv4AddressesPerEni=structtypenonrect=int[@@ocaml.doc"The number of IPv4 addresses in each ENI for the Resource Gateway."]letmakei=letopenResultinok_or_failwith((check_int_maxi~max:62)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for MaxIpv4AddressesPerEni"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueend[@@ocaml.doc"The number of IPv4 addresses in each ENI for the Resource Gateway."]modulePortRanges=structtypenonrect=PortRange.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:11)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PortRange.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:PortRange.of_xml)letof_jsonj=list_of_json~kind:"PortRanges"~of_json:PortRange.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleValidationExceptionFieldList=structtypenonrect=ValidationExceptionField.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ValidationExceptionField.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:ValidationExceptionField.of_xml)letof_jsonj=list_of_json~kind:"ValidationExceptionFieldList"~of_json:ValidationExceptionField.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleApiKeyValue=structtypenonrect=string[@@ocaml.doc"API Key Value for service."]letcontext_="ApiKeyValue"letmakei=letopenResultinok_or_failwith(check_string_mini~min:1);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ApiKeyValue"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"API Key Value for service."]moduleWebhookSecret=structtypenonrect=string[@@ocaml.doc"Webhook secret for secure webhook communication."]letcontext_="WebhookSecret"letmakei=iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"WebhookSecret"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Webhook secret for secure webhook communication."]moduleTagKey=structtypenonrect=string[@@ocaml.doc"Tag key string."]letcontext_="TagKey"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:128)>>=(fun()->check_patterni~pattern:"[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagKey"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Tag key string."]moduleTagValue=structtypenonrect=string[@@ocaml.doc"Tag value string."]letcontext_="TagValue"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:256)>>=(fun()->check_patterni~pattern:"[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagValue"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Tag value string."]moduleSendMessageContentBlockDeltaEvent=structtypenonrect={index:Integer.toption[@ocaml.doc"Zero-based index of the content block"];delta:SendMessageContentBlockDelta.toption[@ocaml.doc"The incremental content delta"];sequenceNumber:Integer.toption[@ocaml.doc"Event sequence number"]}letmake?index=fun?delta->fun?sequenceNumber->fun()->{index;delta;sequenceNumber}letto_valuex=structure_to_value[("index",(Option.mapx.index~f:Integer.to_value));("delta",(Option.mapx.delta~f:SendMessageContentBlockDelta.to_value));("sequenceNumber",(Option.mapx.sequenceNumber~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsequenceNumber=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"sequenceNumber")inletdelta=(Option.map~f:SendMessageContentBlockDelta.of_xml)(Xml.childxml_arg0"delta")inletindex=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"index")inmake?sequenceNumber?delta?index()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsequenceNumber=field_mapjson__"sequenceNumber"Integer.of_jsoninletdelta=field_mapjson__"delta"SendMessageContentBlockDelta.of_jsoninletindex=field_mapjson__"index"Integer.of_jsoninmake?sequenceNumber?delta?index()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Event emitted for each incremental content delta within a content block"]moduleSendMessageContentBlockStartEvent=structtypenonrect={index:Integer.toption[@ocaml.doc"Zero-based index of the content block"];type_:String_.toption[@ocaml.doc"The type of content in this block"];id:String_.toption[@ocaml.doc"Block identifier"];parentId:String_.toption[@ocaml.doc"Optional parent block ID for nested content blocks (e.g. subagent tool calls)"];sequenceNumber:Integer.toption[@ocaml.doc"Event sequence number"]}letmake?index=fun?type_->fun?id->fun?parentId->fun?sequenceNumber->fun()->{index;type_;id;parentId;sequenceNumber}letto_valuex=structure_to_value[("index",(Option.mapx.index~f:Integer.to_value));("type",(Option.mapx.type_~f:String_.to_value));("id",(Option.mapx.id~f:String_.to_value));("parentId",(Option.mapx.parentId~f:String_.to_value));("sequenceNumber",(Option.mapx.sequenceNumber~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsequenceNumber=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"sequenceNumber")inletparentId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"parentId")inletid=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"id")inlettype_=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"type")inletindex=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"index")inmake?sequenceNumber?parentId?id?type_?index()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsequenceNumber=field_mapjson__"sequenceNumber"Integer.of_jsoninletparentId=field_mapjson__"parentId"String_.of_jsoninletid=field_mapjson__"id"String_.of_jsoninlettype_=field_mapjson__"type"String_.of_jsoninletindex=field_mapjson__"index"Integer.of_jsoninmake?sequenceNumber?parentId?id?type_?index()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Event emitted when a new content block starts"]moduleSendMessageContentBlockStopEvent=structtypenonrect={index:Integer.toption[@ocaml.doc"Zero-based index of the content block"];type_:String_.toption[@ocaml.doc"The type of content in this block"];text:String_.toption[@ocaml.doc"The accumulated complete content text"];last:Boolean.toption[@ocaml.doc"Whether this is the final content block in the response"];sequenceNumber:Integer.toption[@ocaml.doc"Event sequence number"]}letmake?index=fun?type_->fun?text->fun?last->fun?sequenceNumber->fun()->{index;type_;text;last;sequenceNumber}letto_valuex=structure_to_value[("index",(Option.mapx.index~f:Integer.to_value));("type",(Option.mapx.type_~f:String_.to_value));("text",(Option.mapx.text~f:String_.to_value));("last",(Option.mapx.last~f:Boolean.to_value));("sequenceNumber",(Option.mapx.sequenceNumber~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsequenceNumber=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"sequenceNumber")inletlast=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"last")inlettext=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"text")inlettype_=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"type")inletindex=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"index")inmake?sequenceNumber?last?text?type_?index()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsequenceNumber=field_mapjson__"sequenceNumber"Integer.of_jsoninletlast=field_mapjson__"last"Boolean.of_jsoninlettext=field_mapjson__"text"String_.of_jsoninlettype_=field_mapjson__"type"String_.of_jsoninletindex=field_mapjson__"index"Integer.of_jsoninmake?sequenceNumber?last?text?type_?index()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Event emitted when a content block is complete"]moduleSendMessageHeartbeatEvent=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Heartbeat event to keep connection alive"]moduleSendMessageResponseCompletedEvent=structtypenonrect={responseId:String_.toption[@ocaml.doc"The response ID"];usage:SendMessageUsageInfo.toption[@ocaml.doc"Token usage information"];sequenceNumber:Integer.toption[@ocaml.doc"Event sequence number"]}letmake?responseId=fun?usage->fun?sequenceNumber->fun()->{responseId;usage;sequenceNumber}letto_valuex=structure_to_value[("responseId",(Option.mapx.responseId~f:String_.to_value));("usage",(Option.mapx.usage~f:SendMessageUsageInfo.to_value));("sequenceNumber",(Option.mapx.sequenceNumber~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsequenceNumber=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"sequenceNumber")inletusage=(Option.map~f:SendMessageUsageInfo.of_xml)(Xml.childxml_arg0"usage")inletresponseId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"responseId")inmake?sequenceNumber?usage?responseId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsequenceNumber=field_mapjson__"sequenceNumber"Integer.of_jsoninletusage=field_mapjson__"usage"SendMessageUsageInfo.of_jsoninletresponseId=field_mapjson__"responseId"String_.of_jsoninmake?sequenceNumber?usage?responseId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Event emitted when the response completes successfully"]moduleSendMessageResponseCreatedEvent=structtypenonrect={responseId:String_.toption[@ocaml.doc"The response ID"];sequenceNumber:Integer.toption[@ocaml.doc"Event sequence number"]}letmake?responseId=fun?sequenceNumber->fun()->{responseId;sequenceNumber}letto_valuex=structure_to_value[("responseId",(Option.mapx.responseId~f:String_.to_value));("sequenceNumber",(Option.mapx.sequenceNumber~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsequenceNumber=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"sequenceNumber")inletresponseId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"responseId")inmake?sequenceNumber?responseId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsequenceNumber=field_mapjson__"sequenceNumber"Integer.of_jsoninletresponseId=field_mapjson__"responseId"String_.of_jsoninmake?sequenceNumber?responseId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Event emitted when the response is created"]moduleSendMessageResponseFailedEvent=structtypenonrect={responseId:String_.toption[@ocaml.doc"The response ID"];errorCode:String_.toption[@ocaml.doc"Error code"];errorMessage:String_.toption[@ocaml.doc"Error message"];sequenceNumber:Integer.toption[@ocaml.doc"Event sequence number"]}letmake?responseId=fun?errorCode->fun?errorMessage->fun?sequenceNumber->fun()->{responseId;errorCode;errorMessage;sequenceNumber}letto_valuex=structure_to_value[("responseId",(Option.mapx.responseId~f:String_.to_value));("errorCode",(Option.mapx.errorCode~f:String_.to_value));("errorMessage",(Option.mapx.errorMessage~f:String_.to_value));("sequenceNumber",(Option.mapx.sequenceNumber~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsequenceNumber=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"sequenceNumber")inleterrorMessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"errorMessage")inleterrorCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"errorCode")inletresponseId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"responseId")inmake?sequenceNumber?errorMessage?errorCode?responseId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsequenceNumber=field_mapjson__"sequenceNumber"Integer.of_jsoninleterrorMessage=field_mapjson__"errorMessage"String_.of_jsoninleterrorCode=field_mapjson__"errorCode"String_.of_jsoninletresponseId=field_mapjson__"responseId"String_.of_jsoninmake?sequenceNumber?errorMessage?errorCode?responseId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Event emitted when the response fails"]moduleSendMessageResponseInProgressEvent=structtypenonrect={responseId:String_.toption[@ocaml.doc"The response ID"];sequenceNumber:Integer.toption[@ocaml.doc"Event sequence number"]}letmake?responseId=fun?sequenceNumber->fun()->{responseId;sequenceNumber}letto_valuex=structure_to_value[("responseId",(Option.mapx.responseId~f:String_.to_value));("sequenceNumber",(Option.mapx.sequenceNumber~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsequenceNumber=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"sequenceNumber")inletresponseId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"responseId")inmake?sequenceNumber?responseId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsequenceNumber=field_mapjson__"sequenceNumber"Integer.of_jsoninletresponseId=field_mapjson__"responseId"String_.of_jsoninmake?sequenceNumber?responseId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Event emitted while the response is being generated"]moduleSendMessageSummaryEvent=structtypenonrect={content:String_.toption[@ocaml.doc"Summary content"];sequenceNumber:Integer.toption[@ocaml.doc"Event sequence number"]}letmake?content=fun?sequenceNumber->fun()->{content;sequenceNumber}letto_valuex=structure_to_value[("content",(Option.mapx.content~f:String_.to_value));("sequenceNumber",(Option.mapx.sequenceNumber~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsequenceNumber=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"sequenceNumber")inletcontent=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"content")inmake?sequenceNumber?content()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsequenceNumber=field_mapjson__"sequenceNumber"Integer.of_jsoninletcontent=field_mapjson__"content"String_.of_jsoninmake?sequenceNumber?content()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Event summarizing agent actions"]moduleOAuthAdditionalStepDetails=structtypenonrect={authorizationUrl:String_.toption[@ocaml.doc"The URL to redirect the user to for OAuth authorization."]}letmake?authorizationUrl=fun()->{authorizationUrl}letto_valuex=structure_to_value[("authorizationUrl",(Option.mapx.authorizationUrl~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthorizationUrl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"authorizationUrl")inmake?authorizationUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthorizationUrl=field_mapjson__"authorizationUrl"String_.of_jsoninmake?authorizationUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Details for completing OAuth authorization step."]moduleDatadogServiceDetails=structtypenonrect={name:DatadogServiceDetailsNameString.t[@ocaml.doc"MCP server name."];endpoint:DatadogServiceDetailsEndpointString.t[@ocaml.doc"MCP server endpoint URL."];description:DatadogServiceDetailsDescriptionString.toption[@ocaml.doc"Optional description for the MCP server."];authorizationConfig:DatadogAuthorizationConfig.t[@ocaml.doc"Datadog MCP server authorization configuration (only authorization discovery is supported)."]}letcontext_="DatadogServiceDetails"letmake?description=fun~name->fun~endpoint->fun~authorizationConfig->fun()->{description;name;endpoint;authorizationConfig}letto_valuex=structure_to_value[("name",(Some(DatadogServiceDetailsNameString.to_valuex.name)));("endpoint",(Some(DatadogServiceDetailsEndpointString.to_valuex.endpoint)));("description",(Option.mapx.description~f:DatadogServiceDetailsDescriptionString.to_value));("authorizationConfig",(Some(DatadogAuthorizationConfig.to_valuex.authorizationConfig)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthorizationConfig=DatadogAuthorizationConfig.of_xml(Xml.child_exn~context:context_xml_arg0"authorizationConfig")inletdescription=(Option.map~f:DatadogServiceDetailsDescriptionString.of_xml)(Xml.childxml_arg0"description")inletendpoint=DatadogServiceDetailsEndpointString.of_xml(Xml.child_exn~context:context_xml_arg0"endpoint")inletname=DatadogServiceDetailsNameString.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~authorizationConfig?description~endpoint~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthorizationConfig=field_map_exnjson__"authorizationConfig"DatadogAuthorizationConfig.of_jsoninletdescription=field_mapjson__"description"DatadogServiceDetailsDescriptionString.of_jsoninletendpoint=field_map_exnjson__"endpoint"DatadogServiceDetailsEndpointString.of_jsoninletname=field_map_exnjson__"name"DatadogServiceDetailsNameString.of_jsoninmake~authorizationConfig?description~endpoint~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Complete service details for Datadog MCP server integration."]moduleDynatraceServiceDetails=structtypenonrect={accountUrn:DynatraceServiceDetailsAccountUrnString.t[@ocaml.doc"Dynatrace resource account urn."];authorizationConfig:DynatraceServiceAuthorizationConfig.toption[@ocaml.doc"Dynatrace OAuth client credentials configuration. Use this when registering with OAuth client credentials flow."]}letcontext_="DynatraceServiceDetails"letmake?authorizationConfig=fun~accountUrn->fun()->{authorizationConfig;accountUrn}letto_valuex=structure_to_value[("accountUrn",(Some(DynatraceServiceDetailsAccountUrnString.to_valuex.accountUrn)));("authorizationConfig",(Option.mapx.authorizationConfig~f:DynatraceServiceAuthorizationConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthorizationConfig=(Option.map~f:DynatraceServiceAuthorizationConfig.of_xml)(Xml.childxml_arg0"authorizationConfig")inletaccountUrn=DynatraceServiceDetailsAccountUrnString.of_xml(Xml.child_exn~context:context_xml_arg0"accountUrn")inmake?authorizationConfig~accountUrn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthorizationConfig=field_mapjson__"authorizationConfig"DynatraceServiceAuthorizationConfig.of_jsoninletaccountUrn=field_map_exnjson__"accountUrn"DynatraceServiceDetailsAccountUrnString.of_jsoninmake?authorizationConfig~accountUrn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Complete service details for Dynatrace integration."]moduleEventChannelDetails=structtypenonrect={type_:EventChannelType.toption[@ocaml.doc"The type of event channel"]}letmake?type_=fun()->{type_}letto_valuex=structure_to_value[("type",(Option.mapx.type_~f:EventChannelType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettype_=(Option.map~f:EventChannelType.of_xml)(Xml.childxml_arg0"type")inmake?type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettype_=field_mapjson__"type"EventChannelType.of_jsoninmake?type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Service details for Event Channel integration."]moduleGitLabDetails=structtypenonrect={targetUrl:GitLabDetailsTargetUrlString.t[@ocaml.doc"GitLab instance URL (e.g., https://gitlab.com or self-hosted instance)."];tokenType:GitLabTokenType.t[@ocaml.doc"Type of GitLab access token"];tokenValue:GitLabDetailsTokenValueString.t[@ocaml.doc"GitLab access token value"];groupId:String_.toption[@ocaml.doc"Optional GitLab group ID for group-level access tokens"]}letcontext_="GitLabDetails"letmake?groupId=fun~targetUrl->fun~tokenType->fun~tokenValue->fun()->{groupId;targetUrl;tokenType;tokenValue}letto_valuex=structure_to_value[("targetUrl",(Some(GitLabDetailsTargetUrlString.to_valuex.targetUrl)));("tokenType",(Some(GitLabTokenType.to_valuex.tokenType)));("tokenValue",(Some(GitLabDetailsTokenValueString.to_valuex.tokenValue)));("groupId",(Option.mapx.groupId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgroupId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"groupId")inlettokenValue=GitLabDetailsTokenValueString.of_xml(Xml.child_exn~context:context_xml_arg0"tokenValue")inlettokenType=GitLabTokenType.of_xml(Xml.child_exn~context:context_xml_arg0"tokenType")inlettargetUrl=GitLabDetailsTargetUrlString.of_xml(Xml.child_exn~context:context_xml_arg0"targetUrl")inmake?groupId~tokenValue~tokenType~targetUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgroupId=field_mapjson__"groupId"String_.of_jsoninlettokenValue=field_map_exnjson__"tokenValue"GitLabDetailsTokenValueString.of_jsoninlettokenType=field_map_exnjson__"tokenType"GitLabTokenType.of_jsoninlettargetUrl=field_map_exnjson__"targetUrl"GitLabDetailsTargetUrlString.of_jsoninmake?groupId~tokenValue~tokenType~targetUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Service details for GitLab integration."]moduleGrafanaServiceDetails=structtypenonrect={name:GrafanaServiceDetailsNameString.t[@ocaml.doc"MCP server name."];endpoint:GrafanaServiceDetailsEndpointString.t[@ocaml.doc"MCP server endpoint URL."];description:GrafanaServiceDetailsDescriptionString.toption[@ocaml.doc"Optional description for the MCP server."];authorizationConfig:MCPServerAuthorizationConfig.t[@ocaml.doc"Grafana MCP server authorization configuration (experimental)."]}letcontext_="GrafanaServiceDetails"letmake?description=fun~name->fun~endpoint->fun~authorizationConfig->fun()->{description;name;endpoint;authorizationConfig}letto_valuex=structure_to_value[("name",(Some(GrafanaServiceDetailsNameString.to_valuex.name)));("endpoint",(Some(GrafanaServiceDetailsEndpointString.to_valuex.endpoint)));("description",(Option.mapx.description~f:GrafanaServiceDetailsDescriptionString.to_value));("authorizationConfig",(Some(MCPServerAuthorizationConfig.to_valuex.authorizationConfig)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthorizationConfig=MCPServerAuthorizationConfig.of_xml(Xml.child_exn~context:context_xml_arg0"authorizationConfig")inletdescription=(Option.map~f:GrafanaServiceDetailsDescriptionString.of_xml)(Xml.childxml_arg0"description")inletendpoint=GrafanaServiceDetailsEndpointString.of_xml(Xml.child_exn~context:context_xml_arg0"endpoint")inletname=GrafanaServiceDetailsNameString.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~authorizationConfig?description~endpoint~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthorizationConfig=field_map_exnjson__"authorizationConfig"MCPServerAuthorizationConfig.of_jsoninletdescription=field_mapjson__"description"GrafanaServiceDetailsDescriptionString.of_jsoninletendpoint=field_map_exnjson__"endpoint"GrafanaServiceDetailsEndpointString.of_jsoninletname=field_map_exnjson__"name"GrafanaServiceDetailsNameString.of_jsoninmake~authorizationConfig?description~endpoint~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Complete service details for Grafana MCP server integration."]moduleMCPServerDetails=structtypenonrect={name:MCPServerDetailsNameString.t[@ocaml.doc"MCP server name."];endpoint:MCPServerDetailsEndpointString.t[@ocaml.doc"MCP server endpoint URL."];description:MCPServerDetailsDescriptionString.toption[@ocaml.doc"Optional description for the MCP server."];authorizationConfig:MCPServerAuthorizationConfig.t[@ocaml.doc"MCP server authorization configuration."]}letcontext_="MCPServerDetails"letmake?description=fun~name->fun~endpoint->fun~authorizationConfig->fun()->{description;name;endpoint;authorizationConfig}letto_valuex=structure_to_value[("name",(Some(MCPServerDetailsNameString.to_valuex.name)));("endpoint",(Some(MCPServerDetailsEndpointString.to_valuex.endpoint)));("description",(Option.mapx.description~f:MCPServerDetailsDescriptionString.to_value));("authorizationConfig",(Some(MCPServerAuthorizationConfig.to_valuex.authorizationConfig)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthorizationConfig=MCPServerAuthorizationConfig.of_xml(Xml.child_exn~context:context_xml_arg0"authorizationConfig")inletdescription=(Option.map~f:MCPServerDetailsDescriptionString.of_xml)(Xml.childxml_arg0"description")inletendpoint=MCPServerDetailsEndpointString.of_xml(Xml.child_exn~context:context_xml_arg0"endpoint")inletname=MCPServerDetailsNameString.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~authorizationConfig?description~endpoint~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthorizationConfig=field_map_exnjson__"authorizationConfig"MCPServerAuthorizationConfig.of_jsoninletdescription=field_mapjson__"description"MCPServerDetailsDescriptionString.of_jsoninletendpoint=field_map_exnjson__"endpoint"MCPServerDetailsEndpointString.of_jsoninletname=field_map_exnjson__"name"MCPServerDetailsNameString.of_jsoninmake~authorizationConfig?description~endpoint~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Complete service details for MCP server integration."]moduleNewRelicServiceDetails=structtypenonrect={authorizationConfig:NewRelicServiceAuthorizationConfig.t[@ocaml.doc"New Relic MCP server authorization configuration."]}letcontext_="NewRelicServiceDetails"letmake~authorizationConfig=fun()->{authorizationConfig}letto_valuex=structure_to_value[("authorizationConfig",(Some(NewRelicServiceAuthorizationConfig.to_valuex.authorizationConfig)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthorizationConfig=NewRelicServiceAuthorizationConfig.of_xml(Xml.child_exn~context:context_xml_arg0"authorizationConfig")inmake~authorizationConfig()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthorizationConfig=field_map_exnjson__"authorizationConfig"NewRelicServiceAuthorizationConfig.of_jsoninmake~authorizationConfig()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Complete service details for New Relic integration."]modulePagerDutyDetails=structtypenonrect={scopes:PagerDutyScopes.t[@ocaml.doc"PagerDuty scopes."];authorizationConfig:PagerDutyAuthorizationConfig.t[@ocaml.doc"PagerDuty authorization configuration"]}letcontext_="PagerDutyDetails"letmake~scopes=fun~authorizationConfig->fun()->{scopes;authorizationConfig}letto_valuex=structure_to_value[("scopes",(Some(PagerDutyScopes.to_valuex.scopes)));("authorizationConfig",(Some(PagerDutyAuthorizationConfig.to_valuex.authorizationConfig)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthorizationConfig=PagerDutyAuthorizationConfig.of_xml(Xml.child_exn~context:context_xml_arg0"authorizationConfig")inletscopes=PagerDutyScopes.of_xml(Xml.child_exn~context:context_xml_arg0"scopes")inmake~authorizationConfig~scopes()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthorizationConfig=field_map_exnjson__"authorizationConfig"PagerDutyAuthorizationConfig.of_jsoninletscopes=field_map_exnjson__"scopes"PagerDutyScopes.of_jsoninmake~authorizationConfig~scopes()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Complete service details for PagerDuty integration"]moduleServiceNowServiceDetails=structtypenonrect={instanceUrl:ServiceNowInstanceUrl.t[@ocaml.doc"ServiceNow instance URL."];authorizationConfig:ServiceNowServiceAuthorizationConfig.toption[@ocaml.doc"ServiceNow OAuth client credentials configuration. Use this when registering with OAuth client credentials flow."]}letcontext_="ServiceNowServiceDetails"letmake?authorizationConfig=fun~instanceUrl->fun()->{authorizationConfig;instanceUrl}letto_valuex=structure_to_value[("instanceUrl",(Some(ServiceNowInstanceUrl.to_valuex.instanceUrl)));("authorizationConfig",(Option.mapx.authorizationConfig~f:ServiceNowServiceAuthorizationConfig.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthorizationConfig=(Option.map~f:ServiceNowServiceAuthorizationConfig.of_xml)(Xml.childxml_arg0"authorizationConfig")inletinstanceUrl=ServiceNowInstanceUrl.of_xml(Xml.child_exn~context:context_xml_arg0"instanceUrl")inmake?authorizationConfig~instanceUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthorizationConfig=field_mapjson__"authorizationConfig"ServiceNowServiceAuthorizationConfig.of_jsoninletinstanceUrl=field_map_exnjson__"instanceUrl"ServiceNowInstanceUrl.of_jsoninmake?authorizationConfig~instanceUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Complete service details for ServiceNow integration."]moduleWebhook=structtypenonrect={webhookUrl:WebhookWebhookUrlString.toption[@ocaml.doc"Webhook endpoint URL."];webhookType:WebhookType.toption[@ocaml.doc"Webhook authentication type."];webhookId:WebhookWebhookIdString.toption[@ocaml.doc"The unique identifier of the Webhook"]}letmake?webhookUrl=fun?webhookType->fun?webhookId->fun()->{webhookUrl;webhookType;webhookId}letto_valuex=structure_to_value[("webhookUrl",(Option.mapx.webhookUrl~f:WebhookWebhookUrlString.to_value));("webhookType",(Option.mapx.webhookType~f:WebhookType.to_value));("webhookId",(Option.mapx.webhookId~f:WebhookWebhookIdString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwebhookId=(Option.map~f:WebhookWebhookIdString.of_xml)(Xml.childxml_arg0"webhookId")inletwebhookType=(Option.map~f:WebhookType.of_xml)(Xml.childxml_arg0"webhookType")inletwebhookUrl=(Option.map~f:WebhookWebhookUrlString.of_xml)(Xml.childxml_arg0"webhookUrl")inmake?webhookId?webhookType?webhookUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwebhookId=field_mapjson__"webhookId"WebhookWebhookIdString.of_jsoninletwebhookType=field_mapjson__"webhookType"WebhookType.of_jsoninletwebhookUrl=field_mapjson__"webhookUrl"WebhookWebhookUrlString.of_jsoninmake?webhookId?webhookType?webhookUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a complete Webhook with all its properties, and unique identifier."]moduleRegisteredService=structtypenonrect={serviceId:ServiceId.toption[@ocaml.doc"The unique identifier of a service."];serviceType:Service.toption[@ocaml.doc"The service type e.g github or dynatrace"];name:ServiceName.toption[@ocaml.doc"The display name of the registered service."];accessibleResources:DocumentList.toption[@ocaml.doc"List of accessible resources for this service."];additionalServiceDetails:AdditionalServiceDetails.toption[@ocaml.doc"Additional details specific to the service type."];kmsKeyArn:KmsKeyArn.toption[@ocaml.doc"The ARN of the AWS Key Management Service (AWS KMS) customer managed key that's used to encrypt resources."];privateConnectionName:PrivateConnectionName.toption[@ocaml.doc"The name of the private connection used for VPC connectivity."]}letmake?serviceId=fun?serviceType->fun?name->fun?accessibleResources->fun?additionalServiceDetails->fun?kmsKeyArn->fun?privateConnectionName->fun()->{serviceId;serviceType;name;accessibleResources;additionalServiceDetails;kmsKeyArn;privateConnectionName}letto_valuex=structure_to_value[("serviceId",(Option.mapx.serviceId~f:ServiceId.to_value));("serviceType",(Option.mapx.serviceType~f:Service.to_value));("name",(Option.mapx.name~f:ServiceName.to_value));("accessibleResources",(Option.mapx.accessibleResources~f:DocumentList.to_value));("additionalServiceDetails",(Option.mapx.additionalServiceDetails~f:AdditionalServiceDetails.to_value));("kmsKeyArn",(Option.mapx.kmsKeyArn~f:KmsKeyArn.to_value));("privateConnectionName",(Option.mapx.privateConnectionName~f:PrivateConnectionName.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprivateConnectionName=(Option.map~f:PrivateConnectionName.of_xml)(Xml.childxml_arg0"privateConnectionName")inletkmsKeyArn=(Option.map~f:KmsKeyArn.of_xml)(Xml.childxml_arg0"kmsKeyArn")inletadditionalServiceDetails=(Option.map~f:AdditionalServiceDetails.of_xml)(Xml.childxml_arg0"additionalServiceDetails")inletaccessibleResources=(Option.map~f:DocumentList.of_xml)(Xml.childxml_arg0"accessibleResources")inletname=(Option.map~f:ServiceName.of_xml)(Xml.childxml_arg0"name")inletserviceType=(Option.map~f:Service.of_xml)(Xml.childxml_arg0"serviceType")inletserviceId=(Option.map~f:ServiceId.of_xml)(Xml.childxml_arg0"serviceId")inmake?privateConnectionName?kmsKeyArn?additionalServiceDetails?accessibleResources?name?serviceType?serviceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprivateConnectionName=field_mapjson__"privateConnectionName"PrivateConnectionName.of_jsoninletkmsKeyArn=field_mapjson__"kmsKeyArn"KmsKeyArn.of_jsoninletadditionalServiceDetails=field_mapjson__"additionalServiceDetails"AdditionalServiceDetails.of_jsoninletaccessibleResources=field_mapjson__"accessibleResources"DocumentList.of_jsoninletname=field_mapjson__"name"ServiceName.of_jsoninletserviceType=field_mapjson__"serviceType"Service.of_jsoninletserviceId=field_mapjson__"serviceId"ServiceId.of_jsoninmake?privateConnectionName?kmsKeyArn?additionalServiceDetails?accessibleResources?name?serviceType?serviceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a registered service with its configuration and accessible resources."]moduleRecommendation=structtypenonrect={agentSpaceArn:String_.toption[@ocaml.doc"ARN of the agent space this recommendation belongs to"];recommendationId:String_.toption[@ocaml.doc"The unique identifier for this recommendation"];taskId:String_.toption[@ocaml.doc"ID of the task that generated the recommendation"];goalId:String_.toption[@ocaml.doc"ID of the goal this recommendation is associated with"];title:String_.toption[@ocaml.doc"The title of the recommendation"];content:RecommendationContent.toption[@ocaml.doc"Content of the recommendation"];status:RecommendationStatus.toption[@ocaml.doc"Current status of the recommendation"];priority:RecommendationPriority.toption[@ocaml.doc"Priority level of the recommendation"];goalVersion:Long.toption[@ocaml.doc"Version of the goal at the time this recommendation was generated"];additionalContext:String_.toption[@ocaml.doc"Additional context for recommendation"];createdAt:BackLogTimestamp.toption[@ocaml.doc"Timestamp when this recommendation was created"];updatedAt:BackLogTimestamp.toption[@ocaml.doc"Timestamp when this recommendation was last updated"];version:Long.toption[@ocaml.doc"Version number for optimistic locking"]}letmake?agentSpaceArn=fun?recommendationId->fun?taskId->fun?goalId->fun?title->fun?content->fun?status->fun?priority->fun?goalVersion->fun?additionalContext->fun?createdAt->fun?updatedAt->fun?version->fun()->{agentSpaceArn;recommendationId;taskId;goalId;title;content;status;priority;goalVersion;additionalContext;createdAt;updatedAt;version}letto_valuex=structure_to_value[("agentSpaceArn",(Option.mapx.agentSpaceArn~f:String_.to_value));("recommendationId",(Option.mapx.recommendationId~f:String_.to_value));("taskId",(Option.mapx.taskId~f:String_.to_value));("goalId",(Option.mapx.goalId~f:String_.to_value));("title",(Option.mapx.title~f:String_.to_value));("content",(Option.mapx.content~f:RecommendationContent.to_value));("status",(Option.mapx.status~f:RecommendationStatus.to_value));("priority",(Option.mapx.priority~f:RecommendationPriority.to_value));("goalVersion",(Option.mapx.goalVersion~f:Long.to_value));("additionalContext",(Option.mapx.additionalContext~f:String_.to_value));("createdAt",(Option.mapx.createdAt~f:BackLogTimestamp.to_value));("updatedAt",(Option.mapx.updatedAt~f:BackLogTimestamp.to_value));("version",(Option.mapx.version~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letversion=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"version")inletupdatedAt=(Option.map~f:BackLogTimestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletcreatedAt=(Option.map~f:BackLogTimestamp.of_xml)(Xml.childxml_arg0"createdAt")inletadditionalContext=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"additionalContext")inletgoalVersion=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"goalVersion")inletpriority=(Option.map~f:RecommendationPriority.of_xml)(Xml.childxml_arg0"priority")inletstatus=(Option.map~f:RecommendationStatus.of_xml)(Xml.childxml_arg0"status")inletcontent=(Option.map~f:RecommendationContent.of_xml)(Xml.childxml_arg0"content")inlettitle=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"title")inletgoalId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"goalId")inlettaskId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"taskId")inletrecommendationId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"recommendationId")inletagentSpaceArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"agentSpaceArn")inmake?version?updatedAt?createdAt?additionalContext?goalVersion?priority?status?content?title?goalId?taskId?recommendationId?agentSpaceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letversion=field_mapjson__"version"Long.of_jsoninletupdatedAt=field_mapjson__"updatedAt"BackLogTimestamp.of_jsoninletcreatedAt=field_mapjson__"createdAt"BackLogTimestamp.of_jsoninletadditionalContext=field_mapjson__"additionalContext"String_.of_jsoninletgoalVersion=field_mapjson__"goalVersion"Long.of_jsoninletpriority=field_mapjson__"priority"RecommendationPriority.of_jsoninletstatus=field_mapjson__"status"RecommendationStatus.of_jsoninletcontent=field_mapjson__"content"RecommendationContent.of_jsoninlettitle=field_mapjson__"title"String_.of_jsoninletgoalId=field_mapjson__"goalId"String_.of_jsoninlettaskId=field_mapjson__"taskId"String_.of_jsoninletrecommendationId=field_mapjson__"recommendationId"String_.of_jsoninletagentSpaceArn=field_mapjson__"agentSpaceArn"String_.of_jsoninmake?version?updatedAt?createdAt?additionalContext?goalVersion?priority?status?content?title?goalId?taskId?recommendationId?agentSpaceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a recommendation with all its properties and metadata"]modulePrivateConnectionSummary=structtypenonrect={name:PrivateConnectionName.toption[@ocaml.doc"The name of the Private Connection."];type_:PrivateConnectionType.toption[@ocaml.doc"The type of the Private Connection."];resourceGatewayId:ResourceGatewayArn.toption[@ocaml.doc"The service-managed Resource Gateway ARN. Only present for service-managed Private Connections."];hostAddress:IpAddressOrDnsName.toption[@ocaml.doc"IP address or DNS name of the target resource. Only present for service-managed Private Connections."];vpcId:VpcId.toption[@ocaml.doc"VPC identifier of the service-managed Resource Gateway. Only present for service-managed Private Connections."];resourceConfigurationId:ResourceConfigurationArn.toption[@ocaml.doc"The Resource Configuration ARN. Only present for self-managed Private Connections."];status:PrivateConnectionStatus.toption[@ocaml.doc"The status of the Private Connection."];certificateExpiryTime:SyntheticTimestamp_date_time.toption[@ocaml.doc"The expiry time of the certificate associated with the Private Connection. Only present when a certificate is associated."]}letmake?name=fun?type_->fun?resourceGatewayId->fun?hostAddress->fun?vpcId->fun?resourceConfigurationId->fun?status->fun?certificateExpiryTime->fun()->{name;type_;resourceGatewayId;hostAddress;vpcId;resourceConfigurationId;status;certificateExpiryTime}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:PrivateConnectionName.to_value));("type",(Option.mapx.type_~f:PrivateConnectionType.to_value));("resourceGatewayId",(Option.mapx.resourceGatewayId~f:ResourceGatewayArn.to_value));("hostAddress",(Option.mapx.hostAddress~f:IpAddressOrDnsName.to_value));("vpcId",(Option.mapx.vpcId~f:VpcId.to_value));("resourceConfigurationId",(Option.mapx.resourceConfigurationId~f:ResourceConfigurationArn.to_value));("status",(Option.mapx.status~f:PrivateConnectionStatus.to_value));("certificateExpiryTime",(Option.mapx.certificateExpiryTime~f:SyntheticTimestamp_date_time.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateExpiryTime=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"certificateExpiryTime")inletstatus=(Option.map~f:PrivateConnectionStatus.of_xml)(Xml.childxml_arg0"status")inletresourceConfigurationId=(Option.map~f:ResourceConfigurationArn.of_xml)(Xml.childxml_arg0"resourceConfigurationId")inletvpcId=(Option.map~f:VpcId.of_xml)(Xml.childxml_arg0"vpcId")inlethostAddress=(Option.map~f:IpAddressOrDnsName.of_xml)(Xml.childxml_arg0"hostAddress")inletresourceGatewayId=(Option.map~f:ResourceGatewayArn.of_xml)(Xml.childxml_arg0"resourceGatewayId")inlettype_=(Option.map~f:PrivateConnectionType.of_xml)(Xml.childxml_arg0"type")inletname=(Option.map~f:PrivateConnectionName.of_xml)(Xml.childxml_arg0"name")inmake?certificateExpiryTime?status?resourceConfigurationId?vpcId?hostAddress?resourceGatewayId?type_?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateExpiryTime=field_mapjson__"certificateExpiryTime"SyntheticTimestamp_date_time.of_jsoninletstatus=field_mapjson__"status"PrivateConnectionStatus.of_jsoninletresourceConfigurationId=field_mapjson__"resourceConfigurationId"ResourceConfigurationArn.of_jsoninletvpcId=field_mapjson__"vpcId"VpcId.of_jsoninlethostAddress=field_mapjson__"hostAddress"IpAddressOrDnsName.of_jsoninletresourceGatewayId=field_mapjson__"resourceGatewayId"ResourceGatewayArn.of_jsoninlettype_=field_mapjson__"type"PrivateConnectionType.of_jsoninletname=field_mapjson__"name"PrivateConnectionName.of_jsoninmake?certificateExpiryTime?status?resourceConfigurationId?vpcId?hostAddress?resourceGatewayId?type_?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Summary of a Private Connection."]modulePendingMessage=structtypenonrect={messageId:String_.toption[@ocaml.doc"The unique identifier for this pending message."];message:Message.toption[@ocaml.doc"The message content."]}letmake?messageId=fun?message->fun()->{messageId;message}letto_valuex=structure_to_value[("messageId",(Option.mapx.messageId~f:String_.to_value));("message",(Option.mapx.message~f:Message.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Message.of_xml)(Xml.childxml_arg0"message")inletmessageId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"messageId")inmake?message?messageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"Message.of_jsoninletmessageId=field_mapjson__"messageId"String_.of_jsoninmake?message?messageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a pending message in an agent execution."]moduleJournalRecord=structtypenonrect={agentSpaceId:String_.toption[@ocaml.doc"The unique identifier for the agent space containing this record"];executionId:String_.toption[@ocaml.doc"The execution ID associated with this journal record"];recordId:String_.toption[@ocaml.doc"The unique identifier for this journal record"];content:Document.toption[@ocaml.doc"The content of this journal record"];createdAt:JournalTimestamp.toption[@ocaml.doc"Timestamp when this journal record was created"];recordType:String_.toption[@ocaml.doc"The type of this journal record"];userReference:UserReference.toption[@ocaml.doc"Reference to the user associated with this journal record"]}letmake?agentSpaceId=fun?executionId->fun?recordId->fun?content->fun?createdAt->fun?recordType->fun?userReference->fun()->{agentSpaceId;executionId;recordId;content;createdAt;recordType;userReference}letto_valuex=structure_to_value[("agentSpaceId",(Option.mapx.agentSpaceId~f:String_.to_value));("executionId",(Option.mapx.executionId~f:String_.to_value));("recordId",(Option.mapx.recordId~f:String_.to_value));("content",(Option.mapx.content~f:Document.to_value));("createdAt",(Option.mapx.createdAt~f:JournalTimestamp.to_value));("recordType",(Option.mapx.recordType~f:String_.to_value));("userReference",(Option.mapx.userReference~f:UserReference.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserReference=(Option.map~f:UserReference.of_xml)(Xml.childxml_arg0"userReference")inletrecordType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"recordType")inletcreatedAt=(Option.map~f:JournalTimestamp.of_xml)(Xml.childxml_arg0"createdAt")inletcontent=(Option.map~f:Document.of_xml)(Xml.childxml_arg0"content")inletrecordId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"recordId")inletexecutionId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"executionId")inletagentSpaceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"agentSpaceId")inmake?userReference?recordType?createdAt?content?recordId?executionId?agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserReference=field_mapjson__"userReference"UserReference.of_jsoninletrecordType=field_mapjson__"recordType"String_.of_jsoninletcreatedAt=field_mapjson__"createdAt"JournalTimestamp.of_jsoninletcontent=field_mapjson__"content"Document.of_jsoninletrecordId=field_mapjson__"recordId"String_.of_jsoninletexecutionId=field_mapjson__"executionId"String_.of_jsoninletagentSpaceId=field_mapjson__"agentSpaceId"String_.of_jsoninmake?userReference?recordType?createdAt?content?recordId?executionId?agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a journal record containing execution details and content"]moduleGoal=structtypenonrect={agentSpaceArn:String_.toption[@ocaml.doc"The unique identifier for the agent space containing this goal"];goalId:String_.toption[@ocaml.doc"The unique identifier for this goal"];title:String_.toption[@ocaml.doc"The title of the goal"];content:GoalContent.toption[@ocaml.doc"Content of the goal"];status:GoalStatus.toption[@ocaml.doc"Current status of the goal itself"];goalType:GoalType.toption[@ocaml.doc"Type of goal based on its origin"];createdAt:BackLogTimestamp.toption[@ocaml.doc"Timestamp when this goal was created"];updatedAt:BackLogTimestamp.toption[@ocaml.doc"Timestamp when this goal was last updated"];lastEvaluatedAt:BackLogTimestamp.toption[@ocaml.doc"Timestamp when the goal was last evaluated"];lastTaskId:String_.toption[@ocaml.doc"ID of the most recent task associated with this goal"];lastSuccessfulTaskId:String_.toption[@ocaml.doc"ID of the most recent successful task associated with this goal"];version:Integer.toption[@ocaml.doc"Version number for optimistic locking"];evaluationSchedule:GoalSchedule.toption[@ocaml.doc"Goal Schedule. Allows to schedule the goal to run periodically, as well as disable a goal temporarily"]}letmake?agentSpaceArn=fun?goalId->fun?title->fun?content->fun?status->fun?goalType->fun?createdAt->fun?updatedAt->fun?lastEvaluatedAt->fun?lastTaskId->fun?lastSuccessfulTaskId->fun?version->fun?evaluationSchedule->fun()->{agentSpaceArn;goalId;title;content;status;goalType;createdAt;updatedAt;lastEvaluatedAt;lastTaskId;lastSuccessfulTaskId;version;evaluationSchedule}letto_valuex=structure_to_value[("agentSpaceArn",(Option.mapx.agentSpaceArn~f:String_.to_value));("goalId",(Option.mapx.goalId~f:String_.to_value));("title",(Option.mapx.title~f:String_.to_value));("content",(Option.mapx.content~f:GoalContent.to_value));("status",(Option.mapx.status~f:GoalStatus.to_value));("goalType",(Option.mapx.goalType~f:GoalType.to_value));("createdAt",(Option.mapx.createdAt~f:BackLogTimestamp.to_value));("updatedAt",(Option.mapx.updatedAt~f:BackLogTimestamp.to_value));("lastEvaluatedAt",(Option.mapx.lastEvaluatedAt~f:BackLogTimestamp.to_value));("lastTaskId",(Option.mapx.lastTaskId~f:String_.to_value));("lastSuccessfulTaskId",(Option.mapx.lastSuccessfulTaskId~f:String_.to_value));("version",(Option.mapx.version~f:Integer.to_value));("evaluationSchedule",(Option.mapx.evaluationSchedule~f:GoalSchedule.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letevaluationSchedule=(Option.map~f:GoalSchedule.of_xml)(Xml.childxml_arg0"evaluationSchedule")inletversion=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"version")inletlastSuccessfulTaskId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"lastSuccessfulTaskId")inletlastTaskId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"lastTaskId")inletlastEvaluatedAt=(Option.map~f:BackLogTimestamp.of_xml)(Xml.childxml_arg0"lastEvaluatedAt")inletupdatedAt=(Option.map~f:BackLogTimestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletcreatedAt=(Option.map~f:BackLogTimestamp.of_xml)(Xml.childxml_arg0"createdAt")inletgoalType=(Option.map~f:GoalType.of_xml)(Xml.childxml_arg0"goalType")inletstatus=(Option.map~f:GoalStatus.of_xml)(Xml.childxml_arg0"status")inletcontent=(Option.map~f:GoalContent.of_xml)(Xml.childxml_arg0"content")inlettitle=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"title")inletgoalId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"goalId")inletagentSpaceArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"agentSpaceArn")inmake?evaluationSchedule?version?lastSuccessfulTaskId?lastTaskId?lastEvaluatedAt?updatedAt?createdAt?goalType?status?content?title?goalId?agentSpaceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letevaluationSchedule=field_mapjson__"evaluationSchedule"GoalSchedule.of_jsoninletversion=field_mapjson__"version"Integer.of_jsoninletlastSuccessfulTaskId=field_mapjson__"lastSuccessfulTaskId"String_.of_jsoninletlastTaskId=field_mapjson__"lastTaskId"String_.of_jsoninletlastEvaluatedAt=field_mapjson__"lastEvaluatedAt"BackLogTimestamp.of_jsoninletupdatedAt=field_mapjson__"updatedAt"BackLogTimestamp.of_jsoninletcreatedAt=field_mapjson__"createdAt"BackLogTimestamp.of_jsoninletgoalType=field_mapjson__"goalType"GoalType.of_jsoninletstatus=field_mapjson__"status"GoalStatus.of_jsoninletcontent=field_mapjson__"content"GoalContent.of_jsoninlettitle=field_mapjson__"title"String_.of_jsoninletgoalId=field_mapjson__"goalId"String_.of_jsoninletagentSpaceArn=field_mapjson__"agentSpaceArn"String_.of_jsoninmake?evaluationSchedule?version?lastSuccessfulTaskId?lastTaskId?lastEvaluatedAt?updatedAt?createdAt?goalType?status?content?title?goalId?agentSpaceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a goal with all its properties and metadata"]moduleExecution=structtypenonrect={agentSpaceId:String_.toption[@ocaml.doc"The unique identifier for the agent space containing this execution"];executionId:String_.toption[@ocaml.doc"The unique identifier for this execution"];parentExecutionId:String_.toption[@ocaml.doc"The identifier of the parent execution, if this is a child execution"];agentSubTask:String_.toption[@ocaml.doc"The specific subtask being executed by the agent"];createdAt:JournalTimestamp.toption[@ocaml.doc"Timestamp when this execution was created"];updatedAt:JournalTimestamp.toption[@ocaml.doc"Timestamp when this execution was last updated"];executionStatus:ExecutionStatus.toption[@ocaml.doc"The current status of this execution"];agentType:String_.toption[@ocaml.doc"The type of agent that performed this execution."];uid:String_.toption[@ocaml.doc"The unique identifier for the user session associated with this execution"]}letmake?agentSpaceId=fun?executionId->fun?parentExecutionId->fun?agentSubTask->fun?createdAt->fun?updatedAt->fun?executionStatus->fun?agentType->fun?uid->fun()->{agentSpaceId;executionId;parentExecutionId;agentSubTask;createdAt;updatedAt;executionStatus;agentType;uid}letto_valuex=structure_to_value[("agentSpaceId",(Option.mapx.agentSpaceId~f:String_.to_value));("executionId",(Option.mapx.executionId~f:String_.to_value));("parentExecutionId",(Option.mapx.parentExecutionId~f:String_.to_value));("agentSubTask",(Option.mapx.agentSubTask~f:String_.to_value));("createdAt",(Option.mapx.createdAt~f:JournalTimestamp.to_value));("updatedAt",(Option.mapx.updatedAt~f:JournalTimestamp.to_value));("executionStatus",(Option.mapx.executionStatus~f:ExecutionStatus.to_value));("agentType",(Option.mapx.agentType~f:String_.to_value));("uid",(Option.mapx.uid~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuid=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"uid")inletagentType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"agentType")inletexecutionStatus=(Option.map~f:ExecutionStatus.of_xml)(Xml.childxml_arg0"executionStatus")inletupdatedAt=(Option.map~f:JournalTimestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletcreatedAt=(Option.map~f:JournalTimestamp.of_xml)(Xml.childxml_arg0"createdAt")inletagentSubTask=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"agentSubTask")inletparentExecutionId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"parentExecutionId")inletexecutionId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"executionId")inletagentSpaceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"agentSpaceId")inmake?uid?agentType?executionStatus?updatedAt?createdAt?agentSubTask?parentExecutionId?executionId?agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuid=field_mapjson__"uid"String_.of_jsoninletagentType=field_mapjson__"agentType"String_.of_jsoninletexecutionStatus=field_mapjson__"executionStatus"ExecutionStatus.of_jsoninletupdatedAt=field_mapjson__"updatedAt"JournalTimestamp.of_jsoninletcreatedAt=field_mapjson__"createdAt"JournalTimestamp.of_jsoninletagentSubTask=field_mapjson__"agentSubTask"String_.of_jsoninletparentExecutionId=field_mapjson__"parentExecutionId"String_.of_jsoninletexecutionId=field_mapjson__"executionId"String_.of_jsoninletagentSpaceId=field_mapjson__"agentSpaceId"String_.of_jsoninmake?uid?agentType?executionStatus?updatedAt?createdAt?agentSubTask?parentExecutionId?executionId?agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents an execution instance with its lifecycle information"]moduleChatExecution=structtypenonrect={executionId:ResourceId.toption[@ocaml.doc"The unique identifier for the execution"];createdAt:Timestamp.toption[@ocaml.doc"Timestamp when the chat was created"];updatedAt:Timestamp.toption[@ocaml.doc"Timestamp when the chat was last updated"];summary:String_.toption[@ocaml.doc"Summary or title of the chat"]}letmake?executionId=fun?createdAt->fun?updatedAt->fun?summary->fun()->{executionId;createdAt;updatedAt;summary}letto_valuex=structure_to_value[("executionId",(Option.mapx.executionId~f:ResourceId.to_value));("createdAt",(Option.mapx.createdAt~f:Timestamp.to_value));("updatedAt",(Option.mapx.updatedAt~f:Timestamp.to_value));("summary",(Option.mapx.summary~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsummary=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"summary")inletupdatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdAt")inletexecutionId=(Option.map~f:ResourceId.of_xml)(Xml.childxml_arg0"executionId")inmake?summary?updatedAt?createdAt?executionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsummary=field_mapjson__"summary"String_.of_jsoninletupdatedAt=field_mapjson__"updatedAt"Timestamp.of_jsoninletcreatedAt=field_mapjson__"createdAt"Timestamp.of_jsoninletexecutionId=field_mapjson__"executionId"ResourceId.of_jsoninmake?summary?updatedAt?createdAt?executionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A single chat execution summary"]moduleTask=structtypenonrect={agentSpaceId:String_.toption[@ocaml.doc"The unique identifier for the agent space containing this task"];taskId:String_.toption[@ocaml.doc"The unique identifier for this task"];executionId:String_.toption[@ocaml.doc"The execution ID associated with this task, if any"];title:String_.toption[@ocaml.doc"The title of the task"];description:String_.toption[@ocaml.doc"Optional detailed description of the task"];reference:ReferenceOutput.toption[@ocaml.doc"Optional reference information linking this task to external systems"];taskType:TaskType.toption[@ocaml.doc"The type of this task"];priority:Priority.toption[@ocaml.doc"The priority level of this task"];status:TaskStatus.toption[@ocaml.doc"The current status of this task"];createdAt:BackLogTimestamp.toption[@ocaml.doc"Timestamp when this task was created"];updatedAt:BackLogTimestamp.toption[@ocaml.doc"Timestamp when this task was last updated"];version:Integer.toption[@ocaml.doc"Version number for optimistic locking"];supportMetadata:Document.toption[@ocaml.doc"Optional support metadata for the task"];metadata:Document.toption[@ocaml.doc"Optional metadata for the task"];primaryTaskId:String_.toption[@ocaml.doc"The task ID of the primary investigation this task is linked to"];statusReason:String_.toption[@ocaml.doc"Explanation for why the task status was changed (e.g., linked reason)"];hasLinkedTasks:Boolean.toption[@ocaml.doc"Indicates if this task has other tasks linked to it"]}letmake?agentSpaceId=fun?taskId->fun?executionId->fun?title->fun?description->fun?reference->fun?taskType->fun?priority->fun?status->fun?createdAt->fun?updatedAt->fun?version->fun?supportMetadata->fun?metadata->fun?primaryTaskId->fun?statusReason->fun?hasLinkedTasks->fun()->{agentSpaceId;taskId;executionId;title;description;reference;taskType;priority;status;createdAt;updatedAt;version;supportMetadata;metadata;primaryTaskId;statusReason;hasLinkedTasks}letto_valuex=structure_to_value[("agentSpaceId",(Option.mapx.agentSpaceId~f:String_.to_value));("taskId",(Option.mapx.taskId~f:String_.to_value));("executionId",(Option.mapx.executionId~f:String_.to_value));("title",(Option.mapx.title~f:String_.to_value));("description",(Option.mapx.description~f:String_.to_value));("reference",(Option.mapx.reference~f:ReferenceOutput.to_value));("taskType",(Option.mapx.taskType~f:TaskType.to_value));("priority",(Option.mapx.priority~f:Priority.to_value));("status",(Option.mapx.status~f:TaskStatus.to_value));("createdAt",(Option.mapx.createdAt~f:BackLogTimestamp.to_value));("updatedAt",(Option.mapx.updatedAt~f:BackLogTimestamp.to_value));("version",(Option.mapx.version~f:Integer.to_value));("supportMetadata",(Option.mapx.supportMetadata~f:Document.to_value));("metadata",(Option.mapx.metadata~f:Document.to_value));("primaryTaskId",(Option.mapx.primaryTaskId~f:String_.to_value));("statusReason",(Option.mapx.statusReason~f:String_.to_value));("hasLinkedTasks",(Option.mapx.hasLinkedTasks~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lethasLinkedTasks=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"hasLinkedTasks")inletstatusReason=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"statusReason")inletprimaryTaskId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"primaryTaskId")inletmetadata=(Option.map~f:Document.of_xml)(Xml.childxml_arg0"metadata")inletsupportMetadata=(Option.map~f:Document.of_xml)(Xml.childxml_arg0"supportMetadata")inletversion=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"version")inletupdatedAt=(Option.map~f:BackLogTimestamp.of_xml)(Xml.childxml_arg0"updatedAt")inletcreatedAt=(Option.map~f:BackLogTimestamp.of_xml)(Xml.childxml_arg0"createdAt")inletstatus=(Option.map~f:TaskStatus.of_xml)(Xml.childxml_arg0"status")inletpriority=(Option.map~f:Priority.of_xml)(Xml.childxml_arg0"priority")inlettaskType=(Option.map~f:TaskType.of_xml)(Xml.childxml_arg0"taskType")inletreference=(Option.map~f:ReferenceOutput.of_xml)(Xml.childxml_arg0"reference")inletdescription=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"description")inlettitle=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"title")inletexecutionId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"executionId")inlettaskId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"taskId")inletagentSpaceId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"agentSpaceId")inmake?hasLinkedTasks?statusReason?primaryTaskId?metadata?supportMetadata?version?updatedAt?createdAt?status?priority?taskType?reference?description?title?executionId?taskId?agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lethasLinkedTasks=field_mapjson__"hasLinkedTasks"Boolean.of_jsoninletstatusReason=field_mapjson__"statusReason"String_.of_jsoninletprimaryTaskId=field_mapjson__"primaryTaskId"String_.of_jsoninletmetadata=field_mapjson__"metadata"Document.of_jsoninletsupportMetadata=field_mapjson__"supportMetadata"Document.of_jsoninletversion=field_mapjson__"version"Integer.of_jsoninletupdatedAt=field_mapjson__"updatedAt"BackLogTimestamp.of_jsoninletcreatedAt=field_mapjson__"createdAt"BackLogTimestamp.of_jsoninletstatus=field_mapjson__"status"TaskStatus.of_jsoninletpriority=field_mapjson__"priority"Priority.of_jsoninlettaskType=field_mapjson__"taskType"TaskType.of_jsoninletreference=field_mapjson__"reference"ReferenceOutput.of_jsoninletdescription=field_mapjson__"description"String_.of_jsoninlettitle=field_mapjson__"title"String_.of_jsoninletexecutionId=field_mapjson__"executionId"String_.of_jsoninlettaskId=field_mapjson__"taskId"String_.of_jsoninletagentSpaceId=field_mapjson__"agentSpaceId"String_.of_jsoninmake?hasLinkedTasks?statusReason?primaryTaskId?metadata?supportMetadata?version?updatedAt?createdAt?status?priority?taskType?reference?description?title?executionId?taskId?agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a backlog task with all its properties and metadata"]moduleTaskFilterPriorityList=structtypenonrect=Priority.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Priority.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Priority.of_xml)letof_jsonj=list_of_json~kind:"TaskFilterPriorityList"~of_json:Priority.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTaskFilterStatusList=structtypenonrect=TaskStatus.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TaskStatus.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TaskStatus.of_xml)letof_jsonj=list_of_json~kind:"TaskFilterStatusList"~of_json:TaskStatus.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTaskFilterTaskTypeList=structtypenonrect=TaskType.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TaskType.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TaskType.of_xml)letof_jsonj=list_of_json~kind:"TaskFilterTaskTypeList"~of_json:TaskType.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAssociation=structtypenonrect={agentSpaceId:AgentSpaceId.toption[@ocaml.doc"The unique identifier of the AgentSpace"];createdAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The timestamp when the resource was created."];updatedAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The timestamp when the resource was last updated."];status:ValidationStatus.toption[@ocaml.doc"Validation status"];associationId:AssociationId.toption[@ocaml.doc"The unique identifier of the given association."];serviceId:ServiceId.toption[@ocaml.doc"The identifier for associated service"];configuration:ServiceConfiguration.toption[@ocaml.doc"The configuration that directs how AgentSpace interacts with the given service."]}letmake?agentSpaceId=fun?createdAt->fun?updatedAt->fun?status->fun?associationId->fun?serviceId->fun?configuration->fun()->{agentSpaceId;createdAt;updatedAt;status;associationId;serviceId;configuration}letto_valuex=structure_to_value[("agentSpaceId",(Option.mapx.agentSpaceId~f:AgentSpaceId.to_value));("createdAt",(Option.mapx.createdAt~f:SyntheticTimestamp_date_time.to_value));("updatedAt",(Option.mapx.updatedAt~f:SyntheticTimestamp_date_time.to_value));("status",(Option.mapx.status~f:ValidationStatus.to_value));("associationId",(Option.mapx.associationId~f:AssociationId.to_value));("serviceId",(Option.mapx.serviceId~f:ServiceId.to_value));("configuration",(Option.mapx.configuration~f:ServiceConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconfiguration=(Option.map~f:ServiceConfiguration.of_xml)(Xml.childxml_arg0"configuration")inletserviceId=(Option.map~f:ServiceId.of_xml)(Xml.childxml_arg0"serviceId")inletassociationId=(Option.map~f:AssociationId.of_xml)(Xml.childxml_arg0"associationId")inletstatus=(Option.map~f:ValidationStatus.of_xml)(Xml.childxml_arg0"status")inletupdatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"updatedAt")inletcreatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"createdAt")inletagentSpaceId=(Option.map~f:AgentSpaceId.of_xml)(Xml.childxml_arg0"agentSpaceId")inmake?configuration?serviceId?associationId?status?updatedAt?createdAt?agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconfiguration=field_mapjson__"configuration"ServiceConfiguration.of_jsoninletserviceId=field_mapjson__"serviceId"ServiceId.of_jsoninletassociationId=field_mapjson__"associationId"AssociationId.of_jsoninletstatus=field_mapjson__"status"ValidationStatus.of_jsoninletupdatedAt=field_mapjson__"updatedAt"SyntheticTimestamp_date_time.of_jsoninletcreatedAt=field_mapjson__"createdAt"SyntheticTimestamp_date_time.of_jsoninletagentSpaceId=field_mapjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?configuration?serviceId?associationId?status?updatedAt?createdAt?agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a service association within an AgentSpace, defining how the agent interacts with external services."]moduleAgentSpace=structtypenonrect={name:AgentSpaceName.toption[@ocaml.doc"The name of the AgentSpace."];description:Description.toption[@ocaml.doc"The description of the AgentSpace."];locale:Locale.toption[@ocaml.doc"The locale for the AgentSpace, which determines the language used in agent responses."];createdAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The timestamp when the resource was created."];updatedAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The timestamp when the resource was last updated."];kmsKeyArn:KmsKeyArn.toption[@ocaml.doc"The ARN of the AWS Key Management Service (AWS KMS) customer managed key that's used to encrypt resources."];agentSpaceId:AgentSpaceId.toption[@ocaml.doc"The unique identifier of the AgentSpace"]}letmake?name=fun?description->fun?locale->fun?createdAt->fun?updatedAt->fun?kmsKeyArn->fun?agentSpaceId->fun()->{name;description;locale;createdAt;updatedAt;kmsKeyArn;agentSpaceId}letto_valuex=structure_to_value[("name",(Option.mapx.name~f:AgentSpaceName.to_value));("description",(Option.mapx.description~f:Description.to_value));("locale",(Option.mapx.locale~f:Locale.to_value));("createdAt",(Option.mapx.createdAt~f:SyntheticTimestamp_date_time.to_value));("updatedAt",(Option.mapx.updatedAt~f:SyntheticTimestamp_date_time.to_value));("kmsKeyArn",(Option.mapx.kmsKeyArn~f:KmsKeyArn.to_value));("agentSpaceId",(Option.mapx.agentSpaceId~f:AgentSpaceId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letagentSpaceId=(Option.map~f:AgentSpaceId.of_xml)(Xml.childxml_arg0"agentSpaceId")inletkmsKeyArn=(Option.map~f:KmsKeyArn.of_xml)(Xml.childxml_arg0"kmsKeyArn")inletupdatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"updatedAt")inletcreatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"createdAt")inletlocale=(Option.map~f:Locale.of_xml)(Xml.childxml_arg0"locale")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"description")inletname=(Option.map~f:AgentSpaceName.of_xml)(Xml.childxml_arg0"name")inmake?agentSpaceId?kmsKeyArn?updatedAt?createdAt?locale?description?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letagentSpaceId=field_mapjson__"agentSpaceId"AgentSpaceId.of_jsoninletkmsKeyArn=field_mapjson__"kmsKeyArn"KmsKeyArn.of_jsoninletupdatedAt=field_mapjson__"updatedAt"SyntheticTimestamp_date_time.of_jsoninletcreatedAt=field_mapjson__"createdAt"SyntheticTimestamp_date_time.of_jsoninletlocale=field_mapjson__"locale"Locale.of_jsoninletdescription=field_mapjson__"description"Description.of_jsoninletname=field_mapjson__"name"AgentSpaceName.of_jsoninmake?agentSpaceId?kmsKeyArn?updatedAt?createdAt?locale?description?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a complete AgentSpace with all its properties, timestamps, encryption settings, and unique identifier."]moduleDouble=structtypenonrect=floatletmakei=iletof_string=Float.of_stringletto_valuex=`Doublexletto_queryv=to_queryto_valuevletto_headerx=Stdlib.Float.to_stringxletof_xmlxml_arg0=Float.of_string(string_of_xml~kind:"a double"xml_arg0)letof_jsonj=float_of_json~kind:"a double"jletto_json=simple_to_jsonto_valueendmoduleSelfManagedInput=structtypenonrect={resourceConfigurationId:ResourceConfigurationArn.t[@ocaml.doc"The ID or ARN of the resource configuration."];certificate:CertificateString.toption[@ocaml.doc"Certificate for the Private Connection."]}letcontext_="SelfManagedInput"letmake?certificate=fun~resourceConfigurationId->fun()->{certificate;resourceConfigurationId}letto_valuex=structure_to_value[("resourceConfigurationId",(Some(ResourceConfigurationArn.to_valuex.resourceConfigurationId)));("certificate",(Option.mapx.certificate~f:CertificateString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificate=(Option.map~f:CertificateString.of_xml)(Xml.childxml_arg0"certificate")inletresourceConfigurationId=ResourceConfigurationArn.of_xml(Xml.child_exn~context:context_xml_arg0"resourceConfigurationId")inmake?certificate~resourceConfigurationId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificate=field_mapjson__"certificate"CertificateString.of_jsoninletresourceConfigurationId=field_map_exnjson__"resourceConfigurationId"ResourceConfigurationArn.of_jsoninmake?certificate~resourceConfigurationId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for a self-managed Private Connection."]moduleServiceManagedInput=structtypenonrect={hostAddress:IpAddressOrDnsName.t[@ocaml.doc"IP address or DNS name of the target resource."];vpcId:VpcId.t[@ocaml.doc"VPC to create the service-managed Resource Gateway in."];subnetIds:ListOfSubnetIds.t[@ocaml.doc"Subnets that the service-managed Resource Gateway will span."];securityGroupIds:ListOfSecurityGroupIds.toption[@ocaml.doc"Security groups to attach to the service-managed Resource Gateway. If not specified, a default security group is created."];ipAddressType:IpAddressType.toption[@ocaml.doc"IP address type of the service-managed Resource Gateway."];ipv4AddressesPerEni:MaxIpv4AddressesPerEni.toption[@ocaml.doc"Number of IPv4 addresses in each ENI for the service-managed Resource Gateway."];portRanges:PortRanges.toption[@ocaml.doc"TCP port ranges that a consumer can use to access the resource."];certificate:CertificateString.toption[@ocaml.doc"Certificate for the Private Connection."]}letcontext_="ServiceManagedInput"letmake?securityGroupIds=fun?ipAddressType->fun?ipv4AddressesPerEni->fun?portRanges->fun?certificate->fun~hostAddress->fun~vpcId->fun~subnetIds->fun()->{securityGroupIds;ipAddressType;ipv4AddressesPerEni;portRanges;certificate;hostAddress;vpcId;subnetIds}letto_valuex=structure_to_value[("hostAddress",(Some(IpAddressOrDnsName.to_valuex.hostAddress)));("vpcId",(Some(VpcId.to_valuex.vpcId)));("subnetIds",(Some(ListOfSubnetIds.to_valuex.subnetIds)));("securityGroupIds",(Option.mapx.securityGroupIds~f:ListOfSecurityGroupIds.to_value));("ipAddressType",(Option.mapx.ipAddressType~f:IpAddressType.to_value));("ipv4AddressesPerEni",(Option.mapx.ipv4AddressesPerEni~f:MaxIpv4AddressesPerEni.to_value));("portRanges",(Option.mapx.portRanges~f:PortRanges.to_value));("certificate",(Option.mapx.certificate~f:CertificateString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificate=(Option.map~f:CertificateString.of_xml)(Xml.childxml_arg0"certificate")inletportRanges=(Option.map~f:PortRanges.of_xml)(Xml.childxml_arg0"portRanges")inletipv4AddressesPerEni=(Option.map~f:MaxIpv4AddressesPerEni.of_xml)(Xml.childxml_arg0"ipv4AddressesPerEni")inletipAddressType=(Option.map~f:IpAddressType.of_xml)(Xml.childxml_arg0"ipAddressType")inletsecurityGroupIds=(Option.map~f:ListOfSecurityGroupIds.of_xml)(Xml.childxml_arg0"securityGroupIds")inletsubnetIds=ListOfSubnetIds.of_xml(Xml.child_exn~context:context_xml_arg0"subnetIds")inletvpcId=VpcId.of_xml(Xml.child_exn~context:context_xml_arg0"vpcId")inlethostAddress=IpAddressOrDnsName.of_xml(Xml.child_exn~context:context_xml_arg0"hostAddress")inmake?certificate?portRanges?ipv4AddressesPerEni?ipAddressType?securityGroupIds~subnetIds~vpcId~hostAddress()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificate=field_mapjson__"certificate"CertificateString.of_jsoninletportRanges=field_mapjson__"portRanges"PortRanges.of_jsoninletipv4AddressesPerEni=field_mapjson__"ipv4AddressesPerEni"MaxIpv4AddressesPerEni.of_jsoninletipAddressType=field_mapjson__"ipAddressType"IpAddressType.of_jsoninletsecurityGroupIds=field_mapjson__"securityGroupIds"ListOfSecurityGroupIds.of_jsoninletsubnetIds=field_map_exnjson__"subnetIds"ListOfSubnetIds.of_jsoninletvpcId=field_map_exnjson__"vpcId"VpcId.of_jsoninlethostAddress=field_map_exnjson__"hostAddress"IpAddressOrDnsName.of_jsoninmake?certificate?portRanges?ipv4AddressesPerEni?ipAddressType?securityGroupIds~subnetIds~vpcId~hostAddress()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for a service-managed Private Connection."]moduleReferenceInputReferenceUrlString=structtypenonrect=stringletcontext_="ReferenceInputReferenceUrlString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ReferenceInputReferenceUrlString"jletto_json=simple_to_jsonto_valueendmoduleReferenceInputSystemString=structtypenonrect=stringletcontext_="ReferenceInputSystemString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ReferenceInputSystemString"jletto_json=simple_to_jsonto_valueendmoduleReferenceInputTitleString=structtypenonrect=stringletcontext_="ReferenceInputTitleString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:512)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ReferenceInputTitleString"jletto_json=simple_to_jsonto_valueendmoduleAccessDeniedException=structtypenonrect={message:String_.toption[@ocaml.doc"Detailed error message describing why access was denied."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Access to the requested resource is denied due to insufficient permissions."]moduleConflictException=structtypenonrect={message:String_.toption[@ocaml.doc"Detailed error message describing the conflict."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request conflicts with the current state of the resource."]moduleContentSizeExceededException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This exception is thrown when the content size exceeds the allowed limit."]moduleInternalServerException=structtypenonrect={message:String_.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This exception is thrown when an unexpected error occurs in the processing of a request."]moduleInvalidParameterException=structtypenonrect={message:String_.toption[@ocaml.doc"Detailed error message describing which parameter is invalid and why."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"One or more parameters provided in the request are invalid."]moduleResourceNotFoundException=structtypenonrect={message:String_.toption[@ocaml.doc"Detailed error message describing which resource was not found."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The requested resource could not be found."]moduleServiceQuotaExceededException=structtypenonrect={message:String_.toption[@ocaml.doc"Detailed error message describing which quota was exceeded."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request would exceed the service quota limit."]moduleThrottlingException=structtypenonrect={message:String_.toption[@ocaml.doc"Detailed error message describing the throttling condition."]}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"String_.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was throttled due to too many requests. Please slow down and try again."]moduleValidationException=structtypenonrect={message:String_.toption[@ocaml.doc"A summary of the validation failure."];fieldList:ValidationExceptionFieldList.toption[@ocaml.doc"A list of specific failures encountered while validating the input. A member can appear in this list more than once if it failed to satisfy multiple constraints."]}letmake?message=fun?fieldList->fun()->{message;fieldList}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("fieldList",(Option.mapx.fieldList~f:ValidationExceptionFieldList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfieldList=(Option.map~f:ValidationExceptionFieldList.of_xml)(Xml.childxml_arg0"fieldList")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?fieldList?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfieldList=field_mapjson__"fieldList"ValidationExceptionFieldList.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?fieldList?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A standard error for input validation failures. This should be thrown by services when a member of the input structure falls outside of the modeled or documented constraints."]moduleIdpAuthConfiguration=structtypenonrect={issuerUrl:String_.toption[@ocaml.doc"The OIDC issuer URL of the external Identity Provider"];clientId:String_.toption[@ocaml.doc"The OIDC client ID for the IdP application"];operatorAppRoleArn:String_.toption[@ocaml.doc"The IAM role end users assume to access AIDevOps APIs"];provider:String_.toption[@ocaml.doc"The Identity Provider name (e.g., Entra, Okta, Google)"];createdAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The timestamp when the Operator App IdP auth flow was enabled."];updatedAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The timestamp when the Operator App IdP auth flow was updated."]}letmake?issuerUrl=fun?clientId->fun?operatorAppRoleArn->fun?provider->fun?createdAt->fun?updatedAt->fun()->{issuerUrl;clientId;operatorAppRoleArn;provider;createdAt;updatedAt}letto_valuex=structure_to_value[("issuerUrl",(Option.mapx.issuerUrl~f:String_.to_value));("clientId",(Option.mapx.clientId~f:String_.to_value));("operatorAppRoleArn",(Option.mapx.operatorAppRoleArn~f:String_.to_value));("provider",(Option.mapx.provider~f:String_.to_value));("createdAt",(Option.mapx.createdAt~f:SyntheticTimestamp_date_time.to_value));("updatedAt",(Option.mapx.updatedAt~f:SyntheticTimestamp_date_time.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letupdatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"updatedAt")inletcreatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"createdAt")inletprovider=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"provider")inletoperatorAppRoleArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"operatorAppRoleArn")inletclientId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientId")inletissuerUrl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"issuerUrl")inmake?updatedAt?createdAt?provider?operatorAppRoleArn?clientId?issuerUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letupdatedAt=field_mapjson__"updatedAt"SyntheticTimestamp_date_time.of_jsoninletcreatedAt=field_mapjson__"createdAt"SyntheticTimestamp_date_time.of_jsoninletprovider=field_mapjson__"provider"String_.of_jsoninletoperatorAppRoleArn=field_mapjson__"operatorAppRoleArn"String_.of_jsoninletclientId=field_mapjson__"clientId"String_.of_jsoninletissuerUrl=field_mapjson__"issuerUrl"String_.of_jsoninmake?updatedAt?createdAt?provider?operatorAppRoleArn?clientId?issuerUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for external Identity Provider OIDC authentication flow for the Operator App."]moduleIdpClientSecret=structtypenonrect=string[@@ocaml.doc"Client secret for IdP OIDC authentication."]letcontext_="IdpClientSecret"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IdpClientSecret"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Client secret for IdP OIDC authentication."]moduleGoalScheduleInput=structtypenonrect={state:SchedulerState.t[@ocaml.doc"Whether the schedule is enabled or disabled"]}letcontext_="GoalScheduleInput"letmake~state=fun()->{state}letto_valuex=structure_to_value[("state",(Some(SchedulerState.to_valuex.state)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstate=SchedulerState.of_xml(Xml.child_exn~context:context_xml_arg0"state")inmake~state()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstate=field_map_exnjson__"state"SchedulerState.of_jsoninmake~state()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Schedule configuration for updating goal evaluations"]moduleGenericWebhook=structtypenonrect={webhookUrl:String_.toption[@ocaml.doc"The webhook URL endpoint"];webhookId:String_.toption[@ocaml.doc"The unique webhook identifier"];webhookType:WebhookType.toption[@ocaml.doc"The webhook authentication type"];webhookSecret:WebhookSecret.toption[@ocaml.doc"The webhook secret for authentication"];apiKey:ApiKeyValue.toption[@ocaml.doc"API Key for API Key webhook authentication"]}letmake?webhookUrl=fun?webhookId->fun?webhookType->fun?webhookSecret->fun?apiKey->fun()->{webhookUrl;webhookId;webhookType;webhookSecret;apiKey}letto_valuex=structure_to_value[("webhookUrl",(Option.mapx.webhookUrl~f:String_.to_value));("webhookId",(Option.mapx.webhookId~f:String_.to_value));("webhookType",(Option.mapx.webhookType~f:WebhookType.to_value));("webhookSecret",(Option.mapx.webhookSecret~f:WebhookSecret.to_value));("apiKey",(Option.mapx.apiKey~f:ApiKeyValue.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letapiKey=(Option.map~f:ApiKeyValue.of_xml)(Xml.childxml_arg0"apiKey")inletwebhookSecret=(Option.map~f:WebhookSecret.of_xml)(Xml.childxml_arg0"webhookSecret")inletwebhookType=(Option.map~f:WebhookType.of_xml)(Xml.childxml_arg0"webhookType")inletwebhookId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"webhookId")inletwebhookUrl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"webhookUrl")inmake?apiKey?webhookSecret?webhookType?webhookId?webhookUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letapiKey=field_mapjson__"apiKey"ApiKeyValue.of_jsoninletwebhookSecret=field_mapjson__"webhookSecret"WebhookSecret.of_jsoninletwebhookType=field_mapjson__"webhookType"WebhookType.of_jsoninletwebhookId=field_mapjson__"webhookId"String_.of_jsoninletwebhookUrl=field_mapjson__"webhookUrl"String_.of_jsoninmake?apiKey?webhookSecret?webhookType?webhookId?webhookUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Generic webhook configuration for services that support webhook notifications."]moduleTagKeyList=structtypenonrect=TagKey.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TagKey.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:TagKey.of_xml)letof_jsonj=list_of_json~kind:"TagKeyList"~of_json:TagKey.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUntagResourceRequestResourceArnString=structtypenonrect=stringletcontext_="UntagResourceRequestResourceArnString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"arn:aws:aidevops:[a-z0-9-]+:\\d{12}:(agentspace|service)/[a-zA-Z0-9-]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"UntagResourceRequestResourceArnString"jletto_json=simple_to_jsonto_valueendmoduleTagResourceRequestResourceArnString=structtypenonrect=stringletcontext_="TagResourceRequestResourceArnString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"arn:aws:aidevops:[a-z0-9-]+:\\d{12}:(agentspace|service)/[a-zA-Z0-9-]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"TagResourceRequestResourceArnString"jletto_json=simple_to_jsonto_valueendmoduleTags=structtypenonrect=(TagKey.t*TagValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((TagKey.of_stringchopped),(TagValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(TagKey.to_valuex)|>(funx->(TagValue.to_valuey)|>(funy->(x,y))))))|>(funx->`Mapx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for Map_shape objects"()letof_xml_=failwith"of_xml_converter_of_shape: Map_shape case not implemented"letof_jsonj=object_of_json~key_of_string:TagKey.of_string~of_json:TagValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleSendMessageEvents=structtypenonrect={responseCreated:SendMessageResponseCreatedEvent.toption[@ocaml.doc"Emitted when the response is created"];responseInProgress:SendMessageResponseInProgressEvent.toption[@ocaml.doc"Emitted while the response is being generated"];responseCompleted:SendMessageResponseCompletedEvent.toption[@ocaml.doc"Emitted when the response completes successfully"];responseFailed:SendMessageResponseFailedEvent.toption[@ocaml.doc"Emitted when the response fails"];summary:SendMessageSummaryEvent.toption[@ocaml.doc"Emitted to provide a summary of agent actions"];heartbeat:SendMessageHeartbeatEvent.toption[@ocaml.doc"Heartbeat event sent periodically to keep the connection alive during idle periods"];contentBlockStart:SendMessageContentBlockStartEvent.toption[@ocaml.doc"Emitted when a new content block starts"];contentBlockDelta:SendMessageContentBlockDeltaEvent.toption[@ocaml.doc"Emitted for each incremental content delta within a content block"];contentBlockStop:SendMessageContentBlockStopEvent.toption[@ocaml.doc"Emitted when a content block is complete"]}letmake?responseCreated=fun?responseInProgress->fun?responseCompleted->fun?responseFailed->fun?summary->fun?heartbeat->fun?contentBlockStart->fun?contentBlockDelta->fun?contentBlockStop->fun()->{responseCreated;responseInProgress;responseCompleted;responseFailed;summary;heartbeat;contentBlockStart;contentBlockDelta;contentBlockStop}letto_valuex=structure_to_value[("responseCreated",(Option.mapx.responseCreated~f:SendMessageResponseCreatedEvent.to_value));("responseInProgress",(Option.mapx.responseInProgress~f:SendMessageResponseInProgressEvent.to_value));("responseCompleted",(Option.mapx.responseCompleted~f:SendMessageResponseCompletedEvent.to_value));("responseFailed",(Option.mapx.responseFailed~f:SendMessageResponseFailedEvent.to_value));("summary",(Option.mapx.summary~f:SendMessageSummaryEvent.to_value));("heartbeat",(Option.mapx.heartbeat~f:SendMessageHeartbeatEvent.to_value));("contentBlockStart",(Option.mapx.contentBlockStart~f:SendMessageContentBlockStartEvent.to_value));("contentBlockDelta",(Option.mapx.contentBlockDelta~f:SendMessageContentBlockDeltaEvent.to_value));("contentBlockStop",(Option.mapx.contentBlockStop~f:SendMessageContentBlockStopEvent.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontentBlockStop=(Option.map~f:SendMessageContentBlockStopEvent.of_xml)(Xml.childxml_arg0"contentBlockStop")inletcontentBlockDelta=(Option.map~f:SendMessageContentBlockDeltaEvent.of_xml)(Xml.childxml_arg0"contentBlockDelta")inletcontentBlockStart=(Option.map~f:SendMessageContentBlockStartEvent.of_xml)(Xml.childxml_arg0"contentBlockStart")inletheartbeat=(Option.map~f:SendMessageHeartbeatEvent.of_xml)(Xml.childxml_arg0"heartbeat")inletsummary=(Option.map~f:SendMessageSummaryEvent.of_xml)(Xml.childxml_arg0"summary")inletresponseFailed=(Option.map~f:SendMessageResponseFailedEvent.of_xml)(Xml.childxml_arg0"responseFailed")inletresponseCompleted=(Option.map~f:SendMessageResponseCompletedEvent.of_xml)(Xml.childxml_arg0"responseCompleted")inletresponseInProgress=(Option.map~f:SendMessageResponseInProgressEvent.of_xml)(Xml.childxml_arg0"responseInProgress")inletresponseCreated=(Option.map~f:SendMessageResponseCreatedEvent.of_xml)(Xml.childxml_arg0"responseCreated")inmake?contentBlockStop?contentBlockDelta?contentBlockStart?heartbeat?summary?responseFailed?responseCompleted?responseInProgress?responseCreated()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontentBlockStop=field_mapjson__"contentBlockStop"SendMessageContentBlockStopEvent.of_jsoninletcontentBlockDelta=field_mapjson__"contentBlockDelta"SendMessageContentBlockDeltaEvent.of_jsoninletcontentBlockStart=field_mapjson__"contentBlockStart"SendMessageContentBlockStartEvent.of_jsoninletheartbeat=field_mapjson__"heartbeat"SendMessageHeartbeatEvent.of_jsoninletsummary=field_mapjson__"summary"SendMessageSummaryEvent.of_jsoninletresponseFailed=field_mapjson__"responseFailed"SendMessageResponseFailedEvent.of_jsoninletresponseCompleted=field_mapjson__"responseCompleted"SendMessageResponseCompletedEvent.of_jsoninletresponseInProgress=field_mapjson__"responseInProgress"SendMessageResponseInProgressEvent.of_jsoninletresponseCreated=field_mapjson__"responseCreated"SendMessageResponseCreatedEvent.of_jsoninmake?contentBlockStop?contentBlockDelta?contentBlockStart?heartbeat?summary?responseFailed?responseCompleted?responseInProgress?responseCreated()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Event stream for chat message responses using the content block model. Events follow a lifecycle: responseCreated -> responseInProgress -> (contentBlockStart/contentBlockDelta/contentBlockStop events) -> responseCompleted|responseFailed SendMessage always uses content block mode \226\128\148 legacy per-field events (outputTextDelta, functionCallArgumentsDelta, etc.) are not emitted."]moduleMessageContent=structtypenonrect=string[@@ocaml.doc"Message content with size constraint"]letcontext_="MessageContent"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:32768)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"MessageContent"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Message content with size constraint"]moduleSendMessageContext=structtypenonrect={currentPage:String_.toption[@ocaml.doc"The current page or view the user is on"];lastMessage:String_.toption[@ocaml.doc"The ID of the last message in the conversation"];userActionResponse:String_.toption[@ocaml.doc"Response to a UI prompt (not a text conversation message)"]}letmake?currentPage=fun?lastMessage->fun?userActionResponse->fun()->{currentPage;lastMessage;userActionResponse}letto_valuex=structure_to_value[("currentPage",(Option.mapx.currentPage~f:String_.to_value));("lastMessage",(Option.mapx.lastMessage~f:String_.to_value));("userActionResponse",(Option.mapx.userActionResponse~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserActionResponse=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"userActionResponse")inletlastMessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"lastMessage")inletcurrentPage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"currentPage")inmake?userActionResponse?lastMessage?currentPage()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserActionResponse=field_mapjson__"userActionResponse"String_.of_jsoninletlastMessage=field_mapjson__"lastMessage"String_.of_jsoninletcurrentPage=field_mapjson__"currentPage"String_.of_jsoninmake?userActionResponse?lastMessage?currentPage()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Context object for additional message metadata"]moduleAdditionalServiceRegistrationStep=structtypenonrect={oauth:OAuthAdditionalStepDetails.toption[@ocaml.doc"OAuth authorization step required."]}letmake?oauth=fun()->{oauth}letto_valuex=structure_to_value[("oauth",(Option.mapx.oauth~f:OAuthAdditionalStepDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoauth=(Option.map~f:OAuthAdditionalStepDetails.of_xml)(Xml.childxml_arg0"oauth")inmake?oauth()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoauth=field_mapjson__"oauth"OAuthAdditionalStepDetails.of_jsoninmake?oauth()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Additional steps required to complete service registration."]modulePostRegisterServiceSupportedService=structtypenonrect=|Dynatrace|Servicenow|Pagerduty|Gitlab|EventChannel|Mcpservernewrelic|Mcpservergrafana|Mcpserverdatadog|Mcpserver|Mcpserversplunk|Azureidentity|Non_static_idofstringletmakei=iletto_string=function|Dynatrace->"dynatrace"|Servicenow->"servicenow"|Pagerduty->"pagerduty"|Gitlab->"gitlab"|EventChannel->"eventChannel"|Mcpservernewrelic->"mcpservernewrelic"|Mcpservergrafana->"mcpservergrafana"|Mcpserverdatadog->"mcpserverdatadog"|Mcpserver->"mcpserver"|Mcpserversplunk->"mcpserversplunk"|Azureidentity->"azureidentity"|Non_static_ids->sletof_string=function|"dynatrace"->Dynatrace|"servicenow"->Servicenow|"pagerduty"->Pagerduty|"gitlab"->Gitlab|"eventChannel"->EventChannel|"mcpservernewrelic"->Mcpservernewrelic|"mcpservergrafana"->Mcpservergrafana|"mcpserverdatadog"->Mcpserverdatadog|"mcpserver"->Mcpserver|"mcpserversplunk"->Mcpserversplunk|"azureidentity"->Azureidentity|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration PostRegisterServiceSupportedService"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"PostRegisterServiceSupportedService"j)letto_json=simple_to_jsonto_valueendmoduleServiceDetails=structtypenonrect={dynatrace:DynatraceServiceDetails.toption[@ocaml.doc"Dynatrace-specific service details."];servicenow:ServiceNowServiceDetails.toption[@ocaml.doc"ServiceNow-specific service details."];mcpserverdatadog:DatadogServiceDetails.toption[@ocaml.doc"Datadog MCP server-specific service details."];mcpserver:MCPServerDetails.toption[@ocaml.doc"MCP server-specific service details."];gitlab:GitLabDetails.toption[@ocaml.doc"GitLab-specific service details."];mcpserversplunk:MCPServerDetails.toption[@ocaml.doc"Splunk MCP server-specific service details."];mcpservernewrelic:NewRelicServiceDetails.toption[@ocaml.doc"New Relic-specific service details."];eventChannel:EventChannelDetails.toption[@ocaml.doc"Event Channel specific service details."];mcpservergrafana:GrafanaServiceDetails.toption[@ocaml.doc"Datadog MCP server-specific service details."];pagerduty:PagerDutyDetails.toption[@ocaml.doc"PagerDuty specific service details."];azureidentity:RegisteredAzureIdentityDetails.toption[@ocaml.doc"Azure integration with AWS Outbound Identity Federation specific service details."]}letmake?dynatrace=fun?servicenow->fun?mcpserverdatadog->fun?mcpserver->fun?gitlab->fun?mcpserversplunk->fun?mcpservernewrelic->fun?eventChannel->fun?mcpservergrafana->fun?pagerduty->fun?azureidentity->fun()->{dynatrace;servicenow;mcpserverdatadog;mcpserver;gitlab;mcpserversplunk;mcpservernewrelic;eventChannel;mcpservergrafana;pagerduty;azureidentity}letto_valuex=structure_to_value[("dynatrace",(Option.mapx.dynatrace~f:DynatraceServiceDetails.to_value));("servicenow",(Option.mapx.servicenow~f:ServiceNowServiceDetails.to_value));("mcpserverdatadog",(Option.mapx.mcpserverdatadog~f:DatadogServiceDetails.to_value));("mcpserver",(Option.mapx.mcpserver~f:MCPServerDetails.to_value));("gitlab",(Option.mapx.gitlab~f:GitLabDetails.to_value));("mcpserversplunk",(Option.mapx.mcpserversplunk~f:MCPServerDetails.to_value));("mcpservernewrelic",(Option.mapx.mcpservernewrelic~f:NewRelicServiceDetails.to_value));("eventChannel",(Option.mapx.eventChannel~f:EventChannelDetails.to_value));("mcpservergrafana",(Option.mapx.mcpservergrafana~f:GrafanaServiceDetails.to_value));("pagerduty",(Option.mapx.pagerduty~f:PagerDutyDetails.to_value));("azureidentity",(Option.mapx.azureidentity~f:RegisteredAzureIdentityDetails.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letazureidentity=(Option.map~f:RegisteredAzureIdentityDetails.of_xml)(Xml.childxml_arg0"azureidentity")inletpagerduty=(Option.map~f:PagerDutyDetails.of_xml)(Xml.childxml_arg0"pagerduty")inletmcpservergrafana=(Option.map~f:GrafanaServiceDetails.of_xml)(Xml.childxml_arg0"mcpservergrafana")inleteventChannel=(Option.map~f:EventChannelDetails.of_xml)(Xml.childxml_arg0"eventChannel")inletmcpservernewrelic=(Option.map~f:NewRelicServiceDetails.of_xml)(Xml.childxml_arg0"mcpservernewrelic")inletmcpserversplunk=(Option.map~f:MCPServerDetails.of_xml)(Xml.childxml_arg0"mcpserversplunk")inletgitlab=(Option.map~f:GitLabDetails.of_xml)(Xml.childxml_arg0"gitlab")inletmcpserver=(Option.map~f:MCPServerDetails.of_xml)(Xml.childxml_arg0"mcpserver")inletmcpserverdatadog=(Option.map~f:DatadogServiceDetails.of_xml)(Xml.childxml_arg0"mcpserverdatadog")inletservicenow=(Option.map~f:ServiceNowServiceDetails.of_xml)(Xml.childxml_arg0"servicenow")inletdynatrace=(Option.map~f:DynatraceServiceDetails.of_xml)(Xml.childxml_arg0"dynatrace")inmake?azureidentity?pagerduty?mcpservergrafana?eventChannel?mcpservernewrelic?mcpserversplunk?gitlab?mcpserver?mcpserverdatadog?servicenow?dynatrace()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letazureidentity=field_mapjson__"azureidentity"RegisteredAzureIdentityDetails.of_jsoninletpagerduty=field_mapjson__"pagerduty"PagerDutyDetails.of_jsoninletmcpservergrafana=field_mapjson__"mcpservergrafana"GrafanaServiceDetails.of_jsoninleteventChannel=field_mapjson__"eventChannel"EventChannelDetails.of_jsoninletmcpservernewrelic=field_mapjson__"mcpservernewrelic"NewRelicServiceDetails.of_jsoninletmcpserversplunk=field_mapjson__"mcpserversplunk"MCPServerDetails.of_jsoninletgitlab=field_mapjson__"gitlab"GitLabDetails.of_jsoninletmcpserver=field_mapjson__"mcpserver"MCPServerDetails.of_jsoninletmcpserverdatadog=field_mapjson__"mcpserverdatadog"DatadogServiceDetails.of_jsoninletservicenow=field_mapjson__"servicenow"ServiceNowServiceDetails.of_jsoninletdynatrace=field_mapjson__"dynatrace"DynatraceServiceDetails.of_jsoninmake?azureidentity?pagerduty?mcpservergrafana?eventChannel?mcpservernewrelic?mcpserversplunk?gitlab?mcpserver?mcpserverdatadog?servicenow?dynatrace()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Union of service-specific configuration details for service registration."]moduleWebhooksList=structtypenonrect=Webhook.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Webhook.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Webhook.of_xml)letof_jsonj=list_of_json~kind:"WebhooksList"~of_json:Webhook.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListTagsForResourceRequestResourceArnString=structtypenonrect=stringletcontext_="ListTagsForResourceRequestResourceArnString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"arn:aws:aidevops:[a-z0-9-]+:\\d{12}:(agentspace|service)/[a-zA-Z0-9-]+");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ListTagsForResourceRequestResourceArnString"jletto_json=simple_to_jsonto_valueendmoduleNextToken=structtypenonrect=string[@@ocaml.doc"Pagination token for list operations (1-2048 characters)"]letcontext_="NextToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2048)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"NextToken"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Pagination token for list operations (1-2048 characters)"]moduleRegisteredServicesList=structtypenonrect=RegisteredService.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:RegisteredService.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:RegisteredService.of_xml)letof_jsonj=list_of_json~kind:"RegisteredServicesList"~of_json:RegisteredService.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListServicesInputMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListServicesInputMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleRecommendationList=structtypenonrect=Recommendation.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Recommendation.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Recommendation.of_xml)letof_jsonj=list_of_json~kind:"RecommendationList"~of_json:Recommendation.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListRecommendationsRequestLimitInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListRecommendationsRequestLimitInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmodulePrivateConnectionSummaryList=structtypenonrect=PrivateConnectionSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PrivateConnectionSummary.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:PrivateConnectionSummary.of_xml)letof_jsonj=list_of_json~kind:"PrivateConnectionSummaryList"~of_json:PrivateConnectionSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmodulePendingMessages=structtypenonrect=PendingMessage.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:PendingMessage.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:PendingMessage.of_xml)letof_jsonj=list_of_json~kind:"PendingMessages"~of_json:PendingMessage.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleJournalRecordList=structtypenonrect=JournalRecord.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:JournalRecord.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:JournalRecord.of_xml)letof_jsonj=list_of_json~kind:"JournalRecordList"~of_json:JournalRecord.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListJournalRecordsRequestLimitInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListJournalRecordsRequestLimitInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleOrderType=structtypenonrect=|ASC|DESC|Non_static_idofstringletmakei=iletto_string=function|ASC->"ASC"|DESC->"DESC"|Non_static_ids->sletof_string=function|"ASC"->ASC|"DESC"->DESC|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration OrderType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"OrderType"j)letto_json=simple_to_jsonto_valueendmoduleGoalList=structtypenonrect=Goal.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Goal.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Goal.of_xml)letof_jsonj=list_of_json~kind:"GoalList"~of_json:Goal.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListGoalsRequestLimitInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListGoalsRequestLimitInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleExecutionList=structtypenonrect=Execution.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Execution.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Execution.of_xml)letof_jsonj=list_of_json~kind:"ExecutionList"~of_json:Execution.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleChatExecutionList=structtypenonrect=ChatExecution.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ChatExecution.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:ChatExecution.of_xml)letof_jsonj=list_of_json~kind:"ChatExecutionList"~of_json:ChatExecution.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListChatsRequestMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:20)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListChatsRequestMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleTaskList=structtypenonrect=Task.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Task.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Task.of_xml)letof_jsonj=list_of_json~kind:"TaskList"~of_json:Task.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListBacklogTasksRequestLimitInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:1000)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListBacklogTasksRequestLimitInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleTaskFilter=structtypenonrect={createdAfter:BackLogTimestamp.toption[@ocaml.doc"Filter for tasks created after this timestamp inclusive"];createdBefore:BackLogTimestamp.toption[@ocaml.doc"Filter for tasks created before this timestamp exclusive"];priority:TaskFilterPriorityList.toption[@ocaml.doc"Filter by priority (single value only)"];status:TaskFilterStatusList.toption[@ocaml.doc"Filter by status (single value only)"];taskType:TaskFilterTaskTypeList.toption[@ocaml.doc"Filter by task type (single value only)"];primaryTaskId:ResourceId.toption[@ocaml.doc"Filter by primary task ID to get linked tasks"]}letmake?createdAfter=fun?createdBefore->fun?priority->fun?status->fun?taskType->fun?primaryTaskId->fun()->{createdAfter;createdBefore;priority;status;taskType;primaryTaskId}letto_valuex=structure_to_value[("createdAfter",(Option.mapx.createdAfter~f:BackLogTimestamp.to_value));("createdBefore",(Option.mapx.createdBefore~f:BackLogTimestamp.to_value));("priority",(Option.mapx.priority~f:TaskFilterPriorityList.to_value));("status",(Option.mapx.status~f:TaskFilterStatusList.to_value));("taskType",(Option.mapx.taskType~f:TaskFilterTaskTypeList.to_value));("primaryTaskId",(Option.mapx.primaryTaskId~f:ResourceId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprimaryTaskId=(Option.map~f:ResourceId.of_xml)(Xml.childxml_arg0"primaryTaskId")inlettaskType=(Option.map~f:TaskFilterTaskTypeList.of_xml)(Xml.childxml_arg0"taskType")inletstatus=(Option.map~f:TaskFilterStatusList.of_xml)(Xml.childxml_arg0"status")inletpriority=(Option.map~f:TaskFilterPriorityList.of_xml)(Xml.childxml_arg0"priority")inletcreatedBefore=(Option.map~f:BackLogTimestamp.of_xml)(Xml.childxml_arg0"createdBefore")inletcreatedAfter=(Option.map~f:BackLogTimestamp.of_xml)(Xml.childxml_arg0"createdAfter")inmake?primaryTaskId?taskType?status?priority?createdBefore?createdAfter()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprimaryTaskId=field_mapjson__"primaryTaskId"ResourceId.of_jsoninlettaskType=field_mapjson__"taskType"TaskFilterTaskTypeList.of_jsoninletstatus=field_mapjson__"status"TaskFilterStatusList.of_jsoninletpriority=field_mapjson__"priority"TaskFilterPriorityList.of_jsoninletcreatedBefore=field_mapjson__"createdBefore"BackLogTimestamp.of_jsoninletcreatedAfter=field_mapjson__"createdAfter"BackLogTimestamp.of_jsoninmake?primaryTaskId?taskType?status?priority?createdBefore?createdAfter()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Filter criteria for listing backlog tasks, supporting time range, priority, status, and type filters."]moduleTaskSortField=structtypenonrect=|CREATED_AT|PRIORITY|Non_static_idofstringletmakei=iletto_string=function|CREATED_AT->"CREATED_AT"|PRIORITY->"PRIORITY"|Non_static_ids->sletof_string=function|"CREATED_AT"->CREATED_AT|"PRIORITY"->PRIORITY|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration TaskSortField"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TaskSortField"j)letto_json=simple_to_jsonto_valueendmoduleTaskSortOrder=structtypenonrect=|ASC|DESC|Non_static_idofstringletmakei=iletto_string=function|ASC->"ASC"|DESC->"DESC"|Non_static_ids->sletof_string=function|"ASC"->ASC|"DESC"->DESC|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration TaskSortOrder"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"TaskSortOrder"j)letto_json=simple_to_jsonto_valueendmoduleAssociationsList=structtypenonrect=Association.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Association.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:Association.of_xml)letof_jsonj=list_of_json~kind:"AssociationsList"~of_json:Association.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListAssociationsInputFilterServiceTypesString=structtypenonrect=stringletcontext_="ListAssociationsInputFilterServiceTypesString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"\\w+(?:,\\s*\\w+)*");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ListAssociationsInputFilterServiceTypesString"jletto_json=simple_to_jsonto_valueendmoduleListAssociationsInputMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListAssociationsInputMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleAgentSpaceList=structtypenonrect=AgentSpace.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AgentSpace.to_value))|>(funx->`Listx)letto_queryv=to_queryto_valuevletto_header_=failwithf"to_header is not implemented for List_shape objects"()letof_xmlx=make(List.map((Xml.all_childrenx)|>(List.filter~f:(function|`Datas->(matchStdlib.String.trimswith|""->false|_->true)|_->true)))~f:AgentSpace.of_xml)letof_jsonj=list_of_json~kind:"AgentSpaceList"~of_json:AgentSpace.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleListAgentSpacesInputMaxResultsInteger=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:1));iletof_string=Int.of_stringletto_valuex=`Integerxletto_queryv=to_queryto_valuevletto_headerx=Int.to_stringxletof_xmlxml_arg0=Int.of_string(string_of_xml~kind:"an integer for ListAgentSpacesInputMaxResultsInteger"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleIamAuthConfiguration=structtypenonrect={operatorAppRoleArn:String_.toption[@ocaml.doc"The IAM role end users assume to access AIDevOps APIs"];createdAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The timestamp when the Operator App IAM auth flow was enabled."];updatedAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The timestamp when the Operator App IAM auth flow was updated."]}letmake?operatorAppRoleArn=fun?createdAt->fun?updatedAt->fun()->{operatorAppRoleArn;createdAt;updatedAt}letto_valuex=structure_to_value[("operatorAppRoleArn",(Option.mapx.operatorAppRoleArn~f:String_.to_value));("createdAt",(Option.mapx.createdAt~f:SyntheticTimestamp_date_time.to_value));("updatedAt",(Option.mapx.updatedAt~f:SyntheticTimestamp_date_time.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letupdatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"updatedAt")inletcreatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"createdAt")inletoperatorAppRoleArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"operatorAppRoleArn")inmake?updatedAt?createdAt?operatorAppRoleArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letupdatedAt=field_mapjson__"updatedAt"SyntheticTimestamp_date_time.of_jsoninletcreatedAt=field_mapjson__"createdAt"SyntheticTimestamp_date_time.of_jsoninletoperatorAppRoleArn=field_mapjson__"operatorAppRoleArn"String_.of_jsoninmake?updatedAt?createdAt?operatorAppRoleArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for IAM-based authentication flow for the Operator App."]moduleIdcAuthConfiguration=structtypenonrect={operatorAppRoleArn:String_.toption[@ocaml.doc"The IAM role end users assume to access AIDevOps APIs"];idcInstanceArn:String_.toption[@ocaml.doc"The IdC instance Arn used to create an IdC auth application"];idcApplicationArn:String_.toption[@ocaml.doc"The IdC application Arn created for IdC auth"];createdAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The timestamp when the Operator App IdC auth flow was enabled."];updatedAt:SyntheticTimestamp_date_time.toption[@ocaml.doc"The timestamp when the Operator App IdC auth flow was updated."]}letmake?operatorAppRoleArn=fun?idcInstanceArn->fun?idcApplicationArn->fun?createdAt->fun?updatedAt->fun()->{operatorAppRoleArn;idcInstanceArn;idcApplicationArn;createdAt;updatedAt}letto_valuex=structure_to_value[("operatorAppRoleArn",(Option.mapx.operatorAppRoleArn~f:String_.to_value));("idcInstanceArn",(Option.mapx.idcInstanceArn~f:String_.to_value));("idcApplicationArn",(Option.mapx.idcApplicationArn~f:String_.to_value));("createdAt",(Option.mapx.createdAt~f:SyntheticTimestamp_date_time.to_value));("updatedAt",(Option.mapx.updatedAt~f:SyntheticTimestamp_date_time.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letupdatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"updatedAt")inletcreatedAt=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"createdAt")inletidcApplicationArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"idcApplicationArn")inletidcInstanceArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"idcInstanceArn")inletoperatorAppRoleArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"operatorAppRoleArn")inmake?updatedAt?createdAt?idcApplicationArn?idcInstanceArn?operatorAppRoleArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letupdatedAt=field_mapjson__"updatedAt"SyntheticTimestamp_date_time.of_jsoninletcreatedAt=field_mapjson__"createdAt"SyntheticTimestamp_date_time.of_jsoninletidcApplicationArn=field_mapjson__"idcApplicationArn"String_.of_jsoninletidcInstanceArn=field_mapjson__"idcInstanceArn"String_.of_jsoninletoperatorAppRoleArn=field_mapjson__"operatorAppRoleArn"String_.of_jsoninmake?updatedAt?createdAt?idcApplicationArn?idcInstanceArn?operatorAppRoleArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration for AWS Identity Center (IdC) authentication flow for the Operator App."]moduleDateTime=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Timestampxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=string_of_xml~kind:"a timestamp"letof_json=timestamp_of_jsonletto_json=simple_to_jsonto_valueendmoduleUsageMetric=structtypenonrect={limit:Integer.toption[@ocaml.doc"Configured limit for this metric."];usage:Double.toption[@ocaml.doc"Current usage for this metric"]}letmake?limit=fun?usage->fun()->{limit;usage}letto_valuex=structure_to_value[("limit",(Option.mapx.limit~f:Integer.to_value));("usage",(Option.mapx.usage~f:Double.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letusage=(Option.map~f:Double.of_xml)(Xml.childxml_arg0"usage")inletlimit=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"limit")inmake?usage?limit()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letusage=field_mapjson__"usage"Double.of_jsoninletlimit=field_mapjson__"limit"Integer.of_jsoninmake?usage?limit()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a usage metric with its configured limit and current usage value."]moduleIdentityCenterServiceException=structtypenonrect={message:String_.toption[@ocaml.doc"Detailed error message describing why the call fails"];underlyingErrorCode:String_.toption[@ocaml.doc"The Idc error code"]}letmake?message=fun?underlyingErrorCode->fun()->{message;underlyingErrorCode}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:String_.to_value));("underlyingErrorCode",(Option.mapx.underlyingErrorCode~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letunderlyingErrorCode=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"underlyingErrorCode")inletmessage=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"message")inmake?underlyingErrorCode?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letunderlyingErrorCode=field_mapjson__"underlyingErrorCode"String_.of_jsoninletmessage=field_mapjson__"message"String_.of_jsoninmake?underlyingErrorCode?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Calls to the customer Identity Center have failed"]moduleAuthFlow=structtypenonrect=|Iam|Idc|Idp|Non_static_idofstringletmakei=iletto_string=function|Iam->"iam"|Idc->"idc"|Idp->"idp"|Non_static_ids->sletof_string=function|"iam"->Iam|"idc"->Idc|"idp"->Idp|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration AuthFlow"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"AuthFlow"j)letto_json=simple_to_jsonto_valueendmoduleIdpClientId=structtypenonrect=string[@@ocaml.doc"Client ID for IdP OIDC authentication."]letcontext_="IdpClientId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:512)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"IdpClientId"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Client ID for IdP OIDC authentication."]modulePrivateConnectionMode=structtypenonrect={serviceManaged:ServiceManagedInput.toption[@ocaml.doc"Service manages the Resource Gateway lifecycle."];selfManaged:SelfManagedInput.toption[@ocaml.doc"Caller manages their own resource configuration."]}letmake?serviceManaged=fun?selfManaged->fun()->{serviceManaged;selfManaged}letto_valuex=structure_to_value[("serviceManaged",(Option.mapx.serviceManaged~f:ServiceManagedInput.to_value));("selfManaged",(Option.mapx.selfManaged~f:SelfManagedInput.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letselfManaged=(Option.map~f:SelfManagedInput.of_xml)(Xml.childxml_arg0"selfManaged")inletserviceManaged=(Option.map~f:ServiceManagedInput.of_xml)(Xml.childxml_arg0"serviceManaged")inmake?selfManaged?serviceManaged()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letselfManaged=field_mapjson__"selfManaged"SelfManagedInput.of_jsoninletserviceManaged=field_mapjson__"serviceManaged"ServiceManagedInput.of_jsoninmake?selfManaged?serviceManaged()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Private Connection mode \226\128\148 either service-managed or self-managed."]moduleBacklogTaskDescription=structtypenonrect=string[@@ocaml.doc"Description for a backlog task (allows printable ASCII characters, tabs, and newlines; up to 10000 characters)"]letcontext_="BacklogTaskDescription"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:10000)>>=(fun()->check_string_mini~min:0));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"BacklogTaskDescription"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Description for a backlog task (allows printable ASCII characters, tabs, and newlines; up to 10000 characters)"]moduleBacklogTaskTitle=structtypenonrect=string[@@ocaml.doc"Title for a backlog task (allows printable ASCII characters, tabs, and newlines; 1-400 characters)"]letcontext_="BacklogTaskTitle"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:400)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"BacklogTaskTitle"jletto_json=simple_to_jsonto_valueend[@@ocaml.doc"Title for a backlog task (allows printable ASCII characters, tabs, and newlines; 1-400 characters)"]moduleReferenceInput=structtypenonrect={system:ReferenceInputSystemString.t[@ocaml.doc"The name of the external system"];title:ReferenceInputTitleString.toption[@ocaml.doc"Optional title for the reference"];referenceId:ResourceId.t[@ocaml.doc"The unique identifier in the external system"];referenceUrl:ReferenceInputReferenceUrlString.t[@ocaml.doc"URL to access the reference in the external system"];associationId:ResourceId.t[@ocaml.doc"Association identifier of the external system"]}letcontext_="ReferenceInput"letmake?title=fun~system->fun~referenceId->fun~referenceUrl->fun~associationId->fun()->{title;system;referenceId;referenceUrl;associationId}letto_valuex=structure_to_value[("system",(Some(ReferenceInputSystemString.to_valuex.system)));("title",(Option.mapx.title~f:ReferenceInputTitleString.to_value));("referenceId",(Some(ResourceId.to_valuex.referenceId)));("referenceUrl",(Some(ReferenceInputReferenceUrlString.to_valuex.referenceUrl)));("associationId",(Some(ResourceId.to_valuex.associationId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociationId=ResourceId.of_xml(Xml.child_exn~context:context_xml_arg0"associationId")inletreferenceUrl=ReferenceInputReferenceUrlString.of_xml(Xml.child_exn~context:context_xml_arg0"referenceUrl")inletreferenceId=ResourceId.of_xml(Xml.child_exn~context:context_xml_arg0"referenceId")inlettitle=(Option.map~f:ReferenceInputTitleString.of_xml)(Xml.childxml_arg0"title")inletsystem=ReferenceInputSystemString.of_xml(Xml.child_exn~context:context_xml_arg0"system")inmake~associationId~referenceUrl~referenceId?title~system()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociationId=field_map_exnjson__"associationId"ResourceId.of_jsoninletreferenceUrl=field_map_exnjson__"referenceUrl"ReferenceInputReferenceUrlString.of_jsoninletreferenceId=field_map_exnjson__"referenceId"ResourceId.of_jsoninlettitle=field_mapjson__"title"ReferenceInputTitleString.of_jsoninletsystem=field_map_exnjson__"system"ReferenceInputSystemString.of_jsoninmake~associationId~referenceUrl~referenceId?title~system()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Reference information linking a task to external systems - for input with validation"]moduleCreateAgentSpaceInputClientTokenString=structtypenonrect=stringletcontext_="CreateAgentSpaceInputClientTokenString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:64)>>=(fun()->check_patterni~pattern:"[!-~]+")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"CreateAgentSpaceInputClientTokenString"jletto_json=simple_to_jsonto_valueendmoduleValidateAwsAssociationsOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Empty Output for successful validating an aws association"]moduleValidateAwsAssociationsInput=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier of the AgentSpace"]}letcontext_="ValidateAwsAssociationsInput"letmake~agentSpaceId=fun()->{agentSpaceId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for validating an aws association"]moduleUpdateRecommendationResponse=structtypenonrect={recommendation:Recommendation.toption[@ocaml.doc"The updated recommendation"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?recommendation=fun()->{recommendation}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("recommendation",(Option.mapx.recommendation~f:Recommendation.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecommendation=(Option.map~f:Recommendation.of_xml)(Xml.childxml_arg0"recommendation")inmake?recommendation()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecommendation=field_mapjson__"recommendation"Recommendation.of_jsoninmake?recommendation()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response structure containing the updated recommendation"]moduleUpdateRecommendationRequest=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier for the agent space containing the recommendation"];recommendationId:ResourceId.t[@ocaml.doc"The unique identifier for the recommendation to update"];status:RecommendationStatus.toption[@ocaml.doc"Current status of the recommendation"];additionalContext:String_.toption[@ocaml.doc"Additional context for recommendation"];clientToken:String_.toption[@ocaml.doc"A unique token that ensures idempotency of the request"]}letcontext_="UpdateRecommendationRequest"letmake?status=fun?additionalContext->fun?clientToken->fun~agentSpaceId->fun~recommendationId->fun()->{status;additionalContext;clientToken;agentSpaceId;recommendationId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("recommendationId",(Some(ResourceId.to_valuex.recommendationId)));("status",(Option.mapx.status~f:RecommendationStatus.to_value));("additionalContext",(Option.mapx.additionalContext~f:String_.to_value));("clientToken",(Option.mapx.clientToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inletadditionalContext=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"additionalContext")inletstatus=(Option.map~f:RecommendationStatus.of_xml)(Xml.childxml_arg0"status")inletrecommendationId=ResourceId.of_xml(Xml.child_exn~context:context_xml_arg0"recommendationId")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake?clientToken?additionalContext?status~recommendationId~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"String_.of_jsoninletadditionalContext=field_mapjson__"additionalContext"String_.of_jsoninletstatus=field_mapjson__"status"RecommendationStatus.of_jsoninletrecommendationId=field_map_exnjson__"recommendationId"ResourceId.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?clientToken?additionalContext?status~recommendationId~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request structure for updating an existing recommendation"]moduleUpdatePrivateConnectionCertificateOutput=structtypenonrect={name:PrivateConnectionName.toption[@ocaml.doc"The name of the Private Connection."];type_:PrivateConnectionType.toption[@ocaml.doc"The type of the Private Connection."];resourceGatewayId:ResourceGatewayArn.toption[@ocaml.doc"The service-managed Resource Gateway ARN. Only present for service-managed Private Connections."];hostAddress:IpAddressOrDnsName.toption[@ocaml.doc"IP address or DNS name of the target resource. Only present for service-managed Private Connections."];vpcId:VpcId.toption[@ocaml.doc"VPC identifier of the service-managed Resource Gateway. Only present for service-managed Private Connections."];resourceConfigurationId:ResourceConfigurationArn.toption[@ocaml.doc"The Resource Configuration ARN. Only present for self-managed Private Connections."];status:PrivateConnectionStatus.toption[@ocaml.doc"The status of the Private Connection."];certificateExpiryTime:SyntheticTimestamp_date_time.toption[@ocaml.doc"The expiry time of the certificate associated with the Private Connection. Only present when a certificate is associated."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?name=fun?type_->fun?resourceGatewayId->fun?hostAddress->fun?vpcId->fun?resourceConfigurationId->fun?status->fun?certificateExpiryTime->fun()->{name;type_;resourceGatewayId;hostAddress;vpcId;resourceConfigurationId;status;certificateExpiryTime}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("name",(Option.mapx.name~f:PrivateConnectionName.to_value));("type",(Option.mapx.type_~f:PrivateConnectionType.to_value));("resourceGatewayId",(Option.mapx.resourceGatewayId~f:ResourceGatewayArn.to_value));("hostAddress",(Option.mapx.hostAddress~f:IpAddressOrDnsName.to_value));("vpcId",(Option.mapx.vpcId~f:VpcId.to_value));("resourceConfigurationId",(Option.mapx.resourceConfigurationId~f:ResourceConfigurationArn.to_value));("status",(Option.mapx.status~f:PrivateConnectionStatus.to_value));("certificateExpiryTime",(Option.mapx.certificateExpiryTime~f:SyntheticTimestamp_date_time.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificateExpiryTime=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"certificateExpiryTime")inletstatus=(Option.map~f:PrivateConnectionStatus.of_xml)(Xml.childxml_arg0"status")inletresourceConfigurationId=(Option.map~f:ResourceConfigurationArn.of_xml)(Xml.childxml_arg0"resourceConfigurationId")inletvpcId=(Option.map~f:VpcId.of_xml)(Xml.childxml_arg0"vpcId")inlethostAddress=(Option.map~f:IpAddressOrDnsName.of_xml)(Xml.childxml_arg0"hostAddress")inletresourceGatewayId=(Option.map~f:ResourceGatewayArn.of_xml)(Xml.childxml_arg0"resourceGatewayId")inlettype_=(Option.map~f:PrivateConnectionType.of_xml)(Xml.childxml_arg0"type")inletname=(Option.map~f:PrivateConnectionName.of_xml)(Xml.childxml_arg0"name")inmake?certificateExpiryTime?status?resourceConfigurationId?vpcId?hostAddress?resourceGatewayId?type_?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificateExpiryTime=field_mapjson__"certificateExpiryTime"SyntheticTimestamp_date_time.of_jsoninletstatus=field_mapjson__"status"PrivateConnectionStatus.of_jsoninletresourceConfigurationId=field_mapjson__"resourceConfigurationId"ResourceConfigurationArn.of_jsoninletvpcId=field_mapjson__"vpcId"VpcId.of_jsoninlethostAddress=field_mapjson__"hostAddress"IpAddressOrDnsName.of_jsoninletresourceGatewayId=field_mapjson__"resourceGatewayId"ResourceGatewayArn.of_jsoninlettype_=field_mapjson__"type"PrivateConnectionType.of_jsoninletname=field_mapjson__"name"PrivateConnectionName.of_jsoninmake?certificateExpiryTime?status?resourceConfigurationId?vpcId?hostAddress?resourceGatewayId?type_?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing the updated Private Connection summary."]moduleUpdatePrivateConnectionCertificateInput=structtypenonrect={name:PrivateConnectionName.t[@ocaml.doc"The name of the Private Connection."];certificate:CertificateString.t[@ocaml.doc"The new certificate for the Private Connection."]}letcontext_="UpdatePrivateConnectionCertificateInput"letmake~name=fun~certificate->fun()->{name;certificate}letto_valuex=structure_to_value[("name",(Some(PrivateConnectionName.to_valuex.name)));("certificate",(Some(CertificateString.to_valuex.certificate)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcertificate=CertificateString.of_xml(Xml.child_exn~context:context_xml_arg0"certificate")inletname=PrivateConnectionName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~certificate~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcertificate=field_map_exnjson__"certificate"CertificateString.of_jsoninletname=field_map_exnjson__"name"PrivateConnectionName.of_jsoninmake~certificate~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for updating the certificate of a Private Connection."]moduleUpdateOperatorAppIdpConfigOutput=structtypenonrect={agentSpaceId:AgentSpaceId.toption[@ocaml.doc"The unique identifier of the AgentSpace"];idp:IdpAuthConfiguration.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?agentSpaceId=fun?idp->fun()->{agentSpaceId;idp}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("agentSpaceId",(Option.mapx.agentSpaceId~f:AgentSpaceId.to_value));("idp",(Option.mapx.idp~f:IdpAuthConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidp=(Option.map~f:IdpAuthConfiguration.of_xml)(Xml.childxml_arg0"idp")inletagentSpaceId=(Option.map~f:AgentSpaceId.of_xml)(Xml.childxml_arg0"agentSpaceId")inmake?idp?agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidp=field_mapjson__"idp"IdpAuthConfiguration.of_jsoninletagentSpaceId=field_mapjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?idp?agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing the updated IdP configuration."]moduleUpdateOperatorAppIdpConfigInput=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier of the AgentSpace"];idpClientSecret:IdpClientSecret.toption[@ocaml.doc"The OIDC client secret for the IdP application"]}letcontext_="UpdateOperatorAppIdpConfigInput"letmake?idpClientSecret=fun~agentSpaceId->fun()->{idpClientSecret;agentSpaceId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("idpClientSecret",(Option.mapx.idpClientSecret~f:IdpClientSecret.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidpClientSecret=(Option.map~f:IdpClientSecret.of_xml)(Xml.childxml_arg0"idpClientSecret")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake?idpClientSecret~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidpClientSecret=field_mapjson__"idpClientSecret"IdpClientSecret.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?idpClientSecret~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for updating the external Identity Provider configuration for the Operator App."]moduleUpdateGoalResponse=structtypenonrect={goal:Goal.toption[@ocaml.doc"The updated goal object"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?goal=fun()->{goal}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("goal",(Option.mapx.goal~f:Goal.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letgoal=(Option.map~f:Goal.of_xml)(Xml.childxml_arg0"goal")inmake?goal()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letgoal=field_mapjson__"goal"Goal.of_jsoninmake?goal()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response structure containing the updated goal"]moduleUpdateGoalRequest=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier for the agent space containing the goal"];goalId:String_.t[@ocaml.doc"The unique identifier of the goal to update"];evaluationSchedule:GoalScheduleInput.toption[@ocaml.doc"Update goal schedule state"];clientToken:String_.toption[@ocaml.doc"Client-provided token for idempotent operations"]}letcontext_="UpdateGoalRequest"letmake?evaluationSchedule=fun?clientToken->fun~agentSpaceId->fun~goalId->fun()->{evaluationSchedule;clientToken;agentSpaceId;goalId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("goalId",(Some(String_.to_valuex.goalId)));("evaluationSchedule",(Option.mapx.evaluationSchedule~f:GoalScheduleInput.to_value));("clientToken",(Option.mapx.clientToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inletevaluationSchedule=(Option.map~f:GoalScheduleInput.of_xml)(Xml.childxml_arg0"evaluationSchedule")inletgoalId=String_.of_xml(Xml.child_exn~context:context_xml_arg0"goalId")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake?clientToken?evaluationSchedule~goalId~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"String_.of_jsoninletevaluationSchedule=field_mapjson__"evaluationSchedule"GoalScheduleInput.of_jsoninletgoalId=field_map_exnjson__"goalId"String_.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?clientToken?evaluationSchedule~goalId~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request structure for updating a goal"]moduleUpdateBacklogTaskResponse=structtypenonrect={task:Task.toption[@ocaml.doc"The updated task object"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?task=fun()->{task}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("task",(Option.mapx.task~f:Task.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettask=(Option.map~f:Task.of_xml)(Xml.childxml_arg0"task")inmake?task()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettask=field_mapjson__"task"Task.of_jsoninmake?task()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response structure containing the updated task"]moduleUpdateBacklogTaskRequest=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier for the agent space containing the task"];taskId:ResourceId.t[@ocaml.doc"The unique identifier of the task to update"];taskStatus:TaskStatus.toption[@ocaml.doc"Updated task status"];clientToken:String_.toption[@ocaml.doc"Client-provided token for idempotent operations"]}letcontext_="UpdateBacklogTaskRequest"letmake?taskStatus=fun?clientToken->fun~agentSpaceId->fun~taskId->fun()->{taskStatus;clientToken;agentSpaceId;taskId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("taskId",(Some(ResourceId.to_valuex.taskId)));("taskStatus",(Option.mapx.taskStatus~f:TaskStatus.to_value));("clientToken",(Option.mapx.clientToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inlettaskStatus=(Option.map~f:TaskStatus.of_xml)(Xml.childxml_arg0"taskStatus")inlettaskId=ResourceId.of_xml(Xml.child_exn~context:context_xml_arg0"taskId")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake?clientToken?taskStatus~taskId~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"String_.of_jsoninlettaskStatus=field_mapjson__"taskStatus"TaskStatus.of_jsoninlettaskId=field_map_exnjson__"taskId"ResourceId.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?clientToken?taskStatus~taskId~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request structure for updating a task"]moduleUpdateAssociationOutput=structtypenonrect={association:Association.toption;webhook:GenericWebhook.toption[@ocaml.doc"Generic webhook configuration"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?association=fun?webhook->fun()->{association;webhook}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("association",(Option.mapx.association~f:Association.to_value));("webhook",(Option.mapx.webhook~f:GenericWebhook.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwebhook=(Option.map~f:GenericWebhook.of_xml)(Xml.childxml_arg0"webhook")inletassociation=(Option.map~f:Association.of_xml)(Xml.childxml_arg0"association")inmake?webhook?association()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwebhook=field_mapjson__"webhook"GenericWebhook.of_jsoninletassociation=field_mapjson__"association"Association.of_jsoninmake?webhook?association()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing the updated association and optional webhook configuration."]moduleUpdateAssociationInput=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier of the AgentSpace"];associationId:AssociationId.t[@ocaml.doc"The unique identifier of the given association."];configuration:ServiceConfiguration.t[@ocaml.doc"The configuration that directs how AgentSpace interacts with the given service. The entire configuration is replaced on update."]}letcontext_="UpdateAssociationInput"letmake~agentSpaceId=fun~associationId->fun~configuration->fun()->{agentSpaceId;associationId;configuration}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("associationId",(Some(AssociationId.to_valuex.associationId)));("configuration",(Some(ServiceConfiguration.to_valuex.configuration)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconfiguration=ServiceConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"configuration")inletassociationId=AssociationId.of_xml(Xml.child_exn~context:context_xml_arg0"associationId")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake~configuration~associationId~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconfiguration=field_map_exnjson__"configuration"ServiceConfiguration.of_jsoninletassociationId=field_map_exnjson__"associationId"AssociationId.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake~configuration~associationId~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for updating an existing service association. Present fields are fully replaced; absent fields are left unchanged."]moduleUpdateAgentSpaceOutput=structtypenonrect={agentSpace:AgentSpace.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?agentSpace=fun()->{agentSpace}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("agentSpace",(Option.mapx.agentSpace~f:AgentSpace.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letagentSpace=(Option.map~f:AgentSpace.of_xml)(Xml.childxml_arg0"agentSpace")inmake?agentSpace()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letagentSpace=field_mapjson__"agentSpace"AgentSpace.of_jsoninmake?agentSpace()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing the updated AgentSpace."]moduleUpdateAgentSpaceInput=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier of the AgentSpace"];name:AgentSpaceName.toption[@ocaml.doc"The updated name of the AgentSpace."];description:Description.toption[@ocaml.doc"The updated description of the AgentSpace."];locale:Locale.toption[@ocaml.doc"The updated locale for the AgentSpace, which determines the language used in agent responses."]}letcontext_="UpdateAgentSpaceInput"letmake?name=fun?description->fun?locale->fun~agentSpaceId->fun()->{name;description;locale;agentSpaceId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("name",(Option.mapx.name~f:AgentSpaceName.to_value));("description",(Option.mapx.description~f:Description.to_value));("locale",(Option.mapx.locale~f:Locale.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlocale=(Option.map~f:Locale.of_xml)(Xml.childxml_arg0"locale")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"description")inletname=(Option.map~f:AgentSpaceName.of_xml)(Xml.childxml_arg0"name")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake?locale?description?name~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlocale=field_mapjson__"locale"Locale.of_jsoninletdescription=field_mapjson__"description"Description.of_jsoninletname=field_mapjson__"name"AgentSpaceName.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?locale?description?name~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for updating an existing AgentSpace's properties. All fields except agentSpaceId are optional for partial updates."]moduleUntagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes tags from the specified AWS DevOps Agent resource."]moduleUntagResourceRequest=structtypenonrect={resourceArn:UntagResourceRequestResourceArnString.t[@ocaml.doc"The ARN of the resource to untag."];tagKeys:TagKeyList.t[@ocaml.doc"Tag keys to remove."]}letcontext_="UntagResourceRequest"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("resourceArn",(Some(UntagResourceRequestResourceArnString.to_valuex.resourceArn)));("tagKeys",(Some(TagKeyList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=TagKeyList.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceArn=UntagResourceRequestResourceArnString.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~tagKeys~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettagKeys=field_map_exnjson__"tagKeys"TagKeyList.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"UntagResourceRequestResourceArnString.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes tags from the specified AWS DevOps Agent resource."]moduleTagResourceResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds or overwrites tags for the specified AWS DevOps Agent resource."]moduleTagResourceRequest=structtypenonrect={resourceArn:TagResourceRequestResourceArnString.t[@ocaml.doc"The ARN of the resource to tag."];tags:Tags.t[@ocaml.doc"Tags to add to the resource."]}letcontext_="TagResourceRequest"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("resourceArn",(Some(TagResourceRequestResourceArnString.to_valuex.resourceArn)));("tags",(Some(Tags.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=Tags.of_xml(Xml.child_exn~context:context_xml_arg0"tags")inletresourceArn=TagResourceRequestResourceArnString.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~tags~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_map_exnjson__"tags"Tags.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"TagResourceRequestResourceArnString.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds or overwrites tags for the specified AWS DevOps Agent resource."]moduleSendMessageResponse=structtypenonrect={events:SendMessageEvents.toption[@ocaml.doc"The stream of chat message events"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?events=fun()->{events}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make?events:(Somepipe)())[@warning"-27"])letto_valuex=structure_to_value[("events",(Option.mapx.events~f:SendMessageEvents.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letevents=(Option.map~f:SendMessageEvents.of_xml)(Xml.childxml_arg0"events")inmake?events()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letevents=field_mapjson__"events"SendMessageEvents.of_jsoninmake?events()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response structure for sending chat message events"]moduleSendMessageRequest=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The agent space identifier"];executionId:ResourceId.t[@ocaml.doc"The execution identifier for the chat session"];content:MessageContent.t[@ocaml.doc"The user message content"];context:SendMessageContext.toption[@ocaml.doc"Optional context for the message"];userId:ResourceId.toption[@ocaml.doc"User identifier. This field is deprecated and will be ignored \226\128\148 the service resolves user identity from the authenticated session."]}letcontext_="SendMessageRequest"letmake?context=fun?userId->fun~agentSpaceId->fun~executionId->fun~content->fun()->{context;userId;agentSpaceId;executionId;content}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("executionId",(Some(ResourceId.to_valuex.executionId)));("content",(Some(MessageContent.to_valuex.content)));("context",(Option.mapx.context~f:SendMessageContext.to_value));("userId",(Option.mapx.userId~f:ResourceId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserId=(Option.map~f:ResourceId.of_xml)(Xml.childxml_arg0"userId")inletcontext=(Option.map~f:SendMessageContext.of_xml)(Xml.childxml_arg0"context")inletcontent=MessageContent.of_xml(Xml.child_exn~context:context_xml_arg0"content")inletexecutionId=ResourceId.of_xml(Xml.child_exn~context:context_xml_arg0"executionId")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake?userId?context~content~executionId~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserId=field_mapjson__"userId"ResourceId.of_jsoninletcontext=field_mapjson__"context"SendMessageContext.of_jsoninletcontent=field_map_exnjson__"content"MessageContent.of_jsoninletexecutionId=field_map_exnjson__"executionId"ResourceId.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?userId?context~content~executionId~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request structure for sending a chat message"]moduleRegisterServiceOutput=structtypenonrect={serviceId:ServiceId.toption[@ocaml.doc"Service ID - present when registration is complete, absent when additional steps are required"];additionalStep:AdditionalServiceRegistrationStep.toption[@ocaml.doc"Indicates if additional steps are required to complete service registration (e.g., 3-legged OAuth)"];kmsKeyArn:KmsKeyArn.toption[@ocaml.doc"The ARN of the AWS Key Management Service (AWS KMS) customer managed key that's used to encrypt resources."];tags:Tags.toption[@ocaml.doc"Tags associated with the registered Service."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?serviceId=fun?additionalStep->fun?kmsKeyArn->fun?tags->fun()->{serviceId;additionalStep;kmsKeyArn;tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("serviceId",(Option.mapx.serviceId~f:ServiceId.to_value));("additionalStep",(Option.mapx.additionalStep~f:AdditionalServiceRegistrationStep.to_value));("kmsKeyArn",(Option.mapx.kmsKeyArn~f:KmsKeyArn.to_value));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletkmsKeyArn=(Option.map~f:KmsKeyArn.of_xml)(Xml.childxml_arg0"kmsKeyArn")inletadditionalStep=(Option.map~f:AdditionalServiceRegistrationStep.of_xml)(Xml.childxml_arg0"additionalStep")inletserviceId=(Option.map~f:ServiceId.of_xml)(Xml.childxml_arg0"serviceId")inmake?tags?kmsKeyArn?additionalStep?serviceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletkmsKeyArn=field_mapjson__"kmsKeyArn"KmsKeyArn.of_jsoninletadditionalStep=field_mapjson__"additionalStep"AdditionalServiceRegistrationStep.of_jsoninletserviceId=field_mapjson__"serviceId"ServiceId.of_jsoninmake?tags?kmsKeyArn?additionalStep?serviceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing the service ID and any additional steps required for registration."]moduleRegisterServiceInput=structtypenonrect={service:PostRegisterServiceSupportedService.t;serviceDetails:ServiceDetails.t[@ocaml.doc"Service-specific authorization configuration parameters"];kmsKeyArn:KmsKeyArn.toption[@ocaml.doc"The ARN of the AWS Key Management Service (AWS KMS) customer managed key that's used to encrypt resources."];privateConnectionName:PrivateConnectionName.toption[@ocaml.doc"The name of the private connection to use for VPC connectivity."];name:ServiceName.toption[@ocaml.doc"The display name for the service registration."];tags:Tags.toption[@ocaml.doc"Tags to add to the Service at registration time."]}letcontext_="RegisterServiceInput"letmake?kmsKeyArn=fun?privateConnectionName->fun?name->fun?tags->fun~service->fun~serviceDetails->fun()->{kmsKeyArn;privateConnectionName;name;tags;service;serviceDetails}letto_valuex=structure_to_value[("service",(Some(PostRegisterServiceSupportedService.to_valuex.service)));("serviceDetails",(Some(ServiceDetails.to_valuex.serviceDetails)));("kmsKeyArn",(Option.mapx.kmsKeyArn~f:KmsKeyArn.to_value));("privateConnectionName",(Option.mapx.privateConnectionName~f:PrivateConnectionName.to_value));("name",(Option.mapx.name~f:ServiceName.to_value));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletname=(Option.map~f:ServiceName.of_xml)(Xml.childxml_arg0"name")inletprivateConnectionName=(Option.map~f:PrivateConnectionName.of_xml)(Xml.childxml_arg0"privateConnectionName")inletkmsKeyArn=(Option.map~f:KmsKeyArn.of_xml)(Xml.childxml_arg0"kmsKeyArn")inletserviceDetails=ServiceDetails.of_xml(Xml.child_exn~context:context_xml_arg0"serviceDetails")inletservice=PostRegisterServiceSupportedService.of_xml(Xml.child_exn~context:context_xml_arg0"service")inmake?tags?name?privateConnectionName?kmsKeyArn~serviceDetails~service()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletname=field_mapjson__"name"ServiceName.of_jsoninletprivateConnectionName=field_mapjson__"privateConnectionName"PrivateConnectionName.of_jsoninletkmsKeyArn=field_mapjson__"kmsKeyArn"KmsKeyArn.of_jsoninletserviceDetails=field_map_exnjson__"serviceDetails"ServiceDetails.of_jsoninletservice=field_map_exnjson__"service"PostRegisterServiceSupportedService.of_jsoninmake?tags?name?privateConnectionName?kmsKeyArn~serviceDetails~service()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for registering a new service with the platform."]moduleListWebhooksOutput=structtypenonrect={webhooks:WebhooksList.toption[@ocaml.doc"The list of association webhooks."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?webhooks=fun()->{webhooks}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("webhooks",(Option.mapx.webhooks~f:WebhooksList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwebhooks=(Option.map~f:WebhooksList.of_xml)(Xml.childxml_arg0"webhooks")inmake?webhooks()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwebhooks=field_mapjson__"webhooks"WebhooksList.of_jsoninmake?webhooks()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing a list of service association webhooks."]moduleListWebhooksInput=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier of the AgentSpace"];associationId:AssociationId.t[@ocaml.doc"The unique identifier of the given association."]}letcontext_="ListWebhooksInput"letmake~agentSpaceId=fun~associationId->fun()->{agentSpaceId;associationId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("associationId",(Some(AssociationId.to_valuex.associationId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociationId=AssociationId.of_xml(Xml.child_exn~context:context_xml_arg0"associationId")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake~associationId~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociationId=field_map_exnjson__"associationId"AssociationId.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake~associationId~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for listing service webhooks within an association."]moduleListTagsForResourceResponse=structtypenonrect={tags:Tags.toption[@ocaml.doc"Tags associated with the resource."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tags=fun()->{tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inmake?tags()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninmake?tags()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists tags for the specified AWS DevOps Agent resource."]moduleListTagsForResourceRequest=structtypenonrect={resourceArn:ListTagsForResourceRequestResourceArnString.t[@ocaml.doc"The ARN of the resource."]}letcontext_="ListTagsForResourceRequest"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("resourceArn",(Some(ListTagsForResourceRequestResourceArnString.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=ListTagsForResourceRequestResourceArnString.of_xml(Xml.child_exn~context:context_xml_arg0"resourceArn")inmake~resourceArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceArn=field_map_exnjson__"resourceArn"ListTagsForResourceRequestResourceArnString.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists tags for the specified AWS DevOps Agent resource."]moduleListServicesOutput=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"Token to retrieve the next page of results, if there are more results."];services:RegisteredServicesList.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?services->fun()->{nextToken;services}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("services",(Option.mapx.services~f:RegisteredServicesList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letservices=(Option.map~f:RegisteredServicesList.of_xml)(Xml.childxml_arg0"services")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?services?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letservices=field_mapjson__"services"RegisteredServicesList.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninmake?services?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing a list of registered services and pagination token."]moduleListServicesInput=structtypenonrect={maxResults:ListServicesInputMaxResultsInteger.toption[@ocaml.doc"Maximum number of results to return in a single call."];nextToken:NextToken.toption[@ocaml.doc"Token for the next page of results."];filterServiceType:Service.toption[@ocaml.doc"Optional filter to list only services of a specific type."]}letmake?maxResults=fun?nextToken->fun?filterServiceType->fun()->{maxResults;nextToken;filterServiceType}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:ListServicesInputMaxResultsInteger.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("filterServiceType",(Option.mapx.filterServiceType~f:Service.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfilterServiceType=(Option.map~f:Service.of_xml)(Xml.childxml_arg0"filterServiceType")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:ListServicesInputMaxResultsInteger.of_xml)(Xml.childxml_arg0"maxResults")inmake?filterServiceType?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfilterServiceType=field_mapjson__"filterServiceType"Service.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"ListServicesInputMaxResultsInteger.of_jsoninmake?filterServiceType?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for listing registered services with optional filtering by service type."]moduleListRecommendationsResponse=structtypenonrect={recommendations:RecommendationList.toption[@ocaml.doc"List of recommendations matching the request criteria"];nextToken:String_.toption[@ocaml.doc"Token for retrieving the next page of results, if more results are available"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?recommendations=fun?nextToken->fun()->{recommendations;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("recommendations",(Option.mapx.recommendations~f:RecommendationList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletrecommendations=(Option.map~f:RecommendationList.of_xml)(Xml.childxml_arg0"recommendations")inmake?nextToken?recommendations()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletrecommendations=field_mapjson__"recommendations"RecommendationList.of_jsoninmake?nextToken?recommendations()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response structure containing a list of recommendations"]moduleListRecommendationsRequest=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier for the agent space containing the recommendations"];taskId:ResourceId.toption[@ocaml.doc"Optional task ID to filter recommendations by specific task"];goalId:ResourceId.toption[@ocaml.doc"Optional goal ID to filter recommendations by specific goal"];status:RecommendationStatus.toption[@ocaml.doc"Optional status to filter recommendations by their current status"];priority:RecommendationPriority.toption[@ocaml.doc"Optional priority to filter recommendations by priority level"];limit:ListRecommendationsRequestLimitInteger.toption[@ocaml.doc"Maximum number of recommendations to return in a single response"];nextToken:NextToken.toption[@ocaml.doc"Token for retrieving the next page of results"]}letcontext_="ListRecommendationsRequest"letmake?taskId=fun?goalId->fun?status->fun?priority->fun?limit->fun?nextToken->fun~agentSpaceId->fun()->{taskId;goalId;status;priority;limit;nextToken;agentSpaceId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("taskId",(Option.mapx.taskId~f:ResourceId.to_value));("goalId",(Option.mapx.goalId~f:ResourceId.to_value));("status",(Option.mapx.status~f:RecommendationStatus.to_value));("priority",(Option.mapx.priority~f:RecommendationPriority.to_value));("limit",(Option.mapx.limit~f:ListRecommendationsRequestLimitInteger.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletlimit=(Option.map~f:ListRecommendationsRequestLimitInteger.of_xml)(Xml.childxml_arg0"limit")inletpriority=(Option.map~f:RecommendationPriority.of_xml)(Xml.childxml_arg0"priority")inletstatus=(Option.map~f:RecommendationStatus.of_xml)(Xml.childxml_arg0"status")inletgoalId=(Option.map~f:ResourceId.of_xml)(Xml.childxml_arg0"goalId")inlettaskId=(Option.map~f:ResourceId.of_xml)(Xml.childxml_arg0"taskId")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake?nextToken?limit?priority?status?goalId?taskId~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletlimit=field_mapjson__"limit"ListRecommendationsRequestLimitInteger.of_jsoninletpriority=field_mapjson__"priority"RecommendationPriority.of_jsoninletstatus=field_mapjson__"status"RecommendationStatus.of_jsoninletgoalId=field_mapjson__"goalId"ResourceId.of_jsoninlettaskId=field_mapjson__"taskId"ResourceId.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?nextToken?limit?priority?status?goalId?taskId~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request structure for listing recommendations with filtering and pagination support"]moduleListPrivateConnectionsOutput=structtypenonrect={privateConnections:PrivateConnectionSummaryList.toption[@ocaml.doc"The list of Private Connections."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?privateConnections=fun()->{privateConnections}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("privateConnections",(Option.mapx.privateConnections~f:PrivateConnectionSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprivateConnections=(Option.map~f:PrivateConnectionSummaryList.of_xml)(Xml.childxml_arg0"privateConnections")inmake?privateConnections()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprivateConnections=field_mapjson__"privateConnections"PrivateConnectionSummaryList.of_jsoninmake?privateConnections()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing the list of Private Connections."]moduleListPrivateConnectionsInput=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for listing Private Connections in the caller's account."]moduleListPendingMessagesResponse=structtypenonrect={agentSpaceId:AgentSpaceId.toption;executionId:String_.toption[@ocaml.doc"The unique identifier for the execution."];messages:PendingMessages.toption[@ocaml.doc"The list of pending messages for the execution."];createdAt:Timestamp.toption[@ocaml.doc"Timestamp when the pending messages were created."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?agentSpaceId=fun?executionId->fun?messages->fun?createdAt->fun()->{agentSpaceId;executionId;messages;createdAt}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("agentSpaceId",(Option.mapx.agentSpaceId~f:AgentSpaceId.to_value));("executionId",(Option.mapx.executionId~f:String_.to_value));("messages",(Option.mapx.messages~f:PendingMessages.to_value));("createdAt",(Option.mapx.createdAt~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdAt")inletmessages=(Option.map~f:PendingMessages.of_xml)(Xml.childxml_arg0"messages")inletexecutionId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"executionId")inletagentSpaceId=(Option.map~f:AgentSpaceId.of_xml)(Xml.childxml_arg0"agentSpaceId")inmake?createdAt?messages?executionId?agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreatedAt=field_mapjson__"createdAt"Timestamp.of_jsoninletmessages=field_mapjson__"messages"PendingMessages.of_jsoninletexecutionId=field_mapjson__"executionId"String_.of_jsoninletagentSpaceId=field_mapjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?createdAt?messages?executionId?agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response structure containing a list of pending messages"]moduleListPendingMessagesRequest=structtypenonrect={agentSpaceId:AgentSpaceId.t;executionId:ResourceId.t[@ocaml.doc"The unique identifier of the execution whose journal records to retrieve"]}letcontext_="ListPendingMessagesRequest"letmake~agentSpaceId=fun~executionId->fun()->{agentSpaceId;executionId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("executionId",(Some(ResourceId.to_valuex.executionId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexecutionId=ResourceId.of_xml(Xml.child_exn~context:context_xml_arg0"executionId")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake~executionId~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexecutionId=field_map_exnjson__"executionId"ResourceId.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake~executionId~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request structure for listing pending messages with filtering and pagination support"]moduleListJournalRecordsResponse=structtypenonrect={records:JournalRecordList.toption[@ocaml.doc"List of journal records matching the request criteria"];nextToken:String_.toption[@ocaml.doc"Token for retrieving the next page of results, if more results are available"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?records=fun?nextToken->fun()->{records;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("records",(Option.mapx.records~f:JournalRecordList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletrecords=(Option.map~f:JournalRecordList.of_xml)(Xml.childxml_arg0"records")inmake?nextToken?records()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletrecords=field_mapjson__"records"JournalRecordList.of_jsoninmake?nextToken?records()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response structure containing a list of journal records"]moduleListJournalRecordsRequest=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier for the agent space containing the execution"];executionId:ResourceId.t[@ocaml.doc"The unique identifier of the execution whose journal records to retrieve"];limit:ListJournalRecordsRequestLimitInteger.toption[@ocaml.doc"Maximum number of records to return in a single response (1-100, default: 100)"];nextToken:NextToken.toption[@ocaml.doc"Token for retrieving the next page of results"];recordType:String_.toption[@ocaml.doc"Filter records by type (empty string returns all types)"];order:OrderType.toption[@ocaml.doc"Sort order for the records based on timestamp (default: DESC)"]}letcontext_="ListJournalRecordsRequest"letmake?limit=fun?nextToken->fun?recordType->fun?order->fun~agentSpaceId->fun~executionId->fun()->{limit;nextToken;recordType;order;agentSpaceId;executionId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("executionId",(Some(ResourceId.to_valuex.executionId)));("limit",(Option.mapx.limit~f:ListJournalRecordsRequestLimitInteger.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("recordType",(Option.mapx.recordType~f:String_.to_value));("order",(Option.mapx.order~f:OrderType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letorder=(Option.map~f:OrderType.of_xml)(Xml.childxml_arg0"order")inletrecordType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"recordType")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletlimit=(Option.map~f:ListJournalRecordsRequestLimitInteger.of_xml)(Xml.childxml_arg0"limit")inletexecutionId=ResourceId.of_xml(Xml.child_exn~context:context_xml_arg0"executionId")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake?order?recordType?nextToken?limit~executionId~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letorder=field_mapjson__"order"OrderType.of_jsoninletrecordType=field_mapjson__"recordType"String_.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletlimit=field_mapjson__"limit"ListJournalRecordsRequestLimitInteger.of_jsoninletexecutionId=field_map_exnjson__"executionId"ResourceId.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?order?recordType?nextToken?limit~executionId~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request structure for listing journal records with filtering and pagination support"]moduleListGoalsResponse=structtypenonrect={goals:GoalList.toption[@ocaml.doc"List of goals matching the criteria"];nextToken:String_.toption[@ocaml.doc"Pagination token for the next set of results"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?goals=fun?nextToken->fun()->{goals;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("goals",(Option.mapx.goals~f:GoalList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletgoals=(Option.map~f:GoalList.of_xml)(Xml.childxml_arg0"goals")inmake?nextToken?goals()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletgoals=field_mapjson__"goals"GoalList.of_jsoninmake?nextToken?goals()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response structure containing the list of goals"]moduleListGoalsRequest=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier for the agent space"];status:GoalStatus.toption[@ocaml.doc"Filter goals by goal status"];goalType:GoalType.toption[@ocaml.doc"Filter goals by goal type"];limit:ListGoalsRequestLimitInteger.toption[@ocaml.doc"Maximum number of goals to return"];nextToken:NextToken.toption[@ocaml.doc"Pagination token for the next set of results"]}letcontext_="ListGoalsRequest"letmake?status=fun?goalType->fun?limit->fun?nextToken->fun~agentSpaceId->fun()->{status;goalType;limit;nextToken;agentSpaceId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("status",(Option.mapx.status~f:GoalStatus.to_value));("goalType",(Option.mapx.goalType~f:GoalType.to_value));("limit",(Option.mapx.limit~f:ListGoalsRequestLimitInteger.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletlimit=(Option.map~f:ListGoalsRequestLimitInteger.of_xml)(Xml.childxml_arg0"limit")inletgoalType=(Option.map~f:GoalType.of_xml)(Xml.childxml_arg0"goalType")inletstatus=(Option.map~f:GoalStatus.of_xml)(Xml.childxml_arg0"status")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake?nextToken?limit?goalType?status~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletlimit=field_mapjson__"limit"ListGoalsRequestLimitInteger.of_jsoninletgoalType=field_mapjson__"goalType"GoalType.of_jsoninletstatus=field_mapjson__"status"GoalStatus.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?nextToken?limit?goalType?status~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request structure for listing goals"]moduleListExecutionsResponse=structtypenonrect={executions:ExecutionList.toption[@ocaml.doc"List of executions"];nextToken:String_.toption[@ocaml.doc"Token for retrieving the next page of results, if available"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?executions=fun?nextToken->fun()->{executions;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("executions",(Option.mapx.executions~f:ExecutionList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletexecutions=(Option.map~f:ExecutionList.of_xml)(Xml.childxml_arg0"executions")inmake?nextToken?executions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletexecutions=field_mapjson__"executions"ExecutionList.of_jsoninmake?nextToken?executions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response structure containing executions"]moduleListExecutionsRequest=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier for the agent space"];taskId:ResourceId.t[@ocaml.doc"The unique identifier of the task whose executions to retrieve"];limit:Integer.toption[@ocaml.doc"Maximum number of executions to return"];nextToken:NextToken.toption[@ocaml.doc"Token for pagination to retrieve the next set of results"]}letcontext_="ListExecutionsRequest"letmake?limit=fun?nextToken->fun~agentSpaceId->fun~taskId->fun()->{limit;nextToken;agentSpaceId;taskId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("taskId",(Some(ResourceId.to_valuex.taskId)));("limit",(Option.mapx.limit~f:Integer.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletlimit=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"limit")inlettaskId=ResourceId.of_xml(Xml.child_exn~context:context_xml_arg0"taskId")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake?nextToken?limit~taskId~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletlimit=field_mapjson__"limit"Integer.of_jsoninlettaskId=field_map_exnjson__"taskId"ResourceId.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?nextToken?limit~taskId~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request structure for listing executions"]moduleListChatsResponse=structtypenonrect={executions:ChatExecutionList.toption[@ocaml.doc"List of recent chat executions"];nextToken:String_.toption[@ocaml.doc"Token for retrieving the next page of results"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?executions=fun?nextToken->fun()->{executions;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("executions",(Option.mapx.executions~f:ChatExecutionList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletexecutions=(Option.map~f:ChatExecutionList.of_xml)(Xml.childxml_arg0"executions")inmake?nextToken?executions()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletexecutions=field_mapjson__"executions"ChatExecutionList.of_jsoninmake?nextToken?executions()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response structure for listing chats"]moduleListChatsRequest=structtypenonrect={agentSpaceId:AgentSpaceId.t;userId:ResourceId.toption[@ocaml.doc"The user identifier to list chats for. This field is deprecated and will be ignored \226\128\148 the service resolves user identity from the authenticated session."];maxResults:ListChatsRequestMaxResultsInteger.toption[@ocaml.doc"Maximum number of results to return"];nextToken:String_.toption[@ocaml.doc"Token for pagination"]}letcontext_="ListChatsRequest"letmake?userId=fun?maxResults->fun?nextToken->fun~agentSpaceId->fun()->{userId;maxResults;nextToken;agentSpaceId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("userId",(Option.mapx.userId~f:ResourceId.to_value));("maxResults",(Option.mapx.maxResults~f:ListChatsRequestMaxResultsInteger.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:ListChatsRequestMaxResultsInteger.of_xml)(Xml.childxml_arg0"maxResults")inletuserId=(Option.map~f:ResourceId.of_xml)(Xml.childxml_arg0"userId")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake?nextToken?maxResults?userId~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninletmaxResults=field_mapjson__"maxResults"ListChatsRequestMaxResultsInteger.of_jsoninletuserId=field_mapjson__"userId"ResourceId.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?nextToken?maxResults?userId~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request structure for listing chats"]moduleListBacklogTasksResponse=structtypenonrect={tasks:TaskList.toption[@ocaml.doc"List of backlog tasks"];nextToken:String_.toption[@ocaml.doc"Token for retrieving the next page of results, if more results are available"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?tasks=fun?nextToken->fun()->{tasks;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("tasks",(Option.mapx.tasks~f:TaskList.to_value));("nextToken",(Option.mapx.nextToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"nextToken")inlettasks=(Option.map~f:TaskList.of_xml)(Xml.childxml_arg0"tasks")inmake?nextToken?tasks()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"String_.of_jsoninlettasks=field_mapjson__"tasks"TaskList.of_jsoninmake?nextToken?tasks()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response structure containing a list of backlog tasks"]moduleListBacklogTasksRequest=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier for the agent space containing the tasks"];filter:TaskFilter.toption[@ocaml.doc"Filter criteria to apply when listing tasks Filtering restrictions: Each filter field list is limited to a single value Filtering by Priority and Status at the same time when not filtering by Type is not permitted Timestamp filters (createdAfter, createdBefore) can be combined with other filters when not sorting by priority"];limit:ListBacklogTasksRequestLimitInteger.toption[@ocaml.doc"Maximum number of tasks to return in a single response (1-1000, default: 100)"];nextToken:NextToken.toption[@ocaml.doc"Token for retrieving the next page of results"];sortField:TaskSortField.toption[@ocaml.doc"Field to sort by Sorting restrictions: Only sorting on createdAt is supported when using priority or status filters alone. Sorting by priority is not supported when using Timestamp filters (createdAfter, createdBefore)"];order:TaskSortOrder.toption[@ocaml.doc"Sort order for the tasks based on sortField (default: DESC)"]}letcontext_="ListBacklogTasksRequest"letmake?filter=fun?limit->fun?nextToken->fun?sortField->fun?order->fun~agentSpaceId->fun()->{filter;limit;nextToken;sortField;order;agentSpaceId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("filter",(Option.mapx.filter~f:TaskFilter.to_value));("limit",(Option.mapx.limit~f:ListBacklogTasksRequestLimitInteger.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("sortField",(Option.mapx.sortField~f:TaskSortField.to_value));("order",(Option.mapx.order~f:TaskSortOrder.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letorder=(Option.map~f:TaskSortOrder.of_xml)(Xml.childxml_arg0"order")inletsortField=(Option.map~f:TaskSortField.of_xml)(Xml.childxml_arg0"sortField")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletlimit=(Option.map~f:ListBacklogTasksRequestLimitInteger.of_xml)(Xml.childxml_arg0"limit")inletfilter=(Option.map~f:TaskFilter.of_xml)(Xml.childxml_arg0"filter")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake?order?sortField?nextToken?limit?filter~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letorder=field_mapjson__"order"TaskSortOrder.of_jsoninletsortField=field_mapjson__"sortField"TaskSortField.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletlimit=field_mapjson__"limit"ListBacklogTasksRequestLimitInteger.of_jsoninletfilter=field_mapjson__"filter"TaskFilter.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?order?sortField?nextToken?limit?filter~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request structure for listing backlog tasks with filtering, sorting, and pagination support"]moduleListAssociationsOutput=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"Token to retrieve the next page of results, if there are more results."];associations:AssociationsList.toption[@ocaml.doc"The list of associations."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?associations->fun()->{nextToken;associations}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("associations",(Option.mapx.associations~f:AssociationsList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociations=(Option.map~f:AssociationsList.of_xml)(Xml.childxml_arg0"associations")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?associations?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociations=field_mapjson__"associations"AssociationsList.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninmake?associations?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing a list of service associations and pagination token."]moduleListAssociationsInput=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier of the AgentSpace"];maxResults:ListAssociationsInputMaxResultsInteger.toption[@ocaml.doc"Maximum number of results to return in a single call."];nextToken:NextToken.toption[@ocaml.doc"Token for the next page of results."];filterServiceTypes:ListAssociationsInputFilterServiceTypesString.toption[@ocaml.doc"A comma-separated list of service types to filter list associations output"]}letcontext_="ListAssociationsInput"letmake?maxResults=fun?nextToken->fun?filterServiceTypes->fun~agentSpaceId->fun()->{maxResults;nextToken;filterServiceTypes;agentSpaceId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("maxResults",(Option.mapx.maxResults~f:ListAssociationsInputMaxResultsInteger.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("filterServiceTypes",(Option.mapx.filterServiceTypes~f:ListAssociationsInputFilterServiceTypesString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfilterServiceTypes=(Option.map~f:ListAssociationsInputFilterServiceTypesString.of_xml)(Xml.childxml_arg0"filterServiceTypes")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:ListAssociationsInputMaxResultsInteger.of_xml)(Xml.childxml_arg0"maxResults")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake?filterServiceTypes?nextToken?maxResults~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfilterServiceTypes=field_mapjson__"filterServiceTypes"ListAssociationsInputFilterServiceTypesString.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"ListAssociationsInputMaxResultsInteger.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?filterServiceTypes?nextToken?maxResults~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for listing service associations within an AgentSpace."]moduleListAgentSpacesOutput=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"Token to retrieve the next page of results, if there are more results."];agentSpaces:AgentSpaceList.toption[@ocaml.doc"The list of AgentSpaces."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?nextToken=fun?agentSpaces->fun()->{nextToken;agentSpaces}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("agentSpaces",(Option.mapx.agentSpaces~f:AgentSpaceList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letagentSpaces=(Option.map~f:AgentSpaceList.of_xml)(Xml.childxml_arg0"agentSpaces")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?agentSpaces?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letagentSpaces=field_mapjson__"agentSpaces"AgentSpaceList.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninmake?agentSpaces?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing a list of AgentSpaces and pagination token."]moduleListAgentSpacesInput=structtypenonrect={maxResults:ListAgentSpacesInputMaxResultsInteger.toption[@ocaml.doc"Maximum number of results to return in a single call."];nextToken:NextToken.toption[@ocaml.doc"Token for the next page of results."]}letmake?maxResults=fun?nextToken->fun()->{maxResults;nextToken}letto_valuex=structure_to_value[("maxResults",(Option.mapx.maxResults~f:ListAgentSpacesInputMaxResultsInteger.to_value));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletmaxResults=(Option.map~f:ListAgentSpacesInputMaxResultsInteger.of_xml)(Xml.childxml_arg0"maxResults")inmake?nextToken?maxResults()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"maxResults"ListAgentSpacesInputMaxResultsInteger.of_jsoninmake?nextToken?maxResults()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for listing AgentSpaces with pagination support."]moduleGetServiceOutput=structtypenonrect={service:RegisteredService.toption;tags:Tags.toption[@ocaml.doc"Tags associated with the Service."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?service=fun?tags->fun()->{service;tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("service",(Option.mapx.service~f:RegisteredService.to_value));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletservice=(Option.map~f:RegisteredService.of_xml)(Xml.childxml_arg0"service")inmake?tags?service()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletservice=field_mapjson__"service"RegisteredService.of_jsoninmake?tags?service()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing the requested service details."]moduleGetServiceInput=structtypenonrect={serviceId:ServiceId.t[@ocaml.doc"The unique identifier of the given service."]}letcontext_="GetServiceInput"letmake~serviceId=fun()->{serviceId}letto_valuex=structure_to_value[("serviceId",(Some(ServiceId.to_valuex.serviceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letserviceId=ServiceId.of_xml(Xml.child_exn~context:context_xml_arg0"serviceId")inmake~serviceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letserviceId=field_map_exnjson__"serviceId"ServiceId.of_jsoninmake~serviceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for retrieving a specific service association."]moduleGetRecommendationResponse=structtypenonrect={recommendation:Recommendation.toption[@ocaml.doc"The requested recommendation"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?recommendation=fun()->{recommendation}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("recommendation",(Option.mapx.recommendation~f:Recommendation.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecommendation=(Option.map~f:Recommendation.of_xml)(Xml.childxml_arg0"recommendation")inmake?recommendation()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecommendation=field_mapjson__"recommendation"Recommendation.of_jsoninmake?recommendation()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response structure containing the requested recommendation"]moduleGetRecommendationRequest=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier for the agent space containing the recommendation"];recommendationId:ResourceId.t[@ocaml.doc"The unique identifier for the recommendation to retrieve"];recommendationVersion:Long.toption[@ocaml.doc"Specific version of the recommendation to retrieve. If not specified, returns the latest version."]}letcontext_="GetRecommendationRequest"letmake?recommendationVersion=fun~agentSpaceId->fun~recommendationId->fun()->{recommendationVersion;agentSpaceId;recommendationId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("recommendationId",(Some(ResourceId.to_valuex.recommendationId)));("recommendationVersion",(Option.mapx.recommendationVersion~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecommendationVersion=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"recommendationVersion")inletrecommendationId=ResourceId.of_xml(Xml.child_exn~context:context_xml_arg0"recommendationId")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake?recommendationVersion~recommendationId~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecommendationVersion=field_mapjson__"recommendationVersion"Long.of_jsoninletrecommendationId=field_map_exnjson__"recommendationId"ResourceId.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?recommendationVersion~recommendationId~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request structure for retrieving a specific recommendation"]moduleGetOperatorAppOutput=structtypenonrect={iam:IamAuthConfiguration.toption;idc:IdcAuthConfiguration.toption;idp:IdpAuthConfiguration.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?iam=fun?idc->fun?idp->fun()->{iam;idc;idp}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("iam",(Option.mapx.iam~f:IamAuthConfiguration.to_value));("idc",(Option.mapx.idc~f:IdcAuthConfiguration.to_value));("idp",(Option.mapx.idp~f:IdpAuthConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidp=(Option.map~f:IdpAuthConfiguration.of_xml)(Xml.childxml_arg0"idp")inletidc=(Option.map~f:IdcAuthConfiguration.of_xml)(Xml.childxml_arg0"idc")inletiam=(Option.map~f:IamAuthConfiguration.of_xml)(Xml.childxml_arg0"iam")inmake?idp?idc?iam()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidp=field_mapjson__"idp"IdpAuthConfiguration.of_jsoninletidc=field_mapjson__"idc"IdcAuthConfiguration.of_jsoninletiam=field_mapjson__"iam"IamAuthConfiguration.of_jsoninmake?idp?idc?iam()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing the Operator App configuration including authentication details."]moduleGetOperatorAppInput=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier of the AgentSpace"]}letcontext_="GetOperatorAppInput"letmake~agentSpaceId=fun()->{agentSpaceId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for retrieving Operator App configuration."]moduleGetBacklogTaskResponse=structtypenonrect={task:Task.toption[@ocaml.doc"The requested task object"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?task=fun()->{task}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("task",(Option.mapx.task~f:Task.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettask=(Option.map~f:Task.of_xml)(Xml.childxml_arg0"task")inmake?task()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettask=field_mapjson__"task"Task.of_jsoninmake?task()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response structure containing the requested backlog task"]moduleGetBacklogTaskRequest=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier for the agent space containing the task"];taskId:ResourceId.t[@ocaml.doc"The unique identifier of the task to retrieve"]}letcontext_="GetBacklogTaskRequest"letmake~agentSpaceId=fun~taskId->fun()->{agentSpaceId;taskId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("taskId",(Some(ResourceId.to_valuex.taskId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettaskId=ResourceId.of_xml(Xml.child_exn~context:context_xml_arg0"taskId")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake~taskId~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettaskId=field_map_exnjson__"taskId"ResourceId.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake~taskId~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request structure for retrieving a specific backlog task"]moduleGetAssociationOutput=structtypenonrect={association:Association.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?association=fun()->{association}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("association",(Option.mapx.association~f:Association.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociation=(Option.map~f:Association.of_xml)(Xml.childxml_arg0"association")inmake?association()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociation=field_mapjson__"association"Association.of_jsoninmake?association()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing the requested association details."]moduleGetAssociationInput=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier of the AgentSpace"];associationId:AssociationId.t[@ocaml.doc"The unique identifier of the given association."]}letcontext_="GetAssociationInput"letmake~agentSpaceId=fun~associationId->fun()->{agentSpaceId;associationId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("associationId",(Some(AssociationId.to_valuex.associationId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociationId=AssociationId.of_xml(Xml.child_exn~context:context_xml_arg0"associationId")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake~associationId~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociationId=field_map_exnjson__"associationId"AssociationId.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake~associationId~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for retrieving a specific service association."]moduleGetAgentSpaceOutput=structtypenonrect={agentSpace:AgentSpace.toption;tags:Tags.toption[@ocaml.doc"Tags associated with the AgentSpace."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?agentSpace=fun?tags->fun()->{agentSpace;tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("agentSpace",(Option.mapx.agentSpace~f:AgentSpace.to_value));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletagentSpace=(Option.map~f:AgentSpace.of_xml)(Xml.childxml_arg0"agentSpace")inmake?tags?agentSpace()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletagentSpace=field_mapjson__"agentSpace"AgentSpace.of_jsoninmake?tags?agentSpace()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing the requested AgentSpace details."]moduleGetAgentSpaceInput=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier of the AgentSpace"]}letcontext_="GetAgentSpaceInput"letmake~agentSpaceId=fun()->{agentSpaceId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for retrieving a specific AgentSpace by ID."]moduleGetAccountUsageOutput=structtypenonrect={monthlyAccountInvestigationHours:UsageMetric.toption[@ocaml.doc"Monthly investigation hours usage and limit for an account"];monthlyAccountEvaluationHours:UsageMetric.toption[@ocaml.doc"Monthly evaluation hours usage and limit for an account"];monthlyAccountSystemLearningHours:UsageMetric.toption[@ocaml.doc"Monthly system learning hours usage and limit for an account"];monthlyAccountOnDemandHours:UsageMetric.toption[@ocaml.doc"Monthly on-demand hours usage and limit for an account"];usagePeriodStartTime:DateTime.toption[@ocaml.doc"The start time of the usage tracking period"];usagePeriodEndTime:DateTime.toption[@ocaml.doc"The end time of the usage tracking period"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?monthlyAccountInvestigationHours=fun?monthlyAccountEvaluationHours->fun?monthlyAccountSystemLearningHours->fun?monthlyAccountOnDemandHours->fun?usagePeriodStartTime->fun?usagePeriodEndTime->fun()->{monthlyAccountInvestigationHours;monthlyAccountEvaluationHours;monthlyAccountSystemLearningHours;monthlyAccountOnDemandHours;usagePeriodStartTime;usagePeriodEndTime}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("monthlyAccountInvestigationHours",(Option.mapx.monthlyAccountInvestigationHours~f:UsageMetric.to_value));("monthlyAccountEvaluationHours",(Option.mapx.monthlyAccountEvaluationHours~f:UsageMetric.to_value));("monthlyAccountSystemLearningHours",(Option.mapx.monthlyAccountSystemLearningHours~f:UsageMetric.to_value));("monthlyAccountOnDemandHours",(Option.mapx.monthlyAccountOnDemandHours~f:UsageMetric.to_value));("usagePeriodStartTime",(Option.mapx.usagePeriodStartTime~f:DateTime.to_value));("usagePeriodEndTime",(Option.mapx.usagePeriodEndTime~f:DateTime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letusagePeriodEndTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"usagePeriodEndTime")inletusagePeriodStartTime=(Option.map~f:DateTime.of_xml)(Xml.childxml_arg0"usagePeriodStartTime")inletmonthlyAccountOnDemandHours=(Option.map~f:UsageMetric.of_xml)(Xml.childxml_arg0"monthlyAccountOnDemandHours")inletmonthlyAccountSystemLearningHours=(Option.map~f:UsageMetric.of_xml)(Xml.childxml_arg0"monthlyAccountSystemLearningHours")inletmonthlyAccountEvaluationHours=(Option.map~f:UsageMetric.of_xml)(Xml.childxml_arg0"monthlyAccountEvaluationHours")inletmonthlyAccountInvestigationHours=(Option.map~f:UsageMetric.of_xml)(Xml.childxml_arg0"monthlyAccountInvestigationHours")inmake?usagePeriodEndTime?usagePeriodStartTime?monthlyAccountOnDemandHours?monthlyAccountSystemLearningHours?monthlyAccountEvaluationHours?monthlyAccountInvestigationHours()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letusagePeriodEndTime=field_mapjson__"usagePeriodEndTime"DateTime.of_jsoninletusagePeriodStartTime=field_mapjson__"usagePeriodStartTime"DateTime.of_jsoninletmonthlyAccountOnDemandHours=field_mapjson__"monthlyAccountOnDemandHours"UsageMetric.of_jsoninletmonthlyAccountSystemLearningHours=field_mapjson__"monthlyAccountSystemLearningHours"UsageMetric.of_jsoninletmonthlyAccountEvaluationHours=field_mapjson__"monthlyAccountEvaluationHours"UsageMetric.of_jsoninletmonthlyAccountInvestigationHours=field_mapjson__"monthlyAccountInvestigationHours"UsageMetric.of_jsoninmake?usagePeriodEndTime?usagePeriodStartTime?monthlyAccountOnDemandHours?monthlyAccountSystemLearningHours?monthlyAccountEvaluationHours?monthlyAccountInvestigationHours()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves monthly account usage metrics and limits for the AWS account."]moduleGetAccountUsageInput=structtypenonrect=unitletmake()=()letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves monthly account usage metrics and limits for the AWS account."]moduleEnableOperatorAppOutput=structtypenonrect={agentSpaceId:AgentSpaceId.toption[@ocaml.doc"The unique identifier of the AgentSpace"];iam:IamAuthConfiguration.toption;idc:IdcAuthConfiguration.toption;idp:IdpAuthConfiguration.toption}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`IdentityCenterServiceExceptionofIdentityCenterServiceException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?agentSpaceId=fun?iam->fun?idc->fun?idp->fun()->{agentSpaceId;iam;idc;idp}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"IdentityCenterServiceException"->`IdentityCenterServiceException(IdentityCenterServiceException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"IdentityCenterServiceException"->`IdentityCenterServiceException(IdentityCenterServiceException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`IdentityCenterServiceExceptione->`Assoc[("error",(`String"IdentityCenterServiceException"));("details",(IdentityCenterServiceException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("agentSpaceId",(Option.mapx.agentSpaceId~f:AgentSpaceId.to_value));("iam",(Option.mapx.iam~f:IamAuthConfiguration.to_value));("idc",(Option.mapx.idc~f:IdcAuthConfiguration.to_value));("idp",(Option.mapx.idp~f:IdpAuthConfiguration.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letidp=(Option.map~f:IdpAuthConfiguration.of_xml)(Xml.childxml_arg0"idp")inletidc=(Option.map~f:IdcAuthConfiguration.of_xml)(Xml.childxml_arg0"idc")inletiam=(Option.map~f:IamAuthConfiguration.of_xml)(Xml.childxml_arg0"iam")inletagentSpaceId=(Option.map~f:AgentSpaceId.of_xml)(Xml.childxml_arg0"agentSpaceId")inmake?idp?idc?iam?agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letidp=field_mapjson__"idp"IdpAuthConfiguration.of_jsoninletidc=field_mapjson__"idc"IdcAuthConfiguration.of_jsoninletiam=field_mapjson__"iam"IamAuthConfiguration.of_jsoninletagentSpaceId=field_mapjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?idp?idc?iam?agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing the enabled Operator App configuration."]moduleEnableOperatorAppInput=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier of the AgentSpace"];authFlow:AuthFlow.t[@ocaml.doc"The authentication flow configured for the operator App. e.g. iam or idc"];operatorAppRoleArn:RoleArn.t[@ocaml.doc"The IAM role end users assume to access AIDevOps APIs"];idcInstanceArn:String_.toption[@ocaml.doc"The IdC instance Arn used to create an IdC auth application"];issuerUrl:String_.toption[@ocaml.doc"The OIDC issuer URL of the external Identity Provider"];idpClientId:IdpClientId.toption[@ocaml.doc"The OIDC client ID for the IdP application"];idpClientSecret:IdpClientSecret.toption[@ocaml.doc"The OIDC client secret for the IdP application"];provider:String_.toption[@ocaml.doc"The Identity Provider name (e.g., Entra, Okta, Google)"]}letcontext_="EnableOperatorAppInput"letmake?idcInstanceArn=fun?issuerUrl->fun?idpClientId->fun?idpClientSecret->fun?provider->fun~agentSpaceId->fun~authFlow->fun~operatorAppRoleArn->fun()->{idcInstanceArn;issuerUrl;idpClientId;idpClientSecret;provider;agentSpaceId;authFlow;operatorAppRoleArn}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("authFlow",(Some(AuthFlow.to_valuex.authFlow)));("operatorAppRoleArn",(Some(RoleArn.to_valuex.operatorAppRoleArn)));("idcInstanceArn",(Option.mapx.idcInstanceArn~f:String_.to_value));("issuerUrl",(Option.mapx.issuerUrl~f:String_.to_value));("idpClientId",(Option.mapx.idpClientId~f:IdpClientId.to_value));("idpClientSecret",(Option.mapx.idpClientSecret~f:IdpClientSecret.to_value));("provider",(Option.mapx.provider~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letprovider=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"provider")inletidpClientSecret=(Option.map~f:IdpClientSecret.of_xml)(Xml.childxml_arg0"idpClientSecret")inletidpClientId=(Option.map~f:IdpClientId.of_xml)(Xml.childxml_arg0"idpClientId")inletissuerUrl=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"issuerUrl")inletidcInstanceArn=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"idcInstanceArn")inletoperatorAppRoleArn=RoleArn.of_xml(Xml.child_exn~context:context_xml_arg0"operatorAppRoleArn")inletauthFlow=AuthFlow.of_xml(Xml.child_exn~context:context_xml_arg0"authFlow")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake?provider?idpClientSecret?idpClientId?issuerUrl?idcInstanceArn~operatorAppRoleArn~authFlow~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letprovider=field_mapjson__"provider"String_.of_jsoninletidpClientSecret=field_mapjson__"idpClientSecret"IdpClientSecret.of_jsoninletidpClientId=field_mapjson__"idpClientId"IdpClientId.of_jsoninletissuerUrl=field_mapjson__"issuerUrl"String_.of_jsoninletidcInstanceArn=field_mapjson__"idcInstanceArn"String_.of_jsoninletoperatorAppRoleArn=field_map_exnjson__"operatorAppRoleArn"RoleArn.of_jsoninletauthFlow=field_map_exnjson__"authFlow"AuthFlow.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?provider?idpClientSecret?idpClientId?issuerUrl?idcInstanceArn~operatorAppRoleArn~authFlow~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for enabling the Operator App for an AgentSpace."]moduleDisassociateServiceOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Empty output for successful service disassociation."]moduleDisassociateServiceInput=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier of the AgentSpace"];associationId:AssociationId.t[@ocaml.doc"The unique identifier of the given association."]}letcontext_="DisassociateServiceInput"letmake~agentSpaceId=fun~associationId->fun()->{agentSpaceId;associationId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("associationId",(Some(AssociationId.to_valuex.associationId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letassociationId=AssociationId.of_xml(Xml.child_exn~context:context_xml_arg0"associationId")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake~associationId~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letassociationId=field_map_exnjson__"associationId"AssociationId.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake~associationId~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for removing a service association from an AgentSpace."]moduleDisableOperatorAppInput=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier of the AgentSpace"];authFlow:AuthFlow.toption[@ocaml.doc"The authentication flow configured for the operator App. e.g. idc"]}letcontext_="DisableOperatorAppInput"letmake?authFlow=fun~agentSpaceId->fun()->{authFlow;agentSpaceId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("x-amzn-app-auth-flow",(Option.mapx.authFlow~f:AuthFlow.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthFlow=(Option.map~f:AuthFlow.of_xml)(Xml.childxml_arg0"x-amzn-app-auth-flow")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake?authFlow~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthFlow=field_mapjson__"authFlow"AuthFlow.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?authFlow~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for disabling the Operator App for an AgentSpace."]moduleDescribePrivateConnectionOutput=structtypenonrect={name:PrivateConnectionName.toption[@ocaml.doc"The name of the Private Connection."];type_:PrivateConnectionType.toption[@ocaml.doc"The type of the Private Connection."];resourceGatewayId:ResourceGatewayArn.toption[@ocaml.doc"The service-managed Resource Gateway ARN. Only present for service-managed Private Connections."];hostAddress:IpAddressOrDnsName.toption[@ocaml.doc"IP address or DNS name of the target resource. Only present for service-managed Private Connections."];vpcId:VpcId.toption[@ocaml.doc"VPC identifier of the service-managed Resource Gateway. Only present for service-managed Private Connections."];resourceConfigurationId:ResourceConfigurationArn.toption[@ocaml.doc"The Resource Configuration ARN. Only present for self-managed Private Connections."];status:PrivateConnectionStatus.toption[@ocaml.doc"The status of the Private Connection."];certificateExpiryTime:SyntheticTimestamp_date_time.toption[@ocaml.doc"The expiry time of the certificate associated with the Private Connection. Only present when a certificate is associated."];tags:Tags.toption[@ocaml.doc"Tags associated with the Private Connection."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?name=fun?type_->fun?resourceGatewayId->fun?hostAddress->fun?vpcId->fun?resourceConfigurationId->fun?status->fun?certificateExpiryTime->fun?tags->fun()->{name;type_;resourceGatewayId;hostAddress;vpcId;resourceConfigurationId;status;certificateExpiryTime;tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("name",(Option.mapx.name~f:PrivateConnectionName.to_value));("type",(Option.mapx.type_~f:PrivateConnectionType.to_value));("resourceGatewayId",(Option.mapx.resourceGatewayId~f:ResourceGatewayArn.to_value));("hostAddress",(Option.mapx.hostAddress~f:IpAddressOrDnsName.to_value));("vpcId",(Option.mapx.vpcId~f:VpcId.to_value));("resourceConfigurationId",(Option.mapx.resourceConfigurationId~f:ResourceConfigurationArn.to_value));("status",(Option.mapx.status~f:PrivateConnectionStatus.to_value));("certificateExpiryTime",(Option.mapx.certificateExpiryTime~f:SyntheticTimestamp_date_time.to_value));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletcertificateExpiryTime=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"certificateExpiryTime")inletstatus=(Option.map~f:PrivateConnectionStatus.of_xml)(Xml.childxml_arg0"status")inletresourceConfigurationId=(Option.map~f:ResourceConfigurationArn.of_xml)(Xml.childxml_arg0"resourceConfigurationId")inletvpcId=(Option.map~f:VpcId.of_xml)(Xml.childxml_arg0"vpcId")inlethostAddress=(Option.map~f:IpAddressOrDnsName.of_xml)(Xml.childxml_arg0"hostAddress")inletresourceGatewayId=(Option.map~f:ResourceGatewayArn.of_xml)(Xml.childxml_arg0"resourceGatewayId")inlettype_=(Option.map~f:PrivateConnectionType.of_xml)(Xml.childxml_arg0"type")inletname=(Option.map~f:PrivateConnectionName.of_xml)(Xml.childxml_arg0"name")inmake?tags?certificateExpiryTime?status?resourceConfigurationId?vpcId?hostAddress?resourceGatewayId?type_?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletcertificateExpiryTime=field_mapjson__"certificateExpiryTime"SyntheticTimestamp_date_time.of_jsoninletstatus=field_mapjson__"status"PrivateConnectionStatus.of_jsoninletresourceConfigurationId=field_mapjson__"resourceConfigurationId"ResourceConfigurationArn.of_jsoninletvpcId=field_mapjson__"vpcId"VpcId.of_jsoninlethostAddress=field_mapjson__"hostAddress"IpAddressOrDnsName.of_jsoninletresourceGatewayId=field_mapjson__"resourceGatewayId"ResourceGatewayArn.of_jsoninlettype_=field_mapjson__"type"PrivateConnectionType.of_jsoninletname=field_mapjson__"name"PrivateConnectionName.of_jsoninmake?tags?certificateExpiryTime?status?resourceConfigurationId?vpcId?hostAddress?resourceGatewayId?type_?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing the Private Connection details."]moduleDescribePrivateConnectionInput=structtypenonrect={name:PrivateConnectionName.t[@ocaml.doc"The name of the Private Connection."]}letcontext_="DescribePrivateConnectionInput"letmake~name=fun()->{name}letto_valuex=structure_to_value[("name",(Some(PrivateConnectionName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=PrivateConnectionName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"name"PrivateConnectionName.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for describing an existing Private Connection."]moduleDeregisterServiceOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Empty output for successful service deregistration."]moduleDeregisterServiceInput=structtypenonrect={serviceId:ServiceId.t[@ocaml.doc"The service id to deregister. A service can only be deregistered if it is not associated with any AgentSpace."]}letcontext_="DeregisterServiceInput"letmake~serviceId=fun()->{serviceId}letto_valuex=structure_to_value[("serviceId",(Some(ServiceId.to_valuex.serviceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letserviceId=ServiceId.of_xml(Xml.child_exn~context:context_xml_arg0"serviceId")inmake~serviceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letserviceId=field_map_exnjson__"serviceId"ServiceId.of_jsoninmake~serviceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for deregistering a service."]moduleDeletePrivateConnectionOutput=structtypenonrect={name:PrivateConnectionName.toption[@ocaml.doc"The name of the Private Connection."];status:PrivateConnectionStatus.toption[@ocaml.doc"The status of the Private Connection."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?name=fun?status->fun()->{name;status}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("name",(Option.mapx.name~f:PrivateConnectionName.to_value));("status",(Option.mapx.status~f:PrivateConnectionStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:PrivateConnectionStatus.of_xml)(Xml.childxml_arg0"status")inletname=(Option.map~f:PrivateConnectionName.of_xml)(Xml.childxml_arg0"name")inmake?status?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"status"PrivateConnectionStatus.of_jsoninletname=field_mapjson__"name"PrivateConnectionName.of_jsoninmake?status?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing the status of the Private Connection deletion."]moduleDeletePrivateConnectionInput=structtypenonrect={name:PrivateConnectionName.t[@ocaml.doc"The name of the Private Connection."]}letcontext_="DeletePrivateConnectionInput"letmake~name=fun()->{name}letto_valuex=structure_to_value[("name",(Some(PrivateConnectionName.to_valuex.name)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letname=PrivateConnectionName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letname=field_map_exnjson__"name"PrivateConnectionName.of_jsoninmake~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for deleting an existing Private Connection."]moduleDeleteAgentSpaceOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Empty output for successful AgentSpace deletion."]moduleDeleteAgentSpaceInput=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier of the AgentSpace"]}letcontext_="DeleteAgentSpaceInput"letmake~agentSpaceId=fun()->{agentSpaceId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for deleting an AgentSpace."]moduleCreatePrivateConnectionOutput=structtypenonrect={name:PrivateConnectionName.toption[@ocaml.doc"The name of the Private Connection."];type_:PrivateConnectionType.toption[@ocaml.doc"The type of the Private Connection."];resourceGatewayId:ResourceGatewayArn.toption[@ocaml.doc"The service-managed Resource Gateway ARN. Only present for service-managed Private Connections."];hostAddress:IpAddressOrDnsName.toption[@ocaml.doc"IP address or DNS name of the target resource. Only present for service-managed Private Connections."];vpcId:VpcId.toption[@ocaml.doc"VPC identifier of the service-managed Resource Gateway. Only present for service-managed Private Connections."];resourceConfigurationId:ResourceConfigurationArn.toption[@ocaml.doc"The Resource Configuration ARN. Only present for self-managed Private Connections."];status:PrivateConnectionStatus.toption[@ocaml.doc"The status of the Private Connection."];certificateExpiryTime:SyntheticTimestamp_date_time.toption[@ocaml.doc"The expiry time of the certificate associated with the Private Connection. Only present when a certificate is associated."];tags:Tags.toption[@ocaml.doc"Tags associated with the created Private Connection."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?name=fun?type_->fun?resourceGatewayId->fun?hostAddress->fun?vpcId->fun?resourceConfigurationId->fun?status->fun?certificateExpiryTime->fun?tags->fun()->{name;type_;resourceGatewayId;hostAddress;vpcId;resourceConfigurationId;status;certificateExpiryTime;tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("name",(Option.mapx.name~f:PrivateConnectionName.to_value));("type",(Option.mapx.type_~f:PrivateConnectionType.to_value));("resourceGatewayId",(Option.mapx.resourceGatewayId~f:ResourceGatewayArn.to_value));("hostAddress",(Option.mapx.hostAddress~f:IpAddressOrDnsName.to_value));("vpcId",(Option.mapx.vpcId~f:VpcId.to_value));("resourceConfigurationId",(Option.mapx.resourceConfigurationId~f:ResourceConfigurationArn.to_value));("status",(Option.mapx.status~f:PrivateConnectionStatus.to_value));("certificateExpiryTime",(Option.mapx.certificateExpiryTime~f:SyntheticTimestamp_date_time.to_value));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletcertificateExpiryTime=(Option.map~f:SyntheticTimestamp_date_time.of_xml)(Xml.childxml_arg0"certificateExpiryTime")inletstatus=(Option.map~f:PrivateConnectionStatus.of_xml)(Xml.childxml_arg0"status")inletresourceConfigurationId=(Option.map~f:ResourceConfigurationArn.of_xml)(Xml.childxml_arg0"resourceConfigurationId")inletvpcId=(Option.map~f:VpcId.of_xml)(Xml.childxml_arg0"vpcId")inlethostAddress=(Option.map~f:IpAddressOrDnsName.of_xml)(Xml.childxml_arg0"hostAddress")inletresourceGatewayId=(Option.map~f:ResourceGatewayArn.of_xml)(Xml.childxml_arg0"resourceGatewayId")inlettype_=(Option.map~f:PrivateConnectionType.of_xml)(Xml.childxml_arg0"type")inletname=(Option.map~f:PrivateConnectionName.of_xml)(Xml.childxml_arg0"name")inmake?tags?certificateExpiryTime?status?resourceConfigurationId?vpcId?hostAddress?resourceGatewayId?type_?name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletcertificateExpiryTime=field_mapjson__"certificateExpiryTime"SyntheticTimestamp_date_time.of_jsoninletstatus=field_mapjson__"status"PrivateConnectionStatus.of_jsoninletresourceConfigurationId=field_mapjson__"resourceConfigurationId"ResourceConfigurationArn.of_jsoninletvpcId=field_mapjson__"vpcId"VpcId.of_jsoninlethostAddress=field_mapjson__"hostAddress"IpAddressOrDnsName.of_jsoninletresourceGatewayId=field_mapjson__"resourceGatewayId"ResourceGatewayArn.of_jsoninlettype_=field_mapjson__"type"PrivateConnectionType.of_jsoninletname=field_mapjson__"name"PrivateConnectionName.of_jsoninmake?tags?certificateExpiryTime?status?resourceConfigurationId?vpcId?hostAddress?resourceGatewayId?type_?name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing the newly created Private Connection summary."]moduleCreatePrivateConnectionInput=structtypenonrect={name:PrivateConnectionName.t[@ocaml.doc"Unique name for this Private Connection within the account."];mode:PrivateConnectionMode.t[@ocaml.doc"Private Connection mode configuration."];tags:Tags.toption[@ocaml.doc"Tags to add to the Private Connection at creation time."]}letcontext_="CreatePrivateConnectionInput"letmake?tags=fun~name->fun~mode->fun()->{tags;name;mode}letto_valuex=structure_to_value[("name",(Some(PrivateConnectionName.to_valuex.name)));("mode",(Some(PrivateConnectionMode.to_valuex.mode)));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletmode=PrivateConnectionMode.of_xml(Xml.child_exn~context:context_xml_arg0"mode")inletname=PrivateConnectionName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake?tags~mode~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletmode=field_map_exnjson__"mode"PrivateConnectionMode.of_jsoninletname=field_map_exnjson__"name"PrivateConnectionName.of_jsoninmake?tags~mode~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for creating a new Private Connection."]moduleCreateChatResponse=structtypenonrect={executionId:ResourceId.toption[@ocaml.doc"The unique identifier for the created execution"];createdAt:Timestamp.toption[@ocaml.doc"Timestamp when the chat was created"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?executionId=fun?createdAt->fun()->{executionId;createdAt}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("executionId",(Option.mapx.executionId~f:ResourceId.to_value));("createdAt",(Option.mapx.createdAt~f:Timestamp.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcreatedAt=(Option.map~f:Timestamp.of_xml)(Xml.childxml_arg0"createdAt")inletexecutionId=(Option.map~f:ResourceId.of_xml)(Xml.childxml_arg0"executionId")inmake?createdAt?executionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcreatedAt=field_mapjson__"createdAt"Timestamp.of_jsoninletexecutionId=field_mapjson__"executionId"ResourceId.of_jsoninmake?createdAt?executionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response structure for creating a new chat"]moduleCreateChatRequest=structtypenonrect={agentSpaceId:AgentSpaceId.t;userId:ResourceId.toption[@ocaml.doc"The user identifier for the chat. This field is deprecated and will be ignored \226\128\148 the service resolves user identity from the authenticated session."];userType:UserType.toption[@ocaml.doc"The authentication type of the user"]}letcontext_="CreateChatRequest"letmake?userId=fun?userType->fun~agentSpaceId->fun()->{userId;userType;agentSpaceId}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("userId",(Option.mapx.userId~f:ResourceId.to_value));("userType",(Option.mapx.userType~f:UserType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuserType=(Option.map~f:UserType.of_xml)(Xml.childxml_arg0"userType")inletuserId=(Option.map~f:ResourceId.of_xml)(Xml.childxml_arg0"userId")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake?userType?userId~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuserType=field_mapjson__"userType"UserType.of_jsoninletuserId=field_mapjson__"userId"ResourceId.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?userType?userId~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request structure for creating a new chat"]moduleCreateBacklogTaskResponse=structtypenonrect={task:Task.toption[@ocaml.doc"The newly created task object"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?task=fun()->{task}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("task",(Option.mapx.task~f:Task.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettask=(Option.map~f:Task.of_xml)(Xml.childxml_arg0"task")inmake?task()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettask=field_mapjson__"task"Task.of_jsoninmake?task()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Response structure containing the created backlog task"]moduleCreateBacklogTaskRequest=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier for the agent space where the task will be created"];reference:ReferenceInput.toption[@ocaml.doc"Optional reference information for the task"];taskType:TaskType.t[@ocaml.doc"The type of task being created"];title:BacklogTaskTitle.t[@ocaml.doc"The title of the backlog task"];description:BacklogTaskDescription.toption[@ocaml.doc"Optional detailed description of the task"];priority:Priority.t[@ocaml.doc"The priority level of the task"];clientToken:String_.toption[@ocaml.doc"Client-provided token for idempotent operations"]}letcontext_="CreateBacklogTaskRequest"letmake?reference=fun?description->fun?clientToken->fun~agentSpaceId->fun~taskType->fun~title->fun~priority->fun()->{reference;description;clientToken;agentSpaceId;taskType;title;priority}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("reference",(Option.mapx.reference~f:ReferenceInput.to_value));("taskType",(Some(TaskType.to_valuex.taskType)));("title",(Some(BacklogTaskTitle.to_valuex.title)));("description",(Option.mapx.description~f:BacklogTaskDescription.to_value));("priority",(Some(Priority.to_valuex.priority)));("clientToken",(Option.mapx.clientToken~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letclientToken=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"clientToken")inletpriority=Priority.of_xml(Xml.child_exn~context:context_xml_arg0"priority")inletdescription=(Option.map~f:BacklogTaskDescription.of_xml)(Xml.childxml_arg0"description")inlettitle=BacklogTaskTitle.of_xml(Xml.child_exn~context:context_xml_arg0"title")inlettaskType=TaskType.of_xml(Xml.child_exn~context:context_xml_arg0"taskType")inletreference=(Option.map~f:ReferenceInput.of_xml)(Xml.childxml_arg0"reference")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake?clientToken~priority?description~title~taskType?reference~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letclientToken=field_mapjson__"clientToken"String_.of_jsoninletpriority=field_map_exnjson__"priority"Priority.of_jsoninletdescription=field_mapjson__"description"BacklogTaskDescription.of_jsoninlettitle=field_map_exnjson__"title"BacklogTaskTitle.of_jsoninlettaskType=field_map_exnjson__"taskType"TaskType.of_jsoninletreference=field_mapjson__"reference"ReferenceInput.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake?clientToken~priority?description~title~taskType?reference~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Request structure for creating a new backlog task"]moduleCreateAgentSpaceOutput=structtypenonrect={agentSpace:AgentSpace.toption;tags:Tags.toption[@ocaml.doc"Tags associated with the created AgentSpace."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?agentSpace=fun?tags->fun()->{agentSpace;tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("agentSpace",(Option.mapx.agentSpace~f:AgentSpace.to_value));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletagentSpace=(Option.map~f:AgentSpace.of_xml)(Xml.childxml_arg0"agentSpace")inmake?tags?agentSpace()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletagentSpace=field_mapjson__"agentSpace"AgentSpace.of_jsoninmake?tags?agentSpace()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing the newly created AgentSpace."]moduleCreateAgentSpaceInput=structtypenonrect={name:AgentSpaceName.t[@ocaml.doc"The name of the AgentSpace."];description:Description.toption[@ocaml.doc"The description of the AgentSpace."];locale:Locale.toption[@ocaml.doc"The locale for the AgentSpace, which determines the language used in agent responses."];kmsKeyArn:KmsKeyArn.toption[@ocaml.doc"The ARN of the AWS Key Management Service (AWS KMS) customer managed key that's used to encrypt resources."];clientToken:CreateAgentSpaceInputClientTokenString.toption[@ocaml.doc"Client-provided token to ensure request idempotency. When the same token is provided in subsequent calls, the same response is returned within a 8-hour window."];tags:Tags.toption[@ocaml.doc"Tags to add to the AgentSpace at creation time."]}letcontext_="CreateAgentSpaceInput"letmake?description=fun?locale->fun?kmsKeyArn->fun?clientToken->fun?tags->fun~name->fun()->{description;locale;kmsKeyArn;clientToken;tags;name}letto_valuex=structure_to_value[("name",(Some(AgentSpaceName.to_valuex.name)));("description",(Option.mapx.description~f:Description.to_value));("locale",(Option.mapx.locale~f:Locale.to_value));("kmsKeyArn",(Option.mapx.kmsKeyArn~f:KmsKeyArn.to_value));("clientToken",(Option.mapx.clientToken~f:CreateAgentSpaceInputClientTokenString.to_value));("tags",(Option.mapx.tags~f:Tags.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:Tags.of_xml)(Xml.childxml_arg0"tags")inletclientToken=(Option.map~f:CreateAgentSpaceInputClientTokenString.of_xml)(Xml.childxml_arg0"clientToken")inletkmsKeyArn=(Option.map~f:KmsKeyArn.of_xml)(Xml.childxml_arg0"kmsKeyArn")inletlocale=(Option.map~f:Locale.of_xml)(Xml.childxml_arg0"locale")inletdescription=(Option.map~f:Description.of_xml)(Xml.childxml_arg0"description")inletname=AgentSpaceName.of_xml(Xml.child_exn~context:context_xml_arg0"name")inmake?tags?clientToken?kmsKeyArn?locale?description~name()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"Tags.of_jsoninletclientToken=field_mapjson__"clientToken"CreateAgentSpaceInputClientTokenString.of_jsoninletkmsKeyArn=field_mapjson__"kmsKeyArn"KmsKeyArn.of_jsoninletlocale=field_mapjson__"locale"Locale.of_jsoninletdescription=field_mapjson__"description"Description.of_jsoninletname=field_map_exnjson__"name"AgentSpaceName.of_jsoninmake?tags?clientToken?kmsKeyArn?locale?description~name()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for creating a new AgentSpace."]moduleAssociateServiceOutput=structtypenonrect={association:Association.toption;webhook:GenericWebhook.toption[@ocaml.doc"Generic webhook configuration"]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`ContentSizeExceededExceptionofContentSizeExceededException.t|`InternalServerExceptionofInternalServerException.t|`InvalidParameterExceptionofInvalidParameterException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?association=fun?webhook->fun()->{association;webhook}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"ContentSizeExceededException"->`ContentSizeExceededException(ContentSizeExceededException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"InvalidParameterException"->`InvalidParameterException(InvalidParameterException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`ContentSizeExceededExceptione->`Assoc[("error",(`String"ContentSizeExceededException"));("details",(ContentSizeExceededException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`InvalidParameterExceptione->`Assoc[("error",(`String"InvalidParameterException"));("details",(InvalidParameterException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("association",(Option.mapx.association~f:Association.to_value));("webhook",(Option.mapx.webhook~f:GenericWebhook.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwebhook=(Option.map~f:GenericWebhook.of_xml)(Xml.childxml_arg0"webhook")inletassociation=(Option.map~f:Association.of_xml)(Xml.childxml_arg0"association")inmake?webhook?association()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwebhook=field_mapjson__"webhook"GenericWebhook.of_jsoninletassociation=field_mapjson__"association"Association.of_jsoninmake?webhook?association()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Output containing the newly created association and optional webhook configuration."]moduleAssociateServiceInput=structtypenonrect={agentSpaceId:AgentSpaceId.t[@ocaml.doc"The unique identifier of the AgentSpace"];serviceId:ServiceId.t[@ocaml.doc"The unique identifier of the service."];configuration:ServiceConfiguration.t[@ocaml.doc"The configuration that directs how AgentSpace interacts with the given service."]}letcontext_="AssociateServiceInput"letmake~agentSpaceId=fun~serviceId->fun~configuration->fun()->{agentSpaceId;serviceId;configuration}letto_valuex=structure_to_value[("agentSpaceId",(Some(AgentSpaceId.to_valuex.agentSpaceId)));("serviceId",(Some(ServiceId.to_valuex.serviceId)));("configuration",(Some(ServiceConfiguration.to_valuex.configuration)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconfiguration=ServiceConfiguration.of_xml(Xml.child_exn~context:context_xml_arg0"configuration")inletserviceId=ServiceId.of_xml(Xml.child_exn~context:context_xml_arg0"serviceId")inletagentSpaceId=AgentSpaceId.of_xml(Xml.child_exn~context:context_xml_arg0"agentSpaceId")inmake~configuration~serviceId~agentSpaceId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconfiguration=field_map_exnjson__"configuration"ServiceConfiguration.of_jsoninletserviceId=field_map_exnjson__"serviceId"ServiceId.of_jsoninletagentSpaceId=field_map_exnjson__"agentSpaceId"AgentSpaceId.of_jsoninmake~configuration~serviceId~agentSpaceId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Input for creating a new service association within an AgentSpace."]