[{"data":1,"prerenderedAt":11713},["ShallowReactive",2],{"docs-navigation":3,"content-query-xI5DB340GE":342},[4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58,61,64,67,70,73,76,79,82,85,88,91,94,97,100,103,106,109,112,115,118,121,124,127,130,133,136,139,142,145,148,151,154,157,160,163,166,169,172,175,178,181,184,187,190,193,196,199,202,205,208,211,214,217,220,223,226,229,232,235,238,241,244,247,250,253,256,259,262,265,268,271,274,277,280,283,285,288,291,294,297,300,303,306,309,312,315,318,321,324,327,330,333,336,339],{"_path":5,"title":6},"/docs/account/account-management","Account management",{"_path":8,"title":9},"/docs/account/mfa","Multi-factor authentication (MFA)",{"_path":11,"title":12},"/docs/account/team","Teams and sub-accounts",{"_path":14,"title":15},"/docs/account/billing-and-subscriptions","Billing & subscriptions",{"_path":17,"title":18},"/docs/account/access-tokens","Webhook Relay access tokens: permissions and subscription scopes",{"_path":20,"title":21},"/docs/clawhub","Webhook Relay on ClawHub",{"_path":23,"title":24},"/docs/email","Receive emails as webhooks",{"_path":26,"title":27},"/docs/email/payload","Email webhook payload",{"_path":29,"title":30},"/docs/email/filtering-and-policy","Sender filtering & policy",{"_path":32,"title":33},"/docs/email/cli","Create & poll email addresses from the CLI",{"_path":35,"title":36},"/docs","Getting Started",{"_path":38,"title":39},"/docs/installation/cli","CLI",{"_path":41,"title":42},"/docs/installation/docker","Docker container",{"_path":44,"title":45},"/docs/installation/docker-compose","Docker Compose",{"_path":47,"title":48},"/docs/installation/kubernetes","Kubernetes",{"_path":50,"title":51},"/docs/installation/autostart-windows","Autostart (Windows)",{"_path":53,"title":54},"/docs/installation/autostart-linux","Autostart (Linux)",{"_path":56,"title":57},"/docs/installation/autostart-macos","Autostart (MacOS)",{"_path":59,"title":60},"/docs/installation/behind-proxy","HTTP proxy configuration",{"_path":62,"title":63},"/docs/mcp","MCP Server",{"_path":65,"title":66},"/docs/outbound","Outbound Gateway: send webhooks to your customers",{"_path":68,"title":69},"/docs/outbound/setup","Set up the Outbound Gateway",{"_path":71,"title":72},"/docs/outbound/receiving","Receive and verify outbound webhooks",{"_path":74,"title":75},"/docs/outbound/operating","Monitor, retry and recover deliveries",{"_path":77,"title":78},"/docs/outbound/migrate","Migrate to the Outbound Gateway",{"_path":80,"title":81},"/docs/outbound/migrate/svix","Migrate from Svix",{"_path":83,"title":84},"/docs/outbound/migrate/hookdeck-outpost","Migrate from Hookdeck Outpost",{"_path":86,"title":87},"/docs/outbound/migrate/convoy","Migrate from Convoy",{"_path":89,"title":90},"/docs/outbound/migrate/hook0","Migrate from Hook0",{"_path":92,"title":93},"/docs/outbound/migrate/diy","Migrate a homegrown webhook sender",{"_path":95,"title":96},"/docs/security","Security & Tech",{"_path":98,"title":99},"/docs/service-connections","Service Connections",{"_path":101,"title":102},"/docs/service-connections/ai-providers","AI provider connections",{"_path":104,"title":105},"/docs/service-connections/aws_s3","AWS S3",{"_path":107,"title":108},"/docs/service-connections/aws_sns","AWS SNS",{"_path":110,"title":111},"/docs/service-connections/aws_sqs","AWS SQS",{"_path":113,"title":114},"/docs/service-connections/azure","Azure",{"_path":116,"title":117},"/docs/service-connections/gcp_gcs","GCP Cloud Storage",{"_path":119,"title":120},"/docs/service-connections/gcp_pubsub","GCP Pub/Sub",{"_path":122,"title":123},"/docs/service-connections/secrets","Secrets",{"_path":125,"title":126},"/docs/skills","Agent Skills",{"_path":128,"title":129},"/docs/skills-cli","skills.sh — the Agent Skills CLI",{"_path":131,"title":132},"/docs/tunnels/demoing-your-website","Demoing your website",{"_path":134,"title":135},"/docs/tunnels/regions","Regions",{"_path":137,"title":138},"/docs/tutorials/cicd/jenkins-bitbucket","Jenkins and Bitbucket",{"_path":140,"title":141},"/docs/tutorials/cicd/jenkins-github","Jenkins and GitHub",{"_path":143,"title":144},"/docs/tutorials/cicd/jenkins-plugin","Jenkins Plugin",{"_path":146,"title":147},"/docs/tutorials/cicd/jenkins-plugin-multibranch","Jenkins Multibranch Pipelines",{"_path":149,"title":150},"/docs/tutorials/cicd/kubernetes-operator","Kubernetes Operator",{"_path":152,"title":153},"/docs/tutorials/cicd/terraform-atlantis","Terraform Atlantis",{"_path":155,"title":156},"/docs/tutorials/cicd/webhook-exec","Execute scripts on webhook",{"_path":158,"title":159},"/docs/tutorials/edge/home-assistant","Home Assistant",{"_path":161,"title":162},"/docs/tutorials/edge/javascript-app","JavaScript app",{"_path":164,"title":165},"/docs/tutorials/edge/node-red","Node-RED",{"_path":167,"title":168},"/docs/tutorials/email/airtable","Email to Airtable",{"_path":170,"title":171},"/docs/tutorials/email/api","Email to API",{"_path":173,"title":174},"/docs/tutorials/email/database","Email to Database",{"_path":176,"title":177},"/docs/tutorials/email/discord","Email to Discord",{"_path":179,"title":180},"/docs/tutorials/email/google-sheets","Email to Google Sheets",{"_path":182,"title":183},"/docs/tutorials/email/microsoft-teams","Email to Microsoft Teams",{"_path":185,"title":186},"/docs/tutorials/email/notion","Email to Notion",{"_path":188,"title":189},"/docs/tutorials/email/slack","Email to Slack",{"_path":191,"title":192},"/docs/tutorials","Tutorials",{"_path":194,"title":195},"/docs/tutorials/n8n/email-trigger","n8n Email Trigger (Inbound Email)",{"_path":197,"title":198},"/docs/tutorials/n8n/webhook-trigger","n8n Webhook Trigger (No Public IP)",{"_path":200,"title":201},"/docs/tutorials/n8n/whatsapp-cloud-api-webhook","n8n WhatsApp Cloud API Webhook Setup",{"_path":203,"title":204},"/docs/tutorials/outbound/send-webhooks-nodejs","Send webhooks to your customers from a Node.js / TypeScript app",{"_path":206,"title":207},"/docs/tutorials/outbound/send-webhooks-go","Send webhooks to your customers from a Go service",{"_path":209,"title":210},"/docs/tutorials/outbound/nextjs-saas-webhooks","Add webhooks to a Next.js SaaS app",{"_path":212,"title":213},"/docs/tutorials/transform/docker-to-slack","DockerHub webhook to Slack notification",{"_path":215,"title":216},"/docs/tutorials/transform/enrich-webhooks","Enrich webhooks from APIs",{"_path":218,"title":219},"/docs/tutorials/transform/stripe-to-plain","Sync Stripe subscriptions to Plain.com tenants",{"_path":221,"title":222},"/docs/tutorials/warehouse/bigquery","GCP BigQuery",{"_path":224,"title":225},"/docs/webhooks/alerts","Alerts",{"_path":227,"title":228},"/docs/webhooks/auth/username-password","Username and password",{"_path":230,"title":231},"/docs/webhooks/auth/hmac","HMAC",{"_path":233,"title":234},"/docs/webhooks/auth/jwt","JWT authentication",{"_path":236,"title":237},"/docs/webhooks/auth/http-method","Auth using request method",{"_path":239,"title":240},"/docs/webhooks/cors","CORS for webhooks",{"_path":242,"title":243},"/docs/webhooks/cron/using-cron-webhooks","Schedule recurring webhooks",{"_path":245,"title":246},"/docs/webhooks/custom-domains","Custom webhook domains",{"_path":248,"title":249},"/docs/webhooks/custom-subdomains","Custom webhook subdomains",{"_path":251,"title":252},"/docs/webhooks/custom-webhook-response","Custom response to webhooks",{"_path":254,"title":255},"/docs/webhooks/durable-webhooks","Durable webhooks: reliable delivery with automatic retries",{"_path":257,"title":258},"/docs/webhooks/functions/manipulating-json","JSON encoding",{"_path":260,"title":261},"/docs/webhooks/functions/make-http-request","Make HTTP request",{"_path":263,"title":264},"/docs/webhooks/functions/modify-request","Modify webhook headers, body, method and path",{"_path":266,"title":267},"/docs/webhooks/functions/multipart-form-data","Multipart form to JSON",{"_path":269,"title":270},"/docs/webhooks/functions/url-encoded-data","URL Encoded Form",{"_path":272,"title":273},"/docs/webhooks/functions/working-with-time","Working with time",{"_path":275,"title":276},"/docs/webhooks/functions/send-emails","Sending emails",{"_path":278,"title":279},"/docs/webhooks/functions/crypto-functions","Base64, encryption",{"_path":281,"title":282},"/docs/webhooks/functions/integrate-into-cicd","Integrating into CI/CD",{"_path":284,"title":222},"/docs/webhooks/functions/big-query",{"_path":286,"title":287},"/docs/webhooks/functions/accessing-metadata","Accessing metadata",{"_path":289,"title":290},"/docs/webhooks/functions/response-functions","Response (post-delivery) functions",{"_path":292,"title":293},"/docs/webhooks/functions/alerting","Alerting from functions",{"_path":295,"title":296},"/docs/webhooks/functions/helper-libraries","Helper libraries",{"_path":298,"title":299},"/docs/webhooks/functions/transform-webhook-payload","Transform a webhook payload",{"_path":301,"title":302},"/docs/webhooks/functions/filter-webhooks","Filter or drop webhooks before forwarding",{"_path":304,"title":305},"/docs/webhooks/functions/provider-helpers","Provider-aware function helpers",{"_path":307,"title":308},"/docs/webhooks/functions","Webhook transformations (functions): modify body, headers, method and path",{"_path":310,"title":311},"/docs/webhooks/internal/localhost","Receive webhooks on localhost with the relay CLI",{"_path":313,"title":314},"/docs/webhooks/large-webhooks","Large Webhooks",{"_path":316,"title":317},"/docs/webhooks/outbound-throttling","Outbound throttling: control webhook delivery speed",{"_path":319,"title":320},"/docs/webhooks/polling-webhooks","Polling webhooks with /v1/events",{"_path":322,"title":323},"/docs/webhooks/public/public-destination","Forward to public URL",{"_path":325,"title":326},"/docs/webhooks/public/multiple-destination-urls","Forward webhooks to multiple destinations",{"_path":328,"title":329},"/docs/webhooks/replay-on-agent-connect","Webhook replay on agent connect: recover missed webhooks",{"_path":331,"title":332},"/docs/webhooks/static-ip-address","Static IP Address",{"_path":334,"title":335},"/docs/webhooks/tls-ssl-errors","Fix TLS/SSL handshake errors: unsupported protocol, wrong version number, handshake failure",{"_path":337,"title":338},"/docs/webhooks/websocket-server","Connecting to websocket server",{"_path":340,"title":341},"/docs/webhooks/zero-retention-buckets","Zero Retention Buckets",{"_path":80,"_dir":343,"_draft":344,"_partial":344,"_locale":345,"title":81,"description":346,"intro":347,"layout":348,"tags":349,"faq":355,"body":368,"_type":11706,"_id":11707,"_source":11708,"_file":11709,"_stem":11710,"_extension":11711,"sitemap":11712},"migrate",false,"","Move outbound webhooks from Svix to the Webhook Relay Outbound Gateway: import your Svix endpoint secrets so customers keep verifying with their current key, publish to both providers, then switch one customer at a time. Concept and API map, rollback, verification and a TypeScript import script.","Svix and the Outbound Gateway both sign with the Standard Webhooks scheme, and Svix endpoint secrets import as they are. Customers who verify with a Svix or Standard Webhooks library change nothing; the migration is import secrets, dual publish, switch.","doc",[350,351,352,353,354],"Outbound webhooks","Svix alternative","Svix migration","Webhook migration","Standard Webhooks",[356,359,362,365],{"q":357,"a":358},"Do my customers need to change their code when I move from Svix to Webhook Relay?","Usually not. You import each Svix endpoint's existing whsec_ secret, so customers keep the same key. Webhook Relay sends webhook-id, webhook-timestamp and webhook-signature instead of the svix-* headers, with the same signing scheme, and Svix's verification libraries accept the unbranded webhook- headers. A receiver that verifies with a Svix or Standard Webhooks library needs no change. Only a receiver that reads the svix-* headers by name in its own code has to read the webhook-* names instead.",{"q":360,"a":361},"Can I import my Svix endpoint secrets?","Yes. Read each endpoint's secret with the Svix API (GET /api/v1/app/{app_id}/endpoint/{endpoint_id}/secret) and pass it as the secret field when you create the Webhook Relay endpoint. Webhook Relay accepts the same format Svix does: 32 to 100 standard base64 characters with an optional whsec_ prefix. The only exception is endpoints that use Svix's asymmetric whsk_ signing keys, which can't be imported and get a new whsec_ secret.",{"q":363,"a":364},"What does a Svix application become in Webhook Relay?","A consumer. Use the application's uid, which is usually your own customer ID, as the consumer ID so your publish code doesn't need a lookup table. Svix endpoints become endpoints of that consumer, and Svix event types become event types with the same names.",{"q":366,"a":367},"Is there a replacement for the Svix App Portal?","No. The Outbound Gateway doesn't have an embeddable consumer portal. Manage your customers' endpoints from your own product with the REST API or SDKs, and show them delivery history from GET /v1/outbound/endpoints/{id}/deliveries.",{"type":369,"children":370,"toc":11693},"root",[371,410,446,453,870,876,1235,1249,1255,1260,1491,1504,1681,1702,2093,2098,2315,2321,2333,3078,3134,3202,3208,3404,3434,3521,3858,3863,3869,4040,4045,4524,4530,4549,11572,11585,11591,11650,11656,11687],{"type":372,"tag":373,"props":374,"children":375},"element","p",{},[376,383,385,392,394,400,402,408],{"type":372,"tag":377,"props":378,"children":379},"strong",{},[380],{"type":381,"value":382},"text","Moving from Svix is a rename plus a secret import.",{"type":381,"value":384}," A Svix application becomes a consumer, endpoints stay endpoints (with their existing ",{"type":372,"tag":386,"props":387,"children":389},"code",{"className":388},[],[390],{"type":381,"value":391},"whsec_",{"type":381,"value":393}," secrets), event types keep their names, and ",{"type":372,"tag":386,"props":395,"children":397},{"className":396},[],[398],{"type":381,"value":399},"svix.message.create",{"type":381,"value":401}," becomes ",{"type":372,"tag":386,"props":403,"children":405},{"className":404},[],[406],{"type":381,"value":407},"relay.outbound.messages.publish",{"type":381,"value":409},". Deliveries keep the Standard Webhooks signature, and Svix's libraries verify them, so customers who verify with a library change nothing. The cutover is three moves: import secrets, dual publish, switch.",{"type":372,"tag":373,"props":411,"children":412},{},[413,415,421,423,429,431,436,438,444],{"type":381,"value":414},"Read the ",{"type":372,"tag":416,"props":417,"children":418},"a",{"href":77},[419],{"type":381,"value":420},"migration overview",{"type":381,"value":422}," first for the plan limits, secret import rules and the general cutover plan. For pricing and features side by side, see the ",{"type":372,"tag":416,"props":424,"children":426},{"href":425},"/outbound-webhooks/",[427],{"type":381,"value":428},"Outbound Gateway overview",{"type":381,"value":430},", the ",{"type":372,"tag":416,"props":432,"children":434},{"href":433},"/blog/svix-alternative/",[435],{"type":381,"value":351},{"type":381,"value":437}," post and the ",{"type":372,"tag":416,"props":439,"children":441},{"href":440},"/blog/webhooks-as-a-service-comparison/",[442],{"type":381,"value":443},"webhooks-as-a-service comparison",{"type":381,"value":445},".",{"type":372,"tag":447,"props":448,"children":450},"h2",{"id":449},"concept-map",[451],{"type":381,"value":452},"Concept map",{"type":372,"tag":454,"props":455,"children":456},"table",{},[457,481],{"type":372,"tag":458,"props":459,"children":460},"thead",{},[461],{"type":372,"tag":462,"props":463,"children":464},"tr",{},[465,471,476],{"type":372,"tag":466,"props":467,"children":468},"th",{},[469],{"type":381,"value":470},"Svix",{"type":372,"tag":466,"props":472,"children":473},{},[474],{"type":381,"value":475},"Outbound Gateway",{"type":372,"tag":466,"props":477,"children":478},{},[479],{"type":381,"value":480},"Notes",{"type":372,"tag":482,"props":483,"children":484},"tbody",{},[485,504,545,577,618,635,652,691,719,750,766,792,809,830],{"type":372,"tag":462,"props":486,"children":487},{},[488,494,499],{"type":372,"tag":489,"props":490,"children":491},"td",{},[492],{"type":381,"value":493},"Environment",{"type":372,"tag":489,"props":495,"children":496},{},[497],{"type":381,"value":498},"Webhook Relay account",{"type":372,"tag":489,"props":500,"children":501},{},[502],{"type":381,"value":503},"Migrate one Svix environment at a time.",{"type":372,"tag":462,"props":505,"children":506},{},[507,528,533],{"type":372,"tag":489,"props":508,"children":509},{},[510,512,518,520,526],{"type":381,"value":511},"Application (",{"type":372,"tag":386,"props":513,"children":515},{"className":514},[],[516],{"type":381,"value":517},"uid",{"type":381,"value":519}," or ",{"type":372,"tag":386,"props":521,"children":523},{"className":522},[],[524],{"type":381,"value":525},"app_…",{"type":381,"value":527}," ID)",{"type":372,"tag":489,"props":529,"children":530},{},[531],{"type":381,"value":532},"Consumer",{"type":372,"tag":489,"props":534,"children":535},{},[536,538,543],{"type":381,"value":537},"Use the application's ",{"type":372,"tag":386,"props":539,"children":541},{"className":540},[],[542],{"type":381,"value":517},{"type":381,"value":544}," (usually your customer ID) as the consumer ID. Consumer IDs are up to 128 letters, numbers, dots, colons, underscores or hyphens.",{"type":372,"tag":462,"props":546,"children":547},{},[548,553,557],{"type":372,"tag":489,"props":549,"children":550},{},[551],{"type":381,"value":552},"Endpoint",{"type":372,"tag":489,"props":554,"children":555},{},[556],{"type":381,"value":552},{"type":372,"tag":489,"props":558,"children":559},{},[560,562,567,569,575],{"type":381,"value":561},"Public HTTPS URL. Import the Svix endpoint's ",{"type":372,"tag":386,"props":563,"children":565},{"className":564},[],[566],{"type":381,"value":391},{"type":381,"value":568}," secret with the ",{"type":372,"tag":386,"props":570,"children":572},{"className":571},[],[573],{"type":381,"value":574},"secret",{"type":381,"value":576}," field.",{"type":372,"tag":462,"props":578,"children":579},{},[580,593,613],{"type":372,"tag":489,"props":581,"children":582},{},[583,585,591],{"type":381,"value":584},"Endpoint ",{"type":372,"tag":386,"props":586,"children":588},{"className":587},[],[589],{"type":381,"value":590},"eventTypes",{"type":381,"value":592}," (empty means all)",{"type":372,"tag":489,"props":594,"children":595},{},[596,597,603,605,611],{"type":381,"value":584},{"type":372,"tag":386,"props":598,"children":600},{"className":599},[],[601],{"type":381,"value":602},"event_types",{"type":381,"value":604}," (",{"type":372,"tag":386,"props":606,"children":608},{"className":607},[],[609],{"type":381,"value":610},"[\"*\"]",{"type":381,"value":612}," means all)",{"type":372,"tag":489,"props":614,"children":615},{},[616],{"type":381,"value":617},"Up to 100 event types per endpoint.",{"type":372,"tag":462,"props":619,"children":620},{},[621,626,630],{"type":372,"tag":489,"props":622,"children":623},{},[624],{"type":381,"value":625},"Event type",{"type":372,"tag":489,"props":627,"children":628},{},[629],{"type":381,"value":625},{"type":372,"tag":489,"props":631,"children":632},{},[633],{"type":381,"value":634},"Same name, up to 128 characters.",{"type":372,"tag":462,"props":636,"children":637},{},[638,643,647],{"type":372,"tag":489,"props":639,"children":640},{},[641],{"type":381,"value":642},"Message",{"type":372,"tag":489,"props":644,"children":645},{},[646],{"type":381,"value":642},{"type":372,"tag":489,"props":648,"children":649},{},[650],{"type":381,"value":651},"Up to 256 KiB of JSON per message (Svix accepts up to 1 MiB).",{"type":372,"tag":462,"props":653,"children":654},{},[655,672,688],{"type":372,"tag":489,"props":656,"children":657},{},[658,664,666],{"type":372,"tag":386,"props":659,"children":661},{"className":660},[],[662],{"type":381,"value":663},"eventId",{"type":381,"value":665}," / ",{"type":372,"tag":386,"props":667,"children":669},{"className":668},[],[670],{"type":381,"value":671},"idempotency-key",{"type":372,"tag":489,"props":673,"children":674},{},[675,681,682],{"type":372,"tag":386,"props":676,"children":678},{"className":677},[],[679],{"type":381,"value":680},"event_id",{"type":381,"value":665},{"type":372,"tag":386,"props":683,"children":685},{"className":684},[],[686],{"type":381,"value":687},"Idempotency-Key",{"type":372,"tag":489,"props":689,"children":690},{},[],{"type":372,"tag":462,"props":692,"children":693},{},[694,704,714],{"type":372,"tag":489,"props":695,"children":696},{},[697,698],{"type":381,"value":584},{"type":372,"tag":386,"props":699,"children":701},{"className":700},[],[702],{"type":381,"value":703},"throttleRate",{"type":372,"tag":489,"props":705,"children":706},{},[707,708],{"type":381,"value":584},{"type":372,"tag":386,"props":709,"children":711},{"className":710},[],[712],{"type":381,"value":713},"rate",{"type":372,"tag":489,"props":715,"children":716},{},[717],{"type":381,"value":718},"Deliveries per second, 50 by default, up to 1,000.",{"type":372,"tag":462,"props":720,"children":721},{},[722,727,737],{"type":372,"tag":489,"props":723,"children":724},{},[725],{"type":381,"value":726},"Endpoint headers",{"type":372,"tag":489,"props":728,"children":729},{},[730,731],{"type":381,"value":584},{"type":372,"tag":386,"props":732,"children":734},{"className":733},[],[735],{"type":381,"value":736},"headers",{"type":372,"tag":489,"props":738,"children":739},{},[740,742,748],{"type":381,"value":741},"Up to 32. ",{"type":372,"tag":386,"props":743,"children":745},{"className":744},[],[746],{"type":381,"value":747},"webhook-*",{"type":381,"value":749}," headers are reserved. Svix returns sensitive header values redacted, so re-enter those by hand.",{"type":372,"tag":462,"props":751,"children":752},{},[753,758,763],{"type":372,"tag":489,"props":754,"children":755},{},[756],{"type":381,"value":757},"Disabled endpoint",{"type":372,"tag":489,"props":759,"children":760},{},[761],{"type":381,"value":762},"Paused endpoint",{"type":372,"tag":489,"props":764,"children":765},{},[],{"type":372,"tag":462,"props":767,"children":768},{},[769,774,779],{"type":372,"tag":489,"props":770,"children":771},{},[772],{"type":381,"value":773},"Channels",{"type":372,"tag":489,"props":775,"children":776},{},[777],{"type":381,"value":778},"No equivalent",{"type":372,"tag":489,"props":780,"children":781},{},[782,784,790],{"type":381,"value":783},"Use event types, or a ",{"type":372,"tag":416,"props":785,"children":787},{"href":786},"/docs/outbound/operating#transform-or-drop-payloads-with-functions",[788],{"type":381,"value":789},"Function",{"type":381,"value":791}," on the endpoint to drop messages.",{"type":372,"tag":462,"props":793,"children":794},{},[795,800,804],{"type":372,"tag":489,"props":796,"children":797},{},[798],{"type":381,"value":799},"App Portal",{"type":372,"tag":489,"props":801,"children":802},{},[803],{"type":381,"value":778},{"type":372,"tag":489,"props":805,"children":806},{},[807],{"type":381,"value":808},"Manage endpoints from your own product with the API.",{"type":372,"tag":462,"props":810,"children":811},{},[812,817,825],{"type":372,"tag":489,"props":813,"children":814},{},[815],{"type":381,"value":816},"Transformations",{"type":372,"tag":489,"props":818,"children":819},{},[820],{"type":372,"tag":416,"props":821,"children":822},{"href":786},[823],{"type":381,"value":824},"Functions",{"type":372,"tag":489,"props":826,"children":827},{},[828],{"type":381,"value":829},"Outbound Functions can reshape the JSON body or drop the message.",{"type":372,"tag":462,"props":831,"children":832},{},[833,853,858],{"type":372,"tag":489,"props":834,"children":835},{},[836,838,844,845,851],{"type":381,"value":837},"Asymmetric signing (",{"type":372,"tag":386,"props":839,"children":841},{"className":840},[],[842],{"type":381,"value":843},"whsk_",{"type":381,"value":665},{"type":372,"tag":386,"props":846,"children":848},{"className":847},[],[849],{"type":381,"value":850},"whpk_",{"type":381,"value":852},")",{"type":372,"tag":489,"props":854,"children":855},{},[856],{"type":381,"value":857},"Not supported",{"type":372,"tag":489,"props":859,"children":860},{},[861,863,868],{"type":381,"value":862},"Those endpoints get a new HMAC ",{"type":372,"tag":386,"props":864,"children":866},{"className":865},[],[867],{"type":381,"value":391},{"type":381,"value":869}," secret.",{"type":372,"tag":447,"props":871,"children":873},{"id":872},"api-map",[874],{"type":381,"value":875},"API map",{"type":372,"tag":454,"props":877,"children":878},{},[879,898],{"type":372,"tag":458,"props":880,"children":881},{},[882],{"type":372,"tag":462,"props":883,"children":884},{},[885,890,894],{"type":372,"tag":466,"props":886,"children":887},{},[888],{"type":381,"value":889},"Task",{"type":372,"tag":466,"props":891,"children":892},{},[893],{"type":381,"value":470},{"type":372,"tag":466,"props":895,"children":896},{},[897],{"type":381,"value":475},{"type":372,"tag":482,"props":899,"children":900},{},[901,927,953,981,1014,1040,1066,1092,1118,1144,1170,1211],{"type":372,"tag":462,"props":902,"children":903},{},[904,909,918],{"type":372,"tag":489,"props":905,"children":906},{},[907],{"type":381,"value":908},"Create a customer",{"type":372,"tag":489,"props":910,"children":911},{},[912],{"type":372,"tag":386,"props":913,"children":915},{"className":914},[],[916],{"type":381,"value":917},"POST /api/v1/app",{"type":372,"tag":489,"props":919,"children":920},{},[921],{"type":372,"tag":386,"props":922,"children":924},{"className":923},[],[925],{"type":381,"value":926},"PUT /v1/outbound/consumers/{id}",{"type":372,"tag":462,"props":928,"children":929},{},[930,935,944],{"type":372,"tag":489,"props":931,"children":932},{},[933],{"type":381,"value":934},"Add an endpoint",{"type":372,"tag":489,"props":936,"children":937},{},[938],{"type":372,"tag":386,"props":939,"children":941},{"className":940},[],[942],{"type":381,"value":943},"POST /api/v1/app/{app_id}/endpoint",{"type":372,"tag":489,"props":945,"children":946},{},[947],{"type":372,"tag":386,"props":948,"children":950},{"className":949},[],[951],{"type":381,"value":952},"POST /v1/outbound/consumers/{consumer}/endpoints",{"type":372,"tag":462,"props":954,"children":955},{},[956,961,971],{"type":372,"tag":489,"props":957,"children":958},{},[959],{"type":381,"value":960},"Import an existing secret",{"type":372,"tag":489,"props":962,"children":963},{},[964,969],{"type":372,"tag":386,"props":965,"children":967},{"className":966},[],[968],{"type":381,"value":574},{"type":381,"value":970}," on endpoint create",{"type":372,"tag":489,"props":972,"children":973},{},[974,979],{"type":372,"tag":386,"props":975,"children":977},{"className":976},[],[978],{"type":381,"value":574},{"type":381,"value":980}," on endpoint create (same format)",{"type":372,"tag":462,"props":982,"children":983},{},[984,989,998],{"type":372,"tag":489,"props":985,"children":986},{},[987],{"type":381,"value":988},"Add an event type",{"type":372,"tag":489,"props":990,"children":991},{},[992],{"type":372,"tag":386,"props":993,"children":995},{"className":994},[],[996],{"type":381,"value":997},"POST /api/v1/event-type",{"type":372,"tag":489,"props":999,"children":1000},{},[1001,1007,1008],{"type":372,"tag":386,"props":1002,"children":1004},{"className":1003},[],[1005],{"type":381,"value":1006},"POST /v1/outbound/event-types",{"type":381,"value":519},{"type":372,"tag":386,"props":1009,"children":1011},{"className":1010},[],[1012],{"type":381,"value":1013},"PUT /v1/outbound/event-types/{name}",{"type":372,"tag":462,"props":1015,"children":1016},{},[1017,1022,1031],{"type":372,"tag":489,"props":1018,"children":1019},{},[1020],{"type":381,"value":1021},"Publish",{"type":372,"tag":489,"props":1023,"children":1024},{},[1025],{"type":372,"tag":386,"props":1026,"children":1028},{"className":1027},[],[1029],{"type":381,"value":1030},"POST /api/v1/app/{app_id}/msg",{"type":372,"tag":489,"props":1032,"children":1033},{},[1034],{"type":372,"tag":386,"props":1035,"children":1037},{"className":1036},[],[1038],{"type":381,"value":1039},"POST /v1/outbound/messages",{"type":372,"tag":462,"props":1041,"children":1042},{},[1043,1048,1057],{"type":372,"tag":489,"props":1044,"children":1045},{},[1046],{"type":381,"value":1047},"Rotate a secret",{"type":372,"tag":489,"props":1049,"children":1050},{},[1051],{"type":372,"tag":386,"props":1052,"children":1054},{"className":1053},[],[1055],{"type":381,"value":1056},"POST /api/v1/app/{app_id}/endpoint/{endpoint_id}/secret/rotate",{"type":372,"tag":489,"props":1058,"children":1059},{},[1060],{"type":372,"tag":386,"props":1061,"children":1063},{"className":1062},[],[1064],{"type":381,"value":1065},"POST /v1/outbound/endpoints/{id}/secret/rotate",{"type":372,"tag":462,"props":1067,"children":1068},{},[1069,1074,1083],{"type":372,"tag":489,"props":1070,"children":1071},{},[1072],{"type":381,"value":1073},"Read a secret",{"type":372,"tag":489,"props":1075,"children":1076},{},[1077],{"type":372,"tag":386,"props":1078,"children":1080},{"className":1079},[],[1081],{"type":381,"value":1082},"GET /api/v1/app/{app_id}/endpoint/{endpoint_id}/secret",{"type":372,"tag":489,"props":1084,"children":1085},{},[1086],{"type":372,"tag":386,"props":1087,"children":1089},{"className":1088},[],[1090],{"type":381,"value":1091},"POST /v1/outbound/endpoints/{id}/secret/reveal",{"type":372,"tag":462,"props":1093,"children":1094},{},[1095,1100,1109],{"type":372,"tag":489,"props":1096,"children":1097},{},[1098],{"type":381,"value":1099},"Resend one message",{"type":372,"tag":489,"props":1101,"children":1102},{},[1103],{"type":372,"tag":386,"props":1104,"children":1106},{"className":1105},[],[1107],{"type":381,"value":1108},"POST /api/v1/app/{app_id}/msg/{msg_id}/endpoint/{endpoint_id}/resend",{"type":372,"tag":489,"props":1110,"children":1111},{},[1112],{"type":372,"tag":386,"props":1113,"children":1115},{"className":1114},[],[1116],{"type":381,"value":1117},"POST /v1/outbound/endpoints/{id}/retry",{"type":372,"tag":462,"props":1119,"children":1120},{},[1121,1126,1135],{"type":372,"tag":489,"props":1122,"children":1123},{},[1124],{"type":381,"value":1125},"Recover failed",{"type":372,"tag":489,"props":1127,"children":1128},{},[1129],{"type":372,"tag":386,"props":1130,"children":1132},{"className":1131},[],[1133],{"type":381,"value":1134},"POST /api/v1/app/{app_id}/endpoint/{endpoint_id}/recover",{"type":372,"tag":489,"props":1136,"children":1137},{},[1138],{"type":372,"tag":386,"props":1139,"children":1141},{"className":1140},[],[1142],{"type":381,"value":1143},"POST /v1/outbound/endpoints/{id}/recover",{"type":372,"tag":462,"props":1145,"children":1146},{},[1147,1152,1161],{"type":372,"tag":489,"props":1148,"children":1149},{},[1150],{"type":381,"value":1151},"Replay missing",{"type":372,"tag":489,"props":1153,"children":1154},{},[1155],{"type":372,"tag":386,"props":1156,"children":1158},{"className":1157},[],[1159],{"type":381,"value":1160},"POST /api/v1/app/{app_id}/endpoint/{endpoint_id}/replay-missing",{"type":372,"tag":489,"props":1162,"children":1163},{},[1164],{"type":372,"tag":386,"props":1165,"children":1167},{"className":1166},[],[1168],{"type":381,"value":1169},"POST /v1/outbound/endpoints/{id}/replay-missing",{"type":372,"tag":462,"props":1171,"children":1172},{},[1173,1178,1195],{"type":372,"tag":489,"props":1174,"children":1175},{},[1176],{"type":381,"value":1177},"Disable / enable",{"type":372,"tag":489,"props":1179,"children":1180},{},[1181,1187,1189],{"type":372,"tag":386,"props":1182,"children":1184},{"className":1183},[],[1185],{"type":381,"value":1186},"PATCH",{"type":381,"value":1188}," the endpoint with ",{"type":372,"tag":386,"props":1190,"children":1192},{"className":1191},[],[1193],{"type":381,"value":1194},"disabled",{"type":372,"tag":489,"props":1196,"children":1197},{},[1198,1204,1205],{"type":372,"tag":386,"props":1199,"children":1201},{"className":1200},[],[1202],{"type":381,"value":1203},"POST /v1/outbound/endpoints/{id}/pause",{"type":381,"value":665},{"type":372,"tag":386,"props":1206,"children":1208},{"className":1207},[],[1209],{"type":381,"value":1210},".../resume",{"type":372,"tag":462,"props":1212,"children":1213},{},[1214,1219,1224],{"type":372,"tag":489,"props":1215,"children":1216},{},[1217],{"type":381,"value":1218},"Failing endpoints",{"type":372,"tag":489,"props":1220,"children":1221},{},[1222],{"type":381,"value":1223},"Per application",{"type":372,"tag":489,"props":1225,"children":1226},{},[1227,1233],{"type":372,"tag":386,"props":1228,"children":1230},{"className":1229},[],[1231],{"type":381,"value":1232},"GET /v1/outbound/endpoints?state=failing",{"type":381,"value":1234}," across all consumers",{"type":372,"tag":373,"props":1236,"children":1237},{},[1238,1240,1248],{"type":381,"value":1239},"Svix routes are from the ",{"type":372,"tag":416,"props":1241,"children":1245},{"href":1242,"rel":1243},"https://api.svix.com/docs",[1244],"nofollow",[1246],{"type":381,"value":1247},"Svix API reference",{"type":381,"value":445},{"type":372,"tag":1250,"props":1251,"children":1253},"h3",{"id":1252},"publish",[1254],{"type":381,"value":1021},{"type":372,"tag":373,"props":1256,"children":1257},{},[1258],{"type":381,"value":1259},"Before, with Svix:",{"type":372,"tag":1261,"props":1262,"children":1263},"code-block",{},[1264],{"type":372,"tag":1265,"props":1266,"children":1270},"pre",{"className":1267,"code":1268,"language":1269,"meta":345,"style":345},"language-ts shiki shiki-themes github-dark","import { Svix } from \"svix\";\n\nconst svix = new Svix(process.env.SVIX_TOKEN!);\n\nawait svix.message.create(\n  \"customer_42\",\n  { eventType: \"invoice.paid\", eventId: \"evt_9001\", payload: { invoice_id: \"inv_123\", amount: 4900 } },\n  { idempotencyKey: \"invoice-paid:inv_123\" },\n);\n","ts",[1271],{"type":372,"tag":386,"props":1272,"children":1273},{"__ignoreMap":345},[1274,1308,1318,1369,1377,1401,1415,1464,1483],{"type":372,"tag":1275,"props":1276,"children":1279},"span",{"class":1277,"line":1278},"line",1,[1280,1286,1292,1297,1303],{"type":372,"tag":1275,"props":1281,"children":1283},{"style":1282},"--shiki-default:#F97583",[1284],{"type":381,"value":1285},"import",{"type":372,"tag":1275,"props":1287,"children":1289},{"style":1288},"--shiki-default:#E1E4E8",[1290],{"type":381,"value":1291}," { Svix } ",{"type":372,"tag":1275,"props":1293,"children":1294},{"style":1282},[1295],{"type":381,"value":1296},"from",{"type":372,"tag":1275,"props":1298,"children":1300},{"style":1299},"--shiki-default:#9ECBFF",[1301],{"type":381,"value":1302}," \"svix\"",{"type":372,"tag":1275,"props":1304,"children":1305},{"style":1288},[1306],{"type":381,"value":1307},";\n",{"type":372,"tag":1275,"props":1309,"children":1311},{"class":1277,"line":1310},2,[1312],{"type":372,"tag":1275,"props":1313,"children":1315},{"emptyLinePlaceholder":1314},true,[1316],{"type":381,"value":1317},"\n",{"type":372,"tag":1275,"props":1319,"children":1321},{"class":1277,"line":1320},3,[1322,1327,1333,1338,1343,1349,1354,1359,1364],{"type":372,"tag":1275,"props":1323,"children":1324},{"style":1282},[1325],{"type":381,"value":1326},"const",{"type":372,"tag":1275,"props":1328,"children":1330},{"style":1329},"--shiki-default:#79B8FF",[1331],{"type":381,"value":1332}," svix",{"type":372,"tag":1275,"props":1334,"children":1335},{"style":1282},[1336],{"type":381,"value":1337}," =",{"type":372,"tag":1275,"props":1339,"children":1340},{"style":1282},[1341],{"type":381,"value":1342}," new",{"type":372,"tag":1275,"props":1344,"children":1346},{"style":1345},"--shiki-default:#B392F0",[1347],{"type":381,"value":1348}," Svix",{"type":372,"tag":1275,"props":1350,"children":1351},{"style":1288},[1352],{"type":381,"value":1353},"(process.env.",{"type":372,"tag":1275,"props":1355,"children":1356},{"style":1329},[1357],{"type":381,"value":1358},"SVIX_TOKEN",{"type":372,"tag":1275,"props":1360,"children":1361},{"style":1282},[1362],{"type":381,"value":1363},"!",{"type":372,"tag":1275,"props":1365,"children":1366},{"style":1288},[1367],{"type":381,"value":1368},");\n",{"type":372,"tag":1275,"props":1370,"children":1372},{"class":1277,"line":1371},4,[1373],{"type":372,"tag":1275,"props":1374,"children":1375},{"emptyLinePlaceholder":1314},[1376],{"type":381,"value":1317},{"type":372,"tag":1275,"props":1378,"children":1380},{"class":1277,"line":1379},5,[1381,1386,1391,1396],{"type":372,"tag":1275,"props":1382,"children":1383},{"style":1282},[1384],{"type":381,"value":1385},"await",{"type":372,"tag":1275,"props":1387,"children":1388},{"style":1288},[1389],{"type":381,"value":1390}," svix.message.",{"type":372,"tag":1275,"props":1392,"children":1393},{"style":1345},[1394],{"type":381,"value":1395},"create",{"type":372,"tag":1275,"props":1397,"children":1398},{"style":1288},[1399],{"type":381,"value":1400},"(\n",{"type":372,"tag":1275,"props":1402,"children":1404},{"class":1277,"line":1403},6,[1405,1410],{"type":372,"tag":1275,"props":1406,"children":1407},{"style":1299},[1408],{"type":381,"value":1409},"  \"customer_42\"",{"type":372,"tag":1275,"props":1411,"children":1412},{"style":1288},[1413],{"type":381,"value":1414},",\n",{"type":372,"tag":1275,"props":1416,"children":1418},{"class":1277,"line":1417},7,[1419,1424,1429,1434,1439,1444,1449,1454,1459],{"type":372,"tag":1275,"props":1420,"children":1421},{"style":1288},[1422],{"type":381,"value":1423},"  { eventType: ",{"type":372,"tag":1275,"props":1425,"children":1426},{"style":1299},[1427],{"type":381,"value":1428},"\"invoice.paid\"",{"type":372,"tag":1275,"props":1430,"children":1431},{"style":1288},[1432],{"type":381,"value":1433},", eventId: ",{"type":372,"tag":1275,"props":1435,"children":1436},{"style":1299},[1437],{"type":381,"value":1438},"\"evt_9001\"",{"type":372,"tag":1275,"props":1440,"children":1441},{"style":1288},[1442],{"type":381,"value":1443},", payload: { invoice_id: ",{"type":372,"tag":1275,"props":1445,"children":1446},{"style":1299},[1447],{"type":381,"value":1448},"\"inv_123\"",{"type":372,"tag":1275,"props":1450,"children":1451},{"style":1288},[1452],{"type":381,"value":1453},", amount: ",{"type":372,"tag":1275,"props":1455,"children":1456},{"style":1329},[1457],{"type":381,"value":1458},"4900",{"type":372,"tag":1275,"props":1460,"children":1461},{"style":1288},[1462],{"type":381,"value":1463}," } },\n",{"type":372,"tag":1275,"props":1465,"children":1467},{"class":1277,"line":1466},8,[1468,1473,1478],{"type":372,"tag":1275,"props":1469,"children":1470},{"style":1288},[1471],{"type":381,"value":1472},"  { idempotencyKey: ",{"type":372,"tag":1275,"props":1474,"children":1475},{"style":1299},[1476],{"type":381,"value":1477},"\"invoice-paid:inv_123\"",{"type":372,"tag":1275,"props":1479,"children":1480},{"style":1288},[1481],{"type":381,"value":1482}," },\n",{"type":372,"tag":1275,"props":1484,"children":1486},{"class":1277,"line":1485},9,[1487],{"type":372,"tag":1275,"props":1488,"children":1489},{"style":1288},[1490],{"type":381,"value":1368},{"type":372,"tag":373,"props":1492,"children":1493},{},[1494,1496,1502],{"type":381,"value":1495},"After, with ",{"type":372,"tag":386,"props":1497,"children":1499},{"className":1498},[],[1500],{"type":381,"value":1501},"@webhookrelay/sdk",{"type":381,"value":1503},":",{"type":372,"tag":1261,"props":1505,"children":1506},{},[1507],{"type":372,"tag":1265,"props":1508,"children":1510},{"className":1267,"code":1509,"language":1269,"meta":345,"style":345},"import { WebhookRelay } from \"@webhookrelay/sdk\";\n\nconst relay = new WebhookRelay(); // reads RELAY_KEY and RELAY_SECRET\n\nawait relay.outbound.messages.publish(\n  { consumer: \"customer_42\", eventType: \"invoice.paid\", eventId: \"evt_9001\", payload: { invoice_id: \"inv_123\", amount: 4900 } },\n  { idempotencyKey: \"invoice-paid:inv_123\" },\n);\n",[1511],{"type":372,"tag":386,"props":1512,"children":1513},{"__ignoreMap":345},[1514,1539,1546,1582,1589,1609,1659,1674],{"type":372,"tag":1275,"props":1515,"children":1516},{"class":1277,"line":1278},[1517,1521,1526,1530,1535],{"type":372,"tag":1275,"props":1518,"children":1519},{"style":1282},[1520],{"type":381,"value":1285},{"type":372,"tag":1275,"props":1522,"children":1523},{"style":1288},[1524],{"type":381,"value":1525}," { WebhookRelay } ",{"type":372,"tag":1275,"props":1527,"children":1528},{"style":1282},[1529],{"type":381,"value":1296},{"type":372,"tag":1275,"props":1531,"children":1532},{"style":1299},[1533],{"type":381,"value":1534}," \"@webhookrelay/sdk\"",{"type":372,"tag":1275,"props":1536,"children":1537},{"style":1288},[1538],{"type":381,"value":1307},{"type":372,"tag":1275,"props":1540,"children":1541},{"class":1277,"line":1310},[1542],{"type":372,"tag":1275,"props":1543,"children":1544},{"emptyLinePlaceholder":1314},[1545],{"type":381,"value":1317},{"type":372,"tag":1275,"props":1547,"children":1548},{"class":1277,"line":1320},[1549,1553,1558,1562,1566,1571,1576],{"type":372,"tag":1275,"props":1550,"children":1551},{"style":1282},[1552],{"type":381,"value":1326},{"type":372,"tag":1275,"props":1554,"children":1555},{"style":1329},[1556],{"type":381,"value":1557}," relay",{"type":372,"tag":1275,"props":1559,"children":1560},{"style":1282},[1561],{"type":381,"value":1337},{"type":372,"tag":1275,"props":1563,"children":1564},{"style":1282},[1565],{"type":381,"value":1342},{"type":372,"tag":1275,"props":1567,"children":1568},{"style":1345},[1569],{"type":381,"value":1570}," WebhookRelay",{"type":372,"tag":1275,"props":1572,"children":1573},{"style":1288},[1574],{"type":381,"value":1575},"(); ",{"type":372,"tag":1275,"props":1577,"children":1579},{"style":1578},"--shiki-default:#6A737D",[1580],{"type":381,"value":1581},"// reads RELAY_KEY and RELAY_SECRET\n",{"type":372,"tag":1275,"props":1583,"children":1584},{"class":1277,"line":1371},[1585],{"type":372,"tag":1275,"props":1586,"children":1587},{"emptyLinePlaceholder":1314},[1588],{"type":381,"value":1317},{"type":372,"tag":1275,"props":1590,"children":1591},{"class":1277,"line":1379},[1592,1596,1601,1605],{"type":372,"tag":1275,"props":1593,"children":1594},{"style":1282},[1595],{"type":381,"value":1385},{"type":372,"tag":1275,"props":1597,"children":1598},{"style":1288},[1599],{"type":381,"value":1600}," relay.outbound.messages.",{"type":372,"tag":1275,"props":1602,"children":1603},{"style":1345},[1604],{"type":381,"value":1252},{"type":372,"tag":1275,"props":1606,"children":1607},{"style":1288},[1608],{"type":381,"value":1400},{"type":372,"tag":1275,"props":1610,"children":1611},{"class":1277,"line":1403},[1612,1617,1622,1627,1631,1635,1639,1643,1647,1651,1655],{"type":372,"tag":1275,"props":1613,"children":1614},{"style":1288},[1615],{"type":381,"value":1616},"  { consumer: ",{"type":372,"tag":1275,"props":1618,"children":1619},{"style":1299},[1620],{"type":381,"value":1621},"\"customer_42\"",{"type":372,"tag":1275,"props":1623,"children":1624},{"style":1288},[1625],{"type":381,"value":1626},", eventType: ",{"type":372,"tag":1275,"props":1628,"children":1629},{"style":1299},[1630],{"type":381,"value":1428},{"type":372,"tag":1275,"props":1632,"children":1633},{"style":1288},[1634],{"type":381,"value":1433},{"type":372,"tag":1275,"props":1636,"children":1637},{"style":1299},[1638],{"type":381,"value":1438},{"type":372,"tag":1275,"props":1640,"children":1641},{"style":1288},[1642],{"type":381,"value":1443},{"type":372,"tag":1275,"props":1644,"children":1645},{"style":1299},[1646],{"type":381,"value":1448},{"type":372,"tag":1275,"props":1648,"children":1649},{"style":1288},[1650],{"type":381,"value":1453},{"type":372,"tag":1275,"props":1652,"children":1653},{"style":1329},[1654],{"type":381,"value":1458},{"type":372,"tag":1275,"props":1656,"children":1657},{"style":1288},[1658],{"type":381,"value":1463},{"type":372,"tag":1275,"props":1660,"children":1661},{"class":1277,"line":1417},[1662,1666,1670],{"type":372,"tag":1275,"props":1663,"children":1664},{"style":1288},[1665],{"type":381,"value":1472},{"type":372,"tag":1275,"props":1667,"children":1668},{"style":1299},[1669],{"type":381,"value":1477},{"type":372,"tag":1275,"props":1671,"children":1672},{"style":1288},[1673],{"type":381,"value":1482},{"type":372,"tag":1275,"props":1675,"children":1676},{"class":1277,"line":1466},[1677],{"type":372,"tag":1275,"props":1678,"children":1679},{"style":1288},[1680],{"type":381,"value":1368},{"type":372,"tag":373,"props":1682,"children":1683},{},[1684,1686,1692,1694,1700],{"type":381,"value":1685},"Go, before (",{"type":372,"tag":386,"props":1687,"children":1689},{"className":1688},[],[1690],{"type":381,"value":1691},"github.com/svix/svix-webhooks/go",{"type":381,"value":1693},") and after (",{"type":372,"tag":386,"props":1695,"children":1697},{"className":1696},[],[1698],{"type":381,"value":1699},"github.com/webhookrelay/webhookrelay-go",{"type":381,"value":1701},"):",{"type":372,"tag":1261,"props":1703,"children":1704},{},[1705],{"type":372,"tag":1265,"props":1706,"children":1710},{"className":1707,"code":1708,"language":1709,"meta":345,"style":345},"language-go shiki shiki-themes github-dark","// Before\n_, err := svixClient.Message.Create(ctx, \"customer_42\", models.MessageIn{\n    EventType: \"invoice.paid\",\n    Payload:   map[string]any{\"invoice_id\": \"inv_123\", \"amount\": 4900},\n}, nil)\n\n// After\n_, err := api.PublishOutboundMessage(&webhookrelay.OutboundMessagePublishOptions{\n    Consumer:       \"customer_42\",\n    EventType:      \"invoice.paid\",\n    EventID:        \"evt_9001\",\n    Payload:        map[string]interface{}{\"invoice_id\": \"inv_123\", \"amount\": 4900},\n    IdempotencyKey: \"invoice-paid:inv_123\",\n})\n","go",[1711],{"type":372,"tag":386,"props":1712,"children":1713},{"__ignoreMap":345},[1714,1722,1778,1794,1868,1886,1893,1901,1950,1966,1983,2000,2067,2084],{"type":372,"tag":1275,"props":1715,"children":1716},{"class":1277,"line":1278},[1717],{"type":372,"tag":1275,"props":1718,"children":1719},{"style":1578},[1720],{"type":381,"value":1721},"// Before\n",{"type":372,"tag":1275,"props":1723,"children":1724},{"class":1277,"line":1310},[1725,1730,1735,1740,1745,1750,1754,1759,1764,1768,1773],{"type":372,"tag":1275,"props":1726,"children":1727},{"style":1288},[1728],{"type":381,"value":1729},"_, err ",{"type":372,"tag":1275,"props":1731,"children":1732},{"style":1282},[1733],{"type":381,"value":1734},":=",{"type":372,"tag":1275,"props":1736,"children":1737},{"style":1288},[1738],{"type":381,"value":1739}," svixClient.Message.",{"type":372,"tag":1275,"props":1741,"children":1742},{"style":1345},[1743],{"type":381,"value":1744},"Create",{"type":372,"tag":1275,"props":1746,"children":1747},{"style":1288},[1748],{"type":381,"value":1749},"(ctx, ",{"type":372,"tag":1275,"props":1751,"children":1752},{"style":1299},[1753],{"type":381,"value":1621},{"type":372,"tag":1275,"props":1755,"children":1756},{"style":1288},[1757],{"type":381,"value":1758},", ",{"type":372,"tag":1275,"props":1760,"children":1761},{"style":1345},[1762],{"type":381,"value":1763},"models",{"type":372,"tag":1275,"props":1765,"children":1766},{"style":1288},[1767],{"type":381,"value":445},{"type":372,"tag":1275,"props":1769,"children":1770},{"style":1345},[1771],{"type":381,"value":1772},"MessageIn",{"type":372,"tag":1275,"props":1774,"children":1775},{"style":1288},[1776],{"type":381,"value":1777},"{\n",{"type":372,"tag":1275,"props":1779,"children":1780},{"class":1277,"line":1320},[1781,1786,1790],{"type":372,"tag":1275,"props":1782,"children":1783},{"style":1288},[1784],{"type":381,"value":1785},"    EventType: ",{"type":372,"tag":1275,"props":1787,"children":1788},{"style":1299},[1789],{"type":381,"value":1428},{"type":372,"tag":1275,"props":1791,"children":1792},{"style":1288},[1793],{"type":381,"value":1414},{"type":372,"tag":1275,"props":1795,"children":1796},{"class":1277,"line":1371},[1797,1802,1807,1812,1817,1822,1827,1832,1837,1842,1846,1850,1855,1859,1863],{"type":372,"tag":1275,"props":1798,"children":1799},{"style":1288},[1800],{"type":381,"value":1801},"    Payload:   ",{"type":372,"tag":1275,"props":1803,"children":1804},{"style":1282},[1805],{"type":381,"value":1806},"map",{"type":372,"tag":1275,"props":1808,"children":1809},{"style":1288},[1810],{"type":381,"value":1811},"[",{"type":372,"tag":1275,"props":1813,"children":1814},{"style":1282},[1815],{"type":381,"value":1816},"string",{"type":372,"tag":1275,"props":1818,"children":1819},{"style":1288},[1820],{"type":381,"value":1821},"]",{"type":372,"tag":1275,"props":1823,"children":1824},{"style":1345},[1825],{"type":381,"value":1826},"any",{"type":372,"tag":1275,"props":1828,"children":1829},{"style":1288},[1830],{"type":381,"value":1831},"{",{"type":372,"tag":1275,"props":1833,"children":1834},{"style":1299},[1835],{"type":381,"value":1836},"\"invoice_id\"",{"type":372,"tag":1275,"props":1838,"children":1839},{"style":1288},[1840],{"type":381,"value":1841},": ",{"type":372,"tag":1275,"props":1843,"children":1844},{"style":1299},[1845],{"type":381,"value":1448},{"type":372,"tag":1275,"props":1847,"children":1848},{"style":1288},[1849],{"type":381,"value":1758},{"type":372,"tag":1275,"props":1851,"children":1852},{"style":1299},[1853],{"type":381,"value":1854},"\"amount\"",{"type":372,"tag":1275,"props":1856,"children":1857},{"style":1288},[1858],{"type":381,"value":1841},{"type":372,"tag":1275,"props":1860,"children":1861},{"style":1329},[1862],{"type":381,"value":1458},{"type":372,"tag":1275,"props":1864,"children":1865},{"style":1288},[1866],{"type":381,"value":1867},"},\n",{"type":372,"tag":1275,"props":1869,"children":1870},{"class":1277,"line":1379},[1871,1876,1881],{"type":372,"tag":1275,"props":1872,"children":1873},{"style":1288},[1874],{"type":381,"value":1875},"}, ",{"type":372,"tag":1275,"props":1877,"children":1878},{"style":1329},[1879],{"type":381,"value":1880},"nil",{"type":372,"tag":1275,"props":1882,"children":1883},{"style":1288},[1884],{"type":381,"value":1885},")\n",{"type":372,"tag":1275,"props":1887,"children":1888},{"class":1277,"line":1403},[1889],{"type":372,"tag":1275,"props":1890,"children":1891},{"emptyLinePlaceholder":1314},[1892],{"type":381,"value":1317},{"type":372,"tag":1275,"props":1894,"children":1895},{"class":1277,"line":1417},[1896],{"type":372,"tag":1275,"props":1897,"children":1898},{"style":1578},[1899],{"type":381,"value":1900},"// After\n",{"type":372,"tag":1275,"props":1902,"children":1903},{"class":1277,"line":1466},[1904,1908,1912,1917,1922,1927,1932,1937,1941,1946],{"type":372,"tag":1275,"props":1905,"children":1906},{"style":1288},[1907],{"type":381,"value":1729},{"type":372,"tag":1275,"props":1909,"children":1910},{"style":1282},[1911],{"type":381,"value":1734},{"type":372,"tag":1275,"props":1913,"children":1914},{"style":1288},[1915],{"type":381,"value":1916}," api.",{"type":372,"tag":1275,"props":1918,"children":1919},{"style":1345},[1920],{"type":381,"value":1921},"PublishOutboundMessage",{"type":372,"tag":1275,"props":1923,"children":1924},{"style":1288},[1925],{"type":381,"value":1926},"(",{"type":372,"tag":1275,"props":1928,"children":1929},{"style":1282},[1930],{"type":381,"value":1931},"&",{"type":372,"tag":1275,"props":1933,"children":1934},{"style":1345},[1935],{"type":381,"value":1936},"webhookrelay",{"type":372,"tag":1275,"props":1938,"children":1939},{"style":1288},[1940],{"type":381,"value":445},{"type":372,"tag":1275,"props":1942,"children":1943},{"style":1345},[1944],{"type":381,"value":1945},"OutboundMessagePublishOptions",{"type":372,"tag":1275,"props":1947,"children":1948},{"style":1288},[1949],{"type":381,"value":1777},{"type":372,"tag":1275,"props":1951,"children":1952},{"class":1277,"line":1485},[1953,1958,1962],{"type":372,"tag":1275,"props":1954,"children":1955},{"style":1288},[1956],{"type":381,"value":1957},"    Consumer:       ",{"type":372,"tag":1275,"props":1959,"children":1960},{"style":1299},[1961],{"type":381,"value":1621},{"type":372,"tag":1275,"props":1963,"children":1964},{"style":1288},[1965],{"type":381,"value":1414},{"type":372,"tag":1275,"props":1967,"children":1969},{"class":1277,"line":1968},10,[1970,1975,1979],{"type":372,"tag":1275,"props":1971,"children":1972},{"style":1288},[1973],{"type":381,"value":1974},"    EventType:      ",{"type":372,"tag":1275,"props":1976,"children":1977},{"style":1299},[1978],{"type":381,"value":1428},{"type":372,"tag":1275,"props":1980,"children":1981},{"style":1288},[1982],{"type":381,"value":1414},{"type":372,"tag":1275,"props":1984,"children":1986},{"class":1277,"line":1985},11,[1987,1992,1996],{"type":372,"tag":1275,"props":1988,"children":1989},{"style":1288},[1990],{"type":381,"value":1991},"    EventID:        ",{"type":372,"tag":1275,"props":1993,"children":1994},{"style":1299},[1995],{"type":381,"value":1438},{"type":372,"tag":1275,"props":1997,"children":1998},{"style":1288},[1999],{"type":381,"value":1414},{"type":372,"tag":1275,"props":2001,"children":2003},{"class":1277,"line":2002},12,[2004,2009,2013,2017,2021,2025,2030,2035,2039,2043,2047,2051,2055,2059,2063],{"type":372,"tag":1275,"props":2005,"children":2006},{"style":1288},[2007],{"type":381,"value":2008},"    Payload:        ",{"type":372,"tag":1275,"props":2010,"children":2011},{"style":1282},[2012],{"type":381,"value":1806},{"type":372,"tag":1275,"props":2014,"children":2015},{"style":1288},[2016],{"type":381,"value":1811},{"type":372,"tag":1275,"props":2018,"children":2019},{"style":1282},[2020],{"type":381,"value":1816},{"type":372,"tag":1275,"props":2022,"children":2023},{"style":1288},[2024],{"type":381,"value":1821},{"type":372,"tag":1275,"props":2026,"children":2027},{"style":1282},[2028],{"type":381,"value":2029},"interface",{"type":372,"tag":1275,"props":2031,"children":2032},{"style":1288},[2033],{"type":381,"value":2034},"{}{",{"type":372,"tag":1275,"props":2036,"children":2037},{"style":1299},[2038],{"type":381,"value":1836},{"type":372,"tag":1275,"props":2040,"children":2041},{"style":1288},[2042],{"type":381,"value":1841},{"type":372,"tag":1275,"props":2044,"children":2045},{"style":1299},[2046],{"type":381,"value":1448},{"type":372,"tag":1275,"props":2048,"children":2049},{"style":1288},[2050],{"type":381,"value":1758},{"type":372,"tag":1275,"props":2052,"children":2053},{"style":1299},[2054],{"type":381,"value":1854},{"type":372,"tag":1275,"props":2056,"children":2057},{"style":1288},[2058],{"type":381,"value":1841},{"type":372,"tag":1275,"props":2060,"children":2061},{"style":1329},[2062],{"type":381,"value":1458},{"type":372,"tag":1275,"props":2064,"children":2065},{"style":1288},[2066],{"type":381,"value":1867},{"type":372,"tag":1275,"props":2068,"children":2070},{"class":1277,"line":2069},13,[2071,2076,2080],{"type":372,"tag":1275,"props":2072,"children":2073},{"style":1288},[2074],{"type":381,"value":2075},"    IdempotencyKey: ",{"type":372,"tag":1275,"props":2077,"children":2078},{"style":1299},[2079],{"type":381,"value":1477},{"type":372,"tag":1275,"props":2081,"children":2082},{"style":1288},[2083],{"type":381,"value":1414},{"type":372,"tag":1275,"props":2085,"children":2087},{"class":1277,"line":2086},14,[2088],{"type":372,"tag":1275,"props":2089,"children":2090},{"style":1288},[2091],{"type":381,"value":2092},"})\n",{"type":372,"tag":373,"props":2094,"children":2095},{},[2096],{"type":381,"value":2097},"curl:",{"type":372,"tag":1261,"props":2099,"children":2100},{},[2101],{"type":372,"tag":1265,"props":2102,"children":2106},{"className":2103,"code":2104,"language":2105,"meta":345,"style":345},"language-bash shiki shiki-themes github-dark","# Before\ncurl -X POST \"https://api.us.svix.com/api/v1/app/customer_42/msg\" \\\n  -H \"Authorization: Bearer $SVIX_TOKEN\" -H 'Content-Type: application/json' \\\n  -H 'idempotency-key: invoice-paid:inv_123' \\\n  -d '{\"eventType\":\"invoice.paid\",\"payload\":{\"invoice_id\":\"inv_123\",\"amount\":4900}}'\n\n# After\ncurl --user \"$RELAY_KEY:$RELAY_SECRET\" -X POST https://my.webhookrelay.com/v1/outbound/messages \\\n  -H 'Content-Type: application/json' -H 'Idempotency-Key: invoice-paid:inv_123' \\\n  -d '{\"consumer\":\"customer_42\",\"event_type\":\"invoice.paid\",\"payload\":{\"invoice_id\":\"inv_123\",\"amount\":4900}}'\n","bash",[2107],{"type":372,"tag":386,"props":2108,"children":2109},{"__ignoreMap":345},[2110,2118,2146,2183,2199,2212,2219,2227,2279,2303],{"type":372,"tag":1275,"props":2111,"children":2112},{"class":1277,"line":1278},[2113],{"type":372,"tag":1275,"props":2114,"children":2115},{"style":1578},[2116],{"type":381,"value":2117},"# Before\n",{"type":372,"tag":1275,"props":2119,"children":2120},{"class":1277,"line":1310},[2121,2126,2131,2136,2141],{"type":372,"tag":1275,"props":2122,"children":2123},{"style":1345},[2124],{"type":381,"value":2125},"curl",{"type":372,"tag":1275,"props":2127,"children":2128},{"style":1329},[2129],{"type":381,"value":2130}," -X",{"type":372,"tag":1275,"props":2132,"children":2133},{"style":1299},[2134],{"type":381,"value":2135}," POST",{"type":372,"tag":1275,"props":2137,"children":2138},{"style":1299},[2139],{"type":381,"value":2140}," \"https://api.us.svix.com/api/v1/app/customer_42/msg\"",{"type":372,"tag":1275,"props":2142,"children":2143},{"style":1329},[2144],{"type":381,"value":2145}," \\\n",{"type":372,"tag":1275,"props":2147,"children":2148},{"class":1277,"line":1320},[2149,2154,2159,2164,2169,2174,2179],{"type":372,"tag":1275,"props":2150,"children":2151},{"style":1329},[2152],{"type":381,"value":2153},"  -H",{"type":372,"tag":1275,"props":2155,"children":2156},{"style":1299},[2157],{"type":381,"value":2158}," \"Authorization: Bearer ",{"type":372,"tag":1275,"props":2160,"children":2161},{"style":1288},[2162],{"type":381,"value":2163},"$SVIX_TOKEN",{"type":372,"tag":1275,"props":2165,"children":2166},{"style":1299},[2167],{"type":381,"value":2168},"\"",{"type":372,"tag":1275,"props":2170,"children":2171},{"style":1329},[2172],{"type":381,"value":2173}," -H",{"type":372,"tag":1275,"props":2175,"children":2176},{"style":1299},[2177],{"type":381,"value":2178}," 'Content-Type: application/json'",{"type":372,"tag":1275,"props":2180,"children":2181},{"style":1329},[2182],{"type":381,"value":2145},{"type":372,"tag":1275,"props":2184,"children":2185},{"class":1277,"line":1371},[2186,2190,2195],{"type":372,"tag":1275,"props":2187,"children":2188},{"style":1329},[2189],{"type":381,"value":2153},{"type":372,"tag":1275,"props":2191,"children":2192},{"style":1299},[2193],{"type":381,"value":2194}," 'idempotency-key: invoice-paid:inv_123'",{"type":372,"tag":1275,"props":2196,"children":2197},{"style":1329},[2198],{"type":381,"value":2145},{"type":372,"tag":1275,"props":2200,"children":2201},{"class":1277,"line":1379},[2202,2207],{"type":372,"tag":1275,"props":2203,"children":2204},{"style":1329},[2205],{"type":381,"value":2206},"  -d",{"type":372,"tag":1275,"props":2208,"children":2209},{"style":1299},[2210],{"type":381,"value":2211}," '{\"eventType\":\"invoice.paid\",\"payload\":{\"invoice_id\":\"inv_123\",\"amount\":4900}}'\n",{"type":372,"tag":1275,"props":2213,"children":2214},{"class":1277,"line":1403},[2215],{"type":372,"tag":1275,"props":2216,"children":2217},{"emptyLinePlaceholder":1314},[2218],{"type":381,"value":1317},{"type":372,"tag":1275,"props":2220,"children":2221},{"class":1277,"line":1417},[2222],{"type":372,"tag":1275,"props":2223,"children":2224},{"style":1578},[2225],{"type":381,"value":2226},"# After\n",{"type":372,"tag":1275,"props":2228,"children":2229},{"class":1277,"line":1466},[2230,2234,2239,2244,2249,2253,2258,2262,2266,2270,2275],{"type":372,"tag":1275,"props":2231,"children":2232},{"style":1345},[2233],{"type":381,"value":2125},{"type":372,"tag":1275,"props":2235,"children":2236},{"style":1329},[2237],{"type":381,"value":2238}," --user",{"type":372,"tag":1275,"props":2240,"children":2241},{"style":1299},[2242],{"type":381,"value":2243}," \"",{"type":372,"tag":1275,"props":2245,"children":2246},{"style":1288},[2247],{"type":381,"value":2248},"$RELAY_KEY",{"type":372,"tag":1275,"props":2250,"children":2251},{"style":1299},[2252],{"type":381,"value":1503},{"type":372,"tag":1275,"props":2254,"children":2255},{"style":1288},[2256],{"type":381,"value":2257},"$RELAY_SECRET",{"type":372,"tag":1275,"props":2259,"children":2260},{"style":1299},[2261],{"type":381,"value":2168},{"type":372,"tag":1275,"props":2263,"children":2264},{"style":1329},[2265],{"type":381,"value":2130},{"type":372,"tag":1275,"props":2267,"children":2268},{"style":1299},[2269],{"type":381,"value":2135},{"type":372,"tag":1275,"props":2271,"children":2272},{"style":1299},[2273],{"type":381,"value":2274}," https://my.webhookrelay.com/v1/outbound/messages",{"type":372,"tag":1275,"props":2276,"children":2277},{"style":1329},[2278],{"type":381,"value":2145},{"type":372,"tag":1275,"props":2280,"children":2281},{"class":1277,"line":1485},[2282,2286,2290,2294,2299],{"type":372,"tag":1275,"props":2283,"children":2284},{"style":1329},[2285],{"type":381,"value":2153},{"type":372,"tag":1275,"props":2287,"children":2288},{"style":1299},[2289],{"type":381,"value":2178},{"type":372,"tag":1275,"props":2291,"children":2292},{"style":1329},[2293],{"type":381,"value":2173},{"type":372,"tag":1275,"props":2295,"children":2296},{"style":1299},[2297],{"type":381,"value":2298}," 'Idempotency-Key: invoice-paid:inv_123'",{"type":372,"tag":1275,"props":2300,"children":2301},{"style":1329},[2302],{"type":381,"value":2145},{"type":372,"tag":1275,"props":2304,"children":2305},{"class":1277,"line":1968},[2306,2310],{"type":372,"tag":1275,"props":2307,"children":2308},{"style":1329},[2309],{"type":381,"value":2206},{"type":372,"tag":1275,"props":2311,"children":2312},{"style":1299},[2313],{"type":381,"value":2314}," '{\"consumer\":\"customer_42\",\"event_type\":\"invoice.paid\",\"payload\":{\"invoice_id\":\"inv_123\",\"amount\":4900}}'\n",{"type":372,"tag":1250,"props":2316,"children":2318},{"id":2317},"add-a-customer-and-an-endpoint-with-its-svix-secret",[2319],{"type":381,"value":2320},"Add a customer and an endpoint with its Svix secret",{"type":372,"tag":373,"props":2322,"children":2323},{},[2324,2326,2331],{"type":381,"value":2325},"Read the endpoint's current secret from Svix and pass it as ",{"type":372,"tag":386,"props":2327,"children":2329},{"className":2328},[],[2330],{"type":381,"value":574},{"type":381,"value":2332}," when you create the Webhook Relay endpoint. The secret stays in memory: don't log it or write it to a file.",{"type":372,"tag":1261,"props":2334,"children":2335},{},[2336],{"type":372,"tag":1265,"props":2337,"children":2339},{"className":1267,"code":2338,"language":1269,"meta":345,"style":345},"// Before\nawait svix.application.create({ name: \"Acme\", uid: \"customer_42\" });\nawait svix.endpoint.create(\"customer_42\", { url: \"https://acme.example/webhooks\", eventTypes: [\"invoice.paid\"] });\n\n// After: import an existing Svix endpoint with its current secret.\nawait relay.outbound.consumers.upsert(\"customer_42\", { name: \"Acme\" });\nconst { key } = await svix.endpoint.getSecret(\"customer_42\", svixEndpointId); // \"whsec_…\"\n\nconst auth = Buffer.from(`${process.env.RELAY_KEY}:${process.env.RELAY_SECRET}`).toString(\"base64\");\nconst res = await fetch(\"https://my.webhookrelay.com/v1/outbound/consumers/customer_42/endpoints\", {\n  method: \"POST\",\n  headers: { Authorization: `Basic ${auth}`, \"Content-Type\": \"application/json\" },\n  body: JSON.stringify({ url: \"https://acme.example/webhooks\", event_types: [\"invoice.paid\"], auto_disable: true, secret: key }),\n});\nif (!res.ok) throw new Error(`create endpoint: ${res.status}`); // errors never echo the secret\nconst { id } = await res.json();\n\n// New customers after the migration: let Webhook Relay generate the secret.\nconst endpoint = await relay.outbound.endpoints.create(\"customer_43\", {\n  url: \"https://globex.example/webhooks\",\n  eventTypes: [\"invoice.paid\"],\n  autoDisable: true,\n});\n// endpoint.secret is the new whsec_ secret. Store it like a password.\n",[2340],{"type":372,"tag":386,"props":2341,"children":2342},{"__ignoreMap":345},[2343,2350,2390,2438,2445,2453,2491,2550,2557,2668,2707,2724,2768,2823,2831,2904,2948,2956,2965,3008,3026,3044,3061,3069],{"type":372,"tag":1275,"props":2344,"children":2345},{"class":1277,"line":1278},[2346],{"type":372,"tag":1275,"props":2347,"children":2348},{"style":1578},[2349],{"type":381,"value":1721},{"type":372,"tag":1275,"props":2351,"children":2352},{"class":1277,"line":1310},[2353,2357,2362,2366,2371,2376,2381,2385],{"type":372,"tag":1275,"props":2354,"children":2355},{"style":1282},[2356],{"type":381,"value":1385},{"type":372,"tag":1275,"props":2358,"children":2359},{"style":1288},[2360],{"type":381,"value":2361}," svix.application.",{"type":372,"tag":1275,"props":2363,"children":2364},{"style":1345},[2365],{"type":381,"value":1395},{"type":372,"tag":1275,"props":2367,"children":2368},{"style":1288},[2369],{"type":381,"value":2370},"({ name: ",{"type":372,"tag":1275,"props":2372,"children":2373},{"style":1299},[2374],{"type":381,"value":2375},"\"Acme\"",{"type":372,"tag":1275,"props":2377,"children":2378},{"style":1288},[2379],{"type":381,"value":2380},", uid: ",{"type":372,"tag":1275,"props":2382,"children":2383},{"style":1299},[2384],{"type":381,"value":1621},{"type":372,"tag":1275,"props":2386,"children":2387},{"style":1288},[2388],{"type":381,"value":2389}," });\n",{"type":372,"tag":1275,"props":2391,"children":2392},{"class":1277,"line":1320},[2393,2397,2402,2406,2410,2414,2419,2424,2429,2433],{"type":372,"tag":1275,"props":2394,"children":2395},{"style":1282},[2396],{"type":381,"value":1385},{"type":372,"tag":1275,"props":2398,"children":2399},{"style":1288},[2400],{"type":381,"value":2401}," svix.endpoint.",{"type":372,"tag":1275,"props":2403,"children":2404},{"style":1345},[2405],{"type":381,"value":1395},{"type":372,"tag":1275,"props":2407,"children":2408},{"style":1288},[2409],{"type":381,"value":1926},{"type":372,"tag":1275,"props":2411,"children":2412},{"style":1299},[2413],{"type":381,"value":1621},{"type":372,"tag":1275,"props":2415,"children":2416},{"style":1288},[2417],{"type":381,"value":2418},", { url: ",{"type":372,"tag":1275,"props":2420,"children":2421},{"style":1299},[2422],{"type":381,"value":2423},"\"https://acme.example/webhooks\"",{"type":372,"tag":1275,"props":2425,"children":2426},{"style":1288},[2427],{"type":381,"value":2428},", eventTypes: [",{"type":372,"tag":1275,"props":2430,"children":2431},{"style":1299},[2432],{"type":381,"value":1428},{"type":372,"tag":1275,"props":2434,"children":2435},{"style":1288},[2436],{"type":381,"value":2437},"] });\n",{"type":372,"tag":1275,"props":2439,"children":2440},{"class":1277,"line":1371},[2441],{"type":372,"tag":1275,"props":2442,"children":2443},{"emptyLinePlaceholder":1314},[2444],{"type":381,"value":1317},{"type":372,"tag":1275,"props":2446,"children":2447},{"class":1277,"line":1379},[2448],{"type":372,"tag":1275,"props":2449,"children":2450},{"style":1578},[2451],{"type":381,"value":2452},"// After: import an existing Svix endpoint with its current secret.\n",{"type":372,"tag":1275,"props":2454,"children":2455},{"class":1277,"line":1403},[2456,2460,2465,2470,2474,2478,2483,2487],{"type":372,"tag":1275,"props":2457,"children":2458},{"style":1282},[2459],{"type":381,"value":1385},{"type":372,"tag":1275,"props":2461,"children":2462},{"style":1288},[2463],{"type":381,"value":2464}," relay.outbound.consumers.",{"type":372,"tag":1275,"props":2466,"children":2467},{"style":1345},[2468],{"type":381,"value":2469},"upsert",{"type":372,"tag":1275,"props":2471,"children":2472},{"style":1288},[2473],{"type":381,"value":1926},{"type":372,"tag":1275,"props":2475,"children":2476},{"style":1299},[2477],{"type":381,"value":1621},{"type":372,"tag":1275,"props":2479,"children":2480},{"style":1288},[2481],{"type":381,"value":2482},", { name: ",{"type":372,"tag":1275,"props":2484,"children":2485},{"style":1299},[2486],{"type":381,"value":2375},{"type":372,"tag":1275,"props":2488,"children":2489},{"style":1288},[2490],{"type":381,"value":2389},{"type":372,"tag":1275,"props":2492,"children":2493},{"class":1277,"line":1417},[2494,2498,2503,2508,2513,2518,2523,2527,2532,2536,2540,2545],{"type":372,"tag":1275,"props":2495,"children":2496},{"style":1282},[2497],{"type":381,"value":1326},{"type":372,"tag":1275,"props":2499,"children":2500},{"style":1288},[2501],{"type":381,"value":2502}," { ",{"type":372,"tag":1275,"props":2504,"children":2505},{"style":1329},[2506],{"type":381,"value":2507},"key",{"type":372,"tag":1275,"props":2509,"children":2510},{"style":1288},[2511],{"type":381,"value":2512}," } ",{"type":372,"tag":1275,"props":2514,"children":2515},{"style":1282},[2516],{"type":381,"value":2517},"=",{"type":372,"tag":1275,"props":2519,"children":2520},{"style":1282},[2521],{"type":381,"value":2522}," await",{"type":372,"tag":1275,"props":2524,"children":2525},{"style":1288},[2526],{"type":381,"value":2401},{"type":372,"tag":1275,"props":2528,"children":2529},{"style":1345},[2530],{"type":381,"value":2531},"getSecret",{"type":372,"tag":1275,"props":2533,"children":2534},{"style":1288},[2535],{"type":381,"value":1926},{"type":372,"tag":1275,"props":2537,"children":2538},{"style":1299},[2539],{"type":381,"value":1621},{"type":372,"tag":1275,"props":2541,"children":2542},{"style":1288},[2543],{"type":381,"value":2544},", svixEndpointId); ",{"type":372,"tag":1275,"props":2546,"children":2547},{"style":1578},[2548],{"type":381,"value":2549},"// \"whsec_…\"\n",{"type":372,"tag":1275,"props":2551,"children":2552},{"class":1277,"line":1466},[2553],{"type":372,"tag":1275,"props":2554,"children":2555},{"emptyLinePlaceholder":1314},[2556],{"type":381,"value":1317},{"type":372,"tag":1275,"props":2558,"children":2559},{"class":1277,"line":1485},[2560,2564,2569,2573,2578,2582,2586,2591,2596,2600,2605,2609,2614,2619,2623,2627,2631,2635,2640,2645,2650,2655,2659,2664],{"type":372,"tag":1275,"props":2561,"children":2562},{"style":1282},[2563],{"type":381,"value":1326},{"type":372,"tag":1275,"props":2565,"children":2566},{"style":1329},[2567],{"type":381,"value":2568}," auth",{"type":372,"tag":1275,"props":2570,"children":2571},{"style":1282},[2572],{"type":381,"value":1337},{"type":372,"tag":1275,"props":2574,"children":2575},{"style":1288},[2576],{"type":381,"value":2577}," Buffer.",{"type":372,"tag":1275,"props":2579,"children":2580},{"style":1345},[2581],{"type":381,"value":1296},{"type":372,"tag":1275,"props":2583,"children":2584},{"style":1288},[2585],{"type":381,"value":1926},{"type":372,"tag":1275,"props":2587,"children":2588},{"style":1299},[2589],{"type":381,"value":2590},"`${",{"type":372,"tag":1275,"props":2592,"children":2593},{"style":1288},[2594],{"type":381,"value":2595},"process",{"type":372,"tag":1275,"props":2597,"children":2598},{"style":1299},[2599],{"type":381,"value":445},{"type":372,"tag":1275,"props":2601,"children":2602},{"style":1288},[2603],{"type":381,"value":2604},"env",{"type":372,"tag":1275,"props":2606,"children":2607},{"style":1299},[2608],{"type":381,"value":445},{"type":372,"tag":1275,"props":2610,"children":2611},{"style":1329},[2612],{"type":381,"value":2613},"RELAY_KEY",{"type":372,"tag":1275,"props":2615,"children":2616},{"style":1299},[2617],{"type":381,"value":2618},"}:${",{"type":372,"tag":1275,"props":2620,"children":2621},{"style":1288},[2622],{"type":381,"value":2595},{"type":372,"tag":1275,"props":2624,"children":2625},{"style":1299},[2626],{"type":381,"value":445},{"type":372,"tag":1275,"props":2628,"children":2629},{"style":1288},[2630],{"type":381,"value":2604},{"type":372,"tag":1275,"props":2632,"children":2633},{"style":1299},[2634],{"type":381,"value":445},{"type":372,"tag":1275,"props":2636,"children":2637},{"style":1329},[2638],{"type":381,"value":2639},"RELAY_SECRET",{"type":372,"tag":1275,"props":2641,"children":2642},{"style":1299},[2643],{"type":381,"value":2644},"}`",{"type":372,"tag":1275,"props":2646,"children":2647},{"style":1288},[2648],{"type":381,"value":2649},").",{"type":372,"tag":1275,"props":2651,"children":2652},{"style":1345},[2653],{"type":381,"value":2654},"toString",{"type":372,"tag":1275,"props":2656,"children":2657},{"style":1288},[2658],{"type":381,"value":1926},{"type":372,"tag":1275,"props":2660,"children":2661},{"style":1299},[2662],{"type":381,"value":2663},"\"base64\"",{"type":372,"tag":1275,"props":2665,"children":2666},{"style":1288},[2667],{"type":381,"value":1368},{"type":372,"tag":1275,"props":2669,"children":2670},{"class":1277,"line":1968},[2671,2675,2680,2684,2688,2693,2697,2702],{"type":372,"tag":1275,"props":2672,"children":2673},{"style":1282},[2674],{"type":381,"value":1326},{"type":372,"tag":1275,"props":2676,"children":2677},{"style":1329},[2678],{"type":381,"value":2679}," res",{"type":372,"tag":1275,"props":2681,"children":2682},{"style":1282},[2683],{"type":381,"value":1337},{"type":372,"tag":1275,"props":2685,"children":2686},{"style":1282},[2687],{"type":381,"value":2522},{"type":372,"tag":1275,"props":2689,"children":2690},{"style":1345},[2691],{"type":381,"value":2692}," fetch",{"type":372,"tag":1275,"props":2694,"children":2695},{"style":1288},[2696],{"type":381,"value":1926},{"type":372,"tag":1275,"props":2698,"children":2699},{"style":1299},[2700],{"type":381,"value":2701},"\"https://my.webhookrelay.com/v1/outbound/consumers/customer_42/endpoints\"",{"type":372,"tag":1275,"props":2703,"children":2704},{"style":1288},[2705],{"type":381,"value":2706},", {\n",{"type":372,"tag":1275,"props":2708,"children":2709},{"class":1277,"line":1985},[2710,2715,2720],{"type":372,"tag":1275,"props":2711,"children":2712},{"style":1288},[2713],{"type":381,"value":2714},"  method: ",{"type":372,"tag":1275,"props":2716,"children":2717},{"style":1299},[2718],{"type":381,"value":2719},"\"POST\"",{"type":372,"tag":1275,"props":2721,"children":2722},{"style":1288},[2723],{"type":381,"value":1414},{"type":372,"tag":1275,"props":2725,"children":2726},{"class":1277,"line":2002},[2727,2732,2737,2742,2746,2750,2755,2759,2764],{"type":372,"tag":1275,"props":2728,"children":2729},{"style":1288},[2730],{"type":381,"value":2731},"  headers: { Authorization: ",{"type":372,"tag":1275,"props":2733,"children":2734},{"style":1299},[2735],{"type":381,"value":2736},"`Basic ${",{"type":372,"tag":1275,"props":2738,"children":2739},{"style":1288},[2740],{"type":381,"value":2741},"auth",{"type":372,"tag":1275,"props":2743,"children":2744},{"style":1299},[2745],{"type":381,"value":2644},{"type":372,"tag":1275,"props":2747,"children":2748},{"style":1288},[2749],{"type":381,"value":1758},{"type":372,"tag":1275,"props":2751,"children":2752},{"style":1299},[2753],{"type":381,"value":2754},"\"Content-Type\"",{"type":372,"tag":1275,"props":2756,"children":2757},{"style":1288},[2758],{"type":381,"value":1841},{"type":372,"tag":1275,"props":2760,"children":2761},{"style":1299},[2762],{"type":381,"value":2763},"\"application/json\"",{"type":372,"tag":1275,"props":2765,"children":2766},{"style":1288},[2767],{"type":381,"value":1482},{"type":372,"tag":1275,"props":2769,"children":2770},{"class":1277,"line":2069},[2771,2776,2781,2785,2790,2795,2799,2804,2808,2813,2818],{"type":372,"tag":1275,"props":2772,"children":2773},{"style":1288},[2774],{"type":381,"value":2775},"  body: ",{"type":372,"tag":1275,"props":2777,"children":2778},{"style":1329},[2779],{"type":381,"value":2780},"JSON",{"type":372,"tag":1275,"props":2782,"children":2783},{"style":1288},[2784],{"type":381,"value":445},{"type":372,"tag":1275,"props":2786,"children":2787},{"style":1345},[2788],{"type":381,"value":2789},"stringify",{"type":372,"tag":1275,"props":2791,"children":2792},{"style":1288},[2793],{"type":381,"value":2794},"({ url: ",{"type":372,"tag":1275,"props":2796,"children":2797},{"style":1299},[2798],{"type":381,"value":2423},{"type":372,"tag":1275,"props":2800,"children":2801},{"style":1288},[2802],{"type":381,"value":2803},", event_types: [",{"type":372,"tag":1275,"props":2805,"children":2806},{"style":1299},[2807],{"type":381,"value":1428},{"type":372,"tag":1275,"props":2809,"children":2810},{"style":1288},[2811],{"type":381,"value":2812},"], auto_disable: ",{"type":372,"tag":1275,"props":2814,"children":2815},{"style":1329},[2816],{"type":381,"value":2817},"true",{"type":372,"tag":1275,"props":2819,"children":2820},{"style":1288},[2821],{"type":381,"value":2822},", secret: key }),\n",{"type":372,"tag":1275,"props":2824,"children":2825},{"class":1277,"line":2086},[2826],{"type":372,"tag":1275,"props":2827,"children":2828},{"style":1288},[2829],{"type":381,"value":2830},"});\n",{"type":372,"tag":1275,"props":2832,"children":2834},{"class":1277,"line":2833},15,[2835,2840,2844,2848,2853,2858,2862,2867,2871,2876,2881,2885,2890,2894,2899],{"type":372,"tag":1275,"props":2836,"children":2837},{"style":1282},[2838],{"type":381,"value":2839},"if",{"type":372,"tag":1275,"props":2841,"children":2842},{"style":1288},[2843],{"type":381,"value":604},{"type":372,"tag":1275,"props":2845,"children":2846},{"style":1282},[2847],{"type":381,"value":1363},{"type":372,"tag":1275,"props":2849,"children":2850},{"style":1288},[2851],{"type":381,"value":2852},"res.ok) ",{"type":372,"tag":1275,"props":2854,"children":2855},{"style":1282},[2856],{"type":381,"value":2857},"throw",{"type":372,"tag":1275,"props":2859,"children":2860},{"style":1282},[2861],{"type":381,"value":1342},{"type":372,"tag":1275,"props":2863,"children":2864},{"style":1345},[2865],{"type":381,"value":2866}," Error",{"type":372,"tag":1275,"props":2868,"children":2869},{"style":1288},[2870],{"type":381,"value":1926},{"type":372,"tag":1275,"props":2872,"children":2873},{"style":1299},[2874],{"type":381,"value":2875},"`create endpoint: ${",{"type":372,"tag":1275,"props":2877,"children":2878},{"style":1288},[2879],{"type":381,"value":2880},"res",{"type":372,"tag":1275,"props":2882,"children":2883},{"style":1299},[2884],{"type":381,"value":445},{"type":372,"tag":1275,"props":2886,"children":2887},{"style":1288},[2888],{"type":381,"value":2889},"status",{"type":372,"tag":1275,"props":2891,"children":2892},{"style":1299},[2893],{"type":381,"value":2644},{"type":372,"tag":1275,"props":2895,"children":2896},{"style":1288},[2897],{"type":381,"value":2898},"); ",{"type":372,"tag":1275,"props":2900,"children":2901},{"style":1578},[2902],{"type":381,"value":2903},"// errors never echo the secret\n",{"type":372,"tag":1275,"props":2905,"children":2907},{"class":1277,"line":2906},16,[2908,2912,2916,2921,2925,2929,2933,2938,2943],{"type":372,"tag":1275,"props":2909,"children":2910},{"style":1282},[2911],{"type":381,"value":1326},{"type":372,"tag":1275,"props":2913,"children":2914},{"style":1288},[2915],{"type":381,"value":2502},{"type":372,"tag":1275,"props":2917,"children":2918},{"style":1329},[2919],{"type":381,"value":2920},"id",{"type":372,"tag":1275,"props":2922,"children":2923},{"style":1288},[2924],{"type":381,"value":2512},{"type":372,"tag":1275,"props":2926,"children":2927},{"style":1282},[2928],{"type":381,"value":2517},{"type":372,"tag":1275,"props":2930,"children":2931},{"style":1282},[2932],{"type":381,"value":2522},{"type":372,"tag":1275,"props":2934,"children":2935},{"style":1288},[2936],{"type":381,"value":2937}," res.",{"type":372,"tag":1275,"props":2939,"children":2940},{"style":1345},[2941],{"type":381,"value":2942},"json",{"type":372,"tag":1275,"props":2944,"children":2945},{"style":1288},[2946],{"type":381,"value":2947},"();\n",{"type":372,"tag":1275,"props":2949,"children":2951},{"class":1277,"line":2950},17,[2952],{"type":372,"tag":1275,"props":2953,"children":2954},{"emptyLinePlaceholder":1314},[2955],{"type":381,"value":1317},{"type":372,"tag":1275,"props":2957,"children":2959},{"class":1277,"line":2958},18,[2960],{"type":372,"tag":1275,"props":2961,"children":2962},{"style":1578},[2963],{"type":381,"value":2964},"// New customers after the migration: let Webhook Relay generate the secret.\n",{"type":372,"tag":1275,"props":2966,"children":2968},{"class":1277,"line":2967},19,[2969,2973,2978,2982,2986,2991,2995,2999,3004],{"type":372,"tag":1275,"props":2970,"children":2971},{"style":1282},[2972],{"type":381,"value":1326},{"type":372,"tag":1275,"props":2974,"children":2975},{"style":1329},[2976],{"type":381,"value":2977}," endpoint",{"type":372,"tag":1275,"props":2979,"children":2980},{"style":1282},[2981],{"type":381,"value":1337},{"type":372,"tag":1275,"props":2983,"children":2984},{"style":1282},[2985],{"type":381,"value":2522},{"type":372,"tag":1275,"props":2987,"children":2988},{"style":1288},[2989],{"type":381,"value":2990}," relay.outbound.endpoints.",{"type":372,"tag":1275,"props":2992,"children":2993},{"style":1345},[2994],{"type":381,"value":1395},{"type":372,"tag":1275,"props":2996,"children":2997},{"style":1288},[2998],{"type":381,"value":1926},{"type":372,"tag":1275,"props":3000,"children":3001},{"style":1299},[3002],{"type":381,"value":3003},"\"customer_43\"",{"type":372,"tag":1275,"props":3005,"children":3006},{"style":1288},[3007],{"type":381,"value":2706},{"type":372,"tag":1275,"props":3009,"children":3011},{"class":1277,"line":3010},20,[3012,3017,3022],{"type":372,"tag":1275,"props":3013,"children":3014},{"style":1288},[3015],{"type":381,"value":3016},"  url: ",{"type":372,"tag":1275,"props":3018,"children":3019},{"style":1299},[3020],{"type":381,"value":3021},"\"https://globex.example/webhooks\"",{"type":372,"tag":1275,"props":3023,"children":3024},{"style":1288},[3025],{"type":381,"value":1414},{"type":372,"tag":1275,"props":3027,"children":3029},{"class":1277,"line":3028},21,[3030,3035,3039],{"type":372,"tag":1275,"props":3031,"children":3032},{"style":1288},[3033],{"type":381,"value":3034},"  eventTypes: [",{"type":372,"tag":1275,"props":3036,"children":3037},{"style":1299},[3038],{"type":381,"value":1428},{"type":372,"tag":1275,"props":3040,"children":3041},{"style":1288},[3042],{"type":381,"value":3043},"],\n",{"type":372,"tag":1275,"props":3045,"children":3047},{"class":1277,"line":3046},22,[3048,3053,3057],{"type":372,"tag":1275,"props":3049,"children":3050},{"style":1288},[3051],{"type":381,"value":3052},"  autoDisable: ",{"type":372,"tag":1275,"props":3054,"children":3055},{"style":1329},[3056],{"type":381,"value":2817},{"type":372,"tag":1275,"props":3058,"children":3059},{"style":1288},[3060],{"type":381,"value":1414},{"type":372,"tag":1275,"props":3062,"children":3064},{"class":1277,"line":3063},23,[3065],{"type":372,"tag":1275,"props":3066,"children":3067},{"style":1288},[3068],{"type":381,"value":2830},{"type":372,"tag":1275,"props":3070,"children":3072},{"class":1277,"line":3071},24,[3073],{"type":372,"tag":1275,"props":3074,"children":3075},{"style":1578},[3076],{"type":381,"value":3077},"// endpoint.secret is the new whsec_ secret. Store it like a password.\n",{"type":372,"tag":373,"props":3079,"children":3080},{},[3081,3083,3088,3090,3096,3098,3104,3106,3111,3113,3118,3120,3126,3128,3133],{"type":381,"value":3082},"The SDKs add a ",{"type":372,"tag":386,"props":3084,"children":3086},{"className":3085},[],[3087],{"type":381,"value":574},{"type":381,"value":3089}," option to ",{"type":372,"tag":386,"props":3091,"children":3093},{"className":3092},[],[3094],{"type":381,"value":3095},"endpoints.create",{"type":381,"value":3097}," (Go: ",{"type":372,"tag":386,"props":3099,"children":3101},{"className":3100},[],[3102],{"type":381,"value":3103},"OutboundEndpointOptions.Secret",{"type":381,"value":3105},") in their next release; until then, create imported endpoints with the REST call above. For a handful of customers, the dashboard's ",{"type":372,"tag":377,"props":3107,"children":3108},{},[3109],{"type":381,"value":3110},"Add endpoint",{"type":381,"value":3112}," dialog has an ",{"type":372,"tag":377,"props":3114,"children":3115},{},[3116],{"type":381,"value":3117},"Existing signing secret",{"type":381,"value":3119}," field. MCP: ",{"type":372,"tag":386,"props":3121,"children":3123},{"className":3122},[],[3124],{"type":381,"value":3125},"create_outbound_endpoint",{"type":381,"value":3127}," accepts ",{"type":372,"tag":386,"props":3129,"children":3131},{"className":3130},[],[3132],{"type":381,"value":574},{"type":381,"value":445},{"type":372,"tag":373,"props":3135,"children":3136},{},[3137,3139,3145,3146,3152,3153,3159,3160,3166,3168,3174,3175,3180,3181,3187,3188,3194,3195,3201],{"type":381,"value":3138},"Go: ",{"type":372,"tag":386,"props":3140,"children":3142},{"className":3141},[],[3143],{"type":381,"value":3144},"api.UpsertOutboundConsumer(...)",{"type":381,"value":1758},{"type":372,"tag":386,"props":3147,"children":3149},{"className":3148},[],[3150],{"type":381,"value":3151},"api.CreateOutboundEndpoint(...)",{"type":381,"value":1758},{"type":372,"tag":386,"props":3154,"children":3156},{"className":3155},[],[3157],{"type":381,"value":3158},"api.RotateOutboundEndpointSecret(id)",{"type":381,"value":1758},{"type":372,"tag":386,"props":3161,"children":3163},{"className":3162},[],[3164],{"type":381,"value":3165},"api.RetryOutboundDelivery(endpointID, messageID)",{"type":381,"value":3167},". MCP: ",{"type":372,"tag":386,"props":3169,"children":3171},{"className":3170},[],[3172],{"type":381,"value":3173},"upsert_outbound_consumer",{"type":381,"value":1758},{"type":372,"tag":386,"props":3176,"children":3178},{"className":3177},[],[3179],{"type":381,"value":3125},{"type":381,"value":1758},{"type":372,"tag":386,"props":3182,"children":3184},{"className":3183},[],[3185],{"type":381,"value":3186},"publish_outbound_message",{"type":381,"value":1758},{"type":372,"tag":386,"props":3189,"children":3191},{"className":3190},[],[3192],{"type":381,"value":3193},"rotate_outbound_endpoint_secret",{"type":381,"value":1758},{"type":372,"tag":386,"props":3196,"children":3198},{"className":3197},[],[3199],{"type":381,"value":3200},"retry_outbound_delivery",{"type":381,"value":445},{"type":372,"tag":447,"props":3203,"children":3205},{"id":3204},"what-changes-for-your-customers",[3206],{"type":381,"value":3207},"What changes for your customers",{"type":372,"tag":454,"props":3209,"children":3210},{},[3211,3228],{"type":372,"tag":458,"props":3212,"children":3213},{},[3214],{"type":372,"tag":462,"props":3215,"children":3216},{},[3217,3220,3224],{"type":372,"tag":466,"props":3218,"children":3219},{},[],{"type":372,"tag":466,"props":3221,"children":3222},{},[3223],{"type":381,"value":470},{"type":372,"tag":466,"props":3225,"children":3226},{},[3227],{"type":381,"value":475},{"type":372,"tag":482,"props":3229,"children":3230},{},[3231,3257,3283,3324,3348,3377],{"type":372,"tag":462,"props":3232,"children":3233},{},[3234,3239,3248],{"type":372,"tag":489,"props":3235,"children":3236},{},[3237],{"type":381,"value":3238},"ID header",{"type":372,"tag":489,"props":3240,"children":3241},{},[3242],{"type":372,"tag":386,"props":3243,"children":3245},{"className":3244},[],[3246],{"type":381,"value":3247},"svix-id",{"type":372,"tag":489,"props":3249,"children":3250},{},[3251],{"type":372,"tag":386,"props":3252,"children":3254},{"className":3253},[],[3255],{"type":381,"value":3256},"webhook-id",{"type":372,"tag":462,"props":3258,"children":3259},{},[3260,3265,3274],{"type":372,"tag":489,"props":3261,"children":3262},{},[3263],{"type":381,"value":3264},"Timestamp header",{"type":372,"tag":489,"props":3266,"children":3267},{},[3268],{"type":372,"tag":386,"props":3269,"children":3271},{"className":3270},[],[3272],{"type":381,"value":3273},"svix-timestamp",{"type":372,"tag":489,"props":3275,"children":3276},{},[3277],{"type":372,"tag":386,"props":3278,"children":3280},{"className":3279},[],[3281],{"type":381,"value":3282},"webhook-timestamp",{"type":372,"tag":462,"props":3284,"children":3285},{},[3286,3291,3308],{"type":372,"tag":489,"props":3287,"children":3288},{},[3289],{"type":381,"value":3290},"Signature header",{"type":372,"tag":489,"props":3292,"children":3293},{},[3294,3300,3301,3307],{"type":372,"tag":386,"props":3295,"children":3297},{"className":3296},[],[3298],{"type":381,"value":3299},"svix-signature",{"type":381,"value":604},{"type":372,"tag":386,"props":3302,"children":3304},{"className":3303},[],[3305],{"type":381,"value":3306},"v1,\u003Cbase64>",{"type":381,"value":852},{"type":372,"tag":489,"props":3309,"children":3310},{},[3311,3317,3318,3323],{"type":372,"tag":386,"props":3312,"children":3314},{"className":3313},[],[3315],{"type":381,"value":3316},"webhook-signature",{"type":381,"value":604},{"type":372,"tag":386,"props":3319,"children":3321},{"className":3320},[],[3322],{"type":381,"value":3306},{"type":381,"value":852},{"type":372,"tag":462,"props":3325,"children":3326},{},[3327,3332,3343],{"type":372,"tag":489,"props":3328,"children":3329},{},[3330],{"type":381,"value":3331},"Signed content",{"type":372,"tag":489,"props":3333,"children":3334},{},[3335,3341],{"type":372,"tag":386,"props":3336,"children":3338},{"className":3337},[],[3339],{"type":381,"value":3340},"{id}.{timestamp}.{body}",{"type":381,"value":3342},", HMAC-SHA256",{"type":372,"tag":489,"props":3344,"children":3345},{},[3346],{"type":381,"value":3347},"Same",{"type":372,"tag":462,"props":3349,"children":3350},{},[3351,3356,3365],{"type":372,"tag":489,"props":3352,"children":3353},{},[3354],{"type":381,"value":3355},"Secret",{"type":372,"tag":489,"props":3357,"children":3358},{},[3359],{"type":372,"tag":386,"props":3360,"children":3362},{"className":3361},[],[3363],{"type":381,"value":3364},"whsec_…",{"type":372,"tag":489,"props":3366,"children":3367},{},[3368,3370,3375],{"type":381,"value":3369},"The same ",{"type":372,"tag":386,"props":3371,"children":3373},{"className":3372},[],[3374],{"type":381,"value":3364},{"type":381,"value":3376},", imported",{"type":372,"tag":462,"props":3378,"children":3379},{},[3380,3385,3388],{"type":372,"tag":489,"props":3381,"children":3382},{},[3383],{"type":381,"value":3384},"Extra headers",{"type":372,"tag":489,"props":3386,"children":3387},{},[],{"type":372,"tag":489,"props":3389,"children":3390},{},[3391,3397,3398],{"type":372,"tag":386,"props":3392,"children":3394},{"className":3393},[],[3395],{"type":381,"value":3396},"webhook-event-type",{"type":381,"value":1758},{"type":372,"tag":386,"props":3399,"children":3401},{"className":3400},[],[3402],{"type":381,"value":3403},"webhook-consumer",{"type":372,"tag":373,"props":3405,"children":3406},{},[3407,3409,3432],{"type":381,"value":3408},"Svix documents that its libraries ",{"type":372,"tag":416,"props":3410,"children":3413},{"href":3411,"rel":3412},"https://docs.svix.com/receiving/verifying-payloads/how-manual",[1244],[3414,3416,3422,3424,3430],{"type":381,"value":3415},"support both the ",{"type":372,"tag":386,"props":3417,"children":3419},{"className":3418},[],[3420],{"type":381,"value":3421},"svix-",{"type":381,"value":3423}," and the ",{"type":372,"tag":386,"props":3425,"children":3427},{"className":3426},[],[3428],{"type":381,"value":3429},"webhook-",{"type":381,"value":3431}," header names",{"type":381,"value":3433},". So:",{"type":372,"tag":3435,"props":3436,"children":3437},"ul",{},[3438,3472,3497],{"type":372,"tag":3439,"props":3440,"children":3441},"li",{},[3442,3447,3449,3456,3458,3463,3465,3470],{"type":372,"tag":377,"props":3443,"children":3444},{},[3445],{"type":381,"value":3446},"Receivers using a Svix library",{"type":381,"value":3448}," (or any ",{"type":372,"tag":416,"props":3450,"children":3453},{"href":3451,"rel":3452},"https://github.com/standard-webhooks/standard-webhooks",[1244],[3454],{"type":381,"value":3455},"Standard Webhooks library",{"type":381,"value":3457},"): ",{"type":372,"tag":377,"props":3459,"children":3460},{},[3461],{"type":381,"value":3462},"no change.",{"type":381,"value":3464}," The secret is the same and the library reads the ",{"type":372,"tag":386,"props":3466,"children":3468},{"className":3467},[],[3469],{"type":381,"value":747},{"type":381,"value":3471}," headers.",{"type":372,"tag":3439,"props":3473,"children":3474},{},[3475,3488,3490,3495],{"type":372,"tag":377,"props":3476,"children":3477},{},[3478,3480,3486],{"type":381,"value":3479},"Receivers that read ",{"type":372,"tag":386,"props":3481,"children":3483},{"className":3482},[],[3484],{"type":381,"value":3485},"svix-*",{"type":381,"value":3487}," headers by name",{"type":381,"value":3489}," in their own code: read the ",{"type":372,"tag":386,"props":3491,"children":3493},{"className":3492},[],[3494],{"type":381,"value":747},{"type":381,"value":3496}," names too. Ask these customers to accept both before you switch them.",{"type":372,"tag":3439,"props":3498,"children":3499},{},[3500,3512,3514,3519],{"type":372,"tag":377,"props":3501,"children":3502},{},[3503,3505,3510],{"type":381,"value":3504},"Endpoints on asymmetric ",{"type":372,"tag":386,"props":3506,"children":3508},{"className":3507},[],[3509],{"type":381,"value":843},{"type":381,"value":3511}," keys:",{"type":381,"value":3513}," they get a new ",{"type":372,"tag":386,"props":3515,"children":3517},{"className":3516},[],[3518],{"type":381,"value":391},{"type":381,"value":3520}," secret. During the window, the receiver accepts either secret:",{"type":372,"tag":1261,"props":3522,"children":3523},{},[3524],{"type":372,"tag":1265,"props":3525,"children":3529},{"className":3526,"code":3527,"language":3528,"meta":345,"style":345},"language-js shiki shiki-themes github-dark","import { Webhook } from \"svix\";\n\n// Old Svix key and new Webhook Relay secret. Only needed for endpoints whose secret couldn't be imported.\nconst verifiers = [process.env.WEBHOOK_SECRET_RELAY, process.env.WEBHOOK_SECRET_SVIX]\n  .filter(Boolean)\n  .map((secret) => new Webhook(secret));\n\nexport function verify(rawBody, headers) {\n  for (const wh of verifiers) {\n    try {\n      return wh.verify(rawBody, headers); // accepts svix-* or webhook-* headers\n    } catch {}\n  }\n  throw new Error(\"invalid signature\");\n}\n","js",[3530],{"type":372,"tag":386,"props":3531,"children":3532},{"__ignoreMap":345},[3533,3557,3564,3572,3613,3631,3676,3683,3723,3754,3767,3795,3813,3821,3850],{"type":372,"tag":1275,"props":3534,"children":3535},{"class":1277,"line":1278},[3536,3540,3545,3549,3553],{"type":372,"tag":1275,"props":3537,"children":3538},{"style":1282},[3539],{"type":381,"value":1285},{"type":372,"tag":1275,"props":3541,"children":3542},{"style":1288},[3543],{"type":381,"value":3544}," { Webhook } ",{"type":372,"tag":1275,"props":3546,"children":3547},{"style":1282},[3548],{"type":381,"value":1296},{"type":372,"tag":1275,"props":3550,"children":3551},{"style":1299},[3552],{"type":381,"value":1302},{"type":372,"tag":1275,"props":3554,"children":3555},{"style":1288},[3556],{"type":381,"value":1307},{"type":372,"tag":1275,"props":3558,"children":3559},{"class":1277,"line":1310},[3560],{"type":372,"tag":1275,"props":3561,"children":3562},{"emptyLinePlaceholder":1314},[3563],{"type":381,"value":1317},{"type":372,"tag":1275,"props":3565,"children":3566},{"class":1277,"line":1320},[3567],{"type":372,"tag":1275,"props":3568,"children":3569},{"style":1578},[3570],{"type":381,"value":3571},"// Old Svix key and new Webhook Relay secret. Only needed for endpoints whose secret couldn't be imported.\n",{"type":372,"tag":1275,"props":3573,"children":3574},{"class":1277,"line":1371},[3575,3579,3584,3588,3593,3598,3603,3608],{"type":372,"tag":1275,"props":3576,"children":3577},{"style":1282},[3578],{"type":381,"value":1326},{"type":372,"tag":1275,"props":3580,"children":3581},{"style":1329},[3582],{"type":381,"value":3583}," verifiers",{"type":372,"tag":1275,"props":3585,"children":3586},{"style":1282},[3587],{"type":381,"value":1337},{"type":372,"tag":1275,"props":3589,"children":3590},{"style":1288},[3591],{"type":381,"value":3592}," [process.env.",{"type":372,"tag":1275,"props":3594,"children":3595},{"style":1329},[3596],{"type":381,"value":3597},"WEBHOOK_SECRET_RELAY",{"type":372,"tag":1275,"props":3599,"children":3600},{"style":1288},[3601],{"type":381,"value":3602},", process.env.",{"type":372,"tag":1275,"props":3604,"children":3605},{"style":1329},[3606],{"type":381,"value":3607},"WEBHOOK_SECRET_SVIX",{"type":372,"tag":1275,"props":3609,"children":3610},{"style":1288},[3611],{"type":381,"value":3612},"]\n",{"type":372,"tag":1275,"props":3614,"children":3615},{"class":1277,"line":1379},[3616,3621,3626],{"type":372,"tag":1275,"props":3617,"children":3618},{"style":1288},[3619],{"type":381,"value":3620},"  .",{"type":372,"tag":1275,"props":3622,"children":3623},{"style":1345},[3624],{"type":381,"value":3625},"filter",{"type":372,"tag":1275,"props":3627,"children":3628},{"style":1288},[3629],{"type":381,"value":3630},"(Boolean)\n",{"type":372,"tag":1275,"props":3632,"children":3633},{"class":1277,"line":1403},[3634,3638,3642,3647,3652,3657,3662,3666,3671],{"type":372,"tag":1275,"props":3635,"children":3636},{"style":1288},[3637],{"type":381,"value":3620},{"type":372,"tag":1275,"props":3639,"children":3640},{"style":1345},[3641],{"type":381,"value":1806},{"type":372,"tag":1275,"props":3643,"children":3644},{"style":1288},[3645],{"type":381,"value":3646},"((",{"type":372,"tag":1275,"props":3648,"children":3650},{"style":3649},"--shiki-default:#FFAB70",[3651],{"type":381,"value":574},{"type":372,"tag":1275,"props":3653,"children":3654},{"style":1288},[3655],{"type":381,"value":3656},") ",{"type":372,"tag":1275,"props":3658,"children":3659},{"style":1282},[3660],{"type":381,"value":3661},"=>",{"type":372,"tag":1275,"props":3663,"children":3664},{"style":1282},[3665],{"type":381,"value":1342},{"type":372,"tag":1275,"props":3667,"children":3668},{"style":1345},[3669],{"type":381,"value":3670}," Webhook",{"type":372,"tag":1275,"props":3672,"children":3673},{"style":1288},[3674],{"type":381,"value":3675},"(secret));\n",{"type":372,"tag":1275,"props":3677,"children":3678},{"class":1277,"line":1417},[3679],{"type":372,"tag":1275,"props":3680,"children":3681},{"emptyLinePlaceholder":1314},[3682],{"type":381,"value":1317},{"type":372,"tag":1275,"props":3684,"children":3685},{"class":1277,"line":1466},[3686,3691,3696,3701,3705,3710,3714,3718],{"type":372,"tag":1275,"props":3687,"children":3688},{"style":1282},[3689],{"type":381,"value":3690},"export",{"type":372,"tag":1275,"props":3692,"children":3693},{"style":1282},[3694],{"type":381,"value":3695}," function",{"type":372,"tag":1275,"props":3697,"children":3698},{"style":1345},[3699],{"type":381,"value":3700}," verify",{"type":372,"tag":1275,"props":3702,"children":3703},{"style":1288},[3704],{"type":381,"value":1926},{"type":372,"tag":1275,"props":3706,"children":3707},{"style":3649},[3708],{"type":381,"value":3709},"rawBody",{"type":372,"tag":1275,"props":3711,"children":3712},{"style":1288},[3713],{"type":381,"value":1758},{"type":372,"tag":1275,"props":3715,"children":3716},{"style":3649},[3717],{"type":381,"value":736},{"type":372,"tag":1275,"props":3719,"children":3720},{"style":1288},[3721],{"type":381,"value":3722},") {\n",{"type":372,"tag":1275,"props":3724,"children":3725},{"class":1277,"line":1485},[3726,3731,3735,3739,3744,3749],{"type":372,"tag":1275,"props":3727,"children":3728},{"style":1282},[3729],{"type":381,"value":3730},"  for",{"type":372,"tag":1275,"props":3732,"children":3733},{"style":1288},[3734],{"type":381,"value":604},{"type":372,"tag":1275,"props":3736,"children":3737},{"style":1282},[3738],{"type":381,"value":1326},{"type":372,"tag":1275,"props":3740,"children":3741},{"style":1329},[3742],{"type":381,"value":3743}," wh",{"type":372,"tag":1275,"props":3745,"children":3746},{"style":1282},[3747],{"type":381,"value":3748}," of",{"type":372,"tag":1275,"props":3750,"children":3751},{"style":1288},[3752],{"type":381,"value":3753}," verifiers) {\n",{"type":372,"tag":1275,"props":3755,"children":3756},{"class":1277,"line":1968},[3757,3762],{"type":372,"tag":1275,"props":3758,"children":3759},{"style":1282},[3760],{"type":381,"value":3761},"    try",{"type":372,"tag":1275,"props":3763,"children":3764},{"style":1288},[3765],{"type":381,"value":3766}," {\n",{"type":372,"tag":1275,"props":3768,"children":3769},{"class":1277,"line":1985},[3770,3775,3780,3785,3790],{"type":372,"tag":1275,"props":3771,"children":3772},{"style":1282},[3773],{"type":381,"value":3774},"      return",{"type":372,"tag":1275,"props":3776,"children":3777},{"style":1288},[3778],{"type":381,"value":3779}," wh.",{"type":372,"tag":1275,"props":3781,"children":3782},{"style":1345},[3783],{"type":381,"value":3784},"verify",{"type":372,"tag":1275,"props":3786,"children":3787},{"style":1288},[3788],{"type":381,"value":3789},"(rawBody, headers); ",{"type":372,"tag":1275,"props":3791,"children":3792},{"style":1578},[3793],{"type":381,"value":3794},"// accepts svix-* or webhook-* headers\n",{"type":372,"tag":1275,"props":3796,"children":3797},{"class":1277,"line":2002},[3798,3803,3808],{"type":372,"tag":1275,"props":3799,"children":3800},{"style":1288},[3801],{"type":381,"value":3802},"    } ",{"type":372,"tag":1275,"props":3804,"children":3805},{"style":1282},[3806],{"type":381,"value":3807},"catch",{"type":372,"tag":1275,"props":3809,"children":3810},{"style":1288},[3811],{"type":381,"value":3812}," {}\n",{"type":372,"tag":1275,"props":3814,"children":3815},{"class":1277,"line":2069},[3816],{"type":372,"tag":1275,"props":3817,"children":3818},{"style":1288},[3819],{"type":381,"value":3820},"  }\n",{"type":372,"tag":1275,"props":3822,"children":3823},{"class":1277,"line":2086},[3824,3829,3833,3837,3841,3846],{"type":372,"tag":1275,"props":3825,"children":3826},{"style":1282},[3827],{"type":381,"value":3828},"  throw",{"type":372,"tag":1275,"props":3830,"children":3831},{"style":1282},[3832],{"type":381,"value":1342},{"type":372,"tag":1275,"props":3834,"children":3835},{"style":1345},[3836],{"type":381,"value":2866},{"type":372,"tag":1275,"props":3838,"children":3839},{"style":1288},[3840],{"type":381,"value":1926},{"type":372,"tag":1275,"props":3842,"children":3843},{"style":1299},[3844],{"type":381,"value":3845},"\"invalid signature\"",{"type":372,"tag":1275,"props":3847,"children":3848},{"style":1288},[3849],{"type":381,"value":1368},{"type":372,"tag":1275,"props":3851,"children":3852},{"class":1277,"line":2833},[3853],{"type":372,"tag":1275,"props":3854,"children":3855},{"style":1288},[3856],{"type":381,"value":3857},"}\n",{"type":372,"tag":373,"props":3859,"children":3860},{},[3861],{"type":381,"value":3862},"If you rotate the imported secret later, Webhook Relay signs with both keys for 24 hours, the same as Svix.",{"type":372,"tag":447,"props":3864,"children":3866},{"id":3865},"cutover-plan",[3867],{"type":381,"value":3868},"Cutover plan",{"type":372,"tag":3870,"props":3871,"children":3872},"ol",{},[3873,3915,3953,4006,4030],{"type":372,"tag":3439,"props":3874,"children":3875},{},[3876,3881,3883,3889,3891,3897,3899,3905,3907,3913],{"type":372,"tag":377,"props":3877,"children":3878},{},[3879],{"type":381,"value":3880},"Import secrets.",{"type":381,"value":3882}," Run the ",{"type":372,"tag":416,"props":3884,"children":3886},{"href":3885},"#import-script",[3887],{"type":381,"value":3888},"import script",{"type":381,"value":3890}," with ",{"type":372,"tag":386,"props":3892,"children":3894},{"className":3893},[],[3895],{"type":381,"value":3896},"DRY_RUN=true",{"type":381,"value":3898},", review the report, then with ",{"type":372,"tag":386,"props":3900,"children":3902},{"className":3901},[],[3903],{"type":381,"value":3904},"DRY_RUN=false",{"type":381,"value":3906},". It creates event types, one consumer per Svix application and each endpoint with its current Svix secret, then pauses every new endpoint. ",{"type":372,"tag":3908,"props":3909,"children":3910},"em",{},[3911],{"type":381,"value":3912},"Rollback:",{"type":381,"value":3914}," nothing is live. Leave the endpoints paused or delete them.",{"type":372,"tag":3439,"props":3916,"children":3917},{},[3918,3923,3925,3930,3932,3937,3939,3945,3947,3951],{"type":372,"tag":377,"props":3919,"children":3920},{},[3921],{"type":381,"value":3922},"Dual publish.",{"type":381,"value":3924}," Next to every ",{"type":372,"tag":386,"props":3926,"children":3928},{"className":3927},[],[3929],{"type":381,"value":399},{"type":381,"value":3931},", call ",{"type":372,"tag":386,"props":3933,"children":3935},{"className":3934},[],[3936],{"type":381,"value":407},{"type":381,"value":3938}," with the same consumer, event type, payload and idempotency key, behind a feature flag. Svix still delivers. Webhook Relay records each message as ",{"type":372,"tag":386,"props":3940,"children":3942},{"className":3941},[],[3943],{"type":381,"value":3944},"rejected",{"type":381,"value":3946}," on the paused endpoints. ",{"type":372,"tag":3908,"props":3948,"children":3949},{},[3950],{"type":381,"value":3912},{"type":381,"value":3952}," turn the flag off.",{"type":372,"tag":3439,"props":3954,"children":3955},{},[3956,3961,3963,3969,3971,3976,3977,3983,3985,3991,3993,3998,4000,4004],{"type":372,"tag":377,"props":3957,"children":3958},{},[3959],{"type":381,"value":3960},"Switch, one customer at a time",{"type":381,"value":3962}," (needs approval). Resume the customer's Webhook Relay endpoints (",{"type":372,"tag":386,"props":3964,"children":3966},{"className":3965},[],[3967],{"type":381,"value":3968},"POST /v1/outbound/endpoints/{id}/resume",{"type":381,"value":3970},") and disable their Svix endpoints (",{"type":372,"tag":386,"props":3972,"children":3974},{"className":3973},[],[3975],{"type":381,"value":1186},{"type":381,"value":3890},{"type":372,"tag":386,"props":3978,"children":3980},{"className":3979},[],[3981],{"type":381,"value":3982},"\"disabled\": true",{"type":381,"value":3984},"). Don't delete anything, and don't call ",{"type":372,"tag":386,"props":3986,"children":3988},{"className":3987},[],[3989],{"type":381,"value":3990},"replay-missing",{"type":381,"value":3992}," for the shadow period: Svix already delivered those messages. Start with an internal test customer. Customers who read ",{"type":372,"tag":386,"props":3994,"children":3996},{"className":3995},[],[3997],{"type":381,"value":3485},{"type":381,"value":3999}," headers by name, or whose endpoint got a new secret, switch only after they confirm the receiver change above. ",{"type":372,"tag":3908,"props":4001,"children":4002},{},[4003],{"type":381,"value":3912},{"type":381,"value":4005}," pause the Webhook Relay endpoints and re-enable the Svix endpoints.",{"type":372,"tag":3439,"props":4007,"children":4008},{},[4009,4014,4016,4022,4024,4028],{"type":372,"tag":377,"props":4010,"children":4011},{},[4012],{"type":381,"value":4013},"End dual publish.",{"type":381,"value":4015}," When every customer is switched and Svix has no deliveries left in retry, remove the Svix call and the ",{"type":372,"tag":386,"props":4017,"children":4019},{"className":4018},[],[4020],{"type":381,"value":4021},"svix",{"type":381,"value":4023}," package from the publishing code. ",{"type":372,"tag":3908,"props":4025,"children":4026},{},[4027],{"type":381,"value":3912},{"type":381,"value":4029}," restore the Svix call; its applications and endpoints are untouched.",{"type":372,"tag":3439,"props":4031,"children":4032},{},[4033,4038],{"type":372,"tag":377,"props":4034,"children":4035},{},[4036],{"type":381,"value":4037},"Decommission.",{"type":381,"value":4039}," A human closes the Svix environment after exporting any history they need.",{"type":372,"tag":447,"props":4041,"children":4042},{"id":3784},[4043],{"type":381,"value":4044},"Verify",{"type":372,"tag":3870,"props":4046,"children":4047},{},[4048,4414,4434,4455,4490],{"type":372,"tag":3439,"props":4049,"children":4050},{},[4051,4053,4059,4061],{"type":381,"value":4052},"Create a free ",{"type":372,"tag":416,"props":4054,"children":4056},{"href":4055},"/webhook-bin",[4057],{"type":381,"value":4058},"Webhook Bin",{"type":381,"value":4060}," and add it as an endpoint of a test consumer with a test secret in Svix's format, so you prove the import path too:",{"type":372,"tag":1265,"props":4062,"children":4064},{"className":2103,"code":4063,"language":2105,"meta":345,"style":345},"BIN=$(curl -s -X POST https://bin.webhookrelay.com/v1/bins | jq -r .id)\nexport TEST_SECRET=\"whsec_$(openssl rand -base64 24)\"   # test-only secret\ncurl --user \"$RELAY_KEY:$RELAY_SECRET\" -X PUT https://my.webhookrelay.com/v1/outbound/consumers/migration-test \\\n  -H 'Content-Type: application/json' -d '{\"name\":\"Migration test\"}'\njq -n --arg url \"https://bin.webhookrelay.com/v1/webhooks/$BIN\" --arg secret \"$TEST_SECRET\" \\\n  '{url: $url, event_types: [\"*\"], secret: $secret}' |\ncurl -s --user \"$RELAY_KEY:$RELAY_SECRET\" -X POST https://my.webhookrelay.com/v1/outbound/consumers/migration-test/endpoints \\\n  -H 'Content-Type: application/json' --data @- | jq '{id, state}'\n",[4065],{"type":372,"tag":386,"props":4066,"children":4067},{"__ignoreMap":345},[4068,4131,4182,4231,4252,4315,4328,4380],{"type":372,"tag":1275,"props":4069,"children":4070},{"class":1277,"line":1278},[4071,4076,4080,4085,4089,4094,4098,4102,4107,4112,4117,4122,4127],{"type":372,"tag":1275,"props":4072,"children":4073},{"style":1288},[4074],{"type":381,"value":4075},"BIN",{"type":372,"tag":1275,"props":4077,"children":4078},{"style":1282},[4079],{"type":381,"value":2517},{"type":372,"tag":1275,"props":4081,"children":4082},{"style":1288},[4083],{"type":381,"value":4084},"$(",{"type":372,"tag":1275,"props":4086,"children":4087},{"style":1345},[4088],{"type":381,"value":2125},{"type":372,"tag":1275,"props":4090,"children":4091},{"style":1329},[4092],{"type":381,"value":4093}," -s",{"type":372,"tag":1275,"props":4095,"children":4096},{"style":1329},[4097],{"type":381,"value":2130},{"type":372,"tag":1275,"props":4099,"children":4100},{"style":1299},[4101],{"type":381,"value":2135},{"type":372,"tag":1275,"props":4103,"children":4104},{"style":1299},[4105],{"type":381,"value":4106}," https://bin.webhookrelay.com/v1/bins",{"type":372,"tag":1275,"props":4108,"children":4109},{"style":1282},[4110],{"type":381,"value":4111}," |",{"type":372,"tag":1275,"props":4113,"children":4114},{"style":1345},[4115],{"type":381,"value":4116}," jq",{"type":372,"tag":1275,"props":4118,"children":4119},{"style":1329},[4120],{"type":381,"value":4121}," -r",{"type":372,"tag":1275,"props":4123,"children":4124},{"style":1299},[4125],{"type":381,"value":4126}," .id",{"type":372,"tag":1275,"props":4128,"children":4129},{"style":1288},[4130],{"type":381,"value":1885},{"type":372,"tag":1275,"props":4132,"children":4133},{"class":1277,"line":1310},[4134,4138,4143,4147,4152,4157,4162,4167,4172,4177],{"type":372,"tag":1275,"props":4135,"children":4136},{"style":1282},[4137],{"type":381,"value":3690},{"type":372,"tag":1275,"props":4139,"children":4140},{"style":1288},[4141],{"type":381,"value":4142}," TEST_SECRET",{"type":372,"tag":1275,"props":4144,"children":4145},{"style":1282},[4146],{"type":381,"value":2517},{"type":372,"tag":1275,"props":4148,"children":4149},{"style":1299},[4150],{"type":381,"value":4151},"\"whsec_$(",{"type":372,"tag":1275,"props":4153,"children":4154},{"style":1345},[4155],{"type":381,"value":4156},"openssl",{"type":372,"tag":1275,"props":4158,"children":4159},{"style":1299},[4160],{"type":381,"value":4161}," rand ",{"type":372,"tag":1275,"props":4163,"children":4164},{"style":1329},[4165],{"type":381,"value":4166},"-base64",{"type":372,"tag":1275,"props":4168,"children":4169},{"style":1329},[4170],{"type":381,"value":4171}," 24",{"type":372,"tag":1275,"props":4173,"children":4174},{"style":1299},[4175],{"type":381,"value":4176},")\"",{"type":372,"tag":1275,"props":4178,"children":4179},{"style":1578},[4180],{"type":381,"value":4181},"   # test-only secret\n",{"type":372,"tag":1275,"props":4183,"children":4184},{"class":1277,"line":1320},[4185,4189,4193,4197,4201,4205,4209,4213,4217,4222,4227],{"type":372,"tag":1275,"props":4186,"children":4187},{"style":1345},[4188],{"type":381,"value":2125},{"type":372,"tag":1275,"props":4190,"children":4191},{"style":1329},[4192],{"type":381,"value":2238},{"type":372,"tag":1275,"props":4194,"children":4195},{"style":1299},[4196],{"type":381,"value":2243},{"type":372,"tag":1275,"props":4198,"children":4199},{"style":1288},[4200],{"type":381,"value":2248},{"type":372,"tag":1275,"props":4202,"children":4203},{"style":1299},[4204],{"type":381,"value":1503},{"type":372,"tag":1275,"props":4206,"children":4207},{"style":1288},[4208],{"type":381,"value":2257},{"type":372,"tag":1275,"props":4210,"children":4211},{"style":1299},[4212],{"type":381,"value":2168},{"type":372,"tag":1275,"props":4214,"children":4215},{"style":1329},[4216],{"type":381,"value":2130},{"type":372,"tag":1275,"props":4218,"children":4219},{"style":1299},[4220],{"type":381,"value":4221}," PUT",{"type":372,"tag":1275,"props":4223,"children":4224},{"style":1299},[4225],{"type":381,"value":4226}," https://my.webhookrelay.com/v1/outbound/consumers/migration-test",{"type":372,"tag":1275,"props":4228,"children":4229},{"style":1329},[4230],{"type":381,"value":2145},{"type":372,"tag":1275,"props":4232,"children":4233},{"class":1277,"line":1371},[4234,4238,4242,4247],{"type":372,"tag":1275,"props":4235,"children":4236},{"style":1329},[4237],{"type":381,"value":2153},{"type":372,"tag":1275,"props":4239,"children":4240},{"style":1299},[4241],{"type":381,"value":2178},{"type":372,"tag":1275,"props":4243,"children":4244},{"style":1329},[4245],{"type":381,"value":4246}," -d",{"type":372,"tag":1275,"props":4248,"children":4249},{"style":1299},[4250],{"type":381,"value":4251}," '{\"name\":\"Migration test\"}'\n",{"type":372,"tag":1275,"props":4253,"children":4254},{"class":1277,"line":1379},[4255,4260,4265,4270,4275,4280,4285,4289,4293,4298,4302,4307,4311],{"type":372,"tag":1275,"props":4256,"children":4257},{"style":1345},[4258],{"type":381,"value":4259},"jq",{"type":372,"tag":1275,"props":4261,"children":4262},{"style":1329},[4263],{"type":381,"value":4264}," -n",{"type":372,"tag":1275,"props":4266,"children":4267},{"style":1329},[4268],{"type":381,"value":4269}," --arg",{"type":372,"tag":1275,"props":4271,"children":4272},{"style":1299},[4273],{"type":381,"value":4274}," url",{"type":372,"tag":1275,"props":4276,"children":4277},{"style":1299},[4278],{"type":381,"value":4279}," \"https://bin.webhookrelay.com/v1/webhooks/",{"type":372,"tag":1275,"props":4281,"children":4282},{"style":1288},[4283],{"type":381,"value":4284},"$BIN",{"type":372,"tag":1275,"props":4286,"children":4287},{"style":1299},[4288],{"type":381,"value":2168},{"type":372,"tag":1275,"props":4290,"children":4291},{"style":1329},[4292],{"type":381,"value":4269},{"type":372,"tag":1275,"props":4294,"children":4295},{"style":1299},[4296],{"type":381,"value":4297}," secret",{"type":372,"tag":1275,"props":4299,"children":4300},{"style":1299},[4301],{"type":381,"value":2243},{"type":372,"tag":1275,"props":4303,"children":4304},{"style":1288},[4305],{"type":381,"value":4306},"$TEST_SECRET",{"type":372,"tag":1275,"props":4308,"children":4309},{"style":1299},[4310],{"type":381,"value":2168},{"type":372,"tag":1275,"props":4312,"children":4313},{"style":1329},[4314],{"type":381,"value":2145},{"type":372,"tag":1275,"props":4316,"children":4317},{"class":1277,"line":1403},[4318,4323],{"type":372,"tag":1275,"props":4319,"children":4320},{"style":1299},[4321],{"type":381,"value":4322},"  '{url: $url, event_types: [\"*\"], secret: $secret}'",{"type":372,"tag":1275,"props":4324,"children":4325},{"style":1282},[4326],{"type":381,"value":4327}," |\n",{"type":372,"tag":1275,"props":4329,"children":4330},{"class":1277,"line":1417},[4331,4335,4339,4343,4347,4351,4355,4359,4363,4367,4371,4376],{"type":372,"tag":1275,"props":4332,"children":4333},{"style":1345},[4334],{"type":381,"value":2125},{"type":372,"tag":1275,"props":4336,"children":4337},{"style":1329},[4338],{"type":381,"value":4093},{"type":372,"tag":1275,"props":4340,"children":4341},{"style":1329},[4342],{"type":381,"value":2238},{"type":372,"tag":1275,"props":4344,"children":4345},{"style":1299},[4346],{"type":381,"value":2243},{"type":372,"tag":1275,"props":4348,"children":4349},{"style":1288},[4350],{"type":381,"value":2248},{"type":372,"tag":1275,"props":4352,"children":4353},{"style":1299},[4354],{"type":381,"value":1503},{"type":372,"tag":1275,"props":4356,"children":4357},{"style":1288},[4358],{"type":381,"value":2257},{"type":372,"tag":1275,"props":4360,"children":4361},{"style":1299},[4362],{"type":381,"value":2168},{"type":372,"tag":1275,"props":4364,"children":4365},{"style":1329},[4366],{"type":381,"value":2130},{"type":372,"tag":1275,"props":4368,"children":4369},{"style":1299},[4370],{"type":381,"value":2135},{"type":372,"tag":1275,"props":4372,"children":4373},{"style":1299},[4374],{"type":381,"value":4375}," https://my.webhookrelay.com/v1/outbound/consumers/migration-test/endpoints",{"type":372,"tag":1275,"props":4377,"children":4378},{"style":1329},[4379],{"type":381,"value":2145},{"type":372,"tag":1275,"props":4381,"children":4382},{"class":1277,"line":1466},[4383,4387,4391,4396,4401,4405,4409],{"type":372,"tag":1275,"props":4384,"children":4385},{"style":1329},[4386],{"type":381,"value":2153},{"type":372,"tag":1275,"props":4388,"children":4389},{"style":1299},[4390],{"type":381,"value":2178},{"type":372,"tag":1275,"props":4392,"children":4393},{"style":1329},[4394],{"type":381,"value":4395}," --data",{"type":372,"tag":1275,"props":4397,"children":4398},{"style":1299},[4399],{"type":381,"value":4400}," @-",{"type":372,"tag":1275,"props":4402,"children":4403},{"style":1282},[4404],{"type":381,"value":4111},{"type":372,"tag":1275,"props":4406,"children":4407},{"style":1345},[4408],{"type":381,"value":4116},{"type":372,"tag":1275,"props":4410,"children":4411},{"style":1299},[4412],{"type":381,"value":4413}," '{id, state}'\n",{"type":372,"tag":3439,"props":4415,"children":4416},{},[4417,4419,4425,4427,4433],{"type":381,"value":4418},"Publish a test message to ",{"type":372,"tag":386,"props":4420,"children":4422},{"className":4421},[],[4423],{"type":381,"value":4424},"migration-test",{"type":381,"value":4426}," through your new code path and read the capture with ",{"type":372,"tag":386,"props":4428,"children":4430},{"className":4429},[],[4431],{"type":381,"value":4432},"curl -s https://bin.webhookrelay.com/v1/bins/$BIN | jq '.requests[0]'",{"type":381,"value":445},{"type":372,"tag":3439,"props":4435,"children":4436},{},[4437,4439,4445,4447,4453],{"type":381,"value":4438},"Verify the capture with ",{"type":372,"tag":386,"props":4440,"children":4442},{"className":4441},[],[4443],{"type":381,"value":4444},"TEST_SECRET",{"type":381,"value":4446}," using your customers' sample receiver code and a Svix library, or paste it into the ",{"type":372,"tag":416,"props":4448,"children":4450},{"href":4449},"/verify-standard-webhooks-signature",[4451],{"type":381,"value":4452},"Standard Webhooks signature verifier",{"type":381,"value":4454},". It must pass without any code change.",{"type":372,"tag":3439,"props":4456,"children":4457},{},[4458,4460,4466,4468,4474,4476,4481,4483,4489],{"type":381,"value":4459},"During dual publishing, compare per customer and event type: Svix's message count (",{"type":372,"tag":386,"props":4461,"children":4463},{"className":4462},[],[4464],{"type":381,"value":4465},"GET /api/v1/app/{app_id}/msg",{"type":381,"value":4467},") against ",{"type":372,"tag":386,"props":4469,"children":4471},{"className":4470},[],[4472],{"type":381,"value":4473},"GET /v1/outbound/messages?consumer=\u003Cid>",{"type":381,"value":4475},", and confirm each paused endpoint shows the expected ",{"type":372,"tag":386,"props":4477,"children":4479},{"className":4478},[],[4480],{"type":381,"value":3944},{"type":381,"value":4482}," deliveries (",{"type":372,"tag":386,"props":4484,"children":4486},{"className":4485},[],[4487],{"type":381,"value":4488},"GET /v1/outbound/endpoints/{id}/deliveries?status=rejected",{"type":381,"value":2649},{"type":372,"tag":3439,"props":4491,"children":4492},{},[4493,4495,4501,4502,4507,4509,4515,4517,4522],{"type":381,"value":4494},"After switching a customer, check ",{"type":372,"tag":386,"props":4496,"children":4498},{"className":4497},[],[4499],{"type":381,"value":4500},"GET /v1/outbound/endpoints/{id}/deliveries?status=failed",{"type":381,"value":1758},{"type":372,"tag":386,"props":4503,"children":4505},{"className":4504},[],[4506],{"type":381,"value":1232},{"type":381,"value":4508}," and ",{"type":372,"tag":386,"props":4510,"children":4512},{"className":4511},[],[4513],{"type":381,"value":4514},"GET /v1/outbound/health",{"type":381,"value":4516},", or the dashboard's ",{"type":372,"tag":377,"props":4518,"children":4519},{},[4520],{"type":381,"value":4521},"Endpoint health",{"type":381,"value":4523}," tab.",{"type":372,"tag":447,"props":4525,"children":4527},{"id":4526},"import-script",[4528],{"type":381,"value":4529},"Import script",{"type":372,"tag":373,"props":4531,"children":4532},{},[4533,4535,4540,4542,4548],{"type":381,"value":4534},"This script reads Svix (read-only), including each endpoint's secret, and creates the same configuration in Webhook Relay. It checks your plan limits before writing anything, keeps secrets in memory only (never printed, logged or written to the state file), pauses every endpoint it creates, and stops at the first error with its progress saved, so you can fix the cause and run it again. Endpoints are created with the REST call because the SDKs don't expose ",{"type":372,"tag":386,"props":4536,"children":4538},{"className":4537},[],[4539],{"type":381,"value":574},{"type":381,"value":4541}," until their next release. Run it with ",{"type":372,"tag":386,"props":4543,"children":4545},{"className":4544},[],[4546],{"type":381,"value":4547},"npx tsx migrate-svix.mts",{"type":381,"value":445},{"type":372,"tag":1261,"props":4550,"children":4551},{},[4552],{"type":372,"tag":1265,"props":4553,"children":4555},{"className":1267,"code":4554,"language":1269,"meta":345,"style":345},"// migrate-svix.mts\n// Env: SVIX_TOKEN, SVIX_API_URL (your region, e.g. https://api.us.svix.com or https://api.eu.svix.com),\n//      RELAY_KEY, RELAY_SECRET (token with \"Outbound: manage\"), DRY_RUN=false to write.\nimport { existsSync, readFileSync, writeFileSync } from \"node:fs\";\nimport { WebhookRelay, WebhookRelayAPIError } from \"@webhookrelay/sdk\";\n\nconst SVIX_API = process.env.SVIX_API_URL ?? \"https://api.us.svix.com\";\nconst RELAY_API = \"https://my.webhookrelay.com\";\nconst RELAY_AUTH = `Basic ${Buffer.from(`${process.env.RELAY_KEY}:${process.env.RELAY_SECRET}`).toString(\"base64\")}`;\nconst DRY_RUN = process.env.DRY_RUN !== \"false\";\nconst STATE_FILE = \"migration-state.json\"; // source endpoint ID -> Webhook Relay endpoint ID. Never secrets.\nconst ID = /^[a-zA-Z0-9][a-zA-Z0-9_.:-]{0,127}$/;\nconst RESERVED = /^(webhook-|host$|content-length$|transfer-encoding$|connection$)/i;\n// Svix's own symmetric secret format, which Webhook Relay accepts as is. Asymmetric whsk_ keys don't match.\nconst IMPORTABLE = /^(whsec_)?[A-Za-z0-9+/=]{32,100}$/;\n\nconst relay = new WebhookRelay();\n\ntype PlanEndpoint = {\n  sourceId: string; url: string; eventTypes: string[]; description?: string;\n  headers?: Record\u003Cstring, string>; rate?: number; disabledAtSource?: boolean;\n  secret?: string; // held in memory only\n};\ntype Plan = {\n  eventTypes: { name: string; description?: string; deprecated?: boolean }[];\n  consumers: { id: string; name?: string; endpoints: PlanEndpoint[] }[];\n  warnings: string[];\n};\n\n// ---- 1. Export from Svix (read-only) ----\nasync function svix\u003CT>(path: string, query: Record\u003Cstring, string> = {}): Promise\u003CT> {\n  const url = new URL(path, SVIX_API);\n  for (const [k, v] of Object.entries(query)) url.searchParams.set(k, v);\n  const res = await fetch(url, { headers: { Authorization: `Bearer ${process.env.SVIX_TOKEN}` } });\n  if (!res.ok) throw new Error(`Svix GET ${path}: ${res.status}`); // no body: the secret route's body is the secret\n  return res.json() as Promise\u003CT>;\n}\n\nasync function* svixList\u003CT>(path: string): AsyncGenerator\u003CT> {\n  let iterator: string | undefined;\n  for (;;) {\n    const page = await svix\u003C{ data: T[]; done: boolean; iterator: string }>(path, {\n      limit: \"100\", ...(iterator ? { iterator } : {}),\n    });\n    yield* page.data;\n    if (page.done) return;\n    iterator = page.iterator;\n  }\n}\n\nasync function exportPlan(): Promise\u003CPlan> {\n  const plan: Plan = { eventTypes: [], consumers: [], warnings: [] };\n  for await (const et of svixList\u003Cany>(\"/api/v1/event-type\")) {\n    if (!et.archived) plan.eventTypes.push({ name: et.name, description: et.description, deprecated: et.deprecated });\n  }\n  for await (const app of svixList\u003Cany>(\"/api/v1/app\")) {\n    const consumer = { id: app.uid ?? app.id, name: app.name, endpoints: [] as PlanEndpoint[] };\n    for await (const ep of svixList\u003Cany>(`/api/v1/app/${app.id}/endpoint`)) {\n      const h = await svix\u003C{ headers: Record\u003Cstring, string>; sensitive: string[] }>(\n        `/api/v1/app/${app.id}/endpoint/${ep.id}/headers`);\n      const headers = Object.fromEntries(Object.entries(h.headers).filter(([k]) => !RESERVED.test(k)));\n      if (h.sensitive.length) plan.warnings.push(`${consumer.id} ${ep.url}: re-enter redacted headers by hand: ${h.sensitive.join(\", \")}`);\n      if (ep.channels?.length) plan.warnings.push(`${consumer.id} ${ep.url}: channels ${ep.channels.join(\", \")} have no equivalent`);\n\n      const { key } = await svix\u003C{ key: string }>(`/api/v1/app/${app.id}/endpoint/${ep.id}/secret`);\n      const secret = IMPORTABLE.test(key) ? key : undefined;\n      if (!secret) plan.warnings.push(`${consumer.id} endpoint ${ep.id}: asymmetric key, gets a NEW secret (receiver must accept both)`);\n\n      consumer.endpoints.push({\n        sourceId: ep.id, url: ep.url,\n        eventTypes: ep.eventTypes?.length ? ep.eventTypes : [\"*\"],\n        description: ep.description || undefined, headers,\n        rate: ep.throttleRate ? Math.min(ep.throttleRate, 1000) : undefined,\n        disabledAtSource: ep.disabled, secret,\n      });\n    }\n    plan.consumers.push(consumer);\n  }\n  return plan;\n}\n\n// ---- 2. Check access and limits before writing anything ----\nasync function checkPlan(plan: Plan) {\n  const res = await fetch(`${RELAY_API}/v1/outbound/access`, { headers: { Authorization: RELAY_AUTH } });\n  const access = await res.json();\n  if (!access.enabled) throw new Error(\"The Outbound Gateway needs a Basic, Business or Pro plan: upgrade at https://my.webhookrelay.com/account\");\n  const limits = access.limits as { consumers: number; endpoints_per_consumer: number; event_types: number };\n\n  const haveConsumers = new Set((await relay.outbound.consumers.list()).map((c) => c.id));\n  const haveTypes = new Set((await relay.outbound.eventTypes.list()).map((e) => e.name));\n  const consumers = new Set([...haveConsumers, ...plan.consumers.map((c) => c.id)]).size;\n  const types = new Set([...haveTypes, ...plan.eventTypes.map((e) => e.name)]).size;\n\n  const problems: string[] = [];\n  if (consumers > limits.consumers) problems.push(`${consumers} consumers exceed the limit of ${limits.consumers}`);\n  if (types > limits.event_types) problems.push(`${types} event types exceed the limit of ${limits.event_types}`);\n  for (const et of plan.eventTypes) if (!ID.test(et.name)) problems.push(`event type \"${et.name}\" is not a valid name`);\n  for (const c of plan.consumers) {\n    if (!ID.test(c.id)) problems.push(`consumer \"${c.id}\" is not a valid ID: map it to your own customer ID`);\n    if (c.endpoints.length > limits.endpoints_per_consumer)\n      problems.push(`${c.id} has ${c.endpoints.length} endpoints, the limit is ${limits.endpoints_per_consumer}`);\n    for (const e of c.endpoints) {\n      if (!e.url.startsWith(\"https://\")) problems.push(`${c.id} ${e.url}: endpoints must be public HTTPS`);\n      if (e.eventTypes.length > 100) problems.push(`${c.id} ${e.url}: more than 100 event types`);\n    }\n  }\n  for (const w of plan.warnings) console.warn(`warning: ${w}`);\n  if (problems.length) {\n    console.error(`Not importing:\\n- ${problems.join(\"\\n- \")}`);\n    process.exit(1);\n  }\n}\n\n// ---- 3. Import into Webhook Relay ----\nconst state: Record\u003Cstring, string> = existsSync(STATE_FILE) ? JSON.parse(readFileSync(STATE_FILE, \"utf8\")) : {};\n\nclass RelayError extends Error {\n  constructor(readonly status: number, message: string) { super(message); }\n}\n\n// REST create, because the SDKs expose `secret` only from their next release. Errors never echo the secret.\nasync function createEndpoint(consumer: string, e: PlanEndpoint): Promise\u003Cstring> {\n  const res = await fetch(`${RELAY_API}/v1/outbound/consumers/${encodeURIComponent(consumer)}/endpoints`, {\n    method: \"POST\",\n    headers: { Authorization: RELAY_AUTH, \"Content-Type\": \"application/json\" },\n    body: JSON.stringify({\n      url: e.url, event_types: e.eventTypes, description: e.description, headers: e.headers, rate: e.rate,\n      ...(e.secret ? { secret: e.secret } : {}),\n    }),\n  });\n  if (!res.ok) throw new RelayError(res.status, `create endpoint: ${res.status} ${await res.text()}`);\n  const { id } = (await res.json()) as { id: string }; // the response also carries the secret: don't log or store it\n  return id;\n}\n\nasync function step\u003CT>(what: string, fn: () => Promise\u003CT>): Promise\u003CT> {\n  for (let attempt = 1; ; attempt++) {\n    try {\n      return await fn();\n    } catch (err) {\n      const status = err instanceof WebhookRelayAPIError || err instanceof RelayError ? err.status : 0;\n      if (status === 429 && attempt \u003C 5) {\n        await new Promise((r) => setTimeout(r, attempt * 2000));\n        continue;\n      }\n      console.error(`Stopped at ${what}: ${err instanceof Error ? err.message : String(err)}`);\n      console.error(`Progress is saved in ${STATE_FILE}. Fix the cause and run the script again.`);\n      process.exit(1);\n    }\n  }\n}\n\nasync function importPlan(plan: Plan) {\n  for (const et of plan.eventTypes) {\n    await step(`event type ${et.name}`, () =>\n      relay.outbound.eventTypes.upsert(et.name, { description: et.description, deprecated: et.deprecated }));\n  }\n  for (const c of plan.consumers) {\n    await step(`consumer ${c.id}`, () => relay.outbound.consumers.upsert(c.id, { name: c.name }));\n    for (const e of c.endpoints) {\n      if (state[e.sourceId]) continue; // imported on an earlier run\n      const { id, created } = await step(`endpoint ${c.id} ${e.url}`, async () => {\n        try {\n          return { id: await createEndpoint(c.id, e), created: true };\n        } catch (err) {\n          if (err instanceof RelayError && err.status === 409) {\n            const existing = (await relay.outbound.endpoints.list(c.id)).find((x) => x.url === e.url);\n            if (existing) return { id: existing.id, created: false }; // already there: leave its state alone\n          }\n          throw err;\n        }\n      });\n      if (created) await step(`pause ${id}`, () => relay.outbound.endpoints.pause(id));\n      state[e.sourceId] = id;\n      writeFileSync(STATE_FILE, JSON.stringify(state, null, 2));\n      const secretNote = !created ? \"\" : e.secret ? \" secret imported\" : \" NEW secret\";\n      console.log(`${c.id}: ${e.url} -> ${id} ${created ? \"(created, paused)\" : \"(already existed, unchanged)\"}${secretNote}${e.disabledAtSource ? \" [disabled at Svix]\" : \"\"}`);\n    }\n  }\n}\n\nconst plan = await exportPlan();\nawait checkPlan(plan);\nconst endpoints = plan.consumers.flatMap((c) => c.endpoints);\nconst imported = endpoints.filter((e) => e.secret).length;\nconsole.log(`Plan: ${plan.eventTypes.length} event types, ${plan.consumers.length} consumers, ${endpoints.length} endpoints (${imported} with imported secrets).`);\nif (DRY_RUN) console.log(\"Dry run: nothing was written. Run again with DRY_RUN=false to import.\");\nelse await importPlan(plan);\n",[4556],{"type":372,"tag":386,"props":4557,"children":4558},{"__ignoreMap":345},[4559,4567,4575,4583,4608,4632,4639,4679,4704,4822,4861,4892,4937,5027,5035,5087,5094,5121,5128,5149,5222,5296,5321,5329,5349,5417,5484,5506,5514,5522,5531,5644,5684,5754,5817,5893,5937,5945,5953,6020,6055,6068,6152,6198,6207,6221,6244,6262,6270,6278,6286,6329,6359,6414,6445,6453,6507,6552,6625,6705,6753,6839,6953,7061,7069,7163,7217,7288,7296,7314,7323,7363,7386,7435,7444,7453,7462,7480,7488,7501,7509,7517,7526,7564,7620,7653,7699,7780,7788,7862,7934,8007,8079,8087,8122,8187,8251,8345,8375,8442,8469,8552,8582,8671,8751,8759,8767,8824,8845,8920,8947,8955,8963,8971,8980,9101,9109,9136,9199,9207,9215,9224,9297,9364,9381,9414,9439,9448,9479,9488,9497,9582,9657,9670,9678,9686,9787,9832,9844,9865,9882,9952,9997,10056,10069,10078,10169,10203,10228,10236,10244,10252,10260,10297,10326,10374,10392,10400,10428,10486,10514,10541,10643,10656,10691,10708,10751,10826,10863,10872,10886,10895,10903,10963,10980,11036,11102,11230,11238,11246,11254,11262,11290,11307,11355,11410,11513,11551],{"type":372,"tag":1275,"props":4560,"children":4561},{"class":1277,"line":1278},[4562],{"type":372,"tag":1275,"props":4563,"children":4564},{"style":1578},[4565],{"type":381,"value":4566},"// migrate-svix.mts\n",{"type":372,"tag":1275,"props":4568,"children":4569},{"class":1277,"line":1310},[4570],{"type":372,"tag":1275,"props":4571,"children":4572},{"style":1578},[4573],{"type":381,"value":4574},"// Env: SVIX_TOKEN, SVIX_API_URL (your region, e.g. https://api.us.svix.com or https://api.eu.svix.com),\n",{"type":372,"tag":1275,"props":4576,"children":4577},{"class":1277,"line":1320},[4578],{"type":372,"tag":1275,"props":4579,"children":4580},{"style":1578},[4581],{"type":381,"value":4582},"//      RELAY_KEY, RELAY_SECRET (token with \"Outbound: manage\"), DRY_RUN=false to write.\n",{"type":372,"tag":1275,"props":4584,"children":4585},{"class":1277,"line":1371},[4586,4590,4595,4599,4604],{"type":372,"tag":1275,"props":4587,"children":4588},{"style":1282},[4589],{"type":381,"value":1285},{"type":372,"tag":1275,"props":4591,"children":4592},{"style":1288},[4593],{"type":381,"value":4594}," { existsSync, readFileSync, writeFileSync } ",{"type":372,"tag":1275,"props":4596,"children":4597},{"style":1282},[4598],{"type":381,"value":1296},{"type":372,"tag":1275,"props":4600,"children":4601},{"style":1299},[4602],{"type":381,"value":4603}," \"node:fs\"",{"type":372,"tag":1275,"props":4605,"children":4606},{"style":1288},[4607],{"type":381,"value":1307},{"type":372,"tag":1275,"props":4609,"children":4610},{"class":1277,"line":1379},[4611,4615,4620,4624,4628],{"type":372,"tag":1275,"props":4612,"children":4613},{"style":1282},[4614],{"type":381,"value":1285},{"type":372,"tag":1275,"props":4616,"children":4617},{"style":1288},[4618],{"type":381,"value":4619}," { WebhookRelay, WebhookRelayAPIError } ",{"type":372,"tag":1275,"props":4621,"children":4622},{"style":1282},[4623],{"type":381,"value":1296},{"type":372,"tag":1275,"props":4625,"children":4626},{"style":1299},[4627],{"type":381,"value":1534},{"type":372,"tag":1275,"props":4629,"children":4630},{"style":1288},[4631],{"type":381,"value":1307},{"type":372,"tag":1275,"props":4633,"children":4634},{"class":1277,"line":1403},[4635],{"type":372,"tag":1275,"props":4636,"children":4637},{"emptyLinePlaceholder":1314},[4638],{"type":381,"value":1317},{"type":372,"tag":1275,"props":4640,"children":4641},{"class":1277,"line":1417},[4642,4646,4651,4655,4660,4665,4670,4675],{"type":372,"tag":1275,"props":4643,"children":4644},{"style":1282},[4645],{"type":381,"value":1326},{"type":372,"tag":1275,"props":4647,"children":4648},{"style":1329},[4649],{"type":381,"value":4650}," SVIX_API",{"type":372,"tag":1275,"props":4652,"children":4653},{"style":1282},[4654],{"type":381,"value":1337},{"type":372,"tag":1275,"props":4656,"children":4657},{"style":1288},[4658],{"type":381,"value":4659}," process.env.",{"type":372,"tag":1275,"props":4661,"children":4662},{"style":1329},[4663],{"type":381,"value":4664},"SVIX_API_URL",{"type":372,"tag":1275,"props":4666,"children":4667},{"style":1282},[4668],{"type":381,"value":4669}," ??",{"type":372,"tag":1275,"props":4671,"children":4672},{"style":1299},[4673],{"type":381,"value":4674}," \"https://api.us.svix.com\"",{"type":372,"tag":1275,"props":4676,"children":4677},{"style":1288},[4678],{"type":381,"value":1307},{"type":372,"tag":1275,"props":4680,"children":4681},{"class":1277,"line":1466},[4682,4686,4691,4695,4700],{"type":372,"tag":1275,"props":4683,"children":4684},{"style":1282},[4685],{"type":381,"value":1326},{"type":372,"tag":1275,"props":4687,"children":4688},{"style":1329},[4689],{"type":381,"value":4690}," RELAY_API",{"type":372,"tag":1275,"props":4692,"children":4693},{"style":1282},[4694],{"type":381,"value":1337},{"type":372,"tag":1275,"props":4696,"children":4697},{"style":1299},[4698],{"type":381,"value":4699}," \"https://my.webhookrelay.com\"",{"type":372,"tag":1275,"props":4701,"children":4702},{"style":1288},[4703],{"type":381,"value":1307},{"type":372,"tag":1275,"props":4705,"children":4706},{"class":1277,"line":1485},[4707,4711,4716,4720,4725,4730,4734,4738,4742,4746,4750,4754,4758,4762,4766,4770,4774,4778,4782,4786,4790,4794,4798,4802,4806,4810,4814,4818],{"type":372,"tag":1275,"props":4708,"children":4709},{"style":1282},[4710],{"type":381,"value":1326},{"type":372,"tag":1275,"props":4712,"children":4713},{"style":1329},[4714],{"type":381,"value":4715}," RELAY_AUTH",{"type":372,"tag":1275,"props":4717,"children":4718},{"style":1282},[4719],{"type":381,"value":1337},{"type":372,"tag":1275,"props":4721,"children":4722},{"style":1299},[4723],{"type":381,"value":4724}," `Basic ${",{"type":372,"tag":1275,"props":4726,"children":4727},{"style":1288},[4728],{"type":381,"value":4729},"Buffer",{"type":372,"tag":1275,"props":4731,"children":4732},{"style":1299},[4733],{"type":381,"value":445},{"type":372,"tag":1275,"props":4735,"children":4736},{"style":1345},[4737],{"type":381,"value":1296},{"type":372,"tag":1275,"props":4739,"children":4740},{"style":1299},[4741],{"type":381,"value":1926},{"type":372,"tag":1275,"props":4743,"children":4744},{"style":1299},[4745],{"type":381,"value":2590},{"type":372,"tag":1275,"props":4747,"children":4748},{"style":1288},[4749],{"type":381,"value":2595},{"type":372,"tag":1275,"props":4751,"children":4752},{"style":1299},[4753],{"type":381,"value":445},{"type":372,"tag":1275,"props":4755,"children":4756},{"style":1288},[4757],{"type":381,"value":2604},{"type":372,"tag":1275,"props":4759,"children":4760},{"style":1299},[4761],{"type":381,"value":445},{"type":372,"tag":1275,"props":4763,"children":4764},{"style":1329},[4765],{"type":381,"value":2613},{"type":372,"tag":1275,"props":4767,"children":4768},{"style":1299},[4769],{"type":381,"value":2618},{"type":372,"tag":1275,"props":4771,"children":4772},{"style":1288},[4773],{"type":381,"value":2595},{"type":372,"tag":1275,"props":4775,"children":4776},{"style":1299},[4777],{"type":381,"value":445},{"type":372,"tag":1275,"props":4779,"children":4780},{"style":1288},[4781],{"type":381,"value":2604},{"type":372,"tag":1275,"props":4783,"children":4784},{"style":1299},[4785],{"type":381,"value":445},{"type":372,"tag":1275,"props":4787,"children":4788},{"style":1329},[4789],{"type":381,"value":2639},{"type":372,"tag":1275,"props":4791,"children":4792},{"style":1299},[4793],{"type":381,"value":2644},{"type":372,"tag":1275,"props":4795,"children":4796},{"style":1299},[4797],{"type":381,"value":2649},{"type":372,"tag":1275,"props":4799,"children":4800},{"style":1345},[4801],{"type":381,"value":2654},{"type":372,"tag":1275,"props":4803,"children":4804},{"style":1299},[4805],{"type":381,"value":1926},{"type":372,"tag":1275,"props":4807,"children":4808},{"style":1299},[4809],{"type":381,"value":2663},{"type":372,"tag":1275,"props":4811,"children":4812},{"style":1299},[4813],{"type":381,"value":852},{"type":372,"tag":1275,"props":4815,"children":4816},{"style":1299},[4817],{"type":381,"value":2644},{"type":372,"tag":1275,"props":4819,"children":4820},{"style":1288},[4821],{"type":381,"value":1307},{"type":372,"tag":1275,"props":4823,"children":4824},{"class":1277,"line":1968},[4825,4829,4834,4838,4842,4847,4852,4857],{"type":372,"tag":1275,"props":4826,"children":4827},{"style":1282},[4828],{"type":381,"value":1326},{"type":372,"tag":1275,"props":4830,"children":4831},{"style":1329},[4832],{"type":381,"value":4833}," DRY_RUN",{"type":372,"tag":1275,"props":4835,"children":4836},{"style":1282},[4837],{"type":381,"value":1337},{"type":372,"tag":1275,"props":4839,"children":4840},{"style":1288},[4841],{"type":381,"value":4659},{"type":372,"tag":1275,"props":4843,"children":4844},{"style":1329},[4845],{"type":381,"value":4846},"DRY_RUN",{"type":372,"tag":1275,"props":4848,"children":4849},{"style":1282},[4850],{"type":381,"value":4851}," !==",{"type":372,"tag":1275,"props":4853,"children":4854},{"style":1299},[4855],{"type":381,"value":4856}," \"false\"",{"type":372,"tag":1275,"props":4858,"children":4859},{"style":1288},[4860],{"type":381,"value":1307},{"type":372,"tag":1275,"props":4862,"children":4863},{"class":1277,"line":1985},[4864,4868,4873,4877,4882,4887],{"type":372,"tag":1275,"props":4865,"children":4866},{"style":1282},[4867],{"type":381,"value":1326},{"type":372,"tag":1275,"props":4869,"children":4870},{"style":1329},[4871],{"type":381,"value":4872}," STATE_FILE",{"type":372,"tag":1275,"props":4874,"children":4875},{"style":1282},[4876],{"type":381,"value":1337},{"type":372,"tag":1275,"props":4878,"children":4879},{"style":1299},[4880],{"type":381,"value":4881}," \"migration-state.json\"",{"type":372,"tag":1275,"props":4883,"children":4884},{"style":1288},[4885],{"type":381,"value":4886},"; ",{"type":372,"tag":1275,"props":4888,"children":4889},{"style":1578},[4890],{"type":381,"value":4891},"// source endpoint ID -> Webhook Relay endpoint ID. Never secrets.\n",{"type":372,"tag":1275,"props":4893,"children":4894},{"class":1277,"line":2002},[4895,4899,4904,4908,4913,4918,4923,4928,4933],{"type":372,"tag":1275,"props":4896,"children":4897},{"style":1282},[4898],{"type":381,"value":1326},{"type":372,"tag":1275,"props":4900,"children":4901},{"style":1329},[4902],{"type":381,"value":4903}," ID",{"type":372,"tag":1275,"props":4905,"children":4906},{"style":1282},[4907],{"type":381,"value":1337},{"type":372,"tag":1275,"props":4909,"children":4910},{"style":1299},[4911],{"type":381,"value":4912}," /",{"type":372,"tag":1275,"props":4914,"children":4915},{"style":1282},[4916],{"type":381,"value":4917},"^",{"type":372,"tag":1275,"props":4919,"children":4920},{"style":1329},[4921],{"type":381,"value":4922},"[a-zA-Z0-9][a-zA-Z0-9_.:-]",{"type":372,"tag":1275,"props":4924,"children":4925},{"style":1282},[4926],{"type":381,"value":4927},"{0,127}$",{"type":372,"tag":1275,"props":4929,"children":4930},{"style":1299},[4931],{"type":381,"value":4932},"/",{"type":372,"tag":1275,"props":4934,"children":4935},{"style":1288},[4936],{"type":381,"value":1307},{"type":372,"tag":1275,"props":4938,"children":4939},{"class":1277,"line":2069},[4940,4944,4949,4953,4957,4961,4967,4972,4977,4982,4987,4991,4996,5000,5005,5010,5014,5018,5023],{"type":372,"tag":1275,"props":4941,"children":4942},{"style":1282},[4943],{"type":381,"value":1326},{"type":372,"tag":1275,"props":4945,"children":4946},{"style":1329},[4947],{"type":381,"value":4948}," RESERVED",{"type":372,"tag":1275,"props":4950,"children":4951},{"style":1282},[4952],{"type":381,"value":1337},{"type":372,"tag":1275,"props":4954,"children":4955},{"style":1299},[4956],{"type":381,"value":4912},{"type":372,"tag":1275,"props":4958,"children":4959},{"style":1282},[4960],{"type":381,"value":4917},{"type":372,"tag":1275,"props":4962,"children":4964},{"style":4963},"--shiki-default:#DBEDFF",[4965],{"type":381,"value":4966},"(webhook-",{"type":372,"tag":1275,"props":4968,"children":4969},{"style":1282},[4970],{"type":381,"value":4971},"|",{"type":372,"tag":1275,"props":4973,"children":4974},{"style":4963},[4975],{"type":381,"value":4976},"host",{"type":372,"tag":1275,"props":4978,"children":4979},{"style":1282},[4980],{"type":381,"value":4981},"$|",{"type":372,"tag":1275,"props":4983,"children":4984},{"style":4963},[4985],{"type":381,"value":4986},"content-length",{"type":372,"tag":1275,"props":4988,"children":4989},{"style":1282},[4990],{"type":381,"value":4981},{"type":372,"tag":1275,"props":4992,"children":4993},{"style":4963},[4994],{"type":381,"value":4995},"transfer-encoding",{"type":372,"tag":1275,"props":4997,"children":4998},{"style":1282},[4999],{"type":381,"value":4981},{"type":372,"tag":1275,"props":5001,"children":5002},{"style":4963},[5003],{"type":381,"value":5004},"connection",{"type":372,"tag":1275,"props":5006,"children":5007},{"style":1282},[5008],{"type":381,"value":5009},"$",{"type":372,"tag":1275,"props":5011,"children":5012},{"style":4963},[5013],{"type":381,"value":852},{"type":372,"tag":1275,"props":5015,"children":5016},{"style":1299},[5017],{"type":381,"value":4932},{"type":372,"tag":1275,"props":5019,"children":5020},{"style":1282},[5021],{"type":381,"value":5022},"i",{"type":372,"tag":1275,"props":5024,"children":5025},{"style":1288},[5026],{"type":381,"value":1307},{"type":372,"tag":1275,"props":5028,"children":5029},{"class":1277,"line":2086},[5030],{"type":372,"tag":1275,"props":5031,"children":5032},{"style":1578},[5033],{"type":381,"value":5034},"// Svix's own symmetric secret format, which Webhook Relay accepts as is. Asymmetric whsk_ keys don't match.\n",{"type":372,"tag":1275,"props":5036,"children":5037},{"class":1277,"line":2833},[5038,5042,5047,5051,5055,5059,5064,5069,5074,5079,5083],{"type":372,"tag":1275,"props":5039,"children":5040},{"style":1282},[5041],{"type":381,"value":1326},{"type":372,"tag":1275,"props":5043,"children":5044},{"style":1329},[5045],{"type":381,"value":5046}," IMPORTABLE",{"type":372,"tag":1275,"props":5048,"children":5049},{"style":1282},[5050],{"type":381,"value":1337},{"type":372,"tag":1275,"props":5052,"children":5053},{"style":1299},[5054],{"type":381,"value":4912},{"type":372,"tag":1275,"props":5056,"children":5057},{"style":1282},[5058],{"type":381,"value":4917},{"type":372,"tag":1275,"props":5060,"children":5061},{"style":4963},[5062],{"type":381,"value":5063},"(whsec_)",{"type":372,"tag":1275,"props":5065,"children":5066},{"style":1282},[5067],{"type":381,"value":5068},"?",{"type":372,"tag":1275,"props":5070,"children":5071},{"style":1329},[5072],{"type":381,"value":5073},"[A-Za-z0-9+/=]",{"type":372,"tag":1275,"props":5075,"children":5076},{"style":1282},[5077],{"type":381,"value":5078},"{32,100}$",{"type":372,"tag":1275,"props":5080,"children":5081},{"style":1299},[5082],{"type":381,"value":4932},{"type":372,"tag":1275,"props":5084,"children":5085},{"style":1288},[5086],{"type":381,"value":1307},{"type":372,"tag":1275,"props":5088,"children":5089},{"class":1277,"line":2906},[5090],{"type":372,"tag":1275,"props":5091,"children":5092},{"emptyLinePlaceholder":1314},[5093],{"type":381,"value":1317},{"type":372,"tag":1275,"props":5095,"children":5096},{"class":1277,"line":2950},[5097,5101,5105,5109,5113,5117],{"type":372,"tag":1275,"props":5098,"children":5099},{"style":1282},[5100],{"type":381,"value":1326},{"type":372,"tag":1275,"props":5102,"children":5103},{"style":1329},[5104],{"type":381,"value":1557},{"type":372,"tag":1275,"props":5106,"children":5107},{"style":1282},[5108],{"type":381,"value":1337},{"type":372,"tag":1275,"props":5110,"children":5111},{"style":1282},[5112],{"type":381,"value":1342},{"type":372,"tag":1275,"props":5114,"children":5115},{"style":1345},[5116],{"type":381,"value":1570},{"type":372,"tag":1275,"props":5118,"children":5119},{"style":1288},[5120],{"type":381,"value":2947},{"type":372,"tag":1275,"props":5122,"children":5123},{"class":1277,"line":2958},[5124],{"type":372,"tag":1275,"props":5125,"children":5126},{"emptyLinePlaceholder":1314},[5127],{"type":381,"value":1317},{"type":372,"tag":1275,"props":5129,"children":5130},{"class":1277,"line":2967},[5131,5136,5141,5145],{"type":372,"tag":1275,"props":5132,"children":5133},{"style":1282},[5134],{"type":381,"value":5135},"type",{"type":372,"tag":1275,"props":5137,"children":5138},{"style":1345},[5139],{"type":381,"value":5140}," PlanEndpoint",{"type":372,"tag":1275,"props":5142,"children":5143},{"style":1282},[5144],{"type":381,"value":1337},{"type":372,"tag":1275,"props":5146,"children":5147},{"style":1288},[5148],{"type":381,"value":3766},{"type":372,"tag":1275,"props":5150,"children":5151},{"class":1277,"line":3010},[5152,5157,5161,5166,5170,5175,5179,5183,5187,5191,5195,5199,5204,5209,5214,5218],{"type":372,"tag":1275,"props":5153,"children":5154},{"style":3649},[5155],{"type":381,"value":5156},"  sourceId",{"type":372,"tag":1275,"props":5158,"children":5159},{"style":1282},[5160],{"type":381,"value":1503},{"type":372,"tag":1275,"props":5162,"children":5163},{"style":1329},[5164],{"type":381,"value":5165}," string",{"type":372,"tag":1275,"props":5167,"children":5168},{"style":1288},[5169],{"type":381,"value":4886},{"type":372,"tag":1275,"props":5171,"children":5172},{"style":3649},[5173],{"type":381,"value":5174},"url",{"type":372,"tag":1275,"props":5176,"children":5177},{"style":1282},[5178],{"type":381,"value":1503},{"type":372,"tag":1275,"props":5180,"children":5181},{"style":1329},[5182],{"type":381,"value":5165},{"type":372,"tag":1275,"props":5184,"children":5185},{"style":1288},[5186],{"type":381,"value":4886},{"type":372,"tag":1275,"props":5188,"children":5189},{"style":3649},[5190],{"type":381,"value":590},{"type":372,"tag":1275,"props":5192,"children":5193},{"style":1282},[5194],{"type":381,"value":1503},{"type":372,"tag":1275,"props":5196,"children":5197},{"style":1329},[5198],{"type":381,"value":5165},{"type":372,"tag":1275,"props":5200,"children":5201},{"style":1288},[5202],{"type":381,"value":5203},"[]; ",{"type":372,"tag":1275,"props":5205,"children":5206},{"style":3649},[5207],{"type":381,"value":5208},"description",{"type":372,"tag":1275,"props":5210,"children":5211},{"style":1282},[5212],{"type":381,"value":5213},"?:",{"type":372,"tag":1275,"props":5215,"children":5216},{"style":1329},[5217],{"type":381,"value":5165},{"type":372,"tag":1275,"props":5219,"children":5220},{"style":1288},[5221],{"type":381,"value":1307},{"type":372,"tag":1275,"props":5223,"children":5224},{"class":1277,"line":3028},[5225,5230,5234,5239,5244,5248,5252,5256,5261,5265,5269,5274,5278,5283,5287,5292],{"type":372,"tag":1275,"props":5226,"children":5227},{"style":3649},[5228],{"type":381,"value":5229},"  headers",{"type":372,"tag":1275,"props":5231,"children":5232},{"style":1282},[5233],{"type":381,"value":5213},{"type":372,"tag":1275,"props":5235,"children":5236},{"style":1345},[5237],{"type":381,"value":5238}," Record",{"type":372,"tag":1275,"props":5240,"children":5241},{"style":1288},[5242],{"type":381,"value":5243},"\u003C",{"type":372,"tag":1275,"props":5245,"children":5246},{"style":1329},[5247],{"type":381,"value":1816},{"type":372,"tag":1275,"props":5249,"children":5250},{"style":1288},[5251],{"type":381,"value":1758},{"type":372,"tag":1275,"props":5253,"children":5254},{"style":1329},[5255],{"type":381,"value":1816},{"type":372,"tag":1275,"props":5257,"children":5258},{"style":1288},[5259],{"type":381,"value":5260},">; ",{"type":372,"tag":1275,"props":5262,"children":5263},{"style":3649},[5264],{"type":381,"value":713},{"type":372,"tag":1275,"props":5266,"children":5267},{"style":1282},[5268],{"type":381,"value":5213},{"type":372,"tag":1275,"props":5270,"children":5271},{"style":1329},[5272],{"type":381,"value":5273}," number",{"type":372,"tag":1275,"props":5275,"children":5276},{"style":1288},[5277],{"type":381,"value":4886},{"type":372,"tag":1275,"props":5279,"children":5280},{"style":3649},[5281],{"type":381,"value":5282},"disabledAtSource",{"type":372,"tag":1275,"props":5284,"children":5285},{"style":1282},[5286],{"type":381,"value":5213},{"type":372,"tag":1275,"props":5288,"children":5289},{"style":1329},[5290],{"type":381,"value":5291}," boolean",{"type":372,"tag":1275,"props":5293,"children":5294},{"style":1288},[5295],{"type":381,"value":1307},{"type":372,"tag":1275,"props":5297,"children":5298},{"class":1277,"line":3046},[5299,5304,5308,5312,5316],{"type":372,"tag":1275,"props":5300,"children":5301},{"style":3649},[5302],{"type":381,"value":5303},"  secret",{"type":372,"tag":1275,"props":5305,"children":5306},{"style":1282},[5307],{"type":381,"value":5213},{"type":372,"tag":1275,"props":5309,"children":5310},{"style":1329},[5311],{"type":381,"value":5165},{"type":372,"tag":1275,"props":5313,"children":5314},{"style":1288},[5315],{"type":381,"value":4886},{"type":372,"tag":1275,"props":5317,"children":5318},{"style":1578},[5319],{"type":381,"value":5320},"// held in memory only\n",{"type":372,"tag":1275,"props":5322,"children":5323},{"class":1277,"line":3063},[5324],{"type":372,"tag":1275,"props":5325,"children":5326},{"style":1288},[5327],{"type":381,"value":5328},"};\n",{"type":372,"tag":1275,"props":5330,"children":5331},{"class":1277,"line":3071},[5332,5336,5341,5345],{"type":372,"tag":1275,"props":5333,"children":5334},{"style":1282},[5335],{"type":381,"value":5135},{"type":372,"tag":1275,"props":5337,"children":5338},{"style":1345},[5339],{"type":381,"value":5340}," Plan",{"type":372,"tag":1275,"props":5342,"children":5343},{"style":1282},[5344],{"type":381,"value":1337},{"type":372,"tag":1275,"props":5346,"children":5347},{"style":1288},[5348],{"type":381,"value":3766},{"type":372,"tag":1275,"props":5350,"children":5352},{"class":1277,"line":5351},25,[5353,5358,5362,5366,5371,5375,5379,5383,5387,5391,5395,5399,5404,5408,5412],{"type":372,"tag":1275,"props":5354,"children":5355},{"style":3649},[5356],{"type":381,"value":5357},"  eventTypes",{"type":372,"tag":1275,"props":5359,"children":5360},{"style":1282},[5361],{"type":381,"value":1503},{"type":372,"tag":1275,"props":5363,"children":5364},{"style":1288},[5365],{"type":381,"value":2502},{"type":372,"tag":1275,"props":5367,"children":5368},{"style":3649},[5369],{"type":381,"value":5370},"name",{"type":372,"tag":1275,"props":5372,"children":5373},{"style":1282},[5374],{"type":381,"value":1503},{"type":372,"tag":1275,"props":5376,"children":5377},{"style":1329},[5378],{"type":381,"value":5165},{"type":372,"tag":1275,"props":5380,"children":5381},{"style":1288},[5382],{"type":381,"value":4886},{"type":372,"tag":1275,"props":5384,"children":5385},{"style":3649},[5386],{"type":381,"value":5208},{"type":372,"tag":1275,"props":5388,"children":5389},{"style":1282},[5390],{"type":381,"value":5213},{"type":372,"tag":1275,"props":5392,"children":5393},{"style":1329},[5394],{"type":381,"value":5165},{"type":372,"tag":1275,"props":5396,"children":5397},{"style":1288},[5398],{"type":381,"value":4886},{"type":372,"tag":1275,"props":5400,"children":5401},{"style":3649},[5402],{"type":381,"value":5403},"deprecated",{"type":372,"tag":1275,"props":5405,"children":5406},{"style":1282},[5407],{"type":381,"value":5213},{"type":372,"tag":1275,"props":5409,"children":5410},{"style":1329},[5411],{"type":381,"value":5291},{"type":372,"tag":1275,"props":5413,"children":5414},{"style":1288},[5415],{"type":381,"value":5416}," }[];\n",{"type":372,"tag":1275,"props":5418,"children":5420},{"class":1277,"line":5419},26,[5421,5426,5430,5434,5438,5442,5446,5450,5454,5458,5462,5466,5471,5475,5479],{"type":372,"tag":1275,"props":5422,"children":5423},{"style":3649},[5424],{"type":381,"value":5425},"  consumers",{"type":372,"tag":1275,"props":5427,"children":5428},{"style":1282},[5429],{"type":381,"value":1503},{"type":372,"tag":1275,"props":5431,"children":5432},{"style":1288},[5433],{"type":381,"value":2502},{"type":372,"tag":1275,"props":5435,"children":5436},{"style":3649},[5437],{"type":381,"value":2920},{"type":372,"tag":1275,"props":5439,"children":5440},{"style":1282},[5441],{"type":381,"value":1503},{"type":372,"tag":1275,"props":5443,"children":5444},{"style":1329},[5445],{"type":381,"value":5165},{"type":372,"tag":1275,"props":5447,"children":5448},{"style":1288},[5449],{"type":381,"value":4886},{"type":372,"tag":1275,"props":5451,"children":5452},{"style":3649},[5453],{"type":381,"value":5370},{"type":372,"tag":1275,"props":5455,"children":5456},{"style":1282},[5457],{"type":381,"value":5213},{"type":372,"tag":1275,"props":5459,"children":5460},{"style":1329},[5461],{"type":381,"value":5165},{"type":372,"tag":1275,"props":5463,"children":5464},{"style":1288},[5465],{"type":381,"value":4886},{"type":372,"tag":1275,"props":5467,"children":5468},{"style":3649},[5469],{"type":381,"value":5470},"endpoints",{"type":372,"tag":1275,"props":5472,"children":5473},{"style":1282},[5474],{"type":381,"value":1503},{"type":372,"tag":1275,"props":5476,"children":5477},{"style":1345},[5478],{"type":381,"value":5140},{"type":372,"tag":1275,"props":5480,"children":5481},{"style":1288},[5482],{"type":381,"value":5483},"[] }[];\n",{"type":372,"tag":1275,"props":5485,"children":5487},{"class":1277,"line":5486},27,[5488,5493,5497,5501],{"type":372,"tag":1275,"props":5489,"children":5490},{"style":3649},[5491],{"type":381,"value":5492},"  warnings",{"type":372,"tag":1275,"props":5494,"children":5495},{"style":1282},[5496],{"type":381,"value":1503},{"type":372,"tag":1275,"props":5498,"children":5499},{"style":1329},[5500],{"type":381,"value":5165},{"type":372,"tag":1275,"props":5502,"children":5503},{"style":1288},[5504],{"type":381,"value":5505},"[];\n",{"type":372,"tag":1275,"props":5507,"children":5509},{"class":1277,"line":5508},28,[5510],{"type":372,"tag":1275,"props":5511,"children":5512},{"style":1288},[5513],{"type":381,"value":5328},{"type":372,"tag":1275,"props":5515,"children":5517},{"class":1277,"line":5516},29,[5518],{"type":372,"tag":1275,"props":5519,"children":5520},{"emptyLinePlaceholder":1314},[5521],{"type":381,"value":1317},{"type":372,"tag":1275,"props":5523,"children":5525},{"class":1277,"line":5524},30,[5526],{"type":372,"tag":1275,"props":5527,"children":5528},{"style":1578},[5529],{"type":381,"value":5530},"// ---- 1. Export from Svix (read-only) ----\n",{"type":372,"tag":1275,"props":5532,"children":5534},{"class":1277,"line":5533},31,[5535,5540,5544,5548,5552,5557,5562,5567,5571,5575,5579,5584,5588,5592,5596,5600,5604,5608,5613,5617,5622,5626,5631,5635,5639],{"type":372,"tag":1275,"props":5536,"children":5537},{"style":1282},[5538],{"type":381,"value":5539},"async",{"type":372,"tag":1275,"props":5541,"children":5542},{"style":1282},[5543],{"type":381,"value":3695},{"type":372,"tag":1275,"props":5545,"children":5546},{"style":1345},[5547],{"type":381,"value":1332},{"type":372,"tag":1275,"props":5549,"children":5550},{"style":1288},[5551],{"type":381,"value":5243},{"type":372,"tag":1275,"props":5553,"children":5554},{"style":1345},[5555],{"type":381,"value":5556},"T",{"type":372,"tag":1275,"props":5558,"children":5559},{"style":1288},[5560],{"type":381,"value":5561},">(",{"type":372,"tag":1275,"props":5563,"children":5564},{"style":3649},[5565],{"type":381,"value":5566},"path",{"type":372,"tag":1275,"props":5568,"children":5569},{"style":1282},[5570],{"type":381,"value":1503},{"type":372,"tag":1275,"props":5572,"children":5573},{"style":1329},[5574],{"type":381,"value":5165},{"type":372,"tag":1275,"props":5576,"children":5577},{"style":1288},[5578],{"type":381,"value":1758},{"type":372,"tag":1275,"props":5580,"children":5581},{"style":3649},[5582],{"type":381,"value":5583},"query",{"type":372,"tag":1275,"props":5585,"children":5586},{"style":1282},[5587],{"type":381,"value":1503},{"type":372,"tag":1275,"props":5589,"children":5590},{"style":1345},[5591],{"type":381,"value":5238},{"type":372,"tag":1275,"props":5593,"children":5594},{"style":1288},[5595],{"type":381,"value":5243},{"type":372,"tag":1275,"props":5597,"children":5598},{"style":1329},[5599],{"type":381,"value":1816},{"type":372,"tag":1275,"props":5601,"children":5602},{"style":1288},[5603],{"type":381,"value":1758},{"type":372,"tag":1275,"props":5605,"children":5606},{"style":1329},[5607],{"type":381,"value":1816},{"type":372,"tag":1275,"props":5609,"children":5610},{"style":1288},[5611],{"type":381,"value":5612},"> ",{"type":372,"tag":1275,"props":5614,"children":5615},{"style":1282},[5616],{"type":381,"value":2517},{"type":372,"tag":1275,"props":5618,"children":5619},{"style":1288},[5620],{"type":381,"value":5621}," {})",{"type":372,"tag":1275,"props":5623,"children":5624},{"style":1282},[5625],{"type":381,"value":1503},{"type":372,"tag":1275,"props":5627,"children":5628},{"style":1345},[5629],{"type":381,"value":5630}," Promise",{"type":372,"tag":1275,"props":5632,"children":5633},{"style":1288},[5634],{"type":381,"value":5243},{"type":372,"tag":1275,"props":5636,"children":5637},{"style":1345},[5638],{"type":381,"value":5556},{"type":372,"tag":1275,"props":5640,"children":5641},{"style":1288},[5642],{"type":381,"value":5643},"> {\n",{"type":372,"tag":1275,"props":5645,"children":5647},{"class":1277,"line":5646},32,[5648,5653,5657,5661,5665,5670,5675,5680],{"type":372,"tag":1275,"props":5649,"children":5650},{"style":1282},[5651],{"type":381,"value":5652},"  const",{"type":372,"tag":1275,"props":5654,"children":5655},{"style":1329},[5656],{"type":381,"value":4274},{"type":372,"tag":1275,"props":5658,"children":5659},{"style":1282},[5660],{"type":381,"value":1337},{"type":372,"tag":1275,"props":5662,"children":5663},{"style":1282},[5664],{"type":381,"value":1342},{"type":372,"tag":1275,"props":5666,"children":5667},{"style":1345},[5668],{"type":381,"value":5669}," URL",{"type":372,"tag":1275,"props":5671,"children":5672},{"style":1288},[5673],{"type":381,"value":5674},"(path, ",{"type":372,"tag":1275,"props":5676,"children":5677},{"style":1329},[5678],{"type":381,"value":5679},"SVIX_API",{"type":372,"tag":1275,"props":5681,"children":5682},{"style":1288},[5683],{"type":381,"value":1368},{"type":372,"tag":1275,"props":5685,"children":5687},{"class":1277,"line":5686},33,[5688,5692,5696,5700,5705,5710,5714,5719,5724,5729,5734,5739,5744,5749],{"type":372,"tag":1275,"props":5689,"children":5690},{"style":1282},[5691],{"type":381,"value":3730},{"type":372,"tag":1275,"props":5693,"children":5694},{"style":1288},[5695],{"type":381,"value":604},{"type":372,"tag":1275,"props":5697,"children":5698},{"style":1282},[5699],{"type":381,"value":1326},{"type":372,"tag":1275,"props":5701,"children":5702},{"style":1288},[5703],{"type":381,"value":5704}," [",{"type":372,"tag":1275,"props":5706,"children":5707},{"style":1329},[5708],{"type":381,"value":5709},"k",{"type":372,"tag":1275,"props":5711,"children":5712},{"style":1288},[5713],{"type":381,"value":1758},{"type":372,"tag":1275,"props":5715,"children":5716},{"style":1329},[5717],{"type":381,"value":5718},"v",{"type":372,"tag":1275,"props":5720,"children":5721},{"style":1288},[5722],{"type":381,"value":5723},"] ",{"type":372,"tag":1275,"props":5725,"children":5726},{"style":1282},[5727],{"type":381,"value":5728},"of",{"type":372,"tag":1275,"props":5730,"children":5731},{"style":1288},[5732],{"type":381,"value":5733}," Object.",{"type":372,"tag":1275,"props":5735,"children":5736},{"style":1345},[5737],{"type":381,"value":5738},"entries",{"type":372,"tag":1275,"props":5740,"children":5741},{"style":1288},[5742],{"type":381,"value":5743},"(query)) url.searchParams.",{"type":372,"tag":1275,"props":5745,"children":5746},{"style":1345},[5747],{"type":381,"value":5748},"set",{"type":372,"tag":1275,"props":5750,"children":5751},{"style":1288},[5752],{"type":381,"value":5753},"(k, v);\n",{"type":372,"tag":1275,"props":5755,"children":5757},{"class":1277,"line":5756},34,[5758,5762,5766,5770,5774,5778,5783,5788,5792,5796,5800,5804,5808,5812],{"type":372,"tag":1275,"props":5759,"children":5760},{"style":1282},[5761],{"type":381,"value":5652},{"type":372,"tag":1275,"props":5763,"children":5764},{"style":1329},[5765],{"type":381,"value":2679},{"type":372,"tag":1275,"props":5767,"children":5768},{"style":1282},[5769],{"type":381,"value":1337},{"type":372,"tag":1275,"props":5771,"children":5772},{"style":1282},[5773],{"type":381,"value":2522},{"type":372,"tag":1275,"props":5775,"children":5776},{"style":1345},[5777],{"type":381,"value":2692},{"type":372,"tag":1275,"props":5779,"children":5780},{"style":1288},[5781],{"type":381,"value":5782},"(url, { headers: { Authorization: ",{"type":372,"tag":1275,"props":5784,"children":5785},{"style":1299},[5786],{"type":381,"value":5787},"`Bearer ${",{"type":372,"tag":1275,"props":5789,"children":5790},{"style":1288},[5791],{"type":381,"value":2595},{"type":372,"tag":1275,"props":5793,"children":5794},{"style":1299},[5795],{"type":381,"value":445},{"type":372,"tag":1275,"props":5797,"children":5798},{"style":1288},[5799],{"type":381,"value":2604},{"type":372,"tag":1275,"props":5801,"children":5802},{"style":1299},[5803],{"type":381,"value":445},{"type":372,"tag":1275,"props":5805,"children":5806},{"style":1329},[5807],{"type":381,"value":1358},{"type":372,"tag":1275,"props":5809,"children":5810},{"style":1299},[5811],{"type":381,"value":2644},{"type":372,"tag":1275,"props":5813,"children":5814},{"style":1288},[5815],{"type":381,"value":5816}," } });\n",{"type":372,"tag":1275,"props":5818,"children":5820},{"class":1277,"line":5819},35,[5821,5826,5830,5834,5838,5842,5846,5850,5854,5859,5863,5868,5872,5876,5880,5884,5888],{"type":372,"tag":1275,"props":5822,"children":5823},{"style":1282},[5824],{"type":381,"value":5825},"  if",{"type":372,"tag":1275,"props":5827,"children":5828},{"style":1288},[5829],{"type":381,"value":604},{"type":372,"tag":1275,"props":5831,"children":5832},{"style":1282},[5833],{"type":381,"value":1363},{"type":372,"tag":1275,"props":5835,"children":5836},{"style":1288},[5837],{"type":381,"value":2852},{"type":372,"tag":1275,"props":5839,"children":5840},{"style":1282},[5841],{"type":381,"value":2857},{"type":372,"tag":1275,"props":5843,"children":5844},{"style":1282},[5845],{"type":381,"value":1342},{"type":372,"tag":1275,"props":5847,"children":5848},{"style":1345},[5849],{"type":381,"value":2866},{"type":372,"tag":1275,"props":5851,"children":5852},{"style":1288},[5853],{"type":381,"value":1926},{"type":372,"tag":1275,"props":5855,"children":5856},{"style":1299},[5857],{"type":381,"value":5858},"`Svix GET ${",{"type":372,"tag":1275,"props":5860,"children":5861},{"style":1288},[5862],{"type":381,"value":5566},{"type":372,"tag":1275,"props":5864,"children":5865},{"style":1299},[5866],{"type":381,"value":5867},"}: ${",{"type":372,"tag":1275,"props":5869,"children":5870},{"style":1288},[5871],{"type":381,"value":2880},{"type":372,"tag":1275,"props":5873,"children":5874},{"style":1299},[5875],{"type":381,"value":445},{"type":372,"tag":1275,"props":5877,"children":5878},{"style":1288},[5879],{"type":381,"value":2889},{"type":372,"tag":1275,"props":5881,"children":5882},{"style":1299},[5883],{"type":381,"value":2644},{"type":372,"tag":1275,"props":5885,"children":5886},{"style":1288},[5887],{"type":381,"value":2898},{"type":372,"tag":1275,"props":5889,"children":5890},{"style":1578},[5891],{"type":381,"value":5892},"// no body: the secret route's body is the secret\n",{"type":372,"tag":1275,"props":5894,"children":5896},{"class":1277,"line":5895},36,[5897,5902,5906,5910,5915,5920,5924,5928,5932],{"type":372,"tag":1275,"props":5898,"children":5899},{"style":1282},[5900],{"type":381,"value":5901},"  return",{"type":372,"tag":1275,"props":5903,"children":5904},{"style":1288},[5905],{"type":381,"value":2937},{"type":372,"tag":1275,"props":5907,"children":5908},{"style":1345},[5909],{"type":381,"value":2942},{"type":372,"tag":1275,"props":5911,"children":5912},{"style":1288},[5913],{"type":381,"value":5914},"() ",{"type":372,"tag":1275,"props":5916,"children":5917},{"style":1282},[5918],{"type":381,"value":5919},"as",{"type":372,"tag":1275,"props":5921,"children":5922},{"style":1345},[5923],{"type":381,"value":5630},{"type":372,"tag":1275,"props":5925,"children":5926},{"style":1288},[5927],{"type":381,"value":5243},{"type":372,"tag":1275,"props":5929,"children":5930},{"style":1345},[5931],{"type":381,"value":5556},{"type":372,"tag":1275,"props":5933,"children":5934},{"style":1288},[5935],{"type":381,"value":5936},">;\n",{"type":372,"tag":1275,"props":5938,"children":5940},{"class":1277,"line":5939},37,[5941],{"type":372,"tag":1275,"props":5942,"children":5943},{"style":1288},[5944],{"type":381,"value":3857},{"type":372,"tag":1275,"props":5946,"children":5948},{"class":1277,"line":5947},38,[5949],{"type":372,"tag":1275,"props":5950,"children":5951},{"emptyLinePlaceholder":1314},[5952],{"type":381,"value":1317},{"type":372,"tag":1275,"props":5954,"children":5956},{"class":1277,"line":5955},39,[5957,5961,5966,5971,5975,5979,5983,5987,5991,5995,5999,6003,6008,6012,6016],{"type":372,"tag":1275,"props":5958,"children":5959},{"style":1282},[5960],{"type":381,"value":5539},{"type":372,"tag":1275,"props":5962,"children":5963},{"style":1282},[5964],{"type":381,"value":5965}," function*",{"type":372,"tag":1275,"props":5967,"children":5968},{"style":1345},[5969],{"type":381,"value":5970}," svixList",{"type":372,"tag":1275,"props":5972,"children":5973},{"style":1288},[5974],{"type":381,"value":5243},{"type":372,"tag":1275,"props":5976,"children":5977},{"style":1345},[5978],{"type":381,"value":5556},{"type":372,"tag":1275,"props":5980,"children":5981},{"style":1288},[5982],{"type":381,"value":5561},{"type":372,"tag":1275,"props":5984,"children":5985},{"style":3649},[5986],{"type":381,"value":5566},{"type":372,"tag":1275,"props":5988,"children":5989},{"style":1282},[5990],{"type":381,"value":1503},{"type":372,"tag":1275,"props":5992,"children":5993},{"style":1329},[5994],{"type":381,"value":5165},{"type":372,"tag":1275,"props":5996,"children":5997},{"style":1288},[5998],{"type":381,"value":852},{"type":372,"tag":1275,"props":6000,"children":6001},{"style":1282},[6002],{"type":381,"value":1503},{"type":372,"tag":1275,"props":6004,"children":6005},{"style":1345},[6006],{"type":381,"value":6007}," AsyncGenerator",{"type":372,"tag":1275,"props":6009,"children":6010},{"style":1288},[6011],{"type":381,"value":5243},{"type":372,"tag":1275,"props":6013,"children":6014},{"style":1345},[6015],{"type":381,"value":5556},{"type":372,"tag":1275,"props":6017,"children":6018},{"style":1288},[6019],{"type":381,"value":5643},{"type":372,"tag":1275,"props":6021,"children":6023},{"class":1277,"line":6022},40,[6024,6029,6034,6038,6042,6046,6051],{"type":372,"tag":1275,"props":6025,"children":6026},{"style":1282},[6027],{"type":381,"value":6028},"  let",{"type":372,"tag":1275,"props":6030,"children":6031},{"style":1288},[6032],{"type":381,"value":6033}," iterator",{"type":372,"tag":1275,"props":6035,"children":6036},{"style":1282},[6037],{"type":381,"value":1503},{"type":372,"tag":1275,"props":6039,"children":6040},{"style":1329},[6041],{"type":381,"value":5165},{"type":372,"tag":1275,"props":6043,"children":6044},{"style":1282},[6045],{"type":381,"value":4111},{"type":372,"tag":1275,"props":6047,"children":6048},{"style":1329},[6049],{"type":381,"value":6050}," undefined",{"type":372,"tag":1275,"props":6052,"children":6053},{"style":1288},[6054],{"type":381,"value":1307},{"type":372,"tag":1275,"props":6056,"children":6058},{"class":1277,"line":6057},41,[6059,6063],{"type":372,"tag":1275,"props":6060,"children":6061},{"style":1282},[6062],{"type":381,"value":3730},{"type":372,"tag":1275,"props":6064,"children":6065},{"style":1288},[6066],{"type":381,"value":6067}," (;;) {\n",{"type":372,"tag":1275,"props":6069,"children":6071},{"class":1277,"line":6070},42,[6072,6077,6082,6086,6090,6094,6099,6104,6108,6113,6117,6122,6126,6130,6134,6139,6143,6147],{"type":372,"tag":1275,"props":6073,"children":6074},{"style":1282},[6075],{"type":381,"value":6076},"    const",{"type":372,"tag":1275,"props":6078,"children":6079},{"style":1329},[6080],{"type":381,"value":6081}," page",{"type":372,"tag":1275,"props":6083,"children":6084},{"style":1282},[6085],{"type":381,"value":1337},{"type":372,"tag":1275,"props":6087,"children":6088},{"style":1282},[6089],{"type":381,"value":2522},{"type":372,"tag":1275,"props":6091,"children":6092},{"style":1345},[6093],{"type":381,"value":1332},{"type":372,"tag":1275,"props":6095,"children":6096},{"style":1288},[6097],{"type":381,"value":6098},"\u003C{ ",{"type":372,"tag":1275,"props":6100,"children":6101},{"style":3649},[6102],{"type":381,"value":6103},"data",{"type":372,"tag":1275,"props":6105,"children":6106},{"style":1282},[6107],{"type":381,"value":1503},{"type":372,"tag":1275,"props":6109,"children":6110},{"style":1345},[6111],{"type":381,"value":6112}," T",{"type":372,"tag":1275,"props":6114,"children":6115},{"style":1288},[6116],{"type":381,"value":5203},{"type":372,"tag":1275,"props":6118,"children":6119},{"style":3649},[6120],{"type":381,"value":6121},"done",{"type":372,"tag":1275,"props":6123,"children":6124},{"style":1282},[6125],{"type":381,"value":1503},{"type":372,"tag":1275,"props":6127,"children":6128},{"style":1329},[6129],{"type":381,"value":5291},{"type":372,"tag":1275,"props":6131,"children":6132},{"style":1288},[6133],{"type":381,"value":4886},{"type":372,"tag":1275,"props":6135,"children":6136},{"style":3649},[6137],{"type":381,"value":6138},"iterator",{"type":372,"tag":1275,"props":6140,"children":6141},{"style":1282},[6142],{"type":381,"value":1503},{"type":372,"tag":1275,"props":6144,"children":6145},{"style":1329},[6146],{"type":381,"value":5165},{"type":372,"tag":1275,"props":6148,"children":6149},{"style":1288},[6150],{"type":381,"value":6151}," }>(path, {\n",{"type":372,"tag":1275,"props":6153,"children":6155},{"class":1277,"line":6154},43,[6156,6161,6166,6170,6175,6180,6184,6189,6193],{"type":372,"tag":1275,"props":6157,"children":6158},{"style":1288},[6159],{"type":381,"value":6160},"      limit: ",{"type":372,"tag":1275,"props":6162,"children":6163},{"style":1299},[6164],{"type":381,"value":6165},"\"100\"",{"type":372,"tag":1275,"props":6167,"children":6168},{"style":1288},[6169],{"type":381,"value":1758},{"type":372,"tag":1275,"props":6171,"children":6172},{"style":1282},[6173],{"type":381,"value":6174},"...",{"type":372,"tag":1275,"props":6176,"children":6177},{"style":1288},[6178],{"type":381,"value":6179},"(iterator ",{"type":372,"tag":1275,"props":6181,"children":6182},{"style":1282},[6183],{"type":381,"value":5068},{"type":372,"tag":1275,"props":6185,"children":6186},{"style":1288},[6187],{"type":381,"value":6188}," { iterator } ",{"type":372,"tag":1275,"props":6190,"children":6191},{"style":1282},[6192],{"type":381,"value":1503},{"type":372,"tag":1275,"props":6194,"children":6195},{"style":1288},[6196],{"type":381,"value":6197}," {}),\n",{"type":372,"tag":1275,"props":6199,"children":6201},{"class":1277,"line":6200},44,[6202],{"type":372,"tag":1275,"props":6203,"children":6204},{"style":1288},[6205],{"type":381,"value":6206},"    });\n",{"type":372,"tag":1275,"props":6208,"children":6210},{"class":1277,"line":6209},45,[6211,6216],{"type":372,"tag":1275,"props":6212,"children":6213},{"style":1282},[6214],{"type":381,"value":6215},"    yield*",{"type":372,"tag":1275,"props":6217,"children":6218},{"style":1288},[6219],{"type":381,"value":6220}," page.data;\n",{"type":372,"tag":1275,"props":6222,"children":6224},{"class":1277,"line":6223},46,[6225,6230,6235,6240],{"type":372,"tag":1275,"props":6226,"children":6227},{"style":1282},[6228],{"type":381,"value":6229},"    if",{"type":372,"tag":1275,"props":6231,"children":6232},{"style":1288},[6233],{"type":381,"value":6234}," (page.done) ",{"type":372,"tag":1275,"props":6236,"children":6237},{"style":1282},[6238],{"type":381,"value":6239},"return",{"type":372,"tag":1275,"props":6241,"children":6242},{"style":1288},[6243],{"type":381,"value":1307},{"type":372,"tag":1275,"props":6245,"children":6247},{"class":1277,"line":6246},47,[6248,6253,6257],{"type":372,"tag":1275,"props":6249,"children":6250},{"style":1288},[6251],{"type":381,"value":6252},"    iterator ",{"type":372,"tag":1275,"props":6254,"children":6255},{"style":1282},[6256],{"type":381,"value":2517},{"type":372,"tag":1275,"props":6258,"children":6259},{"style":1288},[6260],{"type":381,"value":6261}," page.iterator;\n",{"type":372,"tag":1275,"props":6263,"children":6265},{"class":1277,"line":6264},48,[6266],{"type":372,"tag":1275,"props":6267,"children":6268},{"style":1288},[6269],{"type":381,"value":3820},{"type":372,"tag":1275,"props":6271,"children":6273},{"class":1277,"line":6272},49,[6274],{"type":372,"tag":1275,"props":6275,"children":6276},{"style":1288},[6277],{"type":381,"value":3857},{"type":372,"tag":1275,"props":6279,"children":6281},{"class":1277,"line":6280},50,[6282],{"type":372,"tag":1275,"props":6283,"children":6284},{"emptyLinePlaceholder":1314},[6285],{"type":381,"value":1317},{"type":372,"tag":1275,"props":6287,"children":6289},{"class":1277,"line":6288},51,[6290,6294,6298,6303,6308,6312,6316,6320,6325],{"type":372,"tag":1275,"props":6291,"children":6292},{"style":1282},[6293],{"type":381,"value":5539},{"type":372,"tag":1275,"props":6295,"children":6296},{"style":1282},[6297],{"type":381,"value":3695},{"type":372,"tag":1275,"props":6299,"children":6300},{"style":1345},[6301],{"type":381,"value":6302}," exportPlan",{"type":372,"tag":1275,"props":6304,"children":6305},{"style":1288},[6306],{"type":381,"value":6307},"()",{"type":372,"tag":1275,"props":6309,"children":6310},{"style":1282},[6311],{"type":381,"value":1503},{"type":372,"tag":1275,"props":6313,"children":6314},{"style":1345},[6315],{"type":381,"value":5630},{"type":372,"tag":1275,"props":6317,"children":6318},{"style":1288},[6319],{"type":381,"value":5243},{"type":372,"tag":1275,"props":6321,"children":6322},{"style":1345},[6323],{"type":381,"value":6324},"Plan",{"type":372,"tag":1275,"props":6326,"children":6327},{"style":1288},[6328],{"type":381,"value":5643},{"type":372,"tag":1275,"props":6330,"children":6332},{"class":1277,"line":6331},52,[6333,6337,6342,6346,6350,6354],{"type":372,"tag":1275,"props":6334,"children":6335},{"style":1282},[6336],{"type":381,"value":5652},{"type":372,"tag":1275,"props":6338,"children":6339},{"style":1329},[6340],{"type":381,"value":6341}," plan",{"type":372,"tag":1275,"props":6343,"children":6344},{"style":1282},[6345],{"type":381,"value":1503},{"type":372,"tag":1275,"props":6347,"children":6348},{"style":1345},[6349],{"type":381,"value":5340},{"type":372,"tag":1275,"props":6351,"children":6352},{"style":1282},[6353],{"type":381,"value":1337},{"type":372,"tag":1275,"props":6355,"children":6356},{"style":1288},[6357],{"type":381,"value":6358}," { eventTypes: [], consumers: [], warnings: [] };\n",{"type":372,"tag":1275,"props":6360,"children":6362},{"class":1277,"line":6361},53,[6363,6367,6371,6375,6379,6384,6388,6392,6396,6400,6404,6409],{"type":372,"tag":1275,"props":6364,"children":6365},{"style":1282},[6366],{"type":381,"value":3730},{"type":372,"tag":1275,"props":6368,"children":6369},{"style":1282},[6370],{"type":381,"value":2522},{"type":372,"tag":1275,"props":6372,"children":6373},{"style":1288},[6374],{"type":381,"value":604},{"type":372,"tag":1275,"props":6376,"children":6377},{"style":1282},[6378],{"type":381,"value":1326},{"type":372,"tag":1275,"props":6380,"children":6381},{"style":1329},[6382],{"type":381,"value":6383}," et",{"type":372,"tag":1275,"props":6385,"children":6386},{"style":1282},[6387],{"type":381,"value":3748},{"type":372,"tag":1275,"props":6389,"children":6390},{"style":1345},[6391],{"type":381,"value":5970},{"type":372,"tag":1275,"props":6393,"children":6394},{"style":1288},[6395],{"type":381,"value":5243},{"type":372,"tag":1275,"props":6397,"children":6398},{"style":1329},[6399],{"type":381,"value":1826},{"type":372,"tag":1275,"props":6401,"children":6402},{"style":1288},[6403],{"type":381,"value":5561},{"type":372,"tag":1275,"props":6405,"children":6406},{"style":1299},[6407],{"type":381,"value":6408},"\"/api/v1/event-type\"",{"type":372,"tag":1275,"props":6410,"children":6411},{"style":1288},[6412],{"type":381,"value":6413},")) {\n",{"type":372,"tag":1275,"props":6415,"children":6417},{"class":1277,"line":6416},54,[6418,6422,6426,6430,6435,6440],{"type":372,"tag":1275,"props":6419,"children":6420},{"style":1282},[6421],{"type":381,"value":6229},{"type":372,"tag":1275,"props":6423,"children":6424},{"style":1288},[6425],{"type":381,"value":604},{"type":372,"tag":1275,"props":6427,"children":6428},{"style":1282},[6429],{"type":381,"value":1363},{"type":372,"tag":1275,"props":6431,"children":6432},{"style":1288},[6433],{"type":381,"value":6434},"et.archived) plan.eventTypes.",{"type":372,"tag":1275,"props":6436,"children":6437},{"style":1345},[6438],{"type":381,"value":6439},"push",{"type":372,"tag":1275,"props":6441,"children":6442},{"style":1288},[6443],{"type":381,"value":6444},"({ name: et.name, description: et.description, deprecated: et.deprecated });\n",{"type":372,"tag":1275,"props":6446,"children":6448},{"class":1277,"line":6447},55,[6449],{"type":372,"tag":1275,"props":6450,"children":6451},{"style":1288},[6452],{"type":381,"value":3820},{"type":372,"tag":1275,"props":6454,"children":6456},{"class":1277,"line":6455},56,[6457,6461,6465,6469,6473,6478,6482,6486,6490,6494,6498,6503],{"type":372,"tag":1275,"props":6458,"children":6459},{"style":1282},[6460],{"type":381,"value":3730},{"type":372,"tag":1275,"props":6462,"children":6463},{"style":1282},[6464],{"type":381,"value":2522},{"type":372,"tag":1275,"props":6466,"children":6467},{"style":1288},[6468],{"type":381,"value":604},{"type":372,"tag":1275,"props":6470,"children":6471},{"style":1282},[6472],{"type":381,"value":1326},{"type":372,"tag":1275,"props":6474,"children":6475},{"style":1329},[6476],{"type":381,"value":6477}," app",{"type":372,"tag":1275,"props":6479,"children":6480},{"style":1282},[6481],{"type":381,"value":3748},{"type":372,"tag":1275,"props":6483,"children":6484},{"style":1345},[6485],{"type":381,"value":5970},{"type":372,"tag":1275,"props":6487,"children":6488},{"style":1288},[6489],{"type":381,"value":5243},{"type":372,"tag":1275,"props":6491,"children":6492},{"style":1329},[6493],{"type":381,"value":1826},{"type":372,"tag":1275,"props":6495,"children":6496},{"style":1288},[6497],{"type":381,"value":5561},{"type":372,"tag":1275,"props":6499,"children":6500},{"style":1299},[6501],{"type":381,"value":6502},"\"/api/v1/app\"",{"type":372,"tag":1275,"props":6504,"children":6505},{"style":1288},[6506],{"type":381,"value":6413},{"type":372,"tag":1275,"props":6508,"children":6510},{"class":1277,"line":6509},57,[6511,6515,6520,6524,6529,6534,6539,6543,6547],{"type":372,"tag":1275,"props":6512,"children":6513},{"style":1282},[6514],{"type":381,"value":6076},{"type":372,"tag":1275,"props":6516,"children":6517},{"style":1329},[6518],{"type":381,"value":6519}," consumer",{"type":372,"tag":1275,"props":6521,"children":6522},{"style":1282},[6523],{"type":381,"value":1337},{"type":372,"tag":1275,"props":6525,"children":6526},{"style":1288},[6527],{"type":381,"value":6528}," { id: app.uid ",{"type":372,"tag":1275,"props":6530,"children":6531},{"style":1282},[6532],{"type":381,"value":6533},"??",{"type":372,"tag":1275,"props":6535,"children":6536},{"style":1288},[6537],{"type":381,"value":6538}," app.id, name: app.name, endpoints: [] ",{"type":372,"tag":1275,"props":6540,"children":6541},{"style":1282},[6542],{"type":381,"value":5919},{"type":372,"tag":1275,"props":6544,"children":6545},{"style":1345},[6546],{"type":381,"value":5140},{"type":372,"tag":1275,"props":6548,"children":6549},{"style":1288},[6550],{"type":381,"value":6551},"[] };\n",{"type":372,"tag":1275,"props":6553,"children":6555},{"class":1277,"line":6554},58,[6556,6561,6565,6569,6573,6578,6582,6586,6590,6594,6598,6603,6608,6612,6616,6621],{"type":372,"tag":1275,"props":6557,"children":6558},{"style":1282},[6559],{"type":381,"value":6560},"    for",{"type":372,"tag":1275,"props":6562,"children":6563},{"style":1282},[6564],{"type":381,"value":2522},{"type":372,"tag":1275,"props":6566,"children":6567},{"style":1288},[6568],{"type":381,"value":604},{"type":372,"tag":1275,"props":6570,"children":6571},{"style":1282},[6572],{"type":381,"value":1326},{"type":372,"tag":1275,"props":6574,"children":6575},{"style":1329},[6576],{"type":381,"value":6577}," ep",{"type":372,"tag":1275,"props":6579,"children":6580},{"style":1282},[6581],{"type":381,"value":3748},{"type":372,"tag":1275,"props":6583,"children":6584},{"style":1345},[6585],{"type":381,"value":5970},{"type":372,"tag":1275,"props":6587,"children":6588},{"style":1288},[6589],{"type":381,"value":5243},{"type":372,"tag":1275,"props":6591,"children":6592},{"style":1329},[6593],{"type":381,"value":1826},{"type":372,"tag":1275,"props":6595,"children":6596},{"style":1288},[6597],{"type":381,"value":5561},{"type":372,"tag":1275,"props":6599,"children":6600},{"style":1299},[6601],{"type":381,"value":6602},"`/api/v1/app/${",{"type":372,"tag":1275,"props":6604,"children":6605},{"style":1288},[6606],{"type":381,"value":6607},"app",{"type":372,"tag":1275,"props":6609,"children":6610},{"style":1299},[6611],{"type":381,"value":445},{"type":372,"tag":1275,"props":6613,"children":6614},{"style":1288},[6615],{"type":381,"value":2920},{"type":372,"tag":1275,"props":6617,"children":6618},{"style":1299},[6619],{"type":381,"value":6620},"}/endpoint`",{"type":372,"tag":1275,"props":6622,"children":6623},{"style":1288},[6624],{"type":381,"value":6413},{"type":372,"tag":1275,"props":6626,"children":6628},{"class":1277,"line":6627},59,[6629,6634,6639,6643,6647,6651,6655,6659,6663,6667,6671,6675,6679,6683,6687,6692,6696,6700],{"type":372,"tag":1275,"props":6630,"children":6631},{"style":1282},[6632],{"type":381,"value":6633},"      const",{"type":372,"tag":1275,"props":6635,"children":6636},{"style":1329},[6637],{"type":381,"value":6638}," h",{"type":372,"tag":1275,"props":6640,"children":6641},{"style":1282},[6642],{"type":381,"value":1337},{"type":372,"tag":1275,"props":6644,"children":6645},{"style":1282},[6646],{"type":381,"value":2522},{"type":372,"tag":1275,"props":6648,"children":6649},{"style":1345},[6650],{"type":381,"value":1332},{"type":372,"tag":1275,"props":6652,"children":6653},{"style":1288},[6654],{"type":381,"value":6098},{"type":372,"tag":1275,"props":6656,"children":6657},{"style":3649},[6658],{"type":381,"value":736},{"type":372,"tag":1275,"props":6660,"children":6661},{"style":1282},[6662],{"type":381,"value":1503},{"type":372,"tag":1275,"props":6664,"children":6665},{"style":1345},[6666],{"type":381,"value":5238},{"type":372,"tag":1275,"props":6668,"children":6669},{"style":1288},[6670],{"type":381,"value":5243},{"type":372,"tag":1275,"props":6672,"children":6673},{"style":1329},[6674],{"type":381,"value":1816},{"type":372,"tag":1275,"props":6676,"children":6677},{"style":1288},[6678],{"type":381,"value":1758},{"type":372,"tag":1275,"props":6680,"children":6681},{"style":1329},[6682],{"type":381,"value":1816},{"type":372,"tag":1275,"props":6684,"children":6685},{"style":1288},[6686],{"type":381,"value":5260},{"type":372,"tag":1275,"props":6688,"children":6689},{"style":3649},[6690],{"type":381,"value":6691},"sensitive",{"type":372,"tag":1275,"props":6693,"children":6694},{"style":1282},[6695],{"type":381,"value":1503},{"type":372,"tag":1275,"props":6697,"children":6698},{"style":1329},[6699],{"type":381,"value":5165},{"type":372,"tag":1275,"props":6701,"children":6702},{"style":1288},[6703],{"type":381,"value":6704},"[] }>(\n",{"type":372,"tag":1275,"props":6706,"children":6708},{"class":1277,"line":6707},60,[6709,6714,6718,6722,6726,6731,6736,6740,6744,6749],{"type":372,"tag":1275,"props":6710,"children":6711},{"style":1299},[6712],{"type":381,"value":6713},"        `/api/v1/app/${",{"type":372,"tag":1275,"props":6715,"children":6716},{"style":1288},[6717],{"type":381,"value":6607},{"type":372,"tag":1275,"props":6719,"children":6720},{"style":1299},[6721],{"type":381,"value":445},{"type":372,"tag":1275,"props":6723,"children":6724},{"style":1288},[6725],{"type":381,"value":2920},{"type":372,"tag":1275,"props":6727,"children":6728},{"style":1299},[6729],{"type":381,"value":6730},"}/endpoint/${",{"type":372,"tag":1275,"props":6732,"children":6733},{"style":1288},[6734],{"type":381,"value":6735},"ep",{"type":372,"tag":1275,"props":6737,"children":6738},{"style":1299},[6739],{"type":381,"value":445},{"type":372,"tag":1275,"props":6741,"children":6742},{"style":1288},[6743],{"type":381,"value":2920},{"type":372,"tag":1275,"props":6745,"children":6746},{"style":1299},[6747],{"type":381,"value":6748},"}/headers`",{"type":372,"tag":1275,"props":6750,"children":6751},{"style":1288},[6752],{"type":381,"value":1368},{"type":372,"tag":1275,"props":6754,"children":6756},{"class":1277,"line":6755},61,[6757,6761,6766,6770,6774,6779,6784,6788,6793,6797,6802,6806,6811,6815,6820,6825,6829,6834],{"type":372,"tag":1275,"props":6758,"children":6759},{"style":1282},[6760],{"type":381,"value":6633},{"type":372,"tag":1275,"props":6762,"children":6763},{"style":1329},[6764],{"type":381,"value":6765}," headers",{"type":372,"tag":1275,"props":6767,"children":6768},{"style":1282},[6769],{"type":381,"value":1337},{"type":372,"tag":1275,"props":6771,"children":6772},{"style":1288},[6773],{"type":381,"value":5733},{"type":372,"tag":1275,"props":6775,"children":6776},{"style":1345},[6777],{"type":381,"value":6778},"fromEntries",{"type":372,"tag":1275,"props":6780,"children":6781},{"style":1288},[6782],{"type":381,"value":6783},"(Object.",{"type":372,"tag":1275,"props":6785,"children":6786},{"style":1345},[6787],{"type":381,"value":5738},{"type":372,"tag":1275,"props":6789,"children":6790},{"style":1288},[6791],{"type":381,"value":6792},"(h.headers).",{"type":372,"tag":1275,"props":6794,"children":6795},{"style":1345},[6796],{"type":381,"value":3625},{"type":372,"tag":1275,"props":6798,"children":6799},{"style":1288},[6800],{"type":381,"value":6801},"(([",{"type":372,"tag":1275,"props":6803,"children":6804},{"style":3649},[6805],{"type":381,"value":5709},{"type":372,"tag":1275,"props":6807,"children":6808},{"style":1288},[6809],{"type":381,"value":6810},"]) ",{"type":372,"tag":1275,"props":6812,"children":6813},{"style":1282},[6814],{"type":381,"value":3661},{"type":372,"tag":1275,"props":6816,"children":6817},{"style":1282},[6818],{"type":381,"value":6819}," !",{"type":372,"tag":1275,"props":6821,"children":6822},{"style":1329},[6823],{"type":381,"value":6824},"RESERVED",{"type":372,"tag":1275,"props":6826,"children":6827},{"style":1288},[6828],{"type":381,"value":445},{"type":372,"tag":1275,"props":6830,"children":6831},{"style":1345},[6832],{"type":381,"value":6833},"test",{"type":372,"tag":1275,"props":6835,"children":6836},{"style":1288},[6837],{"type":381,"value":6838},"(k)));\n",{"type":372,"tag":1275,"props":6840,"children":6842},{"class":1277,"line":6841},62,[6843,6848,6853,6858,6863,6867,6871,6875,6880,6884,6888,6893,6897,6901,6905,6910,6915,6919,6923,6927,6932,6936,6941,6945,6949],{"type":372,"tag":1275,"props":6844,"children":6845},{"style":1282},[6846],{"type":381,"value":6847},"      if",{"type":372,"tag":1275,"props":6849,"children":6850},{"style":1288},[6851],{"type":381,"value":6852}," (h.sensitive.",{"type":372,"tag":1275,"props":6854,"children":6855},{"style":1329},[6856],{"type":381,"value":6857},"length",{"type":372,"tag":1275,"props":6859,"children":6860},{"style":1288},[6861],{"type":381,"value":6862},") plan.warnings.",{"type":372,"tag":1275,"props":6864,"children":6865},{"style":1345},[6866],{"type":381,"value":6439},{"type":372,"tag":1275,"props":6868,"children":6869},{"style":1288},[6870],{"type":381,"value":1926},{"type":372,"tag":1275,"props":6872,"children":6873},{"style":1299},[6874],{"type":381,"value":2590},{"type":372,"tag":1275,"props":6876,"children":6877},{"style":1288},[6878],{"type":381,"value":6879},"consumer",{"type":372,"tag":1275,"props":6881,"children":6882},{"style":1299},[6883],{"type":381,"value":445},{"type":372,"tag":1275,"props":6885,"children":6886},{"style":1288},[6887],{"type":381,"value":2920},{"type":372,"tag":1275,"props":6889,"children":6890},{"style":1299},[6891],{"type":381,"value":6892},"} ${",{"type":372,"tag":1275,"props":6894,"children":6895},{"style":1288},[6896],{"type":381,"value":6735},{"type":372,"tag":1275,"props":6898,"children":6899},{"style":1299},[6900],{"type":381,"value":445},{"type":372,"tag":1275,"props":6902,"children":6903},{"style":1288},[6904],{"type":381,"value":5174},{"type":372,"tag":1275,"props":6906,"children":6907},{"style":1299},[6908],{"type":381,"value":6909},"}: re-enter redacted headers by hand: ${",{"type":372,"tag":1275,"props":6911,"children":6912},{"style":1288},[6913],{"type":381,"value":6914},"h",{"type":372,"tag":1275,"props":6916,"children":6917},{"style":1299},[6918],{"type":381,"value":445},{"type":372,"tag":1275,"props":6920,"children":6921},{"style":1288},[6922],{"type":381,"value":6691},{"type":372,"tag":1275,"props":6924,"children":6925},{"style":1299},[6926],{"type":381,"value":445},{"type":372,"tag":1275,"props":6928,"children":6929},{"style":1345},[6930],{"type":381,"value":6931},"join",{"type":372,"tag":1275,"props":6933,"children":6934},{"style":1299},[6935],{"type":381,"value":1926},{"type":372,"tag":1275,"props":6937,"children":6938},{"style":1299},[6939],{"type":381,"value":6940},"\", \"",{"type":372,"tag":1275,"props":6942,"children":6943},{"style":1299},[6944],{"type":381,"value":852},{"type":372,"tag":1275,"props":6946,"children":6947},{"style":1299},[6948],{"type":381,"value":2644},{"type":372,"tag":1275,"props":6950,"children":6951},{"style":1288},[6952],{"type":381,"value":1368},{"type":372,"tag":1275,"props":6954,"children":6956},{"class":1277,"line":6955},63,[6957,6961,6966,6970,6974,6978,6982,6986,6990,6994,6998,7002,7006,7010,7014,7019,7023,7027,7032,7036,7040,7044,7048,7052,7057],{"type":372,"tag":1275,"props":6958,"children":6959},{"style":1282},[6960],{"type":381,"value":6847},{"type":372,"tag":1275,"props":6962,"children":6963},{"style":1288},[6964],{"type":381,"value":6965}," (ep.channels?.",{"type":372,"tag":1275,"props":6967,"children":6968},{"style":1329},[6969],{"type":381,"value":6857},{"type":372,"tag":1275,"props":6971,"children":6972},{"style":1288},[6973],{"type":381,"value":6862},{"type":372,"tag":1275,"props":6975,"children":6976},{"style":1345},[6977],{"type":381,"value":6439},{"type":372,"tag":1275,"props":6979,"children":6980},{"style":1288},[6981],{"type":381,"value":1926},{"type":372,"tag":1275,"props":6983,"children":6984},{"style":1299},[6985],{"type":381,"value":2590},{"type":372,"tag":1275,"props":6987,"children":6988},{"style":1288},[6989],{"type":381,"value":6879},{"type":372,"tag":1275,"props":6991,"children":6992},{"style":1299},[6993],{"type":381,"value":445},{"type":372,"tag":1275,"props":6995,"children":6996},{"style":1288},[6997],{"type":381,"value":2920},{"type":372,"tag":1275,"props":6999,"children":7000},{"style":1299},[7001],{"type":381,"value":6892},{"type":372,"tag":1275,"props":7003,"children":7004},{"style":1288},[7005],{"type":381,"value":6735},{"type":372,"tag":1275,"props":7007,"children":7008},{"style":1299},[7009],{"type":381,"value":445},{"type":372,"tag":1275,"props":7011,"children":7012},{"style":1288},[7013],{"type":381,"value":5174},{"type":372,"tag":1275,"props":7015,"children":7016},{"style":1299},[7017],{"type":381,"value":7018},"}: channels ${",{"type":372,"tag":1275,"props":7020,"children":7021},{"style":1288},[7022],{"type":381,"value":6735},{"type":372,"tag":1275,"props":7024,"children":7025},{"style":1299},[7026],{"type":381,"value":445},{"type":372,"tag":1275,"props":7028,"children":7029},{"style":1288},[7030],{"type":381,"value":7031},"channels",{"type":372,"tag":1275,"props":7033,"children":7034},{"style":1299},[7035],{"type":381,"value":445},{"type":372,"tag":1275,"props":7037,"children":7038},{"style":1345},[7039],{"type":381,"value":6931},{"type":372,"tag":1275,"props":7041,"children":7042},{"style":1299},[7043],{"type":381,"value":1926},{"type":372,"tag":1275,"props":7045,"children":7046},{"style":1299},[7047],{"type":381,"value":6940},{"type":372,"tag":1275,"props":7049,"children":7050},{"style":1299},[7051],{"type":381,"value":852},{"type":372,"tag":1275,"props":7053,"children":7054},{"style":1299},[7055],{"type":381,"value":7056},"} have no equivalent`",{"type":372,"tag":1275,"props":7058,"children":7059},{"style":1288},[7060],{"type":381,"value":1368},{"type":372,"tag":1275,"props":7062,"children":7064},{"class":1277,"line":7063},64,[7065],{"type":372,"tag":1275,"props":7066,"children":7067},{"emptyLinePlaceholder":1314},[7068],{"type":381,"value":1317},{"type":372,"tag":1275,"props":7070,"children":7072},{"class":1277,"line":7071},65,[7073,7077,7081,7085,7089,7093,7097,7101,7105,7109,7113,7117,7122,7126,7130,7134,7138,7142,7146,7150,7154,7159],{"type":372,"tag":1275,"props":7074,"children":7075},{"style":1282},[7076],{"type":381,"value":6633},{"type":372,"tag":1275,"props":7078,"children":7079},{"style":1288},[7080],{"type":381,"value":2502},{"type":372,"tag":1275,"props":7082,"children":7083},{"style":1329},[7084],{"type":381,"value":2507},{"type":372,"tag":1275,"props":7086,"children":7087},{"style":1288},[7088],{"type":381,"value":2512},{"type":372,"tag":1275,"props":7090,"children":7091},{"style":1282},[7092],{"type":381,"value":2517},{"type":372,"tag":1275,"props":7094,"children":7095},{"style":1282},[7096],{"type":381,"value":2522},{"type":372,"tag":1275,"props":7098,"children":7099},{"style":1345},[7100],{"type":381,"value":1332},{"type":372,"tag":1275,"props":7102,"children":7103},{"style":1288},[7104],{"type":381,"value":6098},{"type":372,"tag":1275,"props":7106,"children":7107},{"style":3649},[7108],{"type":381,"value":2507},{"type":372,"tag":1275,"props":7110,"children":7111},{"style":1282},[7112],{"type":381,"value":1503},{"type":372,"tag":1275,"props":7114,"children":7115},{"style":1329},[7116],{"type":381,"value":5165},{"type":372,"tag":1275,"props":7118,"children":7119},{"style":1288},[7120],{"type":381,"value":7121}," }>(",{"type":372,"tag":1275,"props":7123,"children":7124},{"style":1299},[7125],{"type":381,"value":6602},{"type":372,"tag":1275,"props":7127,"children":7128},{"style":1288},[7129],{"type":381,"value":6607},{"type":372,"tag":1275,"props":7131,"children":7132},{"style":1299},[7133],{"type":381,"value":445},{"type":372,"tag":1275,"props":7135,"children":7136},{"style":1288},[7137],{"type":381,"value":2920},{"type":372,"tag":1275,"props":7139,"children":7140},{"style":1299},[7141],{"type":381,"value":6730},{"type":372,"tag":1275,"props":7143,"children":7144},{"style":1288},[7145],{"type":381,"value":6735},{"type":372,"tag":1275,"props":7147,"children":7148},{"style":1299},[7149],{"type":381,"value":445},{"type":372,"tag":1275,"props":7151,"children":7152},{"style":1288},[7153],{"type":381,"value":2920},{"type":372,"tag":1275,"props":7155,"children":7156},{"style":1299},[7157],{"type":381,"value":7158},"}/secret`",{"type":372,"tag":1275,"props":7160,"children":7161},{"style":1288},[7162],{"type":381,"value":1368},{"type":372,"tag":1275,"props":7164,"children":7166},{"class":1277,"line":7165},66,[7167,7171,7175,7179,7183,7187,7191,7196,7200,7205,7209,7213],{"type":372,"tag":1275,"props":7168,"children":7169},{"style":1282},[7170],{"type":381,"value":6633},{"type":372,"tag":1275,"props":7172,"children":7173},{"style":1329},[7174],{"type":381,"value":4297},{"type":372,"tag":1275,"props":7176,"children":7177},{"style":1282},[7178],{"type":381,"value":1337},{"type":372,"tag":1275,"props":7180,"children":7181},{"style":1329},[7182],{"type":381,"value":5046},{"type":372,"tag":1275,"props":7184,"children":7185},{"style":1288},[7186],{"type":381,"value":445},{"type":372,"tag":1275,"props":7188,"children":7189},{"style":1345},[7190],{"type":381,"value":6833},{"type":372,"tag":1275,"props":7192,"children":7193},{"style":1288},[7194],{"type":381,"value":7195},"(key) ",{"type":372,"tag":1275,"props":7197,"children":7198},{"style":1282},[7199],{"type":381,"value":5068},{"type":372,"tag":1275,"props":7201,"children":7202},{"style":1288},[7203],{"type":381,"value":7204}," key ",{"type":372,"tag":1275,"props":7206,"children":7207},{"style":1282},[7208],{"type":381,"value":1503},{"type":372,"tag":1275,"props":7210,"children":7211},{"style":1329},[7212],{"type":381,"value":6050},{"type":372,"tag":1275,"props":7214,"children":7215},{"style":1288},[7216],{"type":381,"value":1307},{"type":372,"tag":1275,"props":7218,"children":7220},{"class":1277,"line":7219},67,[7221,7225,7229,7233,7238,7242,7246,7250,7254,7258,7262,7267,7271,7275,7279,7284],{"type":372,"tag":1275,"props":7222,"children":7223},{"style":1282},[7224],{"type":381,"value":6847},{"type":372,"tag":1275,"props":7226,"children":7227},{"style":1288},[7228],{"type":381,"value":604},{"type":372,"tag":1275,"props":7230,"children":7231},{"style":1282},[7232],{"type":381,"value":1363},{"type":372,"tag":1275,"props":7234,"children":7235},{"style":1288},[7236],{"type":381,"value":7237},"secret) plan.warnings.",{"type":372,"tag":1275,"props":7239,"children":7240},{"style":1345},[7241],{"type":381,"value":6439},{"type":372,"tag":1275,"props":7243,"children":7244},{"style":1288},[7245],{"type":381,"value":1926},{"type":372,"tag":1275,"props":7247,"children":7248},{"style":1299},[7249],{"type":381,"value":2590},{"type":372,"tag":1275,"props":7251,"children":7252},{"style":1288},[7253],{"type":381,"value":6879},{"type":372,"tag":1275,"props":7255,"children":7256},{"style":1299},[7257],{"type":381,"value":445},{"type":372,"tag":1275,"props":7259,"children":7260},{"style":1288},[7261],{"type":381,"value":2920},{"type":372,"tag":1275,"props":7263,"children":7264},{"style":1299},[7265],{"type":381,"value":7266},"} endpoint ${",{"type":372,"tag":1275,"props":7268,"children":7269},{"style":1288},[7270],{"type":381,"value":6735},{"type":372,"tag":1275,"props":7272,"children":7273},{"style":1299},[7274],{"type":381,"value":445},{"type":372,"tag":1275,"props":7276,"children":7277},{"style":1288},[7278],{"type":381,"value":2920},{"type":372,"tag":1275,"props":7280,"children":7281},{"style":1299},[7282],{"type":381,"value":7283},"}: asymmetric key, gets a NEW secret (receiver must accept both)`",{"type":372,"tag":1275,"props":7285,"children":7286},{"style":1288},[7287],{"type":381,"value":1368},{"type":372,"tag":1275,"props":7289,"children":7291},{"class":1277,"line":7290},68,[7292],{"type":372,"tag":1275,"props":7293,"children":7294},{"emptyLinePlaceholder":1314},[7295],{"type":381,"value":1317},{"type":372,"tag":1275,"props":7297,"children":7299},{"class":1277,"line":7298},69,[7300,7305,7309],{"type":372,"tag":1275,"props":7301,"children":7302},{"style":1288},[7303],{"type":381,"value":7304},"      consumer.endpoints.",{"type":372,"tag":1275,"props":7306,"children":7307},{"style":1345},[7308],{"type":381,"value":6439},{"type":372,"tag":1275,"props":7310,"children":7311},{"style":1288},[7312],{"type":381,"value":7313},"({\n",{"type":372,"tag":1275,"props":7315,"children":7317},{"class":1277,"line":7316},70,[7318],{"type":372,"tag":1275,"props":7319,"children":7320},{"style":1288},[7321],{"type":381,"value":7322},"        sourceId: ep.id, url: ep.url,\n",{"type":372,"tag":1275,"props":7324,"children":7326},{"class":1277,"line":7325},71,[7327,7332,7336,7341,7346,7350,7354,7359],{"type":372,"tag":1275,"props":7328,"children":7329},{"style":1288},[7330],{"type":381,"value":7331},"        eventTypes: ep.eventTypes?.",{"type":372,"tag":1275,"props":7333,"children":7334},{"style":1329},[7335],{"type":381,"value":6857},{"type":372,"tag":1275,"props":7337,"children":7338},{"style":1282},[7339],{"type":381,"value":7340}," ?",{"type":372,"tag":1275,"props":7342,"children":7343},{"style":1288},[7344],{"type":381,"value":7345}," ep.eventTypes ",{"type":372,"tag":1275,"props":7347,"children":7348},{"style":1282},[7349],{"type":381,"value":1503},{"type":372,"tag":1275,"props":7351,"children":7352},{"style":1288},[7353],{"type":381,"value":5704},{"type":372,"tag":1275,"props":7355,"children":7356},{"style":1299},[7357],{"type":381,"value":7358},"\"*\"",{"type":372,"tag":1275,"props":7360,"children":7361},{"style":1288},[7362],{"type":381,"value":3043},{"type":372,"tag":1275,"props":7364,"children":7366},{"class":1277,"line":7365},72,[7367,7372,7377,7381],{"type":372,"tag":1275,"props":7368,"children":7369},{"style":1288},[7370],{"type":381,"value":7371},"        description: ep.description ",{"type":372,"tag":1275,"props":7373,"children":7374},{"style":1282},[7375],{"type":381,"value":7376},"||",{"type":372,"tag":1275,"props":7378,"children":7379},{"style":1329},[7380],{"type":381,"value":6050},{"type":372,"tag":1275,"props":7382,"children":7383},{"style":1288},[7384],{"type":381,"value":7385},", headers,\n",{"type":372,"tag":1275,"props":7387,"children":7389},{"class":1277,"line":7388},73,[7390,7395,7399,7404,7409,7414,7419,7423,7427,7431],{"type":372,"tag":1275,"props":7391,"children":7392},{"style":1288},[7393],{"type":381,"value":7394},"        rate: ep.throttleRate ",{"type":372,"tag":1275,"props":7396,"children":7397},{"style":1282},[7398],{"type":381,"value":5068},{"type":372,"tag":1275,"props":7400,"children":7401},{"style":1288},[7402],{"type":381,"value":7403}," Math.",{"type":372,"tag":1275,"props":7405,"children":7406},{"style":1345},[7407],{"type":381,"value":7408},"min",{"type":372,"tag":1275,"props":7410,"children":7411},{"style":1288},[7412],{"type":381,"value":7413},"(ep.throttleRate, ",{"type":372,"tag":1275,"props":7415,"children":7416},{"style":1329},[7417],{"type":381,"value":7418},"1000",{"type":372,"tag":1275,"props":7420,"children":7421},{"style":1288},[7422],{"type":381,"value":3656},{"type":372,"tag":1275,"props":7424,"children":7425},{"style":1282},[7426],{"type":381,"value":1503},{"type":372,"tag":1275,"props":7428,"children":7429},{"style":1329},[7430],{"type":381,"value":6050},{"type":372,"tag":1275,"props":7432,"children":7433},{"style":1288},[7434],{"type":381,"value":1414},{"type":372,"tag":1275,"props":7436,"children":7438},{"class":1277,"line":7437},74,[7439],{"type":372,"tag":1275,"props":7440,"children":7441},{"style":1288},[7442],{"type":381,"value":7443},"        disabledAtSource: ep.disabled, secret,\n",{"type":372,"tag":1275,"props":7445,"children":7447},{"class":1277,"line":7446},75,[7448],{"type":372,"tag":1275,"props":7449,"children":7450},{"style":1288},[7451],{"type":381,"value":7452},"      });\n",{"type":372,"tag":1275,"props":7454,"children":7456},{"class":1277,"line":7455},76,[7457],{"type":372,"tag":1275,"props":7458,"children":7459},{"style":1288},[7460],{"type":381,"value":7461},"    }\n",{"type":372,"tag":1275,"props":7463,"children":7465},{"class":1277,"line":7464},77,[7466,7471,7475],{"type":372,"tag":1275,"props":7467,"children":7468},{"style":1288},[7469],{"type":381,"value":7470},"    plan.consumers.",{"type":372,"tag":1275,"props":7472,"children":7473},{"style":1345},[7474],{"type":381,"value":6439},{"type":372,"tag":1275,"props":7476,"children":7477},{"style":1288},[7478],{"type":381,"value":7479},"(consumer);\n",{"type":372,"tag":1275,"props":7481,"children":7483},{"class":1277,"line":7482},78,[7484],{"type":372,"tag":1275,"props":7485,"children":7486},{"style":1288},[7487],{"type":381,"value":3820},{"type":372,"tag":1275,"props":7489,"children":7491},{"class":1277,"line":7490},79,[7492,7496],{"type":372,"tag":1275,"props":7493,"children":7494},{"style":1282},[7495],{"type":381,"value":5901},{"type":372,"tag":1275,"props":7497,"children":7498},{"style":1288},[7499],{"type":381,"value":7500}," plan;\n",{"type":372,"tag":1275,"props":7502,"children":7504},{"class":1277,"line":7503},80,[7505],{"type":372,"tag":1275,"props":7506,"children":7507},{"style":1288},[7508],{"type":381,"value":3857},{"type":372,"tag":1275,"props":7510,"children":7512},{"class":1277,"line":7511},81,[7513],{"type":372,"tag":1275,"props":7514,"children":7515},{"emptyLinePlaceholder":1314},[7516],{"type":381,"value":1317},{"type":372,"tag":1275,"props":7518,"children":7520},{"class":1277,"line":7519},82,[7521],{"type":372,"tag":1275,"props":7522,"children":7523},{"style":1578},[7524],{"type":381,"value":7525},"// ---- 2. Check access and limits before writing anything ----\n",{"type":372,"tag":1275,"props":7527,"children":7529},{"class":1277,"line":7528},83,[7530,7534,7538,7543,7547,7552,7556,7560],{"type":372,"tag":1275,"props":7531,"children":7532},{"style":1282},[7533],{"type":381,"value":5539},{"type":372,"tag":1275,"props":7535,"children":7536},{"style":1282},[7537],{"type":381,"value":3695},{"type":372,"tag":1275,"props":7539,"children":7540},{"style":1345},[7541],{"type":381,"value":7542}," checkPlan",{"type":372,"tag":1275,"props":7544,"children":7545},{"style":1288},[7546],{"type":381,"value":1926},{"type":372,"tag":1275,"props":7548,"children":7549},{"style":3649},[7550],{"type":381,"value":7551},"plan",{"type":372,"tag":1275,"props":7553,"children":7554},{"style":1282},[7555],{"type":381,"value":1503},{"type":372,"tag":1275,"props":7557,"children":7558},{"style":1345},[7559],{"type":381,"value":5340},{"type":372,"tag":1275,"props":7561,"children":7562},{"style":1288},[7563],{"type":381,"value":3722},{"type":372,"tag":1275,"props":7565,"children":7567},{"class":1277,"line":7566},84,[7568,7572,7576,7580,7584,7588,7592,7596,7601,7606,7611,7616],{"type":372,"tag":1275,"props":7569,"children":7570},{"style":1282},[7571],{"type":381,"value":5652},{"type":372,"tag":1275,"props":7573,"children":7574},{"style":1329},[7575],{"type":381,"value":2679},{"type":372,"tag":1275,"props":7577,"children":7578},{"style":1282},[7579],{"type":381,"value":1337},{"type":372,"tag":1275,"props":7581,"children":7582},{"style":1282},[7583],{"type":381,"value":2522},{"type":372,"tag":1275,"props":7585,"children":7586},{"style":1345},[7587],{"type":381,"value":2692},{"type":372,"tag":1275,"props":7589,"children":7590},{"style":1288},[7591],{"type":381,"value":1926},{"type":372,"tag":1275,"props":7593,"children":7594},{"style":1299},[7595],{"type":381,"value":2590},{"type":372,"tag":1275,"props":7597,"children":7598},{"style":1329},[7599],{"type":381,"value":7600},"RELAY_API",{"type":372,"tag":1275,"props":7602,"children":7603},{"style":1299},[7604],{"type":381,"value":7605},"}/v1/outbound/access`",{"type":372,"tag":1275,"props":7607,"children":7608},{"style":1288},[7609],{"type":381,"value":7610},", { headers: { Authorization: ",{"type":372,"tag":1275,"props":7612,"children":7613},{"style":1329},[7614],{"type":381,"value":7615},"RELAY_AUTH",{"type":372,"tag":1275,"props":7617,"children":7618},{"style":1288},[7619],{"type":381,"value":5816},{"type":372,"tag":1275,"props":7621,"children":7623},{"class":1277,"line":7622},85,[7624,7628,7633,7637,7641,7645,7649],{"type":372,"tag":1275,"props":7625,"children":7626},{"style":1282},[7627],{"type":381,"value":5652},{"type":372,"tag":1275,"props":7629,"children":7630},{"style":1329},[7631],{"type":381,"value":7632}," access",{"type":372,"tag":1275,"props":7634,"children":7635},{"style":1282},[7636],{"type":381,"value":1337},{"type":372,"tag":1275,"props":7638,"children":7639},{"style":1282},[7640],{"type":381,"value":2522},{"type":372,"tag":1275,"props":7642,"children":7643},{"style":1288},[7644],{"type":381,"value":2937},{"type":372,"tag":1275,"props":7646,"children":7647},{"style":1345},[7648],{"type":381,"value":2942},{"type":372,"tag":1275,"props":7650,"children":7651},{"style":1288},[7652],{"type":381,"value":2947},{"type":372,"tag":1275,"props":7654,"children":7656},{"class":1277,"line":7655},86,[7657,7661,7665,7669,7674,7678,7682,7686,7690,7695],{"type":372,"tag":1275,"props":7658,"children":7659},{"style":1282},[7660],{"type":381,"value":5825},{"type":372,"tag":1275,"props":7662,"children":7663},{"style":1288},[7664],{"type":381,"value":604},{"type":372,"tag":1275,"props":7666,"children":7667},{"style":1282},[7668],{"type":381,"value":1363},{"type":372,"tag":1275,"props":7670,"children":7671},{"style":1288},[7672],{"type":381,"value":7673},"access.enabled) ",{"type":372,"tag":1275,"props":7675,"children":7676},{"style":1282},[7677],{"type":381,"value":2857},{"type":372,"tag":1275,"props":7679,"children":7680},{"style":1282},[7681],{"type":381,"value":1342},{"type":372,"tag":1275,"props":7683,"children":7684},{"style":1345},[7685],{"type":381,"value":2866},{"type":372,"tag":1275,"props":7687,"children":7688},{"style":1288},[7689],{"type":381,"value":1926},{"type":372,"tag":1275,"props":7691,"children":7692},{"style":1299},[7693],{"type":381,"value":7694},"\"The Outbound Gateway needs a Basic, Business or Pro plan: upgrade at https://my.webhookrelay.com/account\"",{"type":372,"tag":1275,"props":7696,"children":7697},{"style":1288},[7698],{"type":381,"value":1368},{"type":372,"tag":1275,"props":7700,"children":7702},{"class":1277,"line":7701},87,[7703,7707,7712,7716,7721,7725,7729,7734,7738,7742,7746,7751,7755,7759,7763,7767,7771,7775],{"type":372,"tag":1275,"props":7704,"children":7705},{"style":1282},[7706],{"type":381,"value":5652},{"type":372,"tag":1275,"props":7708,"children":7709},{"style":1329},[7710],{"type":381,"value":7711}," limits",{"type":372,"tag":1275,"props":7713,"children":7714},{"style":1282},[7715],{"type":381,"value":1337},{"type":372,"tag":1275,"props":7717,"children":7718},{"style":1288},[7719],{"type":381,"value":7720}," access.limits ",{"type":372,"tag":1275,"props":7722,"children":7723},{"style":1282},[7724],{"type":381,"value":5919},{"type":372,"tag":1275,"props":7726,"children":7727},{"style":1288},[7728],{"type":381,"value":2502},{"type":372,"tag":1275,"props":7730,"children":7731},{"style":3649},[7732],{"type":381,"value":7733},"consumers",{"type":372,"tag":1275,"props":7735,"children":7736},{"style":1282},[7737],{"type":381,"value":1503},{"type":372,"tag":1275,"props":7739,"children":7740},{"style":1329},[7741],{"type":381,"value":5273},{"type":372,"tag":1275,"props":7743,"children":7744},{"style":1288},[7745],{"type":381,"value":4886},{"type":372,"tag":1275,"props":7747,"children":7748},{"style":3649},[7749],{"type":381,"value":7750},"endpoints_per_consumer",{"type":372,"tag":1275,"props":7752,"children":7753},{"style":1282},[7754],{"type":381,"value":1503},{"type":372,"tag":1275,"props":7756,"children":7757},{"style":1329},[7758],{"type":381,"value":5273},{"type":372,"tag":1275,"props":7760,"children":7761},{"style":1288},[7762],{"type":381,"value":4886},{"type":372,"tag":1275,"props":7764,"children":7765},{"style":3649},[7766],{"type":381,"value":602},{"type":372,"tag":1275,"props":7768,"children":7769},{"style":1282},[7770],{"type":381,"value":1503},{"type":372,"tag":1275,"props":7772,"children":7773},{"style":1329},[7774],{"type":381,"value":5273},{"type":372,"tag":1275,"props":7776,"children":7777},{"style":1288},[7778],{"type":381,"value":7779}," };\n",{"type":372,"tag":1275,"props":7781,"children":7783},{"class":1277,"line":7782},88,[7784],{"type":372,"tag":1275,"props":7785,"children":7786},{"emptyLinePlaceholder":1314},[7787],{"type":381,"value":1317},{"type":372,"tag":1275,"props":7789,"children":7791},{"class":1277,"line":7790},89,[7792,7796,7801,7805,7809,7814,7818,7822,7826,7831,7836,7840,7844,7849,7853,7857],{"type":372,"tag":1275,"props":7793,"children":7794},{"style":1282},[7795],{"type":381,"value":5652},{"type":372,"tag":1275,"props":7797,"children":7798},{"style":1329},[7799],{"type":381,"value":7800}," haveConsumers",{"type":372,"tag":1275,"props":7802,"children":7803},{"style":1282},[7804],{"type":381,"value":1337},{"type":372,"tag":1275,"props":7806,"children":7807},{"style":1282},[7808],{"type":381,"value":1342},{"type":372,"tag":1275,"props":7810,"children":7811},{"style":1345},[7812],{"type":381,"value":7813}," Set",{"type":372,"tag":1275,"props":7815,"children":7816},{"style":1288},[7817],{"type":381,"value":3646},{"type":372,"tag":1275,"props":7819,"children":7820},{"style":1282},[7821],{"type":381,"value":1385},{"type":372,"tag":1275,"props":7823,"children":7824},{"style":1288},[7825],{"type":381,"value":2464},{"type":372,"tag":1275,"props":7827,"children":7828},{"style":1345},[7829],{"type":381,"value":7830},"list",{"type":372,"tag":1275,"props":7832,"children":7833},{"style":1288},[7834],{"type":381,"value":7835},"()).",{"type":372,"tag":1275,"props":7837,"children":7838},{"style":1345},[7839],{"type":381,"value":1806},{"type":372,"tag":1275,"props":7841,"children":7842},{"style":1288},[7843],{"type":381,"value":3646},{"type":372,"tag":1275,"props":7845,"children":7846},{"style":3649},[7847],{"type":381,"value":7848},"c",{"type":372,"tag":1275,"props":7850,"children":7851},{"style":1288},[7852],{"type":381,"value":3656},{"type":372,"tag":1275,"props":7854,"children":7855},{"style":1282},[7856],{"type":381,"value":3661},{"type":372,"tag":1275,"props":7858,"children":7859},{"style":1288},[7860],{"type":381,"value":7861}," c.id));\n",{"type":372,"tag":1275,"props":7863,"children":7865},{"class":1277,"line":7864},90,[7866,7870,7875,7879,7883,7887,7891,7895,7900,7904,7908,7912,7916,7921,7925,7929],{"type":372,"tag":1275,"props":7867,"children":7868},{"style":1282},[7869],{"type":381,"value":5652},{"type":372,"tag":1275,"props":7871,"children":7872},{"style":1329},[7873],{"type":381,"value":7874}," haveTypes",{"type":372,"tag":1275,"props":7876,"children":7877},{"style":1282},[7878],{"type":381,"value":1337},{"type":372,"tag":1275,"props":7880,"children":7881},{"style":1282},[7882],{"type":381,"value":1342},{"type":372,"tag":1275,"props":7884,"children":7885},{"style":1345},[7886],{"type":381,"value":7813},{"type":372,"tag":1275,"props":7888,"children":7889},{"style":1288},[7890],{"type":381,"value":3646},{"type":372,"tag":1275,"props":7892,"children":7893},{"style":1282},[7894],{"type":381,"value":1385},{"type":372,"tag":1275,"props":7896,"children":7897},{"style":1288},[7898],{"type":381,"value":7899}," relay.outbound.eventTypes.",{"type":372,"tag":1275,"props":7901,"children":7902},{"style":1345},[7903],{"type":381,"value":7830},{"type":372,"tag":1275,"props":7905,"children":7906},{"style":1288},[7907],{"type":381,"value":7835},{"type":372,"tag":1275,"props":7909,"children":7910},{"style":1345},[7911],{"type":381,"value":1806},{"type":372,"tag":1275,"props":7913,"children":7914},{"style":1288},[7915],{"type":381,"value":3646},{"type":372,"tag":1275,"props":7917,"children":7918},{"style":3649},[7919],{"type":381,"value":7920},"e",{"type":372,"tag":1275,"props":7922,"children":7923},{"style":1288},[7924],{"type":381,"value":3656},{"type":372,"tag":1275,"props":7926,"children":7927},{"style":1282},[7928],{"type":381,"value":3661},{"type":372,"tag":1275,"props":7930,"children":7931},{"style":1288},[7932],{"type":381,"value":7933}," e.name));\n",{"type":372,"tag":1275,"props":7935,"children":7937},{"class":1277,"line":7936},91,[7938,7942,7947,7951,7955,7959,7964,7968,7973,7977,7982,7986,7990,7994,7998,8002],{"type":372,"tag":1275,"props":7939,"children":7940},{"style":1282},[7941],{"type":381,"value":5652},{"type":372,"tag":1275,"props":7943,"children":7944},{"style":1329},[7945],{"type":381,"value":7946}," consumers",{"type":372,"tag":1275,"props":7948,"children":7949},{"style":1282},[7950],{"type":381,"value":1337},{"type":372,"tag":1275,"props":7952,"children":7953},{"style":1282},[7954],{"type":381,"value":1342},{"type":372,"tag":1275,"props":7956,"children":7957},{"style":1345},[7958],{"type":381,"value":7813},{"type":372,"tag":1275,"props":7960,"children":7961},{"style":1288},[7962],{"type":381,"value":7963},"([",{"type":372,"tag":1275,"props":7965,"children":7966},{"style":1282},[7967],{"type":381,"value":6174},{"type":372,"tag":1275,"props":7969,"children":7970},{"style":1288},[7971],{"type":381,"value":7972},"haveConsumers, ",{"type":372,"tag":1275,"props":7974,"children":7975},{"style":1282},[7976],{"type":381,"value":6174},{"type":372,"tag":1275,"props":7978,"children":7979},{"style":1288},[7980],{"type":381,"value":7981},"plan.consumers.",{"type":372,"tag":1275,"props":7983,"children":7984},{"style":1345},[7985],{"type":381,"value":1806},{"type":372,"tag":1275,"props":7987,"children":7988},{"style":1288},[7989],{"type":381,"value":3646},{"type":372,"tag":1275,"props":7991,"children":7992},{"style":3649},[7993],{"type":381,"value":7848},{"type":372,"tag":1275,"props":7995,"children":7996},{"style":1288},[7997],{"type":381,"value":3656},{"type":372,"tag":1275,"props":7999,"children":8000},{"style":1282},[8001],{"type":381,"value":3661},{"type":372,"tag":1275,"props":8003,"children":8004},{"style":1288},[8005],{"type":381,"value":8006}," c.id)]).size;\n",{"type":372,"tag":1275,"props":8008,"children":8010},{"class":1277,"line":8009},92,[8011,8015,8020,8024,8028,8032,8036,8040,8045,8049,8054,8058,8062,8066,8070,8074],{"type":372,"tag":1275,"props":8012,"children":8013},{"style":1282},[8014],{"type":381,"value":5652},{"type":372,"tag":1275,"props":8016,"children":8017},{"style":1329},[8018],{"type":381,"value":8019}," types",{"type":372,"tag":1275,"props":8021,"children":8022},{"style":1282},[8023],{"type":381,"value":1337},{"type":372,"tag":1275,"props":8025,"children":8026},{"style":1282},[8027],{"type":381,"value":1342},{"type":372,"tag":1275,"props":8029,"children":8030},{"style":1345},[8031],{"type":381,"value":7813},{"type":372,"tag":1275,"props":8033,"children":8034},{"style":1288},[8035],{"type":381,"value":7963},{"type":372,"tag":1275,"props":8037,"children":8038},{"style":1282},[8039],{"type":381,"value":6174},{"type":372,"tag":1275,"props":8041,"children":8042},{"style":1288},[8043],{"type":381,"value":8044},"haveTypes, ",{"type":372,"tag":1275,"props":8046,"children":8047},{"style":1282},[8048],{"type":381,"value":6174},{"type":372,"tag":1275,"props":8050,"children":8051},{"style":1288},[8052],{"type":381,"value":8053},"plan.eventTypes.",{"type":372,"tag":1275,"props":8055,"children":8056},{"style":1345},[8057],{"type":381,"value":1806},{"type":372,"tag":1275,"props":8059,"children":8060},{"style":1288},[8061],{"type":381,"value":3646},{"type":372,"tag":1275,"props":8063,"children":8064},{"style":3649},[8065],{"type":381,"value":7920},{"type":372,"tag":1275,"props":8067,"children":8068},{"style":1288},[8069],{"type":381,"value":3656},{"type":372,"tag":1275,"props":8071,"children":8072},{"style":1282},[8073],{"type":381,"value":3661},{"type":372,"tag":1275,"props":8075,"children":8076},{"style":1288},[8077],{"type":381,"value":8078}," e.name)]).size;\n",{"type":372,"tag":1275,"props":8080,"children":8082},{"class":1277,"line":8081},93,[8083],{"type":372,"tag":1275,"props":8084,"children":8085},{"emptyLinePlaceholder":1314},[8086],{"type":381,"value":1317},{"type":372,"tag":1275,"props":8088,"children":8090},{"class":1277,"line":8089},94,[8091,8095,8100,8104,8108,8113,8117],{"type":372,"tag":1275,"props":8092,"children":8093},{"style":1282},[8094],{"type":381,"value":5652},{"type":372,"tag":1275,"props":8096,"children":8097},{"style":1329},[8098],{"type":381,"value":8099}," problems",{"type":372,"tag":1275,"props":8101,"children":8102},{"style":1282},[8103],{"type":381,"value":1503},{"type":372,"tag":1275,"props":8105,"children":8106},{"style":1329},[8107],{"type":381,"value":5165},{"type":372,"tag":1275,"props":8109,"children":8110},{"style":1288},[8111],{"type":381,"value":8112},"[] ",{"type":372,"tag":1275,"props":8114,"children":8115},{"style":1282},[8116],{"type":381,"value":2517},{"type":372,"tag":1275,"props":8118,"children":8119},{"style":1288},[8120],{"type":381,"value":8121}," [];\n",{"type":372,"tag":1275,"props":8123,"children":8125},{"class":1277,"line":8124},95,[8126,8130,8135,8140,8145,8149,8153,8157,8161,8166,8171,8175,8179,8183],{"type":372,"tag":1275,"props":8127,"children":8128},{"style":1282},[8129],{"type":381,"value":5825},{"type":372,"tag":1275,"props":8131,"children":8132},{"style":1288},[8133],{"type":381,"value":8134}," (consumers ",{"type":372,"tag":1275,"props":8136,"children":8137},{"style":1282},[8138],{"type":381,"value":8139},">",{"type":372,"tag":1275,"props":8141,"children":8142},{"style":1288},[8143],{"type":381,"value":8144}," limits.consumers) problems.",{"type":372,"tag":1275,"props":8146,"children":8147},{"style":1345},[8148],{"type":381,"value":6439},{"type":372,"tag":1275,"props":8150,"children":8151},{"style":1288},[8152],{"type":381,"value":1926},{"type":372,"tag":1275,"props":8154,"children":8155},{"style":1299},[8156],{"type":381,"value":2590},{"type":372,"tag":1275,"props":8158,"children":8159},{"style":1288},[8160],{"type":381,"value":7733},{"type":372,"tag":1275,"props":8162,"children":8163},{"style":1299},[8164],{"type":381,"value":8165},"} consumers exceed the limit of ${",{"type":372,"tag":1275,"props":8167,"children":8168},{"style":1288},[8169],{"type":381,"value":8170},"limits",{"type":372,"tag":1275,"props":8172,"children":8173},{"style":1299},[8174],{"type":381,"value":445},{"type":372,"tag":1275,"props":8176,"children":8177},{"style":1288},[8178],{"type":381,"value":7733},{"type":372,"tag":1275,"props":8180,"children":8181},{"style":1299},[8182],{"type":381,"value":2644},{"type":372,"tag":1275,"props":8184,"children":8185},{"style":1288},[8186],{"type":381,"value":1368},{"type":372,"tag":1275,"props":8188,"children":8190},{"class":1277,"line":8189},96,[8191,8195,8200,8204,8209,8213,8217,8221,8226,8231,8235,8239,8243,8247],{"type":372,"tag":1275,"props":8192,"children":8193},{"style":1282},[8194],{"type":381,"value":5825},{"type":372,"tag":1275,"props":8196,"children":8197},{"style":1288},[8198],{"type":381,"value":8199}," (types ",{"type":372,"tag":1275,"props":8201,"children":8202},{"style":1282},[8203],{"type":381,"value":8139},{"type":372,"tag":1275,"props":8205,"children":8206},{"style":1288},[8207],{"type":381,"value":8208}," limits.event_types) problems.",{"type":372,"tag":1275,"props":8210,"children":8211},{"style":1345},[8212],{"type":381,"value":6439},{"type":372,"tag":1275,"props":8214,"children":8215},{"style":1288},[8216],{"type":381,"value":1926},{"type":372,"tag":1275,"props":8218,"children":8219},{"style":1299},[8220],{"type":381,"value":2590},{"type":372,"tag":1275,"props":8222,"children":8223},{"style":1288},[8224],{"type":381,"value":8225},"types",{"type":372,"tag":1275,"props":8227,"children":8228},{"style":1299},[8229],{"type":381,"value":8230},"} event types exceed the limit of ${",{"type":372,"tag":1275,"props":8232,"children":8233},{"style":1288},[8234],{"type":381,"value":8170},{"type":372,"tag":1275,"props":8236,"children":8237},{"style":1299},[8238],{"type":381,"value":445},{"type":372,"tag":1275,"props":8240,"children":8241},{"style":1288},[8242],{"type":381,"value":602},{"type":372,"tag":1275,"props":8244,"children":8245},{"style":1299},[8246],{"type":381,"value":2644},{"type":372,"tag":1275,"props":8248,"children":8249},{"style":1288},[8250],{"type":381,"value":1368},{"type":372,"tag":1275,"props":8252,"children":8254},{"class":1277,"line":8253},97,[8255,8259,8263,8267,8271,8275,8280,8284,8288,8292,8297,8301,8305,8310,8314,8318,8323,8328,8332,8336,8341],{"type":372,"tag":1275,"props":8256,"children":8257},{"style":1282},[8258],{"type":381,"value":3730},{"type":372,"tag":1275,"props":8260,"children":8261},{"style":1288},[8262],{"type":381,"value":604},{"type":372,"tag":1275,"props":8264,"children":8265},{"style":1282},[8266],{"type":381,"value":1326},{"type":372,"tag":1275,"props":8268,"children":8269},{"style":1329},[8270],{"type":381,"value":6383},{"type":372,"tag":1275,"props":8272,"children":8273},{"style":1282},[8274],{"type":381,"value":3748},{"type":372,"tag":1275,"props":8276,"children":8277},{"style":1288},[8278],{"type":381,"value":8279}," plan.eventTypes) ",{"type":372,"tag":1275,"props":8281,"children":8282},{"style":1282},[8283],{"type":381,"value":2839},{"type":372,"tag":1275,"props":8285,"children":8286},{"style":1288},[8287],{"type":381,"value":604},{"type":372,"tag":1275,"props":8289,"children":8290},{"style":1282},[8291],{"type":381,"value":1363},{"type":372,"tag":1275,"props":8293,"children":8294},{"style":1329},[8295],{"type":381,"value":8296},"ID",{"type":372,"tag":1275,"props":8298,"children":8299},{"style":1288},[8300],{"type":381,"value":445},{"type":372,"tag":1275,"props":8302,"children":8303},{"style":1345},[8304],{"type":381,"value":6833},{"type":372,"tag":1275,"props":8306,"children":8307},{"style":1288},[8308],{"type":381,"value":8309},"(et.name)) problems.",{"type":372,"tag":1275,"props":8311,"children":8312},{"style":1345},[8313],{"type":381,"value":6439},{"type":372,"tag":1275,"props":8315,"children":8316},{"style":1288},[8317],{"type":381,"value":1926},{"type":372,"tag":1275,"props":8319,"children":8320},{"style":1299},[8321],{"type":381,"value":8322},"`event type \"${",{"type":372,"tag":1275,"props":8324,"children":8325},{"style":1288},[8326],{"type":381,"value":8327},"et",{"type":372,"tag":1275,"props":8329,"children":8330},{"style":1299},[8331],{"type":381,"value":445},{"type":372,"tag":1275,"props":8333,"children":8334},{"style":1288},[8335],{"type":381,"value":5370},{"type":372,"tag":1275,"props":8337,"children":8338},{"style":1299},[8339],{"type":381,"value":8340},"}\" is not a valid name`",{"type":372,"tag":1275,"props":8342,"children":8343},{"style":1288},[8344],{"type":381,"value":1368},{"type":372,"tag":1275,"props":8346,"children":8348},{"class":1277,"line":8347},98,[8349,8353,8357,8361,8366,8370],{"type":372,"tag":1275,"props":8350,"children":8351},{"style":1282},[8352],{"type":381,"value":3730},{"type":372,"tag":1275,"props":8354,"children":8355},{"style":1288},[8356],{"type":381,"value":604},{"type":372,"tag":1275,"props":8358,"children":8359},{"style":1282},[8360],{"type":381,"value":1326},{"type":372,"tag":1275,"props":8362,"children":8363},{"style":1329},[8364],{"type":381,"value":8365}," c",{"type":372,"tag":1275,"props":8367,"children":8368},{"style":1282},[8369],{"type":381,"value":3748},{"type":372,"tag":1275,"props":8371,"children":8372},{"style":1288},[8373],{"type":381,"value":8374}," plan.consumers) {\n",{"type":372,"tag":1275,"props":8376,"children":8378},{"class":1277,"line":8377},99,[8379,8383,8387,8391,8395,8399,8403,8408,8412,8416,8421,8425,8429,8433,8438],{"type":372,"tag":1275,"props":8380,"children":8381},{"style":1282},[8382],{"type":381,"value":6229},{"type":372,"tag":1275,"props":8384,"children":8385},{"style":1288},[8386],{"type":381,"value":604},{"type":372,"tag":1275,"props":8388,"children":8389},{"style":1282},[8390],{"type":381,"value":1363},{"type":372,"tag":1275,"props":8392,"children":8393},{"style":1329},[8394],{"type":381,"value":8296},{"type":372,"tag":1275,"props":8396,"children":8397},{"style":1288},[8398],{"type":381,"value":445},{"type":372,"tag":1275,"props":8400,"children":8401},{"style":1345},[8402],{"type":381,"value":6833},{"type":372,"tag":1275,"props":8404,"children":8405},{"style":1288},[8406],{"type":381,"value":8407},"(c.id)) problems.",{"type":372,"tag":1275,"props":8409,"children":8410},{"style":1345},[8411],{"type":381,"value":6439},{"type":372,"tag":1275,"props":8413,"children":8414},{"style":1288},[8415],{"type":381,"value":1926},{"type":372,"tag":1275,"props":8417,"children":8418},{"style":1299},[8419],{"type":381,"value":8420},"`consumer \"${",{"type":372,"tag":1275,"props":8422,"children":8423},{"style":1288},[8424],{"type":381,"value":7848},{"type":372,"tag":1275,"props":8426,"children":8427},{"style":1299},[8428],{"type":381,"value":445},{"type":372,"tag":1275,"props":8430,"children":8431},{"style":1288},[8432],{"type":381,"value":2920},{"type":372,"tag":1275,"props":8434,"children":8435},{"style":1299},[8436],{"type":381,"value":8437},"}\" is not a valid ID: map it to your own customer ID`",{"type":372,"tag":1275,"props":8439,"children":8440},{"style":1288},[8441],{"type":381,"value":1368},{"type":372,"tag":1275,"props":8443,"children":8445},{"class":1277,"line":8444},100,[8446,8450,8455,8459,8464],{"type":372,"tag":1275,"props":8447,"children":8448},{"style":1282},[8449],{"type":381,"value":6229},{"type":372,"tag":1275,"props":8451,"children":8452},{"style":1288},[8453],{"type":381,"value":8454}," (c.endpoints.",{"type":372,"tag":1275,"props":8456,"children":8457},{"style":1329},[8458],{"type":381,"value":6857},{"type":372,"tag":1275,"props":8460,"children":8461},{"style":1282},[8462],{"type":381,"value":8463}," >",{"type":372,"tag":1275,"props":8465,"children":8466},{"style":1288},[8467],{"type":381,"value":8468}," limits.endpoints_per_consumer)\n",{"type":372,"tag":1275,"props":8470,"children":8472},{"class":1277,"line":8471},101,[8473,8478,8482,8486,8490,8494,8498,8502,8507,8511,8515,8519,8523,8527,8532,8536,8540,8544,8548],{"type":372,"tag":1275,"props":8474,"children":8475},{"style":1288},[8476],{"type":381,"value":8477},"      problems.",{"type":372,"tag":1275,"props":8479,"children":8480},{"style":1345},[8481],{"type":381,"value":6439},{"type":372,"tag":1275,"props":8483,"children":8484},{"style":1288},[8485],{"type":381,"value":1926},{"type":372,"tag":1275,"props":8487,"children":8488},{"style":1299},[8489],{"type":381,"value":2590},{"type":372,"tag":1275,"props":8491,"children":8492},{"style":1288},[8493],{"type":381,"value":7848},{"type":372,"tag":1275,"props":8495,"children":8496},{"style":1299},[8497],{"type":381,"value":445},{"type":372,"tag":1275,"props":8499,"children":8500},{"style":1288},[8501],{"type":381,"value":2920},{"type":372,"tag":1275,"props":8503,"children":8504},{"style":1299},[8505],{"type":381,"value":8506},"} has ${",{"type":372,"tag":1275,"props":8508,"children":8509},{"style":1288},[8510],{"type":381,"value":7848},{"type":372,"tag":1275,"props":8512,"children":8513},{"style":1299},[8514],{"type":381,"value":445},{"type":372,"tag":1275,"props":8516,"children":8517},{"style":1288},[8518],{"type":381,"value":5470},{"type":372,"tag":1275,"props":8520,"children":8521},{"style":1299},[8522],{"type":381,"value":445},{"type":372,"tag":1275,"props":8524,"children":8525},{"style":1329},[8526],{"type":381,"value":6857},{"type":372,"tag":1275,"props":8528,"children":8529},{"style":1299},[8530],{"type":381,"value":8531},"} endpoints, the limit is ${",{"type":372,"tag":1275,"props":8533,"children":8534},{"style":1288},[8535],{"type":381,"value":8170},{"type":372,"tag":1275,"props":8537,"children":8538},{"style":1299},[8539],{"type":381,"value":445},{"type":372,"tag":1275,"props":8541,"children":8542},{"style":1288},[8543],{"type":381,"value":7750},{"type":372,"tag":1275,"props":8545,"children":8546},{"style":1299},[8547],{"type":381,"value":2644},{"type":372,"tag":1275,"props":8549,"children":8550},{"style":1288},[8551],{"type":381,"value":1368},{"type":372,"tag":1275,"props":8553,"children":8555},{"class":1277,"line":8554},102,[8556,8560,8564,8568,8573,8577],{"type":372,"tag":1275,"props":8557,"children":8558},{"style":1282},[8559],{"type":381,"value":6560},{"type":372,"tag":1275,"props":8561,"children":8562},{"style":1288},[8563],{"type":381,"value":604},{"type":372,"tag":1275,"props":8565,"children":8566},{"style":1282},[8567],{"type":381,"value":1326},{"type":372,"tag":1275,"props":8569,"children":8570},{"style":1329},[8571],{"type":381,"value":8572}," e",{"type":372,"tag":1275,"props":8574,"children":8575},{"style":1282},[8576],{"type":381,"value":3748},{"type":372,"tag":1275,"props":8578,"children":8579},{"style":1288},[8580],{"type":381,"value":8581}," c.endpoints) {\n",{"type":372,"tag":1275,"props":8583,"children":8585},{"class":1277,"line":8584},103,[8586,8590,8594,8598,8603,8608,8612,8617,8622,8626,8630,8634,8638,8642,8646,8650,8654,8658,8662,8667],{"type":372,"tag":1275,"props":8587,"children":8588},{"style":1282},[8589],{"type":381,"value":6847},{"type":372,"tag":1275,"props":8591,"children":8592},{"style":1288},[8593],{"type":381,"value":604},{"type":372,"tag":1275,"props":8595,"children":8596},{"style":1282},[8597],{"type":381,"value":1363},{"type":372,"tag":1275,"props":8599,"children":8600},{"style":1288},[8601],{"type":381,"value":8602},"e.url.",{"type":372,"tag":1275,"props":8604,"children":8605},{"style":1345},[8606],{"type":381,"value":8607},"startsWith",{"type":372,"tag":1275,"props":8609,"children":8610},{"style":1288},[8611],{"type":381,"value":1926},{"type":372,"tag":1275,"props":8613,"children":8614},{"style":1299},[8615],{"type":381,"value":8616},"\"https://\"",{"type":372,"tag":1275,"props":8618,"children":8619},{"style":1288},[8620],{"type":381,"value":8621},")) problems.",{"type":372,"tag":1275,"props":8623,"children":8624},{"style":1345},[8625],{"type":381,"value":6439},{"type":372,"tag":1275,"props":8627,"children":8628},{"style":1288},[8629],{"type":381,"value":1926},{"type":372,"tag":1275,"props":8631,"children":8632},{"style":1299},[8633],{"type":381,"value":2590},{"type":372,"tag":1275,"props":8635,"children":8636},{"style":1288},[8637],{"type":381,"value":7848},{"type":372,"tag":1275,"props":8639,"children":8640},{"style":1299},[8641],{"type":381,"value":445},{"type":372,"tag":1275,"props":8643,"children":8644},{"style":1288},[8645],{"type":381,"value":2920},{"type":372,"tag":1275,"props":8647,"children":8648},{"style":1299},[8649],{"type":381,"value":6892},{"type":372,"tag":1275,"props":8651,"children":8652},{"style":1288},[8653],{"type":381,"value":7920},{"type":372,"tag":1275,"props":8655,"children":8656},{"style":1299},[8657],{"type":381,"value":445},{"type":372,"tag":1275,"props":8659,"children":8660},{"style":1288},[8661],{"type":381,"value":5174},{"type":372,"tag":1275,"props":8663,"children":8664},{"style":1299},[8665],{"type":381,"value":8666},"}: endpoints must be public HTTPS`",{"type":372,"tag":1275,"props":8668,"children":8669},{"style":1288},[8670],{"type":381,"value":1368},{"type":372,"tag":1275,"props":8672,"children":8674},{"class":1277,"line":8673},104,[8675,8679,8684,8688,8692,8697,8702,8706,8710,8714,8718,8722,8726,8730,8734,8738,8742,8747],{"type":372,"tag":1275,"props":8676,"children":8677},{"style":1282},[8678],{"type":381,"value":6847},{"type":372,"tag":1275,"props":8680,"children":8681},{"style":1288},[8682],{"type":381,"value":8683}," (e.eventTypes.",{"type":372,"tag":1275,"props":8685,"children":8686},{"style":1329},[8687],{"type":381,"value":6857},{"type":372,"tag":1275,"props":8689,"children":8690},{"style":1282},[8691],{"type":381,"value":8463},{"type":372,"tag":1275,"props":8693,"children":8694},{"style":1329},[8695],{"type":381,"value":8696}," 100",{"type":372,"tag":1275,"props":8698,"children":8699},{"style":1288},[8700],{"type":381,"value":8701},") problems.",{"type":372,"tag":1275,"props":8703,"children":8704},{"style":1345},[8705],{"type":381,"value":6439},{"type":372,"tag":1275,"props":8707,"children":8708},{"style":1288},[8709],{"type":381,"value":1926},{"type":372,"tag":1275,"props":8711,"children":8712},{"style":1299},[8713],{"type":381,"value":2590},{"type":372,"tag":1275,"props":8715,"children":8716},{"style":1288},[8717],{"type":381,"value":7848},{"type":372,"tag":1275,"props":8719,"children":8720},{"style":1299},[8721],{"type":381,"value":445},{"type":372,"tag":1275,"props":8723,"children":8724},{"style":1288},[8725],{"type":381,"value":2920},{"type":372,"tag":1275,"props":8727,"children":8728},{"style":1299},[8729],{"type":381,"value":6892},{"type":372,"tag":1275,"props":8731,"children":8732},{"style":1288},[8733],{"type":381,"value":7920},{"type":372,"tag":1275,"props":8735,"children":8736},{"style":1299},[8737],{"type":381,"value":445},{"type":372,"tag":1275,"props":8739,"children":8740},{"style":1288},[8741],{"type":381,"value":5174},{"type":372,"tag":1275,"props":8743,"children":8744},{"style":1299},[8745],{"type":381,"value":8746},"}: more than 100 event types`",{"type":372,"tag":1275,"props":8748,"children":8749},{"style":1288},[8750],{"type":381,"value":1368},{"type":372,"tag":1275,"props":8752,"children":8754},{"class":1277,"line":8753},105,[8755],{"type":372,"tag":1275,"props":8756,"children":8757},{"style":1288},[8758],{"type":381,"value":7461},{"type":372,"tag":1275,"props":8760,"children":8762},{"class":1277,"line":8761},106,[8763],{"type":372,"tag":1275,"props":8764,"children":8765},{"style":1288},[8766],{"type":381,"value":3820},{"type":372,"tag":1275,"props":8768,"children":8770},{"class":1277,"line":8769},107,[8771,8775,8779,8783,8788,8792,8797,8802,8806,8811,8816,8820],{"type":372,"tag":1275,"props":8772,"children":8773},{"style":1282},[8774],{"type":381,"value":3730},{"type":372,"tag":1275,"props":8776,"children":8777},{"style":1288},[8778],{"type":381,"value":604},{"type":372,"tag":1275,"props":8780,"children":8781},{"style":1282},[8782],{"type":381,"value":1326},{"type":372,"tag":1275,"props":8784,"children":8785},{"style":1329},[8786],{"type":381,"value":8787}," w",{"type":372,"tag":1275,"props":8789,"children":8790},{"style":1282},[8791],{"type":381,"value":3748},{"type":372,"tag":1275,"props":8793,"children":8794},{"style":1288},[8795],{"type":381,"value":8796}," plan.warnings) console.",{"type":372,"tag":1275,"props":8798,"children":8799},{"style":1345},[8800],{"type":381,"value":8801},"warn",{"type":372,"tag":1275,"props":8803,"children":8804},{"style":1288},[8805],{"type":381,"value":1926},{"type":372,"tag":1275,"props":8807,"children":8808},{"style":1299},[8809],{"type":381,"value":8810},"`warning: ${",{"type":372,"tag":1275,"props":8812,"children":8813},{"style":1288},[8814],{"type":381,"value":8815},"w",{"type":372,"tag":1275,"props":8817,"children":8818},{"style":1299},[8819],{"type":381,"value":2644},{"type":372,"tag":1275,"props":8821,"children":8822},{"style":1288},[8823],{"type":381,"value":1368},{"type":372,"tag":1275,"props":8825,"children":8827},{"class":1277,"line":8826},108,[8828,8832,8837,8841],{"type":372,"tag":1275,"props":8829,"children":8830},{"style":1282},[8831],{"type":381,"value":5825},{"type":372,"tag":1275,"props":8833,"children":8834},{"style":1288},[8835],{"type":381,"value":8836}," (problems.",{"type":372,"tag":1275,"props":8838,"children":8839},{"style":1329},[8840],{"type":381,"value":6857},{"type":372,"tag":1275,"props":8842,"children":8843},{"style":1288},[8844],{"type":381,"value":3722},{"type":372,"tag":1275,"props":8846,"children":8848},{"class":1277,"line":8847},109,[8849,8854,8859,8863,8868,8873,8878,8883,8887,8891,8895,8899,8903,8908,8912,8916],{"type":372,"tag":1275,"props":8850,"children":8851},{"style":1288},[8852],{"type":381,"value":8853},"    console.",{"type":372,"tag":1275,"props":8855,"children":8856},{"style":1345},[8857],{"type":381,"value":8858},"error",{"type":372,"tag":1275,"props":8860,"children":8861},{"style":1288},[8862],{"type":381,"value":1926},{"type":372,"tag":1275,"props":8864,"children":8865},{"style":1299},[8866],{"type":381,"value":8867},"`Not importing:",{"type":372,"tag":1275,"props":8869,"children":8870},{"style":1329},[8871],{"type":381,"value":8872},"\\n",{"type":372,"tag":1275,"props":8874,"children":8875},{"style":1299},[8876],{"type":381,"value":8877},"- ${",{"type":372,"tag":1275,"props":8879,"children":8880},{"style":1288},[8881],{"type":381,"value":8882},"problems",{"type":372,"tag":1275,"props":8884,"children":8885},{"style":1299},[8886],{"type":381,"value":445},{"type":372,"tag":1275,"props":8888,"children":8889},{"style":1345},[8890],{"type":381,"value":6931},{"type":372,"tag":1275,"props":8892,"children":8893},{"style":1299},[8894],{"type":381,"value":1926},{"type":372,"tag":1275,"props":8896,"children":8897},{"style":1299},[8898],{"type":381,"value":2168},{"type":372,"tag":1275,"props":8900,"children":8901},{"style":1329},[8902],{"type":381,"value":8872},{"type":372,"tag":1275,"props":8904,"children":8905},{"style":1299},[8906],{"type":381,"value":8907},"- \"",{"type":372,"tag":1275,"props":8909,"children":8910},{"style":1299},[8911],{"type":381,"value":852},{"type":372,"tag":1275,"props":8913,"children":8914},{"style":1299},[8915],{"type":381,"value":2644},{"type":372,"tag":1275,"props":8917,"children":8918},{"style":1288},[8919],{"type":381,"value":1368},{"type":372,"tag":1275,"props":8921,"children":8923},{"class":1277,"line":8922},110,[8924,8929,8934,8938,8943],{"type":372,"tag":1275,"props":8925,"children":8926},{"style":1288},[8927],{"type":381,"value":8928},"    process.",{"type":372,"tag":1275,"props":8930,"children":8931},{"style":1345},[8932],{"type":381,"value":8933},"exit",{"type":372,"tag":1275,"props":8935,"children":8936},{"style":1288},[8937],{"type":381,"value":1926},{"type":372,"tag":1275,"props":8939,"children":8940},{"style":1329},[8941],{"type":381,"value":8942},"1",{"type":372,"tag":1275,"props":8944,"children":8945},{"style":1288},[8946],{"type":381,"value":1368},{"type":372,"tag":1275,"props":8948,"children":8950},{"class":1277,"line":8949},111,[8951],{"type":372,"tag":1275,"props":8952,"children":8953},{"style":1288},[8954],{"type":381,"value":3820},{"type":372,"tag":1275,"props":8956,"children":8958},{"class":1277,"line":8957},112,[8959],{"type":372,"tag":1275,"props":8960,"children":8961},{"style":1288},[8962],{"type":381,"value":3857},{"type":372,"tag":1275,"props":8964,"children":8966},{"class":1277,"line":8965},113,[8967],{"type":372,"tag":1275,"props":8968,"children":8969},{"emptyLinePlaceholder":1314},[8970],{"type":381,"value":1317},{"type":372,"tag":1275,"props":8972,"children":8974},{"class":1277,"line":8973},114,[8975],{"type":372,"tag":1275,"props":8976,"children":8977},{"style":1578},[8978],{"type":381,"value":8979},"// ---- 3. Import into Webhook Relay ----\n",{"type":372,"tag":1275,"props":8981,"children":8983},{"class":1277,"line":8982},115,[8984,8988,8993,8997,9001,9005,9009,9013,9017,9021,9025,9030,9034,9039,9043,9047,9052,9056,9061,9065,9070,9074,9078,9082,9087,9092,9096],{"type":372,"tag":1275,"props":8985,"children":8986},{"style":1282},[8987],{"type":381,"value":1326},{"type":372,"tag":1275,"props":8989,"children":8990},{"style":1329},[8991],{"type":381,"value":8992}," state",{"type":372,"tag":1275,"props":8994,"children":8995},{"style":1282},[8996],{"type":381,"value":1503},{"type":372,"tag":1275,"props":8998,"children":8999},{"style":1345},[9000],{"type":381,"value":5238},{"type":372,"tag":1275,"props":9002,"children":9003},{"style":1288},[9004],{"type":381,"value":5243},{"type":372,"tag":1275,"props":9006,"children":9007},{"style":1329},[9008],{"type":381,"value":1816},{"type":372,"tag":1275,"props":9010,"children":9011},{"style":1288},[9012],{"type":381,"value":1758},{"type":372,"tag":1275,"props":9014,"children":9015},{"style":1329},[9016],{"type":381,"value":1816},{"type":372,"tag":1275,"props":9018,"children":9019},{"style":1288},[9020],{"type":381,"value":5612},{"type":372,"tag":1275,"props":9022,"children":9023},{"style":1282},[9024],{"type":381,"value":2517},{"type":372,"tag":1275,"props":9026,"children":9027},{"style":1345},[9028],{"type":381,"value":9029}," existsSync",{"type":372,"tag":1275,"props":9031,"children":9032},{"style":1288},[9033],{"type":381,"value":1926},{"type":372,"tag":1275,"props":9035,"children":9036},{"style":1329},[9037],{"type":381,"value":9038},"STATE_FILE",{"type":372,"tag":1275,"props":9040,"children":9041},{"style":1288},[9042],{"type":381,"value":3656},{"type":372,"tag":1275,"props":9044,"children":9045},{"style":1282},[9046],{"type":381,"value":5068},{"type":372,"tag":1275,"props":9048,"children":9049},{"style":1329},[9050],{"type":381,"value":9051}," JSON",{"type":372,"tag":1275,"props":9053,"children":9054},{"style":1288},[9055],{"type":381,"value":445},{"type":372,"tag":1275,"props":9057,"children":9058},{"style":1345},[9059],{"type":381,"value":9060},"parse",{"type":372,"tag":1275,"props":9062,"children":9063},{"style":1288},[9064],{"type":381,"value":1926},{"type":372,"tag":1275,"props":9066,"children":9067},{"style":1345},[9068],{"type":381,"value":9069},"readFileSync",{"type":372,"tag":1275,"props":9071,"children":9072},{"style":1288},[9073],{"type":381,"value":1926},{"type":372,"tag":1275,"props":9075,"children":9076},{"style":1329},[9077],{"type":381,"value":9038},{"type":372,"tag":1275,"props":9079,"children":9080},{"style":1288},[9081],{"type":381,"value":1758},{"type":372,"tag":1275,"props":9083,"children":9084},{"style":1299},[9085],{"type":381,"value":9086},"\"utf8\"",{"type":372,"tag":1275,"props":9088,"children":9089},{"style":1288},[9090],{"type":381,"value":9091},")) ",{"type":372,"tag":1275,"props":9093,"children":9094},{"style":1282},[9095],{"type":381,"value":1503},{"type":372,"tag":1275,"props":9097,"children":9098},{"style":1288},[9099],{"type":381,"value":9100}," {};\n",{"type":372,"tag":1275,"props":9102,"children":9104},{"class":1277,"line":9103},116,[9105],{"type":372,"tag":1275,"props":9106,"children":9107},{"emptyLinePlaceholder":1314},[9108],{"type":381,"value":1317},{"type":372,"tag":1275,"props":9110,"children":9112},{"class":1277,"line":9111},117,[9113,9118,9123,9128,9132],{"type":372,"tag":1275,"props":9114,"children":9115},{"style":1282},[9116],{"type":381,"value":9117},"class",{"type":372,"tag":1275,"props":9119,"children":9120},{"style":1345},[9121],{"type":381,"value":9122}," RelayError",{"type":372,"tag":1275,"props":9124,"children":9125},{"style":1282},[9126],{"type":381,"value":9127}," extends",{"type":372,"tag":1275,"props":9129,"children":9130},{"style":1345},[9131],{"type":381,"value":2866},{"type":372,"tag":1275,"props":9133,"children":9134},{"style":1288},[9135],{"type":381,"value":3766},{"type":372,"tag":1275,"props":9137,"children":9139},{"class":1277,"line":9138},118,[9140,9145,9149,9154,9159,9163,9167,9171,9176,9180,9184,9189,9194],{"type":372,"tag":1275,"props":9141,"children":9142},{"style":1282},[9143],{"type":381,"value":9144},"  constructor",{"type":372,"tag":1275,"props":9146,"children":9147},{"style":1288},[9148],{"type":381,"value":1926},{"type":372,"tag":1275,"props":9150,"children":9151},{"style":1282},[9152],{"type":381,"value":9153},"readonly",{"type":372,"tag":1275,"props":9155,"children":9156},{"style":3649},[9157],{"type":381,"value":9158}," status",{"type":372,"tag":1275,"props":9160,"children":9161},{"style":1282},[9162],{"type":381,"value":1503},{"type":372,"tag":1275,"props":9164,"children":9165},{"style":1329},[9166],{"type":381,"value":5273},{"type":372,"tag":1275,"props":9168,"children":9169},{"style":1288},[9170],{"type":381,"value":1758},{"type":372,"tag":1275,"props":9172,"children":9173},{"style":3649},[9174],{"type":381,"value":9175},"message",{"type":372,"tag":1275,"props":9177,"children":9178},{"style":1282},[9179],{"type":381,"value":1503},{"type":372,"tag":1275,"props":9181,"children":9182},{"style":1329},[9183],{"type":381,"value":5165},{"type":372,"tag":1275,"props":9185,"children":9186},{"style":1288},[9187],{"type":381,"value":9188},") { ",{"type":372,"tag":1275,"props":9190,"children":9191},{"style":1329},[9192],{"type":381,"value":9193},"super",{"type":372,"tag":1275,"props":9195,"children":9196},{"style":1288},[9197],{"type":381,"value":9198},"(message); }\n",{"type":372,"tag":1275,"props":9200,"children":9202},{"class":1277,"line":9201},119,[9203],{"type":372,"tag":1275,"props":9204,"children":9205},{"style":1288},[9206],{"type":381,"value":3857},{"type":372,"tag":1275,"props":9208,"children":9210},{"class":1277,"line":9209},120,[9211],{"type":372,"tag":1275,"props":9212,"children":9213},{"emptyLinePlaceholder":1314},[9214],{"type":381,"value":1317},{"type":372,"tag":1275,"props":9216,"children":9218},{"class":1277,"line":9217},121,[9219],{"type":372,"tag":1275,"props":9220,"children":9221},{"style":1578},[9222],{"type":381,"value":9223},"// REST create, because the SDKs expose `secret` only from their next release. Errors never echo the secret.\n",{"type":372,"tag":1275,"props":9225,"children":9227},{"class":1277,"line":9226},122,[9228,9232,9236,9241,9245,9249,9253,9257,9261,9265,9269,9273,9277,9281,9285,9289,9293],{"type":372,"tag":1275,"props":9229,"children":9230},{"style":1282},[9231],{"type":381,"value":5539},{"type":372,"tag":1275,"props":9233,"children":9234},{"style":1282},[9235],{"type":381,"value":3695},{"type":372,"tag":1275,"props":9237,"children":9238},{"style":1345},[9239],{"type":381,"value":9240}," createEndpoint",{"type":372,"tag":1275,"props":9242,"children":9243},{"style":1288},[9244],{"type":381,"value":1926},{"type":372,"tag":1275,"props":9246,"children":9247},{"style":3649},[9248],{"type":381,"value":6879},{"type":372,"tag":1275,"props":9250,"children":9251},{"style":1282},[9252],{"type":381,"value":1503},{"type":372,"tag":1275,"props":9254,"children":9255},{"style":1329},[9256],{"type":381,"value":5165},{"type":372,"tag":1275,"props":9258,"children":9259},{"style":1288},[9260],{"type":381,"value":1758},{"type":372,"tag":1275,"props":9262,"children":9263},{"style":3649},[9264],{"type":381,"value":7920},{"type":372,"tag":1275,"props":9266,"children":9267},{"style":1282},[9268],{"type":381,"value":1503},{"type":372,"tag":1275,"props":9270,"children":9271},{"style":1345},[9272],{"type":381,"value":5140},{"type":372,"tag":1275,"props":9274,"children":9275},{"style":1288},[9276],{"type":381,"value":852},{"type":372,"tag":1275,"props":9278,"children":9279},{"style":1282},[9280],{"type":381,"value":1503},{"type":372,"tag":1275,"props":9282,"children":9283},{"style":1345},[9284],{"type":381,"value":5630},{"type":372,"tag":1275,"props":9286,"children":9287},{"style":1288},[9288],{"type":381,"value":5243},{"type":372,"tag":1275,"props":9290,"children":9291},{"style":1329},[9292],{"type":381,"value":1816},{"type":372,"tag":1275,"props":9294,"children":9295},{"style":1288},[9296],{"type":381,"value":5643},{"type":372,"tag":1275,"props":9298,"children":9300},{"class":1277,"line":9299},123,[9301,9305,9309,9313,9317,9321,9325,9329,9333,9338,9343,9347,9351,9355,9360],{"type":372,"tag":1275,"props":9302,"children":9303},{"style":1282},[9304],{"type":381,"value":5652},{"type":372,"tag":1275,"props":9306,"children":9307},{"style":1329},[9308],{"type":381,"value":2679},{"type":372,"tag":1275,"props":9310,"children":9311},{"style":1282},[9312],{"type":381,"value":1337},{"type":372,"tag":1275,"props":9314,"children":9315},{"style":1282},[9316],{"type":381,"value":2522},{"type":372,"tag":1275,"props":9318,"children":9319},{"style":1345},[9320],{"type":381,"value":2692},{"type":372,"tag":1275,"props":9322,"children":9323},{"style":1288},[9324],{"type":381,"value":1926},{"type":372,"tag":1275,"props":9326,"children":9327},{"style":1299},[9328],{"type":381,"value":2590},{"type":372,"tag":1275,"props":9330,"children":9331},{"style":1329},[9332],{"type":381,"value":7600},{"type":372,"tag":1275,"props":9334,"children":9335},{"style":1299},[9336],{"type":381,"value":9337},"}/v1/outbound/consumers/${",{"type":372,"tag":1275,"props":9339,"children":9340},{"style":1345},[9341],{"type":381,"value":9342},"encodeURIComponent",{"type":372,"tag":1275,"props":9344,"children":9345},{"style":1299},[9346],{"type":381,"value":1926},{"type":372,"tag":1275,"props":9348,"children":9349},{"style":1288},[9350],{"type":381,"value":6879},{"type":372,"tag":1275,"props":9352,"children":9353},{"style":1299},[9354],{"type":381,"value":852},{"type":372,"tag":1275,"props":9356,"children":9357},{"style":1299},[9358],{"type":381,"value":9359},"}/endpoints`",{"type":372,"tag":1275,"props":9361,"children":9362},{"style":1288},[9363],{"type":381,"value":2706},{"type":372,"tag":1275,"props":9365,"children":9367},{"class":1277,"line":9366},124,[9368,9373,9377],{"type":372,"tag":1275,"props":9369,"children":9370},{"style":1288},[9371],{"type":381,"value":9372},"    method: ",{"type":372,"tag":1275,"props":9374,"children":9375},{"style":1299},[9376],{"type":381,"value":2719},{"type":372,"tag":1275,"props":9378,"children":9379},{"style":1288},[9380],{"type":381,"value":1414},{"type":372,"tag":1275,"props":9382,"children":9384},{"class":1277,"line":9383},125,[9385,9390,9394,9398,9402,9406,9410],{"type":372,"tag":1275,"props":9386,"children":9387},{"style":1288},[9388],{"type":381,"value":9389},"    headers: { Authorization: ",{"type":372,"tag":1275,"props":9391,"children":9392},{"style":1329},[9393],{"type":381,"value":7615},{"type":372,"tag":1275,"props":9395,"children":9396},{"style":1288},[9397],{"type":381,"value":1758},{"type":372,"tag":1275,"props":9399,"children":9400},{"style":1299},[9401],{"type":381,"value":2754},{"type":372,"tag":1275,"props":9403,"children":9404},{"style":1288},[9405],{"type":381,"value":1841},{"type":372,"tag":1275,"props":9407,"children":9408},{"style":1299},[9409],{"type":381,"value":2763},{"type":372,"tag":1275,"props":9411,"children":9412},{"style":1288},[9413],{"type":381,"value":1482},{"type":372,"tag":1275,"props":9415,"children":9417},{"class":1277,"line":9416},126,[9418,9423,9427,9431,9435],{"type":372,"tag":1275,"props":9419,"children":9420},{"style":1288},[9421],{"type":381,"value":9422},"    body: ",{"type":372,"tag":1275,"props":9424,"children":9425},{"style":1329},[9426],{"type":381,"value":2780},{"type":372,"tag":1275,"props":9428,"children":9429},{"style":1288},[9430],{"type":381,"value":445},{"type":372,"tag":1275,"props":9432,"children":9433},{"style":1345},[9434],{"type":381,"value":2789},{"type":372,"tag":1275,"props":9436,"children":9437},{"style":1288},[9438],{"type":381,"value":7313},{"type":372,"tag":1275,"props":9440,"children":9442},{"class":1277,"line":9441},127,[9443],{"type":372,"tag":1275,"props":9444,"children":9445},{"style":1288},[9446],{"type":381,"value":9447},"      url: e.url, event_types: e.eventTypes, description: e.description, headers: e.headers, rate: e.rate,\n",{"type":372,"tag":1275,"props":9449,"children":9451},{"class":1277,"line":9450},128,[9452,9457,9462,9466,9471,9475],{"type":372,"tag":1275,"props":9453,"children":9454},{"style":1282},[9455],{"type":381,"value":9456},"      ...",{"type":372,"tag":1275,"props":9458,"children":9459},{"style":1288},[9460],{"type":381,"value":9461},"(e.secret ",{"type":372,"tag":1275,"props":9463,"children":9464},{"style":1282},[9465],{"type":381,"value":5068},{"type":372,"tag":1275,"props":9467,"children":9468},{"style":1288},[9469],{"type":381,"value":9470}," { secret: e.secret } ",{"type":372,"tag":1275,"props":9472,"children":9473},{"style":1282},[9474],{"type":381,"value":1503},{"type":372,"tag":1275,"props":9476,"children":9477},{"style":1288},[9478],{"type":381,"value":6197},{"type":372,"tag":1275,"props":9480,"children":9482},{"class":1277,"line":9481},129,[9483],{"type":372,"tag":1275,"props":9484,"children":9485},{"style":1288},[9486],{"type":381,"value":9487},"    }),\n",{"type":372,"tag":1275,"props":9489,"children":9491},{"class":1277,"line":9490},130,[9492],{"type":372,"tag":1275,"props":9493,"children":9494},{"style":1288},[9495],{"type":381,"value":9496},"  });\n",{"type":372,"tag":1275,"props":9498,"children":9500},{"class":1277,"line":9499},131,[9501,9505,9509,9513,9517,9521,9525,9529,9534,9538,9542,9546,9550,9554,9558,9562,9566,9570,9574,9578],{"type":372,"tag":1275,"props":9502,"children":9503},{"style":1282},[9504],{"type":381,"value":5825},{"type":372,"tag":1275,"props":9506,"children":9507},{"style":1288},[9508],{"type":381,"value":604},{"type":372,"tag":1275,"props":9510,"children":9511},{"style":1282},[9512],{"type":381,"value":1363},{"type":372,"tag":1275,"props":9514,"children":9515},{"style":1288},[9516],{"type":381,"value":2852},{"type":372,"tag":1275,"props":9518,"children":9519},{"style":1282},[9520],{"type":381,"value":2857},{"type":372,"tag":1275,"props":9522,"children":9523},{"style":1282},[9524],{"type":381,"value":1342},{"type":372,"tag":1275,"props":9526,"children":9527},{"style":1345},[9528],{"type":381,"value":9122},{"type":372,"tag":1275,"props":9530,"children":9531},{"style":1288},[9532],{"type":381,"value":9533},"(res.status, ",{"type":372,"tag":1275,"props":9535,"children":9536},{"style":1299},[9537],{"type":381,"value":2875},{"type":372,"tag":1275,"props":9539,"children":9540},{"style":1288},[9541],{"type":381,"value":2880},{"type":372,"tag":1275,"props":9543,"children":9544},{"style":1299},[9545],{"type":381,"value":445},{"type":372,"tag":1275,"props":9547,"children":9548},{"style":1288},[9549],{"type":381,"value":2889},{"type":372,"tag":1275,"props":9551,"children":9552},{"style":1299},[9553],{"type":381,"value":6892},{"type":372,"tag":1275,"props":9555,"children":9556},{"style":1282},[9557],{"type":381,"value":1385},{"type":372,"tag":1275,"props":9559,"children":9560},{"style":1288},[9561],{"type":381,"value":2679},{"type":372,"tag":1275,"props":9563,"children":9564},{"style":1299},[9565],{"type":381,"value":445},{"type":372,"tag":1275,"props":9567,"children":9568},{"style":1345},[9569],{"type":381,"value":381},{"type":372,"tag":1275,"props":9571,"children":9572},{"style":1299},[9573],{"type":381,"value":6307},{"type":372,"tag":1275,"props":9575,"children":9576},{"style":1299},[9577],{"type":381,"value":2644},{"type":372,"tag":1275,"props":9579,"children":9580},{"style":1288},[9581],{"type":381,"value":1368},{"type":372,"tag":1275,"props":9583,"children":9585},{"class":1277,"line":9584},132,[9586,9590,9594,9598,9602,9606,9610,9614,9618,9622,9627,9631,9635,9639,9643,9647,9652],{"type":372,"tag":1275,"props":9587,"children":9588},{"style":1282},[9589],{"type":381,"value":5652},{"type":372,"tag":1275,"props":9591,"children":9592},{"style":1288},[9593],{"type":381,"value":2502},{"type":372,"tag":1275,"props":9595,"children":9596},{"style":1329},[9597],{"type":381,"value":2920},{"type":372,"tag":1275,"props":9599,"children":9600},{"style":1288},[9601],{"type":381,"value":2512},{"type":372,"tag":1275,"props":9603,"children":9604},{"style":1282},[9605],{"type":381,"value":2517},{"type":372,"tag":1275,"props":9607,"children":9608},{"style":1288},[9609],{"type":381,"value":604},{"type":372,"tag":1275,"props":9611,"children":9612},{"style":1282},[9613],{"type":381,"value":1385},{"type":372,"tag":1275,"props":9615,"children":9616},{"style":1288},[9617],{"type":381,"value":2937},{"type":372,"tag":1275,"props":9619,"children":9620},{"style":1345},[9621],{"type":381,"value":2942},{"type":372,"tag":1275,"props":9623,"children":9624},{"style":1288},[9625],{"type":381,"value":9626},"()) ",{"type":372,"tag":1275,"props":9628,"children":9629},{"style":1282},[9630],{"type":381,"value":5919},{"type":372,"tag":1275,"props":9632,"children":9633},{"style":1288},[9634],{"type":381,"value":2502},{"type":372,"tag":1275,"props":9636,"children":9637},{"style":3649},[9638],{"type":381,"value":2920},{"type":372,"tag":1275,"props":9640,"children":9641},{"style":1282},[9642],{"type":381,"value":1503},{"type":372,"tag":1275,"props":9644,"children":9645},{"style":1329},[9646],{"type":381,"value":5165},{"type":372,"tag":1275,"props":9648,"children":9649},{"style":1288},[9650],{"type":381,"value":9651}," }; ",{"type":372,"tag":1275,"props":9653,"children":9654},{"style":1578},[9655],{"type":381,"value":9656},"// the response also carries the secret: don't log or store it\n",{"type":372,"tag":1275,"props":9658,"children":9660},{"class":1277,"line":9659},133,[9661,9665],{"type":372,"tag":1275,"props":9662,"children":9663},{"style":1282},[9664],{"type":381,"value":5901},{"type":372,"tag":1275,"props":9666,"children":9667},{"style":1288},[9668],{"type":381,"value":9669}," id;\n",{"type":372,"tag":1275,"props":9671,"children":9673},{"class":1277,"line":9672},134,[9674],{"type":372,"tag":1275,"props":9675,"children":9676},{"style":1288},[9677],{"type":381,"value":3857},{"type":372,"tag":1275,"props":9679,"children":9681},{"class":1277,"line":9680},135,[9682],{"type":372,"tag":1275,"props":9683,"children":9684},{"emptyLinePlaceholder":1314},[9685],{"type":381,"value":1317},{"type":372,"tag":1275,"props":9687,"children":9689},{"class":1277,"line":9688},136,[9690,9694,9698,9703,9707,9711,9715,9720,9724,9728,9732,9737,9741,9746,9750,9754,9758,9762,9767,9771,9775,9779,9783],{"type":372,"tag":1275,"props":9691,"children":9692},{"style":1282},[9693],{"type":381,"value":5539},{"type":372,"tag":1275,"props":9695,"children":9696},{"style":1282},[9697],{"type":381,"value":3695},{"type":372,"tag":1275,"props":9699,"children":9700},{"style":1345},[9701],{"type":381,"value":9702}," step",{"type":372,"tag":1275,"props":9704,"children":9705},{"style":1288},[9706],{"type":381,"value":5243},{"type":372,"tag":1275,"props":9708,"children":9709},{"style":1345},[9710],{"type":381,"value":5556},{"type":372,"tag":1275,"props":9712,"children":9713},{"style":1288},[9714],{"type":381,"value":5561},{"type":372,"tag":1275,"props":9716,"children":9717},{"style":3649},[9718],{"type":381,"value":9719},"what",{"type":372,"tag":1275,"props":9721,"children":9722},{"style":1282},[9723],{"type":381,"value":1503},{"type":372,"tag":1275,"props":9725,"children":9726},{"style":1329},[9727],{"type":381,"value":5165},{"type":372,"tag":1275,"props":9729,"children":9730},{"style":1288},[9731],{"type":381,"value":1758},{"type":372,"tag":1275,"props":9733,"children":9734},{"style":1345},[9735],{"type":381,"value":9736},"fn",{"type":372,"tag":1275,"props":9738,"children":9739},{"style":1282},[9740],{"type":381,"value":1503},{"type":372,"tag":1275,"props":9742,"children":9743},{"style":1288},[9744],{"type":381,"value":9745}," () ",{"type":372,"tag":1275,"props":9747,"children":9748},{"style":1282},[9749],{"type":381,"value":3661},{"type":372,"tag":1275,"props":9751,"children":9752},{"style":1345},[9753],{"type":381,"value":5630},{"type":372,"tag":1275,"props":9755,"children":9756},{"style":1288},[9757],{"type":381,"value":5243},{"type":372,"tag":1275,"props":9759,"children":9760},{"style":1345},[9761],{"type":381,"value":5556},{"type":372,"tag":1275,"props":9763,"children":9764},{"style":1288},[9765],{"type":381,"value":9766},">)",{"type":372,"tag":1275,"props":9768,"children":9769},{"style":1282},[9770],{"type":381,"value":1503},{"type":372,"tag":1275,"props":9772,"children":9773},{"style":1345},[9774],{"type":381,"value":5630},{"type":372,"tag":1275,"props":9776,"children":9777},{"style":1288},[9778],{"type":381,"value":5243},{"type":372,"tag":1275,"props":9780,"children":9781},{"style":1345},[9782],{"type":381,"value":5556},{"type":372,"tag":1275,"props":9784,"children":9785},{"style":1288},[9786],{"type":381,"value":5643},{"type":372,"tag":1275,"props":9788,"children":9790},{"class":1277,"line":9789},137,[9791,9795,9799,9804,9809,9813,9818,9823,9828],{"type":372,"tag":1275,"props":9792,"children":9793},{"style":1282},[9794],{"type":381,"value":3730},{"type":372,"tag":1275,"props":9796,"children":9797},{"style":1288},[9798],{"type":381,"value":604},{"type":372,"tag":1275,"props":9800,"children":9801},{"style":1282},[9802],{"type":381,"value":9803},"let",{"type":372,"tag":1275,"props":9805,"children":9806},{"style":1288},[9807],{"type":381,"value":9808}," attempt ",{"type":372,"tag":1275,"props":9810,"children":9811},{"style":1282},[9812],{"type":381,"value":2517},{"type":372,"tag":1275,"props":9814,"children":9815},{"style":1329},[9816],{"type":381,"value":9817}," 1",{"type":372,"tag":1275,"props":9819,"children":9820},{"style":1288},[9821],{"type":381,"value":9822},"; ; attempt",{"type":372,"tag":1275,"props":9824,"children":9825},{"style":1282},[9826],{"type":381,"value":9827},"++",{"type":372,"tag":1275,"props":9829,"children":9830},{"style":1288},[9831],{"type":381,"value":3722},{"type":372,"tag":1275,"props":9833,"children":9835},{"class":1277,"line":9834},138,[9836,9840],{"type":372,"tag":1275,"props":9837,"children":9838},{"style":1282},[9839],{"type":381,"value":3761},{"type":372,"tag":1275,"props":9841,"children":9842},{"style":1288},[9843],{"type":381,"value":3766},{"type":372,"tag":1275,"props":9845,"children":9847},{"class":1277,"line":9846},139,[9848,9852,9856,9861],{"type":372,"tag":1275,"props":9849,"children":9850},{"style":1282},[9851],{"type":381,"value":3774},{"type":372,"tag":1275,"props":9853,"children":9854},{"style":1282},[9855],{"type":381,"value":2522},{"type":372,"tag":1275,"props":9857,"children":9858},{"style":1345},[9859],{"type":381,"value":9860}," fn",{"type":372,"tag":1275,"props":9862,"children":9863},{"style":1288},[9864],{"type":381,"value":2947},{"type":372,"tag":1275,"props":9866,"children":9868},{"class":1277,"line":9867},140,[9869,9873,9877],{"type":372,"tag":1275,"props":9870,"children":9871},{"style":1288},[9872],{"type":381,"value":3802},{"type":372,"tag":1275,"props":9874,"children":9875},{"style":1282},[9876],{"type":381,"value":3807},{"type":372,"tag":1275,"props":9878,"children":9879},{"style":1288},[9880],{"type":381,"value":9881}," (err) {\n",{"type":372,"tag":1275,"props":9883,"children":9885},{"class":1277,"line":9884},141,[9886,9890,9894,9898,9903,9908,9913,9918,9922,9926,9930,9934,9939,9943,9948],{"type":372,"tag":1275,"props":9887,"children":9888},{"style":1282},[9889],{"type":381,"value":6633},{"type":372,"tag":1275,"props":9891,"children":9892},{"style":1329},[9893],{"type":381,"value":9158},{"type":372,"tag":1275,"props":9895,"children":9896},{"style":1282},[9897],{"type":381,"value":1337},{"type":372,"tag":1275,"props":9899,"children":9900},{"style":1288},[9901],{"type":381,"value":9902}," err ",{"type":372,"tag":1275,"props":9904,"children":9905},{"style":1282},[9906],{"type":381,"value":9907},"instanceof",{"type":372,"tag":1275,"props":9909,"children":9910},{"style":1345},[9911],{"type":381,"value":9912}," WebhookRelayAPIError",{"type":372,"tag":1275,"props":9914,"children":9915},{"style":1282},[9916],{"type":381,"value":9917}," ||",{"type":372,"tag":1275,"props":9919,"children":9920},{"style":1288},[9921],{"type":381,"value":9902},{"type":372,"tag":1275,"props":9923,"children":9924},{"style":1282},[9925],{"type":381,"value":9907},{"type":372,"tag":1275,"props":9927,"children":9928},{"style":1345},[9929],{"type":381,"value":9122},{"type":372,"tag":1275,"props":9931,"children":9932},{"style":1282},[9933],{"type":381,"value":7340},{"type":372,"tag":1275,"props":9935,"children":9936},{"style":1288},[9937],{"type":381,"value":9938}," err.status ",{"type":372,"tag":1275,"props":9940,"children":9941},{"style":1282},[9942],{"type":381,"value":1503},{"type":372,"tag":1275,"props":9944,"children":9945},{"style":1329},[9946],{"type":381,"value":9947}," 0",{"type":372,"tag":1275,"props":9949,"children":9950},{"style":1288},[9951],{"type":381,"value":1307},{"type":372,"tag":1275,"props":9953,"children":9955},{"class":1277,"line":9954},142,[9956,9960,9965,9970,9975,9980,9984,9988,9993],{"type":372,"tag":1275,"props":9957,"children":9958},{"style":1282},[9959],{"type":381,"value":6847},{"type":372,"tag":1275,"props":9961,"children":9962},{"style":1288},[9963],{"type":381,"value":9964}," (status ",{"type":372,"tag":1275,"props":9966,"children":9967},{"style":1282},[9968],{"type":381,"value":9969},"===",{"type":372,"tag":1275,"props":9971,"children":9972},{"style":1329},[9973],{"type":381,"value":9974}," 429",{"type":372,"tag":1275,"props":9976,"children":9977},{"style":1282},[9978],{"type":381,"value":9979}," &&",{"type":372,"tag":1275,"props":9981,"children":9982},{"style":1288},[9983],{"type":381,"value":9808},{"type":372,"tag":1275,"props":9985,"children":9986},{"style":1282},[9987],{"type":381,"value":5243},{"type":372,"tag":1275,"props":9989,"children":9990},{"style":1329},[9991],{"type":381,"value":9992}," 5",{"type":372,"tag":1275,"props":9994,"children":9995},{"style":1288},[9996],{"type":381,"value":3722},{"type":372,"tag":1275,"props":9998,"children":10000},{"class":1277,"line":9999},143,[10001,10006,10010,10014,10018,10023,10027,10031,10036,10041,10046,10051],{"type":372,"tag":1275,"props":10002,"children":10003},{"style":1282},[10004],{"type":381,"value":10005},"        await",{"type":372,"tag":1275,"props":10007,"children":10008},{"style":1282},[10009],{"type":381,"value":1342},{"type":372,"tag":1275,"props":10011,"children":10012},{"style":1329},[10013],{"type":381,"value":5630},{"type":372,"tag":1275,"props":10015,"children":10016},{"style":1288},[10017],{"type":381,"value":3646},{"type":372,"tag":1275,"props":10019,"children":10020},{"style":3649},[10021],{"type":381,"value":10022},"r",{"type":372,"tag":1275,"props":10024,"children":10025},{"style":1288},[10026],{"type":381,"value":3656},{"type":372,"tag":1275,"props":10028,"children":10029},{"style":1282},[10030],{"type":381,"value":3661},{"type":372,"tag":1275,"props":10032,"children":10033},{"style":1345},[10034],{"type":381,"value":10035}," setTimeout",{"type":372,"tag":1275,"props":10037,"children":10038},{"style":1288},[10039],{"type":381,"value":10040},"(r, attempt ",{"type":372,"tag":1275,"props":10042,"children":10043},{"style":1282},[10044],{"type":381,"value":10045},"*",{"type":372,"tag":1275,"props":10047,"children":10048},{"style":1329},[10049],{"type":381,"value":10050}," 2000",{"type":372,"tag":1275,"props":10052,"children":10053},{"style":1288},[10054],{"type":381,"value":10055},"));\n",{"type":372,"tag":1275,"props":10057,"children":10059},{"class":1277,"line":10058},144,[10060,10065],{"type":372,"tag":1275,"props":10061,"children":10062},{"style":1282},[10063],{"type":381,"value":10064},"        continue",{"type":372,"tag":1275,"props":10066,"children":10067},{"style":1288},[10068],{"type":381,"value":1307},{"type":372,"tag":1275,"props":10070,"children":10072},{"class":1277,"line":10071},145,[10073],{"type":372,"tag":1275,"props":10074,"children":10075},{"style":1288},[10076],{"type":381,"value":10077},"      }\n",{"type":372,"tag":1275,"props":10079,"children":10081},{"class":1277,"line":10080},146,[10082,10087,10091,10095,10100,10104,10108,10113,10118,10122,10126,10131,10135,10139,10144,10149,10153,10157,10161,10165],{"type":372,"tag":1275,"props":10083,"children":10084},{"style":1288},[10085],{"type":381,"value":10086},"      console.",{"type":372,"tag":1275,"props":10088,"children":10089},{"style":1345},[10090],{"type":381,"value":8858},{"type":372,"tag":1275,"props":10092,"children":10093},{"style":1288},[10094],{"type":381,"value":1926},{"type":372,"tag":1275,"props":10096,"children":10097},{"style":1299},[10098],{"type":381,"value":10099},"`Stopped at ${",{"type":372,"tag":1275,"props":10101,"children":10102},{"style":1288},[10103],{"type":381,"value":9719},{"type":372,"tag":1275,"props":10105,"children":10106},{"style":1299},[10107],{"type":381,"value":5867},{"type":372,"tag":1275,"props":10109,"children":10110},{"style":1288},[10111],{"type":381,"value":10112},"err",{"type":372,"tag":1275,"props":10114,"children":10115},{"style":1282},[10116],{"type":381,"value":10117}," instanceof",{"type":372,"tag":1275,"props":10119,"children":10120},{"style":1345},[10121],{"type":381,"value":2866},{"type":372,"tag":1275,"props":10123,"children":10124},{"style":1282},[10125],{"type":381,"value":7340},{"type":372,"tag":1275,"props":10127,"children":10128},{"style":1288},[10129],{"type":381,"value":10130}," err",{"type":372,"tag":1275,"props":10132,"children":10133},{"style":1299},[10134],{"type":381,"value":445},{"type":372,"tag":1275,"props":10136,"children":10137},{"style":1288},[10138],{"type":381,"value":9175},{"type":372,"tag":1275,"props":10140,"children":10141},{"style":1282},[10142],{"type":381,"value":10143}," :",{"type":372,"tag":1275,"props":10145,"children":10146},{"style":1345},[10147],{"type":381,"value":10148}," String",{"type":372,"tag":1275,"props":10150,"children":10151},{"style":1299},[10152],{"type":381,"value":1926},{"type":372,"tag":1275,"props":10154,"children":10155},{"style":1288},[10156],{"type":381,"value":10112},{"type":372,"tag":1275,"props":10158,"children":10159},{"style":1299},[10160],{"type":381,"value":852},{"type":372,"tag":1275,"props":10162,"children":10163},{"style":1299},[10164],{"type":381,"value":2644},{"type":372,"tag":1275,"props":10166,"children":10167},{"style":1288},[10168],{"type":381,"value":1368},{"type":372,"tag":1275,"props":10170,"children":10172},{"class":1277,"line":10171},147,[10173,10177,10181,10185,10190,10194,10199],{"type":372,"tag":1275,"props":10174,"children":10175},{"style":1288},[10176],{"type":381,"value":10086},{"type":372,"tag":1275,"props":10178,"children":10179},{"style":1345},[10180],{"type":381,"value":8858},{"type":372,"tag":1275,"props":10182,"children":10183},{"style":1288},[10184],{"type":381,"value":1926},{"type":372,"tag":1275,"props":10186,"children":10187},{"style":1299},[10188],{"type":381,"value":10189},"`Progress is saved in ${",{"type":372,"tag":1275,"props":10191,"children":10192},{"style":1329},[10193],{"type":381,"value":9038},{"type":372,"tag":1275,"props":10195,"children":10196},{"style":1299},[10197],{"type":381,"value":10198},"}. Fix the cause and run the script again.`",{"type":372,"tag":1275,"props":10200,"children":10201},{"style":1288},[10202],{"type":381,"value":1368},{"type":372,"tag":1275,"props":10204,"children":10206},{"class":1277,"line":10205},148,[10207,10212,10216,10220,10224],{"type":372,"tag":1275,"props":10208,"children":10209},{"style":1288},[10210],{"type":381,"value":10211},"      process.",{"type":372,"tag":1275,"props":10213,"children":10214},{"style":1345},[10215],{"type":381,"value":8933},{"type":372,"tag":1275,"props":10217,"children":10218},{"style":1288},[10219],{"type":381,"value":1926},{"type":372,"tag":1275,"props":10221,"children":10222},{"style":1329},[10223],{"type":381,"value":8942},{"type":372,"tag":1275,"props":10225,"children":10226},{"style":1288},[10227],{"type":381,"value":1368},{"type":372,"tag":1275,"props":10229,"children":10231},{"class":1277,"line":10230},149,[10232],{"type":372,"tag":1275,"props":10233,"children":10234},{"style":1288},[10235],{"type":381,"value":7461},{"type":372,"tag":1275,"props":10237,"children":10239},{"class":1277,"line":10238},150,[10240],{"type":372,"tag":1275,"props":10241,"children":10242},{"style":1288},[10243],{"type":381,"value":3820},{"type":372,"tag":1275,"props":10245,"children":10247},{"class":1277,"line":10246},151,[10248],{"type":372,"tag":1275,"props":10249,"children":10250},{"style":1288},[10251],{"type":381,"value":3857},{"type":372,"tag":1275,"props":10253,"children":10255},{"class":1277,"line":10254},152,[10256],{"type":372,"tag":1275,"props":10257,"children":10258},{"emptyLinePlaceholder":1314},[10259],{"type":381,"value":1317},{"type":372,"tag":1275,"props":10261,"children":10263},{"class":1277,"line":10262},153,[10264,10268,10272,10277,10281,10285,10289,10293],{"type":372,"tag":1275,"props":10265,"children":10266},{"style":1282},[10267],{"type":381,"value":5539},{"type":372,"tag":1275,"props":10269,"children":10270},{"style":1282},[10271],{"type":381,"value":3695},{"type":372,"tag":1275,"props":10273,"children":10274},{"style":1345},[10275],{"type":381,"value":10276}," importPlan",{"type":372,"tag":1275,"props":10278,"children":10279},{"style":1288},[10280],{"type":381,"value":1926},{"type":372,"tag":1275,"props":10282,"children":10283},{"style":3649},[10284],{"type":381,"value":7551},{"type":372,"tag":1275,"props":10286,"children":10287},{"style":1282},[10288],{"type":381,"value":1503},{"type":372,"tag":1275,"props":10290,"children":10291},{"style":1345},[10292],{"type":381,"value":5340},{"type":372,"tag":1275,"props":10294,"children":10295},{"style":1288},[10296],{"type":381,"value":3722},{"type":372,"tag":1275,"props":10298,"children":10300},{"class":1277,"line":10299},154,[10301,10305,10309,10313,10317,10321],{"type":372,"tag":1275,"props":10302,"children":10303},{"style":1282},[10304],{"type":381,"value":3730},{"type":372,"tag":1275,"props":10306,"children":10307},{"style":1288},[10308],{"type":381,"value":604},{"type":372,"tag":1275,"props":10310,"children":10311},{"style":1282},[10312],{"type":381,"value":1326},{"type":372,"tag":1275,"props":10314,"children":10315},{"style":1329},[10316],{"type":381,"value":6383},{"type":372,"tag":1275,"props":10318,"children":10319},{"style":1282},[10320],{"type":381,"value":3748},{"type":372,"tag":1275,"props":10322,"children":10323},{"style":1288},[10324],{"type":381,"value":10325}," plan.eventTypes) {\n",{"type":372,"tag":1275,"props":10327,"children":10329},{"class":1277,"line":10328},155,[10330,10335,10339,10343,10348,10352,10356,10360,10364,10369],{"type":372,"tag":1275,"props":10331,"children":10332},{"style":1282},[10333],{"type":381,"value":10334},"    await",{"type":372,"tag":1275,"props":10336,"children":10337},{"style":1345},[10338],{"type":381,"value":9702},{"type":372,"tag":1275,"props":10340,"children":10341},{"style":1288},[10342],{"type":381,"value":1926},{"type":372,"tag":1275,"props":10344,"children":10345},{"style":1299},[10346],{"type":381,"value":10347},"`event type ${",{"type":372,"tag":1275,"props":10349,"children":10350},{"style":1288},[10351],{"type":381,"value":8327},{"type":372,"tag":1275,"props":10353,"children":10354},{"style":1299},[10355],{"type":381,"value":445},{"type":372,"tag":1275,"props":10357,"children":10358},{"style":1288},[10359],{"type":381,"value":5370},{"type":372,"tag":1275,"props":10361,"children":10362},{"style":1299},[10363],{"type":381,"value":2644},{"type":372,"tag":1275,"props":10365,"children":10366},{"style":1288},[10367],{"type":381,"value":10368},", () ",{"type":372,"tag":1275,"props":10370,"children":10371},{"style":1282},[10372],{"type":381,"value":10373},"=>\n",{"type":372,"tag":1275,"props":10375,"children":10377},{"class":1277,"line":10376},156,[10378,10383,10387],{"type":372,"tag":1275,"props":10379,"children":10380},{"style":1288},[10381],{"type":381,"value":10382},"      relay.outbound.eventTypes.",{"type":372,"tag":1275,"props":10384,"children":10385},{"style":1345},[10386],{"type":381,"value":2469},{"type":372,"tag":1275,"props":10388,"children":10389},{"style":1288},[10390],{"type":381,"value":10391},"(et.name, { description: et.description, deprecated: et.deprecated }));\n",{"type":372,"tag":1275,"props":10393,"children":10395},{"class":1277,"line":10394},157,[10396],{"type":372,"tag":1275,"props":10397,"children":10398},{"style":1288},[10399],{"type":381,"value":3820},{"type":372,"tag":1275,"props":10401,"children":10403},{"class":1277,"line":10402},158,[10404,10408,10412,10416,10420,10424],{"type":372,"tag":1275,"props":10405,"children":10406},{"style":1282},[10407],{"type":381,"value":3730},{"type":372,"tag":1275,"props":10409,"children":10410},{"style":1288},[10411],{"type":381,"value":604},{"type":372,"tag":1275,"props":10413,"children":10414},{"style":1282},[10415],{"type":381,"value":1326},{"type":372,"tag":1275,"props":10417,"children":10418},{"style":1329},[10419],{"type":381,"value":8365},{"type":372,"tag":1275,"props":10421,"children":10422},{"style":1282},[10423],{"type":381,"value":3748},{"type":372,"tag":1275,"props":10425,"children":10426},{"style":1288},[10427],{"type":381,"value":8374},{"type":372,"tag":1275,"props":10429,"children":10431},{"class":1277,"line":10430},159,[10432,10436,10440,10444,10449,10453,10457,10461,10465,10469,10473,10477,10481],{"type":372,"tag":1275,"props":10433,"children":10434},{"style":1282},[10435],{"type":381,"value":10334},{"type":372,"tag":1275,"props":10437,"children":10438},{"style":1345},[10439],{"type":381,"value":9702},{"type":372,"tag":1275,"props":10441,"children":10442},{"style":1288},[10443],{"type":381,"value":1926},{"type":372,"tag":1275,"props":10445,"children":10446},{"style":1299},[10447],{"type":381,"value":10448},"`consumer ${",{"type":372,"tag":1275,"props":10450,"children":10451},{"style":1288},[10452],{"type":381,"value":7848},{"type":372,"tag":1275,"props":10454,"children":10455},{"style":1299},[10456],{"type":381,"value":445},{"type":372,"tag":1275,"props":10458,"children":10459},{"style":1288},[10460],{"type":381,"value":2920},{"type":372,"tag":1275,"props":10462,"children":10463},{"style":1299},[10464],{"type":381,"value":2644},{"type":372,"tag":1275,"props":10466,"children":10467},{"style":1288},[10468],{"type":381,"value":10368},{"type":372,"tag":1275,"props":10470,"children":10471},{"style":1282},[10472],{"type":381,"value":3661},{"type":372,"tag":1275,"props":10474,"children":10475},{"style":1288},[10476],{"type":381,"value":2464},{"type":372,"tag":1275,"props":10478,"children":10479},{"style":1345},[10480],{"type":381,"value":2469},{"type":372,"tag":1275,"props":10482,"children":10483},{"style":1288},[10484],{"type":381,"value":10485},"(c.id, { name: c.name }));\n",{"type":372,"tag":1275,"props":10487,"children":10489},{"class":1277,"line":10488},160,[10490,10494,10498,10502,10506,10510],{"type":372,"tag":1275,"props":10491,"children":10492},{"style":1282},[10493],{"type":381,"value":6560},{"type":372,"tag":1275,"props":10495,"children":10496},{"style":1288},[10497],{"type":381,"value":604},{"type":372,"tag":1275,"props":10499,"children":10500},{"style":1282},[10501],{"type":381,"value":1326},{"type":372,"tag":1275,"props":10503,"children":10504},{"style":1329},[10505],{"type":381,"value":8572},{"type":372,"tag":1275,"props":10507,"children":10508},{"style":1282},[10509],{"type":381,"value":3748},{"type":372,"tag":1275,"props":10511,"children":10512},{"style":1288},[10513],{"type":381,"value":8581},{"type":372,"tag":1275,"props":10515,"children":10517},{"class":1277,"line":10516},161,[10518,10522,10527,10532,10536],{"type":372,"tag":1275,"props":10519,"children":10520},{"style":1282},[10521],{"type":381,"value":6847},{"type":372,"tag":1275,"props":10523,"children":10524},{"style":1288},[10525],{"type":381,"value":10526}," (state[e.sourceId]) ",{"type":372,"tag":1275,"props":10528,"children":10529},{"style":1282},[10530],{"type":381,"value":10531},"continue",{"type":372,"tag":1275,"props":10533,"children":10534},{"style":1288},[10535],{"type":381,"value":4886},{"type":372,"tag":1275,"props":10537,"children":10538},{"style":1578},[10539],{"type":381,"value":10540},"// imported on an earlier run\n",{"type":372,"tag":1275,"props":10542,"children":10544},{"class":1277,"line":10543},162,[10545,10549,10553,10557,10561,10566,10570,10574,10578,10582,10586,10591,10595,10599,10603,10607,10611,10615,10619,10623,10627,10631,10635,10639],{"type":372,"tag":1275,"props":10546,"children":10547},{"style":1282},[10548],{"type":381,"value":6633},{"type":372,"tag":1275,"props":10550,"children":10551},{"style":1288},[10552],{"type":381,"value":2502},{"type":372,"tag":1275,"props":10554,"children":10555},{"style":1329},[10556],{"type":381,"value":2920},{"type":372,"tag":1275,"props":10558,"children":10559},{"style":1288},[10560],{"type":381,"value":1758},{"type":372,"tag":1275,"props":10562,"children":10563},{"style":1329},[10564],{"type":381,"value":10565},"created",{"type":372,"tag":1275,"props":10567,"children":10568},{"style":1288},[10569],{"type":381,"value":2512},{"type":372,"tag":1275,"props":10571,"children":10572},{"style":1282},[10573],{"type":381,"value":2517},{"type":372,"tag":1275,"props":10575,"children":10576},{"style":1282},[10577],{"type":381,"value":2522},{"type":372,"tag":1275,"props":10579,"children":10580},{"style":1345},[10581],{"type":381,"value":9702},{"type":372,"tag":1275,"props":10583,"children":10584},{"style":1288},[10585],{"type":381,"value":1926},{"type":372,"tag":1275,"props":10587,"children":10588},{"style":1299},[10589],{"type":381,"value":10590},"`endpoint ${",{"type":372,"tag":1275,"props":10592,"children":10593},{"style":1288},[10594],{"type":381,"value":7848},{"type":372,"tag":1275,"props":10596,"children":10597},{"style":1299},[10598],{"type":381,"value":445},{"type":372,"tag":1275,"props":10600,"children":10601},{"style":1288},[10602],{"type":381,"value":2920},{"type":372,"tag":1275,"props":10604,"children":10605},{"style":1299},[10606],{"type":381,"value":6892},{"type":372,"tag":1275,"props":10608,"children":10609},{"style":1288},[10610],{"type":381,"value":7920},{"type":372,"tag":1275,"props":10612,"children":10613},{"style":1299},[10614],{"type":381,"value":445},{"type":372,"tag":1275,"props":10616,"children":10617},{"style":1288},[10618],{"type":381,"value":5174},{"type":372,"tag":1275,"props":10620,"children":10621},{"style":1299},[10622],{"type":381,"value":2644},{"type":372,"tag":1275,"props":10624,"children":10625},{"style":1288},[10626],{"type":381,"value":1758},{"type":372,"tag":1275,"props":10628,"children":10629},{"style":1282},[10630],{"type":381,"value":5539},{"type":372,"tag":1275,"props":10632,"children":10633},{"style":1288},[10634],{"type":381,"value":9745},{"type":372,"tag":1275,"props":10636,"children":10637},{"style":1282},[10638],{"type":381,"value":3661},{"type":372,"tag":1275,"props":10640,"children":10641},{"style":1288},[10642],{"type":381,"value":3766},{"type":372,"tag":1275,"props":10644,"children":10646},{"class":1277,"line":10645},163,[10647,10652],{"type":372,"tag":1275,"props":10648,"children":10649},{"style":1282},[10650],{"type":381,"value":10651},"        try",{"type":372,"tag":1275,"props":10653,"children":10654},{"style":1288},[10655],{"type":381,"value":3766},{"type":372,"tag":1275,"props":10657,"children":10659},{"class":1277,"line":10658},164,[10660,10665,10670,10674,10678,10683,10687],{"type":372,"tag":1275,"props":10661,"children":10662},{"style":1282},[10663],{"type":381,"value":10664},"          return",{"type":372,"tag":1275,"props":10666,"children":10667},{"style":1288},[10668],{"type":381,"value":10669}," { id: ",{"type":372,"tag":1275,"props":10671,"children":10672},{"style":1282},[10673],{"type":381,"value":1385},{"type":372,"tag":1275,"props":10675,"children":10676},{"style":1345},[10677],{"type":381,"value":9240},{"type":372,"tag":1275,"props":10679,"children":10680},{"style":1288},[10681],{"type":381,"value":10682},"(c.id, e), created: ",{"type":372,"tag":1275,"props":10684,"children":10685},{"style":1329},[10686],{"type":381,"value":2817},{"type":372,"tag":1275,"props":10688,"children":10689},{"style":1288},[10690],{"type":381,"value":7779},{"type":372,"tag":1275,"props":10692,"children":10694},{"class":1277,"line":10693},165,[10695,10700,10704],{"type":372,"tag":1275,"props":10696,"children":10697},{"style":1288},[10698],{"type":381,"value":10699},"        } ",{"type":372,"tag":1275,"props":10701,"children":10702},{"style":1282},[10703],{"type":381,"value":3807},{"type":372,"tag":1275,"props":10705,"children":10706},{"style":1288},[10707],{"type":381,"value":9881},{"type":372,"tag":1275,"props":10709,"children":10711},{"class":1277,"line":10710},166,[10712,10717,10722,10726,10730,10734,10738,10742,10747],{"type":372,"tag":1275,"props":10713,"children":10714},{"style":1282},[10715],{"type":381,"value":10716},"          if",{"type":372,"tag":1275,"props":10718,"children":10719},{"style":1288},[10720],{"type":381,"value":10721}," (err ",{"type":372,"tag":1275,"props":10723,"children":10724},{"style":1282},[10725],{"type":381,"value":9907},{"type":372,"tag":1275,"props":10727,"children":10728},{"style":1345},[10729],{"type":381,"value":9122},{"type":372,"tag":1275,"props":10731,"children":10732},{"style":1282},[10733],{"type":381,"value":9979},{"type":372,"tag":1275,"props":10735,"children":10736},{"style":1288},[10737],{"type":381,"value":9938},{"type":372,"tag":1275,"props":10739,"children":10740},{"style":1282},[10741],{"type":381,"value":9969},{"type":372,"tag":1275,"props":10743,"children":10744},{"style":1329},[10745],{"type":381,"value":10746}," 409",{"type":372,"tag":1275,"props":10748,"children":10749},{"style":1288},[10750],{"type":381,"value":3722},{"type":372,"tag":1275,"props":10752,"children":10754},{"class":1277,"line":10753},167,[10755,10760,10765,10769,10773,10777,10781,10785,10790,10795,10799,10804,10808,10812,10817,10821],{"type":372,"tag":1275,"props":10756,"children":10757},{"style":1282},[10758],{"type":381,"value":10759},"            const",{"type":372,"tag":1275,"props":10761,"children":10762},{"style":1329},[10763],{"type":381,"value":10764}," existing",{"type":372,"tag":1275,"props":10766,"children":10767},{"style":1282},[10768],{"type":381,"value":1337},{"type":372,"tag":1275,"props":10770,"children":10771},{"style":1288},[10772],{"type":381,"value":604},{"type":372,"tag":1275,"props":10774,"children":10775},{"style":1282},[10776],{"type":381,"value":1385},{"type":372,"tag":1275,"props":10778,"children":10779},{"style":1288},[10780],{"type":381,"value":2990},{"type":372,"tag":1275,"props":10782,"children":10783},{"style":1345},[10784],{"type":381,"value":7830},{"type":372,"tag":1275,"props":10786,"children":10787},{"style":1288},[10788],{"type":381,"value":10789},"(c.id)).",{"type":372,"tag":1275,"props":10791,"children":10792},{"style":1345},[10793],{"type":381,"value":10794},"find",{"type":372,"tag":1275,"props":10796,"children":10797},{"style":1288},[10798],{"type":381,"value":3646},{"type":372,"tag":1275,"props":10800,"children":10801},{"style":3649},[10802],{"type":381,"value":10803},"x",{"type":372,"tag":1275,"props":10805,"children":10806},{"style":1288},[10807],{"type":381,"value":3656},{"type":372,"tag":1275,"props":10809,"children":10810},{"style":1282},[10811],{"type":381,"value":3661},{"type":372,"tag":1275,"props":10813,"children":10814},{"style":1288},[10815],{"type":381,"value":10816}," x.url ",{"type":372,"tag":1275,"props":10818,"children":10819},{"style":1282},[10820],{"type":381,"value":9969},{"type":372,"tag":1275,"props":10822,"children":10823},{"style":1288},[10824],{"type":381,"value":10825}," e.url);\n",{"type":372,"tag":1275,"props":10827,"children":10829},{"class":1277,"line":10828},168,[10830,10835,10840,10844,10849,10854,10858],{"type":372,"tag":1275,"props":10831,"children":10832},{"style":1282},[10833],{"type":381,"value":10834},"            if",{"type":372,"tag":1275,"props":10836,"children":10837},{"style":1288},[10838],{"type":381,"value":10839}," (existing) ",{"type":372,"tag":1275,"props":10841,"children":10842},{"style":1282},[10843],{"type":381,"value":6239},{"type":372,"tag":1275,"props":10845,"children":10846},{"style":1288},[10847],{"type":381,"value":10848}," { id: existing.id, created: ",{"type":372,"tag":1275,"props":10850,"children":10851},{"style":1329},[10852],{"type":381,"value":10853},"false",{"type":372,"tag":1275,"props":10855,"children":10856},{"style":1288},[10857],{"type":381,"value":9651},{"type":372,"tag":1275,"props":10859,"children":10860},{"style":1578},[10861],{"type":381,"value":10862},"// already there: leave its state alone\n",{"type":372,"tag":1275,"props":10864,"children":10866},{"class":1277,"line":10865},169,[10867],{"type":372,"tag":1275,"props":10868,"children":10869},{"style":1288},[10870],{"type":381,"value":10871},"          }\n",{"type":372,"tag":1275,"props":10873,"children":10875},{"class":1277,"line":10874},170,[10876,10881],{"type":372,"tag":1275,"props":10877,"children":10878},{"style":1282},[10879],{"type":381,"value":10880},"          throw",{"type":372,"tag":1275,"props":10882,"children":10883},{"style":1288},[10884],{"type":381,"value":10885}," err;\n",{"type":372,"tag":1275,"props":10887,"children":10889},{"class":1277,"line":10888},171,[10890],{"type":372,"tag":1275,"props":10891,"children":10892},{"style":1288},[10893],{"type":381,"value":10894},"        }\n",{"type":372,"tag":1275,"props":10896,"children":10898},{"class":1277,"line":10897},172,[10899],{"type":372,"tag":1275,"props":10900,"children":10901},{"style":1288},[10902],{"type":381,"value":7452},{"type":372,"tag":1275,"props":10904,"children":10906},{"class":1277,"line":10905},173,[10907,10911,10916,10920,10924,10928,10933,10937,10941,10945,10949,10953,10958],{"type":372,"tag":1275,"props":10908,"children":10909},{"style":1282},[10910],{"type":381,"value":6847},{"type":372,"tag":1275,"props":10912,"children":10913},{"style":1288},[10914],{"type":381,"value":10915}," (created) ",{"type":372,"tag":1275,"props":10917,"children":10918},{"style":1282},[10919],{"type":381,"value":1385},{"type":372,"tag":1275,"props":10921,"children":10922},{"style":1345},[10923],{"type":381,"value":9702},{"type":372,"tag":1275,"props":10925,"children":10926},{"style":1288},[10927],{"type":381,"value":1926},{"type":372,"tag":1275,"props":10929,"children":10930},{"style":1299},[10931],{"type":381,"value":10932},"`pause ${",{"type":372,"tag":1275,"props":10934,"children":10935},{"style":1288},[10936],{"type":381,"value":2920},{"type":372,"tag":1275,"props":10938,"children":10939},{"style":1299},[10940],{"type":381,"value":2644},{"type":372,"tag":1275,"props":10942,"children":10943},{"style":1288},[10944],{"type":381,"value":10368},{"type":372,"tag":1275,"props":10946,"children":10947},{"style":1282},[10948],{"type":381,"value":3661},{"type":372,"tag":1275,"props":10950,"children":10951},{"style":1288},[10952],{"type":381,"value":2990},{"type":372,"tag":1275,"props":10954,"children":10955},{"style":1345},[10956],{"type":381,"value":10957},"pause",{"type":372,"tag":1275,"props":10959,"children":10960},{"style":1288},[10961],{"type":381,"value":10962},"(id));\n",{"type":372,"tag":1275,"props":10964,"children":10966},{"class":1277,"line":10965},174,[10967,10972,10976],{"type":372,"tag":1275,"props":10968,"children":10969},{"style":1288},[10970],{"type":381,"value":10971},"      state[e.sourceId] ",{"type":372,"tag":1275,"props":10973,"children":10974},{"style":1282},[10975],{"type":381,"value":2517},{"type":372,"tag":1275,"props":10977,"children":10978},{"style":1288},[10979],{"type":381,"value":9669},{"type":372,"tag":1275,"props":10981,"children":10983},{"class":1277,"line":10982},175,[10984,10989,10993,10997,11001,11005,11009,11013,11018,11023,11027,11032],{"type":372,"tag":1275,"props":10985,"children":10986},{"style":1345},[10987],{"type":381,"value":10988},"      writeFileSync",{"type":372,"tag":1275,"props":10990,"children":10991},{"style":1288},[10992],{"type":381,"value":1926},{"type":372,"tag":1275,"props":10994,"children":10995},{"style":1329},[10996],{"type":381,"value":9038},{"type":372,"tag":1275,"props":10998,"children":10999},{"style":1288},[11000],{"type":381,"value":1758},{"type":372,"tag":1275,"props":11002,"children":11003},{"style":1329},[11004],{"type":381,"value":2780},{"type":372,"tag":1275,"props":11006,"children":11007},{"style":1288},[11008],{"type":381,"value":445},{"type":372,"tag":1275,"props":11010,"children":11011},{"style":1345},[11012],{"type":381,"value":2789},{"type":372,"tag":1275,"props":11014,"children":11015},{"style":1288},[11016],{"type":381,"value":11017},"(state, ",{"type":372,"tag":1275,"props":11019,"children":11020},{"style":1329},[11021],{"type":381,"value":11022},"null",{"type":372,"tag":1275,"props":11024,"children":11025},{"style":1288},[11026],{"type":381,"value":1758},{"type":372,"tag":1275,"props":11028,"children":11029},{"style":1329},[11030],{"type":381,"value":11031},"2",{"type":372,"tag":1275,"props":11033,"children":11034},{"style":1288},[11035],{"type":381,"value":10055},{"type":372,"tag":1275,"props":11037,"children":11039},{"class":1277,"line":11038},176,[11040,11044,11049,11053,11057,11062,11066,11071,11075,11080,11084,11089,11093,11098],{"type":372,"tag":1275,"props":11041,"children":11042},{"style":1282},[11043],{"type":381,"value":6633},{"type":372,"tag":1275,"props":11045,"children":11046},{"style":1329},[11047],{"type":381,"value":11048}," secretNote",{"type":372,"tag":1275,"props":11050,"children":11051},{"style":1282},[11052],{"type":381,"value":1337},{"type":372,"tag":1275,"props":11054,"children":11055},{"style":1282},[11056],{"type":381,"value":6819},{"type":372,"tag":1275,"props":11058,"children":11059},{"style":1288},[11060],{"type":381,"value":11061},"created ",{"type":372,"tag":1275,"props":11063,"children":11064},{"style":1282},[11065],{"type":381,"value":5068},{"type":372,"tag":1275,"props":11067,"children":11068},{"style":1299},[11069],{"type":381,"value":11070}," \"\"",{"type":372,"tag":1275,"props":11072,"children":11073},{"style":1282},[11074],{"type":381,"value":10143},{"type":372,"tag":1275,"props":11076,"children":11077},{"style":1288},[11078],{"type":381,"value":11079}," e.secret ",{"type":372,"tag":1275,"props":11081,"children":11082},{"style":1282},[11083],{"type":381,"value":5068},{"type":372,"tag":1275,"props":11085,"children":11086},{"style":1299},[11087],{"type":381,"value":11088}," \" secret imported\"",{"type":372,"tag":1275,"props":11090,"children":11091},{"style":1282},[11092],{"type":381,"value":10143},{"type":372,"tag":1275,"props":11094,"children":11095},{"style":1299},[11096],{"type":381,"value":11097}," \" NEW secret\"",{"type":372,"tag":1275,"props":11099,"children":11100},{"style":1288},[11101],{"type":381,"value":1307},{"type":372,"tag":1275,"props":11103,"children":11105},{"class":1277,"line":11104},177,[11106,11110,11115,11119,11123,11127,11131,11135,11139,11143,11147,11151,11156,11160,11164,11168,11172,11177,11181,11186,11191,11196,11200,11204,11208,11212,11217,11221,11226],{"type":372,"tag":1275,"props":11107,"children":11108},{"style":1288},[11109],{"type":381,"value":10086},{"type":372,"tag":1275,"props":11111,"children":11112},{"style":1345},[11113],{"type":381,"value":11114},"log",{"type":372,"tag":1275,"props":11116,"children":11117},{"style":1288},[11118],{"type":381,"value":1926},{"type":372,"tag":1275,"props":11120,"children":11121},{"style":1299},[11122],{"type":381,"value":2590},{"type":372,"tag":1275,"props":11124,"children":11125},{"style":1288},[11126],{"type":381,"value":7848},{"type":372,"tag":1275,"props":11128,"children":11129},{"style":1299},[11130],{"type":381,"value":445},{"type":372,"tag":1275,"props":11132,"children":11133},{"style":1288},[11134],{"type":381,"value":2920},{"type":372,"tag":1275,"props":11136,"children":11137},{"style":1299},[11138],{"type":381,"value":5867},{"type":372,"tag":1275,"props":11140,"children":11141},{"style":1288},[11142],{"type":381,"value":7920},{"type":372,"tag":1275,"props":11144,"children":11145},{"style":1299},[11146],{"type":381,"value":445},{"type":372,"tag":1275,"props":11148,"children":11149},{"style":1288},[11150],{"type":381,"value":5174},{"type":372,"tag":1275,"props":11152,"children":11153},{"style":1299},[11154],{"type":381,"value":11155},"} -> ${",{"type":372,"tag":1275,"props":11157,"children":11158},{"style":1288},[11159],{"type":381,"value":2920},{"type":372,"tag":1275,"props":11161,"children":11162},{"style":1299},[11163],{"type":381,"value":6892},{"type":372,"tag":1275,"props":11165,"children":11166},{"style":1288},[11167],{"type":381,"value":10565},{"type":372,"tag":1275,"props":11169,"children":11170},{"style":1282},[11171],{"type":381,"value":7340},{"type":372,"tag":1275,"props":11173,"children":11174},{"style":1299},[11175],{"type":381,"value":11176}," \"(created, paused)\"",{"type":372,"tag":1275,"props":11178,"children":11179},{"style":1282},[11180],{"type":381,"value":10143},{"type":372,"tag":1275,"props":11182,"children":11183},{"style":1299},[11184],{"type":381,"value":11185}," \"(already existed, unchanged)\"}${",{"type":372,"tag":1275,"props":11187,"children":11188},{"style":1288},[11189],{"type":381,"value":11190},"secretNote",{"type":372,"tag":1275,"props":11192,"children":11193},{"style":1299},[11194],{"type":381,"value":11195},"}${",{"type":372,"tag":1275,"props":11197,"children":11198},{"style":1288},[11199],{"type":381,"value":7920},{"type":372,"tag":1275,"props":11201,"children":11202},{"style":1299},[11203],{"type":381,"value":445},{"type":372,"tag":1275,"props":11205,"children":11206},{"style":1288},[11207],{"type":381,"value":5282},{"type":372,"tag":1275,"props":11209,"children":11210},{"style":1282},[11211],{"type":381,"value":7340},{"type":372,"tag":1275,"props":11213,"children":11214},{"style":1299},[11215],{"type":381,"value":11216}," \" [disabled at Svix]\"",{"type":372,"tag":1275,"props":11218,"children":11219},{"style":1282},[11220],{"type":381,"value":10143},{"type":372,"tag":1275,"props":11222,"children":11223},{"style":1299},[11224],{"type":381,"value":11225}," \"\"}`",{"type":372,"tag":1275,"props":11227,"children":11228},{"style":1288},[11229],{"type":381,"value":1368},{"type":372,"tag":1275,"props":11231,"children":11233},{"class":1277,"line":11232},178,[11234],{"type":372,"tag":1275,"props":11235,"children":11236},{"style":1288},[11237],{"type":381,"value":7461},{"type":372,"tag":1275,"props":11239,"children":11241},{"class":1277,"line":11240},179,[11242],{"type":372,"tag":1275,"props":11243,"children":11244},{"style":1288},[11245],{"type":381,"value":3820},{"type":372,"tag":1275,"props":11247,"children":11249},{"class":1277,"line":11248},180,[11250],{"type":372,"tag":1275,"props":11251,"children":11252},{"style":1288},[11253],{"type":381,"value":3857},{"type":372,"tag":1275,"props":11255,"children":11257},{"class":1277,"line":11256},181,[11258],{"type":372,"tag":1275,"props":11259,"children":11260},{"emptyLinePlaceholder":1314},[11261],{"type":381,"value":1317},{"type":372,"tag":1275,"props":11263,"children":11265},{"class":1277,"line":11264},182,[11266,11270,11274,11278,11282,11286],{"type":372,"tag":1275,"props":11267,"children":11268},{"style":1282},[11269],{"type":381,"value":1326},{"type":372,"tag":1275,"props":11271,"children":11272},{"style":1329},[11273],{"type":381,"value":6341},{"type":372,"tag":1275,"props":11275,"children":11276},{"style":1282},[11277],{"type":381,"value":1337},{"type":372,"tag":1275,"props":11279,"children":11280},{"style":1282},[11281],{"type":381,"value":2522},{"type":372,"tag":1275,"props":11283,"children":11284},{"style":1345},[11285],{"type":381,"value":6302},{"type":372,"tag":1275,"props":11287,"children":11288},{"style":1288},[11289],{"type":381,"value":2947},{"type":372,"tag":1275,"props":11291,"children":11293},{"class":1277,"line":11292},183,[11294,11298,11302],{"type":372,"tag":1275,"props":11295,"children":11296},{"style":1282},[11297],{"type":381,"value":1385},{"type":372,"tag":1275,"props":11299,"children":11300},{"style":1345},[11301],{"type":381,"value":7542},{"type":372,"tag":1275,"props":11303,"children":11304},{"style":1288},[11305],{"type":381,"value":11306},"(plan);\n",{"type":372,"tag":1275,"props":11308,"children":11310},{"class":1277,"line":11309},184,[11311,11315,11320,11324,11329,11334,11338,11342,11346,11350],{"type":372,"tag":1275,"props":11312,"children":11313},{"style":1282},[11314],{"type":381,"value":1326},{"type":372,"tag":1275,"props":11316,"children":11317},{"style":1329},[11318],{"type":381,"value":11319}," endpoints",{"type":372,"tag":1275,"props":11321,"children":11322},{"style":1282},[11323],{"type":381,"value":1337},{"type":372,"tag":1275,"props":11325,"children":11326},{"style":1288},[11327],{"type":381,"value":11328}," plan.consumers.",{"type":372,"tag":1275,"props":11330,"children":11331},{"style":1345},[11332],{"type":381,"value":11333},"flatMap",{"type":372,"tag":1275,"props":11335,"children":11336},{"style":1288},[11337],{"type":381,"value":3646},{"type":372,"tag":1275,"props":11339,"children":11340},{"style":3649},[11341],{"type":381,"value":7848},{"type":372,"tag":1275,"props":11343,"children":11344},{"style":1288},[11345],{"type":381,"value":3656},{"type":372,"tag":1275,"props":11347,"children":11348},{"style":1282},[11349],{"type":381,"value":3661},{"type":372,"tag":1275,"props":11351,"children":11352},{"style":1288},[11353],{"type":381,"value":11354}," c.endpoints);\n",{"type":372,"tag":1275,"props":11356,"children":11358},{"class":1277,"line":11357},185,[11359,11363,11368,11372,11377,11381,11385,11389,11393,11397,11402,11406],{"type":372,"tag":1275,"props":11360,"children":11361},{"style":1282},[11362],{"type":381,"value":1326},{"type":372,"tag":1275,"props":11364,"children":11365},{"style":1329},[11366],{"type":381,"value":11367}," imported",{"type":372,"tag":1275,"props":11369,"children":11370},{"style":1282},[11371],{"type":381,"value":1337},{"type":372,"tag":1275,"props":11373,"children":11374},{"style":1288},[11375],{"type":381,"value":11376}," endpoints.",{"type":372,"tag":1275,"props":11378,"children":11379},{"style":1345},[11380],{"type":381,"value":3625},{"type":372,"tag":1275,"props":11382,"children":11383},{"style":1288},[11384],{"type":381,"value":3646},{"type":372,"tag":1275,"props":11386,"children":11387},{"style":3649},[11388],{"type":381,"value":7920},{"type":372,"tag":1275,"props":11390,"children":11391},{"style":1288},[11392],{"type":381,"value":3656},{"type":372,"tag":1275,"props":11394,"children":11395},{"style":1282},[11396],{"type":381,"value":3661},{"type":372,"tag":1275,"props":11398,"children":11399},{"style":1288},[11400],{"type":381,"value":11401}," e.secret).",{"type":372,"tag":1275,"props":11403,"children":11404},{"style":1329},[11405],{"type":381,"value":6857},{"type":372,"tag":1275,"props":11407,"children":11408},{"style":1288},[11409],{"type":381,"value":1307},{"type":372,"tag":1275,"props":11411,"children":11413},{"class":1277,"line":11412},186,[11414,11419,11423,11427,11432,11436,11440,11444,11448,11452,11457,11461,11465,11469,11473,11477,11482,11486,11490,11494,11499,11504,11509],{"type":372,"tag":1275,"props":11415,"children":11416},{"style":1288},[11417],{"type":381,"value":11418},"console.",{"type":372,"tag":1275,"props":11420,"children":11421},{"style":1345},[11422],{"type":381,"value":11114},{"type":372,"tag":1275,"props":11424,"children":11425},{"style":1288},[11426],{"type":381,"value":1926},{"type":372,"tag":1275,"props":11428,"children":11429},{"style":1299},[11430],{"type":381,"value":11431},"`Plan: ${",{"type":372,"tag":1275,"props":11433,"children":11434},{"style":1288},[11435],{"type":381,"value":7551},{"type":372,"tag":1275,"props":11437,"children":11438},{"style":1299},[11439],{"type":381,"value":445},{"type":372,"tag":1275,"props":11441,"children":11442},{"style":1288},[11443],{"type":381,"value":590},{"type":372,"tag":1275,"props":11445,"children":11446},{"style":1299},[11447],{"type":381,"value":445},{"type":372,"tag":1275,"props":11449,"children":11450},{"style":1329},[11451],{"type":381,"value":6857},{"type":372,"tag":1275,"props":11453,"children":11454},{"style":1299},[11455],{"type":381,"value":11456},"} event types, ${",{"type":372,"tag":1275,"props":11458,"children":11459},{"style":1288},[11460],{"type":381,"value":7551},{"type":372,"tag":1275,"props":11462,"children":11463},{"style":1299},[11464],{"type":381,"value":445},{"type":372,"tag":1275,"props":11466,"children":11467},{"style":1288},[11468],{"type":381,"value":7733},{"type":372,"tag":1275,"props":11470,"children":11471},{"style":1299},[11472],{"type":381,"value":445},{"type":372,"tag":1275,"props":11474,"children":11475},{"style":1329},[11476],{"type":381,"value":6857},{"type":372,"tag":1275,"props":11478,"children":11479},{"style":1299},[11480],{"type":381,"value":11481},"} consumers, ${",{"type":372,"tag":1275,"props":11483,"children":11484},{"style":1288},[11485],{"type":381,"value":5470},{"type":372,"tag":1275,"props":11487,"children":11488},{"style":1299},[11489],{"type":381,"value":445},{"type":372,"tag":1275,"props":11491,"children":11492},{"style":1329},[11493],{"type":381,"value":6857},{"type":372,"tag":1275,"props":11495,"children":11496},{"style":1299},[11497],{"type":381,"value":11498},"} endpoints (${",{"type":372,"tag":1275,"props":11500,"children":11501},{"style":1288},[11502],{"type":381,"value":11503},"imported",{"type":372,"tag":1275,"props":11505,"children":11506},{"style":1299},[11507],{"type":381,"value":11508},"} with imported secrets).`",{"type":372,"tag":1275,"props":11510,"children":11511},{"style":1288},[11512],{"type":381,"value":1368},{"type":372,"tag":1275,"props":11514,"children":11516},{"class":1277,"line":11515},187,[11517,11521,11525,11529,11534,11538,11542,11547],{"type":372,"tag":1275,"props":11518,"children":11519},{"style":1282},[11520],{"type":381,"value":2839},{"type":372,"tag":1275,"props":11522,"children":11523},{"style":1288},[11524],{"type":381,"value":604},{"type":372,"tag":1275,"props":11526,"children":11527},{"style":1329},[11528],{"type":381,"value":4846},{"type":372,"tag":1275,"props":11530,"children":11531},{"style":1288},[11532],{"type":381,"value":11533},") console.",{"type":372,"tag":1275,"props":11535,"children":11536},{"style":1345},[11537],{"type":381,"value":11114},{"type":372,"tag":1275,"props":11539,"children":11540},{"style":1288},[11541],{"type":381,"value":1926},{"type":372,"tag":1275,"props":11543,"children":11544},{"style":1299},[11545],{"type":381,"value":11546},"\"Dry run: nothing was written. Run again with DRY_RUN=false to import.\"",{"type":372,"tag":1275,"props":11548,"children":11549},{"style":1288},[11550],{"type":381,"value":1368},{"type":372,"tag":1275,"props":11552,"children":11554},{"class":1277,"line":11553},188,[11555,11560,11564,11568],{"type":372,"tag":1275,"props":11556,"children":11557},{"style":1282},[11558],{"type":381,"value":11559},"else",{"type":372,"tag":1275,"props":11561,"children":11562},{"style":1282},[11563],{"type":381,"value":2522},{"type":372,"tag":1275,"props":11565,"children":11566},{"style":1345},[11567],{"type":381,"value":10276},{"type":372,"tag":1275,"props":11569,"children":11570},{"style":1288},[11571],{"type":381,"value":11306},{"type":372,"tag":373,"props":11573,"children":11574},{},[11575,11577,11583],{"type":381,"value":11576},"With more than a few hundred endpoints, run the script in batches (for example, filter ",{"type":372,"tag":386,"props":11578,"children":11580},{"className":11579},[],[11581],{"type":381,"value":11582},"plan.consumers",{"type":381,"value":11584}," by ID prefix) and review the output between runs. There is no bulk import endpoint.",{"type":372,"tag":447,"props":11586,"children":11588},{"id":11587},"let-your-agent-do-it",[11589],{"type":381,"value":11590},"Let your agent do it",{"type":372,"tag":11592,"props":11593,"children":11595},"agent-prompt",{"title":11594},"Migrate our outbound webhooks from Svix to Webhook Relay",[11596,11609,11645],{"type":372,"tag":373,"props":11597,"children":11598},{},[11599,11601,11607],{"type":381,"value":11600},"Read ",{"type":372,"tag":416,"props":11602,"children":11605},{"href":11603,"rel":11604},"https://webhookrelay.com/outbound-migration/svix.md",[1244],[11606],{"type":381,"value":11603},{"type":381,"value":11608}," and follow it step by step in this repository.",{"type":372,"tag":3870,"props":11610,"children":11611},{},[11612,11617,11630,11635,11640],{"type":372,"tag":3439,"props":11613,"children":11614},{},[11615],{"type":381,"value":11616},"Inventory every use of the Svix SDK and Svix API (publishing, application and endpoint management, secret display, receiver docs).",{"type":372,"tag":3439,"props":11618,"children":11619},{},[11620,11622,11628],{"type":381,"value":11621},"Check GET ",{"type":372,"tag":416,"props":11623,"children":11626},{"href":11624,"rel":11625},"https://my.webhookrelay.com/v1/outbound/access",[1244],[11627],{"type":381,"value":11624},{"type":381,"value":11629},": confirm enabled is true and that our Svix applications, endpoints and event types fit within the returned limits. Stop and tell me if they don't.",{"type":372,"tag":3439,"props":11631,"children":11632},{},[11633],{"type":381,"value":11634},"Import event types, consumers and endpoints with the playbook's script, dry run first, passing each Svix endpoint's current secret through so customers keep their key. Every new endpoint must be paused.",{"type":372,"tag":3439,"props":11636,"children":11637},{},[11638],{"type":381,"value":11639},"Add a Webhook Relay publish call next to every Svix publish call, behind a feature flag, with the same idempotency key.",{"type":372,"tag":3439,"props":11641,"children":11642},{},[11643],{"type":381,"value":11644},"Run the playbook's verification checks with a Webhook Bin and report the results, including any endpoints that got a new secret or customers that read svix-* headers by name.",{"type":372,"tag":373,"props":11646,"children":11647},{},[11648],{"type":381,"value":11649},"Never print, log or commit signing secrets. Never delete or modify Svix applications or endpoints. Stop and ask me for approval before resuming any Webhook Relay endpoint or disabling any Svix endpoint.",{"type":372,"tag":447,"props":11651,"children":11653},{"id":11652},"next-steps",[11654],{"type":381,"value":11655},"Next steps",{"type":372,"tag":3435,"props":11657,"children":11658},{},[11659,11669,11678],{"type":372,"tag":3439,"props":11660,"children":11661},{},[11662,11667],{"type":372,"tag":416,"props":11663,"children":11664},{"href":77},[11665],{"type":381,"value":11666},"Migration overview",{"type":381,"value":11668},": limits, secret import rules and the general cutover plan.",{"type":372,"tag":3439,"props":11670,"children":11671},{},[11672,11676],{"type":372,"tag":416,"props":11673,"children":11674},{"href":71},[11675],{"type":381,"value":72},{"type":381,"value":11677},": for customers who read headers by name or got a new secret.",{"type":372,"tag":3439,"props":11679,"children":11680},{},[11681,11685],{"type":372,"tag":416,"props":11682,"children":11683},{"href":74},[11684],{"type":381,"value":75},{"type":381,"value":11686},": delivery history, endpoint health, pause and resume.",{"type":372,"tag":11688,"props":11689,"children":11690},"style",{},[11691],{"type":381,"value":11692},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":345,"searchDepth":1320,"depth":1320,"links":11694},[11695,11696,11700,11701,11702,11703,11704,11705],{"id":449,"depth":1310,"text":452},{"id":872,"depth":1310,"text":875,"children":11697},[11698,11699],{"id":1252,"depth":1320,"text":1021},{"id":2317,"depth":1320,"text":2320},{"id":3204,"depth":1310,"text":3207},{"id":3865,"depth":1310,"text":3868},{"id":3784,"depth":1310,"text":4044},{"id":4526,"depth":1310,"text":4529},{"id":11587,"depth":1310,"text":11590},{"id":11652,"depth":1310,"text":11655},"markdown","content:docs:outbound:5.migrate:2.svix.md","content","docs/outbound/5.migrate/2.svix.md","docs/outbound/5.migrate/2.svix","md",{"loc":80},1792946407357]