12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668(* 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.connectparticipantletapiVersion="2018-09-07"letendpointPrefix="participant.connect"letserviceFullName="Amazon Connect Participant Service"letsignatureVersion="v4"letprotocol="rest_json"letglobalEndpoint=endpointPrefix^".amazonaws.com"letserviceAbbreviation="Amazon Connect Participant"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[]))])moduleInstant=structtypenonrect=stringletcontext_="Instant"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:"Instant"jletto_json=simple_to_jsonto_valueendmoduleParticipantId=structtypenonrect=stringletcontext_="ParticipantId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ParticipantId"jletto_json=simple_to_jsonto_valueendmoduleArtifactId=structtypenonrect=stringletcontext_="ArtifactId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ArtifactId"jletto_json=simple_to_jsonto_valueendmoduleArtifactStatus=structtypenonrect=|APPROVED|REJECTED|IN_PROGRESS|Non_static_idofstringletmakei=iletto_string=function|APPROVED->"APPROVED"|REJECTED->"REJECTED"|IN_PROGRESS->"IN_PROGRESS"|Non_static_ids->sletof_string=function|"APPROVED"->APPROVED|"REJECTED"->REJECTED|"IN_PROGRESS"->IN_PROGRESS|x->Non_static_idxletto_valuex=`Enum(to_stringx)letto_queryv=to_queryto_valuevletto_headerx=to_stringxletof_xmlxml_arg0=of_string(string_of_xml~kind:"enumeration ArtifactStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ArtifactStatus"j)letto_json=simple_to_jsonto_valueendmoduleAttachmentName=structtypenonrect=stringletcontext_="AttachmentName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"AttachmentName"jletto_json=simple_to_jsonto_valueendmoduleContentType=structtypenonrect=stringletcontext_="ContentType"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:255)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ContentType"jletto_json=simple_to_jsonto_valueendmoduleReceipt=structtypenonrect={deliveredTimestamp:Instant.toption[@ocaml.doc"The time when the message was delivered to the recipient."];readTimestamp:Instant.toption[@ocaml.doc"The time when the message was read by the recipient."];recipientParticipantId:ParticipantId.toption[@ocaml.doc"The identifier of the recipient of the message."]}letmake?deliveredTimestamp=fun?readTimestamp->fun?recipientParticipantId->fun()->{deliveredTimestamp;readTimestamp;recipientParticipantId}letto_valuex=structure_to_value[("DeliveredTimestamp",(Option.mapx.deliveredTimestamp~f:Instant.to_value));("ReadTimestamp",(Option.mapx.readTimestamp~f:Instant.to_value));("RecipientParticipantId",(Option.mapx.recipientParticipantId~f:ParticipantId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letrecipientParticipantId=(Option.map~f:ParticipantId.of_xml)(Xml.childxml_arg0"RecipientParticipantId")inletreadTimestamp=(Option.map~f:Instant.of_xml)(Xml.childxml_arg0"ReadTimestamp")inletdeliveredTimestamp=(Option.map~f:Instant.of_xml)(Xml.childxml_arg0"DeliveredTimestamp")inmake?recipientParticipantId?readTimestamp?deliveredTimestamp()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letrecipientParticipantId=field_mapjson__"RecipientParticipantId"ParticipantId.of_jsoninletreadTimestamp=field_mapjson__"ReadTimestamp"Instant.of_jsoninletdeliveredTimestamp=field_mapjson__"DeliveredTimestamp"Instant.of_jsoninmake?recipientParticipantId?readTimestamp?deliveredTimestamp()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The receipt for the message delivered to the recipient."]moduleMeetingFeatureStatus=structtypenonrect=|AVAILABLE|UNAVAILABLE|Non_static_idofstringletmakei=iletto_string=function|AVAILABLE->"AVAILABLE"|UNAVAILABLE->"UNAVAILABLE"|Non_static_ids->sletof_string=function|"AVAILABLE"->AVAILABLE|"UNAVAILABLE"->UNAVAILABLE|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 MeetingFeatureStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MeetingFeatureStatus"j)letto_json=simple_to_jsonto_valueendmoduleAttachmentItem=structtypenonrect={contentType:ContentType.toption[@ocaml.doc"Describes the MIME file type of the attachment. For a list of supported file types, see Feature specifications in the Amazon Connect Administrator Guide."];attachmentId:ArtifactId.toption[@ocaml.doc"A unique identifier for the attachment."];attachmentName:AttachmentName.toption[@ocaml.doc"A case-sensitive name of the attachment being uploaded."];status:ArtifactStatus.toption[@ocaml.doc"Status of the attachment."]}letmake?contentType=fun?attachmentId->fun?attachmentName->fun?status->fun()->{contentType;attachmentId;attachmentName;status}letto_valuex=structure_to_value[("ContentType",(Option.mapx.contentType~f:ContentType.to_value));("AttachmentId",(Option.mapx.attachmentId~f:ArtifactId.to_value));("AttachmentName",(Option.mapx.attachmentName~f:AttachmentName.to_value));("Status",(Option.mapx.status~f:ArtifactStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letstatus=(Option.map~f:ArtifactStatus.of_xml)(Xml.childxml_arg0"Status")inletattachmentName=(Option.map~f:AttachmentName.of_xml)(Xml.childxml_arg0"AttachmentName")inletattachmentId=(Option.map~f:ArtifactId.of_xml)(Xml.childxml_arg0"AttachmentId")inletcontentType=(Option.map~f:ContentType.of_xml)(Xml.childxml_arg0"ContentType")inmake?status?attachmentName?attachmentId?contentType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letstatus=field_mapjson__"Status"ArtifactStatus.of_jsoninletattachmentName=field_mapjson__"AttachmentName"AttachmentName.of_jsoninletattachmentId=field_mapjson__"AttachmentId"ArtifactId.of_jsoninletcontentType=field_mapjson__"ContentType"ContentType.of_jsoninmake?status?attachmentName?attachmentId?contentType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The case-insensitive input to indicate standard MIME type that describes the format of the file that will be uploaded."]moduleChatItemId=structtypenonrect=stringletcontext_="ChatItemId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ChatItemId"jletto_json=simple_to_jsonto_valueendmoduleMessageProcessingStatus=structtypenonrect=|PROCESSING|FAILED|REJECTED|Non_static_idofstringletmakei=iletto_string=function|PROCESSING->"PROCESSING"|FAILED->"FAILED"|REJECTED->"REJECTED"|Non_static_ids->sletof_string=function|"PROCESSING"->PROCESSING|"FAILED"->FAILED|"REJECTED"->REJECTED|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 MessageProcessingStatus"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"MessageProcessingStatus"j)letto_json=simple_to_jsonto_valueendmoduleReceipts=structtypenonrect=Receipt.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Receipt.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:Receipt.of_xml)letof_jsonj=list_of_json~kind:"Receipts"~of_json:Receipt.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleViewAction=structtypenonrect=stringletcontext_="ViewAction"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^([\\p{L}\\p{N}_.:\\/=+\\-@()']+[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@()']*)$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ViewAction"jletto_json=simple_to_jsonto_valueendmoduleAudioFeatures=structtypenonrect={echoReduction:MeetingFeatureStatus.toption[@ocaml.doc"Makes echo reduction available to clients who connect to the meeting."]}letmake?echoReduction=fun()->{echoReduction}letto_valuex=structure_to_value[("EchoReduction",(Option.mapx.echoReduction~f:MeetingFeatureStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letechoReduction=(Option.map~f:MeetingFeatureStatus.of_xml)(Xml.childxml_arg0"EchoReduction")inmake?echoReduction()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letechoReduction=field_mapjson__"EchoReduction"MeetingFeatureStatus.of_jsoninmake?echoReduction()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Has audio-specific configurations as the operating parameter for Echo Reduction."]moduleURI=structtypenonrect=stringletcontext_="URI"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:"URI"jletto_json=simple_to_jsonto_valueendmoduleUploadMetadataSignedHeadersKey=structtypenonrect=stringletcontext_="UploadMetadataSignedHeadersKey"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:"UploadMetadataSignedHeadersKey"jletto_json=simple_to_jsonto_valueendmoduleUploadMetadataSignedHeadersValue=structtypenonrect=stringletcontext_="UploadMetadataSignedHeadersValue"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"UploadMetadataSignedHeadersValue"jletto_json=simple_to_jsonto_valueendmoduleAttachments=structtypenonrect=AttachmentItem.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:AttachmentItem.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:AttachmentItem.of_xml)letof_jsonj=list_of_json~kind:"Attachments"~of_json:AttachmentItem.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleChatContent=structtypenonrect=stringletcontext_="ChatContent"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:16384)>>=(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:"ChatContent"jletto_json=simple_to_jsonto_valueendmoduleChatContentType=structtypenonrect=stringletcontext_="ChatContentType"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:"ChatContentType"jletto_json=simple_to_jsonto_valueendmoduleChatItemType=structtypenonrect=|TYPING|PARTICIPANT_JOINED|PARTICIPANT_LEFT|CHAT_ENDED|TRANSFER_SUCCEEDED|TRANSFER_FAILED|MESSAGE|EVENT|ATTACHMENT|CONNECTION_ACK|MESSAGE_DELIVERED|MESSAGE_READ|Non_static_idofstringletmakei=iletto_string=function|TYPING->"TYPING"|PARTICIPANT_JOINED->"PARTICIPANT_JOINED"|PARTICIPANT_LEFT->"PARTICIPANT_LEFT"|CHAT_ENDED->"CHAT_ENDED"|TRANSFER_SUCCEEDED->"TRANSFER_SUCCEEDED"|TRANSFER_FAILED->"TRANSFER_FAILED"|MESSAGE->"MESSAGE"|EVENT->"EVENT"|ATTACHMENT->"ATTACHMENT"|CONNECTION_ACK->"CONNECTION_ACK"|MESSAGE_DELIVERED->"MESSAGE_DELIVERED"|MESSAGE_READ->"MESSAGE_READ"|Non_static_ids->sletof_string=function|"TYPING"->TYPING|"PARTICIPANT_JOINED"->PARTICIPANT_JOINED|"PARTICIPANT_LEFT"->PARTICIPANT_LEFT|"CHAT_ENDED"->CHAT_ENDED|"TRANSFER_SUCCEEDED"->TRANSFER_SUCCEEDED|"TRANSFER_FAILED"->TRANSFER_FAILED|"MESSAGE"->MESSAGE|"EVENT"->EVENT|"ATTACHMENT"->ATTACHMENT|"CONNECTION_ACK"->CONNECTION_ACK|"MESSAGE_DELIVERED"->MESSAGE_DELIVERED|"MESSAGE_READ"->MESSAGE_READ|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 ChatItemType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ChatItemType"j)letto_json=simple_to_jsonto_valueendmoduleContactId=structtypenonrect=stringletcontext_="ContactId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ContactId"jletto_json=simple_to_jsonto_valueendmoduleDisplayName=structtypenonrect=stringletcontext_="DisplayName"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:256)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"DisplayName"jletto_json=simple_to_jsonto_valueendmoduleMessageMetadata=structtypenonrect={messageId:ChatItemId.toption[@ocaml.doc"The identifier of the message that contains the metadata information."];receipts:Receipts.toption[@ocaml.doc"The list of receipt information for a message for different recipients."];messageProcessingStatus:MessageProcessingStatus.toption[@ocaml.doc"The status of Message Processing for the message."]}letmake?messageId=fun?receipts->fun?messageProcessingStatus->fun()->{messageId;receipts;messageProcessingStatus}letto_valuex=structure_to_value[("MessageId",(Option.mapx.messageId~f:ChatItemId.to_value));("Receipts",(Option.mapx.receipts~f:Receipts.to_value));("MessageProcessingStatus",(Option.mapx.messageProcessingStatus~f:MessageProcessingStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessageProcessingStatus=(Option.map~f:MessageProcessingStatus.of_xml)(Xml.childxml_arg0"MessageProcessingStatus")inletreceipts=(Option.map~f:Receipts.of_xml)(Xml.childxml_arg0"Receipts")inletmessageId=(Option.map~f:ChatItemId.of_xml)(Xml.childxml_arg0"MessageId")inmake?messageProcessingStatus?receipts?messageId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessageProcessingStatus=field_mapjson__"MessageProcessingStatus"MessageProcessingStatus.of_jsoninletreceipts=field_mapjson__"Receipts"Receipts.of_jsoninletmessageId=field_mapjson__"MessageId"ChatItemId.of_jsoninmake?messageProcessingStatus?receipts?messageId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains metadata related to a message."]moduleParticipantRole=structtypenonrect=|AGENT|CUSTOMER|SYSTEM|CUSTOM_BOT|SUPERVISOR|Non_static_idofstringletmakei=iletto_string=function|AGENT->"AGENT"|CUSTOMER->"CUSTOMER"|SYSTEM->"SYSTEM"|CUSTOM_BOT->"CUSTOM_BOT"|SUPERVISOR->"SUPERVISOR"|Non_static_ids->sletof_string=function|"AGENT"->AGENT|"CUSTOMER"->CUSTOMER|"SYSTEM"->SYSTEM|"CUSTOM_BOT"->CUSTOM_BOT|"SUPERVISOR"->SUPERVISOR|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 ParticipantRole"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ParticipantRole"j)letto_json=simple_to_jsonto_valueendmoduleViewActions=structtypenonrect=ViewAction.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ViewAction.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:ViewAction.of_xml)letof_jsonj=list_of_json~kind:"ViewActions"~of_json:ViewAction.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleViewInputSchema=structtypenonrect=stringletcontext_="ViewInputSchema"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:"ViewInputSchema"jletto_json=simple_to_jsonto_valueendmoduleViewTemplate=structtypenonrect=stringletcontext_="ViewTemplate"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:"ViewTemplate"jletto_json=simple_to_jsonto_valueendmoduleAttendeeId=structtypenonrect=stringletcontext_="AttendeeId"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:"AttendeeId"jletto_json=simple_to_jsonto_valueendmoduleJoinToken=structtypenonrect=stringletcontext_="JoinToken"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:"JoinToken"jletto_json=simple_to_jsonto_valueendmoduleGuidString=structtypenonrect=stringletcontext_="GuidString"letmakei=letopenResultinok_or_failwith(check_patterni~pattern:"[a-fA-F0-9]{8}(?:-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}");iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"GuidString"jletto_json=simple_to_jsonto_valueendmoduleMeetingFeaturesConfiguration=structtypenonrect={audio:AudioFeatures.toption[@ocaml.doc"The configuration settings for the audio features available to a meeting."]}letmake?audio=fun()->{audio}letto_valuex=structure_to_value[("Audio",(Option.mapx.audio~f:AudioFeatures.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letaudio=(Option.map~f:AudioFeatures.of_xml)(Xml.childxml_arg0"Audio")inmake?audio()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letaudio=field_mapjson__"Audio"AudioFeatures.of_jsoninmake?audio()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The configuration settings of the features available to a meeting."]moduleWebRTCMediaPlacement=structtypenonrect={audioHostUrl:URI.toption[@ocaml.doc"The audio host URL."];audioFallbackUrl:URI.toption[@ocaml.doc"The audio fallback URL."];signalingUrl:URI.toption[@ocaml.doc"The signaling URL."];eventIngestionUrl:URI.toption[@ocaml.doc"The event ingestion URL to which you send client meeting events."]}letmake?audioHostUrl=fun?audioFallbackUrl->fun?signalingUrl->fun?eventIngestionUrl->fun()->{audioHostUrl;audioFallbackUrl;signalingUrl;eventIngestionUrl}letto_valuex=structure_to_value[("AudioHostUrl",(Option.mapx.audioHostUrl~f:URI.to_value));("AudioFallbackUrl",(Option.mapx.audioFallbackUrl~f:URI.to_value));("SignalingUrl",(Option.mapx.signalingUrl~f:URI.to_value));("EventIngestionUrl",(Option.mapx.eventIngestionUrl~f:URI.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leteventIngestionUrl=(Option.map~f:URI.of_xml)(Xml.childxml_arg0"EventIngestionUrl")inletsignalingUrl=(Option.map~f:URI.of_xml)(Xml.childxml_arg0"SignalingUrl")inletaudioFallbackUrl=(Option.map~f:URI.of_xml)(Xml.childxml_arg0"AudioFallbackUrl")inletaudioHostUrl=(Option.map~f:URI.of_xml)(Xml.childxml_arg0"AudioHostUrl")inmake?eventIngestionUrl?signalingUrl?audioFallbackUrl?audioHostUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leteventIngestionUrl=field_mapjson__"EventIngestionUrl"URI.of_jsoninletsignalingUrl=field_mapjson__"SignalingUrl"URI.of_jsoninletaudioFallbackUrl=field_mapjson__"AudioFallbackUrl"URI.of_jsoninletaudioHostUrl=field_mapjson__"AudioHostUrl"URI.of_jsoninmake?eventIngestionUrl?signalingUrl?audioFallbackUrl?audioHostUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A set of endpoints used by clients to connect to the media service group for an Amazon Chime SDK meeting."]moduleMessage=structtypenonrect=stringletcontext_="Message"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:"Message"jletto_json=simple_to_jsonto_valueendmoduleISO8601Datetime=structtypenonrect=stringletcontext_="ISO8601Datetime"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:"ISO8601Datetime"jletto_json=simple_to_jsonto_valueendmoduleUploadMetadataSignedHeaders=structtypenonrect=(UploadMetadataSignedHeadersKey.t*UploadMetadataSignedHeadersValue.t)listletmakei=iletof_headerxs=make(List.filter_mapxs~f:(fun(k,v)->(Base.String.chop_prefixk~prefix:"x-amz-meta-")|>(Option.map~f:(funchopped->((UploadMetadataSignedHeadersKey.of_stringchopped),(UploadMetadataSignedHeadersValue.of_stringv))))))letto_valuexs=(xs|>(List.map~f:(fun(x,y)->(UploadMetadataSignedHeadersKey.to_valuex)|>(funx->(UploadMetadataSignedHeadersValue.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:UploadMetadataSignedHeadersKey.of_string~of_json:UploadMetadataSignedHeadersValue.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleUploadMetadataUrl=structtypenonrect=stringletcontext_="UploadMetadataUrl"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:"UploadMetadataUrl"jletto_json=simple_to_jsonto_valueendmoduleReason=structtypenonrect=stringletcontext_="Reason"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:"Reason"jletto_json=simple_to_jsonto_valueendmoduleItem=structtypenonrect={absoluteTime:Instant.toption[@ocaml.doc"The time when the message or event was sent. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z."];content:ChatContent.toption[@ocaml.doc"The content of the message or event."];contentType:ChatContentType.toption[@ocaml.doc"The type of content of the item."];id:ChatItemId.toption[@ocaml.doc"The ID of the item."];type_:ChatItemType.toption[@ocaml.doc"Type of the item: message or event."];participantId:ParticipantId.toption[@ocaml.doc"The ID of the sender in the session."];displayName:DisplayName.toption[@ocaml.doc"The chat display name of the sender."];participantRole:ParticipantRole.toption[@ocaml.doc"The role of the sender. For example, is it a customer, agent, or system."];attachments:Attachments.toption[@ocaml.doc"Provides information about the attachments."];messageMetadata:MessageMetadata.toption[@ocaml.doc"The metadata related to the message. Currently this supports only information related to message receipts."];relatedContactId:ContactId.toption[@ocaml.doc"The contactId on which the transcript item was originally sent. This field is only populated for persistent chats when the transcript item is from the past chat session. For more information, see Enable persistent chat."];contactId:ContactId.toption[@ocaml.doc"The contactId on which the transcript item was originally sent. This field is populated only when the transcript item is from the current chat session."]}letmake?absoluteTime=fun?content->fun?contentType->fun?id->fun?type_->fun?participantId->fun?displayName->fun?participantRole->fun?attachments->fun?messageMetadata->fun?relatedContactId->fun?contactId->fun()->{absoluteTime;content;contentType;id;type_;participantId;displayName;participantRole;attachments;messageMetadata;relatedContactId;contactId}letto_valuex=structure_to_value[("AbsoluteTime",(Option.mapx.absoluteTime~f:Instant.to_value));("Content",(Option.mapx.content~f:ChatContent.to_value));("ContentType",(Option.mapx.contentType~f:ChatContentType.to_value));("Id",(Option.mapx.id~f:ChatItemId.to_value));("Type",(Option.mapx.type_~f:ChatItemType.to_value));("ParticipantId",(Option.mapx.participantId~f:ParticipantId.to_value));("DisplayName",(Option.mapx.displayName~f:DisplayName.to_value));("ParticipantRole",(Option.mapx.participantRole~f:ParticipantRole.to_value));("Attachments",(Option.mapx.attachments~f:Attachments.to_value));("MessageMetadata",(Option.mapx.messageMetadata~f:MessageMetadata.to_value));("RelatedContactId",(Option.mapx.relatedContactId~f:ContactId.to_value));("ContactId",(Option.mapx.contactId~f:ContactId.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontactId=(Option.map~f:ContactId.of_xml)(Xml.childxml_arg0"ContactId")inletrelatedContactId=(Option.map~f:ContactId.of_xml)(Xml.childxml_arg0"RelatedContactId")inletmessageMetadata=(Option.map~f:MessageMetadata.of_xml)(Xml.childxml_arg0"MessageMetadata")inletattachments=(Option.map~f:Attachments.of_xml)(Xml.childxml_arg0"Attachments")inletparticipantRole=(Option.map~f:ParticipantRole.of_xml)(Xml.childxml_arg0"ParticipantRole")inletdisplayName=(Option.map~f:DisplayName.of_xml)(Xml.childxml_arg0"DisplayName")inletparticipantId=(Option.map~f:ParticipantId.of_xml)(Xml.childxml_arg0"ParticipantId")inlettype_=(Option.map~f:ChatItemType.of_xml)(Xml.childxml_arg0"Type")inletid=(Option.map~f:ChatItemId.of_xml)(Xml.childxml_arg0"Id")inletcontentType=(Option.map~f:ChatContentType.of_xml)(Xml.childxml_arg0"ContentType")inletcontent=(Option.map~f:ChatContent.of_xml)(Xml.childxml_arg0"Content")inletabsoluteTime=(Option.map~f:Instant.of_xml)(Xml.childxml_arg0"AbsoluteTime")inmake?contactId?relatedContactId?messageMetadata?attachments?participantRole?displayName?participantId?type_?id?contentType?content?absoluteTime()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontactId=field_mapjson__"ContactId"ContactId.of_jsoninletrelatedContactId=field_mapjson__"RelatedContactId"ContactId.of_jsoninletmessageMetadata=field_mapjson__"MessageMetadata"MessageMetadata.of_jsoninletattachments=field_mapjson__"Attachments"Attachments.of_jsoninletparticipantRole=field_mapjson__"ParticipantRole"ParticipantRole.of_jsoninletdisplayName=field_mapjson__"DisplayName"DisplayName.of_jsoninletparticipantId=field_mapjson__"ParticipantId"ParticipantId.of_jsoninlettype_=field_mapjson__"Type"ChatItemType.of_jsoninletid=field_mapjson__"Id"ChatItemId.of_jsoninletcontentType=field_mapjson__"ContentType"ChatContentType.of_jsoninletcontent=field_mapjson__"Content"ChatContent.of_jsoninletabsoluteTime=field_mapjson__"AbsoluteTime"Instant.of_jsoninmake?contactId?relatedContactId?messageMetadata?attachments?participantRole?displayName?participantId?type_?id?contentType?content?absoluteTime()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"An item - message or event - that has been sent."]moduleMostRecent=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:0));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 MostRecent"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleResourceId=structtypenonrect=stringletcontext_="ResourceId"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:"ResourceId"jletto_json=simple_to_jsonto_valueendmoduleResourceType=structtypenonrect=|CONTACT|CONTACT_FLOW|INSTANCE|PARTICIPANT|HIERARCHY_LEVEL|HIERARCHY_GROUP|USER|PHONE_NUMBER|Non_static_idofstringletmakei=iletto_string=function|CONTACT->"CONTACT"|CONTACT_FLOW->"CONTACT_FLOW"|INSTANCE->"INSTANCE"|PARTICIPANT->"PARTICIPANT"|HIERARCHY_LEVEL->"HIERARCHY_LEVEL"|HIERARCHY_GROUP->"HIERARCHY_GROUP"|USER->"USER"|PHONE_NUMBER->"PHONE_NUMBER"|Non_static_ids->sletof_string=function|"CONTACT"->CONTACT|"CONTACT_FLOW"->CONTACT_FLOW|"INSTANCE"->INSTANCE|"PARTICIPANT"->PARTICIPANT|"HIERARCHY_LEVEL"->HIERARCHY_LEVEL|"HIERARCHY_GROUP"->HIERARCHY_GROUP|"USER"->USER|"PHONE_NUMBER"->PHONE_NUMBER|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 ResourceType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ResourceType"j)letto_json=simple_to_jsonto_valueendmoduleARN=structtypenonrect=stringletcontext_="ARN"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:"ARN"jletto_json=simple_to_jsonto_valueendmoduleViewContent=structtypenonrect={inputSchema:ViewInputSchema.toption[@ocaml.doc"The schema representing the input data that the view template must be supplied to render."];template:ViewTemplate.toption[@ocaml.doc"The view template representing the structure of the view."];actions:ViewActions.toption[@ocaml.doc"A list of actions possible from the view"]}letmake?inputSchema=fun?template->fun?actions->fun()->{inputSchema;template;actions}letto_valuex=structure_to_value[("InputSchema",(Option.mapx.inputSchema~f:ViewInputSchema.to_value));("Template",(Option.mapx.template~f:ViewTemplate.to_value));("Actions",(Option.mapx.actions~f:ViewActions.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letactions=(Option.map~f:ViewActions.of_xml)(Xml.childxml_arg0"Actions")inlettemplate=(Option.map~f:ViewTemplate.of_xml)(Xml.childxml_arg0"Template")inletinputSchema=(Option.map~f:ViewInputSchema.of_xml)(Xml.childxml_arg0"InputSchema")inmake?actions?template?inputSchema()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letactions=field_mapjson__"Actions"ViewActions.of_jsoninlettemplate=field_mapjson__"Template"ViewTemplate.of_jsoninletinputSchema=field_mapjson__"InputSchema"ViewInputSchema.of_jsoninmake?actions?template?inputSchema()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"View content containing all content necessary to render a view except for runtime input data."]moduleViewId=structtypenonrect=stringletcontext_="ViewId"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:500)>>=(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:"ViewId"jletto_json=simple_to_jsonto_valueendmoduleViewName=structtypenonrect=stringletcontext_="ViewName"letmakei=letopenResultinok_or_failwith((check_string_mini~min:1)>>=(fun()->(check_string_maxi~max:255)>>=(fun()->check_patterni~pattern:"^([\\p{L}\\p{N}_.:\\/=+\\-@()']+[\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@()']*)$")));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ViewName"jletto_json=simple_to_jsonto_valueendmoduleViewVersion=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 ViewVersion"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleParticipantToken=structtypenonrect=stringletcontext_="ParticipantToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1000)>>=(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:"ParticipantToken"jletto_json=simple_to_jsonto_valueendmoduleAttendee=structtypenonrect={attendeeId:AttendeeId.toption[@ocaml.doc"The Amazon Chime SDK attendee ID."];joinToken:JoinToken.toption[@ocaml.doc"The join token used by the Amazon Chime SDK attendee."]}letmake?attendeeId=fun?joinToken->fun()->{attendeeId;joinToken}letto_valuex=structure_to_value[("AttendeeId",(Option.mapx.attendeeId~f:AttendeeId.to_value));("JoinToken",(Option.mapx.joinToken~f:JoinToken.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letjoinToken=(Option.map~f:JoinToken.of_xml)(Xml.childxml_arg0"JoinToken")inletattendeeId=(Option.map~f:AttendeeId.of_xml)(Xml.childxml_arg0"AttendeeId")inmake?joinToken?attendeeId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letjoinToken=field_mapjson__"JoinToken"JoinToken.of_jsoninletattendeeId=field_mapjson__"AttendeeId"AttendeeId.of_jsoninmake?joinToken?attendeeId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The attendee information, including attendee ID and join token."]moduleWebRTCMeeting=structtypenonrect={mediaPlacement:WebRTCMediaPlacement.toption[@ocaml.doc"The media placement for the meeting."];meetingFeatures:MeetingFeaturesConfiguration.toption;meetingId:GuidString.toption[@ocaml.doc"The Amazon Chime SDK meeting ID."]}letmake?mediaPlacement=fun?meetingFeatures->fun?meetingId->fun()->{mediaPlacement;meetingFeatures;meetingId}letto_valuex=structure_to_value[("MediaPlacement",(Option.mapx.mediaPlacement~f:WebRTCMediaPlacement.to_value));("MeetingFeatures",(Option.mapx.meetingFeatures~f:MeetingFeaturesConfiguration.to_value));("MeetingId",(Option.mapx.meetingId~f:GuidString.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmeetingId=(Option.map~f:GuidString.of_xml)(Xml.childxml_arg0"MeetingId")inletmeetingFeatures=(Option.map~f:MeetingFeaturesConfiguration.of_xml)(Xml.childxml_arg0"MeetingFeatures")inletmediaPlacement=(Option.map~f:WebRTCMediaPlacement.of_xml)(Xml.childxml_arg0"MediaPlacement")inmake?meetingId?meetingFeatures?mediaPlacement()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmeetingId=field_mapjson__"MeetingId"GuidString.of_jsoninletmeetingFeatures=field_mapjson__"MeetingFeatures"MeetingFeaturesConfiguration.of_jsoninletmediaPlacement=field_mapjson__"MediaPlacement"WebRTCMediaPlacement.of_jsoninmake?meetingId?meetingFeatures?mediaPlacement()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A meeting created using the Amazon Chime SDK."]modulePreSignedConnectionUrl=structtypenonrect=stringletcontext_="PreSignedConnectionUrl"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:"PreSignedConnectionUrl"jletto_json=simple_to_jsonto_valueendmoduleConnectionType=structtypenonrect=|WEBSOCKET|CONNECTION_CREDENTIALS|WEBRTC_CONNECTION|Non_static_idofstringletmakei=iletto_string=function|WEBSOCKET->"WEBSOCKET"|CONNECTION_CREDENTIALS->"CONNECTION_CREDENTIALS"|WEBRTC_CONNECTION->"WEBRTC_CONNECTION"|Non_static_ids->sletof_string=function|"WEBSOCKET"->WEBSOCKET|"CONNECTION_CREDENTIALS"->CONNECTION_CREDENTIALS|"WEBRTC_CONNECTION"->WEBRTC_CONNECTION|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 ConnectionType"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ConnectionType"j)letto_json=simple_to_jsonto_valueendmoduleAccessDeniedException=structtypenonrect={message:Message.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:Message.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Message.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Message.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"You do not have sufficient access to perform this action."]moduleInternalServerException=structtypenonrect={message:Message.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:Message.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Message.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Message.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"This exception occurs when there is an internal failure in the Amazon Connect service."]moduleServiceQuotaExceededException=structtypenonrect={message:Message.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:Message.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Message.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Message.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The number of attachments per contact exceeds the quota."]moduleThrottlingException=structtypenonrect={message:Message.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:Message.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Message.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Message.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The request was denied due to request throttling."]moduleUploadMetadata=structtypenonrect={url:UploadMetadataUrl.toption[@ocaml.doc"This is the pre-signed URL that can be used for uploading the file to Amazon S3 when used in response to StartAttachmentUpload."];urlExpiry:ISO8601Datetime.toption[@ocaml.doc"The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z."];headersToInclude:UploadMetadataSignedHeaders.toption[@ocaml.doc"The headers to be provided while uploading the file to the URL."]}letmake?url=fun?urlExpiry->fun?headersToInclude->fun()->{url;urlExpiry;headersToInclude}letto_valuex=structure_to_value[("Url",(Option.mapx.url~f:UploadMetadataUrl.to_value));("UrlExpiry",(Option.mapx.urlExpiry~f:ISO8601Datetime.to_value));("HeadersToInclude",(Option.mapx.headersToInclude~f:UploadMetadataSignedHeaders.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letheadersToInclude=(Option.map~f:UploadMetadataSignedHeaders.of_xml)(Xml.childxml_arg0"HeadersToInclude")inleturlExpiry=(Option.map~f:ISO8601Datetime.of_xml)(Xml.childxml_arg0"UrlExpiry")inleturl=(Option.map~f:UploadMetadataUrl.of_xml)(Xml.childxml_arg0"Url")inmake?headersToInclude?urlExpiry?url()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letheadersToInclude=field_mapjson__"HeadersToInclude"UploadMetadataSignedHeaders.of_jsoninleturlExpiry=field_mapjson__"UrlExpiry"ISO8601Datetime.of_jsoninleturl=field_mapjson__"Url"UploadMetadataUrl.of_jsoninmake?headersToInclude?urlExpiry?url()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Fields to be used while uploading the attachment."]moduleValidationException=structtypenonrect={message:Reason.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:Reason.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Reason.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Reason.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The input fails to satisfy the constraints specified by Amazon Connect."]moduleAttachmentSizeInBytes=structtypenonrect=Int64.tletmakei=letopenResultinok_or_failwith(check_int64_mini~min:1L);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_valueendmoduleNonEmptyClientToken=structtypenonrect=stringletcontext_="NonEmptyClientToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:500)>>=(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:"NonEmptyClientToken"jletto_json=simple_to_jsonto_valueendmoduleMessageProcessingMetadata=structtypenonrect={messageProcessingStatus:MessageProcessingStatus.toption[@ocaml.doc"The status of Message Processing for the message."]}letmake?messageProcessingStatus=fun()->{messageProcessingStatus}letto_valuex=structure_to_value[("MessageProcessingStatus",(Option.mapx.messageProcessingStatus~f:MessageProcessingStatus.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessageProcessingStatus=(Option.map~f:MessageProcessingStatus.of_xml)(Xml.childxml_arg0"MessageProcessingStatus")inmake?messageProcessingStatus()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessageProcessingStatus=field_mapjson__"MessageProcessingStatus"MessageProcessingStatus.of_jsoninmake?messageProcessingStatus()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Contains metadata for chat messages."]moduleClientToken=structtypenonrect=stringletcontext_="ClientToken"letmakei=letopenResultinok_or_failwith(check_string_maxi~max:500);iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"ClientToken"jletto_json=simple_to_jsonto_valueendmoduleConflictException=structtypenonrect={message:Reason.toption}letmake?message=fun()->{message}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:Reason.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessage=(Option.map~f:Reason.of_xml)(Xml.childxml_arg0"Message")inmake?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessage=field_mapjson__"Message"Reason.of_jsoninmake?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The requested operation conflicts with the current state of a service resource associated with the request."]moduleNextToken=structtypenonrect=stringletcontext_="NextToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1000)>>=(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_valueendmoduleTranscript=structtypenonrect=Item.tlistletmakei=iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:Item.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:Item.of_xml)letof_jsonj=list_of_json~kind:"Transcript"~of_json:Item.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleMaxResults=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:100)>>=(fun()->check_int_mini~min:0));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_valueendmoduleScanDirection=structtypenonrect=|FORWARD|BACKWARD|Non_static_idofstringletmakei=iletto_string=function|FORWARD->"FORWARD"|BACKWARD->"BACKWARD"|Non_static_ids->sletof_string=function|"FORWARD"->FORWARD|"BACKWARD"->BACKWARD|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 ScanDirection"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"ScanDirection"j)letto_json=simple_to_jsonto_valueendmoduleSortKey=structtypenonrect=|DESCENDING|ASCENDING|Non_static_idofstringletmakei=iletto_string=function|DESCENDING->"DESCENDING"|ASCENDING->"ASCENDING"|Non_static_ids->sletof_string=function|"DESCENDING"->DESCENDING|"ASCENDING"->ASCENDING|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 SortKey"xml_arg0)letof_jsonj=of_string(string_of_json~kind:"SortKey"j)letto_json=simple_to_jsonto_valueendmoduleStartPosition=structtypenonrect={id:ChatItemId.toption[@ocaml.doc"The ID of the message or event where to start."];absoluteTime:Instant.toption[@ocaml.doc"The time in ISO format where to start. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z."];mostRecent:MostRecent.toption[@ocaml.doc"The start position of the most recent message where you want to start."]}letmake?id=fun?absoluteTime->fun?mostRecent->fun()->{id;absoluteTime;mostRecent}letto_valuex=structure_to_value[("Id",(Option.mapx.id~f:ChatItemId.to_value));("AbsoluteTime",(Option.mapx.absoluteTime~f:Instant.to_value));("MostRecent",(Option.mapx.mostRecent~f:MostRecent.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmostRecent=(Option.map~f:MostRecent.of_xml)(Xml.childxml_arg0"MostRecent")inletabsoluteTime=(Option.map~f:Instant.of_xml)(Xml.childxml_arg0"AbsoluteTime")inletid=(Option.map~f:ChatItemId.of_xml)(Xml.childxml_arg0"Id")inmake?mostRecent?absoluteTime?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmostRecent=field_mapjson__"MostRecent"MostRecent.of_jsoninletabsoluteTime=field_mapjson__"AbsoluteTime"Instant.of_jsoninletid=field_mapjson__"Id"ChatItemId.of_jsoninmake?mostRecent?absoluteTime?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A filtering option for where to start. For example, if you sent 100 messages, start with message 50."]moduleAuthenticationUrl=structtypenonrect=stringletcontext_="AuthenticationUrl"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:2083)>>=(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:"AuthenticationUrl"jletto_json=simple_to_jsonto_valueendmoduleRedirectURI=structtypenonrect=stringletcontext_="RedirectURI"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1024)>>=(fun()->check_string_mini~min:1));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"RedirectURI"jletto_json=simple_to_jsonto_valueendmoduleSessionId=structtypenonrect=stringletcontext_="SessionId"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:36)>>=(fun()->check_string_mini~min:36));iletof_stringx=xletto_valuex=`Stringxletto_queryv=to_queryto_valuevletto_headerx=xletof_xml=Xml.string_data_exn~context:context_letof_jsonj=string_of_json~kind:"SessionId"jletto_json=simple_to_jsonto_valueendmodulePreSignedAttachmentUrl=structtypenonrect=stringletcontext_="PreSignedAttachmentUrl"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:"PreSignedAttachmentUrl"jletto_json=simple_to_jsonto_valueendmoduleURLExpiryInSeconds=structtypenonrect=intletmakei=letopenResultinok_or_failwith((check_int_maxi~max:300)>>=(fun()->check_int_mini~min:5));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 URLExpiryInSeconds"xml_arg0)letof_jsonj=Int.of_float(float_of_json~kind:"an integer"j)letto_json=simple_to_jsonto_valueendmoduleResourceNotFoundException=structtypenonrect={message:Message.toption;resourceId:ResourceId.toption[@ocaml.doc"The identifier of the resource."];resourceType:ResourceType.toption[@ocaml.doc"The type of Amazon Connect resource."]}letmake?message=fun?resourceId->fun?resourceType->fun()->{message;resourceId;resourceType}letto_valuex=structure_to_value[("Message",(Option.mapx.message~f:Message.to_value));("ResourceId",(Option.mapx.resourceId~f:ResourceId.to_value));("ResourceType",(Option.mapx.resourceType~f:ResourceType.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letresourceType=(Option.map~f:ResourceType.of_xml)(Xml.childxml_arg0"ResourceType")inletresourceId=(Option.map~f:ResourceId.of_xml)(Xml.childxml_arg0"ResourceId")inletmessage=(Option.map~f:Message.of_xml)(Xml.childxml_arg0"Message")inmake?resourceType?resourceId?message()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letresourceType=field_mapjson__"ResourceType"ResourceType.of_jsoninletresourceId=field_mapjson__"ResourceId"ResourceId.of_jsoninletmessage=field_mapjson__"Message"Message.of_jsoninmake?resourceType?resourceId?message()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The resource was not found."]moduleView=structtypenonrect={id:ViewId.toption[@ocaml.doc"The identifier of the view."];arn:ARN.toption[@ocaml.doc"The Amazon Resource Name (ARN) of the view."];name:ViewName.toption[@ocaml.doc"The name of the view."];version:ViewVersion.toption[@ocaml.doc"The current version of the view."];content:ViewContent.toption[@ocaml.doc"View content containing all content necessary to render a view except for runtime input data."]}letmake?id=fun?arn->fun?name->fun?version->fun?content->fun()->{id;arn;name;version;content}letto_valuex=structure_to_value[("Id",(Option.mapx.id~f:ViewId.to_value));("Arn",(Option.mapx.arn~f:ARN.to_value));("Name",(Option.mapx.name~f:ViewName.to_value));("Version",(Option.mapx.version~f:ViewVersion.to_value));("Content",(Option.mapx.content~f:ViewContent.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letcontent=(Option.map~f:ViewContent.of_xml)(Xml.childxml_arg0"Content")inletversion=(Option.map~f:ViewVersion.of_xml)(Xml.childxml_arg0"Version")inletname=(Option.map~f:ViewName.of_xml)(Xml.childxml_arg0"Name")inletarn=(Option.map~f:ARN.of_xml)(Xml.childxml_arg0"Arn")inletid=(Option.map~f:ViewId.of_xml)(Xml.childxml_arg0"Id")inmake?content?version?name?arn?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letcontent=field_mapjson__"Content"ViewContent.of_jsoninletversion=field_mapjson__"Version"ViewVersion.of_jsoninletname=field_mapjson__"Name"ViewName.of_jsoninletarn=field_mapjson__"Arn"ARN.of_jsoninletid=field_mapjson__"Id"ViewId.of_jsoninmake?content?version?name?arn?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"A view resource object. Contains metadata and content necessary to render the view."]moduleViewToken=structtypenonrect=stringletcontext_="ViewToken"letmakei=letopenResultinok_or_failwith((check_string_maxi~max:1000)>>=(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:"ViewToken"jletto_json=simple_to_jsonto_valueendmoduleConnectionCredentials=structtypenonrect={connectionToken:ParticipantToken.toption[@ocaml.doc"The connection token."];expiry:ISO8601Datetime.toption[@ocaml.doc"The expiration of the token. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z."]}letmake?connectionToken=fun?expiry->fun()->{connectionToken;expiry}letto_valuex=structure_to_value[("ConnectionToken",(Option.mapx.connectionToken~f:ParticipantToken.to_value));("Expiry",(Option.mapx.expiry~f:ISO8601Datetime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letexpiry=(Option.map~f:ISO8601Datetime.of_xml)(Xml.childxml_arg0"Expiry")inletconnectionToken=(Option.map~f:ParticipantToken.of_xml)(Xml.childxml_arg0"ConnectionToken")inmake?expiry?connectionToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letexpiry=field_mapjson__"Expiry"ISO8601Datetime.of_jsoninletconnectionToken=field_mapjson__"ConnectionToken"ParticipantToken.of_jsoninmake?expiry?connectionToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Connection credentials."]moduleWebRTCConnection=structtypenonrect={attendee:Attendee.toption;meeting:WebRTCMeeting.toption[@ocaml.doc"A meeting created using the Amazon Chime SDK."]}letmake?attendee=fun?meeting->fun()->{attendee;meeting}letto_valuex=structure_to_value[("Attendee",(Option.mapx.attendee~f:Attendee.to_value));("Meeting",(Option.mapx.meeting~f:WebRTCMeeting.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmeeting=(Option.map~f:WebRTCMeeting.of_xml)(Xml.childxml_arg0"Meeting")inletattendee=(Option.map~f:Attendee.of_xml)(Xml.childxml_arg0"Attendee")inmake?meeting?attendee()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmeeting=field_mapjson__"Meeting"WebRTCMeeting.of_jsoninletattendee=field_mapjson__"Attendee"Attendee.of_jsoninmake?meeting?attendee()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates the participant\226\128\153s WebRTC connection data required for the client application (mobile or web) to connect to the call."]moduleWebsocket=structtypenonrect={url:PreSignedConnectionUrl.toption[@ocaml.doc"The URL of the websocket."];connectionExpiry:ISO8601Datetime.toption[@ocaml.doc"The URL expiration timestamp in ISO date format. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z."]}letmake?url=fun?connectionExpiry->fun()->{url;connectionExpiry}letto_valuex=structure_to_value[("Url",(Option.mapx.url~f:PreSignedConnectionUrl.to_value));("ConnectionExpiry",(Option.mapx.connectionExpiry~f:ISO8601Datetime.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnectionExpiry=(Option.map~f:ISO8601Datetime.of_xml)(Xml.childxml_arg0"ConnectionExpiry")inleturl=(Option.map~f:PreSignedConnectionUrl.of_xml)(Xml.childxml_arg0"Url")inmake?connectionExpiry?url()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnectionExpiry=field_mapjson__"ConnectionExpiry"ISO8601Datetime.of_jsoninleturl=field_mapjson__"Url"PreSignedConnectionUrl.of_jsoninmake?connectionExpiry?url()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The websocket for the participant's connection."]moduleBool_=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_valueendmoduleConnectionTypeList=structtypenonrect=ConnectionType.tlistletmakei=letopenResultinok_or_failwith(check_list_mini~min:1);iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ConnectionType.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:ConnectionType.of_xml)letof_jsonj=list_of_json~kind:"ConnectionTypeList"~of_json:ConnectionType.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleAttachmentIdList=structtypenonrect=ArtifactId.tlistletmakei=letopenResultinok_or_failwith((check_list_maxi~max:1)>>=(fun()->check_list_mini~min:1));iletof_string_=failwithf"of_string is not implemented for List_shape objects"()[@@warning"-32"]letto_valuexs=(xs|>(List.map~f:ArtifactId.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:ArtifactId.of_xml)letof_jsonj=list_of_json~kind:"AttachmentIdList"~of_json:ArtifactId.of_jsonjletto_jsonv=composed_to_jsonto_valuevendmoduleStartAttachmentUploadResponse=structtypenonrect={attachmentId:ArtifactId.toption[@ocaml.doc"A unique identifier for the attachment."];uploadMetadata:UploadMetadata.toption[@ocaml.doc"The headers to be provided while uploading the file to the URL."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?attachmentId=fun?uploadMetadata->fun()->{attachmentId;uploadMetadata}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AttachmentId",(Option.mapx.attachmentId~f:ArtifactId.to_value));("UploadMetadata",(Option.mapx.uploadMetadata~f:UploadMetadata.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letuploadMetadata=(Option.map~f:UploadMetadata.of_xml)(Xml.childxml_arg0"UploadMetadata")inletattachmentId=(Option.map~f:ArtifactId.of_xml)(Xml.childxml_arg0"AttachmentId")inmake?uploadMetadata?attachmentId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letuploadMetadata=field_mapjson__"UploadMetadata"UploadMetadata.of_jsoninletattachmentId=field_mapjson__"AttachmentId"ArtifactId.of_jsoninmake?uploadMetadata?attachmentId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides a pre-signed Amazon S3 URL in response for uploading the file directly to S3. For security recommendations, see Amazon Connect Chat security best practices. ConnectionToken is used for invoking this API instead of ParticipantToken. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleStartAttachmentUploadRequest=structtypenonrect={contentType:ContentType.t[@ocaml.doc"Describes the MIME file type of the attachment. For a list of supported file types, see Feature specifications in the Amazon Connect Administrator Guide."];attachmentSizeInBytes:AttachmentSizeInBytes.t[@ocaml.doc"The size of the attachment in bytes."];attachmentName:AttachmentName.t[@ocaml.doc"A case-sensitive name of the attachment being uploaded."];clientToken:NonEmptyClientToken.t[@ocaml.doc"A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs."];connectionToken:ParticipantToken.t[@ocaml.doc"The authentication token associated with the participant's connection."]}letcontext_="StartAttachmentUploadRequest"letmake~contentType=fun~attachmentSizeInBytes->fun~attachmentName->fun~clientToken->fun~connectionToken->fun()->{contentType;attachmentSizeInBytes;attachmentName;clientToken;connectionToken}letto_valuex=structure_to_value[("ContentType",(Some(ContentType.to_valuex.contentType)));("AttachmentSizeInBytes",(Some(AttachmentSizeInBytes.to_valuex.attachmentSizeInBytes)));("AttachmentName",(Some(AttachmentName.to_valuex.attachmentName)));("ClientToken",(Some(NonEmptyClientToken.to_valuex.clientToken)));("X-Amz-Bearer",(Some(ParticipantToken.to_valuex.connectionToken)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnectionToken=ParticipantToken.of_xml(Xml.child_exn~context:context_xml_arg0"X-Amz-Bearer")inletclientToken=NonEmptyClientToken.of_xml(Xml.child_exn~context:context_xml_arg0"ClientToken")inletattachmentName=AttachmentName.of_xml(Xml.child_exn~context:context_xml_arg0"AttachmentName")inletattachmentSizeInBytes=AttachmentSizeInBytes.of_xml(Xml.child_exn~context:context_xml_arg0"AttachmentSizeInBytes")inletcontentType=ContentType.of_xml(Xml.child_exn~context:context_xml_arg0"ContentType")inmake~connectionToken~clientToken~attachmentName~attachmentSizeInBytes~contentType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnectionToken=field_map_exnjson__"ConnectionToken"ParticipantToken.of_jsoninletclientToken=field_map_exnjson__"ClientToken"NonEmptyClientToken.of_jsoninletattachmentName=field_map_exnjson__"AttachmentName"AttachmentName.of_jsoninletattachmentSizeInBytes=field_map_exnjson__"AttachmentSizeInBytes"AttachmentSizeInBytes.of_jsoninletcontentType=field_map_exnjson__"ContentType"ContentType.of_jsoninmake~connectionToken~clientToken~attachmentName~attachmentSizeInBytes~contentType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides a pre-signed Amazon S3 URL in response for uploading the file directly to S3. For security recommendations, see Amazon Connect Chat security best practices. ConnectionToken is used for invoking this API instead of ParticipantToken. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleSendMessageResponse=structtypenonrect={id:ChatItemId.toption[@ocaml.doc"The ID of the message."];absoluteTime:Instant.toption[@ocaml.doc"The time when the message was sent. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z."];messageMetadata:MessageProcessingMetadata.toption[@ocaml.doc"Contains metadata for the message."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?id=fun?absoluteTime->fun?messageMetadata->fun()->{id;absoluteTime;messageMetadata}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Id",(Option.mapx.id~f:ChatItemId.to_value));("AbsoluteTime",(Option.mapx.absoluteTime~f:Instant.to_value));("MessageMetadata",(Option.mapx.messageMetadata~f:MessageProcessingMetadata.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letmessageMetadata=(Option.map~f:MessageProcessingMetadata.of_xml)(Xml.childxml_arg0"MessageMetadata")inletabsoluteTime=(Option.map~f:Instant.of_xml)(Xml.childxml_arg0"AbsoluteTime")inletid=(Option.map~f:ChatItemId.of_xml)(Xml.childxml_arg0"Id")inmake?messageMetadata?absoluteTime?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letmessageMetadata=field_mapjson__"MessageMetadata"MessageProcessingMetadata.of_jsoninletabsoluteTime=field_mapjson__"AbsoluteTime"Instant.of_jsoninletid=field_mapjson__"Id"ChatItemId.of_jsoninmake?messageMetadata?absoluteTime?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Sends a message. For security recommendations, see Amazon Connect Chat security best practices. ConnectionToken is used for invoking this API instead of ParticipantToken. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleSendMessageRequest=structtypenonrect={contentType:ChatContentType.t[@ocaml.doc"The type of the content. Possible types are text/plain, text/markdown, application/json, and application/vnd.amazonaws.connect.message.interactive.response. Supported types on the contact are configured through SupportedMessagingContentTypes on StartChatContact and StartOutboundChatContact. For Apple Messages for Business, SMS, and WhatsApp Business Messaging contacts, only text/plain is supported."];content:ChatContent.t[@ocaml.doc"The content of the message. For text/plain and text/markdown, the Length Constraints are Minimum of 1, Maximum of 1024. For application/json, the Length Constraints are Minimum of 1, Maximum of 12000. For application/vnd.amazonaws.connect.message.interactive.response, the Length Constraints are Minimum of 1, Maximum of 12288."];clientToken:ClientToken.toption[@ocaml.doc"A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs."];connectionToken:ParticipantToken.t[@ocaml.doc"The authentication token associated with the connection."]}letcontext_="SendMessageRequest"letmake?clientToken=fun~contentType->fun~content->fun~connectionToken->fun()->{clientToken;contentType;content;connectionToken}letto_valuex=structure_to_value[("ContentType",(Some(ChatContentType.to_valuex.contentType)));("Content",(Some(ChatContent.to_valuex.content)));("ClientToken",(Option.mapx.clientToken~f:ClientToken.to_value));("X-Amz-Bearer",(Some(ParticipantToken.to_valuex.connectionToken)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnectionToken=ParticipantToken.of_xml(Xml.child_exn~context:context_xml_arg0"X-Amz-Bearer")inletclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"ClientToken")inletcontent=ChatContent.of_xml(Xml.child_exn~context:context_xml_arg0"Content")inletcontentType=ChatContentType.of_xml(Xml.child_exn~context:context_xml_arg0"ContentType")inmake~connectionToken?clientToken~content~contentType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnectionToken=field_map_exnjson__"ConnectionToken"ParticipantToken.of_jsoninletclientToken=field_mapjson__"ClientToken"ClientToken.of_jsoninletcontent=field_map_exnjson__"Content"ChatContent.of_jsoninletcontentType=field_map_exnjson__"ContentType"ChatContentType.of_jsoninmake~connectionToken?clientToken~content~contentType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Sends a message. For security recommendations, see Amazon Connect Chat security best practices. ConnectionToken is used for invoking this API instead of ParticipantToken. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleSendEventResponse=structtypenonrect={id:ChatItemId.toption[@ocaml.doc"The ID of the response."];absoluteTime:Instant.toption[@ocaml.doc"The time when the event was sent. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?id=fun?absoluteTime->fun()->{id;absoluteTime}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Id",(Option.mapx.id~f:ChatItemId.to_value));("AbsoluteTime",(Option.mapx.absoluteTime~f:Instant.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letabsoluteTime=(Option.map~f:Instant.of_xml)(Xml.childxml_arg0"AbsoluteTime")inletid=(Option.map~f:ChatItemId.of_xml)(Xml.childxml_arg0"Id")inmake?absoluteTime?id()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letabsoluteTime=field_mapjson__"AbsoluteTime"Instant.of_jsoninletid=field_mapjson__"Id"ChatItemId.of_jsoninmake?absoluteTime?id()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The application/vnd.amazonaws.connect.event.connection.acknowledged ContentType is no longer maintained since December 31, 2024. This event has been migrated to the CreateParticipantConnection API using the ConnectParticipant field. Sends an event. Message receipts are not supported when there are more than two active participants in the chat. Using the SendEvent API for message receipts when a supervisor is barged-in will result in a conflict exception. For security recommendations, see Amazon Connect Chat security best practices. ConnectionToken is used for invoking this API instead of ParticipantToken. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleSendEventRequest=structtypenonrect={contentType:ChatContentType.t[@ocaml.doc"The content type of the request. Supported types are: application/vnd.amazonaws.connect.event.typing application/vnd.amazonaws.connect.event.connection.acknowledged (is no longer maintained since December 31, 2024) application/vnd.amazonaws.connect.event.message.delivered application/vnd.amazonaws.connect.event.message.read"];content:ChatContent.toption[@ocaml.doc"The content of the event to be sent (for example, message text). For content related to message receipts, this is supported in the form of a JSON string. Sample Content: \"\\{\\\"messageId\\\":\\\"11111111-aaaa-bbbb-cccc-EXAMPLE01234\\\"\\}\""];clientToken:ClientToken.toption[@ocaml.doc"A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs."];connectionToken:ParticipantToken.t[@ocaml.doc"The authentication token associated with the participant's connection."]}letcontext_="SendEventRequest"letmake?content=fun?clientToken->fun~contentType->fun~connectionToken->fun()->{content;clientToken;contentType;connectionToken}letto_valuex=structure_to_value[("ContentType",(Some(ChatContentType.to_valuex.contentType)));("Content",(Option.mapx.content~f:ChatContent.to_value));("ClientToken",(Option.mapx.clientToken~f:ClientToken.to_value));("X-Amz-Bearer",(Some(ParticipantToken.to_valuex.connectionToken)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnectionToken=ParticipantToken.of_xml(Xml.child_exn~context:context_xml_arg0"X-Amz-Bearer")inletclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"ClientToken")inletcontent=(Option.map~f:ChatContent.of_xml)(Xml.childxml_arg0"Content")inletcontentType=ChatContentType.of_xml(Xml.child_exn~context:context_xml_arg0"ContentType")inmake~connectionToken?clientToken?content~contentType()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnectionToken=field_map_exnjson__"ConnectionToken"ParticipantToken.of_jsoninletclientToken=field_mapjson__"ClientToken"ClientToken.of_jsoninletcontent=field_mapjson__"Content"ChatContent.of_jsoninletcontentType=field_map_exnjson__"ContentType"ChatContentType.of_jsoninmake~connectionToken?clientToken?content~contentType()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"The application/vnd.amazonaws.connect.event.connection.acknowledged ContentType is no longer maintained since December 31, 2024. This event has been migrated to the CreateParticipantConnection API using the ConnectParticipant field. Sends an event. Message receipts are not supported when there are more than two active participants in the chat. Using the SendEvent API for message receipts when a supervisor is barged-in will result in a conflict exception. For security recommendations, see Amazon Connect Chat security best practices. ConnectionToken is used for invoking this API instead of ParticipantToken. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleGetTranscriptResponse=structtypenonrect={initialContactId:ContactId.toption[@ocaml.doc"The initial contact ID for the contact."];transcript:Transcript.toption[@ocaml.doc"The list of messages in the session."];nextToken:NextToken.toption[@ocaml.doc"The pagination token. Use the value returned previously in the next subsequent request to retrieve the next set of results."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?initialContactId=fun?transcript->fun?nextToken->fun()->{initialContactId;transcript;nextToken}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("InitialContactId",(Option.mapx.initialContactId~f:ContactId.to_value));("Transcript",(Option.mapx.transcript~f:Transcript.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")inlettranscript=(Option.map~f:Transcript.of_xml)(Xml.childxml_arg0"Transcript")inletinitialContactId=(Option.map~f:ContactId.of_xml)(Xml.childxml_arg0"InitialContactId")inmake?nextToken?transcript?initialContactId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letnextToken=field_mapjson__"NextToken"NextToken.of_jsoninlettranscript=field_mapjson__"Transcript"Transcript.of_jsoninletinitialContactId=field_mapjson__"InitialContactId"ContactId.of_jsoninmake?nextToken?transcript?initialContactId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a transcript of the session, including details about any attachments. For information about accessing past chat contact transcripts for a persistent chat, see Enable persistent chat. For security recommendations, see Amazon Connect Chat security best practices. If you have a process that consumes events in the transcript of an chat that has ended, note that chat transcripts contain the following event content types if the event has occurred during the chat session: application/vnd.amazonaws.connect.event.participant.invited application/vnd.amazonaws.connect.event.participant.joined application/vnd.amazonaws.connect.event.participant.left application/vnd.amazonaws.connect.event.chat.ended application/vnd.amazonaws.connect.event.transfer.succeeded application/vnd.amazonaws.connect.event.transfer.failed ConnectionToken is used for invoking this API instead of ParticipantToken. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleGetTranscriptRequest=structtypenonrect={contactId:ContactId.toption[@ocaml.doc"The contactId from the current contact chain for which transcript is needed."];maxResults:MaxResults.toption[@ocaml.doc"The maximum number of results to return in the page. Default: 10."];nextToken:NextToken.toption[@ocaml.doc"The pagination token. Use the value returned previously in the next subsequent request to retrieve the next set of results."];scanDirection:ScanDirection.toption[@ocaml.doc"The direction from StartPosition from which to retrieve message. Default: BACKWARD when no StartPosition is provided, FORWARD with StartPosition."];sortOrder:SortKey.toption[@ocaml.doc"The sort order for the records. Default: DESCENDING."];startPosition:StartPosition.toption[@ocaml.doc"A filtering option for where to start."];connectionToken:ParticipantToken.t[@ocaml.doc"The authentication token associated with the participant's connection."]}letcontext_="GetTranscriptRequest"letmake?contactId=fun?maxResults->fun?nextToken->fun?scanDirection->fun?sortOrder->fun?startPosition->fun~connectionToken->fun()->{contactId;maxResults;nextToken;scanDirection;sortOrder;startPosition;connectionToken}letto_valuex=structure_to_value[("ContactId",(Option.mapx.contactId~f:ContactId.to_value));("MaxResults",(Option.mapx.maxResults~f:MaxResults.to_value));("NextToken",(Option.mapx.nextToken~f:NextToken.to_value));("ScanDirection",(Option.mapx.scanDirection~f:ScanDirection.to_value));("SortOrder",(Option.mapx.sortOrder~f:SortKey.to_value));("StartPosition",(Option.mapx.startPosition~f:StartPosition.to_value));("X-Amz-Bearer",(Some(ParticipantToken.to_valuex.connectionToken)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnectionToken=ParticipantToken.of_xml(Xml.child_exn~context:context_xml_arg0"X-Amz-Bearer")inletstartPosition=(Option.map~f:StartPosition.of_xml)(Xml.childxml_arg0"StartPosition")inletsortOrder=(Option.map~f:SortKey.of_xml)(Xml.childxml_arg0"SortOrder")inletscanDirection=(Option.map~f:ScanDirection.of_xml)(Xml.childxml_arg0"ScanDirection")inletnextToken=(Option.map~f:NextToken.of_xml)(Xml.childxml_arg0"NextToken")inletmaxResults=(Option.map~f:MaxResults.of_xml)(Xml.childxml_arg0"MaxResults")inletcontactId=(Option.map~f:ContactId.of_xml)(Xml.childxml_arg0"ContactId")inmake~connectionToken?startPosition?sortOrder?scanDirection?nextToken?maxResults?contactId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnectionToken=field_map_exnjson__"ConnectionToken"ParticipantToken.of_jsoninletstartPosition=field_mapjson__"StartPosition"StartPosition.of_jsoninletsortOrder=field_mapjson__"SortOrder"SortKey.of_jsoninletscanDirection=field_mapjson__"ScanDirection"ScanDirection.of_jsoninletnextToken=field_mapjson__"NextToken"NextToken.of_jsoninletmaxResults=field_mapjson__"MaxResults"MaxResults.of_jsoninletcontactId=field_mapjson__"ContactId"ContactId.of_jsoninmake~connectionToken?startPosition?sortOrder?scanDirection?nextToken?maxResults?contactId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves a transcript of the session, including details about any attachments. For information about accessing past chat contact transcripts for a persistent chat, see Enable persistent chat. For security recommendations, see Amazon Connect Chat security best practices. If you have a process that consumes events in the transcript of an chat that has ended, note that chat transcripts contain the following event content types if the event has occurred during the chat session: application/vnd.amazonaws.connect.event.participant.invited application/vnd.amazonaws.connect.event.participant.joined application/vnd.amazonaws.connect.event.participant.left application/vnd.amazonaws.connect.event.chat.ended application/vnd.amazonaws.connect.event.transfer.succeeded application/vnd.amazonaws.connect.event.transfer.failed ConnectionToken is used for invoking this API instead of ParticipantToken. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleGetAuthenticationUrlResponse=structtypenonrect={authenticationUrl:AuthenticationUrl.toption[@ocaml.doc"The URL where the customer will sign in to the identity provider. This URL contains the authorize endpoint for the Cognito UserPool used in the authentication."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?authenticationUrl=fun()->{authenticationUrl}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("AuthenticationUrl",(Option.mapx.authenticationUrl~f:AuthenticationUrl.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letauthenticationUrl=(Option.map~f:AuthenticationUrl.of_xml)(Xml.childxml_arg0"AuthenticationUrl")inmake?authenticationUrl()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letauthenticationUrl=field_mapjson__"AuthenticationUrl"AuthenticationUrl.of_jsoninmake?authenticationUrl()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the AuthenticationUrl for the current authentication session for the AuthenticateCustomer flow block. For security recommendations, see Amazon Connect Chat security best practices. This API can only be called within one minute of receiving the authenticationInitiated event. The current supported channel is chat. This API is not supported for Apple Messages for Business, WhatsApp, or SMS chats. ConnectionToken is used for invoking this API instead of ParticipantToken. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleGetAuthenticationUrlRequest=structtypenonrect={sessionId:SessionId.t[@ocaml.doc"The sessionId provided in the authenticationInitiated event."];redirectUri:RedirectURI.t[@ocaml.doc"The URL where the customer will be redirected after Amazon Cognito authorizes the user."];connectionToken:ParticipantToken.t[@ocaml.doc"The authentication token associated with the participant's connection."]}letcontext_="GetAuthenticationUrlRequest"letmake~sessionId=fun~redirectUri->fun~connectionToken->fun()->{sessionId;redirectUri;connectionToken}letto_valuex=structure_to_value[("SessionId",(Some(SessionId.to_valuex.sessionId)));("RedirectUri",(Some(RedirectURI.to_valuex.redirectUri)));("X-Amz-Bearer",(Some(ParticipantToken.to_valuex.connectionToken)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnectionToken=ParticipantToken.of_xml(Xml.child_exn~context:context_xml_arg0"X-Amz-Bearer")inletredirectUri=RedirectURI.of_xml(Xml.child_exn~context:context_xml_arg0"RedirectUri")inletsessionId=SessionId.of_xml(Xml.child_exn~context:context_xml_arg0"SessionId")inmake~connectionToken~redirectUri~sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnectionToken=field_map_exnjson__"ConnectionToken"ParticipantToken.of_jsoninletredirectUri=field_map_exnjson__"RedirectUri"RedirectURI.of_jsoninletsessionId=field_map_exnjson__"SessionId"SessionId.of_jsoninmake~connectionToken~redirectUri~sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the AuthenticationUrl for the current authentication session for the AuthenticateCustomer flow block. For security recommendations, see Amazon Connect Chat security best practices. This API can only be called within one minute of receiving the authenticationInitiated event. The current supported channel is chat. This API is not supported for Apple Messages for Business, WhatsApp, or SMS chats. ConnectionToken is used for invoking this API instead of ParticipantToken. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleGetAttachmentResponse=structtypenonrect={url:PreSignedAttachmentUrl.toption[@ocaml.doc"This is the pre-signed URL that can be used for uploading the file to Amazon S3 when used in response to StartAttachmentUpload."];urlExpiry:ISO8601Datetime.toption[@ocaml.doc"The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z."];attachmentSizeInBytes:AttachmentSizeInBytes.toption[@ocaml.doc"The size of the attachment in bytes."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?url=fun?urlExpiry->fun?attachmentSizeInBytes->fun()->{url;urlExpiry;attachmentSizeInBytes}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Url",(Option.mapx.url~f:PreSignedAttachmentUrl.to_value));("UrlExpiry",(Option.mapx.urlExpiry~f:ISO8601Datetime.to_value));("AttachmentSizeInBytes",(Option.mapx.attachmentSizeInBytes~f:AttachmentSizeInBytes.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letattachmentSizeInBytes=(Option.map~f:AttachmentSizeInBytes.of_xml)(Xml.childxml_arg0"AttachmentSizeInBytes")inleturlExpiry=(Option.map~f:ISO8601Datetime.of_xml)(Xml.childxml_arg0"UrlExpiry")inleturl=(Option.map~f:PreSignedAttachmentUrl.of_xml)(Xml.childxml_arg0"Url")inmake?attachmentSizeInBytes?urlExpiry?url()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letattachmentSizeInBytes=field_mapjson__"AttachmentSizeInBytes"AttachmentSizeInBytes.of_jsoninleturlExpiry=field_mapjson__"UrlExpiry"ISO8601Datetime.of_jsoninleturl=field_mapjson__"Url"PreSignedAttachmentUrl.of_jsoninmake?attachmentSizeInBytes?urlExpiry?url()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides a pre-signed URL for download of a completed attachment. This is an asynchronous API for use with active contacts. For security recommendations, see Amazon Connect Chat security best practices. The participant role CUSTOM_BOT is not permitted to access attachments customers may upload. An AccessDeniedException can indicate that the participant may be a CUSTOM_BOT, and it doesn't have access to attachments. ConnectionToken is used for invoking this API instead of ParticipantToken. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleGetAttachmentRequest=structtypenonrect={attachmentId:ArtifactId.t[@ocaml.doc"A unique identifier for the attachment."];connectionToken:ParticipantToken.t[@ocaml.doc"The authentication token associated with the participant's connection."];urlExpiryInSeconds:URLExpiryInSeconds.toption[@ocaml.doc"The expiration time of the URL in ISO timestamp. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z."]}letcontext_="GetAttachmentRequest"letmake?urlExpiryInSeconds=fun~attachmentId->fun~connectionToken->fun()->{urlExpiryInSeconds;attachmentId;connectionToken}letto_valuex=structure_to_value[("AttachmentId",(Some(ArtifactId.to_valuex.attachmentId)));("X-Amz-Bearer",(Some(ParticipantToken.to_valuex.connectionToken)));("UrlExpiryInSeconds",(Option.mapx.urlExpiryInSeconds~f:URLExpiryInSeconds.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=leturlExpiryInSeconds=(Option.map~f:URLExpiryInSeconds.of_xml)(Xml.childxml_arg0"UrlExpiryInSeconds")inletconnectionToken=ParticipantToken.of_xml(Xml.child_exn~context:context_xml_arg0"X-Amz-Bearer")inletattachmentId=ArtifactId.of_xml(Xml.child_exn~context:context_xml_arg0"AttachmentId")inmake?urlExpiryInSeconds~connectionToken~attachmentId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=leturlExpiryInSeconds=field_mapjson__"UrlExpiryInSeconds"URLExpiryInSeconds.of_jsoninletconnectionToken=field_map_exnjson__"ConnectionToken"ParticipantToken.of_jsoninletattachmentId=field_map_exnjson__"AttachmentId"ArtifactId.of_jsoninmake?urlExpiryInSeconds~connectionToken~attachmentId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Provides a pre-signed URL for download of a completed attachment. This is an asynchronous API for use with active contacts. For security recommendations, see Amazon Connect Chat security best practices. The participant role CUSTOM_BOT is not permitted to access attachments customers may upload. An AccessDeniedException can indicate that the participant may be a CUSTOM_BOT, and it doesn't have access to attachments. ConnectionToken is used for invoking this API instead of ParticipantToken. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleDisconnectParticipantResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disconnects a participant. For security recommendations, see Amazon Connect Chat security best practices. ConnectionToken is used for invoking this API instead of ParticipantToken. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleDisconnectParticipantRequest=structtypenonrect={clientToken:ClientToken.toption[@ocaml.doc"A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs."];connectionToken:ParticipantToken.t[@ocaml.doc"The authentication token associated with the participant's connection."]}letcontext_="DisconnectParticipantRequest"letmake?clientToken=fun~connectionToken->fun()->{clientToken;connectionToken}letto_valuex=structure_to_value[("ClientToken",(Option.mapx.clientToken~f:ClientToken.to_value));("X-Amz-Bearer",(Some(ParticipantToken.to_valuex.connectionToken)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnectionToken=ParticipantToken.of_xml(Xml.child_exn~context:context_xml_arg0"X-Amz-Bearer")inletclientToken=(Option.map~f:ClientToken.of_xml)(Xml.childxml_arg0"ClientToken")inmake~connectionToken?clientToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnectionToken=field_map_exnjson__"ConnectionToken"ParticipantToken.of_jsoninletclientToken=field_mapjson__"ClientToken"ClientToken.of_jsoninmake~connectionToken?clientToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Disconnects a participant. For security recommendations, see Amazon Connect Chat security best practices. ConnectionToken is used for invoking this API instead of ParticipantToken. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleDescribeViewResponse=structtypenonrect={view:View.toption[@ocaml.doc"A view resource object. Contains metadata and content necessary to render the view."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ResourceNotFoundExceptionofResourceNotFoundException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?view=fun()->{view}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ResourceNotFoundException"->`ResourceNotFoundException(ResourceNotFoundException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ResourceNotFoundExceptione->`Assoc[("error",(`String"ResourceNotFoundException"));("details",(ResourceNotFoundException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("View",(Option.mapx.view~f:View.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letview=(Option.map~f:View.of_xml)(Xml.childxml_arg0"View")inmake?view()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letview=field_mapjson__"View"View.of_jsoninmake?view()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the view for the specified view token. For security recommendations, see Amazon Connect Chat security best practices."]moduleDescribeViewRequest=structtypenonrect={viewToken:ViewToken.t[@ocaml.doc"An encrypted token originating from the interactive message of a ShowView block operation. Represents the desired view."];connectionToken:ParticipantToken.t[@ocaml.doc"The connection token."]}letcontext_="DescribeViewRequest"letmake~viewToken=fun~connectionToken->fun()->{viewToken;connectionToken}letto_valuex=structure_to_value[("ViewToken",(Some(ViewToken.to_valuex.viewToken)));("X-Amz-Bearer",(Some(ParticipantToken.to_valuex.connectionToken)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnectionToken=ParticipantToken.of_xml(Xml.child_exn~context:context_xml_arg0"X-Amz-Bearer")inletviewToken=ViewToken.of_xml(Xml.child_exn~context:context_xml_arg0"ViewToken")inmake~connectionToken~viewToken()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnectionToken=field_map_exnjson__"ConnectionToken"ParticipantToken.of_jsoninletviewToken=field_map_exnjson__"ViewToken"ViewToken.of_jsoninmake~connectionToken~viewToken()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Retrieves the view for the specified view token. For security recommendations, see Amazon Connect Chat security best practices."]moduleCreateParticipantConnectionResponse=structtypenonrect={websocket:Websocket.toption[@ocaml.doc"Creates the participant's websocket connection."];connectionCredentials:ConnectionCredentials.toption[@ocaml.doc"Creates the participant's connection credentials. The authentication token associated with the participant's connection."];webRTCConnection:WebRTCConnection.toption[@ocaml.doc"Creates the participant's WebRTC connection data required for the client application (mobile application or website) to connect to the call."]}typenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake?websocket=fun?connectionCredentials->fun?webRTCConnection->fun()->{websocket;connectionCredentials;webRTCConnection}leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letto_valuex=structure_to_value[("Websocket",(Option.mapx.websocket~f:Websocket.to_value));("ConnectionCredentials",(Option.mapx.connectionCredentials~f:ConnectionCredentials.to_value));("WebRTCConnection",(Option.mapx.webRTCConnection~f:WebRTCConnection.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letwebRTCConnection=(Option.map~f:WebRTCConnection.of_xml)(Xml.childxml_arg0"WebRTCConnection")inletconnectionCredentials=(Option.map~f:ConnectionCredentials.of_xml)(Xml.childxml_arg0"ConnectionCredentials")inletwebsocket=(Option.map~f:Websocket.of_xml)(Xml.childxml_arg0"Websocket")inmake?webRTCConnection?connectionCredentials?websocket()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letwebRTCConnection=field_mapjson__"WebRTCConnection"WebRTCConnection.of_jsoninletconnectionCredentials=field_mapjson__"ConnectionCredentials"ConnectionCredentials.of_jsoninletwebsocket=field_mapjson__"Websocket"Websocket.of_jsoninmake?webRTCConnection?connectionCredentials?websocket()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates the participant's connection. For security recommendations, see Amazon Connect Chat security best practices. For WebRTC security recommendations, see Amazon Connect WebRTC security best practices. ParticipantToken is used for invoking this API instead of ConnectionToken. The participant token is valid for the lifetime of the participant \226\128\147 until they are part of a contact. For WebRTC participants, if they leave or are disconnected for 60 seconds, a new participant needs to be created using the CreateParticipant API. For WEBSOCKET Type: The response URL for has a connect expiry timeout of 100s. Clients must manually connect to the returned websocket URL and subscribe to the desired topic. For chat, you need to publish the following on the established websocket connection: \\{\"topic\":\"aws/subscribe\",\"content\":\\{\"topics\":\\[\"aws/chat\"\\]\\}\\} Upon websocket URL expiry, as specified in the response ConnectionExpiry parameter, clients need to call this API again to obtain a new websocket URL and perform the same steps as before. The expiry time for the connection token is different than the ChatDurationInMinutes. Expiry time for the connection token is 1 day. For WEBRTC_CONNECTION Type: The response includes connection data required for the client application to join the call using the Amazon Chime SDK client libraries. The WebRTCConnection response contains Meeting and Attendee information needed to establish the media connection. The attendee join token in WebRTCConnection response is valid for the lifetime of the participant in the call. If a participant leaves or is disconnected for 60 seconds, their participant credentials will no longer be valid, and a new participant will need to be created to rejoin the call. Message streaming support: This API can also be used together with the StartContactStreaming API to create a participant connection for chat contacts that are not using a websocket. For more information about message streaming, Enable real-time chat message streaming in the Amazon Connect Administrator Guide. Multi-user web, in-app, video calling support: For WebRTC calls, this API is used in conjunction with the CreateParticipant API to enable multi-party calling. The StartWebRTCContact API creates the initial contact and routes it to an agent, while CreateParticipant adds additional participants to the ongoing call. For more information about multi-party WebRTC calls, see Enable multi-user web, in-app, and video calling in the Amazon Connect Administrator Guide. Feature specifications: For information about feature specifications, such as the allowed number of open websocket connections per participant or maximum number of WebRTC participants, see Feature specifications in the Amazon Connect Administrator Guide. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleCreateParticipantConnectionRequest=structtypenonrect={type_:ConnectionTypeList.toption[@ocaml.doc"Type of connection information required. If you need CONNECTION_CREDENTIALS along with marking participant as connected, pass CONNECTION_CREDENTIALS in Type."];participantToken:ParticipantToken.t[@ocaml.doc"This is a header parameter. The ParticipantToken as obtained from StartChatContact API response."];connectParticipant:Bool_.toption[@ocaml.doc"Amazon Connect Participant is used to mark the participant as connected for customer participant in message streaming, as well as for agent or manager participant in non-streaming chats."]}letcontext_="CreateParticipantConnectionRequest"letmake?type_=fun?connectParticipant->fun~participantToken->fun()->{type_;connectParticipant;participantToken}letto_valuex=structure_to_value[("Type",(Option.mapx.type_~f:ConnectionTypeList.to_value));("X-Amz-Bearer",(Some(ParticipantToken.to_valuex.participantToken)));("ConnectParticipant",(Option.mapx.connectParticipant~f:Bool_.to_value))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnectParticipant=(Option.map~f:Bool_.of_xml)(Xml.childxml_arg0"ConnectParticipant")inletparticipantToken=ParticipantToken.of_xml(Xml.child_exn~context:context_xml_arg0"X-Amz-Bearer")inlettype_=(Option.map~f:ConnectionTypeList.of_xml)(Xml.childxml_arg0"Type")inmake?connectParticipant~participantToken?type_()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnectParticipant=field_mapjson__"ConnectParticipant"Bool_.of_jsoninletparticipantToken=field_map_exnjson__"ParticipantToken"ParticipantToken.of_jsoninlettype_=field_mapjson__"Type"ConnectionTypeList.of_jsoninmake?connectParticipant~participantToken?type_()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Creates the participant's connection. For security recommendations, see Amazon Connect Chat security best practices. For WebRTC security recommendations, see Amazon Connect WebRTC security best practices. ParticipantToken is used for invoking this API instead of ConnectionToken. The participant token is valid for the lifetime of the participant \226\128\147 until they are part of a contact. For WebRTC participants, if they leave or are disconnected for 60 seconds, a new participant needs to be created using the CreateParticipant API. For WEBSOCKET Type: The response URL for has a connect expiry timeout of 100s. Clients must manually connect to the returned websocket URL and subscribe to the desired topic. For chat, you need to publish the following on the established websocket connection: \\{\"topic\":\"aws/subscribe\",\"content\":\\{\"topics\":\\[\"aws/chat\"\\]\\}\\} Upon websocket URL expiry, as specified in the response ConnectionExpiry parameter, clients need to call this API again to obtain a new websocket URL and perform the same steps as before. The expiry time for the connection token is different than the ChatDurationInMinutes. Expiry time for the connection token is 1 day. For WEBRTC_CONNECTION Type: The response includes connection data required for the client application to join the call using the Amazon Chime SDK client libraries. The WebRTCConnection response contains Meeting and Attendee information needed to establish the media connection. The attendee join token in WebRTCConnection response is valid for the lifetime of the participant in the call. If a participant leaves or is disconnected for 60 seconds, their participant credentials will no longer be valid, and a new participant will need to be created to rejoin the call. Message streaming support: This API can also be used together with the StartContactStreaming API to create a participant connection for chat contacts that are not using a websocket. For more information about message streaming, Enable real-time chat message streaming in the Amazon Connect Administrator Guide. Multi-user web, in-app, video calling support: For WebRTC calls, this API is used in conjunction with the CreateParticipant API to enable multi-party calling. The StartWebRTCContact API creates the initial contact and routes it to an agent, while CreateParticipant adds additional participants to the ongoing call. For more information about multi-party WebRTC calls, see Enable multi-user web, in-app, and video calling in the Amazon Connect Administrator Guide. Feature specifications: For information about feature specifications, such as the allowed number of open websocket connections per participant or maximum number of WebRTC participants, see Feature specifications in the Amazon Connect Administrator Guide. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleCompleteAttachmentUploadResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`ConflictExceptionofConflictException.t|`InternalServerExceptionofInternalServerException.t|`ServiceQuotaExceededExceptionofServiceQuotaExceededException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"ConflictException"->`ConflictException(ConflictException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"ConflictException"->`ConflictException(ConflictException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ServiceQuotaExceededException"->`ServiceQuotaExceededException(ServiceQuotaExceededException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`ConflictExceptione->`Assoc[("error",(`String"ConflictException"));("details",(ConflictException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ServiceQuotaExceededExceptione->`Assoc[("error",(`String"ServiceQuotaExceededException"));("details",(ServiceQuotaExceededException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Allows you to confirm that the attachment has been uploaded using the pre-signed URL provided in StartAttachmentUpload API. A conflict exception is thrown when an attachment with that identifier is already being uploaded. For security recommendations, see Amazon Connect Chat security best practices. ConnectionToken is used for invoking this API instead of ParticipantToken. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleCompleteAttachmentUploadRequest=structtypenonrect={attachmentIds:AttachmentIdList.t[@ocaml.doc"A list of unique identifiers for the attachments."];clientToken:NonEmptyClientToken.t[@ocaml.doc"A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs."];connectionToken:ParticipantToken.t[@ocaml.doc"The authentication token associated with the participant's connection."]}letcontext_="CompleteAttachmentUploadRequest"letmake~attachmentIds=fun~clientToken->fun~connectionToken->fun()->{attachmentIds;clientToken;connectionToken}letto_valuex=structure_to_value[("AttachmentIds",(Some(AttachmentIdList.to_valuex.attachmentIds)));("ClientToken",(Some(NonEmptyClientToken.to_valuex.clientToken)));("X-Amz-Bearer",(Some(ParticipantToken.to_valuex.connectionToken)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnectionToken=ParticipantToken.of_xml(Xml.child_exn~context:context_xml_arg0"X-Amz-Bearer")inletclientToken=NonEmptyClientToken.of_xml(Xml.child_exn~context:context_xml_arg0"ClientToken")inletattachmentIds=AttachmentIdList.of_xml(Xml.child_exn~context:context_xml_arg0"AttachmentIds")inmake~connectionToken~clientToken~attachmentIds()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnectionToken=field_map_exnjson__"ConnectionToken"ParticipantToken.of_jsoninletclientToken=field_map_exnjson__"ClientToken"NonEmptyClientToken.of_jsoninletattachmentIds=field_map_exnjson__"AttachmentIds"AttachmentIdList.of_jsoninmake~connectionToken~clientToken~attachmentIds()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Allows you to confirm that the attachment has been uploaded using the pre-signed URL provided in StartAttachmentUpload API. A conflict exception is thrown when an attachment with that identifier is already being uploaded. For security recommendations, see Amazon Connect Chat security best practices. ConnectionToken is used for invoking this API instead of ParticipantToken. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleCancelParticipantAuthenticationResponse=structtypenonrect=unittypenonrecerror=[`AccessDeniedExceptionofAccessDeniedException.t|`InternalServerExceptionofInternalServerException.t|`ThrottlingExceptionofThrottlingException.t|`ValidationExceptionofValidationException.t|`Unknown_operation_errorof(string*stringoption)]letmake()=()leterror_of_jsonnamejson=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_jsonjson)|"InternalServerException"->`InternalServerException(InternalServerException.of_jsonjson)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_jsonjson)|"ValidationException"->`ValidationException(ValidationException.of_jsonjson)|name->`Unknown_operation_error(name,(Some(Yojson.Safe.to_stringjson)))leterror_of_xmlnamexml=matchnamewith|"AccessDeniedException"->`AccessDeniedException(AccessDeniedException.of_xmlxml)|"InternalServerException"->`InternalServerException(InternalServerException.of_xmlxml)|"ThrottlingException"->`ThrottlingException(ThrottlingException.of_xmlxml)|"ValidationException"->`ValidationException(ValidationException.of_xmlxml)|name->`Unknown_operation_error(name,(Some(Awso.Xml.to_stringxml)))leterror_to_json:error->Yojson.Safe.t=function|`AccessDeniedExceptione->`Assoc[("error",(`String"AccessDeniedException"));("details",(AccessDeniedException.to_jsone))]|`InternalServerExceptione->`Assoc[("error",(`String"InternalServerException"));("details",(InternalServerException.to_jsone))]|`ThrottlingExceptione->`Assoc[("error",(`String"ThrottlingException"));("details",(ThrottlingException.to_jsone))]|`ValidationExceptione->`Assoc[("error",(`String"ValidationException"));("details",(ValidationException.to_jsone))]|`Unknown_operation_error(code,msg)->`Assoc(("error",(`Stringcode))::((matchmsgwith|None->[]|Somem->[("message",(`Stringm))])))letof_header_and_body=((fun(xs,pipe)->make())[@warning"-27"])letto_value_=`Structure[]letto_queryv=to_queryto_valuevletof_xml_=make()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_json_=make()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Cancels the authentication session. The opted out branch of the Authenticate Customer flow block will be taken. The current supported channel is chat. This API is not supported for Apple Messages for Business, WhatsApp, or SMS chats. ConnectionToken is used for invoking this API instead of ParticipantToken. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]moduleCancelParticipantAuthenticationRequest=structtypenonrect={sessionId:SessionId.t[@ocaml.doc"The sessionId provided in the authenticationInitiated event."];connectionToken:ParticipantToken.t[@ocaml.doc"The authentication token associated with the participant's connection."]}letcontext_="CancelParticipantAuthenticationRequest"letmake~sessionId=fun~connectionToken->fun()->{sessionId;connectionToken}letto_valuex=structure_to_value[("SessionId",(Some(SessionId.to_valuex.sessionId)));("X-Amz-Bearer",(Some(ParticipantToken.to_valuex.connectionToken)))]letto_queryv=to_queryto_valuevletof_xmlxml_arg0=letconnectionToken=ParticipantToken.of_xml(Xml.child_exn~context:context_xml_arg0"X-Amz-Bearer")inletsessionId=SessionId.of_xml(Xml.child_exn~context:context_xml_arg0"SessionId")inmake~connectionToken~sessionId()letof_strings=of_xml(Awso.Xml.parse_responses)[@@warning"-32"]letof_jsonjson__=letconnectionToken=field_map_exnjson__"ConnectionToken"ParticipantToken.of_jsoninletsessionId=field_map_exnjson__"SessionId"SessionId.of_jsoninmake~connectionToken~sessionId()letto_jsonv=composed_to_jsonto_valuevend[@@ocaml.doc"Cancels the authentication session. The opted out branch of the Authenticate Customer flow block will be taken. The current supported channel is chat. This API is not supported for Apple Messages for Business, WhatsApp, or SMS chats. ConnectionToken is used for invoking this API instead of ParticipantToken. The Amazon Connect Participant Service APIs do not use Signature Version 4 authentication."]