1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610(* 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.socialmessagingletapiVersion="2024-01-01"letendpointPrefix="social-messaging"letserviceFullName="AWS End User Messaging Social"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[]))])moduleSupportedAppKeyString=structtypenonrect=stringletcontext_="SupportedAppKeyString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:30)>>=(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:"SupportedAppKeyString"jletto_json=simple_to_jsonto_valueendmoduleSupportedAppValueString=structtypenonrect=stringletcontext_="SupportedAppValueString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100)>>=(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:"SupportedAppValueString"jletto_json=simple_to_jsonto_valueendmoduleSupportedApp=structtypenonrect=(SupportedAppKeyString.t*SupportedAppValueString.t)listletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(fun()->check_list_mini~min:0));iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((SupportedAppKeyString.of_stringchopped),(SupportedAppValueString.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(SupportedAppKeyString.to_valuex)|>(funx->(SupportedAppValueString.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:SupportedAppKeyString.of_string~of_json:SupportedAppValueString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleIsoCountryCode=structtypenonrect=stringletcontext_="IsoCountryCode"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[A-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:"IsoCountryCode"jletto_json=simple_to_jsonto_valueendmoduleLinkedWhatsAppPhoneNumberArn=structtypenonrect=stringletcontext_="LinkedWhatsAppPhoneNumberArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:.*:phone-number-id/[0-9a-zA-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:"LinkedWhatsAppPhoneNumberArn"jletto_json=simple_to_jsonto_valueendmodulePhoneNumber=structtypenonrect=stringletcontext_="PhoneNumber"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:20)>>=(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:"PhoneNumber"jletto_json=simple_to_jsonto_valueendmoduleWhatsAppDisplayPhoneNumber=structtypenonrect=stringletcontext_="WhatsAppDisplayPhoneNumber"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:20)>>=(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:"WhatsAppDisplayPhoneNumber"jletto_json=simple_to_jsonto_valueendmoduleWhatsAppPhoneNumber=structtypenonrect=stringletcontext_="WhatsAppPhoneNumber"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100)>>=(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:"WhatsAppPhoneNumber"jletto_json=simple_to_jsonto_valueendmoduleWhatsAppPhoneNumberId=structtypenonrect=stringletcontext_="WhatsAppPhoneNumberId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:115)>>=(fun()->check_patterni~pattern:".*(^phone-number-id-.*$)|(^arn:.*:phone-number-id/[0-9a-zA-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:"WhatsAppPhoneNumberId"jletto_json=simple_to_jsonto_valueendmoduleWhatsAppPhoneNumberName=structtypenonrect=stringletcontext_="WhatsAppPhoneNumberName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:200)>>=(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:"WhatsAppPhoneNumberName"jletto_json=simple_to_jsonto_valueendmoduleWhatsAppPhoneNumberQualityRating=structtypenonrect=stringletcontext_="WhatsAppPhoneNumberQualityRating"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:10)>>=(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:"WhatsAppPhoneNumberQualityRating"jletto_json=simple_to_jsonto_valueendmoduleTagKeyString=structtypenonrect=stringletcontext_="TagKeyString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:128)>>=(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:"TagKeyString"jletto_json=simple_to_jsonto_valueendmoduleTagValueString=structtypenonrect=stringletcontext_="TagValueString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(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:"TagValueString"jletto_json=simple_to_jsonto_valueendmoduleButtonType=structtypenonrect=stringletcontext_="ButtonType"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:25)>>=(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:"ButtonType"jletto_json=simple_to_jsonto_valueendmoduleMetaText=structtypenonrect=stringletcontext_="MetaText"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:40)>>=(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:"MetaText"jletto_json=simple_to_jsonto_valueendmoduleMetaUrl=structtypenonrect=stringletcontext_="MetaUrl"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:"MetaUrl"jletto_json=simple_to_jsonto_valueendmoduleOtpType=structtypenonrect=stringletcontext_="OtpType"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:25)>>=(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:"OtpType"jletto_json=simple_to_jsonto_valueendmoduleSupportedApps=structtypenonrect=SupportedApp.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:SupportedApp.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:SupportedApp.of_xml)letof_jsonj=list_of_json~kind:"SupportedApps"~of_json:SupportedApp.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleZeroTapTermsAccepted=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_valueendmoduleEventDestinationArn=structtypenonrect=stringletcontext_="EventDestinationArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:.*:[a-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:"EventDestinationArn"jletto_json=simple_to_jsonto_valueendmoduleRoleArn=structtypenonrect=stringletcontext_="RoleArn"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"arn:.*: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_valueendmoduleMetaUrlWithSuffixExampleKeyString=structtypenonrect=stringletcontext_="MetaUrlWithSuffixExampleKeyString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:30)>>=(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:"MetaUrlWithSuffixExampleKeyString"jletto_json=simple_to_jsonto_valueendmoduleMetaUrlWithSuffixExampleValueString=structtypenonrect=stringletcontext_="MetaUrlWithSuffixExampleValueString"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:"MetaUrlWithSuffixExampleValueString"jletto_json=simple_to_jsonto_valueendmoduleWhatsAppPhoneNumberDetail=structtypenonrect={arn:LinkedWhatsAppPhoneNumberArn.toption[@ocaml.doc"The ARN of the WhatsApp phone number."];phoneNumber:PhoneNumber.toption[@ocaml.doc"The phone number for sending WhatsApp."];phoneNumberId:WhatsAppPhoneNumberId.toption[@ocaml.doc"The phone number ID. Phone number identifiers are formatted as phone-number-id-01234567890123456789012345678901."];metaPhoneNumberId:WhatsAppPhoneNumber.toption[@ocaml.doc"The phone number ID from Meta."];displayPhoneNumberName:WhatsAppPhoneNumberName.toption[@ocaml.doc"The display name for this phone number."];displayPhoneNumber:WhatsAppDisplayPhoneNumber.toption[@ocaml.doc"The phone number that appears in the recipients display."];qualityRating:WhatsAppPhoneNumberQualityRating.toption[@ocaml.doc"The quality rating of the phone number."];dataLocalizationRegion:IsoCountryCode.toption[@ocaml.doc"The geographic region where the WhatsApp phone number's data is stored and processed."]}letmake?arn=fun?phoneNumber->fun?phoneNumberId->fun?metaPhoneNumberId->fun?displayPhoneNumberName->fun?displayPhoneNumber->fun?qualityRating->fun?dataLocalizationRegion->fun()->{arn;phoneNumber;phoneNumberId;metaPhoneNumberId;displayPhoneNumberName;displayPhoneNumber;qualityRating;dataLocalizationRegion}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:LinkedWhatsAppPhoneNumberArn.to_value));("phoneNumber",(Option.mapx.phoneNumber~f:PhoneNumber.to_value));("phoneNumberId",(Option.mapx.phoneNumberId~f:WhatsAppPhoneNumberId.to_value));("metaPhoneNumberId",(Option.mapx.metaPhoneNumberId~f:WhatsAppPhoneNumber.to_value));("displayPhoneNumberName",(Option.mapx.displayPhoneNumberName~f:WhatsAppPhoneNumberName.to_value));("displayPhoneNumber",(Option.mapx.displayPhoneNumber~f:WhatsAppDisplayPhoneNumber.to_value));("qualityRating",(Option.mapx.qualityRating~f:WhatsAppPhoneNumberQualityRating.to_value));("dataLocalizationRegion",(Option.mapx.dataLocalizationRegion~f:IsoCountryCode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataLocalizationRegion=(Option.map~f:IsoCountryCode.of_xml)(Xml.childxml_arg0"dataLocalizationRegion")inletqualityRating=(Option.map~f:WhatsAppPhoneNumberQualityRating.of_xml)(Xml.childxml_arg0"qualityRating")inletdisplayPhoneNumber=(Option.map~f:WhatsAppDisplayPhoneNumber.of_xml)(Xml.childxml_arg0"displayPhoneNumber")inletdisplayPhoneNumberName=(Option.map~f:WhatsAppPhoneNumberName.of_xml)(Xml.childxml_arg0"displayPhoneNumberName")inletmetaPhoneNumberId=(Option.map~f:WhatsAppPhoneNumber.of_xml)(Xml.childxml_arg0"metaPhoneNumberId")inletphoneNumberId=(Option.map~f:WhatsAppPhoneNumberId.of_xml)(Xml.childxml_arg0"phoneNumberId")inletphoneNumber=(Option.map~f:PhoneNumber.of_xml)(Xml.childxml_arg0"phoneNumber")inletarn=(Option.map~f:LinkedWhatsAppPhoneNumberArn.of_xml)(Xml.childxml_arg0"arn")inmake?dataLocalizationRegion?qualityRating?displayPhoneNumber?displayPhoneNumberName?metaPhoneNumberId?phoneNumberId?phoneNumber?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataLocalizationRegion=field_mapjson__"dataLocalizationRegion"IsoCountryCode.of_jsoninletqualityRating=field_mapjson__"qualityRating"WhatsAppPhoneNumberQualityRating.of_jsoninletdisplayPhoneNumber=field_mapjson__"displayPhoneNumber"WhatsAppDisplayPhoneNumber.of_jsoninletdisplayPhoneNumberName=field_mapjson__"displayPhoneNumberName"WhatsAppPhoneNumberName.of_jsoninletmetaPhoneNumberId=field_mapjson__"metaPhoneNumberId"WhatsAppPhoneNumber.of_jsoninletphoneNumberId=field_mapjson__"phoneNumberId"WhatsAppPhoneNumberId.of_jsoninletphoneNumber=field_mapjson__"phoneNumber"PhoneNumber.of_jsoninletarn=field_mapjson__"arn"LinkedWhatsAppPhoneNumberArn.of_jsoninmake?dataLocalizationRegion?qualityRating?displayPhoneNumber?displayPhoneNumberName?metaPhoneNumberId?phoneNumberId?phoneNumber?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details of your WhatsApp phone number."]moduleTag=structtypenonrect={key:TagKeyString.t[@ocaml.doc"The tag key."];value:TagValueString.toption[@ocaml.doc"The tag value."]}letcontext_="Tag"letmake?value=fun~key->fun()->{value;key}letto_valuex=structure_to_value[("key",(Some(TagKeyString.to_valuex.key)));("value",(Option.mapx.value~f:TagValueString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letvalue=(Option.map~f:TagValueString.of_xml)(Xml.childxml_arg0"value")inletkey=TagKeyString.of_xml(Xml.child_exn~context:context_xml_arg0"key")inmake?value~key()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letvalue=field_mapjson__"value"TagValueString.of_jsoninletkey=field_map_exnjson__"key"TagKeyString.of_jsoninmake?value~key()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The tag for a resource."]moduleMetaIndustry=structtypenonrect=stringletcontext_="MetaIndustry"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:25)>>=(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:"MetaIndustry"jletto_json=simple_to_jsonto_valueendmoduleLibraryTemplateButtonList=structtypenonrect={type_:ButtonType.toption[@ocaml.doc"The type of button (for example, QUICK_REPLY, CALL, or URL)."];text:MetaText.toption[@ocaml.doc"The text displayed on the button (maximum 40 characters)."];phoneNumber:PhoneNumber.toption[@ocaml.doc"The phone number in E.164 format for CALL-type buttons."];url:MetaUrl.toption[@ocaml.doc"The URL for URL-type buttons."];otpType:OtpType.toption[@ocaml.doc"The type of one-time password for OTP buttons."];zeroTapTermsAccepted:ZeroTapTermsAccepted.toption[@ocaml.doc"When true, indicates acceptance of zero-tap terms for the button."];supportedApps:SupportedApps.toption[@ocaml.doc"List of supported applications for this button type."]}letmake?type_=fun?text->fun?phoneNumber->fun?url->fun?otpType->fun?zeroTapTermsAccepted->fun?supportedApps->fun()->{type_;text;phoneNumber;url;otpType;zeroTapTermsAccepted;supportedApps}letto_valuex=structure_to_value[("type",(Option.mapx.type_~f:ButtonType.to_value));("text",(Option.mapx.text~f:MetaText.to_value));("phoneNumber",(Option.mapx.phoneNumber~f:PhoneNumber.to_value));("url",(Option.mapx.url~f:MetaUrl.to_value));("otpType",(Option.mapx.otpType~f:OtpType.to_value));("zeroTapTermsAccepted",(Option.mapx.zeroTapTermsAccepted~f:ZeroTapTermsAccepted.to_value));("supportedApps",(Option.mapx.supportedApps~f:SupportedApps.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsupportedApps=(Option.map~f:SupportedApps.of_xml)(Xml.childxml_arg0"supportedApps")inletzeroTapTermsAccepted=(Option.map~f:ZeroTapTermsAccepted.of_xml)(Xml.childxml_arg0"zeroTapTermsAccepted")inletotpType=(Option.map~f:OtpType.of_xml)(Xml.childxml_arg0"otpType")inleturl=(Option.map~f:MetaUrl.of_xml)(Xml.childxml_arg0"url")inletphoneNumber=(Option.map~f:PhoneNumber.of_xml)(Xml.childxml_arg0"phoneNumber")inlettext=(Option.map~f:MetaText.of_xml)(Xml.childxml_arg0"text")inlettype_=(Option.map~f:ButtonType.of_xml)(Xml.childxml_arg0"type")inmake?supportedApps?zeroTapTermsAccepted?otpType?url?phoneNumber?text?type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsupportedApps=field_mapjson__"supportedApps"SupportedApps.of_jsoninletzeroTapTermsAccepted=field_mapjson__"zeroTapTermsAccepted"ZeroTapTermsAccepted.of_jsoninletotpType=field_mapjson__"otpType"OtpType.of_jsoninleturl=field_mapjson__"url"MetaUrl.of_jsoninletphoneNumber=field_mapjson__"phoneNumber"PhoneNumber.of_jsoninlettext=field_mapjson__"text"MetaText.of_jsoninlettype_=field_mapjson__"type"ButtonType.of_jsoninmake?supportedApps?zeroTapTermsAccepted?otpType?url?phoneNumber?text?type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Defines a button in a template from Meta's library."]moduleString_=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_valueendmoduleWhatsAppBusinessAccountEventDestination=structtypenonrect={eventDestinationArn:EventDestinationArn.t[@ocaml.doc"The ARN of the event destination."];roleArn:RoleArn.toption[@ocaml.doc"The Amazon Resource Name (ARN) of an Identity and Access Management role that is able to import phone numbers and write events."]}letcontext_="WhatsAppBusinessAccountEventDestination"letmake?roleArn=fun~eventDestinationArn->fun()->{roleArn;eventDestinationArn}letto_valuex=structure_to_value[("eventDestinationArn",(Some(EventDestinationArn.to_valuex.eventDestinationArn)));("roleArn",(Option.mapx.roleArn~f:RoleArn.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letroleArn=(Option.map~f:RoleArn.of_xml)(Xml.childxml_arg0"roleArn")inleteventDestinationArn=EventDestinationArn.of_xml(Xml.child_exn~context:context_xml_arg0"eventDestinationArn")inmake?roleArn~eventDestinationArn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letroleArn=field_mapjson__"roleArn"RoleArn.of_jsoninleteventDestinationArn=field_map_exnjson__"eventDestinationArn"EventDestinationArn.of_jsoninmake?roleArn~eventDestinationArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information on the event destination."]moduleMetaUrlWithSuffixExample=structtypenonrect=(MetaUrlWithSuffixExampleKeyString.t*MetaUrlWithSuffixExampleValueString.t)listletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(fun()->check_list_mini~min:0));iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((MetaUrlWithSuffixExampleKeyString.of_stringchopped),(MetaUrlWithSuffixExampleValueString.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(MetaUrlWithSuffixExampleKeyString.to_valuex)|>(funx->(MetaUrlWithSuffixExampleValueString.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:MetaUrlWithSuffixExampleKeyString.of_string~of_json:MetaUrlWithSuffixExampleValueString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLinkedWhatsAppBusinessAccountId=structtypenonrect=stringletcontext_="LinkedWhatsAppBusinessAccountId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:115)>>=(fun()->check_patterni~pattern:".*(^waba-.*$)|(^arn:.*:waba/[0-9a-zA-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:"LinkedWhatsAppBusinessAccountId"jletto_json=simple_to_jsonto_valueendmoduleRegistrationStatus=structtypenonrect=|COMPLETE|INCOMPLETE|Non_static_idofstringletmakei=iletto_string=function|COMPLETE->"COMPLETE"|INCOMPLETE->"INCOMPLETE"|Non_static_ids->sletof_string=function|"COMPLETE"->COMPLETE|"INCOMPLETE"->INCOMPLETE|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 RegistrationStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"RegistrationStatus"j)letto_json=simple_to_jsonto_valueendmoduleWhatsAppBusinessAccountName=structtypenonrect=stringletcontext_="WhatsAppBusinessAccountName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:200)>>=(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:"WhatsAppBusinessAccountName"jletto_json=simple_to_jsonto_valueendmoduleWhatsAppPhoneNumberDetailList=structtypenonrect=WhatsAppPhoneNumberDetail.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WhatsAppPhoneNumberDetail.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:WhatsAppPhoneNumberDetail.of_xml)letof_jsonj=list_of_json~kind:"WhatsAppPhoneNumberDetailList"~of_json:WhatsAppPhoneNumberDetail.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTagList=structtypenonrect=Tag.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Tag.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:Tag.of_xml)letof_jsonj=list_of_json~kind:"TagList"~of_json:Tag.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleTwoFactorPin=structtypenonrect=stringletcontext_="TwoFactorPin"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:6)>>=(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:"TwoFactorPin"jletto_json=simple_to_jsonto_valueendmoduleMetaIndustries=structtypenonrect=MetaIndustry.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MetaIndustry.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:MetaIndustry.of_xml)letof_jsonj=list_of_json~kind:"MetaIndustries"~of_json:MetaIndustry.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMetaLibraryTemplateButtonList=structtypenonrect=LibraryTemplateButtonList.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:LibraryTemplateButtonList.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:LibraryTemplateButtonList.of_xml)letof_jsonj=list_of_json~kind:"MetaLibraryTemplateButtonList"~of_json:LibraryTemplateButtonList.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMetaTemplateBody=structtypenonrect=stringletcontext_="MetaTemplateBody"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2000)>>=(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:"MetaTemplateBody"jletto_json=simple_to_jsonto_valueendmoduleMetaTemplateBodyExampleParams=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:"MetaTemplateBodyExampleParams"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMetaTemplateCategory=structtypenonrect=stringletcontext_="MetaTemplateCategory"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100)>>=(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:"MetaTemplateCategory"jletto_json=simple_to_jsonto_valueendmoduleMetaTemplateHeader=structtypenonrect=stringletcontext_="MetaTemplateHeader"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:200)>>=(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:"MetaTemplateHeader"jletto_json=simple_to_jsonto_valueendmoduleMetaTemplateId=structtypenonrect=stringletcontext_="MetaTemplateId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(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:"MetaTemplateId"jletto_json=simple_to_jsonto_valueendmoduleMetaTemplateLanguage=structtypenonrect=stringletcontext_="MetaTemplateLanguage"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:6)>>=(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:"MetaTemplateLanguage"jletto_json=simple_to_jsonto_valueendmoduleMetaTemplateName=structtypenonrect=stringletcontext_="MetaTemplateName"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:"MetaTemplateName"jletto_json=simple_to_jsonto_valueendmoduleMetaTemplateTopic=structtypenonrect=stringletcontext_="MetaTemplateTopic"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:20)>>=(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:"MetaTemplateTopic"jletto_json=simple_to_jsonto_valueendmoduleMetaTemplateUseCase=structtypenonrect=stringletcontext_="MetaTemplateUseCase"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:30)>>=(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:"MetaTemplateUseCase"jletto_json=simple_to_jsonto_valueendmoduleMetaTemplateQualityScore=structtypenonrect=stringletcontext_="MetaTemplateQualityScore"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:20)>>=(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:"MetaTemplateQualityScore"jletto_json=simple_to_jsonto_valueendmoduleMetaTemplateStatus=structtypenonrect=stringletcontext_="MetaTemplateStatus"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:20)>>=(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:"MetaTemplateStatus"jletto_json=simple_to_jsonto_valueendmoduleLinkedWhatsAppBusinessAccountArn=structtypenonrect=stringletcontext_="LinkedWhatsAppBusinessAccountArn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:.*:waba/[0-9a-zA-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:"LinkedWhatsAppBusinessAccountArn"jletto_json=simple_to_jsonto_valueendmoduleWhatsAppBusinessAccountEventDestinations=structtypenonrect=WhatsAppBusinessAccountEventDestination.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1)>>=(fun()->check_list_mini~min:0));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WhatsAppBusinessAccountEventDestination.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:WhatsAppBusinessAccountEventDestination.of_xml)letof_jsonj=list_of_json~kind:"WhatsAppBusinessAccountEventDestinations"~of_json:WhatsAppBusinessAccountEventDestination.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWhatsAppBusinessAccountId=structtypenonrect=stringletcontext_="WhatsAppBusinessAccountId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100)>>=(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:"WhatsAppBusinessAccountId"jletto_json=simple_to_jsonto_valueendmoduleWhatsAppBusinessAccountLinkDate=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_valueendmoduleWhatsAppBusinessAccountMarketingMessagesOnboardingStatus=structtypenonrect=stringletcontext_="WhatsAppBusinessAccountMarketingMessagesOnboardingStatus"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100)>>=(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:"WhatsAppBusinessAccountMarketingMessagesOnboardingStatus"jletto_json=simple_to_jsonto_valueendmoduleWhatsAppPhoneNumberSummary=structtypenonrect={arn:LinkedWhatsAppPhoneNumberArn.toption[@ocaml.doc"The full Amazon Resource Name (ARN) for the phone number."];phoneNumber:PhoneNumber.toption[@ocaml.doc"The phone number associated with the Linked WhatsApp Business Account."];phoneNumberId:WhatsAppPhoneNumberId.toption[@ocaml.doc"The phone number ID. Phone number identifiers are formatted as phone-number-id-01234567890123456789012345678901."];metaPhoneNumberId:WhatsAppPhoneNumber.toption[@ocaml.doc"The phone number ID from Meta."];displayPhoneNumberName:WhatsAppPhoneNumberName.toption[@ocaml.doc"The display name for this phone number."];displayPhoneNumber:WhatsAppDisplayPhoneNumber.toption[@ocaml.doc"The phone number that appears in the recipients display."];qualityRating:WhatsAppPhoneNumberQualityRating.toption[@ocaml.doc"The quality rating of the phone number. This is from Meta."];dataLocalizationRegion:IsoCountryCode.toption[@ocaml.doc"The geographic region where the WhatsApp phone number's data is stored and processed."]}letmake?arn=fun?phoneNumber->fun?phoneNumberId->fun?metaPhoneNumberId->fun?displayPhoneNumberName->fun?displayPhoneNumber->fun?qualityRating->fun?dataLocalizationRegion->fun()->{arn;phoneNumber;phoneNumberId;metaPhoneNumberId;displayPhoneNumberName;displayPhoneNumber;qualityRating;dataLocalizationRegion}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:LinkedWhatsAppPhoneNumberArn.to_value));("phoneNumber",(Option.mapx.phoneNumber~f:PhoneNumber.to_value));("phoneNumberId",(Option.mapx.phoneNumberId~f:WhatsAppPhoneNumberId.to_value));("metaPhoneNumberId",(Option.mapx.metaPhoneNumberId~f:WhatsAppPhoneNumber.to_value));("displayPhoneNumberName",(Option.mapx.displayPhoneNumberName~f:WhatsAppPhoneNumberName.to_value));("displayPhoneNumber",(Option.mapx.displayPhoneNumber~f:WhatsAppDisplayPhoneNumber.to_value));("qualityRating",(Option.mapx.qualityRating~f:WhatsAppPhoneNumberQualityRating.to_value));("dataLocalizationRegion",(Option.mapx.dataLocalizationRegion~f:IsoCountryCode.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdataLocalizationRegion=(Option.map~f:IsoCountryCode.of_xml)(Xml.childxml_arg0"dataLocalizationRegion")inletqualityRating=(Option.map~f:WhatsAppPhoneNumberQualityRating.of_xml)(Xml.childxml_arg0"qualityRating")inletdisplayPhoneNumber=(Option.map~f:WhatsAppDisplayPhoneNumber.of_xml)(Xml.childxml_arg0"displayPhoneNumber")inletdisplayPhoneNumberName=(Option.map~f:WhatsAppPhoneNumberName.of_xml)(Xml.childxml_arg0"displayPhoneNumberName")inletmetaPhoneNumberId=(Option.map~f:WhatsAppPhoneNumber.of_xml)(Xml.childxml_arg0"metaPhoneNumberId")inletphoneNumberId=(Option.map~f:WhatsAppPhoneNumberId.of_xml)(Xml.childxml_arg0"phoneNumberId")inletphoneNumber=(Option.map~f:PhoneNumber.of_xml)(Xml.childxml_arg0"phoneNumber")inletarn=(Option.map~f:LinkedWhatsAppPhoneNumberArn.of_xml)(Xml.childxml_arg0"arn")inmake?dataLocalizationRegion?qualityRating?displayPhoneNumber?displayPhoneNumberName?metaPhoneNumberId?phoneNumberId?phoneNumber?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdataLocalizationRegion=field_mapjson__"dataLocalizationRegion"IsoCountryCode.of_jsoninletqualityRating=field_mapjson__"qualityRating"WhatsAppPhoneNumberQualityRating.of_jsoninletdisplayPhoneNumber=field_mapjson__"displayPhoneNumber"WhatsAppDisplayPhoneNumber.of_jsoninletdisplayPhoneNumberName=field_mapjson__"displayPhoneNumberName"WhatsAppPhoneNumberName.of_jsoninletmetaPhoneNumberId=field_mapjson__"metaPhoneNumberId"WhatsAppPhoneNumber.of_jsoninletphoneNumberId=field_mapjson__"phoneNumberId"WhatsAppPhoneNumberId.of_jsoninletphoneNumber=field_mapjson__"phoneNumber"PhoneNumber.of_jsoninletarn=field_mapjson__"arn"LinkedWhatsAppPhoneNumberArn.of_jsoninmake?dataLocalizationRegion?qualityRating?displayPhoneNumber?displayPhoneNumberName?metaPhoneNumberId?phoneNumberId?phoneNumber?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details of a linked phone number."]moduleAddContactNumber=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_valueendmoduleAddLearnMoreLink=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_valueendmoduleAddSecurityRecommendation=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_valueendmoduleAddTrackPackageLink=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_valueendmoduleCodeExpirationMinutes=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 CodeExpirationMinutes"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleLibraryTemplateButtonInput=structtypenonrect={type_:ButtonType.toption[@ocaml.doc"The type of button (for example, QUICK_REPLY, CALL, or URL)."];phoneNumber:PhoneNumber.toption[@ocaml.doc"The phone number in E.164 format for CALL-type buttons."];url:MetaUrlWithSuffixExample.toption[@ocaml.doc"The URL with dynamic parameters for URL-type buttons."];otpType:OtpType.toption[@ocaml.doc"The type of one-time password for OTP buttons."];zeroTapTermsAccepted:ZeroTapTermsAccepted.toption[@ocaml.doc"When true, indicates acceptance of zero-tap terms for the button."];supportedApps:SupportedApps.toption[@ocaml.doc"List of supported applications for this button type."]}letmake?type_=fun?phoneNumber->fun?url->fun?otpType->fun?zeroTapTermsAccepted->fun?supportedApps->fun()->{type_;phoneNumber;url;otpType;zeroTapTermsAccepted;supportedApps}letto_valuex=structure_to_value[("type",(Option.mapx.type_~f:ButtonType.to_value));("phoneNumber",(Option.mapx.phoneNumber~f:PhoneNumber.to_value));("url",(Option.mapx.url~f:MetaUrlWithSuffixExample.to_value));("otpType",(Option.mapx.otpType~f:OtpType.to_value));("zeroTapTermsAccepted",(Option.mapx.zeroTapTermsAccepted~f:ZeroTapTermsAccepted.to_value));("supportedApps",(Option.mapx.supportedApps~f:SupportedApps.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsupportedApps=(Option.map~f:SupportedApps.of_xml)(Xml.childxml_arg0"supportedApps")inletzeroTapTermsAccepted=(Option.map~f:ZeroTapTermsAccepted.of_xml)(Xml.childxml_arg0"zeroTapTermsAccepted")inletotpType=(Option.map~f:OtpType.of_xml)(Xml.childxml_arg0"otpType")inleturl=(Option.map~f:MetaUrlWithSuffixExample.of_xml)(Xml.childxml_arg0"url")inletphoneNumber=(Option.map~f:PhoneNumber.of_xml)(Xml.childxml_arg0"phoneNumber")inlettype_=(Option.map~f:ButtonType.of_xml)(Xml.childxml_arg0"type")inmake?supportedApps?zeroTapTermsAccepted?otpType?url?phoneNumber?type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsupportedApps=field_mapjson__"supportedApps"SupportedApps.of_jsoninletzeroTapTermsAccepted=field_mapjson__"zeroTapTermsAccepted"ZeroTapTermsAccepted.of_jsoninletotpType=field_mapjson__"otpType"OtpType.of_jsoninleturl=field_mapjson__"url"MetaUrlWithSuffixExample.of_jsoninletphoneNumber=field_mapjson__"phoneNumber"PhoneNumber.of_jsoninlettype_=field_mapjson__"type"ButtonType.of_jsoninmake?supportedApps?zeroTapTermsAccepted?otpType?url?phoneNumber?type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration options for customizing buttons in a template from Meta's library."]moduleLinkedWhatsAppBusinessAccountIdMetaData=structtypenonrect={accountName:WhatsAppBusinessAccountName.toption[@ocaml.doc"The name of your account."];registrationStatus:RegistrationStatus.toption[@ocaml.doc"The registration status of the linked WhatsApp Business Account."];unregisteredWhatsAppPhoneNumbers:WhatsAppPhoneNumberDetailList.toption[@ocaml.doc"The details for unregistered WhatsApp phone numbers."];wabaId:LinkedWhatsAppBusinessAccountId.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the WhatsApp Business Account ID."]}letmake?accountName=fun?registrationStatus->fun?unregisteredWhatsAppPhoneNumbers->fun?wabaId->fun()->{accountName;registrationStatus;unregisteredWhatsAppPhoneNumbers;wabaId}letto_valuex=structure_to_value[("accountName",(Option.mapx.accountName~f:WhatsAppBusinessAccountName.to_value));("registrationStatus",(Option.mapx.registrationStatus~f:RegistrationStatus.to_value));("unregisteredWhatsAppPhoneNumbers",(Option.mapx.unregisteredWhatsAppPhoneNumbers~f:WhatsAppPhoneNumberDetailList.to_value));("wabaId",(Option.mapx.wabaId~f:LinkedWhatsAppBusinessAccountId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwabaId=(Option.map~f:LinkedWhatsAppBusinessAccountId.of_xml)(Xml.childxml_arg0"wabaId")inletunregisteredWhatsAppPhoneNumbers=(Option.map~f:WhatsAppPhoneNumberDetailList.of_xml)(Xml.childxml_arg0"unregisteredWhatsAppPhoneNumbers")inletregistrationStatus=(Option.map~f:RegistrationStatus.of_xml)(Xml.childxml_arg0"registrationStatus")inletaccountName=(Option.map~f:WhatsAppBusinessAccountName.of_xml)(Xml.childxml_arg0"accountName")inmake?wabaId?unregisteredWhatsAppPhoneNumbers?registrationStatus?accountName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwabaId=field_mapjson__"wabaId"LinkedWhatsAppBusinessAccountId.of_jsoninletunregisteredWhatsAppPhoneNumbers=field_mapjson__"unregisteredWhatsAppPhoneNumbers"WhatsAppPhoneNumberDetailList.of_jsoninletregistrationStatus=field_mapjson__"registrationStatus"RegistrationStatus.of_jsoninletaccountName=field_mapjson__"accountName"WhatsAppBusinessAccountName.of_jsoninmake?wabaId?unregisteredWhatsAppPhoneNumbers?registrationStatus?accountName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains your WhatsApp registration status and details of any unregistered WhatsApp phone number."]moduleWabaPhoneNumberSetupFinalization=structtypenonrect={id:WhatsAppPhoneNumber.t[@ocaml.doc"The unique identifier of the originating phone number associated with the media. Phone number identifiers are formatted as phone-number-id-01234567890123456789012345678901. Use the GetLinkedWhatsAppBusinessAccount API action to find a phone number's id."];twoFactorPin:TwoFactorPin.t[@ocaml.doc"The PIN to use for two-step verification. To reset your PIN follow the directions in Updating PIN in the WhatsApp Business Platform Cloud API Reference."];dataLocalizationRegion:IsoCountryCode.toption[@ocaml.doc"The two letter ISO region for the location of where Meta will store data. Asia\226\128\147Pacific (APAC) Australia AU Indonesia ID India IN Japan JP Singapore SG South Korea KR Europe Germany DE Switzerland CH United Kingdom GB Latin America (LATAM) Brazil BR Middle East and Africa (MEA) Bahrain BH South Africa ZA United Arab Emirates AE North America (NORAM) Canada CA"];tags:TagList.toption[@ocaml.doc"An array of key and value pair tags."]}letcontext_="WabaPhoneNumberSetupFinalization"letmake?dataLocalizationRegion=fun?tags->fun~id->fun~twoFactorPin->fun()->{dataLocalizationRegion;tags;id;twoFactorPin}letto_valuex=structure_to_value[("id",(Some(WhatsAppPhoneNumber.to_valuex.id)));("twoFactorPin",(Some(TwoFactorPin.to_valuex.twoFactorPin)));("dataLocalizationRegion",(Option.mapx.dataLocalizationRegion~f:IsoCountryCode.to_value));("tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"tags")inletdataLocalizationRegion=(Option.map~f:IsoCountryCode.of_xml)(Xml.childxml_arg0"dataLocalizationRegion")inlettwoFactorPin=TwoFactorPin.of_xml(Xml.child_exn~context:context_xml_arg0"twoFactorPin")inletid=WhatsAppPhoneNumber.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake?tags?dataLocalizationRegion~twoFactorPin~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagList.of_jsoninletdataLocalizationRegion=field_mapjson__"dataLocalizationRegion"IsoCountryCode.of_jsoninlettwoFactorPin=field_map_exnjson__"twoFactorPin"TwoFactorPin.of_jsoninletid=field_map_exnjson__"id"WhatsAppPhoneNumber.of_jsoninmake?tags?dataLocalizationRegion~twoFactorPin~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The registration details for a linked phone number."]moduleErrorMessage=structtypenonrect=stringletcontext_="ErrorMessage"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:"ErrorMessage"jletto_json=simple_to_jsonto_valueendmoduleS3FileBucketNameString=structtypenonrect=stringletcontext_="S3FileBucketNameString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:3)>>=(fun()->(check_string_maxi~max:63)>>=(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:"S3FileBucketNameString"jletto_json=simple_to_jsonto_valueendmoduleS3FileKeyString=structtypenonrect=stringletcontext_="S3FileKeyString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(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:"S3FileKeyString"jletto_json=simple_to_jsonto_valueendmoduleHeaders=structtypenonrect=(String_.t*String_.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),(String_.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(String_.to_valuex)|>(funx->(String_.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:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleS3PresignedUrlUrlString=structtypenonrect=stringletcontext_="S3PresignedUrlUrlString"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:2000)>>=(fun()->check_patterni~pattern:"https://(.*)s3(.*).amazonaws.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:"S3PresignedUrlUrlString"jletto_json=simple_to_jsonto_valueendmoduleMetaLibraryTemplateDefinition=structtypenonrect={templateName:MetaTemplateName.toption[@ocaml.doc"The name of the template."];templateLanguage:MetaTemplateLanguage.toption[@ocaml.doc"The language code for the template (for example, en_US)."];templateCategory:MetaTemplateCategory.toption[@ocaml.doc"The category of the template (for example, UTILITY or MARKETING)."];templateTopic:MetaTemplateTopic.toption[@ocaml.doc"The topic or subject matter of the template."];templateUseCase:MetaTemplateUseCase.toption[@ocaml.doc"The intended use case for the template."];templateIndustry:MetaIndustries.toption[@ocaml.doc"The industries the template is designed for."];templateHeader:MetaTemplateHeader.toption[@ocaml.doc"The header text of the template."];templateBody:MetaTemplateBody.toption[@ocaml.doc"The body text of the template."];templateButtons:MetaLibraryTemplateButtonList.toption[@ocaml.doc"The buttons included in the template."];templateId:MetaTemplateId.toption[@ocaml.doc"The ID of the template in Meta's library."];templateBodyExampleParams:MetaTemplateBodyExampleParams.toption[@ocaml.doc"Example parameter values for the template body, used to demonstrate how dynamic content appears in the template."]}letmake?templateName=fun?templateLanguage->fun?templateCategory->fun?templateTopic->fun?templateUseCase->fun?templateIndustry->fun?templateHeader->fun?templateBody->fun?templateButtons->fun?templateId->fun?templateBodyExampleParams->fun()->{templateName;templateLanguage;templateCategory;templateTopic;templateUseCase;templateIndustry;templateHeader;templateBody;templateButtons;templateId;templateBodyExampleParams}letto_valuex=structure_to_value[("templateName",(Option.mapx.templateName~f:MetaTemplateName.to_value));("templateLanguage",(Option.mapx.templateLanguage~f:MetaTemplateLanguage.to_value));("templateCategory",(Option.mapx.templateCategory~f:MetaTemplateCategory.to_value));("templateTopic",(Option.mapx.templateTopic~f:MetaTemplateTopic.to_value));("templateUseCase",(Option.mapx.templateUseCase~f:MetaTemplateUseCase.to_value));("templateIndustry",(Option.mapx.templateIndustry~f:MetaIndustries.to_value));("templateHeader",(Option.mapx.templateHeader~f:MetaTemplateHeader.to_value));("templateBody",(Option.mapx.templateBody~f:MetaTemplateBody.to_value));("templateButtons",(Option.mapx.templateButtons~f:MetaLibraryTemplateButtonList.to_value));("templateId",(Option.mapx.templateId~f:MetaTemplateId.to_value));("templateBodyExampleParams",(Option.mapx.templateBodyExampleParams~f:MetaTemplateBodyExampleParams.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettemplateBodyExampleParams=(Option.map~f:MetaTemplateBodyExampleParams.of_xml)(Xml.childxml_arg0"templateBodyExampleParams")inlettemplateId=(Option.map~f:MetaTemplateId.of_xml)(Xml.childxml_arg0"templateId")inlettemplateButtons=(Option.map~f:MetaLibraryTemplateButtonList.of_xml)(Xml.childxml_arg0"templateButtons")inlettemplateBody=(Option.map~f:MetaTemplateBody.of_xml)(Xml.childxml_arg0"templateBody")inlettemplateHeader=(Option.map~f:MetaTemplateHeader.of_xml)(Xml.childxml_arg0"templateHeader")inlettemplateIndustry=(Option.map~f:MetaIndustries.of_xml)(Xml.childxml_arg0"templateIndustry")inlettemplateUseCase=(Option.map~f:MetaTemplateUseCase.of_xml)(Xml.childxml_arg0"templateUseCase")inlettemplateTopic=(Option.map~f:MetaTemplateTopic.of_xml)(Xml.childxml_arg0"templateTopic")inlettemplateCategory=(Option.map~f:MetaTemplateCategory.of_xml)(Xml.childxml_arg0"templateCategory")inlettemplateLanguage=(Option.map~f:MetaTemplateLanguage.of_xml)(Xml.childxml_arg0"templateLanguage")inlettemplateName=(Option.map~f:MetaTemplateName.of_xml)(Xml.childxml_arg0"templateName")inmake?templateBodyExampleParams?templateId?templateButtons?templateBody?templateHeader?templateIndustry?templateUseCase?templateTopic?templateCategory?templateLanguage?templateName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettemplateBodyExampleParams=field_mapjson__"templateBodyExampleParams"MetaTemplateBodyExampleParams.of_jsoninlettemplateId=field_mapjson__"templateId"MetaTemplateId.of_jsoninlettemplateButtons=field_mapjson__"templateButtons"MetaLibraryTemplateButtonList.of_jsoninlettemplateBody=field_mapjson__"templateBody"MetaTemplateBody.of_jsoninlettemplateHeader=field_mapjson__"templateHeader"MetaTemplateHeader.of_jsoninlettemplateIndustry=field_mapjson__"templateIndustry"MetaIndustries.of_jsoninlettemplateUseCase=field_mapjson__"templateUseCase"MetaTemplateUseCase.of_jsoninlettemplateTopic=field_mapjson__"templateTopic"MetaTemplateTopic.of_jsoninlettemplateCategory=field_mapjson__"templateCategory"MetaTemplateCategory.of_jsoninlettemplateLanguage=field_mapjson__"templateLanguage"MetaTemplateLanguage.of_jsoninlettemplateName=field_mapjson__"templateName"MetaTemplateName.of_jsoninmake?templateBodyExampleParams?templateId?templateButtons?templateBody?templateHeader?templateIndustry?templateUseCase?templateTopic?templateCategory?templateLanguage?templateName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Defines the complete structure and content of a template in Meta's library."]moduleFilterKeyString=structtypenonrect=stringletcontext_="FilterKeyString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100)>>=(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:"FilterKeyString"jletto_json=simple_to_jsonto_valueendmoduleFilterValueString=structtypenonrect=stringletcontext_="FilterValueString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100)>>=(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:"FilterValueString"jletto_json=simple_to_jsonto_valueendmoduleTemplateSummary=structtypenonrect={templateName:MetaTemplateName.toption[@ocaml.doc"The name of the template."];metaTemplateId:MetaTemplateId.toption[@ocaml.doc"The numeric ID assigned to the template by Meta."];templateStatus:MetaTemplateStatus.toption[@ocaml.doc"The current status of the template (for example, APPROVED, PENDING, or REJECTED)."];templateQualityScore:MetaTemplateQualityScore.toption[@ocaml.doc"The quality score assigned to the template by Meta."];templateLanguage:MetaTemplateLanguage.toption[@ocaml.doc"The language code of the template (for example, en_US)."];templateCategory:MetaTemplateCategory.toption[@ocaml.doc"The category of the template (for example, UTILITY or MARKETING)."]}letmake?templateName=fun?metaTemplateId->fun?templateStatus->fun?templateQualityScore->fun?templateLanguage->fun?templateCategory->fun()->{templateName;metaTemplateId;templateStatus;templateQualityScore;templateLanguage;templateCategory}letto_valuex=structure_to_value[("templateName",(Option.mapx.templateName~f:MetaTemplateName.to_value));("metaTemplateId",(Option.mapx.metaTemplateId~f:MetaTemplateId.to_value));("templateStatus",(Option.mapx.templateStatus~f:MetaTemplateStatus.to_value));("templateQualityScore",(Option.mapx.templateQualityScore~f:MetaTemplateQualityScore.to_value));("templateLanguage",(Option.mapx.templateLanguage~f:MetaTemplateLanguage.to_value));("templateCategory",(Option.mapx.templateCategory~f:MetaTemplateCategory.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettemplateCategory=(Option.map~f:MetaTemplateCategory.of_xml)(Xml.childxml_arg0"templateCategory")inlettemplateLanguage=(Option.map~f:MetaTemplateLanguage.of_xml)(Xml.childxml_arg0"templateLanguage")inlettemplateQualityScore=(Option.map~f:MetaTemplateQualityScore.of_xml)(Xml.childxml_arg0"templateQualityScore")inlettemplateStatus=(Option.map~f:MetaTemplateStatus.of_xml)(Xml.childxml_arg0"templateStatus")inletmetaTemplateId=(Option.map~f:MetaTemplateId.of_xml)(Xml.childxml_arg0"metaTemplateId")inlettemplateName=(Option.map~f:MetaTemplateName.of_xml)(Xml.childxml_arg0"templateName")inmake?templateCategory?templateLanguage?templateQualityScore?templateStatus?metaTemplateId?templateName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettemplateCategory=field_mapjson__"templateCategory"MetaTemplateCategory.of_jsoninlettemplateLanguage=field_mapjson__"templateLanguage"MetaTemplateLanguage.of_jsoninlettemplateQualityScore=field_mapjson__"templateQualityScore"MetaTemplateQualityScore.of_jsoninlettemplateStatus=field_mapjson__"templateStatus"MetaTemplateStatus.of_jsoninletmetaTemplateId=field_mapjson__"metaTemplateId"MetaTemplateId.of_jsoninlettemplateName=field_mapjson__"templateName"MetaTemplateName.of_jsoninmake?templateCategory?templateLanguage?templateQualityScore?templateStatus?metaTemplateId?templateName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides a summary of a WhatsApp message template's key attributes."]moduleLinkedWhatsAppBusinessAccountSummary=structtypenonrect={arn:LinkedWhatsAppBusinessAccountArn.toption[@ocaml.doc"The ARN of the linked WhatsApp Business Account."];id:LinkedWhatsAppBusinessAccountId.toption[@ocaml.doc"The ID of the linked WhatsApp Business Account, formatted as waba-01234567890123456789012345678901."];wabaId:WhatsAppBusinessAccountId.toption[@ocaml.doc"The WhatsApp Business Account ID provided by Meta."];registrationStatus:RegistrationStatus.toption[@ocaml.doc"The registration status of the linked WhatsApp Business Account."];linkDate:WhatsAppBusinessAccountLinkDate.toption[@ocaml.doc"The date the WhatsApp Business Account was linked."];wabaName:WhatsAppBusinessAccountName.toption[@ocaml.doc"The name of the linked WhatsApp Business Account."];eventDestinations:WhatsAppBusinessAccountEventDestinations.toption[@ocaml.doc"The event destinations for the linked WhatsApp Business Account."];marketingMessagesOnboardingStatus:WhatsAppBusinessAccountMarketingMessagesOnboardingStatus.toption[@ocaml.doc"The onboarding status for the Marketing Messages API. This value is fetched from Meta and indicates whether the WhatsApp Business Account is onboarded for Meta's Marketing Messages API."]}letmake?arn=fun?id->fun?wabaId->fun?registrationStatus->fun?linkDate->fun?wabaName->fun?eventDestinations->fun?marketingMessagesOnboardingStatus->fun()->{arn;id;wabaId;registrationStatus;linkDate;wabaName;eventDestinations;marketingMessagesOnboardingStatus}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:LinkedWhatsAppBusinessAccountArn.to_value));("id",(Option.mapx.id~f:LinkedWhatsAppBusinessAccountId.to_value));("wabaId",(Option.mapx.wabaId~f:WhatsAppBusinessAccountId.to_value));("registrationStatus",(Option.mapx.registrationStatus~f:RegistrationStatus.to_value));("linkDate",(Option.mapx.linkDate~f:WhatsAppBusinessAccountLinkDate.to_value));("wabaName",(Option.mapx.wabaName~f:WhatsAppBusinessAccountName.to_value));("eventDestinations",(Option.mapx.eventDestinations~f:WhatsAppBusinessAccountEventDestinations.to_value));("marketingMessagesOnboardingStatus",(Option.mapx.marketingMessagesOnboardingStatus~f:WhatsAppBusinessAccountMarketingMessagesOnboardingStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmarketingMessagesOnboardingStatus=(Option.map~f:WhatsAppBusinessAccountMarketingMessagesOnboardingStatus.of_xml)(Xml.childxml_arg0"marketingMessagesOnboardingStatus")inleteventDestinations=(Option.map~f:WhatsAppBusinessAccountEventDestinations.of_xml)(Xml.childxml_arg0"eventDestinations")inletwabaName=(Option.map~f:WhatsAppBusinessAccountName.of_xml)(Xml.childxml_arg0"wabaName")inletlinkDate=(Option.map~f:WhatsAppBusinessAccountLinkDate.of_xml)(Xml.childxml_arg0"linkDate")inletregistrationStatus=(Option.map~f:RegistrationStatus.of_xml)(Xml.childxml_arg0"registrationStatus")inletwabaId=(Option.map~f:WhatsAppBusinessAccountId.of_xml)(Xml.childxml_arg0"wabaId")inletid=(Option.map~f:LinkedWhatsAppBusinessAccountId.of_xml)(Xml.childxml_arg0"id")inletarn=(Option.map~f:LinkedWhatsAppBusinessAccountArn.of_xml)(Xml.childxml_arg0"arn")inmake?marketingMessagesOnboardingStatus?eventDestinations?wabaName?linkDate?registrationStatus?wabaId?id?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmarketingMessagesOnboardingStatus=field_mapjson__"marketingMessagesOnboardingStatus"WhatsAppBusinessAccountMarketingMessagesOnboardingStatus.of_jsoninleteventDestinations=field_mapjson__"eventDestinations"WhatsAppBusinessAccountEventDestinations.of_jsoninletwabaName=field_mapjson__"wabaName"WhatsAppBusinessAccountName.of_jsoninletlinkDate=field_mapjson__"linkDate"WhatsAppBusinessAccountLinkDate.of_jsoninletregistrationStatus=field_mapjson__"registrationStatus"RegistrationStatus.of_jsoninletwabaId=field_mapjson__"wabaId"WhatsAppBusinessAccountId.of_jsoninletid=field_mapjson__"id"LinkedWhatsAppBusinessAccountId.of_jsoninletarn=field_mapjson__"arn"LinkedWhatsAppBusinessAccountArn.of_jsoninmake?marketingMessagesOnboardingStatus?eventDestinations?wabaName?linkDate?registrationStatus?wabaId?id?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details of a linked WhatsApp Business Account."]moduleWhatsAppPhoneNumberSummaryList=structtypenonrect=WhatsAppPhoneNumberSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WhatsAppPhoneNumberSummary.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:WhatsAppPhoneNumberSummary.of_xml)letof_jsonj=list_of_json~kind:"WhatsAppPhoneNumberSummaryList"~of_json:WhatsAppPhoneNumberSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLibraryTemplateBodyInputs=structtypenonrect={addContactNumber:AddContactNumber.toption[@ocaml.doc"When true, includes a contact number in the template body."];addLearnMoreLink:AddLearnMoreLink.toption[@ocaml.doc"When true, includes a \"learn more\" link in the template body."];addSecurityRecommendation:AddSecurityRecommendation.toption[@ocaml.doc"When true, includes security recommendations in the template body."];addTrackPackageLink:AddTrackPackageLink.toption[@ocaml.doc"When true, includes a package tracking link in the template body."];codeExpirationMinutes:CodeExpirationMinutes.toption[@ocaml.doc"The number of minutes until a verification code or OTP expires."]}letmake?addContactNumber=fun?addLearnMoreLink->fun?addSecurityRecommendation->fun?addTrackPackageLink->fun?codeExpirationMinutes->fun()->{addContactNumber;addLearnMoreLink;addSecurityRecommendation;addTrackPackageLink;codeExpirationMinutes}letto_valuex=structure_to_value[("addContactNumber",(Option.mapx.addContactNumber~f:AddContactNumber.to_value));("addLearnMoreLink",(Option.mapx.addLearnMoreLink~f:AddLearnMoreLink.to_value));("addSecurityRecommendation",(Option.mapx.addSecurityRecommendation~f:AddSecurityRecommendation.to_value));("addTrackPackageLink",(Option.mapx.addTrackPackageLink~f:AddTrackPackageLink.to_value));("codeExpirationMinutes",(Option.mapx.codeExpirationMinutes~f:CodeExpirationMinutes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcodeExpirationMinutes=(Option.map~f:CodeExpirationMinutes.of_xml)(Xml.childxml_arg0"codeExpirationMinutes")inletaddTrackPackageLink=(Option.map~f:AddTrackPackageLink.of_xml)(Xml.childxml_arg0"addTrackPackageLink")inletaddSecurityRecommendation=(Option.map~f:AddSecurityRecommendation.of_xml)(Xml.childxml_arg0"addSecurityRecommendation")inletaddLearnMoreLink=(Option.map~f:AddLearnMoreLink.of_xml)(Xml.childxml_arg0"addLearnMoreLink")inletaddContactNumber=(Option.map~f:AddContactNumber.of_xml)(Xml.childxml_arg0"addContactNumber")inmake?codeExpirationMinutes?addTrackPackageLink?addSecurityRecommendation?addLearnMoreLink?addContactNumber()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcodeExpirationMinutes=field_mapjson__"codeExpirationMinutes"CodeExpirationMinutes.of_jsoninletaddTrackPackageLink=field_mapjson__"addTrackPackageLink"AddTrackPackageLink.of_jsoninletaddSecurityRecommendation=field_mapjson__"addSecurityRecommendation"AddSecurityRecommendation.of_jsoninletaddLearnMoreLink=field_mapjson__"addLearnMoreLink"AddLearnMoreLink.of_jsoninletaddContactNumber=field_mapjson__"addContactNumber"AddContactNumber.of_jsoninmake?codeExpirationMinutes?addTrackPackageLink?addSecurityRecommendation?addLearnMoreLink?addContactNumber()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Configuration options for customizing the body content of a template from Meta's library."]moduleMetaLibraryTemplateButtonInputs=structtypenonrect=LibraryTemplateButtonInput.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:LibraryTemplateButtonInput.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:LibraryTemplateButtonInput.of_xml)letof_jsonj=list_of_json~kind:"MetaLibraryTemplateButtonInputs"~of_json:LibraryTemplateButtonInput.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAssociateInProgressToken=structtypenonrect=stringletcontext_="AssociateInProgressToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:50)>>=(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:"AssociateInProgressToken"jletto_json=simple_to_jsonto_valueendmoduleLinkedAccountWithIncompleteSetup=structtypenonrect=(WhatsAppBusinessAccountId.t*LinkedWhatsAppBusinessAccountIdMetaData.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->let(_:string)=vinlet(_:string)=choppedinfailwith"no of_header for complex types WhatsAppBusinessAccountId LinkedWhatsAppBusinessAccountIdMetaData"))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(WhatsAppBusinessAccountId.to_valuex)|>(funx->(LinkedWhatsAppBusinessAccountIdMetaData.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:WhatsAppBusinessAccountId.of_string~of_json:LinkedWhatsAppBusinessAccountIdMetaData.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWabaPhoneNumberSetupFinalizationList=structtypenonrect=WabaPhoneNumberSetupFinalization.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:WabaPhoneNumberSetupFinalization.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:WabaPhoneNumberSetupFinalization.of_xml)letof_jsonj=list_of_json~kind:"WabaPhoneNumberSetupFinalizationList"~of_json:WabaPhoneNumberSetupFinalization.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWabaSetupFinalization=structtypenonrect={id:WhatsAppBusinessAccountId.toption[@ocaml.doc"The ID of the linked WhatsApp Business Account, formatted as waba-01234567890123456789012345678901."];eventDestinations:WhatsAppBusinessAccountEventDestinations.toption[@ocaml.doc"The event destinations for the linked WhatsApp Business Account."];tags:TagList.toption[@ocaml.doc"An array of key and value pair tags."]}letmake?id=fun?eventDestinations->fun?tags->fun()->{id;eventDestinations;tags}letto_valuex=structure_to_value[("id",(Option.mapx.id~f:WhatsAppBusinessAccountId.to_value));("eventDestinations",(Option.mapx.eventDestinations~f:WhatsAppBusinessAccountEventDestinations.to_value));("tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"tags")inleteventDestinations=(Option.map~f:WhatsAppBusinessAccountEventDestinations.of_xml)(Xml.childxml_arg0"eventDestinations")inletid=(Option.map~f:WhatsAppBusinessAccountId.of_xml)(Xml.childxml_arg0"id")inmake?tags?eventDestinations?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagList.of_jsoninleteventDestinations=field_mapjson__"eventDestinations"WhatsAppBusinessAccountEventDestinations.of_jsoninletid=field_mapjson__"id"WhatsAppBusinessAccountId.of_jsoninmake?tags?eventDestinations?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The registration details for a linked WhatsApp Business Account."]moduleWhatsAppSignupCallbackAccessTokenString=structtypenonrect=stringletcontext_="WhatsAppSignupCallbackAccessTokenString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1000)>>=(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:"WhatsAppSignupCallbackAccessTokenString"jletto_json=simple_to_jsonto_valueendmoduleWhatsAppSignupCallbackCallbackUrlString=structtypenonrect=stringletcontext_="WhatsAppSignupCallbackCallbackUrlString"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:100)>>=(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:"WhatsAppSignupCallbackCallbackUrlString"jletto_json=simple_to_jsonto_valueendmoduleAccessDeniedException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You do not have sufficient access to perform this action."]moduleDependencyException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Thrown when performing an action because a dependency would be broken."]moduleInternalServiceException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request processing has failed because of an unknown error, exception, or failure."]moduleInvalidParametersException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"One or more parameters provided to the action are not valid."]moduleResourceNotFoundException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The resource was not found."]moduleThrottledRequestException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was denied due to request throttling."]moduleValidationException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request contains an invalid parameter value."]moduleMetaParameterFormat=structtypenonrect=stringletcontext_="MetaParameterFormat"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:15)>>=(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:"MetaParameterFormat"jletto_json=simple_to_jsonto_valueendmoduleMetaTemplateComponents=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_valueendmoduleMetaTemplateCtaLinkTrackingOptedOut=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_valueendmoduleInteger=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_valueendmoduleArn=structtypenonrect=stringletcontext_="Arn"letmakei=letopenResultinok_or_failwith((check_string_mini~min:0)>>=(fun()->(check_string_maxi~max:2048)>>=(fun()->check_patterni~pattern:"arn:.*")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"Arn"jletto_json=simple_to_jsonto_valueendmoduleStringList=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:"StringList"~of_json:String_.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleWhatsAppMessageBlob=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_valueendmoduleAccessDeniedByMetaException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You do not have sufficient access to perform this action."]moduleWhatsAppMediaId=structtypenonrect=stringletcontext_="WhatsAppMediaId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:100)>>=(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:"WhatsAppMediaId"jletto_json=simple_to_jsonto_valueendmoduleS3File=structtypenonrect={bucketName:S3FileBucketNameString.t[@ocaml.doc"The bucket name."];key:S3FileKeyString.t[@ocaml.doc"The S3 key prefix that defines the storage location of your media files. The prefix works like a folder path in S3, and is combined with the WhatsApp mediaId to create the final file path. For example, if a media file's WhatsApp mediaId is 123.ogg, and the key is audio/example.ogg, the final file path is audio/example.ogg123.ogg. For the same mediaId, a key of audio/ results in the file path audio/123.ogg."]}letcontext_="S3File"letmake~bucketName=fun~key->fun()->{bucketName;key}letto_valuex=structure_to_value[("bucketName",(Some(S3FileBucketNameString.to_valuex.bucketName)));("key",(Some(S3FileKeyString.to_valuex.key)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letkey=S3FileKeyString.of_xml(Xml.child_exn~context:context_xml_arg0"key")inletbucketName=S3FileBucketNameString.of_xml(Xml.child_exn~context:context_xml_arg0"bucketName")inmake~key~bucketName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letkey=field_map_exnjson__"key"S3FileKeyString.of_jsoninletbucketName=field_map_exnjson__"bucketName"S3FileBucketNameString.of_jsoninmake~key~bucketName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains information for the S3 bucket that contains media files."]moduleS3PresignedUrl=structtypenonrect={url:S3PresignedUrlUrlString.t[@ocaml.doc"The presign url to the object."];headers:Headers.t[@ocaml.doc"A map of headers and their values. You must specify the Content-Type header when using PostWhatsAppMessageMedia. For a list of common headers, see Common Request Headers in the Amazon S3 API Reference"]}letcontext_="S3PresignedUrl"letmake~url=fun~headers->fun()->{url;headers}letto_valuex=structure_to_value[("url",(Some(S3PresignedUrlUrlString.to_valuex.url)));("headers",(Some(Headers.to_valuex.headers)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letheaders=Headers.of_xml(Xml.child_exn~context:context_xml_arg0"headers")inleturl=S3PresignedUrlUrlString.of_xml(Xml.child_exn~context:context_xml_arg0"url")inmake~headers~url()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letheaders=field_map_exnjson__"headers"Headers.of_jsoninleturl=field_map_exnjson__"url"S3PresignedUrlUrlString.of_jsoninmake~headers~url()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You can use presigned URLs to grant time-limited access to objects in Amazon S3 without updating your bucket policy. For more information, see Working with presigned URLs in the Amazon S3 User Guide."]moduleMetaLibraryTemplatesList=structtypenonrect=MetaLibraryTemplateDefinition.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:MetaLibraryTemplateDefinition.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:MetaLibraryTemplateDefinition.of_xml)letof_jsonj=list_of_json~kind:"MetaLibraryTemplatesList"~of_json:MetaLibraryTemplateDefinition.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleNextToken=structtypenonrect=stringletcontext_="NextToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:600)>>=(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_valueendmoduleFilter=structtypenonrect=(FilterKeyString.t*FilterValueString.t)listletmakei=letopenResultinok_or_failwith((check_list_maxi~max:10)>>=(fun()->check_list_mini~min:0));iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((FilterKeyString.of_stringchopped),(FilterValueString.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(FilterKeyString.to_valuex)|>(funx->(FilterValueString.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:FilterKeyString.of_string~of_json:FilterValueString.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxResults=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 MaxResults"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleTemplateSummaryList=structtypenonrect=TemplateSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:TemplateSummary.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:TemplateSummary.of_xml)letof_jsonj=list_of_json~kind:"TemplateSummaryList"~of_json:TemplateSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleLinkedWhatsAppBusinessAccountSummaryList=structtypenonrect=LinkedWhatsAppBusinessAccountSummary.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:LinkedWhatsAppBusinessAccountSummary.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:LinkedWhatsAppBusinessAccountSummary.of_xml)letof_jsonj=list_of_json~kind:"LinkedWhatsAppBusinessAccountSummaryList"~of_json:LinkedWhatsAppBusinessAccountSummary.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMetaTemplate=structtypenonrect=stringletcontext_="MetaTemplate"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:6000)>>=(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:"MetaTemplate"jletto_json=simple_to_jsonto_valueendmoduleLong=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_valueendmoduleBoolean=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_valueendmoduleLinkedWhatsAppBusinessAccount=structtypenonrect={arn:LinkedWhatsAppBusinessAccountArn.toption[@ocaml.doc"The ARN of the linked WhatsApp Business Account."];id:LinkedWhatsAppBusinessAccountId.toption[@ocaml.doc"The ID of the linked WhatsApp Business Account, formatted as waba-01234567890123456789012345678901."];wabaId:WhatsAppBusinessAccountId.toption[@ocaml.doc"The WhatsApp Business Account ID from meta."];registrationStatus:RegistrationStatus.toption[@ocaml.doc"The registration status of the linked WhatsApp Business Account."];linkDate:WhatsAppBusinessAccountLinkDate.toption[@ocaml.doc"The date the WhatsApp Business Account was linked."];wabaName:WhatsAppBusinessAccountName.toption[@ocaml.doc"The name of the linked WhatsApp Business Account."];eventDestinations:WhatsAppBusinessAccountEventDestinations.toption[@ocaml.doc"The event destinations for the linked WhatsApp Business Account."];marketingMessagesOnboardingStatus:WhatsAppBusinessAccountMarketingMessagesOnboardingStatus.toption[@ocaml.doc"The onboarding status for the Marketing Messages API. This value is fetched from Meta and indicates whether the WhatsApp Business Account is onboarded for Meta's Marketing Messages API."];phoneNumbers:WhatsAppPhoneNumberSummaryList.toption[@ocaml.doc"The phone numbers associated with the Linked WhatsApp Business Account."]}letmake?arn=fun?id->fun?wabaId->fun?registrationStatus->fun?linkDate->fun?wabaName->fun?eventDestinations->fun?marketingMessagesOnboardingStatus->fun?phoneNumbers->fun()->{arn;id;wabaId;registrationStatus;linkDate;wabaName;eventDestinations;marketingMessagesOnboardingStatus;phoneNumbers}letto_valuex=structure_to_value[("arn",(Option.mapx.arn~f:LinkedWhatsAppBusinessAccountArn.to_value));("id",(Option.mapx.id~f:LinkedWhatsAppBusinessAccountId.to_value));("wabaId",(Option.mapx.wabaId~f:WhatsAppBusinessAccountId.to_value));("registrationStatus",(Option.mapx.registrationStatus~f:RegistrationStatus.to_value));("linkDate",(Option.mapx.linkDate~f:WhatsAppBusinessAccountLinkDate.to_value));("wabaName",(Option.mapx.wabaName~f:WhatsAppBusinessAccountName.to_value));("eventDestinations",(Option.mapx.eventDestinations~f:WhatsAppBusinessAccountEventDestinations.to_value));("marketingMessagesOnboardingStatus",(Option.mapx.marketingMessagesOnboardingStatus~f:WhatsAppBusinessAccountMarketingMessagesOnboardingStatus.to_value));("phoneNumbers",(Option.mapx.phoneNumbers~f:WhatsAppPhoneNumberSummaryList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letphoneNumbers=(Option.map~f:WhatsAppPhoneNumberSummaryList.of_xml)(Xml.childxml_arg0"phoneNumbers")inletmarketingMessagesOnboardingStatus=(Option.map~f:WhatsAppBusinessAccountMarketingMessagesOnboardingStatus.of_xml)(Xml.childxml_arg0"marketingMessagesOnboardingStatus")inleteventDestinations=(Option.map~f:WhatsAppBusinessAccountEventDestinations.of_xml)(Xml.childxml_arg0"eventDestinations")inletwabaName=(Option.map~f:WhatsAppBusinessAccountName.of_xml)(Xml.childxml_arg0"wabaName")inletlinkDate=(Option.map~f:WhatsAppBusinessAccountLinkDate.of_xml)(Xml.childxml_arg0"linkDate")inletregistrationStatus=(Option.map~f:RegistrationStatus.of_xml)(Xml.childxml_arg0"registrationStatus")inletwabaId=(Option.map~f:WhatsAppBusinessAccountId.of_xml)(Xml.childxml_arg0"wabaId")inletid=(Option.map~f:LinkedWhatsAppBusinessAccountId.of_xml)(Xml.childxml_arg0"id")inletarn=(Option.map~f:LinkedWhatsAppBusinessAccountArn.of_xml)(Xml.childxml_arg0"arn")inmake?phoneNumbers?marketingMessagesOnboardingStatus?eventDestinations?wabaName?linkDate?registrationStatus?wabaId?id?arn()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letphoneNumbers=field_mapjson__"phoneNumbers"WhatsAppPhoneNumberSummaryList.of_jsoninletmarketingMessagesOnboardingStatus=field_mapjson__"marketingMessagesOnboardingStatus"WhatsAppBusinessAccountMarketingMessagesOnboardingStatus.of_jsoninleteventDestinations=field_mapjson__"eventDestinations"WhatsAppBusinessAccountEventDestinations.of_jsoninletwabaName=field_mapjson__"wabaName"WhatsAppBusinessAccountName.of_jsoninletlinkDate=field_mapjson__"linkDate"WhatsAppBusinessAccountLinkDate.of_jsoninletregistrationStatus=field_mapjson__"registrationStatus"RegistrationStatus.of_jsoninletwabaId=field_mapjson__"wabaId"WhatsAppBusinessAccountId.of_jsoninletid=field_mapjson__"id"LinkedWhatsAppBusinessAccountId.of_jsoninletarn=field_mapjson__"arn"LinkedWhatsAppBusinessAccountArn.of_jsoninmake?phoneNumbers?marketingMessagesOnboardingStatus?eventDestinations?wabaName?linkDate?registrationStatus?wabaId?id?arn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details of your linked WhatsApp Business Account."]moduleDeleteAllLanguages=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_valueendmoduleMetaTemplateDefinition=structtypenonrect=stringletmakei=iletof_stringx=xletto_valuex=`Blobxletto_queryv=to_queryto_valuevletto_headerx=xletof_xmlxml_arg0=string_of_xml~kind:"a blob"xml_arg0letof_jsonj=string_of_json~kind:"a blob"jletto_json=simple_to_jsonto_valueendmoduleMetaLibraryTemplate=structtypenonrect={templateName:MetaTemplateName.t[@ocaml.doc"The name to assign to the template."];libraryTemplateName:MetaTemplateName.t[@ocaml.doc"The name of the template in Meta's library."];templateCategory:MetaTemplateCategory.t[@ocaml.doc"The category of the template (for example, UTILITY or MARKETING)."];templateLanguage:MetaTemplateLanguage.t[@ocaml.doc"The language code for the template (for example, en_US)."];libraryTemplateButtonInputs:MetaLibraryTemplateButtonInputs.toption[@ocaml.doc"Button customizations for the template."];libraryTemplateBodyInputs:LibraryTemplateBodyInputs.toption[@ocaml.doc"Body text customizations for the template."]}letcontext_="MetaLibraryTemplate"letmake?libraryTemplateButtonInputs=fun?libraryTemplateBodyInputs->fun~templateName->fun~libraryTemplateName->fun~templateCategory->fun~templateLanguage->fun()->{libraryTemplateButtonInputs;libraryTemplateBodyInputs;templateName;libraryTemplateName;templateCategory;templateLanguage}letto_valuex=structure_to_value[("templateName",(Some(MetaTemplateName.to_valuex.templateName)));("libraryTemplateName",(Some(MetaTemplateName.to_valuex.libraryTemplateName)));("templateCategory",(Some(MetaTemplateCategory.to_valuex.templateCategory)));("templateLanguage",(Some(MetaTemplateLanguage.to_valuex.templateLanguage)));("libraryTemplateButtonInputs",(Option.mapx.libraryTemplateButtonInputs~f:MetaLibraryTemplateButtonInputs.to_value));("libraryTemplateBodyInputs",(Option.mapx.libraryTemplateBodyInputs~f:LibraryTemplateBodyInputs.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlibraryTemplateBodyInputs=(Option.map~f:LibraryTemplateBodyInputs.of_xml)(Xml.childxml_arg0"libraryTemplateBodyInputs")inletlibraryTemplateButtonInputs=(Option.map~f:MetaLibraryTemplateButtonInputs.of_xml)(Xml.childxml_arg0"libraryTemplateButtonInputs")inlettemplateLanguage=MetaTemplateLanguage.of_xml(Xml.child_exn~context:context_xml_arg0"templateLanguage")inlettemplateCategory=MetaTemplateCategory.of_xml(Xml.child_exn~context:context_xml_arg0"templateCategory")inletlibraryTemplateName=MetaTemplateName.of_xml(Xml.child_exn~context:context_xml_arg0"libraryTemplateName")inlettemplateName=MetaTemplateName.of_xml(Xml.child_exn~context:context_xml_arg0"templateName")inmake?libraryTemplateBodyInputs?libraryTemplateButtonInputs~templateLanguage~templateCategory~libraryTemplateName~templateName()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlibraryTemplateBodyInputs=field_mapjson__"libraryTemplateBodyInputs"LibraryTemplateBodyInputs.of_jsoninletlibraryTemplateButtonInputs=field_mapjson__"libraryTemplateButtonInputs"MetaLibraryTemplateButtonInputs.of_jsoninlettemplateLanguage=field_map_exnjson__"templateLanguage"MetaTemplateLanguage.of_jsoninlettemplateCategory=field_map_exnjson__"templateCategory"MetaTemplateCategory.of_jsoninletlibraryTemplateName=field_map_exnjson__"libraryTemplateName"MetaTemplateName.of_jsoninlettemplateName=field_map_exnjson__"templateName"MetaTemplateName.of_jsoninmake?libraryTemplateBodyInputs?libraryTemplateButtonInputs~templateLanguage~templateCategory~libraryTemplateName~templateName()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Represents a template from Meta's library with customization options."]moduleLimitExceededException=structtypenonrect={message:ErrorMessage.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("message",(Option.mapx.message~f:ErrorMessage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:ErrorMessage.of_xml)(Xml.childxml_arg0"message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"message"ErrorMessage.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was denied because it would exceed one or more service quotas or limits."]moduleWhatsAppSignupCallbackResult=structtypenonrect={associateInProgressToken:AssociateInProgressToken.toption[@ocaml.doc"An Amazon Web Services access token generated by WhatsAppSignupCallback and used by WhatsAppSetupFinalization."];linkedAccountsWithIncompleteSetup:LinkedAccountWithIncompleteSetup.toption[@ocaml.doc"A LinkedWhatsAppBusinessAccountIdMetaData object map containing the details of any WhatsAppBusiness accounts that have incomplete setup."]}letmake?associateInProgressToken=fun?linkedAccountsWithIncompleteSetup->fun()->{associateInProgressToken;linkedAccountsWithIncompleteSetup}letto_valuex=structure_to_value[("associateInProgressToken",(Option.mapx.associateInProgressToken~f:AssociateInProgressToken.to_value));("linkedAccountsWithIncompleteSetup",(Option.mapx.linkedAccountsWithIncompleteSetup~f:LinkedAccountWithIncompleteSetup.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlinkedAccountsWithIncompleteSetup=(Option.map~f:LinkedAccountWithIncompleteSetup.of_xml)(Xml.childxml_arg0"linkedAccountsWithIncompleteSetup")inletassociateInProgressToken=(Option.map~f:AssociateInProgressToken.of_xml)(Xml.childxml_arg0"associateInProgressToken")inmake?linkedAccountsWithIncompleteSetup?associateInProgressToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlinkedAccountsWithIncompleteSetup=field_mapjson__"linkedAccountsWithIncompleteSetup"LinkedAccountWithIncompleteSetup.of_jsoninletassociateInProgressToken=field_mapjson__"associateInProgressToken"AssociateInProgressToken.of_jsoninmake?linkedAccountsWithIncompleteSetup?associateInProgressToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the results of WhatsAppSignupCallback."]moduleWhatsAppSetupFinalization=structtypenonrect={associateInProgressToken:AssociateInProgressToken.t[@ocaml.doc"An Amazon Web Services access token generated by WhatsAppSignupCallback and used by WhatsAppSetupFinalization."];phoneNumbers:WabaPhoneNumberSetupFinalizationList.t[@ocaml.doc"An array of WabaPhoneNumberSetupFinalization objects containing the details of each phone number associated with the WhatsApp Business Account."];phoneNumberParent:LinkedWhatsAppBusinessAccountId.toption[@ocaml.doc"Used to add a new phone number to an existing WhatsApp Business Account. This field can't be used when the waba field is present."];waba:WabaSetupFinalization.toption[@ocaml.doc"Used to create a new WhatsApp Business Account and add a phone number. This field can't be used when the phoneNumberParent field is present."]}letcontext_="WhatsAppSetupFinalization"letmake?phoneNumberParent=fun?waba->fun~associateInProgressToken->fun~phoneNumbers->fun()->{phoneNumberParent;waba;associateInProgressToken;phoneNumbers}letto_valuex=structure_to_value[("associateInProgressToken",(Some(AssociateInProgressToken.to_valuex.associateInProgressToken)));("phoneNumbers",(Some(WabaPhoneNumberSetupFinalizationList.to_valuex.phoneNumbers)));("phoneNumberParent",(Option.mapx.phoneNumberParent~f:LinkedWhatsAppBusinessAccountId.to_value));("waba",(Option.mapx.waba~f:WabaSetupFinalization.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwaba=(Option.map~f:WabaSetupFinalization.of_xml)(Xml.childxml_arg0"waba")inletphoneNumberParent=(Option.map~f:LinkedWhatsAppBusinessAccountId.of_xml)(Xml.childxml_arg0"phoneNumberParent")inletphoneNumbers=WabaPhoneNumberSetupFinalizationList.of_xml(Xml.child_exn~context:context_xml_arg0"phoneNumbers")inletassociateInProgressToken=AssociateInProgressToken.of_xml(Xml.child_exn~context:context_xml_arg0"associateInProgressToken")inmake?waba?phoneNumberParent~phoneNumbers~associateInProgressToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwaba=field_mapjson__"waba"WabaSetupFinalization.of_jsoninletphoneNumberParent=field_mapjson__"phoneNumberParent"LinkedWhatsAppBusinessAccountId.of_jsoninletphoneNumbers=field_map_exnjson__"phoneNumbers"WabaPhoneNumberSetupFinalizationList.of_jsoninletassociateInProgressToken=field_map_exnjson__"associateInProgressToken"AssociateInProgressToken.of_jsoninmake?waba?phoneNumberParent~phoneNumbers~associateInProgressToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The details of linking a WhatsApp Business Account to your Amazon Web Services account."]moduleWhatsAppSignupCallback=structtypenonrect={accessToken:WhatsAppSignupCallbackAccessTokenString.t[@ocaml.doc"The access token for your WhatsApp Business Account. The accessToken value is provided by Meta."];callbackUrl:WhatsAppSignupCallbackCallbackUrlString.toption[@ocaml.doc"The URL where WhatsApp will send callback notifications for this account."]}letcontext_="WhatsAppSignupCallback"letmake?callbackUrl=fun~accessToken->fun()->{callbackUrl;accessToken}letto_valuex=structure_to_value[("accessToken",(Some(WhatsAppSignupCallbackAccessTokenString.to_valuex.accessToken)));("callbackUrl",(Option.mapx.callbackUrl~f:WhatsAppSignupCallbackCallbackUrlString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcallbackUrl=(Option.map~f:WhatsAppSignupCallbackCallbackUrlString.of_xml)(Xml.childxml_arg0"callbackUrl")inletaccessToken=WhatsAppSignupCallbackAccessTokenString.of_xml(Xml.child_exn~context:context_xml_arg0"accessToken")inmake?callbackUrl~accessToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcallbackUrl=field_mapjson__"callbackUrl"WhatsAppSignupCallbackCallbackUrlString.of_jsoninletaccessToken=field_map_exnjson__"accessToken"WhatsAppSignupCallbackAccessTokenString.of_jsoninmake?callbackUrl~accessToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains the accessToken provided by Meta during signup."]moduleUpdateWhatsAppMessageTemplateOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DependencyExceptionofDependencyException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DependencyException"->`DependencyException(DependencyException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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)|"DependencyException"->`DependencyException(DependencyException.of_xmlxml)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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))]|`DependencyExceptione->`Assoc[("error",(`String"DependencyException"));("details",(DependencyException.to_jsone))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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"Updates an existing WhatsApp message template."]moduleUpdateWhatsAppMessageTemplateInput=structtypenonrect={id:LinkedWhatsAppBusinessAccountId.t[@ocaml.doc"The ID of the WhatsApp Business Account associated with this template."];metaTemplateId:MetaTemplateId.toption[@ocaml.doc"The numeric ID of the template assigned by Meta."];templateName:MetaTemplateName.toption[@ocaml.doc"The name of the message template. Use together with templateLanguageCode as an alternative to metaTemplateId to identify a template."];templateLanguageCode:MetaTemplateLanguage.toption[@ocaml.doc"The language code of the message template (for example, en or en_US). Use together with templateName as an alternative to metaTemplateId to identify a template."];parameterFormat:MetaParameterFormat.toption[@ocaml.doc"The format specification for parameters in the template, this can be either 'named' or 'positional'."];templateCategory:MetaTemplateCategory.toption[@ocaml.doc"The new category for the template (for example, UTILITY or MARKETING)."];templateComponents:MetaTemplateComponents.toption[@ocaml.doc"The updated components of the template as a JSON blob (maximum 3000 characters)."];ctaUrlLinkTrackingOptedOut:MetaTemplateCtaLinkTrackingOptedOut.toption[@ocaml.doc"When true, disables click tracking for call-to-action URL buttons in the template."]}letcontext_="UpdateWhatsAppMessageTemplateInput"letmake?metaTemplateId=fun?templateName->fun?templateLanguageCode->fun?parameterFormat->fun?templateCategory->fun?templateComponents->fun?ctaUrlLinkTrackingOptedOut->fun~id->fun()->{metaTemplateId;templateName;templateLanguageCode;parameterFormat;templateCategory;templateComponents;ctaUrlLinkTrackingOptedOut;id}letto_valuex=structure_to_value[("id",(Some(LinkedWhatsAppBusinessAccountId.to_valuex.id)));("metaTemplateId",(Option.mapx.metaTemplateId~f:MetaTemplateId.to_value));("templateName",(Option.mapx.templateName~f:MetaTemplateName.to_value));("templateLanguageCode",(Option.mapx.templateLanguageCode~f:MetaTemplateLanguage.to_value));("parameterFormat",(Option.mapx.parameterFormat~f:MetaParameterFormat.to_value));("templateCategory",(Option.mapx.templateCategory~f:MetaTemplateCategory.to_value));("templateComponents",(Option.mapx.templateComponents~f:MetaTemplateComponents.to_value));("ctaUrlLinkTrackingOptedOut",(Option.mapx.ctaUrlLinkTrackingOptedOut~f:MetaTemplateCtaLinkTrackingOptedOut.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letctaUrlLinkTrackingOptedOut=(Option.map~f:MetaTemplateCtaLinkTrackingOptedOut.of_xml)(Xml.childxml_arg0"ctaUrlLinkTrackingOptedOut")inlettemplateComponents=(Option.map~f:MetaTemplateComponents.of_xml)(Xml.childxml_arg0"templateComponents")inlettemplateCategory=(Option.map~f:MetaTemplateCategory.of_xml)(Xml.childxml_arg0"templateCategory")inletparameterFormat=(Option.map~f:MetaParameterFormat.of_xml)(Xml.childxml_arg0"parameterFormat")inlettemplateLanguageCode=(Option.map~f:MetaTemplateLanguage.of_xml)(Xml.childxml_arg0"templateLanguageCode")inlettemplateName=(Option.map~f:MetaTemplateName.of_xml)(Xml.childxml_arg0"templateName")inletmetaTemplateId=(Option.map~f:MetaTemplateId.of_xml)(Xml.childxml_arg0"metaTemplateId")inletid=LinkedWhatsAppBusinessAccountId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake?ctaUrlLinkTrackingOptedOut?templateComponents?templateCategory?parameterFormat?templateLanguageCode?templateName?metaTemplateId~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letctaUrlLinkTrackingOptedOut=field_mapjson__"ctaUrlLinkTrackingOptedOut"MetaTemplateCtaLinkTrackingOptedOut.of_jsoninlettemplateComponents=field_mapjson__"templateComponents"MetaTemplateComponents.of_jsoninlettemplateCategory=field_mapjson__"templateCategory"MetaTemplateCategory.of_jsoninletparameterFormat=field_mapjson__"parameterFormat"MetaParameterFormat.of_jsoninlettemplateLanguageCode=field_mapjson__"templateLanguageCode"MetaTemplateLanguage.of_jsoninlettemplateName=field_mapjson__"templateName"MetaTemplateName.of_jsoninletmetaTemplateId=field_mapjson__"metaTemplateId"MetaTemplateId.of_jsoninletid=field_map_exnjson__"id"LinkedWhatsAppBusinessAccountId.of_jsoninmake?ctaUrlLinkTrackingOptedOut?templateComponents?templateCategory?parameterFormat?templateLanguageCode?templateName?metaTemplateId~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Updates an existing WhatsApp message template."]moduleUntagResourceOutput=structtypenonrect={statusCode:Integer.toption[@ocaml.doc"The status code of the untag resource operation."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?statusCode=fun()->{statusCode}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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[("statusCode",(Option.mapx.statusCode~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatusCode=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"statusCode")inmake?statusCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatusCode=field_mapjson__"statusCode"Integer.of_jsoninmake?statusCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the specified tags from a resource."]moduleUntagResourceInput=structtypenonrect={resourceArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource to remove tags from."];tagKeys:StringList.t[@ocaml.doc"The keys of the tags to remove from the resource."]}letcontext_="UntagResourceInput"letmake~resourceArn=fun~tagKeys->fun()->{resourceArn;tagKeys}letto_valuex=structure_to_value[("resourceArn",(Some(Arn.to_valuex.resourceArn)));("tagKeys",(Some(StringList.to_valuex.tagKeys)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettagKeys=StringList.of_xml(Xml.child_exn~context:context_xml_arg0"tagKeys")inletresourceArn=Arn.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"StringList.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"Arn.of_jsoninmake~tagKeys~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Removes the specified tags from a resource."]moduleTagResourceOutput=structtypenonrect={statusCode:Integer.toption[@ocaml.doc"The status code of the tag resource operation."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?statusCode=fun()->{statusCode}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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[("statusCode",(Option.mapx.statusCode~f:Integer.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatusCode=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"statusCode")inmake?statusCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatusCode=field_mapjson__"statusCode"Integer.of_jsoninmake?statusCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds or overwrites only the specified tags for the specified resource. When you specify an existing tag key, the value is overwritten with the new value."]moduleTagResourceInput=structtypenonrect={resourceArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource to tag."];tags:TagList.t[@ocaml.doc"The tags to add to the resource."]}letcontext_="TagResourceInput"letmake~resourceArn=fun~tags->fun()->{resourceArn;tags}letto_valuex=structure_to_value[("resourceArn",(Some(Arn.to_valuex.resourceArn)));("tags",(Some(TagList.to_valuex.tags)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=TagList.of_xml(Xml.child_exn~context:context_xml_arg0"tags")inletresourceArn=Arn.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"TagList.of_jsoninletresourceArn=field_map_exnjson__"resourceArn"Arn.of_jsoninmake~tags~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Adds or overwrites only the specified tags for the specified resource. When you specify an existing tag key, the value is overwritten with the new value."]moduleSendWhatsAppMessageOutput=structtypenonrect={messageId:String_.toption[@ocaml.doc"The unique identifier of the message."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DependencyExceptionofDependencyException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?messageId=fun()->{messageId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DependencyException"->`DependencyException(DependencyException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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)|"DependencyException"->`DependencyException(DependencyException.of_xmlxml)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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))]|`DependencyExceptione->`Assoc[("error",(`String"DependencyException"));("details",(DependencyException.to_jsone))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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[("messageId",(Option.mapx.messageId~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessageId=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"messageId")inmake?messageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessageId=field_mapjson__"messageId"String_.of_jsoninmake?messageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Send a WhatsApp message. For examples of sending a message using the Amazon Web Services CLI, see Sending messages in the Amazon Web Services End User Messaging Social User Guide ."]moduleSendWhatsAppMessageInput=structtypenonrect={originationPhoneNumberId:WhatsAppPhoneNumberId.t[@ocaml.doc"The ID of the phone number used to send the WhatsApp message. If you are sending a media file only the originationPhoneNumberId used to upload the file can be used. Phone number identifiers are formatted as phone-number-id-01234567890123456789012345678901. Use GetLinkedWhatsAppBusinessAccount to find a phone number's id."];message:WhatsAppMessageBlob.t[@ocaml.doc"The message to send through WhatsApp. The length is in KB. The message field passes through a WhatsApp Message object, see Messages in the WhatsApp Business Platform Cloud API Reference."];metaApiVersion:String_.t[@ocaml.doc"The API version for the request formatted as v\\{VersionNumber\\}. For a list of supported API versions and Amazon Web Services Regions, see Amazon Web Services End User Messaging Social API Service Endpoints in the Amazon Web Services General Reference."]}letcontext_="SendWhatsAppMessageInput"letmake~originationPhoneNumberId=fun~message->fun~metaApiVersion->fun()->{originationPhoneNumberId;message;metaApiVersion}letto_valuex=structure_to_value[("originationPhoneNumberId",(Some(WhatsAppPhoneNumberId.to_valuex.originationPhoneNumberId)));("message",(Some(WhatsAppMessageBlob.to_valuex.message)));("metaApiVersion",(Some(String_.to_valuex.metaApiVersion)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetaApiVersion=String_.of_xml(Xml.child_exn~context:context_xml_arg0"metaApiVersion")inletmessage=WhatsAppMessageBlob.of_xml(Xml.child_exn~context:context_xml_arg0"message")inletoriginationPhoneNumberId=WhatsAppPhoneNumberId.of_xml(Xml.child_exn~context:context_xml_arg0"originationPhoneNumberId")inmake~metaApiVersion~message~originationPhoneNumberId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetaApiVersion=field_map_exnjson__"metaApiVersion"String_.of_jsoninletmessage=field_map_exnjson__"message"WhatsAppMessageBlob.of_jsoninletoriginationPhoneNumberId=field_map_exnjson__"originationPhoneNumberId"WhatsAppPhoneNumberId.of_jsoninmake~metaApiVersion~message~originationPhoneNumberId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Send a WhatsApp message. For examples of sending a message using the Amazon Web Services CLI, see Sending messages in the Amazon Web Services End User Messaging Social User Guide ."]modulePutWhatsAppBusinessAccountEventDestinationsOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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"Add an event destination to log event data from WhatsApp for a WhatsApp Business Account (WABA). A WABA can only have one event destination at a time. All resources associated with the WABA use the same event destination."]modulePutWhatsAppBusinessAccountEventDestinationsInput=structtypenonrect={id:LinkedWhatsAppBusinessAccountId.t[@ocaml.doc"The unique identifier of your WhatsApp Business Account. WABA identifiers are formatted as waba-01234567890123456789012345678901. Use ListLinkedWhatsAppBusinessAccounts to list all WABAs and their details."];eventDestinations:WhatsAppBusinessAccountEventDestinations.t[@ocaml.doc"An array of WhatsAppBusinessAccountEventDestination event destinations."]}letcontext_="PutWhatsAppBusinessAccountEventDestinationsInput"letmake~id=fun~eventDestinations->fun()->{id;eventDestinations}letto_valuex=structure_to_value[("id",(Some(LinkedWhatsAppBusinessAccountId.to_valuex.id)));("eventDestinations",(Some(WhatsAppBusinessAccountEventDestinations.to_valuex.eventDestinations)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteventDestinations=WhatsAppBusinessAccountEventDestinations.of_xml(Xml.child_exn~context:context_xml_arg0"eventDestinations")inletid=LinkedWhatsAppBusinessAccountId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~eventDestinations~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteventDestinations=field_map_exnjson__"eventDestinations"WhatsAppBusinessAccountEventDestinations.of_jsoninletid=field_map_exnjson__"id"LinkedWhatsAppBusinessAccountId.of_jsoninmake~eventDestinations~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Add an event destination to log event data from WhatsApp for a WhatsApp Business Account (WABA). A WABA can only have one event destination at a time. All resources associated with the WABA use the same event destination."]modulePostWhatsAppMessageMediaOutput=structtypenonrect={mediaId:WhatsAppMediaId.toption[@ocaml.doc"The unique identifier of the posted WhatsApp message."]}typenonrecerror=[`AccessDeniedByMetaExceptionofAccessDeniedByMetaException.t|`AccessDeniedExceptionofAccessDeniedException.t|`DependencyExceptionofDependencyException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?mediaId=fun()->{mediaId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedByMetaException"->`AccessDeniedByMetaException(AccessDeniedByMetaException.of_jsonjson)|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DependencyException"->`DependencyException(DependencyException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedByMetaException"->`AccessDeniedByMetaException(AccessDeniedByMetaException.of_xmlxml)|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DependencyException"->`DependencyException(DependencyException.of_xmlxml)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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|`AccessDeniedByMetaExceptione->`Assoc[("error",(`String"AccessDeniedByMetaException"));("details",(AccessDeniedByMetaException.to_jsone))]|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DependencyExceptione->`Assoc[("error",(`String"DependencyException"));("details",(DependencyException.to_jsone))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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[("mediaId",(Option.mapx.mediaId~f:WhatsAppMediaId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmediaId=(Option.map~f:WhatsAppMediaId.of_xml)(Xml.childxml_arg0"mediaId")inmake?mediaId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmediaId=field_mapjson__"mediaId"WhatsAppMediaId.of_jsoninmake?mediaId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Upload a media file to the WhatsApp service. Only the specified originationPhoneNumberId has the permissions to send the media file when using SendWhatsAppMessage. You must use either sourceS3File or sourceS3PresignedUrl for the source. If both or neither are specified then an InvalidParameterException is returned."]modulePostWhatsAppMessageMediaInput=structtypenonrect={originationPhoneNumberId:WhatsAppPhoneNumberId.t[@ocaml.doc"The ID of the phone number to associate with the WhatsApp media file. The phone number identifiers are formatted as phone-number-id-01234567890123456789012345678901. Use GetLinkedWhatsAppBusinessAccount to find a phone number's id."];sourceS3PresignedUrl:S3PresignedUrl.toption[@ocaml.doc"The source presign url of the media file."];sourceS3File:S3File.toption[@ocaml.doc"The source S3 url for the media file."]}letcontext_="PostWhatsAppMessageMediaInput"letmake?sourceS3PresignedUrl=fun?sourceS3File->fun~originationPhoneNumberId->fun()->{sourceS3PresignedUrl;sourceS3File;originationPhoneNumberId}letto_valuex=structure_to_value[("originationPhoneNumberId",(Some(WhatsAppPhoneNumberId.to_valuex.originationPhoneNumberId)));("sourceS3PresignedUrl",(Option.mapx.sourceS3PresignedUrl~f:S3PresignedUrl.to_value));("sourceS3File",(Option.mapx.sourceS3File~f:S3File.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsourceS3File=(Option.map~f:S3File.of_xml)(Xml.childxml_arg0"sourceS3File")inletsourceS3PresignedUrl=(Option.map~f:S3PresignedUrl.of_xml)(Xml.childxml_arg0"sourceS3PresignedUrl")inletoriginationPhoneNumberId=WhatsAppPhoneNumberId.of_xml(Xml.child_exn~context:context_xml_arg0"originationPhoneNumberId")inmake?sourceS3File?sourceS3PresignedUrl~originationPhoneNumberId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsourceS3File=field_mapjson__"sourceS3File"S3File.of_jsoninletsourceS3PresignedUrl=field_mapjson__"sourceS3PresignedUrl"S3PresignedUrl.of_jsoninletoriginationPhoneNumberId=field_map_exnjson__"originationPhoneNumberId"WhatsAppPhoneNumberId.of_jsoninmake?sourceS3File?sourceS3PresignedUrl~originationPhoneNumberId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Upload a media file to the WhatsApp service. Only the specified originationPhoneNumberId has the permissions to send the media file when using SendWhatsAppMessage. You must use either sourceS3File or sourceS3PresignedUrl for the source. If both or neither are specified then an InvalidParameterException is returned."]moduleListWhatsAppTemplateLibraryOutput=structtypenonrect={metaLibraryTemplates:MetaLibraryTemplatesList.toption[@ocaml.doc"A list of templates from Meta's library."];nextToken:NextToken.toption[@ocaml.doc"The token to retrieve the next page of results, if any."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DependencyExceptionofDependencyException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?metaLibraryTemplates=fun?nextToken->fun()->{metaLibraryTemplates;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DependencyException"->`DependencyException(DependencyException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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)|"DependencyException"->`DependencyException(DependencyException.of_xmlxml)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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))]|`DependencyExceptione->`Assoc[("error",(`String"DependencyException"));("details",(DependencyException.to_jsone))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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[("metaLibraryTemplates",(Option.mapx.metaLibraryTemplates~f:MetaLibraryTemplatesList.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")inletmetaLibraryTemplates=(Option.map~f:MetaLibraryTemplatesList.of_xml)(Xml.childxml_arg0"metaLibraryTemplates")inmake?nextToken?metaLibraryTemplates()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletmetaLibraryTemplates=field_mapjson__"metaLibraryTemplates"MetaLibraryTemplatesList.of_jsoninmake?nextToken?metaLibraryTemplates()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists templates available in Meta's template library for WhatsApp messaging."]moduleListWhatsAppTemplateLibraryInput=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"The token for the next page of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results to return per page (1-100)."];id:LinkedWhatsAppBusinessAccountId.t[@ocaml.doc"The ID of the WhatsApp Business Account to list library templates for."];filters:Filter.toption[@ocaml.doc"Map of filters to apply (searchKey, topic, usecase, industry, language)."]}letcontext_="ListWhatsAppTemplateLibraryInput"letmake?nextToken=fun?maxResults->fun?filters->fun~id->fun()->{nextToken;maxResults;filters;id}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("id",(Some(LinkedWhatsAppBusinessAccountId.to_valuex.id)));("filters",(Option.mapx.filters~f:Filter.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfilters=(Option.map~f:Filter.of_xml)(Xml.childxml_arg0"filters")inletid=LinkedWhatsAppBusinessAccountId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?filters~id?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfilters=field_mapjson__"filters"Filter.of_jsoninletid=field_map_exnjson__"id"LinkedWhatsAppBusinessAccountId.of_jsoninletmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninmake?filters~id?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists templates available in Meta's template library for WhatsApp messaging."]moduleListWhatsAppMessageTemplatesOutput=structtypenonrect={templates:TemplateSummaryList.toption[@ocaml.doc"A list of template summaries."];nextToken:NextToken.toption[@ocaml.doc"The token to retrieve the next page of results, if any."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DependencyExceptionofDependencyException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?templates=fun?nextToken->fun()->{templates;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DependencyException"->`DependencyException(DependencyException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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)|"DependencyException"->`DependencyException(DependencyException.of_xmlxml)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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))]|`DependencyExceptione->`Assoc[("error",(`String"DependencyException"));("details",(DependencyException.to_jsone))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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[("templates",(Option.mapx.templates~f:TemplateSummaryList.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")inlettemplates=(Option.map~f:TemplateSummaryList.of_xml)(Xml.childxml_arg0"templates")inmake?nextToken?templates()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninlettemplates=field_mapjson__"templates"TemplateSummaryList.of_jsoninmake?nextToken?templates()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists WhatsApp message templates for a specific WhatsApp Business Account."]moduleListWhatsAppMessageTemplatesInput=structtypenonrect={id:LinkedWhatsAppBusinessAccountId.t[@ocaml.doc"The ID of the WhatsApp Business Account to list templates for."];nextToken:NextToken.toption[@ocaml.doc"The token for the next page of results."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results to return per page (1-100)."]}letcontext_="ListWhatsAppMessageTemplatesInput"letmake?nextToken=fun?maxResults->fun~id->fun()->{nextToken;maxResults;id}letto_valuex=structure_to_value[("id",(Some(LinkedWhatsAppBusinessAccountId.to_valuex.id)));("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inletid=LinkedWhatsAppBusinessAccountId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake?maxResults?nextToken~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletid=field_map_exnjson__"id"LinkedWhatsAppBusinessAccountId.of_jsoninmake?maxResults?nextToken~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Lists WhatsApp message templates for a specific WhatsApp Business Account."]moduleListTagsForResourceOutput=structtypenonrect={statusCode:Integer.toption[@ocaml.doc"The status code of the response."];tags:TagList.toption[@ocaml.doc"The tags for the resource."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?statusCode=fun?tags->fun()->{statusCode;tags}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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[("statusCode",(Option.mapx.statusCode~f:Integer.to_value));("tags",(Option.mapx.tags~f:TagList.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettags=(Option.map~f:TagList.of_xml)(Xml.childxml_arg0"tags")inletstatusCode=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"statusCode")inmake?tags?statusCode()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettags=field_mapjson__"tags"TagList.of_jsoninletstatusCode=field_mapjson__"statusCode"Integer.of_jsoninmake?tags?statusCode()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List all tags associated with a resource, such as a phone number or WABA."]moduleListTagsForResourceInput=structtypenonrect={resourceArn:Arn.t[@ocaml.doc"The Amazon Resource Name (ARN) of the resource to retrieve the tags from."]}letcontext_="ListTagsForResourceInput"letmake~resourceArn=fun()->{resourceArn}letto_valuex=structure_to_value[("resourceArn",(Some(Arn.to_valuex.resourceArn)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceArn=Arn.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"Arn.of_jsoninmake~resourceArn()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List all tags associated with a resource, such as a phone number or WABA."]moduleListLinkedWhatsAppBusinessAccountsOutput=structtypenonrect={linkedAccounts:LinkedWhatsAppBusinessAccountSummaryList.toption[@ocaml.doc"A list of WhatsApp Business Accounts linked to your Amazon Web Services account."];nextToken:NextToken.toption[@ocaml.doc"The next token for pagination."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?linkedAccounts=fun?nextToken->fun()->{linkedAccounts;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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[("linkedAccounts",(Option.mapx.linkedAccounts~f:LinkedWhatsAppBusinessAccountSummaryList.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")inletlinkedAccounts=(Option.map~f:LinkedWhatsAppBusinessAccountSummaryList.of_xml)(Xml.childxml_arg0"linkedAccounts")inmake?nextToken?linkedAccounts()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"nextToken"NextToken.of_jsoninletlinkedAccounts=field_mapjson__"linkedAccounts"LinkedWhatsAppBusinessAccountSummaryList.of_jsoninmake?nextToken?linkedAccounts()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List all WhatsApp Business Accounts linked to your Amazon Web Services account."]moduleListLinkedWhatsAppBusinessAccountsInput=structtypenonrect={nextToken:NextToken.toption[@ocaml.doc"The next token for pagination."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results to return."]}letmake?nextToken=fun?maxResults->fun()->{nextToken;maxResults}letto_valuex=structure_to_value[("nextToken",(Option.mapx.nextToken~f:NextToken.to_value));("maxResults",(Option.mapx.maxResults~f:MaxResults.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"maxResults")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"nextToken")inmake?maxResults?nextToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmaxResults=field_mapjson__"maxResults"MaxResults.of_jsoninletnextToken=field_mapjson__"nextToken"NextToken.of_jsoninmake?maxResults?nextToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"List all WhatsApp Business Accounts linked to your Amazon Web Services account."]moduleGetWhatsAppMessageTemplateOutput=structtypenonrect={template:MetaTemplate.toption[@ocaml.doc"The complete template definition as a JSON string (maximum 6000 characters)."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DependencyExceptionofDependencyException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?template=fun()->{template}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DependencyException"->`DependencyException(DependencyException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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)|"DependencyException"->`DependencyException(DependencyException.of_xmlxml)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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))]|`DependencyExceptione->`Assoc[("error",(`String"DependencyException"));("details",(DependencyException.to_jsone))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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[("template",(Option.mapx.template~f:MetaTemplate.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettemplate=(Option.map~f:MetaTemplate.of_xml)(Xml.childxml_arg0"template")inmake?template()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettemplate=field_mapjson__"template"MetaTemplate.of_jsoninmake?template()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a specific WhatsApp message template."]moduleGetWhatsAppMessageTemplateInput=structtypenonrect={metaTemplateId:MetaTemplateId.toption[@ocaml.doc"The numeric ID of the template assigned by Meta."];id:LinkedWhatsAppBusinessAccountId.t[@ocaml.doc"The ID of the WhatsApp Business Account associated with this template."];templateName:MetaTemplateName.toption[@ocaml.doc"The name of the message template. Use together with templateLanguageCode as an alternative to metaTemplateId to identify a template."];templateLanguageCode:MetaTemplateLanguage.toption[@ocaml.doc"The language code of the message template (for example, en or en_US). Use together with templateName as an alternative to metaTemplateId to identify a template."]}letcontext_="GetWhatsAppMessageTemplateInput"letmake?metaTemplateId=fun?templateName->fun?templateLanguageCode->fun~id->fun()->{metaTemplateId;templateName;templateLanguageCode;id}letto_valuex=structure_to_value[("metaTemplateId",(Option.mapx.metaTemplateId~f:MetaTemplateId.to_value));("id",(Some(LinkedWhatsAppBusinessAccountId.to_valuex.id)));("templateName",(Option.mapx.templateName~f:MetaTemplateName.to_value));("templateLanguageCode",(Option.mapx.templateLanguageCode~f:MetaTemplateLanguage.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettemplateLanguageCode=(Option.map~f:MetaTemplateLanguage.of_xml)(Xml.childxml_arg0"templateLanguageCode")inlettemplateName=(Option.map~f:MetaTemplateName.of_xml)(Xml.childxml_arg0"templateName")inletid=LinkedWhatsAppBusinessAccountId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletmetaTemplateId=(Option.map~f:MetaTemplateId.of_xml)(Xml.childxml_arg0"metaTemplateId")inmake?templateLanguageCode?templateName~id?metaTemplateId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettemplateLanguageCode=field_mapjson__"templateLanguageCode"MetaTemplateLanguage.of_jsoninlettemplateName=field_mapjson__"templateName"MetaTemplateName.of_jsoninletid=field_map_exnjson__"id"LinkedWhatsAppBusinessAccountId.of_jsoninletmetaTemplateId=field_mapjson__"metaTemplateId"MetaTemplateId.of_jsoninmake?templateLanguageCode?templateName~id?metaTemplateId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a specific WhatsApp message template."]moduleGetWhatsAppMessageMediaOutput=structtypenonrect={mimeType:String_.toption[@ocaml.doc"The MIME type of the media."];fileSize:Long.toption[@ocaml.doc"The size of the media file, in KB."]}typenonrecerror=[`AccessDeniedByMetaExceptionofAccessDeniedByMetaException.t|`AccessDeniedExceptionofAccessDeniedException.t|`DependencyExceptionofDependencyException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?mimeType=fun?fileSize->fun()->{mimeType;fileSize}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedByMetaException"->`AccessDeniedByMetaException(AccessDeniedByMetaException.of_jsonjson)|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DependencyException"->`DependencyException(DependencyException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedByMetaException"->`AccessDeniedByMetaException(AccessDeniedByMetaException.of_xmlxml)|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DependencyException"->`DependencyException(DependencyException.of_xmlxml)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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|`AccessDeniedByMetaExceptione->`Assoc[("error",(`String"AccessDeniedByMetaException"));("details",(AccessDeniedByMetaException.to_jsone))]|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DependencyExceptione->`Assoc[("error",(`String"DependencyException"));("details",(DependencyException.to_jsone))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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[("mimeType",(Option.mapx.mimeType~f:String_.to_value));("fileSize",(Option.mapx.fileSize~f:Long.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letfileSize=(Option.map~f:Long.of_xml)(Xml.childxml_arg0"fileSize")inletmimeType=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"mimeType")inmake?fileSize?mimeType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letfileSize=field_mapjson__"fileSize"Long.of_jsoninletmimeType=field_mapjson__"mimeType"String_.of_jsoninmake?fileSize?mimeType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Get a media file from the WhatsApp service. On successful completion the media file is retrieved from Meta and stored in the specified Amazon S3 bucket. Use either destinationS3File or destinationS3PresignedUrl for the destination. If both are used then an InvalidParameterException is returned."]moduleGetWhatsAppMessageMediaInput=structtypenonrect={mediaId:WhatsAppMediaId.t[@ocaml.doc"The unique identifier for the media file."];originationPhoneNumberId:WhatsAppPhoneNumberId.t[@ocaml.doc"The unique identifier of the originating phone number for the WhatsApp message media. The phone number identifiers are formatted as phone-number-id-01234567890123456789012345678901. Use GetLinkedWhatsAppBusinessAccount to find a phone number's id."];metadataOnly:Boolean.toption[@ocaml.doc"Set to True to get only the metadata for the file."];destinationS3PresignedUrl:S3PresignedUrl.toption[@ocaml.doc"The presign url of the media file."];destinationS3File:S3File.toption[@ocaml.doc"The bucketName and key of the S3 media file."]}letcontext_="GetWhatsAppMessageMediaInput"letmake?metadataOnly=fun?destinationS3PresignedUrl->fun?destinationS3File->fun~mediaId->fun~originationPhoneNumberId->fun()->{metadataOnly;destinationS3PresignedUrl;destinationS3File;mediaId;originationPhoneNumberId}letto_valuex=structure_to_value[("mediaId",(Some(WhatsAppMediaId.to_valuex.mediaId)));("originationPhoneNumberId",(Some(WhatsAppPhoneNumberId.to_valuex.originationPhoneNumberId)));("metadataOnly",(Option.mapx.metadataOnly~f:Boolean.to_value));("destinationS3PresignedUrl",(Option.mapx.destinationS3PresignedUrl~f:S3PresignedUrl.to_value));("destinationS3File",(Option.mapx.destinationS3File~f:S3File.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letdestinationS3File=(Option.map~f:S3File.of_xml)(Xml.childxml_arg0"destinationS3File")inletdestinationS3PresignedUrl=(Option.map~f:S3PresignedUrl.of_xml)(Xml.childxml_arg0"destinationS3PresignedUrl")inletmetadataOnly=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"metadataOnly")inletoriginationPhoneNumberId=WhatsAppPhoneNumberId.of_xml(Xml.child_exn~context:context_xml_arg0"originationPhoneNumberId")inletmediaId=WhatsAppMediaId.of_xml(Xml.child_exn~context:context_xml_arg0"mediaId")inmake?destinationS3File?destinationS3PresignedUrl?metadataOnly~originationPhoneNumberId~mediaId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letdestinationS3File=field_mapjson__"destinationS3File"S3File.of_jsoninletdestinationS3PresignedUrl=field_mapjson__"destinationS3PresignedUrl"S3PresignedUrl.of_jsoninletmetadataOnly=field_mapjson__"metadataOnly"Boolean.of_jsoninletoriginationPhoneNumberId=field_map_exnjson__"originationPhoneNumberId"WhatsAppPhoneNumberId.of_jsoninletmediaId=field_map_exnjson__"mediaId"WhatsAppMediaId.of_jsoninmake?destinationS3File?destinationS3PresignedUrl?metadataOnly~originationPhoneNumberId~mediaId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Get a media file from the WhatsApp service. On successful completion the media file is retrieved from Meta and stored in the specified Amazon S3 bucket. Use either destinationS3File or destinationS3PresignedUrl for the destination. If both are used then an InvalidParameterException is returned."]moduleGetLinkedWhatsAppBusinessAccountPhoneNumberOutput=structtypenonrect={phoneNumber:WhatsAppPhoneNumberDetail.toption;linkedWhatsAppBusinessAccountId:LinkedWhatsAppBusinessAccountId.toption[@ocaml.doc"The WABA identifier linked to the phone number, formatted as waba-01234567890123456789012345678901."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DependencyExceptionofDependencyException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?phoneNumber=fun?linkedWhatsAppBusinessAccountId->fun()->{phoneNumber;linkedWhatsAppBusinessAccountId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DependencyException"->`DependencyException(DependencyException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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)|"DependencyException"->`DependencyException(DependencyException.of_xmlxml)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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))]|`DependencyExceptione->`Assoc[("error",(`String"DependencyException"));("details",(DependencyException.to_jsone))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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[("phoneNumber",(Option.mapx.phoneNumber~f:WhatsAppPhoneNumberDetail.to_value));("linkedWhatsAppBusinessAccountId",(Option.mapx.linkedWhatsAppBusinessAccountId~f:LinkedWhatsAppBusinessAccountId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlinkedWhatsAppBusinessAccountId=(Option.map~f:LinkedWhatsAppBusinessAccountId.of_xml)(Xml.childxml_arg0"linkedWhatsAppBusinessAccountId")inletphoneNumber=(Option.map~f:WhatsAppPhoneNumberDetail.of_xml)(Xml.childxml_arg0"phoneNumber")inmake?linkedWhatsAppBusinessAccountId?phoneNumber()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlinkedWhatsAppBusinessAccountId=field_mapjson__"linkedWhatsAppBusinessAccountId"LinkedWhatsAppBusinessAccountId.of_jsoninletphoneNumber=field_mapjson__"phoneNumber"WhatsAppPhoneNumberDetail.of_jsoninmake?linkedWhatsAppBusinessAccountId?phoneNumber()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieve the WABA account id and phone number details of a WhatsApp business account phone number."]moduleGetLinkedWhatsAppBusinessAccountPhoneNumberInput=structtypenonrect={id:WhatsAppPhoneNumberId.t[@ocaml.doc"The unique identifier of the phone number. Phone number identifiers are formatted as phone-number-id-01234567890123456789012345678901. Use GetLinkedWhatsAppBusinessAccount to find a phone number's id."]}letcontext_="GetLinkedWhatsAppBusinessAccountPhoneNumberInput"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(WhatsAppPhoneNumberId.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=WhatsAppPhoneNumberId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"id"WhatsAppPhoneNumberId.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieve the WABA account id and phone number details of a WhatsApp business account phone number."]moduleGetLinkedWhatsAppBusinessAccountOutput=structtypenonrect={account:LinkedWhatsAppBusinessAccount.toption[@ocaml.doc"The details of the linked WhatsApp Business Account."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DependencyExceptionofDependencyException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?account=fun()->{account}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DependencyException"->`DependencyException(DependencyException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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)|"DependencyException"->`DependencyException(DependencyException.of_xmlxml)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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))]|`DependencyExceptione->`Assoc[("error",(`String"DependencyException"));("details",(DependencyException.to_jsone))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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[("account",(Option.mapx.account~f:LinkedWhatsAppBusinessAccount.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaccount=(Option.map~f:LinkedWhatsAppBusinessAccount.of_xml)(Xml.childxml_arg0"account")inmake?account()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaccount=field_mapjson__"account"LinkedWhatsAppBusinessAccount.of_jsoninmake?account()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Get the details of your linked WhatsApp Business Account."]moduleGetLinkedWhatsAppBusinessAccountInput=structtypenonrect={id:LinkedWhatsAppBusinessAccountId.t[@ocaml.doc"The unique identifier, from Amazon Web Services, of the linked WhatsApp Business Account. WABA identifiers are formatted as waba-01234567890123456789012345678901. Use ListLinkedWhatsAppBusinessAccounts to list all WABAs and their details."]}letcontext_="GetLinkedWhatsAppBusinessAccountInput"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(LinkedWhatsAppBusinessAccountId.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=LinkedWhatsAppBusinessAccountId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"id"LinkedWhatsAppBusinessAccountId.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Get the details of your linked WhatsApp Business Account."]moduleDisassociateWhatsAppBusinessAccountOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DependencyExceptionofDependencyException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DependencyException"->`DependencyException(DependencyException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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)|"DependencyException"->`DependencyException(DependencyException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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))]|`DependencyExceptione->`Assoc[("error",(`String"DependencyException"));("details",(DependencyException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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"Disassociate a WhatsApp Business Account (WABA) from your Amazon Web Services account."]moduleDisassociateWhatsAppBusinessAccountInput=structtypenonrect={id:LinkedWhatsAppBusinessAccountId.t[@ocaml.doc"The unique identifier of your WhatsApp Business Account. WABA identifiers are formatted as waba-01234567890123456789012345678901. Use ListLinkedWhatsAppBusinessAccounts to list all WABAs and their details."]}letcontext_="DisassociateWhatsAppBusinessAccountInput"letmake~id=fun()->{id}letto_valuex=structure_to_value[("id",(Some(LinkedWhatsAppBusinessAccountId.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=LinkedWhatsAppBusinessAccountId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"id"LinkedWhatsAppBusinessAccountId.of_jsoninmake~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disassociate a WhatsApp Business Account (WABA) from your Amazon Web Services account."]moduleDeleteWhatsAppMessageTemplateOutput=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DependencyExceptionofDependencyException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DependencyException"->`DependencyException(DependencyException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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)|"DependencyException"->`DependencyException(DependencyException.of_xmlxml)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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))]|`DependencyExceptione->`Assoc[("error",(`String"DependencyException"));("details",(DependencyException.to_jsone))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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"Deletes a WhatsApp message template."]moduleDeleteWhatsAppMessageTemplateInput=structtypenonrect={metaTemplateId:MetaTemplateId.toption[@ocaml.doc"The numeric ID of the template assigned by Meta."];deleteAllLanguages:DeleteAllLanguages.toption[@ocaml.doc"If true, deletes all language versions of the template."];id:LinkedWhatsAppBusinessAccountId.t[@ocaml.doc"The ID of the WhatsApp Business Account associated with this template."];templateName:MetaTemplateName.t[@ocaml.doc"The name of the template to delete."]}letcontext_="DeleteWhatsAppMessageTemplateInput"letmake?metaTemplateId=fun?deleteAllLanguages->fun~id->fun~templateName->fun()->{metaTemplateId;deleteAllLanguages;id;templateName}letto_valuex=structure_to_value[("metaTemplateId",(Option.mapx.metaTemplateId~f:MetaTemplateId.to_value));("deleteAllTemplates",(Option.mapx.deleteAllLanguages~f:DeleteAllLanguages.to_value));("id",(Some(LinkedWhatsAppBusinessAccountId.to_valuex.id)));("templateName",(Some(MetaTemplateName.to_valuex.templateName)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=lettemplateName=MetaTemplateName.of_xml(Xml.child_exn~context:context_xml_arg0"templateName")inletid=LinkedWhatsAppBusinessAccountId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletdeleteAllLanguages=(Option.map~f:DeleteAllLanguages.of_xml)(Xml.childxml_arg0"deleteAllTemplates")inletmetaTemplateId=(Option.map~f:MetaTemplateId.of_xml)(Xml.childxml_arg0"metaTemplateId")inmake~templateName~id?deleteAllLanguages?metaTemplateId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=lettemplateName=field_map_exnjson__"templateName"MetaTemplateName.of_jsoninletid=field_map_exnjson__"id"LinkedWhatsAppBusinessAccountId.of_jsoninletdeleteAllLanguages=field_mapjson__"deleteAllLanguages"DeleteAllLanguages.of_jsoninletmetaTemplateId=field_mapjson__"metaTemplateId"MetaTemplateId.of_jsoninmake~templateName~id?deleteAllLanguages?metaTemplateId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Deletes a WhatsApp message template."]moduleDeleteWhatsAppMessageMediaOutput=structtypenonrect={success:Boolean.toption[@ocaml.doc"Success indicator for deleting the media file."]}typenonrecerror=[`AccessDeniedByMetaExceptionofAccessDeniedByMetaException.t|`AccessDeniedExceptionofAccessDeniedException.t|`DependencyExceptionofDependencyException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?success=fun()->{success}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedByMetaException"->`AccessDeniedByMetaException(AccessDeniedByMetaException.of_jsonjson)|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DependencyException"->`DependencyException(DependencyException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedByMetaException"->`AccessDeniedByMetaException(AccessDeniedByMetaException.of_xmlxml)|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"DependencyException"->`DependencyException(DependencyException.of_xmlxml)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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|`AccessDeniedByMetaExceptione->`Assoc[("error",(`String"AccessDeniedByMetaException"));("details",(AccessDeniedByMetaException.to_jsone))]|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`DependencyExceptione->`Assoc[("error",(`String"DependencyException"));("details",(DependencyException.to_jsone))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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[("success",(Option.mapx.success~f:Boolean.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsuccess=(Option.map~f:Boolean.of_xml)(Xml.childxml_arg0"success")inmake?success()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsuccess=field_mapjson__"success"Boolean.of_jsoninmake?success()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Delete a media object from the WhatsApp service. If the object is still in an Amazon S3 bucket you should delete it from there too."]moduleDeleteWhatsAppMessageMediaInput=structtypenonrect={mediaId:WhatsAppMediaId.t[@ocaml.doc"The unique identifier of the media file to delete. Use the mediaId returned from PostWhatsAppMessageMedia."];originationPhoneNumberId:WhatsAppPhoneNumberId.t[@ocaml.doc"The unique identifier of the originating phone number associated with the media. Phone number identifiers are formatted as phone-number-id-01234567890123456789012345678901. Use GetLinkedWhatsAppBusinessAccount to find a phone number's id."]}letcontext_="DeleteWhatsAppMessageMediaInput"letmake~mediaId=fun~originationPhoneNumberId->fun()->{mediaId;originationPhoneNumberId}letto_valuex=structure_to_value[("mediaId",(Some(WhatsAppMediaId.to_valuex.mediaId)));("originationPhoneNumberId",(Some(WhatsAppPhoneNumberId.to_valuex.originationPhoneNumberId)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letoriginationPhoneNumberId=WhatsAppPhoneNumberId.of_xml(Xml.child_exn~context:context_xml_arg0"originationPhoneNumberId")inletmediaId=WhatsAppMediaId.of_xml(Xml.child_exn~context:context_xml_arg0"mediaId")inmake~originationPhoneNumberId~mediaId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letoriginationPhoneNumberId=field_map_exnjson__"originationPhoneNumberId"WhatsAppPhoneNumberId.of_jsoninletmediaId=field_map_exnjson__"mediaId"WhatsAppMediaId.of_jsoninmake~originationPhoneNumberId~mediaId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Delete a media object from the WhatsApp service. If the object is still in an Amazon S3 bucket you should delete it from there too."]moduleCreateWhatsAppMessageTemplateOutput=structtypenonrect={metaTemplateId:MetaTemplateId.toption[@ocaml.doc"The numeric ID assigned to the template by Meta."];templateStatus:String_.toption[@ocaml.doc"The status of the created template, such as PENDING or APPROVED.."];category:MetaTemplateCategory.toption[@ocaml.doc"The category of the template, such as UTILITY or MARKETING."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DependencyExceptionofDependencyException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?metaTemplateId=fun?templateStatus->fun?category->fun()->{metaTemplateId;templateStatus;category}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DependencyException"->`DependencyException(DependencyException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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)|"DependencyException"->`DependencyException(DependencyException.of_xmlxml)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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))]|`DependencyExceptione->`Assoc[("error",(`String"DependencyException"));("details",(DependencyException.to_jsone))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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[("metaTemplateId",(Option.mapx.metaTemplateId~f:MetaTemplateId.to_value));("templateStatus",(Option.mapx.templateStatus~f:String_.to_value));("category",(Option.mapx.category~f:MetaTemplateCategory.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcategory=(Option.map~f:MetaTemplateCategory.of_xml)(Xml.childxml_arg0"category")inlettemplateStatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"templateStatus")inletmetaTemplateId=(Option.map~f:MetaTemplateId.of_xml)(Xml.childxml_arg0"metaTemplateId")inmake?category?templateStatus?metaTemplateId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcategory=field_mapjson__"category"MetaTemplateCategory.of_jsoninlettemplateStatus=field_mapjson__"templateStatus"String_.of_jsoninletmetaTemplateId=field_mapjson__"metaTemplateId"MetaTemplateId.of_jsoninmake?category?templateStatus?metaTemplateId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new WhatsApp message template from a custom definition. Amazon Web Services End User Messaging Social does not store any WhatsApp message template content."]moduleCreateWhatsAppMessageTemplateMediaOutput=structtypenonrect={metaHeaderHandle:String_.toption[@ocaml.doc"The handle assigned to the uploaded media by Meta, used to reference the media in templates."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DependencyExceptionofDependencyException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?metaHeaderHandle=fun()->{metaHeaderHandle}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DependencyException"->`DependencyException(DependencyException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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)|"DependencyException"->`DependencyException(DependencyException.of_xmlxml)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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))]|`DependencyExceptione->`Assoc[("error",(`String"DependencyException"));("details",(DependencyException.to_jsone))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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[("metaHeaderHandle",(Option.mapx.metaHeaderHandle~f:String_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmetaHeaderHandle=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"metaHeaderHandle")inmake?metaHeaderHandle()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmetaHeaderHandle=field_mapjson__"metaHeaderHandle"String_.of_jsoninmake?metaHeaderHandle()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Uploads media for use in a WhatsApp message template."]moduleCreateWhatsAppMessageTemplateMediaInput=structtypenonrect={id:LinkedWhatsAppBusinessAccountId.t[@ocaml.doc"The ID of the WhatsApp Business Account associated with this media upload."];sourceS3File:S3File.toption}letcontext_="CreateWhatsAppMessageTemplateMediaInput"letmake?sourceS3File=fun~id->fun()->{sourceS3File;id}letto_valuex=structure_to_value[("id",(Some(LinkedWhatsAppBusinessAccountId.to_valuex.id)));("sourceS3File",(Option.mapx.sourceS3File~f:S3File.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsourceS3File=(Option.map~f:S3File.of_xml)(Xml.childxml_arg0"sourceS3File")inletid=LinkedWhatsAppBusinessAccountId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inmake?sourceS3File~id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsourceS3File=field_mapjson__"sourceS3File"S3File.of_jsoninletid=field_map_exnjson__"id"LinkedWhatsAppBusinessAccountId.of_jsoninmake?sourceS3File~id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Uploads media for use in a WhatsApp message template."]moduleCreateWhatsAppMessageTemplateInput=structtypenonrect={templateDefinition:MetaTemplateDefinition.t[@ocaml.doc"The complete template definition as a JSON blob."];id:LinkedWhatsAppBusinessAccountId.t[@ocaml.doc"The ID of the WhatsApp Business Account to associate with this template."]}letcontext_="CreateWhatsAppMessageTemplateInput"letmake~templateDefinition=fun~id->fun()->{templateDefinition;id}letto_valuex=structure_to_value[("templateDefinition",(Some(MetaTemplateDefinition.to_valuex.templateDefinition)));("id",(Some(LinkedWhatsAppBusinessAccountId.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=LinkedWhatsAppBusinessAccountId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inlettemplateDefinition=MetaTemplateDefinition.of_xml(Xml.child_exn~context:context_xml_arg0"templateDefinition")inmake~id~templateDefinition()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"id"LinkedWhatsAppBusinessAccountId.of_jsoninlettemplateDefinition=field_map_exnjson__"templateDefinition"MetaTemplateDefinition.of_jsoninmake~id~templateDefinition()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new WhatsApp message template from a custom definition. Amazon Web Services End User Messaging Social does not store any WhatsApp message template content."]moduleCreateWhatsAppMessageTemplateFromLibraryOutput=structtypenonrect={metaTemplateId:MetaTemplateId.toption[@ocaml.doc"The numeric ID assigned to the template by Meta."];templateStatus:String_.toption[@ocaml.doc"The status of the created template (for example, PENDING or APPROVED)."];category:MetaTemplateCategory.toption[@ocaml.doc"The category of the template (for example, UTILITY or MARKETING)."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DependencyExceptionofDependencyException.t|`InternalServiceExceptionofInternalServiceException.t|`InvalidParametersExceptionofInvalidParametersException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?metaTemplateId=fun?templateStatus->fun?category->fun()->{metaTemplateId;templateStatus;category}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DependencyException"->`DependencyException(DependencyException.of_jsonjson)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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)|"DependencyException"->`DependencyException(DependencyException.of_xmlxml)|"InternalServiceException"->`InternalServiceException(InternalServiceException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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))]|`DependencyExceptione->`Assoc[("error",(`String"DependencyException"));("details",(DependencyException.to_jsone))]|`InternalServiceExceptione->`Assoc[("error",(`String"InternalServiceException"));("details",(InternalServiceException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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[("metaTemplateId",(Option.mapx.metaTemplateId~f:MetaTemplateId.to_value));("templateStatus",(Option.mapx.templateStatus~f:String_.to_value));("category",(Option.mapx.category~f:MetaTemplateCategory.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcategory=(Option.map~f:MetaTemplateCategory.of_xml)(Xml.childxml_arg0"category")inlettemplateStatus=(Option.map~f:String_.of_xml)(Xml.childxml_arg0"templateStatus")inletmetaTemplateId=(Option.map~f:MetaTemplateId.of_xml)(Xml.childxml_arg0"metaTemplateId")inmake?category?templateStatus?metaTemplateId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcategory=field_mapjson__"category"MetaTemplateCategory.of_jsoninlettemplateStatus=field_mapjson__"templateStatus"String_.of_jsoninletmetaTemplateId=field_mapjson__"metaTemplateId"MetaTemplateId.of_jsoninmake?category?templateStatus?metaTemplateId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new WhatsApp message template using a template from Meta's template library."]moduleCreateWhatsAppMessageTemplateFromLibraryInput=structtypenonrect={metaLibraryTemplate:MetaLibraryTemplate.t[@ocaml.doc"The template configuration from Meta's library, including customizations for buttons and body text."];id:LinkedWhatsAppBusinessAccountId.t[@ocaml.doc"The ID of the WhatsApp Business Account to associate with this template."]}letcontext_="CreateWhatsAppMessageTemplateFromLibraryInput"letmake~metaLibraryTemplate=fun~id->fun()->{metaLibraryTemplate;id}letto_valuex=structure_to_value[("metaLibraryTemplate",(Some(MetaLibraryTemplate.to_valuex.metaLibraryTemplate)));("id",(Some(LinkedWhatsAppBusinessAccountId.to_valuex.id)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letid=LinkedWhatsAppBusinessAccountId.of_xml(Xml.child_exn~context:context_xml_arg0"id")inletmetaLibraryTemplate=MetaLibraryTemplate.of_xml(Xml.child_exn~context:context_xml_arg0"metaLibraryTemplate")inmake~id~metaLibraryTemplate()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letid=field_map_exnjson__"id"LinkedWhatsAppBusinessAccountId.of_jsoninletmetaLibraryTemplate=field_map_exnjson__"metaLibraryTemplate"MetaLibraryTemplate.of_jsoninmake~id~metaLibraryTemplate()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates a new WhatsApp message template using a template from Meta's template library."]moduleAssociateWhatsAppBusinessAccountOutput=structtypenonrect={signupCallbackResult:WhatsAppSignupCallbackResult.toption[@ocaml.doc"Contains your WhatsApp registration status."];statusCode:Integer.toption[@ocaml.doc"The status code for the response."];linkedWhatsAppBusinessAccountId:LinkedWhatsAppBusinessAccountId.toption[@ocaml.doc"The ID of the WhatsApp Business Account that was linked to your Amazon Web Services account."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`DependencyExceptionofDependencyException.t|`InvalidParametersExceptionofInvalidParametersException.t|`LimitExceededExceptionofLimitExceededException.t|`ThrottledRequestExceptionofThrottledRequestException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?signupCallbackResult=fun?statusCode->fun?linkedWhatsAppBusinessAccountId->fun()->{signupCallbackResult;statusCode;linkedWhatsAppBusinessAccountId}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"DependencyException"->`DependencyException(DependencyException.of_jsonjson)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_jsonjson)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_jsonjson)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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)|"DependencyException"->`DependencyException(DependencyException.of_xmlxml)|"InvalidParametersException"->`InvalidParametersException(InvalidParametersException.of_xmlxml)|"LimitExceededException"->`LimitExceededException(LimitExceededException.of_xmlxml)|"ThrottledRequestException"->`ThrottledRequestException(ThrottledRequestException.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))]|`DependencyExceptione->`Assoc[("error",(`String"DependencyException"));("details",(DependencyException.to_jsone))]|`InvalidParametersExceptione->`Assoc[("error",(`String"InvalidParametersException"));("details",(InvalidParametersException.to_jsone))]|`LimitExceededExceptione->`Assoc[("error",(`String"LimitExceededException"));("details",(LimitExceededException.to_jsone))]|`ThrottledRequestExceptione->`Assoc[("error",(`String"ThrottledRequestException"));("details",(ThrottledRequestException.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[("signupCallbackResult",(Option.mapx.signupCallbackResult~f:WhatsAppSignupCallbackResult.to_value));("statusCode",(Option.mapx.statusCode~f:Integer.to_value));("linkedWhatsAppBusinessAccountId",(Option.mapx.linkedWhatsAppBusinessAccountId~f:LinkedWhatsAppBusinessAccountId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letlinkedWhatsAppBusinessAccountId=(Option.map~f:LinkedWhatsAppBusinessAccountId.of_xml)(Xml.childxml_arg0"linkedWhatsAppBusinessAccountId")inletstatusCode=(Option.map~f:Integer.of_xml)(Xml.childxml_arg0"statusCode")inletsignupCallbackResult=(Option.map~f:WhatsAppSignupCallbackResult.of_xml)(Xml.childxml_arg0"signupCallbackResult")inmake?linkedWhatsAppBusinessAccountId?statusCode?signupCallbackResult()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letlinkedWhatsAppBusinessAccountId=field_mapjson__"linkedWhatsAppBusinessAccountId"LinkedWhatsAppBusinessAccountId.of_jsoninletstatusCode=field_mapjson__"statusCode"Integer.of_jsoninletsignupCallbackResult=field_mapjson__"signupCallbackResult"WhatsAppSignupCallbackResult.of_jsoninmake?linkedWhatsAppBusinessAccountId?statusCode?signupCallbackResult()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is only used through the Amazon Web Services console during sign-up to associate your WhatsApp Business Account to your Amazon Web Services account."]moduleAssociateWhatsAppBusinessAccountInput=structtypenonrect={signupCallback:WhatsAppSignupCallback.toption[@ocaml.doc"Contains the callback access token."];setupFinalization:WhatsAppSetupFinalization.toption[@ocaml.doc"A JSON object that contains the phone numbers and WhatsApp Business Account to link to your account."]}letmake?signupCallback=fun?setupFinalization->fun()->{signupCallback;setupFinalization}letto_valuex=structure_to_value[("signupCallback",(Option.mapx.signupCallback~f:WhatsAppSignupCallback.to_value));("setupFinalization",(Option.mapx.setupFinalization~f:WhatsAppSetupFinalization.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letsetupFinalization=(Option.map~f:WhatsAppSetupFinalization.of_xml)(Xml.childxml_arg0"setupFinalization")inletsignupCallback=(Option.map~f:WhatsAppSignupCallback.of_xml)(Xml.childxml_arg0"signupCallback")inmake?setupFinalization?signupCallback()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letsetupFinalization=field_mapjson__"setupFinalization"WhatsAppSetupFinalization.of_jsoninletsignupCallback=field_mapjson__"signupCallback"WhatsAppSignupCallback.of_jsoninmake?setupFinalization?signupCallback()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This is only used through the Amazon Web Services console during sign-up to associate your WhatsApp Business Account to your Amazon Web Services account."]