[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-inngest-inngest-events":3,"mdc-ypn9cm-key":38,"related-org-inngest-inngest-events":8166,"related-repo-inngest-inngest-events":8332},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":20,"repoUrl":21,"updatedAt":22,"license":23,"forks":24,"topics":25,"repo":33,"sourceUrl":36,"mdContent":37},"inngest-events","design event-driven workflows","Use when designing event-driven workflows, decoupling services, implementing fan-out patterns (one trigger, many downstream handlers), implementing idempotent event handling with IDs (24-hour dedupe window), or handling at-least-once delivery from external sources like Stripe webhooks. Covers Inngest event schema, payload format, naming conventions, IDs for idempotency, the ts param, fan-out patterns, and system events like inngest\u002Ffunction.failed.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"inngest","Inngest","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Finngest.png",[12,14,17],{"name":9,"slug":8,"type":13},"tag",{"name":15,"slug":16,"type":13},"Data Pipeline","data-pipeline",{"name":18,"slug":19,"type":13},"Workflow Automation","workflow-automation",26,"https:\u002F\u002Fgithub.com\u002Finngest\u002Finngest-skills","2026-07-12T07:36:44.685364",null,5,[26,27,28,29,30,31,32],"agent-skill-repository","agent-skills","agentic-skills","ai-agents","claude-code-skills","cursor-skills","openclaw-skills",{"repoUrl":21,"stars":20,"forks":24,"topics":34,"description":35},[26,27,28,29,30,31,32],"Agent Skills for building with Inngest","https:\u002F\u002Fgithub.com\u002Finngest\u002Finngest-skills\u002Ftree\u002FHEAD\u002Fskills\u002Finngest-events","---\nname: inngest-events\ndescription: Use when designing event-driven workflows, decoupling services, implementing fan-out patterns (one trigger, many downstream handlers), implementing idempotent event handling with IDs (24-hour dedupe window), or handling at-least-once delivery from external sources like Stripe webhooks. Covers Inngest event schema, payload format, naming conventions, IDs for idempotency, the ts param, fan-out patterns, and system events like inngest\u002Ffunction.failed.\n---\n\n# Inngest Events\n\nMaster Inngest event design and delivery patterns. Events are the foundation of Inngest - learn to design robust event schemas, implement idempotency, leverage fan-out patterns, and handle system events effectively.\n\n> **These skills are focused on TypeScript.** For Python or Go, refer to the [Inngest documentation](https:\u002F\u002Fwww.inngest.com\u002Fllms.txt) for language-specific guidance. Core concepts apply across all languages.\n\n## Event Payload Format\n\nEvery Inngest event is a JSON object with required and optional properties:\n\n### Required Properties\n\n```typescript\ntype Event = {\n  name: string; \u002F\u002F Event type (triggers functions)\n  data: object; \u002F\u002F Payload data (any nested JSON)\n};\n```\n\n### Complete Schema\n\n```typescript\ntype EventPayload = {\n  name: string; \u002F\u002F Required: event type\n  data: Record\u003Cstring, any>; \u002F\u002F Required: event data\n  id?: string; \u002F\u002F Optional: deduplication ID\n  ts?: number; \u002F\u002F Optional: timestamp (Unix ms)\n  v?: string; \u002F\u002F Optional: schema version\n};\n```\n\n### Basic Event Example\n\n```typescript\nawait inngest.send({\n  name: \"billing\u002Finvoice.paid\",\n  data: {\n    customerId: \"cus_NffrFeUfNV2Hib\",\n    invoiceId: \"in_1J5g2n2eZvKYlo2C0Z1Z2Z3Z\",\n    userId: \"user_03028hf09j2d02\",\n    amount: 1000,\n    metadata: {\n      accountId: \"acct_1J5g2n2eZvKYlo2C0Z1Z2Z3Z\",\n      accountName: \"Acme.ai\"\n    }\n  }\n});\n```\n\n## Event Naming Conventions\n\n**Use the Object-Action pattern:** `domain\u002Fnoun.verb`\n\n### Recommended Patterns\n\n```typescript\n\u002F\u002F ✅ Good: Clear object-action pattern\n\"billing\u002Finvoice.paid\";\n\"user\u002Fprofile.updated\";\n\"order\u002Fitem.shipped\";\n\"ai\u002Fsummary.completed\";\n\n\u002F\u002F ✅ Good: Domain prefixes for organization\n\"stripe\u002Fcustomer.created\";\n\"intercom\u002Fconversation.assigned\";\n\"slack\u002Fmessage.posted\";\n\n\u002F\u002F ❌ Avoid: Unclear or inconsistent\n\"payment\"; \u002F\u002F What happened?\n\"user_update\"; \u002F\u002F Use dots, not underscores\n\"invoiceWasPaid\"; \u002F\u002F Too verbose\n```\n\n### Naming Guidelines\n\n- **Past tense:** Events describe what happened (`created`, `updated`, `failed`)\n- **Dot notation:** Use dots for hierarchy (`billing\u002Finvoice.paid`)\n- **Prefixes:** Group related events (`api\u002Fuser.created`, `webhook\u002Fstripe.received`)\n- **Consistency:** Establish patterns and stick to them\n\n## Event IDs and Idempotency\n\n**When to use IDs:** Prevent duplicate processing when events might be sent multiple times.\n\n### Basic Deduplication\n\n```typescript\nawait inngest.send({\n  id: \"cart-checkout-completed-ed12c8bde\", \u002F\u002F Unique per event type\n  name: \"storefront\u002Fcart.checkout.completed\",\n  data: {\n    cartId: \"ed12c8bde\",\n    items: [\"item1\", \"item2\"]\n  }\n});\n```\n\n### ID Best Practices\n\n```typescript\n\u002F\u002F ✅ Good: Specific to event type and instance\nid: `invoice-paid-${invoiceId}`;\nid: `user-signup-${userId}-${timestamp}`;\nid: `order-shipped-${orderId}-${trackingNumber}`;\n\n\u002F\u002F ❌ Bad: Generic IDs shared across event types\nid: invoiceId; \u002F\u002F Could conflict with other events\nid: \"user-action\"; \u002F\u002F Too generic\nid: customerId; \u002F\u002F Same customer, different events\n```\n\n**Deduplication window:** 24 hours from first event reception\n\nSee **inngest-durable-functions** for idempotency configuration.\n\n## The `ts` Parameter for Delayed Delivery\n\n**When to use:** Schedule events for future processing or maintain event ordering.\n\n### Future Scheduling\n\n```typescript\nconst oneHourFromNow = Date.now() + 60 * 60 * 1000;\n\nawait inngest.send({\n  name: \"trial\u002Freminder.send\",\n  ts: oneHourFromNow, \u002F\u002F Deliver in 1 hour\n  data: {\n    userId: \"user_123\",\n    trialExpiresAt: \"2024-02-15T12:00:00Z\"\n  }\n});\n```\n\n### Maintaining Event Order\n\n```typescript\n\u002F\u002F Events with timestamps are processed in chronological order\nconst events = [\n  {\n    name: \"user\u002Faction.performed\",\n    ts: 1640995200000, \u002F\u002F Earlier\n    data: { action: \"login\" }\n  },\n  {\n    name: \"user\u002Faction.performed\",\n    ts: 1640995260000, \u002F\u002F Later\n    data: { action: \"purchase\" }\n  }\n];\n\nawait inngest.send(events);\n```\n\n## Fan-Out Patterns\n\n**Use case:** One event triggers multiple independent functions for reliability and parallel processing.\n\n### Basic Fan-Out Implementation\n\n```typescript\n\u002F\u002F Send single event\nawait inngest.send({\n  name: \"user\u002Fsignup.completed\",\n  data: {\n    userId: \"user_123\",\n    email: \"user@example.com\",\n    plan: \"pro\"\n  }\n});\n\n\u002F\u002F Multiple functions respond to same event\nconst sendWelcomeEmail = inngest.createFunction(\n  { id: \"send-welcome-email\", triggers: [{ event: \"user\u002Fsignup.completed\" }] },\n  async ({ event, step }) => {\n    await step.run(\"send-email\", async () => {\n      return sendEmail({\n        to: event.data.email,\n        template: \"welcome\"\n      });\n    });\n  }\n);\n\nconst createTrialSubscription = inngest.createFunction(\n  { id: \"create-trial\", triggers: [{ event: \"user\u002Fsignup.completed\" }] },\n  async ({ event, step }) => {\n    await step.run(\"create-subscription\", async () => {\n      return stripe.subscriptions.create({\n        customer: event.data.stripeCustomerId,\n        trial_period_days: 14\n      });\n    });\n  }\n);\n\nconst addToCrm = inngest.createFunction(\n  { id: \"add-to-crm\", triggers: [{ event: \"user\u002Fsignup.completed\" }] },\n  async ({ event, step }) => {\n    await step.run(\"crm-sync\", async () => {\n      return crm.contacts.create({\n        email: event.data.email,\n        plan: event.data.plan\n      });\n    });\n  }\n);\n```\n\n### Fan-Out Benefits\n\n- **Independence:** Functions run separately; one failure doesn't affect others\n- **Parallel execution:** All functions run simultaneously\n- **Selective replay:** Re-run only failed functions\n- **Cross-service:** Trigger functions in different codebases\u002Flanguages\n\n### Advanced Fan-Out with `waitForEvent`\n\nIn expressions, `event` = the **original** triggering event, `async` = the **new** event being matched. See [Expression Syntax Reference](..\u002Freferences\u002Fexpressions.md) for full details.\n\n```typescript\nconst orchestrateOnboarding = inngest.createFunction(\n  { id: \"orchestrate-onboarding\", triggers: [{ event: \"user\u002Fsignup.completed\" }] },\n  async ({ event, step }) => {\n    \u002F\u002F Fan out to multiple services\n    await step.sendEvent(\"fan-out\", [\n      { name: \"email\u002Fwelcome.send\", data: event.data },\n      { name: \"subscription\u002Ftrial.create\", data: event.data },\n      { name: \"crm\u002Fcontact.add\", data: event.data }\n    ]);\n\n    \u002F\u002F Wait for all to complete\n    const [emailResult, subResult, crmResult] = await Promise.all([\n      step.waitForEvent(\"email-sent\", {\n        event: \"email\u002Fwelcome.sent\",\n        timeout: \"5m\",\n        if: `event.data.userId == async.data.userId`\n      }),\n      step.waitForEvent(\"subscription-created\", {\n        event: \"subscription\u002Ftrial.created\",\n        timeout: \"5m\",\n        if: `event.data.userId == async.data.userId`\n      }),\n      step.waitForEvent(\"crm-synced\", {\n        event: \"crm\u002Fcontact.added\",\n        timeout: \"5m\",\n        if: `event.data.userId == async.data.userId`\n      })\n    ]);\n\n    \u002F\u002F Complete onboarding\n    await step.run(\"complete-onboarding\", async () => {\n      return completeUserOnboarding(event.data.userId);\n    });\n  }\n);\n```\n\nSee **inngest-steps** for additional patterns including `step.invoke`.\n\n## System Events\n\nInngest emits system events for function lifecycle monitoring:\n\n### Available System Events\n\n```typescript\n\u002F\u002F Function execution events\n\"inngest\u002Ffunction.failed\"; \u002F\u002F Function failed after retries\n\"inngest\u002Ffunction.finished\"; \u002F\u002F Function finished - completed or failed\n\"inngest\u002Ffunction.cancelled\"; \u002F\u002F Function cancelled before completion\n```\n\n### Handling Failed Functions\n\n```typescript\nconst handleFailures = inngest.createFunction(\n  { id: \"handle-failed-functions\", triggers: [{ event: \"inngest\u002Ffunction.failed\" }] },\n  async ({ event, step }) => {\n    const { function_id, run_id, error } = event.data;\n\n    await step.run(\"log-failure\", async () => {\n      logger.error(\"Function failed\", {\n        functionId: function_id,\n        runId: run_id,\n        error: error.message,\n        stack: error.stack\n      });\n    });\n\n    \u002F\u002F Alert on critical function failures\n    if (function_id.includes(\"critical\")) {\n      await step.run(\"send-alert\", async () => {\n        return alerting.sendAlert({\n          title: `Critical function failed: ${function_id}`,\n          severity: \"high\",\n          runId: run_id\n        });\n      });\n    }\n\n    \u002F\u002F Auto-retry certain failures\n    if (error.code === \"RATE_LIMIT_EXCEEDED\") {\n      await step.run(\"schedule-retry\", async () => {\n        return inngest.send({\n          name: \"retry\u002Ffunction.requested\",\n          ts: Date.now() + 5 * 60 * 1000, \u002F\u002F Retry in 5 minutes\n          data: { originalRunId: run_id }\n        });\n      });\n    }\n  }\n);\n```\n\n## Sending Events\n\n### Client Setup\n\n```typescript\n\u002F\u002F inngest\u002Fclient.ts\nimport { Inngest } from \"inngest\";\n\nexport const inngest = new Inngest({\n  id: \"my-app\"\n});\n\u002F\u002F You must set INNGEST_EVENT_KEY environment variable in production\n```\n\n### Single Event\n\n```typescript\nconst result = await inngest.send({\n  name: \"order\u002Fplaced\",\n  data: {\n    orderId: \"ord_123\",\n    customerId: \"cus_456\",\n    amount: 2500,\n    items: [\n      { id: \"item_1\", quantity: 2 },\n      { id: \"item_2\", quantity: 1 }\n    ]\n  }\n});\n\n\u002F\u002F Returns event IDs for tracking\nconsole.log(result.ids); \u002F\u002F [\"01HQ8PTAESBZPBDS8JTRZZYY3S\"]\n```\n\n### Batch Events\n\n```typescript\nconst orderItems = await getOrderItems(orderId);\n\n\u002F\u002F Convert to events\nconst events = orderItems.map((item) => ({\n  name: \"inventory\u002Fitem.reserved\",\n  data: {\n    itemId: item.id,\n    orderId: orderId,\n    quantity: item.quantity,\n    warehouseId: item.warehouseId\n  }\n}));\n\n\u002F\u002F Send all at once (up to 512kb)\nawait inngest.send(events);\n```\n\n### Sending from Functions\n\n```typescript\ninngest.createFunction(\n  { id: \"process-order\", triggers: [{ event: \"order\u002Fplaced\" }] },\n  async ({ event, step }) => {\n    \u002F\u002F Use step.sendEvent() instead of inngest.send() in functions\n    \u002F\u002F for reliability and deduplication\n    await step.sendEvent(\"trigger-fulfillment\", {\n      name: \"fulfillment\u002Forder.received\",\n      data: {\n        orderId: event.data.orderId,\n        priority: event.data.customerTier === \"premium\" ? \"high\" : \"normal\"\n      }\n    });\n  }\n);\n```\n\n## Event Design Best Practices\n\n### Schema Versioning\n\n```typescript\n\u002F\u002F Use version field to track schema changes\nawait inngest.send({\n  name: \"user\u002Fprofile.updated\",\n  v: \"2024-01-15.1\", \u002F\u002F Schema version\n  data: {\n    userId: \"user_123\",\n    changes: {\n      email: \"new@example.com\",\n      preferences: { theme: \"dark\" }\n    },\n    \u002F\u002F New field in v2 schema\n    auditInfo: {\n      changedBy: \"user_456\",\n      reason: \"user_requested\"\n    }\n  }\n});\n```\n\n### Rich Context Data\n\n```typescript\n\u002F\u002F Include enough context for all consumers\nawait inngest.send({\n  name: \"payment\u002Fcharge.succeeded\",\n  data: {\n    \u002F\u002F Primary identifiers\n    chargeId: \"ch_123\",\n    customerId: \"cus_456\",\n\n    \u002F\u002F Amount details\n    amount: 2500,\n    currency: \"usd\",\n\n    \u002F\u002F Context for different consumers\n    subscription: {\n      id: \"sub_789\",\n      plan: \"pro_monthly\"\n    },\n    invoice: {\n      id: \"inv_012\",\n      number: \"INV-2024-001\"\n    },\n\n    \u002F\u002F Metadata for debugging\n    paymentMethod: {\n      type: \"card\",\n      last4: \"4242\",\n      brand: \"visa\"\n    },\n    metadata: {\n      source: \"stripe_webhook\",\n      environment: \"production\"\n    }\n  }\n});\n```\n\n**Event design principles:**\n\n1. **Self-contained:** Include all data consumers need\n2. **Immutable:** Never modify event schemas after sending\n3. **Traceable:** Include correlation IDs and audit trails\n4. **Actionable:** Provide enough context for business logic\n5. **Debuggable:** Include metadata for troubleshooting\n",{"data":39,"body":40},{"name":4,"description":6},{"type":41,"children":42},"root",[43,51,57,83,90,95,102,210,216,399,405,715,721,737,743,1006,1012,1099,1105,1115,1121,1334,1340,1603,1613,1625,1639,1649,1655,1907,1913,2217,2223,2233,2239,3543,3549,3592,3604,3646,4681,4699,4705,4710,4716,4806,4812,5856,5862,5868,6018,6024,6390,6396,6721,6727,7135,7141,7147,7493,7499,8098,8106,8160],{"type":44,"tag":45,"props":46,"children":47},"element","h1",{"id":4},[48],{"type":49,"value":50},"text","Inngest Events",{"type":44,"tag":52,"props":53,"children":54},"p",{},[55],{"type":49,"value":56},"Master Inngest event design and delivery patterns. Events are the foundation of Inngest - learn to design robust event schemas, implement idempotency, leverage fan-out patterns, and handle system events effectively.",{"type":44,"tag":58,"props":59,"children":60},"blockquote",{},[61],{"type":44,"tag":52,"props":62,"children":63},{},[64,70,72,81],{"type":44,"tag":65,"props":66,"children":67},"strong",{},[68],{"type":49,"value":69},"These skills are focused on TypeScript.",{"type":49,"value":71}," For Python or Go, refer to the ",{"type":44,"tag":73,"props":74,"children":78},"a",{"href":75,"rel":76},"https:\u002F\u002Fwww.inngest.com\u002Fllms.txt",[77],"nofollow",[79],{"type":49,"value":80},"Inngest documentation",{"type":49,"value":82}," for language-specific guidance. Core concepts apply across all languages.",{"type":44,"tag":84,"props":85,"children":87},"h2",{"id":86},"event-payload-format",[88],{"type":49,"value":89},"Event Payload Format",{"type":44,"tag":52,"props":91,"children":92},{},[93],{"type":49,"value":94},"Every Inngest event is a JSON object with required and optional properties:",{"type":44,"tag":96,"props":97,"children":99},"h3",{"id":98},"required-properties",[100],{"type":49,"value":101},"Required Properties",{"type":44,"tag":103,"props":104,"children":109},"pre",{"className":105,"code":106,"language":107,"meta":108,"style":108},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","type Event = {\n  name: string; \u002F\u002F Event type (triggers functions)\n  data: object; \u002F\u002F Payload data (any nested JSON)\n};\n","typescript","",[110],{"type":44,"tag":111,"props":112,"children":113},"code",{"__ignoreMap":108},[114,143,174,201],{"type":44,"tag":115,"props":116,"children":119},"span",{"class":117,"line":118},"line",1,[120,126,132,138],{"type":44,"tag":115,"props":121,"children":123},{"style":122},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[124],{"type":49,"value":125},"type",{"type":44,"tag":115,"props":127,"children":129},{"style":128},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[130],{"type":49,"value":131}," Event",{"type":44,"tag":115,"props":133,"children":135},{"style":134},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[136],{"type":49,"value":137}," =",{"type":44,"tag":115,"props":139,"children":140},{"style":134},[141],{"type":49,"value":142}," {\n",{"type":44,"tag":115,"props":144,"children":146},{"class":117,"line":145},2,[147,153,158,163,168],{"type":44,"tag":115,"props":148,"children":150},{"style":149},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[151],{"type":49,"value":152},"  name",{"type":44,"tag":115,"props":154,"children":155},{"style":134},[156],{"type":49,"value":157},":",{"type":44,"tag":115,"props":159,"children":160},{"style":128},[161],{"type":49,"value":162}," string",{"type":44,"tag":115,"props":164,"children":165},{"style":134},[166],{"type":49,"value":167},";",{"type":44,"tag":115,"props":169,"children":171},{"style":170},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[172],{"type":49,"value":173}," \u002F\u002F Event type (triggers functions)\n",{"type":44,"tag":115,"props":175,"children":177},{"class":117,"line":176},3,[178,183,187,192,196],{"type":44,"tag":115,"props":179,"children":180},{"style":149},[181],{"type":49,"value":182},"  data",{"type":44,"tag":115,"props":184,"children":185},{"style":134},[186],{"type":49,"value":157},{"type":44,"tag":115,"props":188,"children":189},{"style":128},[190],{"type":49,"value":191}," object",{"type":44,"tag":115,"props":193,"children":194},{"style":134},[195],{"type":49,"value":167},{"type":44,"tag":115,"props":197,"children":198},{"style":170},[199],{"type":49,"value":200}," \u002F\u002F Payload data (any nested JSON)\n",{"type":44,"tag":115,"props":202,"children":204},{"class":117,"line":203},4,[205],{"type":44,"tag":115,"props":206,"children":207},{"style":134},[208],{"type":49,"value":209},"};\n",{"type":44,"tag":96,"props":211,"children":213},{"id":212},"complete-schema",[214],{"type":49,"value":215},"Complete Schema",{"type":44,"tag":103,"props":217,"children":219},{"className":105,"code":218,"language":107,"meta":108,"style":108},"type EventPayload = {\n  name: string; \u002F\u002F Required: event type\n  data: Record\u003Cstring, any>; \u002F\u002F Required: event data\n  id?: string; \u002F\u002F Optional: deduplication ID\n  ts?: number; \u002F\u002F Optional: timestamp (Unix ms)\n  v?: string; \u002F\u002F Optional: schema version\n};\n",[220],{"type":44,"tag":111,"props":221,"children":222},{"__ignoreMap":108},[223,243,267,313,339,365,391],{"type":44,"tag":115,"props":224,"children":225},{"class":117,"line":118},[226,230,235,239],{"type":44,"tag":115,"props":227,"children":228},{"style":122},[229],{"type":49,"value":125},{"type":44,"tag":115,"props":231,"children":232},{"style":128},[233],{"type":49,"value":234}," EventPayload",{"type":44,"tag":115,"props":236,"children":237},{"style":134},[238],{"type":49,"value":137},{"type":44,"tag":115,"props":240,"children":241},{"style":134},[242],{"type":49,"value":142},{"type":44,"tag":115,"props":244,"children":245},{"class":117,"line":145},[246,250,254,258,262],{"type":44,"tag":115,"props":247,"children":248},{"style":149},[249],{"type":49,"value":152},{"type":44,"tag":115,"props":251,"children":252},{"style":134},[253],{"type":49,"value":157},{"type":44,"tag":115,"props":255,"children":256},{"style":128},[257],{"type":49,"value":162},{"type":44,"tag":115,"props":259,"children":260},{"style":134},[261],{"type":49,"value":167},{"type":44,"tag":115,"props":263,"children":264},{"style":170},[265],{"type":49,"value":266}," \u002F\u002F Required: event type\n",{"type":44,"tag":115,"props":268,"children":269},{"class":117,"line":176},[270,274,278,283,288,293,298,303,308],{"type":44,"tag":115,"props":271,"children":272},{"style":149},[273],{"type":49,"value":182},{"type":44,"tag":115,"props":275,"children":276},{"style":134},[277],{"type":49,"value":157},{"type":44,"tag":115,"props":279,"children":280},{"style":128},[281],{"type":49,"value":282}," Record",{"type":44,"tag":115,"props":284,"children":285},{"style":134},[286],{"type":49,"value":287},"\u003C",{"type":44,"tag":115,"props":289,"children":290},{"style":128},[291],{"type":49,"value":292},"string",{"type":44,"tag":115,"props":294,"children":295},{"style":134},[296],{"type":49,"value":297},",",{"type":44,"tag":115,"props":299,"children":300},{"style":128},[301],{"type":49,"value":302}," any",{"type":44,"tag":115,"props":304,"children":305},{"style":134},[306],{"type":49,"value":307},">;",{"type":44,"tag":115,"props":309,"children":310},{"style":170},[311],{"type":49,"value":312}," \u002F\u002F Required: event data\n",{"type":44,"tag":115,"props":314,"children":315},{"class":117,"line":203},[316,321,326,330,334],{"type":44,"tag":115,"props":317,"children":318},{"style":149},[319],{"type":49,"value":320},"  id",{"type":44,"tag":115,"props":322,"children":323},{"style":134},[324],{"type":49,"value":325},"?:",{"type":44,"tag":115,"props":327,"children":328},{"style":128},[329],{"type":49,"value":162},{"type":44,"tag":115,"props":331,"children":332},{"style":134},[333],{"type":49,"value":167},{"type":44,"tag":115,"props":335,"children":336},{"style":170},[337],{"type":49,"value":338}," \u002F\u002F Optional: deduplication ID\n",{"type":44,"tag":115,"props":340,"children":341},{"class":117,"line":24},[342,347,351,356,360],{"type":44,"tag":115,"props":343,"children":344},{"style":149},[345],{"type":49,"value":346},"  ts",{"type":44,"tag":115,"props":348,"children":349},{"style":134},[350],{"type":49,"value":325},{"type":44,"tag":115,"props":352,"children":353},{"style":128},[354],{"type":49,"value":355}," number",{"type":44,"tag":115,"props":357,"children":358},{"style":134},[359],{"type":49,"value":167},{"type":44,"tag":115,"props":361,"children":362},{"style":170},[363],{"type":49,"value":364}," \u002F\u002F Optional: timestamp (Unix ms)\n",{"type":44,"tag":115,"props":366,"children":368},{"class":117,"line":367},6,[369,374,378,382,386],{"type":44,"tag":115,"props":370,"children":371},{"style":149},[372],{"type":49,"value":373},"  v",{"type":44,"tag":115,"props":375,"children":376},{"style":134},[377],{"type":49,"value":325},{"type":44,"tag":115,"props":379,"children":380},{"style":128},[381],{"type":49,"value":162},{"type":44,"tag":115,"props":383,"children":384},{"style":134},[385],{"type":49,"value":167},{"type":44,"tag":115,"props":387,"children":388},{"style":170},[389],{"type":49,"value":390}," \u002F\u002F Optional: schema version\n",{"type":44,"tag":115,"props":392,"children":394},{"class":117,"line":393},7,[395],{"type":44,"tag":115,"props":396,"children":397},{"style":134},[398],{"type":49,"value":209},{"type":44,"tag":96,"props":400,"children":402},{"id":401},"basic-event-example",[403],{"type":49,"value":404},"Basic Event Example",{"type":44,"tag":103,"props":406,"children":408},{"className":105,"code":407,"language":107,"meta":108,"style":108},"await inngest.send({\n  name: \"billing\u002Finvoice.paid\",\n  data: {\n    customerId: \"cus_NffrFeUfNV2Hib\",\n    invoiceId: \"in_1J5g2n2eZvKYlo2C0Z1Z2Z3Z\",\n    userId: \"user_03028hf09j2d02\",\n    amount: 1000,\n    metadata: {\n      accountId: \"acct_1J5g2n2eZvKYlo2C0Z1Z2Z3Z\",\n      accountName: \"Acme.ai\"\n    }\n  }\n});\n",[409],{"type":44,"tag":111,"props":410,"children":411},{"__ignoreMap":108},[412,448,480,495,524,553,582,604,621,651,678,687,696],{"type":44,"tag":115,"props":413,"children":414},{"class":117,"line":118},[415,421,427,432,438,443],{"type":44,"tag":115,"props":416,"children":418},{"style":417},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[419],{"type":49,"value":420},"await",{"type":44,"tag":115,"props":422,"children":424},{"style":423},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[425],{"type":49,"value":426}," inngest",{"type":44,"tag":115,"props":428,"children":429},{"style":134},[430],{"type":49,"value":431},".",{"type":44,"tag":115,"props":433,"children":435},{"style":434},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[436],{"type":49,"value":437},"send",{"type":44,"tag":115,"props":439,"children":440},{"style":423},[441],{"type":49,"value":442},"(",{"type":44,"tag":115,"props":444,"children":445},{"style":134},[446],{"type":49,"value":447},"{\n",{"type":44,"tag":115,"props":449,"children":450},{"class":117,"line":145},[451,455,459,464,470,475],{"type":44,"tag":115,"props":452,"children":453},{"style":149},[454],{"type":49,"value":152},{"type":44,"tag":115,"props":456,"children":457},{"style":134},[458],{"type":49,"value":157},{"type":44,"tag":115,"props":460,"children":461},{"style":134},[462],{"type":49,"value":463}," \"",{"type":44,"tag":115,"props":465,"children":467},{"style":466},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[468],{"type":49,"value":469},"billing\u002Finvoice.paid",{"type":44,"tag":115,"props":471,"children":472},{"style":134},[473],{"type":49,"value":474},"\"",{"type":44,"tag":115,"props":476,"children":477},{"style":134},[478],{"type":49,"value":479},",\n",{"type":44,"tag":115,"props":481,"children":482},{"class":117,"line":176},[483,487,491],{"type":44,"tag":115,"props":484,"children":485},{"style":149},[486],{"type":49,"value":182},{"type":44,"tag":115,"props":488,"children":489},{"style":134},[490],{"type":49,"value":157},{"type":44,"tag":115,"props":492,"children":493},{"style":134},[494],{"type":49,"value":142},{"type":44,"tag":115,"props":496,"children":497},{"class":117,"line":203},[498,503,507,511,516,520],{"type":44,"tag":115,"props":499,"children":500},{"style":149},[501],{"type":49,"value":502},"    customerId",{"type":44,"tag":115,"props":504,"children":505},{"style":134},[506],{"type":49,"value":157},{"type":44,"tag":115,"props":508,"children":509},{"style":134},[510],{"type":49,"value":463},{"type":44,"tag":115,"props":512,"children":513},{"style":466},[514],{"type":49,"value":515},"cus_NffrFeUfNV2Hib",{"type":44,"tag":115,"props":517,"children":518},{"style":134},[519],{"type":49,"value":474},{"type":44,"tag":115,"props":521,"children":522},{"style":134},[523],{"type":49,"value":479},{"type":44,"tag":115,"props":525,"children":526},{"class":117,"line":24},[527,532,536,540,545,549],{"type":44,"tag":115,"props":528,"children":529},{"style":149},[530],{"type":49,"value":531},"    invoiceId",{"type":44,"tag":115,"props":533,"children":534},{"style":134},[535],{"type":49,"value":157},{"type":44,"tag":115,"props":537,"children":538},{"style":134},[539],{"type":49,"value":463},{"type":44,"tag":115,"props":541,"children":542},{"style":466},[543],{"type":49,"value":544},"in_1J5g2n2eZvKYlo2C0Z1Z2Z3Z",{"type":44,"tag":115,"props":546,"children":547},{"style":134},[548],{"type":49,"value":474},{"type":44,"tag":115,"props":550,"children":551},{"style":134},[552],{"type":49,"value":479},{"type":44,"tag":115,"props":554,"children":555},{"class":117,"line":367},[556,561,565,569,574,578],{"type":44,"tag":115,"props":557,"children":558},{"style":149},[559],{"type":49,"value":560},"    userId",{"type":44,"tag":115,"props":562,"children":563},{"style":134},[564],{"type":49,"value":157},{"type":44,"tag":115,"props":566,"children":567},{"style":134},[568],{"type":49,"value":463},{"type":44,"tag":115,"props":570,"children":571},{"style":466},[572],{"type":49,"value":573},"user_03028hf09j2d02",{"type":44,"tag":115,"props":575,"children":576},{"style":134},[577],{"type":49,"value":474},{"type":44,"tag":115,"props":579,"children":580},{"style":134},[581],{"type":49,"value":479},{"type":44,"tag":115,"props":583,"children":584},{"class":117,"line":393},[585,590,594,600],{"type":44,"tag":115,"props":586,"children":587},{"style":149},[588],{"type":49,"value":589},"    amount",{"type":44,"tag":115,"props":591,"children":592},{"style":134},[593],{"type":49,"value":157},{"type":44,"tag":115,"props":595,"children":597},{"style":596},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[598],{"type":49,"value":599}," 1000",{"type":44,"tag":115,"props":601,"children":602},{"style":134},[603],{"type":49,"value":479},{"type":44,"tag":115,"props":605,"children":607},{"class":117,"line":606},8,[608,613,617],{"type":44,"tag":115,"props":609,"children":610},{"style":149},[611],{"type":49,"value":612},"    metadata",{"type":44,"tag":115,"props":614,"children":615},{"style":134},[616],{"type":49,"value":157},{"type":44,"tag":115,"props":618,"children":619},{"style":134},[620],{"type":49,"value":142},{"type":44,"tag":115,"props":622,"children":624},{"class":117,"line":623},9,[625,630,634,638,643,647],{"type":44,"tag":115,"props":626,"children":627},{"style":149},[628],{"type":49,"value":629},"      accountId",{"type":44,"tag":115,"props":631,"children":632},{"style":134},[633],{"type":49,"value":157},{"type":44,"tag":115,"props":635,"children":636},{"style":134},[637],{"type":49,"value":463},{"type":44,"tag":115,"props":639,"children":640},{"style":466},[641],{"type":49,"value":642},"acct_1J5g2n2eZvKYlo2C0Z1Z2Z3Z",{"type":44,"tag":115,"props":644,"children":645},{"style":134},[646],{"type":49,"value":474},{"type":44,"tag":115,"props":648,"children":649},{"style":134},[650],{"type":49,"value":479},{"type":44,"tag":115,"props":652,"children":654},{"class":117,"line":653},10,[655,660,664,668,673],{"type":44,"tag":115,"props":656,"children":657},{"style":149},[658],{"type":49,"value":659},"      accountName",{"type":44,"tag":115,"props":661,"children":662},{"style":134},[663],{"type":49,"value":157},{"type":44,"tag":115,"props":665,"children":666},{"style":134},[667],{"type":49,"value":463},{"type":44,"tag":115,"props":669,"children":670},{"style":466},[671],{"type":49,"value":672},"Acme.ai",{"type":44,"tag":115,"props":674,"children":675},{"style":134},[676],{"type":49,"value":677},"\"\n",{"type":44,"tag":115,"props":679,"children":681},{"class":117,"line":680},11,[682],{"type":44,"tag":115,"props":683,"children":684},{"style":134},[685],{"type":49,"value":686},"    }\n",{"type":44,"tag":115,"props":688,"children":690},{"class":117,"line":689},12,[691],{"type":44,"tag":115,"props":692,"children":693},{"style":134},[694],{"type":49,"value":695},"  }\n",{"type":44,"tag":115,"props":697,"children":699},{"class":117,"line":698},13,[700,705,710],{"type":44,"tag":115,"props":701,"children":702},{"style":134},[703],{"type":49,"value":704},"}",{"type":44,"tag":115,"props":706,"children":707},{"style":423},[708],{"type":49,"value":709},")",{"type":44,"tag":115,"props":711,"children":712},{"style":134},[713],{"type":49,"value":714},";\n",{"type":44,"tag":84,"props":716,"children":718},{"id":717},"event-naming-conventions",[719],{"type":49,"value":720},"Event Naming Conventions",{"type":44,"tag":52,"props":722,"children":723},{},[724,729,731],{"type":44,"tag":65,"props":725,"children":726},{},[727],{"type":49,"value":728},"Use the Object-Action pattern:",{"type":49,"value":730}," ",{"type":44,"tag":111,"props":732,"children":734},{"className":733},[],[735],{"type":49,"value":736},"domain\u002Fnoun.verb",{"type":44,"tag":96,"props":738,"children":740},{"id":739},"recommended-patterns",[741],{"type":49,"value":742},"Recommended Patterns",{"type":44,"tag":103,"props":744,"children":746},{"className":105,"code":745,"language":107,"meta":108,"style":108},"\u002F\u002F ✅ Good: Clear object-action pattern\n\"billing\u002Finvoice.paid\";\n\"user\u002Fprofile.updated\";\n\"order\u002Fitem.shipped\";\n\"ai\u002Fsummary.completed\";\n\n\u002F\u002F ✅ Good: Domain prefixes for organization\n\"stripe\u002Fcustomer.created\";\n\"intercom\u002Fconversation.assigned\";\n\"slack\u002Fmessage.posted\";\n\n\u002F\u002F ❌ Avoid: Unclear or inconsistent\n\"payment\"; \u002F\u002F What happened?\n\"user_update\"; \u002F\u002F Use dots, not underscores\n\"invoiceWasPaid\"; \u002F\u002F Too verbose\n",[747],{"type":44,"tag":111,"props":748,"children":749},{"__ignoreMap":108},[750,758,777,797,817,837,846,854,874,894,914,921,929,954,980],{"type":44,"tag":115,"props":751,"children":752},{"class":117,"line":118},[753],{"type":44,"tag":115,"props":754,"children":755},{"style":170},[756],{"type":49,"value":757},"\u002F\u002F ✅ Good: Clear object-action pattern\n",{"type":44,"tag":115,"props":759,"children":760},{"class":117,"line":145},[761,765,769,773],{"type":44,"tag":115,"props":762,"children":763},{"style":134},[764],{"type":49,"value":474},{"type":44,"tag":115,"props":766,"children":767},{"style":466},[768],{"type":49,"value":469},{"type":44,"tag":115,"props":770,"children":771},{"style":134},[772],{"type":49,"value":474},{"type":44,"tag":115,"props":774,"children":775},{"style":134},[776],{"type":49,"value":714},{"type":44,"tag":115,"props":778,"children":779},{"class":117,"line":176},[780,784,789,793],{"type":44,"tag":115,"props":781,"children":782},{"style":134},[783],{"type":49,"value":474},{"type":44,"tag":115,"props":785,"children":786},{"style":466},[787],{"type":49,"value":788},"user\u002Fprofile.updated",{"type":44,"tag":115,"props":790,"children":791},{"style":134},[792],{"type":49,"value":474},{"type":44,"tag":115,"props":794,"children":795},{"style":134},[796],{"type":49,"value":714},{"type":44,"tag":115,"props":798,"children":799},{"class":117,"line":203},[800,804,809,813],{"type":44,"tag":115,"props":801,"children":802},{"style":134},[803],{"type":49,"value":474},{"type":44,"tag":115,"props":805,"children":806},{"style":466},[807],{"type":49,"value":808},"order\u002Fitem.shipped",{"type":44,"tag":115,"props":810,"children":811},{"style":134},[812],{"type":49,"value":474},{"type":44,"tag":115,"props":814,"children":815},{"style":134},[816],{"type":49,"value":714},{"type":44,"tag":115,"props":818,"children":819},{"class":117,"line":24},[820,824,829,833],{"type":44,"tag":115,"props":821,"children":822},{"style":134},[823],{"type":49,"value":474},{"type":44,"tag":115,"props":825,"children":826},{"style":466},[827],{"type":49,"value":828},"ai\u002Fsummary.completed",{"type":44,"tag":115,"props":830,"children":831},{"style":134},[832],{"type":49,"value":474},{"type":44,"tag":115,"props":834,"children":835},{"style":134},[836],{"type":49,"value":714},{"type":44,"tag":115,"props":838,"children":839},{"class":117,"line":367},[840],{"type":44,"tag":115,"props":841,"children":843},{"emptyLinePlaceholder":842},true,[844],{"type":49,"value":845},"\n",{"type":44,"tag":115,"props":847,"children":848},{"class":117,"line":393},[849],{"type":44,"tag":115,"props":850,"children":851},{"style":170},[852],{"type":49,"value":853},"\u002F\u002F ✅ Good: Domain prefixes for organization\n",{"type":44,"tag":115,"props":855,"children":856},{"class":117,"line":606},[857,861,866,870],{"type":44,"tag":115,"props":858,"children":859},{"style":134},[860],{"type":49,"value":474},{"type":44,"tag":115,"props":862,"children":863},{"style":466},[864],{"type":49,"value":865},"stripe\u002Fcustomer.created",{"type":44,"tag":115,"props":867,"children":868},{"style":134},[869],{"type":49,"value":474},{"type":44,"tag":115,"props":871,"children":872},{"style":134},[873],{"type":49,"value":714},{"type":44,"tag":115,"props":875,"children":876},{"class":117,"line":623},[877,881,886,890],{"type":44,"tag":115,"props":878,"children":879},{"style":134},[880],{"type":49,"value":474},{"type":44,"tag":115,"props":882,"children":883},{"style":466},[884],{"type":49,"value":885},"intercom\u002Fconversation.assigned",{"type":44,"tag":115,"props":887,"children":888},{"style":134},[889],{"type":49,"value":474},{"type":44,"tag":115,"props":891,"children":892},{"style":134},[893],{"type":49,"value":714},{"type":44,"tag":115,"props":895,"children":896},{"class":117,"line":653},[897,901,906,910],{"type":44,"tag":115,"props":898,"children":899},{"style":134},[900],{"type":49,"value":474},{"type":44,"tag":115,"props":902,"children":903},{"style":466},[904],{"type":49,"value":905},"slack\u002Fmessage.posted",{"type":44,"tag":115,"props":907,"children":908},{"style":134},[909],{"type":49,"value":474},{"type":44,"tag":115,"props":911,"children":912},{"style":134},[913],{"type":49,"value":714},{"type":44,"tag":115,"props":915,"children":916},{"class":117,"line":680},[917],{"type":44,"tag":115,"props":918,"children":919},{"emptyLinePlaceholder":842},[920],{"type":49,"value":845},{"type":44,"tag":115,"props":922,"children":923},{"class":117,"line":689},[924],{"type":44,"tag":115,"props":925,"children":926},{"style":170},[927],{"type":49,"value":928},"\u002F\u002F ❌ Avoid: Unclear or inconsistent\n",{"type":44,"tag":115,"props":930,"children":931},{"class":117,"line":698},[932,936,941,945,949],{"type":44,"tag":115,"props":933,"children":934},{"style":134},[935],{"type":49,"value":474},{"type":44,"tag":115,"props":937,"children":938},{"style":466},[939],{"type":49,"value":940},"payment",{"type":44,"tag":115,"props":942,"children":943},{"style":134},[944],{"type":49,"value":474},{"type":44,"tag":115,"props":946,"children":947},{"style":134},[948],{"type":49,"value":167},{"type":44,"tag":115,"props":950,"children":951},{"style":170},[952],{"type":49,"value":953}," \u002F\u002F What happened?\n",{"type":44,"tag":115,"props":955,"children":957},{"class":117,"line":956},14,[958,962,967,971,975],{"type":44,"tag":115,"props":959,"children":960},{"style":134},[961],{"type":49,"value":474},{"type":44,"tag":115,"props":963,"children":964},{"style":466},[965],{"type":49,"value":966},"user_update",{"type":44,"tag":115,"props":968,"children":969},{"style":134},[970],{"type":49,"value":474},{"type":44,"tag":115,"props":972,"children":973},{"style":134},[974],{"type":49,"value":167},{"type":44,"tag":115,"props":976,"children":977},{"style":170},[978],{"type":49,"value":979}," \u002F\u002F Use dots, not underscores\n",{"type":44,"tag":115,"props":981,"children":983},{"class":117,"line":982},15,[984,988,993,997,1001],{"type":44,"tag":115,"props":985,"children":986},{"style":134},[987],{"type":49,"value":474},{"type":44,"tag":115,"props":989,"children":990},{"style":466},[991],{"type":49,"value":992},"invoiceWasPaid",{"type":44,"tag":115,"props":994,"children":995},{"style":134},[996],{"type":49,"value":474},{"type":44,"tag":115,"props":998,"children":999},{"style":134},[1000],{"type":49,"value":167},{"type":44,"tag":115,"props":1002,"children":1003},{"style":170},[1004],{"type":49,"value":1005}," \u002F\u002F Too verbose\n",{"type":44,"tag":96,"props":1007,"children":1009},{"id":1008},"naming-guidelines",[1010],{"type":49,"value":1011},"Naming Guidelines",{"type":44,"tag":1013,"props":1014,"children":1015},"ul",{},[1016,1049,1065,1089],{"type":44,"tag":1017,"props":1018,"children":1019},"li",{},[1020,1025,1027,1033,1035,1041,1042,1048],{"type":44,"tag":65,"props":1021,"children":1022},{},[1023],{"type":49,"value":1024},"Past tense:",{"type":49,"value":1026}," Events describe what happened (",{"type":44,"tag":111,"props":1028,"children":1030},{"className":1029},[],[1031],{"type":49,"value":1032},"created",{"type":49,"value":1034},", ",{"type":44,"tag":111,"props":1036,"children":1038},{"className":1037},[],[1039],{"type":49,"value":1040},"updated",{"type":49,"value":1034},{"type":44,"tag":111,"props":1043,"children":1045},{"className":1044},[],[1046],{"type":49,"value":1047},"failed",{"type":49,"value":709},{"type":44,"tag":1017,"props":1050,"children":1051},{},[1052,1057,1059,1064],{"type":44,"tag":65,"props":1053,"children":1054},{},[1055],{"type":49,"value":1056},"Dot notation:",{"type":49,"value":1058}," Use dots for hierarchy (",{"type":44,"tag":111,"props":1060,"children":1062},{"className":1061},[],[1063],{"type":49,"value":469},{"type":49,"value":709},{"type":44,"tag":1017,"props":1066,"children":1067},{},[1068,1073,1075,1081,1082,1088],{"type":44,"tag":65,"props":1069,"children":1070},{},[1071],{"type":49,"value":1072},"Prefixes:",{"type":49,"value":1074}," Group related events (",{"type":44,"tag":111,"props":1076,"children":1078},{"className":1077},[],[1079],{"type":49,"value":1080},"api\u002Fuser.created",{"type":49,"value":1034},{"type":44,"tag":111,"props":1083,"children":1085},{"className":1084},[],[1086],{"type":49,"value":1087},"webhook\u002Fstripe.received",{"type":49,"value":709},{"type":44,"tag":1017,"props":1090,"children":1091},{},[1092,1097],{"type":44,"tag":65,"props":1093,"children":1094},{},[1095],{"type":49,"value":1096},"Consistency:",{"type":49,"value":1098}," Establish patterns and stick to them",{"type":44,"tag":84,"props":1100,"children":1102},{"id":1101},"event-ids-and-idempotency",[1103],{"type":49,"value":1104},"Event IDs and Idempotency",{"type":44,"tag":52,"props":1106,"children":1107},{},[1108,1113],{"type":44,"tag":65,"props":1109,"children":1110},{},[1111],{"type":49,"value":1112},"When to use IDs:",{"type":49,"value":1114}," Prevent duplicate processing when events might be sent multiple times.",{"type":44,"tag":96,"props":1116,"children":1118},{"id":1117},"basic-deduplication",[1119],{"type":49,"value":1120},"Basic Deduplication",{"type":44,"tag":103,"props":1122,"children":1124},{"className":105,"code":1123,"language":107,"meta":108,"style":108},"await inngest.send({\n  id: \"cart-checkout-completed-ed12c8bde\", \u002F\u002F Unique per event type\n  name: \"storefront\u002Fcart.checkout.completed\",\n  data: {\n    cartId: \"ed12c8bde\",\n    items: [\"item1\", \"item2\"]\n  }\n});\n",[1125],{"type":44,"tag":111,"props":1126,"children":1127},{"__ignoreMap":108},[1128,1155,1188,1216,1231,1260,1312,1319],{"type":44,"tag":115,"props":1129,"children":1130},{"class":117,"line":118},[1131,1135,1139,1143,1147,1151],{"type":44,"tag":115,"props":1132,"children":1133},{"style":417},[1134],{"type":49,"value":420},{"type":44,"tag":115,"props":1136,"children":1137},{"style":423},[1138],{"type":49,"value":426},{"type":44,"tag":115,"props":1140,"children":1141},{"style":134},[1142],{"type":49,"value":431},{"type":44,"tag":115,"props":1144,"children":1145},{"style":434},[1146],{"type":49,"value":437},{"type":44,"tag":115,"props":1148,"children":1149},{"style":423},[1150],{"type":49,"value":442},{"type":44,"tag":115,"props":1152,"children":1153},{"style":134},[1154],{"type":49,"value":447},{"type":44,"tag":115,"props":1156,"children":1157},{"class":117,"line":145},[1158,1162,1166,1170,1175,1179,1183],{"type":44,"tag":115,"props":1159,"children":1160},{"style":149},[1161],{"type":49,"value":320},{"type":44,"tag":115,"props":1163,"children":1164},{"style":134},[1165],{"type":49,"value":157},{"type":44,"tag":115,"props":1167,"children":1168},{"style":134},[1169],{"type":49,"value":463},{"type":44,"tag":115,"props":1171,"children":1172},{"style":466},[1173],{"type":49,"value":1174},"cart-checkout-completed-ed12c8bde",{"type":44,"tag":115,"props":1176,"children":1177},{"style":134},[1178],{"type":49,"value":474},{"type":44,"tag":115,"props":1180,"children":1181},{"style":134},[1182],{"type":49,"value":297},{"type":44,"tag":115,"props":1184,"children":1185},{"style":170},[1186],{"type":49,"value":1187}," \u002F\u002F Unique per event type\n",{"type":44,"tag":115,"props":1189,"children":1190},{"class":117,"line":176},[1191,1195,1199,1203,1208,1212],{"type":44,"tag":115,"props":1192,"children":1193},{"style":149},[1194],{"type":49,"value":152},{"type":44,"tag":115,"props":1196,"children":1197},{"style":134},[1198],{"type":49,"value":157},{"type":44,"tag":115,"props":1200,"children":1201},{"style":134},[1202],{"type":49,"value":463},{"type":44,"tag":115,"props":1204,"children":1205},{"style":466},[1206],{"type":49,"value":1207},"storefront\u002Fcart.checkout.completed",{"type":44,"tag":115,"props":1209,"children":1210},{"style":134},[1211],{"type":49,"value":474},{"type":44,"tag":115,"props":1213,"children":1214},{"style":134},[1215],{"type":49,"value":479},{"type":44,"tag":115,"props":1217,"children":1218},{"class":117,"line":203},[1219,1223,1227],{"type":44,"tag":115,"props":1220,"children":1221},{"style":149},[1222],{"type":49,"value":182},{"type":44,"tag":115,"props":1224,"children":1225},{"style":134},[1226],{"type":49,"value":157},{"type":44,"tag":115,"props":1228,"children":1229},{"style":134},[1230],{"type":49,"value":142},{"type":44,"tag":115,"props":1232,"children":1233},{"class":117,"line":24},[1234,1239,1243,1247,1252,1256],{"type":44,"tag":115,"props":1235,"children":1236},{"style":149},[1237],{"type":49,"value":1238},"    cartId",{"type":44,"tag":115,"props":1240,"children":1241},{"style":134},[1242],{"type":49,"value":157},{"type":44,"tag":115,"props":1244,"children":1245},{"style":134},[1246],{"type":49,"value":463},{"type":44,"tag":115,"props":1248,"children":1249},{"style":466},[1250],{"type":49,"value":1251},"ed12c8bde",{"type":44,"tag":115,"props":1253,"children":1254},{"style":134},[1255],{"type":49,"value":474},{"type":44,"tag":115,"props":1257,"children":1258},{"style":134},[1259],{"type":49,"value":479},{"type":44,"tag":115,"props":1261,"children":1262},{"class":117,"line":367},[1263,1268,1272,1277,1281,1286,1290,1294,1298,1303,1307],{"type":44,"tag":115,"props":1264,"children":1265},{"style":149},[1266],{"type":49,"value":1267},"    items",{"type":44,"tag":115,"props":1269,"children":1270},{"style":134},[1271],{"type":49,"value":157},{"type":44,"tag":115,"props":1273,"children":1274},{"style":423},[1275],{"type":49,"value":1276}," [",{"type":44,"tag":115,"props":1278,"children":1279},{"style":134},[1280],{"type":49,"value":474},{"type":44,"tag":115,"props":1282,"children":1283},{"style":466},[1284],{"type":49,"value":1285},"item1",{"type":44,"tag":115,"props":1287,"children":1288},{"style":134},[1289],{"type":49,"value":474},{"type":44,"tag":115,"props":1291,"children":1292},{"style":134},[1293],{"type":49,"value":297},{"type":44,"tag":115,"props":1295,"children":1296},{"style":134},[1297],{"type":49,"value":463},{"type":44,"tag":115,"props":1299,"children":1300},{"style":466},[1301],{"type":49,"value":1302},"item2",{"type":44,"tag":115,"props":1304,"children":1305},{"style":134},[1306],{"type":49,"value":474},{"type":44,"tag":115,"props":1308,"children":1309},{"style":423},[1310],{"type":49,"value":1311},"]\n",{"type":44,"tag":115,"props":1313,"children":1314},{"class":117,"line":393},[1315],{"type":44,"tag":115,"props":1316,"children":1317},{"style":134},[1318],{"type":49,"value":695},{"type":44,"tag":115,"props":1320,"children":1321},{"class":117,"line":606},[1322,1326,1330],{"type":44,"tag":115,"props":1323,"children":1324},{"style":134},[1325],{"type":49,"value":704},{"type":44,"tag":115,"props":1327,"children":1328},{"style":423},[1329],{"type":49,"value":709},{"type":44,"tag":115,"props":1331,"children":1332},{"style":134},[1333],{"type":49,"value":714},{"type":44,"tag":96,"props":1335,"children":1337},{"id":1336},"id-best-practices",[1338],{"type":49,"value":1339},"ID Best Practices",{"type":44,"tag":103,"props":1341,"children":1343},{"className":105,"code":1342,"language":107,"meta":108,"style":108},"\u002F\u002F ✅ Good: Specific to event type and instance\nid: `invoice-paid-${invoiceId}`;\nid: `user-signup-${userId}-${timestamp}`;\nid: `order-shipped-${orderId}-${trackingNumber}`;\n\n\u002F\u002F ❌ Bad: Generic IDs shared across event types\nid: invoiceId; \u002F\u002F Could conflict with other events\nid: \"user-action\"; \u002F\u002F Too generic\nid: customerId; \u002F\u002F Same customer, different events\n",[1344],{"type":44,"tag":111,"props":1345,"children":1346},{"__ignoreMap":108},[1347,1355,1396,1451,1505,1512,1520,1545,1578],{"type":44,"tag":115,"props":1348,"children":1349},{"class":117,"line":118},[1350],{"type":44,"tag":115,"props":1351,"children":1352},{"style":170},[1353],{"type":49,"value":1354},"\u002F\u002F ✅ Good: Specific to event type and instance\n",{"type":44,"tag":115,"props":1356,"children":1357},{"class":117,"line":145},[1358,1363,1367,1372,1377,1382,1387,1392],{"type":44,"tag":115,"props":1359,"children":1360},{"style":128},[1361],{"type":49,"value":1362},"id",{"type":44,"tag":115,"props":1364,"children":1365},{"style":134},[1366],{"type":49,"value":157},{"type":44,"tag":115,"props":1368,"children":1369},{"style":134},[1370],{"type":49,"value":1371}," `",{"type":44,"tag":115,"props":1373,"children":1374},{"style":466},[1375],{"type":49,"value":1376},"invoice-paid-",{"type":44,"tag":115,"props":1378,"children":1379},{"style":134},[1380],{"type":49,"value":1381},"${",{"type":44,"tag":115,"props":1383,"children":1384},{"style":423},[1385],{"type":49,"value":1386},"invoiceId",{"type":44,"tag":115,"props":1388,"children":1389},{"style":134},[1390],{"type":49,"value":1391},"}`",{"type":44,"tag":115,"props":1393,"children":1394},{"style":134},[1395],{"type":49,"value":714},{"type":44,"tag":115,"props":1397,"children":1398},{"class":117,"line":176},[1399,1403,1407,1411,1416,1420,1425,1429,1434,1438,1443,1447],{"type":44,"tag":115,"props":1400,"children":1401},{"style":128},[1402],{"type":49,"value":1362},{"type":44,"tag":115,"props":1404,"children":1405},{"style":134},[1406],{"type":49,"value":157},{"type":44,"tag":115,"props":1408,"children":1409},{"style":134},[1410],{"type":49,"value":1371},{"type":44,"tag":115,"props":1412,"children":1413},{"style":466},[1414],{"type":49,"value":1415},"user-signup-",{"type":44,"tag":115,"props":1417,"children":1418},{"style":134},[1419],{"type":49,"value":1381},{"type":44,"tag":115,"props":1421,"children":1422},{"style":423},[1423],{"type":49,"value":1424},"userId",{"type":44,"tag":115,"props":1426,"children":1427},{"style":134},[1428],{"type":49,"value":704},{"type":44,"tag":115,"props":1430,"children":1431},{"style":466},[1432],{"type":49,"value":1433},"-",{"type":44,"tag":115,"props":1435,"children":1436},{"style":134},[1437],{"type":49,"value":1381},{"type":44,"tag":115,"props":1439,"children":1440},{"style":423},[1441],{"type":49,"value":1442},"timestamp",{"type":44,"tag":115,"props":1444,"children":1445},{"style":134},[1446],{"type":49,"value":1391},{"type":44,"tag":115,"props":1448,"children":1449},{"style":134},[1450],{"type":49,"value":714},{"type":44,"tag":115,"props":1452,"children":1453},{"class":117,"line":203},[1454,1458,1462,1466,1471,1475,1480,1484,1488,1492,1497,1501],{"type":44,"tag":115,"props":1455,"children":1456},{"style":128},[1457],{"type":49,"value":1362},{"type":44,"tag":115,"props":1459,"children":1460},{"style":134},[1461],{"type":49,"value":157},{"type":44,"tag":115,"props":1463,"children":1464},{"style":134},[1465],{"type":49,"value":1371},{"type":44,"tag":115,"props":1467,"children":1468},{"style":466},[1469],{"type":49,"value":1470},"order-shipped-",{"type":44,"tag":115,"props":1472,"children":1473},{"style":134},[1474],{"type":49,"value":1381},{"type":44,"tag":115,"props":1476,"children":1477},{"style":423},[1478],{"type":49,"value":1479},"orderId",{"type":44,"tag":115,"props":1481,"children":1482},{"style":134},[1483],{"type":49,"value":704},{"type":44,"tag":115,"props":1485,"children":1486},{"style":466},[1487],{"type":49,"value":1433},{"type":44,"tag":115,"props":1489,"children":1490},{"style":134},[1491],{"type":49,"value":1381},{"type":44,"tag":115,"props":1493,"children":1494},{"style":423},[1495],{"type":49,"value":1496},"trackingNumber",{"type":44,"tag":115,"props":1498,"children":1499},{"style":134},[1500],{"type":49,"value":1391},{"type":44,"tag":115,"props":1502,"children":1503},{"style":134},[1504],{"type":49,"value":714},{"type":44,"tag":115,"props":1506,"children":1507},{"class":117,"line":24},[1508],{"type":44,"tag":115,"props":1509,"children":1510},{"emptyLinePlaceholder":842},[1511],{"type":49,"value":845},{"type":44,"tag":115,"props":1513,"children":1514},{"class":117,"line":367},[1515],{"type":44,"tag":115,"props":1516,"children":1517},{"style":170},[1518],{"type":49,"value":1519},"\u002F\u002F ❌ Bad: Generic IDs shared across event types\n",{"type":44,"tag":115,"props":1521,"children":1522},{"class":117,"line":393},[1523,1527,1531,1536,1540],{"type":44,"tag":115,"props":1524,"children":1525},{"style":128},[1526],{"type":49,"value":1362},{"type":44,"tag":115,"props":1528,"children":1529},{"style":134},[1530],{"type":49,"value":157},{"type":44,"tag":115,"props":1532,"children":1533},{"style":423},[1534],{"type":49,"value":1535}," invoiceId",{"type":44,"tag":115,"props":1537,"children":1538},{"style":134},[1539],{"type":49,"value":167},{"type":44,"tag":115,"props":1541,"children":1542},{"style":170},[1543],{"type":49,"value":1544}," \u002F\u002F Could conflict with other events\n",{"type":44,"tag":115,"props":1546,"children":1547},{"class":117,"line":606},[1548,1552,1556,1560,1565,1569,1573],{"type":44,"tag":115,"props":1549,"children":1550},{"style":128},[1551],{"type":49,"value":1362},{"type":44,"tag":115,"props":1553,"children":1554},{"style":134},[1555],{"type":49,"value":157},{"type":44,"tag":115,"props":1557,"children":1558},{"style":134},[1559],{"type":49,"value":463},{"type":44,"tag":115,"props":1561,"children":1562},{"style":466},[1563],{"type":49,"value":1564},"user-action",{"type":44,"tag":115,"props":1566,"children":1567},{"style":134},[1568],{"type":49,"value":474},{"type":44,"tag":115,"props":1570,"children":1571},{"style":134},[1572],{"type":49,"value":167},{"type":44,"tag":115,"props":1574,"children":1575},{"style":170},[1576],{"type":49,"value":1577}," \u002F\u002F Too generic\n",{"type":44,"tag":115,"props":1579,"children":1580},{"class":117,"line":623},[1581,1585,1589,1594,1598],{"type":44,"tag":115,"props":1582,"children":1583},{"style":128},[1584],{"type":49,"value":1362},{"type":44,"tag":115,"props":1586,"children":1587},{"style":134},[1588],{"type":49,"value":157},{"type":44,"tag":115,"props":1590,"children":1591},{"style":423},[1592],{"type":49,"value":1593}," customerId",{"type":44,"tag":115,"props":1595,"children":1596},{"style":134},[1597],{"type":49,"value":167},{"type":44,"tag":115,"props":1599,"children":1600},{"style":170},[1601],{"type":49,"value":1602}," \u002F\u002F Same customer, different events\n",{"type":44,"tag":52,"props":1604,"children":1605},{},[1606,1611],{"type":44,"tag":65,"props":1607,"children":1608},{},[1609],{"type":49,"value":1610},"Deduplication window:",{"type":49,"value":1612}," 24 hours from first event reception",{"type":44,"tag":52,"props":1614,"children":1615},{},[1616,1618,1623],{"type":49,"value":1617},"See ",{"type":44,"tag":65,"props":1619,"children":1620},{},[1621],{"type":49,"value":1622},"inngest-durable-functions",{"type":49,"value":1624}," for idempotency configuration.",{"type":44,"tag":84,"props":1626,"children":1628},{"id":1627},"the-ts-parameter-for-delayed-delivery",[1629,1631,1637],{"type":49,"value":1630},"The ",{"type":44,"tag":111,"props":1632,"children":1634},{"className":1633},[],[1635],{"type":49,"value":1636},"ts",{"type":49,"value":1638}," Parameter for Delayed Delivery",{"type":44,"tag":52,"props":1640,"children":1641},{},[1642,1647],{"type":44,"tag":65,"props":1643,"children":1644},{},[1645],{"type":49,"value":1646},"When to use:",{"type":49,"value":1648}," Schedule events for future processing or maintain event ordering.",{"type":44,"tag":96,"props":1650,"children":1652},{"id":1651},"future-scheduling",[1653],{"type":49,"value":1654},"Future Scheduling",{"type":44,"tag":103,"props":1656,"children":1658},{"className":105,"code":1657,"language":107,"meta":108,"style":108},"const oneHourFromNow = Date.now() + 60 * 60 * 1000;\n\nawait inngest.send({\n  name: \"trial\u002Freminder.send\",\n  ts: oneHourFromNow, \u002F\u002F Deliver in 1 hour\n  data: {\n    userId: \"user_123\",\n    trialExpiresAt: \"2024-02-15T12:00:00Z\"\n  }\n});\n",[1659],{"type":44,"tag":111,"props":1660,"children":1661},{"__ignoreMap":108},[1662,1730,1737,1764,1792,1817,1832,1860,1885,1892],{"type":44,"tag":115,"props":1663,"children":1664},{"class":117,"line":118},[1665,1670,1675,1680,1685,1689,1694,1699,1704,1709,1714,1718,1722,1726],{"type":44,"tag":115,"props":1666,"children":1667},{"style":122},[1668],{"type":49,"value":1669},"const",{"type":44,"tag":115,"props":1671,"children":1672},{"style":423},[1673],{"type":49,"value":1674}," oneHourFromNow ",{"type":44,"tag":115,"props":1676,"children":1677},{"style":134},[1678],{"type":49,"value":1679},"=",{"type":44,"tag":115,"props":1681,"children":1682},{"style":423},[1683],{"type":49,"value":1684}," Date",{"type":44,"tag":115,"props":1686,"children":1687},{"style":134},[1688],{"type":49,"value":431},{"type":44,"tag":115,"props":1690,"children":1691},{"style":434},[1692],{"type":49,"value":1693},"now",{"type":44,"tag":115,"props":1695,"children":1696},{"style":423},[1697],{"type":49,"value":1698},"() ",{"type":44,"tag":115,"props":1700,"children":1701},{"style":134},[1702],{"type":49,"value":1703},"+",{"type":44,"tag":115,"props":1705,"children":1706},{"style":596},[1707],{"type":49,"value":1708}," 60",{"type":44,"tag":115,"props":1710,"children":1711},{"style":134},[1712],{"type":49,"value":1713}," *",{"type":44,"tag":115,"props":1715,"children":1716},{"style":596},[1717],{"type":49,"value":1708},{"type":44,"tag":115,"props":1719,"children":1720},{"style":134},[1721],{"type":49,"value":1713},{"type":44,"tag":115,"props":1723,"children":1724},{"style":596},[1725],{"type":49,"value":599},{"type":44,"tag":115,"props":1727,"children":1728},{"style":134},[1729],{"type":49,"value":714},{"type":44,"tag":115,"props":1731,"children":1732},{"class":117,"line":145},[1733],{"type":44,"tag":115,"props":1734,"children":1735},{"emptyLinePlaceholder":842},[1736],{"type":49,"value":845},{"type":44,"tag":115,"props":1738,"children":1739},{"class":117,"line":176},[1740,1744,1748,1752,1756,1760],{"type":44,"tag":115,"props":1741,"children":1742},{"style":417},[1743],{"type":49,"value":420},{"type":44,"tag":115,"props":1745,"children":1746},{"style":423},[1747],{"type":49,"value":426},{"type":44,"tag":115,"props":1749,"children":1750},{"style":134},[1751],{"type":49,"value":431},{"type":44,"tag":115,"props":1753,"children":1754},{"style":434},[1755],{"type":49,"value":437},{"type":44,"tag":115,"props":1757,"children":1758},{"style":423},[1759],{"type":49,"value":442},{"type":44,"tag":115,"props":1761,"children":1762},{"style":134},[1763],{"type":49,"value":447},{"type":44,"tag":115,"props":1765,"children":1766},{"class":117,"line":203},[1767,1771,1775,1779,1784,1788],{"type":44,"tag":115,"props":1768,"children":1769},{"style":149},[1770],{"type":49,"value":152},{"type":44,"tag":115,"props":1772,"children":1773},{"style":134},[1774],{"type":49,"value":157},{"type":44,"tag":115,"props":1776,"children":1777},{"style":134},[1778],{"type":49,"value":463},{"type":44,"tag":115,"props":1780,"children":1781},{"style":466},[1782],{"type":49,"value":1783},"trial\u002Freminder.send",{"type":44,"tag":115,"props":1785,"children":1786},{"style":134},[1787],{"type":49,"value":474},{"type":44,"tag":115,"props":1789,"children":1790},{"style":134},[1791],{"type":49,"value":479},{"type":44,"tag":115,"props":1793,"children":1794},{"class":117,"line":24},[1795,1799,1803,1808,1812],{"type":44,"tag":115,"props":1796,"children":1797},{"style":149},[1798],{"type":49,"value":346},{"type":44,"tag":115,"props":1800,"children":1801},{"style":134},[1802],{"type":49,"value":157},{"type":44,"tag":115,"props":1804,"children":1805},{"style":423},[1806],{"type":49,"value":1807}," oneHourFromNow",{"type":44,"tag":115,"props":1809,"children":1810},{"style":134},[1811],{"type":49,"value":297},{"type":44,"tag":115,"props":1813,"children":1814},{"style":170},[1815],{"type":49,"value":1816}," \u002F\u002F Deliver in 1 hour\n",{"type":44,"tag":115,"props":1818,"children":1819},{"class":117,"line":367},[1820,1824,1828],{"type":44,"tag":115,"props":1821,"children":1822},{"style":149},[1823],{"type":49,"value":182},{"type":44,"tag":115,"props":1825,"children":1826},{"style":134},[1827],{"type":49,"value":157},{"type":44,"tag":115,"props":1829,"children":1830},{"style":134},[1831],{"type":49,"value":142},{"type":44,"tag":115,"props":1833,"children":1834},{"class":117,"line":393},[1835,1839,1843,1847,1852,1856],{"type":44,"tag":115,"props":1836,"children":1837},{"style":149},[1838],{"type":49,"value":560},{"type":44,"tag":115,"props":1840,"children":1841},{"style":134},[1842],{"type":49,"value":157},{"type":44,"tag":115,"props":1844,"children":1845},{"style":134},[1846],{"type":49,"value":463},{"type":44,"tag":115,"props":1848,"children":1849},{"style":466},[1850],{"type":49,"value":1851},"user_123",{"type":44,"tag":115,"props":1853,"children":1854},{"style":134},[1855],{"type":49,"value":474},{"type":44,"tag":115,"props":1857,"children":1858},{"style":134},[1859],{"type":49,"value":479},{"type":44,"tag":115,"props":1861,"children":1862},{"class":117,"line":606},[1863,1868,1872,1876,1881],{"type":44,"tag":115,"props":1864,"children":1865},{"style":149},[1866],{"type":49,"value":1867},"    trialExpiresAt",{"type":44,"tag":115,"props":1869,"children":1870},{"style":134},[1871],{"type":49,"value":157},{"type":44,"tag":115,"props":1873,"children":1874},{"style":134},[1875],{"type":49,"value":463},{"type":44,"tag":115,"props":1877,"children":1878},{"style":466},[1879],{"type":49,"value":1880},"2024-02-15T12:00:00Z",{"type":44,"tag":115,"props":1882,"children":1883},{"style":134},[1884],{"type":49,"value":677},{"type":44,"tag":115,"props":1886,"children":1887},{"class":117,"line":623},[1888],{"type":44,"tag":115,"props":1889,"children":1890},{"style":134},[1891],{"type":49,"value":695},{"type":44,"tag":115,"props":1893,"children":1894},{"class":117,"line":653},[1895,1899,1903],{"type":44,"tag":115,"props":1896,"children":1897},{"style":134},[1898],{"type":49,"value":704},{"type":44,"tag":115,"props":1900,"children":1901},{"style":423},[1902],{"type":49,"value":709},{"type":44,"tag":115,"props":1904,"children":1905},{"style":134},[1906],{"type":49,"value":714},{"type":44,"tag":96,"props":1908,"children":1910},{"id":1909},"maintaining-event-order",[1911],{"type":49,"value":1912},"Maintaining Event Order",{"type":44,"tag":103,"props":1914,"children":1916},{"className":105,"code":1915,"language":107,"meta":108,"style":108},"\u002F\u002F Events with timestamps are processed in chronological order\nconst events = [\n  {\n    name: \"user\u002Faction.performed\",\n    ts: 1640995200000, \u002F\u002F Earlier\n    data: { action: \"login\" }\n  },\n  {\n    name: \"user\u002Faction.performed\",\n    ts: 1640995260000, \u002F\u002F Later\n    data: { action: \"purchase\" }\n  }\n];\n\nawait inngest.send(events);\n",[1917],{"type":44,"tag":111,"props":1918,"children":1919},{"__ignoreMap":108},[1920,1928,1949,1957,1986,2012,2056,2064,2071,2098,2123,2163,2170,2182,2189],{"type":44,"tag":115,"props":1921,"children":1922},{"class":117,"line":118},[1923],{"type":44,"tag":115,"props":1924,"children":1925},{"style":170},[1926],{"type":49,"value":1927},"\u002F\u002F Events with timestamps are processed in chronological order\n",{"type":44,"tag":115,"props":1929,"children":1930},{"class":117,"line":145},[1931,1935,1940,1944],{"type":44,"tag":115,"props":1932,"children":1933},{"style":122},[1934],{"type":49,"value":1669},{"type":44,"tag":115,"props":1936,"children":1937},{"style":423},[1938],{"type":49,"value":1939}," events ",{"type":44,"tag":115,"props":1941,"children":1942},{"style":134},[1943],{"type":49,"value":1679},{"type":44,"tag":115,"props":1945,"children":1946},{"style":423},[1947],{"type":49,"value":1948}," [\n",{"type":44,"tag":115,"props":1950,"children":1951},{"class":117,"line":176},[1952],{"type":44,"tag":115,"props":1953,"children":1954},{"style":134},[1955],{"type":49,"value":1956},"  {\n",{"type":44,"tag":115,"props":1958,"children":1959},{"class":117,"line":203},[1960,1965,1969,1973,1978,1982],{"type":44,"tag":115,"props":1961,"children":1962},{"style":149},[1963],{"type":49,"value":1964},"    name",{"type":44,"tag":115,"props":1966,"children":1967},{"style":134},[1968],{"type":49,"value":157},{"type":44,"tag":115,"props":1970,"children":1971},{"style":134},[1972],{"type":49,"value":463},{"type":44,"tag":115,"props":1974,"children":1975},{"style":466},[1976],{"type":49,"value":1977},"user\u002Faction.performed",{"type":44,"tag":115,"props":1979,"children":1980},{"style":134},[1981],{"type":49,"value":474},{"type":44,"tag":115,"props":1983,"children":1984},{"style":134},[1985],{"type":49,"value":479},{"type":44,"tag":115,"props":1987,"children":1988},{"class":117,"line":24},[1989,1994,1998,2003,2007],{"type":44,"tag":115,"props":1990,"children":1991},{"style":149},[1992],{"type":49,"value":1993},"    ts",{"type":44,"tag":115,"props":1995,"children":1996},{"style":134},[1997],{"type":49,"value":157},{"type":44,"tag":115,"props":1999,"children":2000},{"style":596},[2001],{"type":49,"value":2002}," 1640995200000",{"type":44,"tag":115,"props":2004,"children":2005},{"style":134},[2006],{"type":49,"value":297},{"type":44,"tag":115,"props":2008,"children":2009},{"style":170},[2010],{"type":49,"value":2011}," \u002F\u002F Earlier\n",{"type":44,"tag":115,"props":2013,"children":2014},{"class":117,"line":367},[2015,2020,2024,2029,2034,2038,2042,2047,2051],{"type":44,"tag":115,"props":2016,"children":2017},{"style":149},[2018],{"type":49,"value":2019},"    data",{"type":44,"tag":115,"props":2021,"children":2022},{"style":134},[2023],{"type":49,"value":157},{"type":44,"tag":115,"props":2025,"children":2026},{"style":134},[2027],{"type":49,"value":2028}," {",{"type":44,"tag":115,"props":2030,"children":2031},{"style":149},[2032],{"type":49,"value":2033}," action",{"type":44,"tag":115,"props":2035,"children":2036},{"style":134},[2037],{"type":49,"value":157},{"type":44,"tag":115,"props":2039,"children":2040},{"style":134},[2041],{"type":49,"value":463},{"type":44,"tag":115,"props":2043,"children":2044},{"style":466},[2045],{"type":49,"value":2046},"login",{"type":44,"tag":115,"props":2048,"children":2049},{"style":134},[2050],{"type":49,"value":474},{"type":44,"tag":115,"props":2052,"children":2053},{"style":134},[2054],{"type":49,"value":2055}," }\n",{"type":44,"tag":115,"props":2057,"children":2058},{"class":117,"line":393},[2059],{"type":44,"tag":115,"props":2060,"children":2061},{"style":134},[2062],{"type":49,"value":2063},"  },\n",{"type":44,"tag":115,"props":2065,"children":2066},{"class":117,"line":606},[2067],{"type":44,"tag":115,"props":2068,"children":2069},{"style":134},[2070],{"type":49,"value":1956},{"type":44,"tag":115,"props":2072,"children":2073},{"class":117,"line":623},[2074,2078,2082,2086,2090,2094],{"type":44,"tag":115,"props":2075,"children":2076},{"style":149},[2077],{"type":49,"value":1964},{"type":44,"tag":115,"props":2079,"children":2080},{"style":134},[2081],{"type":49,"value":157},{"type":44,"tag":115,"props":2083,"children":2084},{"style":134},[2085],{"type":49,"value":463},{"type":44,"tag":115,"props":2087,"children":2088},{"style":466},[2089],{"type":49,"value":1977},{"type":44,"tag":115,"props":2091,"children":2092},{"style":134},[2093],{"type":49,"value":474},{"type":44,"tag":115,"props":2095,"children":2096},{"style":134},[2097],{"type":49,"value":479},{"type":44,"tag":115,"props":2099,"children":2100},{"class":117,"line":653},[2101,2105,2109,2114,2118],{"type":44,"tag":115,"props":2102,"children":2103},{"style":149},[2104],{"type":49,"value":1993},{"type":44,"tag":115,"props":2106,"children":2107},{"style":134},[2108],{"type":49,"value":157},{"type":44,"tag":115,"props":2110,"children":2111},{"style":596},[2112],{"type":49,"value":2113}," 1640995260000",{"type":44,"tag":115,"props":2115,"children":2116},{"style":134},[2117],{"type":49,"value":297},{"type":44,"tag":115,"props":2119,"children":2120},{"style":170},[2121],{"type":49,"value":2122}," \u002F\u002F Later\n",{"type":44,"tag":115,"props":2124,"children":2125},{"class":117,"line":680},[2126,2130,2134,2138,2142,2146,2150,2155,2159],{"type":44,"tag":115,"props":2127,"children":2128},{"style":149},[2129],{"type":49,"value":2019},{"type":44,"tag":115,"props":2131,"children":2132},{"style":134},[2133],{"type":49,"value":157},{"type":44,"tag":115,"props":2135,"children":2136},{"style":134},[2137],{"type":49,"value":2028},{"type":44,"tag":115,"props":2139,"children":2140},{"style":149},[2141],{"type":49,"value":2033},{"type":44,"tag":115,"props":2143,"children":2144},{"style":134},[2145],{"type":49,"value":157},{"type":44,"tag":115,"props":2147,"children":2148},{"style":134},[2149],{"type":49,"value":463},{"type":44,"tag":115,"props":2151,"children":2152},{"style":466},[2153],{"type":49,"value":2154},"purchase",{"type":44,"tag":115,"props":2156,"children":2157},{"style":134},[2158],{"type":49,"value":474},{"type":44,"tag":115,"props":2160,"children":2161},{"style":134},[2162],{"type":49,"value":2055},{"type":44,"tag":115,"props":2164,"children":2165},{"class":117,"line":689},[2166],{"type":44,"tag":115,"props":2167,"children":2168},{"style":134},[2169],{"type":49,"value":695},{"type":44,"tag":115,"props":2171,"children":2172},{"class":117,"line":698},[2173,2178],{"type":44,"tag":115,"props":2174,"children":2175},{"style":423},[2176],{"type":49,"value":2177},"]",{"type":44,"tag":115,"props":2179,"children":2180},{"style":134},[2181],{"type":49,"value":714},{"type":44,"tag":115,"props":2183,"children":2184},{"class":117,"line":956},[2185],{"type":44,"tag":115,"props":2186,"children":2187},{"emptyLinePlaceholder":842},[2188],{"type":49,"value":845},{"type":44,"tag":115,"props":2190,"children":2191},{"class":117,"line":982},[2192,2196,2200,2204,2208,2213],{"type":44,"tag":115,"props":2193,"children":2194},{"style":417},[2195],{"type":49,"value":420},{"type":44,"tag":115,"props":2197,"children":2198},{"style":423},[2199],{"type":49,"value":426},{"type":44,"tag":115,"props":2201,"children":2202},{"style":134},[2203],{"type":49,"value":431},{"type":44,"tag":115,"props":2205,"children":2206},{"style":434},[2207],{"type":49,"value":437},{"type":44,"tag":115,"props":2209,"children":2210},{"style":423},[2211],{"type":49,"value":2212},"(events)",{"type":44,"tag":115,"props":2214,"children":2215},{"style":134},[2216],{"type":49,"value":714},{"type":44,"tag":84,"props":2218,"children":2220},{"id":2219},"fan-out-patterns",[2221],{"type":49,"value":2222},"Fan-Out Patterns",{"type":44,"tag":52,"props":2224,"children":2225},{},[2226,2231],{"type":44,"tag":65,"props":2227,"children":2228},{},[2229],{"type":49,"value":2230},"Use case:",{"type":49,"value":2232}," One event triggers multiple independent functions for reliability and parallel processing.",{"type":44,"tag":96,"props":2234,"children":2236},{"id":2235},"basic-fan-out-implementation",[2237],{"type":49,"value":2238},"Basic Fan-Out Implementation",{"type":44,"tag":103,"props":2240,"children":2242},{"className":105,"code":2241,"language":107,"meta":108,"style":108},"\u002F\u002F Send single event\nawait inngest.send({\n  name: \"user\u002Fsignup.completed\",\n  data: {\n    userId: \"user_123\",\n    email: \"user@example.com\",\n    plan: \"pro\"\n  }\n});\n\n\u002F\u002F Multiple functions respond to same event\nconst sendWelcomeEmail = inngest.createFunction(\n  { id: \"send-welcome-email\", triggers: [{ event: \"user\u002Fsignup.completed\" }] },\n  async ({ event, step }) => {\n    await step.run(\"send-email\", async () => {\n      return sendEmail({\n        to: event.data.email,\n        template: \"welcome\"\n      });\n    });\n  }\n);\n\nconst createTrialSubscription = inngest.createFunction(\n  { id: \"create-trial\", triggers: [{ event: \"user\u002Fsignup.completed\" }] },\n  async ({ event, step }) => {\n    await step.run(\"create-subscription\", async () => {\n      return stripe.subscriptions.create({\n        customer: event.data.stripeCustomerId,\n        trial_period_days: 14\n      });\n    });\n  }\n);\n\nconst addToCrm = inngest.createFunction(\n  { id: \"add-to-crm\", triggers: [{ event: \"user\u002Fsignup.completed\" }] },\n  async ({ event, step }) => {\n    await step.run(\"crm-sync\", async () => {\n      return crm.contacts.create({\n        email: event.data.email,\n        plan: event.data.plan\n      });\n    });\n  }\n);\n",[2243],{"type":44,"tag":111,"props":2244,"children":2245},{"__ignoreMap":108},[2246,2254,2281,2309,2324,2351,2380,2405,2412,2427,2434,2442,2476,2564,2605,2665,2687,2726,2752,2769,2786,2794,2806,2814,2847,2928,2963,3020,3059,3097,3115,3131,3147,3155,3167,3175,3208,3289,3325,3382,3420,3457,3491,3507,3523,3531],{"type":44,"tag":115,"props":2247,"children":2248},{"class":117,"line":118},[2249],{"type":44,"tag":115,"props":2250,"children":2251},{"style":170},[2252],{"type":49,"value":2253},"\u002F\u002F Send single event\n",{"type":44,"tag":115,"props":2255,"children":2256},{"class":117,"line":145},[2257,2261,2265,2269,2273,2277],{"type":44,"tag":115,"props":2258,"children":2259},{"style":417},[2260],{"type":49,"value":420},{"type":44,"tag":115,"props":2262,"children":2263},{"style":423},[2264],{"type":49,"value":426},{"type":44,"tag":115,"props":2266,"children":2267},{"style":134},[2268],{"type":49,"value":431},{"type":44,"tag":115,"props":2270,"children":2271},{"style":434},[2272],{"type":49,"value":437},{"type":44,"tag":115,"props":2274,"children":2275},{"style":423},[2276],{"type":49,"value":442},{"type":44,"tag":115,"props":2278,"children":2279},{"style":134},[2280],{"type":49,"value":447},{"type":44,"tag":115,"props":2282,"children":2283},{"class":117,"line":176},[2284,2288,2292,2296,2301,2305],{"type":44,"tag":115,"props":2285,"children":2286},{"style":149},[2287],{"type":49,"value":152},{"type":44,"tag":115,"props":2289,"children":2290},{"style":134},[2291],{"type":49,"value":157},{"type":44,"tag":115,"props":2293,"children":2294},{"style":134},[2295],{"type":49,"value":463},{"type":44,"tag":115,"props":2297,"children":2298},{"style":466},[2299],{"type":49,"value":2300},"user\u002Fsignup.completed",{"type":44,"tag":115,"props":2302,"children":2303},{"style":134},[2304],{"type":49,"value":474},{"type":44,"tag":115,"props":2306,"children":2307},{"style":134},[2308],{"type":49,"value":479},{"type":44,"tag":115,"props":2310,"children":2311},{"class":117,"line":203},[2312,2316,2320],{"type":44,"tag":115,"props":2313,"children":2314},{"style":149},[2315],{"type":49,"value":182},{"type":44,"tag":115,"props":2317,"children":2318},{"style":134},[2319],{"type":49,"value":157},{"type":44,"tag":115,"props":2321,"children":2322},{"style":134},[2323],{"type":49,"value":142},{"type":44,"tag":115,"props":2325,"children":2326},{"class":117,"line":24},[2327,2331,2335,2339,2343,2347],{"type":44,"tag":115,"props":2328,"children":2329},{"style":149},[2330],{"type":49,"value":560},{"type":44,"tag":115,"props":2332,"children":2333},{"style":134},[2334],{"type":49,"value":157},{"type":44,"tag":115,"props":2336,"children":2337},{"style":134},[2338],{"type":49,"value":463},{"type":44,"tag":115,"props":2340,"children":2341},{"style":466},[2342],{"type":49,"value":1851},{"type":44,"tag":115,"props":2344,"children":2345},{"style":134},[2346],{"type":49,"value":474},{"type":44,"tag":115,"props":2348,"children":2349},{"style":134},[2350],{"type":49,"value":479},{"type":44,"tag":115,"props":2352,"children":2353},{"class":117,"line":367},[2354,2359,2363,2367,2372,2376],{"type":44,"tag":115,"props":2355,"children":2356},{"style":149},[2357],{"type":49,"value":2358},"    email",{"type":44,"tag":115,"props":2360,"children":2361},{"style":134},[2362],{"type":49,"value":157},{"type":44,"tag":115,"props":2364,"children":2365},{"style":134},[2366],{"type":49,"value":463},{"type":44,"tag":115,"props":2368,"children":2369},{"style":466},[2370],{"type":49,"value":2371},"user@example.com",{"type":44,"tag":115,"props":2373,"children":2374},{"style":134},[2375],{"type":49,"value":474},{"type":44,"tag":115,"props":2377,"children":2378},{"style":134},[2379],{"type":49,"value":479},{"type":44,"tag":115,"props":2381,"children":2382},{"class":117,"line":393},[2383,2388,2392,2396,2401],{"type":44,"tag":115,"props":2384,"children":2385},{"style":149},[2386],{"type":49,"value":2387},"    plan",{"type":44,"tag":115,"props":2389,"children":2390},{"style":134},[2391],{"type":49,"value":157},{"type":44,"tag":115,"props":2393,"children":2394},{"style":134},[2395],{"type":49,"value":463},{"type":44,"tag":115,"props":2397,"children":2398},{"style":466},[2399],{"type":49,"value":2400},"pro",{"type":44,"tag":115,"props":2402,"children":2403},{"style":134},[2404],{"type":49,"value":677},{"type":44,"tag":115,"props":2406,"children":2407},{"class":117,"line":606},[2408],{"type":44,"tag":115,"props":2409,"children":2410},{"style":134},[2411],{"type":49,"value":695},{"type":44,"tag":115,"props":2413,"children":2414},{"class":117,"line":623},[2415,2419,2423],{"type":44,"tag":115,"props":2416,"children":2417},{"style":134},[2418],{"type":49,"value":704},{"type":44,"tag":115,"props":2420,"children":2421},{"style":423},[2422],{"type":49,"value":709},{"type":44,"tag":115,"props":2424,"children":2425},{"style":134},[2426],{"type":49,"value":714},{"type":44,"tag":115,"props":2428,"children":2429},{"class":117,"line":653},[2430],{"type":44,"tag":115,"props":2431,"children":2432},{"emptyLinePlaceholder":842},[2433],{"type":49,"value":845},{"type":44,"tag":115,"props":2435,"children":2436},{"class":117,"line":680},[2437],{"type":44,"tag":115,"props":2438,"children":2439},{"style":170},[2440],{"type":49,"value":2441},"\u002F\u002F Multiple functions respond to same event\n",{"type":44,"tag":115,"props":2443,"children":2444},{"class":117,"line":689},[2445,2449,2454,2458,2462,2466,2471],{"type":44,"tag":115,"props":2446,"children":2447},{"style":122},[2448],{"type":49,"value":1669},{"type":44,"tag":115,"props":2450,"children":2451},{"style":423},[2452],{"type":49,"value":2453}," sendWelcomeEmail ",{"type":44,"tag":115,"props":2455,"children":2456},{"style":134},[2457],{"type":49,"value":1679},{"type":44,"tag":115,"props":2459,"children":2460},{"style":423},[2461],{"type":49,"value":426},{"type":44,"tag":115,"props":2463,"children":2464},{"style":134},[2465],{"type":49,"value":431},{"type":44,"tag":115,"props":2467,"children":2468},{"style":434},[2469],{"type":49,"value":2470},"createFunction",{"type":44,"tag":115,"props":2472,"children":2473},{"style":423},[2474],{"type":49,"value":2475},"(\n",{"type":44,"tag":115,"props":2477,"children":2478},{"class":117,"line":698},[2479,2484,2489,2493,2497,2502,2506,2510,2515,2519,2523,2528,2533,2537,2541,2545,2549,2554,2559],{"type":44,"tag":115,"props":2480,"children":2481},{"style":134},[2482],{"type":49,"value":2483},"  {",{"type":44,"tag":115,"props":2485,"children":2486},{"style":149},[2487],{"type":49,"value":2488}," id",{"type":44,"tag":115,"props":2490,"children":2491},{"style":134},[2492],{"type":49,"value":157},{"type":44,"tag":115,"props":2494,"children":2495},{"style":134},[2496],{"type":49,"value":463},{"type":44,"tag":115,"props":2498,"children":2499},{"style":466},[2500],{"type":49,"value":2501},"send-welcome-email",{"type":44,"tag":115,"props":2503,"children":2504},{"style":134},[2505],{"type":49,"value":474},{"type":44,"tag":115,"props":2507,"children":2508},{"style":134},[2509],{"type":49,"value":297},{"type":44,"tag":115,"props":2511,"children":2512},{"style":149},[2513],{"type":49,"value":2514}," triggers",{"type":44,"tag":115,"props":2516,"children":2517},{"style":134},[2518],{"type":49,"value":157},{"type":44,"tag":115,"props":2520,"children":2521},{"style":423},[2522],{"type":49,"value":1276},{"type":44,"tag":115,"props":2524,"children":2525},{"style":134},[2526],{"type":49,"value":2527},"{",{"type":44,"tag":115,"props":2529,"children":2530},{"style":149},[2531],{"type":49,"value":2532}," event",{"type":44,"tag":115,"props":2534,"children":2535},{"style":134},[2536],{"type":49,"value":157},{"type":44,"tag":115,"props":2538,"children":2539},{"style":134},[2540],{"type":49,"value":463},{"type":44,"tag":115,"props":2542,"children":2543},{"style":466},[2544],{"type":49,"value":2300},{"type":44,"tag":115,"props":2546,"children":2547},{"style":134},[2548],{"type":49,"value":474},{"type":44,"tag":115,"props":2550,"children":2551},{"style":134},[2552],{"type":49,"value":2553}," }",{"type":44,"tag":115,"props":2555,"children":2556},{"style":423},[2557],{"type":49,"value":2558},"] ",{"type":44,"tag":115,"props":2560,"children":2561},{"style":134},[2562],{"type":49,"value":2563},"},\n",{"type":44,"tag":115,"props":2565,"children":2566},{"class":117,"line":956},[2567,2572,2577,2582,2586,2591,2596,2601],{"type":44,"tag":115,"props":2568,"children":2569},{"style":122},[2570],{"type":49,"value":2571},"  async",{"type":44,"tag":115,"props":2573,"children":2574},{"style":134},[2575],{"type":49,"value":2576}," ({",{"type":44,"tag":115,"props":2578,"children":2580},{"style":2579},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[2581],{"type":49,"value":2532},{"type":44,"tag":115,"props":2583,"children":2584},{"style":134},[2585],{"type":49,"value":297},{"type":44,"tag":115,"props":2587,"children":2588},{"style":2579},[2589],{"type":49,"value":2590}," step",{"type":44,"tag":115,"props":2592,"children":2593},{"style":134},[2594],{"type":49,"value":2595}," })",{"type":44,"tag":115,"props":2597,"children":2598},{"style":122},[2599],{"type":49,"value":2600}," =>",{"type":44,"tag":115,"props":2602,"children":2603},{"style":134},[2604],{"type":49,"value":142},{"type":44,"tag":115,"props":2606,"children":2607},{"class":117,"line":982},[2608,2613,2617,2621,2626,2630,2634,2639,2643,2647,2652,2657,2661],{"type":44,"tag":115,"props":2609,"children":2610},{"style":417},[2611],{"type":49,"value":2612},"    await",{"type":44,"tag":115,"props":2614,"children":2615},{"style":423},[2616],{"type":49,"value":2590},{"type":44,"tag":115,"props":2618,"children":2619},{"style":134},[2620],{"type":49,"value":431},{"type":44,"tag":115,"props":2622,"children":2623},{"style":434},[2624],{"type":49,"value":2625},"run",{"type":44,"tag":115,"props":2627,"children":2628},{"style":149},[2629],{"type":49,"value":442},{"type":44,"tag":115,"props":2631,"children":2632},{"style":134},[2633],{"type":49,"value":474},{"type":44,"tag":115,"props":2635,"children":2636},{"style":466},[2637],{"type":49,"value":2638},"send-email",{"type":44,"tag":115,"props":2640,"children":2641},{"style":134},[2642],{"type":49,"value":474},{"type":44,"tag":115,"props":2644,"children":2645},{"style":134},[2646],{"type":49,"value":297},{"type":44,"tag":115,"props":2648,"children":2649},{"style":122},[2650],{"type":49,"value":2651}," async",{"type":44,"tag":115,"props":2653,"children":2654},{"style":134},[2655],{"type":49,"value":2656}," ()",{"type":44,"tag":115,"props":2658,"children":2659},{"style":122},[2660],{"type":49,"value":2600},{"type":44,"tag":115,"props":2662,"children":2663},{"style":134},[2664],{"type":49,"value":142},{"type":44,"tag":115,"props":2666,"children":2668},{"class":117,"line":2667},16,[2669,2674,2679,2683],{"type":44,"tag":115,"props":2670,"children":2671},{"style":417},[2672],{"type":49,"value":2673},"      return",{"type":44,"tag":115,"props":2675,"children":2676},{"style":434},[2677],{"type":49,"value":2678}," sendEmail",{"type":44,"tag":115,"props":2680,"children":2681},{"style":149},[2682],{"type":49,"value":442},{"type":44,"tag":115,"props":2684,"children":2685},{"style":134},[2686],{"type":49,"value":447},{"type":44,"tag":115,"props":2688,"children":2690},{"class":117,"line":2689},17,[2691,2696,2700,2704,2708,2713,2717,2722],{"type":44,"tag":115,"props":2692,"children":2693},{"style":149},[2694],{"type":49,"value":2695},"        to",{"type":44,"tag":115,"props":2697,"children":2698},{"style":134},[2699],{"type":49,"value":157},{"type":44,"tag":115,"props":2701,"children":2702},{"style":423},[2703],{"type":49,"value":2532},{"type":44,"tag":115,"props":2705,"children":2706},{"style":134},[2707],{"type":49,"value":431},{"type":44,"tag":115,"props":2709,"children":2710},{"style":423},[2711],{"type":49,"value":2712},"data",{"type":44,"tag":115,"props":2714,"children":2715},{"style":134},[2716],{"type":49,"value":431},{"type":44,"tag":115,"props":2718,"children":2719},{"style":423},[2720],{"type":49,"value":2721},"email",{"type":44,"tag":115,"props":2723,"children":2724},{"style":134},[2725],{"type":49,"value":479},{"type":44,"tag":115,"props":2727,"children":2729},{"class":117,"line":2728},18,[2730,2735,2739,2743,2748],{"type":44,"tag":115,"props":2731,"children":2732},{"style":149},[2733],{"type":49,"value":2734},"        template",{"type":44,"tag":115,"props":2736,"children":2737},{"style":134},[2738],{"type":49,"value":157},{"type":44,"tag":115,"props":2740,"children":2741},{"style":134},[2742],{"type":49,"value":463},{"type":44,"tag":115,"props":2744,"children":2745},{"style":466},[2746],{"type":49,"value":2747},"welcome",{"type":44,"tag":115,"props":2749,"children":2750},{"style":134},[2751],{"type":49,"value":677},{"type":44,"tag":115,"props":2753,"children":2755},{"class":117,"line":2754},19,[2756,2761,2765],{"type":44,"tag":115,"props":2757,"children":2758},{"style":134},[2759],{"type":49,"value":2760},"      }",{"type":44,"tag":115,"props":2762,"children":2763},{"style":149},[2764],{"type":49,"value":709},{"type":44,"tag":115,"props":2766,"children":2767},{"style":134},[2768],{"type":49,"value":714},{"type":44,"tag":115,"props":2770,"children":2772},{"class":117,"line":2771},20,[2773,2778,2782],{"type":44,"tag":115,"props":2774,"children":2775},{"style":134},[2776],{"type":49,"value":2777},"    }",{"type":44,"tag":115,"props":2779,"children":2780},{"style":149},[2781],{"type":49,"value":709},{"type":44,"tag":115,"props":2783,"children":2784},{"style":134},[2785],{"type":49,"value":714},{"type":44,"tag":115,"props":2787,"children":2789},{"class":117,"line":2788},21,[2790],{"type":44,"tag":115,"props":2791,"children":2792},{"style":134},[2793],{"type":49,"value":695},{"type":44,"tag":115,"props":2795,"children":2797},{"class":117,"line":2796},22,[2798,2802],{"type":44,"tag":115,"props":2799,"children":2800},{"style":423},[2801],{"type":49,"value":709},{"type":44,"tag":115,"props":2803,"children":2804},{"style":134},[2805],{"type":49,"value":714},{"type":44,"tag":115,"props":2807,"children":2809},{"class":117,"line":2808},23,[2810],{"type":44,"tag":115,"props":2811,"children":2812},{"emptyLinePlaceholder":842},[2813],{"type":49,"value":845},{"type":44,"tag":115,"props":2815,"children":2817},{"class":117,"line":2816},24,[2818,2822,2827,2831,2835,2839,2843],{"type":44,"tag":115,"props":2819,"children":2820},{"style":122},[2821],{"type":49,"value":1669},{"type":44,"tag":115,"props":2823,"children":2824},{"style":423},[2825],{"type":49,"value":2826}," createTrialSubscription ",{"type":44,"tag":115,"props":2828,"children":2829},{"style":134},[2830],{"type":49,"value":1679},{"type":44,"tag":115,"props":2832,"children":2833},{"style":423},[2834],{"type":49,"value":426},{"type":44,"tag":115,"props":2836,"children":2837},{"style":134},[2838],{"type":49,"value":431},{"type":44,"tag":115,"props":2840,"children":2841},{"style":434},[2842],{"type":49,"value":2470},{"type":44,"tag":115,"props":2844,"children":2845},{"style":423},[2846],{"type":49,"value":2475},{"type":44,"tag":115,"props":2848,"children":2850},{"class":117,"line":2849},25,[2851,2855,2859,2863,2867,2872,2876,2880,2884,2888,2892,2896,2900,2904,2908,2912,2916,2920,2924],{"type":44,"tag":115,"props":2852,"children":2853},{"style":134},[2854],{"type":49,"value":2483},{"type":44,"tag":115,"props":2856,"children":2857},{"style":149},[2858],{"type":49,"value":2488},{"type":44,"tag":115,"props":2860,"children":2861},{"style":134},[2862],{"type":49,"value":157},{"type":44,"tag":115,"props":2864,"children":2865},{"style":134},[2866],{"type":49,"value":463},{"type":44,"tag":115,"props":2868,"children":2869},{"style":466},[2870],{"type":49,"value":2871},"create-trial",{"type":44,"tag":115,"props":2873,"children":2874},{"style":134},[2875],{"type":49,"value":474},{"type":44,"tag":115,"props":2877,"children":2878},{"style":134},[2879],{"type":49,"value":297},{"type":44,"tag":115,"props":2881,"children":2882},{"style":149},[2883],{"type":49,"value":2514},{"type":44,"tag":115,"props":2885,"children":2886},{"style":134},[2887],{"type":49,"value":157},{"type":44,"tag":115,"props":2889,"children":2890},{"style":423},[2891],{"type":49,"value":1276},{"type":44,"tag":115,"props":2893,"children":2894},{"style":134},[2895],{"type":49,"value":2527},{"type":44,"tag":115,"props":2897,"children":2898},{"style":149},[2899],{"type":49,"value":2532},{"type":44,"tag":115,"props":2901,"children":2902},{"style":134},[2903],{"type":49,"value":157},{"type":44,"tag":115,"props":2905,"children":2906},{"style":134},[2907],{"type":49,"value":463},{"type":44,"tag":115,"props":2909,"children":2910},{"style":466},[2911],{"type":49,"value":2300},{"type":44,"tag":115,"props":2913,"children":2914},{"style":134},[2915],{"type":49,"value":474},{"type":44,"tag":115,"props":2917,"children":2918},{"style":134},[2919],{"type":49,"value":2553},{"type":44,"tag":115,"props":2921,"children":2922},{"style":423},[2923],{"type":49,"value":2558},{"type":44,"tag":115,"props":2925,"children":2926},{"style":134},[2927],{"type":49,"value":2563},{"type":44,"tag":115,"props":2929,"children":2930},{"class":117,"line":20},[2931,2935,2939,2943,2947,2951,2955,2959],{"type":44,"tag":115,"props":2932,"children":2933},{"style":122},[2934],{"type":49,"value":2571},{"type":44,"tag":115,"props":2936,"children":2937},{"style":134},[2938],{"type":49,"value":2576},{"type":44,"tag":115,"props":2940,"children":2941},{"style":2579},[2942],{"type":49,"value":2532},{"type":44,"tag":115,"props":2944,"children":2945},{"style":134},[2946],{"type":49,"value":297},{"type":44,"tag":115,"props":2948,"children":2949},{"style":2579},[2950],{"type":49,"value":2590},{"type":44,"tag":115,"props":2952,"children":2953},{"style":134},[2954],{"type":49,"value":2595},{"type":44,"tag":115,"props":2956,"children":2957},{"style":122},[2958],{"type":49,"value":2600},{"type":44,"tag":115,"props":2960,"children":2961},{"style":134},[2962],{"type":49,"value":142},{"type":44,"tag":115,"props":2964,"children":2966},{"class":117,"line":2965},27,[2967,2971,2975,2979,2983,2987,2991,2996,3000,3004,3008,3012,3016],{"type":44,"tag":115,"props":2968,"children":2969},{"style":417},[2970],{"type":49,"value":2612},{"type":44,"tag":115,"props":2972,"children":2973},{"style":423},[2974],{"type":49,"value":2590},{"type":44,"tag":115,"props":2976,"children":2977},{"style":134},[2978],{"type":49,"value":431},{"type":44,"tag":115,"props":2980,"children":2981},{"style":434},[2982],{"type":49,"value":2625},{"type":44,"tag":115,"props":2984,"children":2985},{"style":149},[2986],{"type":49,"value":442},{"type":44,"tag":115,"props":2988,"children":2989},{"style":134},[2990],{"type":49,"value":474},{"type":44,"tag":115,"props":2992,"children":2993},{"style":466},[2994],{"type":49,"value":2995},"create-subscription",{"type":44,"tag":115,"props":2997,"children":2998},{"style":134},[2999],{"type":49,"value":474},{"type":44,"tag":115,"props":3001,"children":3002},{"style":134},[3003],{"type":49,"value":297},{"type":44,"tag":115,"props":3005,"children":3006},{"style":122},[3007],{"type":49,"value":2651},{"type":44,"tag":115,"props":3009,"children":3010},{"style":134},[3011],{"type":49,"value":2656},{"type":44,"tag":115,"props":3013,"children":3014},{"style":122},[3015],{"type":49,"value":2600},{"type":44,"tag":115,"props":3017,"children":3018},{"style":134},[3019],{"type":49,"value":142},{"type":44,"tag":115,"props":3021,"children":3023},{"class":117,"line":3022},28,[3024,3028,3033,3037,3042,3046,3051,3055],{"type":44,"tag":115,"props":3025,"children":3026},{"style":417},[3027],{"type":49,"value":2673},{"type":44,"tag":115,"props":3029,"children":3030},{"style":423},[3031],{"type":49,"value":3032}," stripe",{"type":44,"tag":115,"props":3034,"children":3035},{"style":134},[3036],{"type":49,"value":431},{"type":44,"tag":115,"props":3038,"children":3039},{"style":423},[3040],{"type":49,"value":3041},"subscriptions",{"type":44,"tag":115,"props":3043,"children":3044},{"style":134},[3045],{"type":49,"value":431},{"type":44,"tag":115,"props":3047,"children":3048},{"style":434},[3049],{"type":49,"value":3050},"create",{"type":44,"tag":115,"props":3052,"children":3053},{"style":149},[3054],{"type":49,"value":442},{"type":44,"tag":115,"props":3056,"children":3057},{"style":134},[3058],{"type":49,"value":447},{"type":44,"tag":115,"props":3060,"children":3062},{"class":117,"line":3061},29,[3063,3068,3072,3076,3080,3084,3088,3093],{"type":44,"tag":115,"props":3064,"children":3065},{"style":149},[3066],{"type":49,"value":3067},"        customer",{"type":44,"tag":115,"props":3069,"children":3070},{"style":134},[3071],{"type":49,"value":157},{"type":44,"tag":115,"props":3073,"children":3074},{"style":423},[3075],{"type":49,"value":2532},{"type":44,"tag":115,"props":3077,"children":3078},{"style":134},[3079],{"type":49,"value":431},{"type":44,"tag":115,"props":3081,"children":3082},{"style":423},[3083],{"type":49,"value":2712},{"type":44,"tag":115,"props":3085,"children":3086},{"style":134},[3087],{"type":49,"value":431},{"type":44,"tag":115,"props":3089,"children":3090},{"style":423},[3091],{"type":49,"value":3092},"stripeCustomerId",{"type":44,"tag":115,"props":3094,"children":3095},{"style":134},[3096],{"type":49,"value":479},{"type":44,"tag":115,"props":3098,"children":3100},{"class":117,"line":3099},30,[3101,3106,3110],{"type":44,"tag":115,"props":3102,"children":3103},{"style":149},[3104],{"type":49,"value":3105},"        trial_period_days",{"type":44,"tag":115,"props":3107,"children":3108},{"style":134},[3109],{"type":49,"value":157},{"type":44,"tag":115,"props":3111,"children":3112},{"style":596},[3113],{"type":49,"value":3114}," 14\n",{"type":44,"tag":115,"props":3116,"children":3118},{"class":117,"line":3117},31,[3119,3123,3127],{"type":44,"tag":115,"props":3120,"children":3121},{"style":134},[3122],{"type":49,"value":2760},{"type":44,"tag":115,"props":3124,"children":3125},{"style":149},[3126],{"type":49,"value":709},{"type":44,"tag":115,"props":3128,"children":3129},{"style":134},[3130],{"type":49,"value":714},{"type":44,"tag":115,"props":3132,"children":3134},{"class":117,"line":3133},32,[3135,3139,3143],{"type":44,"tag":115,"props":3136,"children":3137},{"style":134},[3138],{"type":49,"value":2777},{"type":44,"tag":115,"props":3140,"children":3141},{"style":149},[3142],{"type":49,"value":709},{"type":44,"tag":115,"props":3144,"children":3145},{"style":134},[3146],{"type":49,"value":714},{"type":44,"tag":115,"props":3148,"children":3150},{"class":117,"line":3149},33,[3151],{"type":44,"tag":115,"props":3152,"children":3153},{"style":134},[3154],{"type":49,"value":695},{"type":44,"tag":115,"props":3156,"children":3158},{"class":117,"line":3157},34,[3159,3163],{"type":44,"tag":115,"props":3160,"children":3161},{"style":423},[3162],{"type":49,"value":709},{"type":44,"tag":115,"props":3164,"children":3165},{"style":134},[3166],{"type":49,"value":714},{"type":44,"tag":115,"props":3168,"children":3170},{"class":117,"line":3169},35,[3171],{"type":44,"tag":115,"props":3172,"children":3173},{"emptyLinePlaceholder":842},[3174],{"type":49,"value":845},{"type":44,"tag":115,"props":3176,"children":3178},{"class":117,"line":3177},36,[3179,3183,3188,3192,3196,3200,3204],{"type":44,"tag":115,"props":3180,"children":3181},{"style":122},[3182],{"type":49,"value":1669},{"type":44,"tag":115,"props":3184,"children":3185},{"style":423},[3186],{"type":49,"value":3187}," addToCrm ",{"type":44,"tag":115,"props":3189,"children":3190},{"style":134},[3191],{"type":49,"value":1679},{"type":44,"tag":115,"props":3193,"children":3194},{"style":423},[3195],{"type":49,"value":426},{"type":44,"tag":115,"props":3197,"children":3198},{"style":134},[3199],{"type":49,"value":431},{"type":44,"tag":115,"props":3201,"children":3202},{"style":434},[3203],{"type":49,"value":2470},{"type":44,"tag":115,"props":3205,"children":3206},{"style":423},[3207],{"type":49,"value":2475},{"type":44,"tag":115,"props":3209,"children":3211},{"class":117,"line":3210},37,[3212,3216,3220,3224,3228,3233,3237,3241,3245,3249,3253,3257,3261,3265,3269,3273,3277,3281,3285],{"type":44,"tag":115,"props":3213,"children":3214},{"style":134},[3215],{"type":49,"value":2483},{"type":44,"tag":115,"props":3217,"children":3218},{"style":149},[3219],{"type":49,"value":2488},{"type":44,"tag":115,"props":3221,"children":3222},{"style":134},[3223],{"type":49,"value":157},{"type":44,"tag":115,"props":3225,"children":3226},{"style":134},[3227],{"type":49,"value":463},{"type":44,"tag":115,"props":3229,"children":3230},{"style":466},[3231],{"type":49,"value":3232},"add-to-crm",{"type":44,"tag":115,"props":3234,"children":3235},{"style":134},[3236],{"type":49,"value":474},{"type":44,"tag":115,"props":3238,"children":3239},{"style":134},[3240],{"type":49,"value":297},{"type":44,"tag":115,"props":3242,"children":3243},{"style":149},[3244],{"type":49,"value":2514},{"type":44,"tag":115,"props":3246,"children":3247},{"style":134},[3248],{"type":49,"value":157},{"type":44,"tag":115,"props":3250,"children":3251},{"style":423},[3252],{"type":49,"value":1276},{"type":44,"tag":115,"props":3254,"children":3255},{"style":134},[3256],{"type":49,"value":2527},{"type":44,"tag":115,"props":3258,"children":3259},{"style":149},[3260],{"type":49,"value":2532},{"type":44,"tag":115,"props":3262,"children":3263},{"style":134},[3264],{"type":49,"value":157},{"type":44,"tag":115,"props":3266,"children":3267},{"style":134},[3268],{"type":49,"value":463},{"type":44,"tag":115,"props":3270,"children":3271},{"style":466},[3272],{"type":49,"value":2300},{"type":44,"tag":115,"props":3274,"children":3275},{"style":134},[3276],{"type":49,"value":474},{"type":44,"tag":115,"props":3278,"children":3279},{"style":134},[3280],{"type":49,"value":2553},{"type":44,"tag":115,"props":3282,"children":3283},{"style":423},[3284],{"type":49,"value":2558},{"type":44,"tag":115,"props":3286,"children":3287},{"style":134},[3288],{"type":49,"value":2563},{"type":44,"tag":115,"props":3290,"children":3292},{"class":117,"line":3291},38,[3293,3297,3301,3305,3309,3313,3317,3321],{"type":44,"tag":115,"props":3294,"children":3295},{"style":122},[3296],{"type":49,"value":2571},{"type":44,"tag":115,"props":3298,"children":3299},{"style":134},[3300],{"type":49,"value":2576},{"type":44,"tag":115,"props":3302,"children":3303},{"style":2579},[3304],{"type":49,"value":2532},{"type":44,"tag":115,"props":3306,"children":3307},{"style":134},[3308],{"type":49,"value":297},{"type":44,"tag":115,"props":3310,"children":3311},{"style":2579},[3312],{"type":49,"value":2590},{"type":44,"tag":115,"props":3314,"children":3315},{"style":134},[3316],{"type":49,"value":2595},{"type":44,"tag":115,"props":3318,"children":3319},{"style":122},[3320],{"type":49,"value":2600},{"type":44,"tag":115,"props":3322,"children":3323},{"style":134},[3324],{"type":49,"value":142},{"type":44,"tag":115,"props":3326,"children":3328},{"class":117,"line":3327},39,[3329,3333,3337,3341,3345,3349,3353,3358,3362,3366,3370,3374,3378],{"type":44,"tag":115,"props":3330,"children":3331},{"style":417},[3332],{"type":49,"value":2612},{"type":44,"tag":115,"props":3334,"children":3335},{"style":423},[3336],{"type":49,"value":2590},{"type":44,"tag":115,"props":3338,"children":3339},{"style":134},[3340],{"type":49,"value":431},{"type":44,"tag":115,"props":3342,"children":3343},{"style":434},[3344],{"type":49,"value":2625},{"type":44,"tag":115,"props":3346,"children":3347},{"style":149},[3348],{"type":49,"value":442},{"type":44,"tag":115,"props":3350,"children":3351},{"style":134},[3352],{"type":49,"value":474},{"type":44,"tag":115,"props":3354,"children":3355},{"style":466},[3356],{"type":49,"value":3357},"crm-sync",{"type":44,"tag":115,"props":3359,"children":3360},{"style":134},[3361],{"type":49,"value":474},{"type":44,"tag":115,"props":3363,"children":3364},{"style":134},[3365],{"type":49,"value":297},{"type":44,"tag":115,"props":3367,"children":3368},{"style":122},[3369],{"type":49,"value":2651},{"type":44,"tag":115,"props":3371,"children":3372},{"style":134},[3373],{"type":49,"value":2656},{"type":44,"tag":115,"props":3375,"children":3376},{"style":122},[3377],{"type":49,"value":2600},{"type":44,"tag":115,"props":3379,"children":3380},{"style":134},[3381],{"type":49,"value":142},{"type":44,"tag":115,"props":3383,"children":3385},{"class":117,"line":3384},40,[3386,3390,3395,3399,3404,3408,3412,3416],{"type":44,"tag":115,"props":3387,"children":3388},{"style":417},[3389],{"type":49,"value":2673},{"type":44,"tag":115,"props":3391,"children":3392},{"style":423},[3393],{"type":49,"value":3394}," crm",{"type":44,"tag":115,"props":3396,"children":3397},{"style":134},[3398],{"type":49,"value":431},{"type":44,"tag":115,"props":3400,"children":3401},{"style":423},[3402],{"type":49,"value":3403},"contacts",{"type":44,"tag":115,"props":3405,"children":3406},{"style":134},[3407],{"type":49,"value":431},{"type":44,"tag":115,"props":3409,"children":3410},{"style":434},[3411],{"type":49,"value":3050},{"type":44,"tag":115,"props":3413,"children":3414},{"style":149},[3415],{"type":49,"value":442},{"type":44,"tag":115,"props":3417,"children":3418},{"style":134},[3419],{"type":49,"value":447},{"type":44,"tag":115,"props":3421,"children":3423},{"class":117,"line":3422},41,[3424,3429,3433,3437,3441,3445,3449,3453],{"type":44,"tag":115,"props":3425,"children":3426},{"style":149},[3427],{"type":49,"value":3428},"        email",{"type":44,"tag":115,"props":3430,"children":3431},{"style":134},[3432],{"type":49,"value":157},{"type":44,"tag":115,"props":3434,"children":3435},{"style":423},[3436],{"type":49,"value":2532},{"type":44,"tag":115,"props":3438,"children":3439},{"style":134},[3440],{"type":49,"value":431},{"type":44,"tag":115,"props":3442,"children":3443},{"style":423},[3444],{"type":49,"value":2712},{"type":44,"tag":115,"props":3446,"children":3447},{"style":134},[3448],{"type":49,"value":431},{"type":44,"tag":115,"props":3450,"children":3451},{"style":423},[3452],{"type":49,"value":2721},{"type":44,"tag":115,"props":3454,"children":3455},{"style":134},[3456],{"type":49,"value":479},{"type":44,"tag":115,"props":3458,"children":3460},{"class":117,"line":3459},42,[3461,3466,3470,3474,3478,3482,3486],{"type":44,"tag":115,"props":3462,"children":3463},{"style":149},[3464],{"type":49,"value":3465},"        plan",{"type":44,"tag":115,"props":3467,"children":3468},{"style":134},[3469],{"type":49,"value":157},{"type":44,"tag":115,"props":3471,"children":3472},{"style":423},[3473],{"type":49,"value":2532},{"type":44,"tag":115,"props":3475,"children":3476},{"style":134},[3477],{"type":49,"value":431},{"type":44,"tag":115,"props":3479,"children":3480},{"style":423},[3481],{"type":49,"value":2712},{"type":44,"tag":115,"props":3483,"children":3484},{"style":134},[3485],{"type":49,"value":431},{"type":44,"tag":115,"props":3487,"children":3488},{"style":423},[3489],{"type":49,"value":3490},"plan\n",{"type":44,"tag":115,"props":3492,"children":3494},{"class":117,"line":3493},43,[3495,3499,3503],{"type":44,"tag":115,"props":3496,"children":3497},{"style":134},[3498],{"type":49,"value":2760},{"type":44,"tag":115,"props":3500,"children":3501},{"style":149},[3502],{"type":49,"value":709},{"type":44,"tag":115,"props":3504,"children":3505},{"style":134},[3506],{"type":49,"value":714},{"type":44,"tag":115,"props":3508,"children":3510},{"class":117,"line":3509},44,[3511,3515,3519],{"type":44,"tag":115,"props":3512,"children":3513},{"style":134},[3514],{"type":49,"value":2777},{"type":44,"tag":115,"props":3516,"children":3517},{"style":149},[3518],{"type":49,"value":709},{"type":44,"tag":115,"props":3520,"children":3521},{"style":134},[3522],{"type":49,"value":714},{"type":44,"tag":115,"props":3524,"children":3526},{"class":117,"line":3525},45,[3527],{"type":44,"tag":115,"props":3528,"children":3529},{"style":134},[3530],{"type":49,"value":695},{"type":44,"tag":115,"props":3532,"children":3534},{"class":117,"line":3533},46,[3535,3539],{"type":44,"tag":115,"props":3536,"children":3537},{"style":423},[3538],{"type":49,"value":709},{"type":44,"tag":115,"props":3540,"children":3541},{"style":134},[3542],{"type":49,"value":714},{"type":44,"tag":96,"props":3544,"children":3546},{"id":3545},"fan-out-benefits",[3547],{"type":49,"value":3548},"Fan-Out Benefits",{"type":44,"tag":1013,"props":3550,"children":3551},{},[3552,3562,3572,3582],{"type":44,"tag":1017,"props":3553,"children":3554},{},[3555,3560],{"type":44,"tag":65,"props":3556,"children":3557},{},[3558],{"type":49,"value":3559},"Independence:",{"type":49,"value":3561}," Functions run separately; one failure doesn't affect others",{"type":44,"tag":1017,"props":3563,"children":3564},{},[3565,3570],{"type":44,"tag":65,"props":3566,"children":3567},{},[3568],{"type":49,"value":3569},"Parallel execution:",{"type":49,"value":3571}," All functions run simultaneously",{"type":44,"tag":1017,"props":3573,"children":3574},{},[3575,3580],{"type":44,"tag":65,"props":3576,"children":3577},{},[3578],{"type":49,"value":3579},"Selective replay:",{"type":49,"value":3581}," Re-run only failed functions",{"type":44,"tag":1017,"props":3583,"children":3584},{},[3585,3590],{"type":44,"tag":65,"props":3586,"children":3587},{},[3588],{"type":49,"value":3589},"Cross-service:",{"type":49,"value":3591}," Trigger functions in different codebases\u002Flanguages",{"type":44,"tag":96,"props":3593,"children":3595},{"id":3594},"advanced-fan-out-with-waitforevent",[3596,3598],{"type":49,"value":3597},"Advanced Fan-Out with ",{"type":44,"tag":111,"props":3599,"children":3601},{"className":3600},[],[3602],{"type":49,"value":3603},"waitForEvent",{"type":44,"tag":52,"props":3605,"children":3606},{},[3607,3609,3615,3617,3622,3624,3630,3631,3636,3638,3644],{"type":49,"value":3608},"In expressions, ",{"type":44,"tag":111,"props":3610,"children":3612},{"className":3611},[],[3613],{"type":49,"value":3614},"event",{"type":49,"value":3616}," = the ",{"type":44,"tag":65,"props":3618,"children":3619},{},[3620],{"type":49,"value":3621},"original",{"type":49,"value":3623}," triggering event, ",{"type":44,"tag":111,"props":3625,"children":3627},{"className":3626},[],[3628],{"type":49,"value":3629},"async",{"type":49,"value":3616},{"type":44,"tag":65,"props":3632,"children":3633},{},[3634],{"type":49,"value":3635},"new",{"type":49,"value":3637}," event being matched. See ",{"type":44,"tag":73,"props":3639,"children":3641},{"href":3640},"..\u002Freferences\u002Fexpressions.md",[3642],{"type":49,"value":3643},"Expression Syntax Reference",{"type":49,"value":3645}," for full details.",{"type":44,"tag":103,"props":3647,"children":3649},{"className":105,"code":3648,"language":107,"meta":108,"style":108},"const orchestrateOnboarding = inngest.createFunction(\n  { id: \"orchestrate-onboarding\", triggers: [{ event: \"user\u002Fsignup.completed\" }] },\n  async ({ event, step }) => {\n    \u002F\u002F Fan out to multiple services\n    await step.sendEvent(\"fan-out\", [\n      { name: \"email\u002Fwelcome.send\", data: event.data },\n      { name: \"subscription\u002Ftrial.create\", data: event.data },\n      { name: \"crm\u002Fcontact.add\", data: event.data }\n    ]);\n\n    \u002F\u002F Wait for all to complete\n    const [emailResult, subResult, crmResult] = await Promise.all([\n      step.waitForEvent(\"email-sent\", {\n        event: \"email\u002Fwelcome.sent\",\n        timeout: \"5m\",\n        if: `event.data.userId == async.data.userId`\n      }),\n      step.waitForEvent(\"subscription-created\", {\n        event: \"subscription\u002Ftrial.created\",\n        timeout: \"5m\",\n        if: `event.data.userId == async.data.userId`\n      }),\n      step.waitForEvent(\"crm-synced\", {\n        event: \"crm\u002Fcontact.added\",\n        timeout: \"5m\",\n        if: `event.data.userId == async.data.userId`\n      })\n    ]);\n\n    \u002F\u002F Complete onboarding\n    await step.run(\"complete-onboarding\", async () => {\n      return completeUserOnboarding(event.data.userId);\n    });\n  }\n);\n",[3650],{"type":44,"tag":111,"props":3651,"children":3652},{"__ignoreMap":108},[3653,3685,3765,3800,3808,3853,3913,3969,4025,4037,4044,4052,4119,4160,4189,4218,4244,4259,4299,4327,4354,4377,4392,4432,4460,4487,4510,4522,4533,4540,4548,4604,4648,4663,4670],{"type":44,"tag":115,"props":3654,"children":3655},{"class":117,"line":118},[3656,3660,3665,3669,3673,3677,3681],{"type":44,"tag":115,"props":3657,"children":3658},{"style":122},[3659],{"type":49,"value":1669},{"type":44,"tag":115,"props":3661,"children":3662},{"style":423},[3663],{"type":49,"value":3664}," orchestrateOnboarding ",{"type":44,"tag":115,"props":3666,"children":3667},{"style":134},[3668],{"type":49,"value":1679},{"type":44,"tag":115,"props":3670,"children":3671},{"style":423},[3672],{"type":49,"value":426},{"type":44,"tag":115,"props":3674,"children":3675},{"style":134},[3676],{"type":49,"value":431},{"type":44,"tag":115,"props":3678,"children":3679},{"style":434},[3680],{"type":49,"value":2470},{"type":44,"tag":115,"props":3682,"children":3683},{"style":423},[3684],{"type":49,"value":2475},{"type":44,"tag":115,"props":3686,"children":3687},{"class":117,"line":145},[3688,3692,3696,3700,3704,3709,3713,3717,3721,3725,3729,3733,3737,3741,3745,3749,3753,3757,3761],{"type":44,"tag":115,"props":3689,"children":3690},{"style":134},[3691],{"type":49,"value":2483},{"type":44,"tag":115,"props":3693,"children":3694},{"style":149},[3695],{"type":49,"value":2488},{"type":44,"tag":115,"props":3697,"children":3698},{"style":134},[3699],{"type":49,"value":157},{"type":44,"tag":115,"props":3701,"children":3702},{"style":134},[3703],{"type":49,"value":463},{"type":44,"tag":115,"props":3705,"children":3706},{"style":466},[3707],{"type":49,"value":3708},"orchestrate-onboarding",{"type":44,"tag":115,"props":3710,"children":3711},{"style":134},[3712],{"type":49,"value":474},{"type":44,"tag":115,"props":3714,"children":3715},{"style":134},[3716],{"type":49,"value":297},{"type":44,"tag":115,"props":3718,"children":3719},{"style":149},[3720],{"type":49,"value":2514},{"type":44,"tag":115,"props":3722,"children":3723},{"style":134},[3724],{"type":49,"value":157},{"type":44,"tag":115,"props":3726,"children":3727},{"style":423},[3728],{"type":49,"value":1276},{"type":44,"tag":115,"props":3730,"children":3731},{"style":134},[3732],{"type":49,"value":2527},{"type":44,"tag":115,"props":3734,"children":3735},{"style":149},[3736],{"type":49,"value":2532},{"type":44,"tag":115,"props":3738,"children":3739},{"style":134},[3740],{"type":49,"value":157},{"type":44,"tag":115,"props":3742,"children":3743},{"style":134},[3744],{"type":49,"value":463},{"type":44,"tag":115,"props":3746,"children":3747},{"style":466},[3748],{"type":49,"value":2300},{"type":44,"tag":115,"props":3750,"children":3751},{"style":134},[3752],{"type":49,"value":474},{"type":44,"tag":115,"props":3754,"children":3755},{"style":134},[3756],{"type":49,"value":2553},{"type":44,"tag":115,"props":3758,"children":3759},{"style":423},[3760],{"type":49,"value":2558},{"type":44,"tag":115,"props":3762,"children":3763},{"style":134},[3764],{"type":49,"value":2563},{"type":44,"tag":115,"props":3766,"children":3767},{"class":117,"line":176},[3768,3772,3776,3780,3784,3788,3792,3796],{"type":44,"tag":115,"props":3769,"children":3770},{"style":122},[3771],{"type":49,"value":2571},{"type":44,"tag":115,"props":3773,"children":3774},{"style":134},[3775],{"type":49,"value":2576},{"type":44,"tag":115,"props":3777,"children":3778},{"style":2579},[3779],{"type":49,"value":2532},{"type":44,"tag":115,"props":3781,"children":3782},{"style":134},[3783],{"type":49,"value":297},{"type":44,"tag":115,"props":3785,"children":3786},{"style":2579},[3787],{"type":49,"value":2590},{"type":44,"tag":115,"props":3789,"children":3790},{"style":134},[3791],{"type":49,"value":2595},{"type":44,"tag":115,"props":3793,"children":3794},{"style":122},[3795],{"type":49,"value":2600},{"type":44,"tag":115,"props":3797,"children":3798},{"style":134},[3799],{"type":49,"value":142},{"type":44,"tag":115,"props":3801,"children":3802},{"class":117,"line":203},[3803],{"type":44,"tag":115,"props":3804,"children":3805},{"style":170},[3806],{"type":49,"value":3807},"    \u002F\u002F Fan out to multiple services\n",{"type":44,"tag":115,"props":3809,"children":3810},{"class":117,"line":24},[3811,3815,3819,3823,3828,3832,3836,3841,3845,3849],{"type":44,"tag":115,"props":3812,"children":3813},{"style":417},[3814],{"type":49,"value":2612},{"type":44,"tag":115,"props":3816,"children":3817},{"style":423},[3818],{"type":49,"value":2590},{"type":44,"tag":115,"props":3820,"children":3821},{"style":134},[3822],{"type":49,"value":431},{"type":44,"tag":115,"props":3824,"children":3825},{"style":434},[3826],{"type":49,"value":3827},"sendEvent",{"type":44,"tag":115,"props":3829,"children":3830},{"style":149},[3831],{"type":49,"value":442},{"type":44,"tag":115,"props":3833,"children":3834},{"style":134},[3835],{"type":49,"value":474},{"type":44,"tag":115,"props":3837,"children":3838},{"style":466},[3839],{"type":49,"value":3840},"fan-out",{"type":44,"tag":115,"props":3842,"children":3843},{"style":134},[3844],{"type":49,"value":474},{"type":44,"tag":115,"props":3846,"children":3847},{"style":134},[3848],{"type":49,"value":297},{"type":44,"tag":115,"props":3850,"children":3851},{"style":149},[3852],{"type":49,"value":1948},{"type":44,"tag":115,"props":3854,"children":3855},{"class":117,"line":367},[3856,3861,3866,3870,3874,3879,3883,3887,3892,3896,3900,3904,3908],{"type":44,"tag":115,"props":3857,"children":3858},{"style":134},[3859],{"type":49,"value":3860},"      {",{"type":44,"tag":115,"props":3862,"children":3863},{"style":149},[3864],{"type":49,"value":3865}," name",{"type":44,"tag":115,"props":3867,"children":3868},{"style":134},[3869],{"type":49,"value":157},{"type":44,"tag":115,"props":3871,"children":3872},{"style":134},[3873],{"type":49,"value":463},{"type":44,"tag":115,"props":3875,"children":3876},{"style":466},[3877],{"type":49,"value":3878},"email\u002Fwelcome.send",{"type":44,"tag":115,"props":3880,"children":3881},{"style":134},[3882],{"type":49,"value":474},{"type":44,"tag":115,"props":3884,"children":3885},{"style":134},[3886],{"type":49,"value":297},{"type":44,"tag":115,"props":3888,"children":3889},{"style":149},[3890],{"type":49,"value":3891}," data",{"type":44,"tag":115,"props":3893,"children":3894},{"style":134},[3895],{"type":49,"value":157},{"type":44,"tag":115,"props":3897,"children":3898},{"style":423},[3899],{"type":49,"value":2532},{"type":44,"tag":115,"props":3901,"children":3902},{"style":134},[3903],{"type":49,"value":431},{"type":44,"tag":115,"props":3905,"children":3906},{"style":423},[3907],{"type":49,"value":2712},{"type":44,"tag":115,"props":3909,"children":3910},{"style":134},[3911],{"type":49,"value":3912}," },\n",{"type":44,"tag":115,"props":3914,"children":3915},{"class":117,"line":393},[3916,3920,3924,3928,3932,3937,3941,3945,3949,3953,3957,3961,3965],{"type":44,"tag":115,"props":3917,"children":3918},{"style":134},[3919],{"type":49,"value":3860},{"type":44,"tag":115,"props":3921,"children":3922},{"style":149},[3923],{"type":49,"value":3865},{"type":44,"tag":115,"props":3925,"children":3926},{"style":134},[3927],{"type":49,"value":157},{"type":44,"tag":115,"props":3929,"children":3930},{"style":134},[3931],{"type":49,"value":463},{"type":44,"tag":115,"props":3933,"children":3934},{"style":466},[3935],{"type":49,"value":3936},"subscription\u002Ftrial.create",{"type":44,"tag":115,"props":3938,"children":3939},{"style":134},[3940],{"type":49,"value":474},{"type":44,"tag":115,"props":3942,"children":3943},{"style":134},[3944],{"type":49,"value":297},{"type":44,"tag":115,"props":3946,"children":3947},{"style":149},[3948],{"type":49,"value":3891},{"type":44,"tag":115,"props":3950,"children":3951},{"style":134},[3952],{"type":49,"value":157},{"type":44,"tag":115,"props":3954,"children":3955},{"style":423},[3956],{"type":49,"value":2532},{"type":44,"tag":115,"props":3958,"children":3959},{"style":134},[3960],{"type":49,"value":431},{"type":44,"tag":115,"props":3962,"children":3963},{"style":423},[3964],{"type":49,"value":2712},{"type":44,"tag":115,"props":3966,"children":3967},{"style":134},[3968],{"type":49,"value":3912},{"type":44,"tag":115,"props":3970,"children":3971},{"class":117,"line":606},[3972,3976,3980,3984,3988,3993,3997,4001,4005,4009,4013,4017,4021],{"type":44,"tag":115,"props":3973,"children":3974},{"style":134},[3975],{"type":49,"value":3860},{"type":44,"tag":115,"props":3977,"children":3978},{"style":149},[3979],{"type":49,"value":3865},{"type":44,"tag":115,"props":3981,"children":3982},{"style":134},[3983],{"type":49,"value":157},{"type":44,"tag":115,"props":3985,"children":3986},{"style":134},[3987],{"type":49,"value":463},{"type":44,"tag":115,"props":3989,"children":3990},{"style":466},[3991],{"type":49,"value":3992},"crm\u002Fcontact.add",{"type":44,"tag":115,"props":3994,"children":3995},{"style":134},[3996],{"type":49,"value":474},{"type":44,"tag":115,"props":3998,"children":3999},{"style":134},[4000],{"type":49,"value":297},{"type":44,"tag":115,"props":4002,"children":4003},{"style":149},[4004],{"type":49,"value":3891},{"type":44,"tag":115,"props":4006,"children":4007},{"style":134},[4008],{"type":49,"value":157},{"type":44,"tag":115,"props":4010,"children":4011},{"style":423},[4012],{"type":49,"value":2532},{"type":44,"tag":115,"props":4014,"children":4015},{"style":134},[4016],{"type":49,"value":431},{"type":44,"tag":115,"props":4018,"children":4019},{"style":423},[4020],{"type":49,"value":2712},{"type":44,"tag":115,"props":4022,"children":4023},{"style":134},[4024],{"type":49,"value":2055},{"type":44,"tag":115,"props":4026,"children":4027},{"class":117,"line":623},[4028,4033],{"type":44,"tag":115,"props":4029,"children":4030},{"style":149},[4031],{"type":49,"value":4032},"    ])",{"type":44,"tag":115,"props":4034,"children":4035},{"style":134},[4036],{"type":49,"value":714},{"type":44,"tag":115,"props":4038,"children":4039},{"class":117,"line":653},[4040],{"type":44,"tag":115,"props":4041,"children":4042},{"emptyLinePlaceholder":842},[4043],{"type":49,"value":845},{"type":44,"tag":115,"props":4045,"children":4046},{"class":117,"line":680},[4047],{"type":44,"tag":115,"props":4048,"children":4049},{"style":170},[4050],{"type":49,"value":4051},"    \u002F\u002F Wait for all to complete\n",{"type":44,"tag":115,"props":4053,"children":4054},{"class":117,"line":689},[4055,4060,4064,4069,4073,4078,4082,4087,4091,4095,4100,4105,4109,4114],{"type":44,"tag":115,"props":4056,"children":4057},{"style":122},[4058],{"type":49,"value":4059},"    const",{"type":44,"tag":115,"props":4061,"children":4062},{"style":134},[4063],{"type":49,"value":1276},{"type":44,"tag":115,"props":4065,"children":4066},{"style":423},[4067],{"type":49,"value":4068},"emailResult",{"type":44,"tag":115,"props":4070,"children":4071},{"style":134},[4072],{"type":49,"value":297},{"type":44,"tag":115,"props":4074,"children":4075},{"style":423},[4076],{"type":49,"value":4077}," subResult",{"type":44,"tag":115,"props":4079,"children":4080},{"style":134},[4081],{"type":49,"value":297},{"type":44,"tag":115,"props":4083,"children":4084},{"style":423},[4085],{"type":49,"value":4086}," crmResult",{"type":44,"tag":115,"props":4088,"children":4089},{"style":134},[4090],{"type":49,"value":2177},{"type":44,"tag":115,"props":4092,"children":4093},{"style":134},[4094],{"type":49,"value":137},{"type":44,"tag":115,"props":4096,"children":4097},{"style":417},[4098],{"type":49,"value":4099}," await",{"type":44,"tag":115,"props":4101,"children":4102},{"style":128},[4103],{"type":49,"value":4104}," Promise",{"type":44,"tag":115,"props":4106,"children":4107},{"style":134},[4108],{"type":49,"value":431},{"type":44,"tag":115,"props":4110,"children":4111},{"style":434},[4112],{"type":49,"value":4113},"all",{"type":44,"tag":115,"props":4115,"children":4116},{"style":149},[4117],{"type":49,"value":4118},"([\n",{"type":44,"tag":115,"props":4120,"children":4121},{"class":117,"line":698},[4122,4127,4131,4135,4139,4143,4148,4152,4156],{"type":44,"tag":115,"props":4123,"children":4124},{"style":423},[4125],{"type":49,"value":4126},"      step",{"type":44,"tag":115,"props":4128,"children":4129},{"style":134},[4130],{"type":49,"value":431},{"type":44,"tag":115,"props":4132,"children":4133},{"style":434},[4134],{"type":49,"value":3603},{"type":44,"tag":115,"props":4136,"children":4137},{"style":149},[4138],{"type":49,"value":442},{"type":44,"tag":115,"props":4140,"children":4141},{"style":134},[4142],{"type":49,"value":474},{"type":44,"tag":115,"props":4144,"children":4145},{"style":466},[4146],{"type":49,"value":4147},"email-sent",{"type":44,"tag":115,"props":4149,"children":4150},{"style":134},[4151],{"type":49,"value":474},{"type":44,"tag":115,"props":4153,"children":4154},{"style":134},[4155],{"type":49,"value":297},{"type":44,"tag":115,"props":4157,"children":4158},{"style":134},[4159],{"type":49,"value":142},{"type":44,"tag":115,"props":4161,"children":4162},{"class":117,"line":956},[4163,4168,4172,4176,4181,4185],{"type":44,"tag":115,"props":4164,"children":4165},{"style":149},[4166],{"type":49,"value":4167},"        event",{"type":44,"tag":115,"props":4169,"children":4170},{"style":134},[4171],{"type":49,"value":157},{"type":44,"tag":115,"props":4173,"children":4174},{"style":134},[4175],{"type":49,"value":463},{"type":44,"tag":115,"props":4177,"children":4178},{"style":466},[4179],{"type":49,"value":4180},"email\u002Fwelcome.sent",{"type":44,"tag":115,"props":4182,"children":4183},{"style":134},[4184],{"type":49,"value":474},{"type":44,"tag":115,"props":4186,"children":4187},{"style":134},[4188],{"type":49,"value":479},{"type":44,"tag":115,"props":4190,"children":4191},{"class":117,"line":982},[4192,4197,4201,4205,4210,4214],{"type":44,"tag":115,"props":4193,"children":4194},{"style":149},[4195],{"type":49,"value":4196},"        timeout",{"type":44,"tag":115,"props":4198,"children":4199},{"style":134},[4200],{"type":49,"value":157},{"type":44,"tag":115,"props":4202,"children":4203},{"style":134},[4204],{"type":49,"value":463},{"type":44,"tag":115,"props":4206,"children":4207},{"style":466},[4208],{"type":49,"value":4209},"5m",{"type":44,"tag":115,"props":4211,"children":4212},{"style":134},[4213],{"type":49,"value":474},{"type":44,"tag":115,"props":4215,"children":4216},{"style":134},[4217],{"type":49,"value":479},{"type":44,"tag":115,"props":4219,"children":4220},{"class":117,"line":2667},[4221,4226,4230,4234,4239],{"type":44,"tag":115,"props":4222,"children":4223},{"style":149},[4224],{"type":49,"value":4225},"        if",{"type":44,"tag":115,"props":4227,"children":4228},{"style":134},[4229],{"type":49,"value":157},{"type":44,"tag":115,"props":4231,"children":4232},{"style":134},[4233],{"type":49,"value":1371},{"type":44,"tag":115,"props":4235,"children":4236},{"style":466},[4237],{"type":49,"value":4238},"event.data.userId == async.data.userId",{"type":44,"tag":115,"props":4240,"children":4241},{"style":134},[4242],{"type":49,"value":4243},"`\n",{"type":44,"tag":115,"props":4245,"children":4246},{"class":117,"line":2689},[4247,4251,4255],{"type":44,"tag":115,"props":4248,"children":4249},{"style":134},[4250],{"type":49,"value":2760},{"type":44,"tag":115,"props":4252,"children":4253},{"style":149},[4254],{"type":49,"value":709},{"type":44,"tag":115,"props":4256,"children":4257},{"style":134},[4258],{"type":49,"value":479},{"type":44,"tag":115,"props":4260,"children":4261},{"class":117,"line":2728},[4262,4266,4270,4274,4278,4282,4287,4291,4295],{"type":44,"tag":115,"props":4263,"children":4264},{"style":423},[4265],{"type":49,"value":4126},{"type":44,"tag":115,"props":4267,"children":4268},{"style":134},[4269],{"type":49,"value":431},{"type":44,"tag":115,"props":4271,"children":4272},{"style":434},[4273],{"type":49,"value":3603},{"type":44,"tag":115,"props":4275,"children":4276},{"style":149},[4277],{"type":49,"value":442},{"type":44,"tag":115,"props":4279,"children":4280},{"style":134},[4281],{"type":49,"value":474},{"type":44,"tag":115,"props":4283,"children":4284},{"style":466},[4285],{"type":49,"value":4286},"subscription-created",{"type":44,"tag":115,"props":4288,"children":4289},{"style":134},[4290],{"type":49,"value":474},{"type":44,"tag":115,"props":4292,"children":4293},{"style":134},[4294],{"type":49,"value":297},{"type":44,"tag":115,"props":4296,"children":4297},{"style":134},[4298],{"type":49,"value":142},{"type":44,"tag":115,"props":4300,"children":4301},{"class":117,"line":2754},[4302,4306,4310,4314,4319,4323],{"type":44,"tag":115,"props":4303,"children":4304},{"style":149},[4305],{"type":49,"value":4167},{"type":44,"tag":115,"props":4307,"children":4308},{"style":134},[4309],{"type":49,"value":157},{"type":44,"tag":115,"props":4311,"children":4312},{"style":134},[4313],{"type":49,"value":463},{"type":44,"tag":115,"props":4315,"children":4316},{"style":466},[4317],{"type":49,"value":4318},"subscription\u002Ftrial.created",{"type":44,"tag":115,"props":4320,"children":4321},{"style":134},[4322],{"type":49,"value":474},{"type":44,"tag":115,"props":4324,"children":4325},{"style":134},[4326],{"type":49,"value":479},{"type":44,"tag":115,"props":4328,"children":4329},{"class":117,"line":2771},[4330,4334,4338,4342,4346,4350],{"type":44,"tag":115,"props":4331,"children":4332},{"style":149},[4333],{"type":49,"value":4196},{"type":44,"tag":115,"props":4335,"children":4336},{"style":134},[4337],{"type":49,"value":157},{"type":44,"tag":115,"props":4339,"children":4340},{"style":134},[4341],{"type":49,"value":463},{"type":44,"tag":115,"props":4343,"children":4344},{"style":466},[4345],{"type":49,"value":4209},{"type":44,"tag":115,"props":4347,"children":4348},{"style":134},[4349],{"type":49,"value":474},{"type":44,"tag":115,"props":4351,"children":4352},{"style":134},[4353],{"type":49,"value":479},{"type":44,"tag":115,"props":4355,"children":4356},{"class":117,"line":2788},[4357,4361,4365,4369,4373],{"type":44,"tag":115,"props":4358,"children":4359},{"style":149},[4360],{"type":49,"value":4225},{"type":44,"tag":115,"props":4362,"children":4363},{"style":134},[4364],{"type":49,"value":157},{"type":44,"tag":115,"props":4366,"children":4367},{"style":134},[4368],{"type":49,"value":1371},{"type":44,"tag":115,"props":4370,"children":4371},{"style":466},[4372],{"type":49,"value":4238},{"type":44,"tag":115,"props":4374,"children":4375},{"style":134},[4376],{"type":49,"value":4243},{"type":44,"tag":115,"props":4378,"children":4379},{"class":117,"line":2796},[4380,4384,4388],{"type":44,"tag":115,"props":4381,"children":4382},{"style":134},[4383],{"type":49,"value":2760},{"type":44,"tag":115,"props":4385,"children":4386},{"style":149},[4387],{"type":49,"value":709},{"type":44,"tag":115,"props":4389,"children":4390},{"style":134},[4391],{"type":49,"value":479},{"type":44,"tag":115,"props":4393,"children":4394},{"class":117,"line":2808},[4395,4399,4403,4407,4411,4415,4420,4424,4428],{"type":44,"tag":115,"props":4396,"children":4397},{"style":423},[4398],{"type":49,"value":4126},{"type":44,"tag":115,"props":4400,"children":4401},{"style":134},[4402],{"type":49,"value":431},{"type":44,"tag":115,"props":4404,"children":4405},{"style":434},[4406],{"type":49,"value":3603},{"type":44,"tag":115,"props":4408,"children":4409},{"style":149},[4410],{"type":49,"value":442},{"type":44,"tag":115,"props":4412,"children":4413},{"style":134},[4414],{"type":49,"value":474},{"type":44,"tag":115,"props":4416,"children":4417},{"style":466},[4418],{"type":49,"value":4419},"crm-synced",{"type":44,"tag":115,"props":4421,"children":4422},{"style":134},[4423],{"type":49,"value":474},{"type":44,"tag":115,"props":4425,"children":4426},{"style":134},[4427],{"type":49,"value":297},{"type":44,"tag":115,"props":4429,"children":4430},{"style":134},[4431],{"type":49,"value":142},{"type":44,"tag":115,"props":4433,"children":4434},{"class":117,"line":2816},[4435,4439,4443,4447,4452,4456],{"type":44,"tag":115,"props":4436,"children":4437},{"style":149},[4438],{"type":49,"value":4167},{"type":44,"tag":115,"props":4440,"children":4441},{"style":134},[4442],{"type":49,"value":157},{"type":44,"tag":115,"props":4444,"children":4445},{"style":134},[4446],{"type":49,"value":463},{"type":44,"tag":115,"props":4448,"children":4449},{"style":466},[4450],{"type":49,"value":4451},"crm\u002Fcontact.added",{"type":44,"tag":115,"props":4453,"children":4454},{"style":134},[4455],{"type":49,"value":474},{"type":44,"tag":115,"props":4457,"children":4458},{"style":134},[4459],{"type":49,"value":479},{"type":44,"tag":115,"props":4461,"children":4462},{"class":117,"line":2849},[4463,4467,4471,4475,4479,4483],{"type":44,"tag":115,"props":4464,"children":4465},{"style":149},[4466],{"type":49,"value":4196},{"type":44,"tag":115,"props":4468,"children":4469},{"style":134},[4470],{"type":49,"value":157},{"type":44,"tag":115,"props":4472,"children":4473},{"style":134},[4474],{"type":49,"value":463},{"type":44,"tag":115,"props":4476,"children":4477},{"style":466},[4478],{"type":49,"value":4209},{"type":44,"tag":115,"props":4480,"children":4481},{"style":134},[4482],{"type":49,"value":474},{"type":44,"tag":115,"props":4484,"children":4485},{"style":134},[4486],{"type":49,"value":479},{"type":44,"tag":115,"props":4488,"children":4489},{"class":117,"line":20},[4490,4494,4498,4502,4506],{"type":44,"tag":115,"props":4491,"children":4492},{"style":149},[4493],{"type":49,"value":4225},{"type":44,"tag":115,"props":4495,"children":4496},{"style":134},[4497],{"type":49,"value":157},{"type":44,"tag":115,"props":4499,"children":4500},{"style":134},[4501],{"type":49,"value":1371},{"type":44,"tag":115,"props":4503,"children":4504},{"style":466},[4505],{"type":49,"value":4238},{"type":44,"tag":115,"props":4507,"children":4508},{"style":134},[4509],{"type":49,"value":4243},{"type":44,"tag":115,"props":4511,"children":4512},{"class":117,"line":2965},[4513,4517],{"type":44,"tag":115,"props":4514,"children":4515},{"style":134},[4516],{"type":49,"value":2760},{"type":44,"tag":115,"props":4518,"children":4519},{"style":149},[4520],{"type":49,"value":4521},")\n",{"type":44,"tag":115,"props":4523,"children":4524},{"class":117,"line":3022},[4525,4529],{"type":44,"tag":115,"props":4526,"children":4527},{"style":149},[4528],{"type":49,"value":4032},{"type":44,"tag":115,"props":4530,"children":4531},{"style":134},[4532],{"type":49,"value":714},{"type":44,"tag":115,"props":4534,"children":4535},{"class":117,"line":3061},[4536],{"type":44,"tag":115,"props":4537,"children":4538},{"emptyLinePlaceholder":842},[4539],{"type":49,"value":845},{"type":44,"tag":115,"props":4541,"children":4542},{"class":117,"line":3099},[4543],{"type":44,"tag":115,"props":4544,"children":4545},{"style":170},[4546],{"type":49,"value":4547},"    \u002F\u002F Complete onboarding\n",{"type":44,"tag":115,"props":4549,"children":4550},{"class":117,"line":3117},[4551,4555,4559,4563,4567,4571,4575,4580,4584,4588,4592,4596,4600],{"type":44,"tag":115,"props":4552,"children":4553},{"style":417},[4554],{"type":49,"value":2612},{"type":44,"tag":115,"props":4556,"children":4557},{"style":423},[4558],{"type":49,"value":2590},{"type":44,"tag":115,"props":4560,"children":4561},{"style":134},[4562],{"type":49,"value":431},{"type":44,"tag":115,"props":4564,"children":4565},{"style":434},[4566],{"type":49,"value":2625},{"type":44,"tag":115,"props":4568,"children":4569},{"style":149},[4570],{"type":49,"value":442},{"type":44,"tag":115,"props":4572,"children":4573},{"style":134},[4574],{"type":49,"value":474},{"type":44,"tag":115,"props":4576,"children":4577},{"style":466},[4578],{"type":49,"value":4579},"complete-onboarding",{"type":44,"tag":115,"props":4581,"children":4582},{"style":134},[4583],{"type":49,"value":474},{"type":44,"tag":115,"props":4585,"children":4586},{"style":134},[4587],{"type":49,"value":297},{"type":44,"tag":115,"props":4589,"children":4590},{"style":122},[4591],{"type":49,"value":2651},{"type":44,"tag":115,"props":4593,"children":4594},{"style":134},[4595],{"type":49,"value":2656},{"type":44,"tag":115,"props":4597,"children":4598},{"style":122},[4599],{"type":49,"value":2600},{"type":44,"tag":115,"props":4601,"children":4602},{"style":134},[4603],{"type":49,"value":142},{"type":44,"tag":115,"props":4605,"children":4606},{"class":117,"line":3133},[4607,4611,4616,4620,4624,4628,4632,4636,4640,4644],{"type":44,"tag":115,"props":4608,"children":4609},{"style":417},[4610],{"type":49,"value":2673},{"type":44,"tag":115,"props":4612,"children":4613},{"style":434},[4614],{"type":49,"value":4615}," completeUserOnboarding",{"type":44,"tag":115,"props":4617,"children":4618},{"style":149},[4619],{"type":49,"value":442},{"type":44,"tag":115,"props":4621,"children":4622},{"style":423},[4623],{"type":49,"value":3614},{"type":44,"tag":115,"props":4625,"children":4626},{"style":134},[4627],{"type":49,"value":431},{"type":44,"tag":115,"props":4629,"children":4630},{"style":423},[4631],{"type":49,"value":2712},{"type":44,"tag":115,"props":4633,"children":4634},{"style":134},[4635],{"type":49,"value":431},{"type":44,"tag":115,"props":4637,"children":4638},{"style":423},[4639],{"type":49,"value":1424},{"type":44,"tag":115,"props":4641,"children":4642},{"style":149},[4643],{"type":49,"value":709},{"type":44,"tag":115,"props":4645,"children":4646},{"style":134},[4647],{"type":49,"value":714},{"type":44,"tag":115,"props":4649,"children":4650},{"class":117,"line":3149},[4651,4655,4659],{"type":44,"tag":115,"props":4652,"children":4653},{"style":134},[4654],{"type":49,"value":2777},{"type":44,"tag":115,"props":4656,"children":4657},{"style":149},[4658],{"type":49,"value":709},{"type":44,"tag":115,"props":4660,"children":4661},{"style":134},[4662],{"type":49,"value":714},{"type":44,"tag":115,"props":4664,"children":4665},{"class":117,"line":3157},[4666],{"type":44,"tag":115,"props":4667,"children":4668},{"style":134},[4669],{"type":49,"value":695},{"type":44,"tag":115,"props":4671,"children":4672},{"class":117,"line":3169},[4673,4677],{"type":44,"tag":115,"props":4674,"children":4675},{"style":423},[4676],{"type":49,"value":709},{"type":44,"tag":115,"props":4678,"children":4679},{"style":134},[4680],{"type":49,"value":714},{"type":44,"tag":52,"props":4682,"children":4683},{},[4684,4685,4690,4692,4698],{"type":49,"value":1617},{"type":44,"tag":65,"props":4686,"children":4687},{},[4688],{"type":49,"value":4689},"inngest-steps",{"type":49,"value":4691}," for additional patterns including ",{"type":44,"tag":111,"props":4693,"children":4695},{"className":4694},[],[4696],{"type":49,"value":4697},"step.invoke",{"type":49,"value":431},{"type":44,"tag":84,"props":4700,"children":4702},{"id":4701},"system-events",[4703],{"type":49,"value":4704},"System Events",{"type":44,"tag":52,"props":4706,"children":4707},{},[4708],{"type":49,"value":4709},"Inngest emits system events for function lifecycle monitoring:",{"type":44,"tag":96,"props":4711,"children":4713},{"id":4712},"available-system-events",[4714],{"type":49,"value":4715},"Available System Events",{"type":44,"tag":103,"props":4717,"children":4719},{"className":105,"code":4718,"language":107,"meta":108,"style":108},"\u002F\u002F Function execution events\n\"inngest\u002Ffunction.failed\"; \u002F\u002F Function failed after retries\n\"inngest\u002Ffunction.finished\"; \u002F\u002F Function finished - completed or failed\n\"inngest\u002Ffunction.cancelled\"; \u002F\u002F Function cancelled before completion\n",[4720],{"type":44,"tag":111,"props":4721,"children":4722},{"__ignoreMap":108},[4723,4731,4756,4781],{"type":44,"tag":115,"props":4724,"children":4725},{"class":117,"line":118},[4726],{"type":44,"tag":115,"props":4727,"children":4728},{"style":170},[4729],{"type":49,"value":4730},"\u002F\u002F Function execution events\n",{"type":44,"tag":115,"props":4732,"children":4733},{"class":117,"line":145},[4734,4738,4743,4747,4751],{"type":44,"tag":115,"props":4735,"children":4736},{"style":134},[4737],{"type":49,"value":474},{"type":44,"tag":115,"props":4739,"children":4740},{"style":466},[4741],{"type":49,"value":4742},"inngest\u002Ffunction.failed",{"type":44,"tag":115,"props":4744,"children":4745},{"style":134},[4746],{"type":49,"value":474},{"type":44,"tag":115,"props":4748,"children":4749},{"style":134},[4750],{"type":49,"value":167},{"type":44,"tag":115,"props":4752,"children":4753},{"style":170},[4754],{"type":49,"value":4755}," \u002F\u002F Function failed after retries\n",{"type":44,"tag":115,"props":4757,"children":4758},{"class":117,"line":176},[4759,4763,4768,4772,4776],{"type":44,"tag":115,"props":4760,"children":4761},{"style":134},[4762],{"type":49,"value":474},{"type":44,"tag":115,"props":4764,"children":4765},{"style":466},[4766],{"type":49,"value":4767},"inngest\u002Ffunction.finished",{"type":44,"tag":115,"props":4769,"children":4770},{"style":134},[4771],{"type":49,"value":474},{"type":44,"tag":115,"props":4773,"children":4774},{"style":134},[4775],{"type":49,"value":167},{"type":44,"tag":115,"props":4777,"children":4778},{"style":170},[4779],{"type":49,"value":4780}," \u002F\u002F Function finished - completed or failed\n",{"type":44,"tag":115,"props":4782,"children":4783},{"class":117,"line":203},[4784,4788,4793,4797,4801],{"type":44,"tag":115,"props":4785,"children":4786},{"style":134},[4787],{"type":49,"value":474},{"type":44,"tag":115,"props":4789,"children":4790},{"style":466},[4791],{"type":49,"value":4792},"inngest\u002Ffunction.cancelled",{"type":44,"tag":115,"props":4794,"children":4795},{"style":134},[4796],{"type":49,"value":474},{"type":44,"tag":115,"props":4798,"children":4799},{"style":134},[4800],{"type":49,"value":167},{"type":44,"tag":115,"props":4802,"children":4803},{"style":170},[4804],{"type":49,"value":4805}," \u002F\u002F Function cancelled before completion\n",{"type":44,"tag":96,"props":4807,"children":4809},{"id":4808},"handling-failed-functions",[4810],{"type":49,"value":4811},"Handling Failed Functions",{"type":44,"tag":103,"props":4813,"children":4815},{"className":105,"code":4814,"language":107,"meta":108,"style":108},"const handleFailures = inngest.createFunction(\n  { id: \"handle-failed-functions\", triggers: [{ event: \"inngest\u002Ffunction.failed\" }] },\n  async ({ event, step }) => {\n    const { function_id, run_id, error } = event.data;\n\n    await step.run(\"log-failure\", async () => {\n      logger.error(\"Function failed\", {\n        functionId: function_id,\n        runId: run_id,\n        error: error.message,\n        stack: error.stack\n      });\n    });\n\n    \u002F\u002F Alert on critical function failures\n    if (function_id.includes(\"critical\")) {\n      await step.run(\"send-alert\", async () => {\n        return alerting.sendAlert({\n          title: `Critical function failed: ${function_id}`,\n          severity: \"high\",\n          runId: run_id\n        });\n      });\n    }\n\n    \u002F\u002F Auto-retry certain failures\n    if (error.code === \"RATE_LIMIT_EXCEEDED\") {\n      await step.run(\"schedule-retry\", async () => {\n        return inngest.send({\n          name: \"retry\u002Ffunction.requested\",\n          ts: Date.now() + 5 * 60 * 1000, \u002F\u002F Retry in 5 minutes\n          data: { originalRunId: run_id }\n        });\n      });\n    }\n  }\n);\n",[4816],{"type":44,"tag":111,"props":4817,"children":4818},{"__ignoreMap":108},[4819,4851,4931,4966,5024,5031,5087,5129,5149,5169,5198,5223,5238,5253,5260,5268,5321,5378,5408,5445,5474,5491,5507,5522,5529,5536,5544,5594,5650,5677,5706,5768,5801,5816,5831,5838,5845],{"type":44,"tag":115,"props":4820,"children":4821},{"class":117,"line":118},[4822,4826,4831,4835,4839,4843,4847],{"type":44,"tag":115,"props":4823,"children":4824},{"style":122},[4825],{"type":49,"value":1669},{"type":44,"tag":115,"props":4827,"children":4828},{"style":423},[4829],{"type":49,"value":4830}," handleFailures ",{"type":44,"tag":115,"props":4832,"children":4833},{"style":134},[4834],{"type":49,"value":1679},{"type":44,"tag":115,"props":4836,"children":4837},{"style":423},[4838],{"type":49,"value":426},{"type":44,"tag":115,"props":4840,"children":4841},{"style":134},[4842],{"type":49,"value":431},{"type":44,"tag":115,"props":4844,"children":4845},{"style":434},[4846],{"type":49,"value":2470},{"type":44,"tag":115,"props":4848,"children":4849},{"style":423},[4850],{"type":49,"value":2475},{"type":44,"tag":115,"props":4852,"children":4853},{"class":117,"line":145},[4854,4858,4862,4866,4870,4875,4879,4883,4887,4891,4895,4899,4903,4907,4911,4915,4919,4923,4927],{"type":44,"tag":115,"props":4855,"children":4856},{"style":134},[4857],{"type":49,"value":2483},{"type":44,"tag":115,"props":4859,"children":4860},{"style":149},[4861],{"type":49,"value":2488},{"type":44,"tag":115,"props":4863,"children":4864},{"style":134},[4865],{"type":49,"value":157},{"type":44,"tag":115,"props":4867,"children":4868},{"style":134},[4869],{"type":49,"value":463},{"type":44,"tag":115,"props":4871,"children":4872},{"style":466},[4873],{"type":49,"value":4874},"handle-failed-functions",{"type":44,"tag":115,"props":4876,"children":4877},{"style":134},[4878],{"type":49,"value":474},{"type":44,"tag":115,"props":4880,"children":4881},{"style":134},[4882],{"type":49,"value":297},{"type":44,"tag":115,"props":4884,"children":4885},{"style":149},[4886],{"type":49,"value":2514},{"type":44,"tag":115,"props":4888,"children":4889},{"style":134},[4890],{"type":49,"value":157},{"type":44,"tag":115,"props":4892,"children":4893},{"style":423},[4894],{"type":49,"value":1276},{"type":44,"tag":115,"props":4896,"children":4897},{"style":134},[4898],{"type":49,"value":2527},{"type":44,"tag":115,"props":4900,"children":4901},{"style":149},[4902],{"type":49,"value":2532},{"type":44,"tag":115,"props":4904,"children":4905},{"style":134},[4906],{"type":49,"value":157},{"type":44,"tag":115,"props":4908,"children":4909},{"style":134},[4910],{"type":49,"value":463},{"type":44,"tag":115,"props":4912,"children":4913},{"style":466},[4914],{"type":49,"value":4742},{"type":44,"tag":115,"props":4916,"children":4917},{"style":134},[4918],{"type":49,"value":474},{"type":44,"tag":115,"props":4920,"children":4921},{"style":134},[4922],{"type":49,"value":2553},{"type":44,"tag":115,"props":4924,"children":4925},{"style":423},[4926],{"type":49,"value":2558},{"type":44,"tag":115,"props":4928,"children":4929},{"style":134},[4930],{"type":49,"value":2563},{"type":44,"tag":115,"props":4932,"children":4933},{"class":117,"line":176},[4934,4938,4942,4946,4950,4954,4958,4962],{"type":44,"tag":115,"props":4935,"children":4936},{"style":122},[4937],{"type":49,"value":2571},{"type":44,"tag":115,"props":4939,"children":4940},{"style":134},[4941],{"type":49,"value":2576},{"type":44,"tag":115,"props":4943,"children":4944},{"style":2579},[4945],{"type":49,"value":2532},{"type":44,"tag":115,"props":4947,"children":4948},{"style":134},[4949],{"type":49,"value":297},{"type":44,"tag":115,"props":4951,"children":4952},{"style":2579},[4953],{"type":49,"value":2590},{"type":44,"tag":115,"props":4955,"children":4956},{"style":134},[4957],{"type":49,"value":2595},{"type":44,"tag":115,"props":4959,"children":4960},{"style":122},[4961],{"type":49,"value":2600},{"type":44,"tag":115,"props":4963,"children":4964},{"style":134},[4965],{"type":49,"value":142},{"type":44,"tag":115,"props":4967,"children":4968},{"class":117,"line":203},[4969,4973,4977,4982,4986,4991,4995,5000,5004,5008,5012,5016,5020],{"type":44,"tag":115,"props":4970,"children":4971},{"style":122},[4972],{"type":49,"value":4059},{"type":44,"tag":115,"props":4974,"children":4975},{"style":134},[4976],{"type":49,"value":2028},{"type":44,"tag":115,"props":4978,"children":4979},{"style":423},[4980],{"type":49,"value":4981}," function_id",{"type":44,"tag":115,"props":4983,"children":4984},{"style":134},[4985],{"type":49,"value":297},{"type":44,"tag":115,"props":4987,"children":4988},{"style":423},[4989],{"type":49,"value":4990}," run_id",{"type":44,"tag":115,"props":4992,"children":4993},{"style":134},[4994],{"type":49,"value":297},{"type":44,"tag":115,"props":4996,"children":4997},{"style":423},[4998],{"type":49,"value":4999}," error",{"type":44,"tag":115,"props":5001,"children":5002},{"style":134},[5003],{"type":49,"value":2553},{"type":44,"tag":115,"props":5005,"children":5006},{"style":134},[5007],{"type":49,"value":137},{"type":44,"tag":115,"props":5009,"children":5010},{"style":423},[5011],{"type":49,"value":2532},{"type":44,"tag":115,"props":5013,"children":5014},{"style":134},[5015],{"type":49,"value":431},{"type":44,"tag":115,"props":5017,"children":5018},{"style":423},[5019],{"type":49,"value":2712},{"type":44,"tag":115,"props":5021,"children":5022},{"style":134},[5023],{"type":49,"value":714},{"type":44,"tag":115,"props":5025,"children":5026},{"class":117,"line":24},[5027],{"type":44,"tag":115,"props":5028,"children":5029},{"emptyLinePlaceholder":842},[5030],{"type":49,"value":845},{"type":44,"tag":115,"props":5032,"children":5033},{"class":117,"line":367},[5034,5038,5042,5046,5050,5054,5058,5063,5067,5071,5075,5079,5083],{"type":44,"tag":115,"props":5035,"children":5036},{"style":417},[5037],{"type":49,"value":2612},{"type":44,"tag":115,"props":5039,"children":5040},{"style":423},[5041],{"type":49,"value":2590},{"type":44,"tag":115,"props":5043,"children":5044},{"style":134},[5045],{"type":49,"value":431},{"type":44,"tag":115,"props":5047,"children":5048},{"style":434},[5049],{"type":49,"value":2625},{"type":44,"tag":115,"props":5051,"children":5052},{"style":149},[5053],{"type":49,"value":442},{"type":44,"tag":115,"props":5055,"children":5056},{"style":134},[5057],{"type":49,"value":474},{"type":44,"tag":115,"props":5059,"children":5060},{"style":466},[5061],{"type":49,"value":5062},"log-failure",{"type":44,"tag":115,"props":5064,"children":5065},{"style":134},[5066],{"type":49,"value":474},{"type":44,"tag":115,"props":5068,"children":5069},{"style":134},[5070],{"type":49,"value":297},{"type":44,"tag":115,"props":5072,"children":5073},{"style":122},[5074],{"type":49,"value":2651},{"type":44,"tag":115,"props":5076,"children":5077},{"style":134},[5078],{"type":49,"value":2656},{"type":44,"tag":115,"props":5080,"children":5081},{"style":122},[5082],{"type":49,"value":2600},{"type":44,"tag":115,"props":5084,"children":5085},{"style":134},[5086],{"type":49,"value":142},{"type":44,"tag":115,"props":5088,"children":5089},{"class":117,"line":393},[5090,5095,5099,5104,5108,5112,5117,5121,5125],{"type":44,"tag":115,"props":5091,"children":5092},{"style":423},[5093],{"type":49,"value":5094},"      logger",{"type":44,"tag":115,"props":5096,"children":5097},{"style":134},[5098],{"type":49,"value":431},{"type":44,"tag":115,"props":5100,"children":5101},{"style":434},[5102],{"type":49,"value":5103},"error",{"type":44,"tag":115,"props":5105,"children":5106},{"style":149},[5107],{"type":49,"value":442},{"type":44,"tag":115,"props":5109,"children":5110},{"style":134},[5111],{"type":49,"value":474},{"type":44,"tag":115,"props":5113,"children":5114},{"style":466},[5115],{"type":49,"value":5116},"Function failed",{"type":44,"tag":115,"props":5118,"children":5119},{"style":134},[5120],{"type":49,"value":474},{"type":44,"tag":115,"props":5122,"children":5123},{"style":134},[5124],{"type":49,"value":297},{"type":44,"tag":115,"props":5126,"children":5127},{"style":134},[5128],{"type":49,"value":142},{"type":44,"tag":115,"props":5130,"children":5131},{"class":117,"line":606},[5132,5137,5141,5145],{"type":44,"tag":115,"props":5133,"children":5134},{"style":149},[5135],{"type":49,"value":5136},"        functionId",{"type":44,"tag":115,"props":5138,"children":5139},{"style":134},[5140],{"type":49,"value":157},{"type":44,"tag":115,"props":5142,"children":5143},{"style":423},[5144],{"type":49,"value":4981},{"type":44,"tag":115,"props":5146,"children":5147},{"style":134},[5148],{"type":49,"value":479},{"type":44,"tag":115,"props":5150,"children":5151},{"class":117,"line":623},[5152,5157,5161,5165],{"type":44,"tag":115,"props":5153,"children":5154},{"style":149},[5155],{"type":49,"value":5156},"        runId",{"type":44,"tag":115,"props":5158,"children":5159},{"style":134},[5160],{"type":49,"value":157},{"type":44,"tag":115,"props":5162,"children":5163},{"style":423},[5164],{"type":49,"value":4990},{"type":44,"tag":115,"props":5166,"children":5167},{"style":134},[5168],{"type":49,"value":479},{"type":44,"tag":115,"props":5170,"children":5171},{"class":117,"line":653},[5172,5177,5181,5185,5189,5194],{"type":44,"tag":115,"props":5173,"children":5174},{"style":149},[5175],{"type":49,"value":5176},"        error",{"type":44,"tag":115,"props":5178,"children":5179},{"style":134},[5180],{"type":49,"value":157},{"type":44,"tag":115,"props":5182,"children":5183},{"style":423},[5184],{"type":49,"value":4999},{"type":44,"tag":115,"props":5186,"children":5187},{"style":134},[5188],{"type":49,"value":431},{"type":44,"tag":115,"props":5190,"children":5191},{"style":423},[5192],{"type":49,"value":5193},"message",{"type":44,"tag":115,"props":5195,"children":5196},{"style":134},[5197],{"type":49,"value":479},{"type":44,"tag":115,"props":5199,"children":5200},{"class":117,"line":680},[5201,5206,5210,5214,5218],{"type":44,"tag":115,"props":5202,"children":5203},{"style":149},[5204],{"type":49,"value":5205},"        stack",{"type":44,"tag":115,"props":5207,"children":5208},{"style":134},[5209],{"type":49,"value":157},{"type":44,"tag":115,"props":5211,"children":5212},{"style":423},[5213],{"type":49,"value":4999},{"type":44,"tag":115,"props":5215,"children":5216},{"style":134},[5217],{"type":49,"value":431},{"type":44,"tag":115,"props":5219,"children":5220},{"style":423},[5221],{"type":49,"value":5222},"stack\n",{"type":44,"tag":115,"props":5224,"children":5225},{"class":117,"line":689},[5226,5230,5234],{"type":44,"tag":115,"props":5227,"children":5228},{"style":134},[5229],{"type":49,"value":2760},{"type":44,"tag":115,"props":5231,"children":5232},{"style":149},[5233],{"type":49,"value":709},{"type":44,"tag":115,"props":5235,"children":5236},{"style":134},[5237],{"type":49,"value":714},{"type":44,"tag":115,"props":5239,"children":5240},{"class":117,"line":698},[5241,5245,5249],{"type":44,"tag":115,"props":5242,"children":5243},{"style":134},[5244],{"type":49,"value":2777},{"type":44,"tag":115,"props":5246,"children":5247},{"style":149},[5248],{"type":49,"value":709},{"type":44,"tag":115,"props":5250,"children":5251},{"style":134},[5252],{"type":49,"value":714},{"type":44,"tag":115,"props":5254,"children":5255},{"class":117,"line":956},[5256],{"type":44,"tag":115,"props":5257,"children":5258},{"emptyLinePlaceholder":842},[5259],{"type":49,"value":845},{"type":44,"tag":115,"props":5261,"children":5262},{"class":117,"line":982},[5263],{"type":44,"tag":115,"props":5264,"children":5265},{"style":170},[5266],{"type":49,"value":5267},"    \u002F\u002F Alert on critical function failures\n",{"type":44,"tag":115,"props":5269,"children":5270},{"class":117,"line":2667},[5271,5276,5281,5286,5290,5295,5299,5303,5308,5312,5317],{"type":44,"tag":115,"props":5272,"children":5273},{"style":417},[5274],{"type":49,"value":5275},"    if",{"type":44,"tag":115,"props":5277,"children":5278},{"style":149},[5279],{"type":49,"value":5280}," (",{"type":44,"tag":115,"props":5282,"children":5283},{"style":423},[5284],{"type":49,"value":5285},"function_id",{"type":44,"tag":115,"props":5287,"children":5288},{"style":134},[5289],{"type":49,"value":431},{"type":44,"tag":115,"props":5291,"children":5292},{"style":434},[5293],{"type":49,"value":5294},"includes",{"type":44,"tag":115,"props":5296,"children":5297},{"style":149},[5298],{"type":49,"value":442},{"type":44,"tag":115,"props":5300,"children":5301},{"style":134},[5302],{"type":49,"value":474},{"type":44,"tag":115,"props":5304,"children":5305},{"style":466},[5306],{"type":49,"value":5307},"critical",{"type":44,"tag":115,"props":5309,"children":5310},{"style":134},[5311],{"type":49,"value":474},{"type":44,"tag":115,"props":5313,"children":5314},{"style":149},[5315],{"type":49,"value":5316},")) ",{"type":44,"tag":115,"props":5318,"children":5319},{"style":134},[5320],{"type":49,"value":447},{"type":44,"tag":115,"props":5322,"children":5323},{"class":117,"line":2689},[5324,5329,5333,5337,5341,5345,5349,5354,5358,5362,5366,5370,5374],{"type":44,"tag":115,"props":5325,"children":5326},{"style":417},[5327],{"type":49,"value":5328},"      await",{"type":44,"tag":115,"props":5330,"children":5331},{"style":423},[5332],{"type":49,"value":2590},{"type":44,"tag":115,"props":5334,"children":5335},{"style":134},[5336],{"type":49,"value":431},{"type":44,"tag":115,"props":5338,"children":5339},{"style":434},[5340],{"type":49,"value":2625},{"type":44,"tag":115,"props":5342,"children":5343},{"style":149},[5344],{"type":49,"value":442},{"type":44,"tag":115,"props":5346,"children":5347},{"style":134},[5348],{"type":49,"value":474},{"type":44,"tag":115,"props":5350,"children":5351},{"style":466},[5352],{"type":49,"value":5353},"send-alert",{"type":44,"tag":115,"props":5355,"children":5356},{"style":134},[5357],{"type":49,"value":474},{"type":44,"tag":115,"props":5359,"children":5360},{"style":134},[5361],{"type":49,"value":297},{"type":44,"tag":115,"props":5363,"children":5364},{"style":122},[5365],{"type":49,"value":2651},{"type":44,"tag":115,"props":5367,"children":5368},{"style":134},[5369],{"type":49,"value":2656},{"type":44,"tag":115,"props":5371,"children":5372},{"style":122},[5373],{"type":49,"value":2600},{"type":44,"tag":115,"props":5375,"children":5376},{"style":134},[5377],{"type":49,"value":142},{"type":44,"tag":115,"props":5379,"children":5380},{"class":117,"line":2728},[5381,5386,5391,5395,5400,5404],{"type":44,"tag":115,"props":5382,"children":5383},{"style":417},[5384],{"type":49,"value":5385},"        return",{"type":44,"tag":115,"props":5387,"children":5388},{"style":423},[5389],{"type":49,"value":5390}," alerting",{"type":44,"tag":115,"props":5392,"children":5393},{"style":134},[5394],{"type":49,"value":431},{"type":44,"tag":115,"props":5396,"children":5397},{"style":434},[5398],{"type":49,"value":5399},"sendAlert",{"type":44,"tag":115,"props":5401,"children":5402},{"style":149},[5403],{"type":49,"value":442},{"type":44,"tag":115,"props":5405,"children":5406},{"style":134},[5407],{"type":49,"value":447},{"type":44,"tag":115,"props":5409,"children":5410},{"class":117,"line":2754},[5411,5416,5420,5424,5429,5433,5437,5441],{"type":44,"tag":115,"props":5412,"children":5413},{"style":149},[5414],{"type":49,"value":5415},"          title",{"type":44,"tag":115,"props":5417,"children":5418},{"style":134},[5419],{"type":49,"value":157},{"type":44,"tag":115,"props":5421,"children":5422},{"style":134},[5423],{"type":49,"value":1371},{"type":44,"tag":115,"props":5425,"children":5426},{"style":466},[5427],{"type":49,"value":5428},"Critical function failed: ",{"type":44,"tag":115,"props":5430,"children":5431},{"style":134},[5432],{"type":49,"value":1381},{"type":44,"tag":115,"props":5434,"children":5435},{"style":423},[5436],{"type":49,"value":5285},{"type":44,"tag":115,"props":5438,"children":5439},{"style":134},[5440],{"type":49,"value":1391},{"type":44,"tag":115,"props":5442,"children":5443},{"style":134},[5444],{"type":49,"value":479},{"type":44,"tag":115,"props":5446,"children":5447},{"class":117,"line":2771},[5448,5453,5457,5461,5466,5470],{"type":44,"tag":115,"props":5449,"children":5450},{"style":149},[5451],{"type":49,"value":5452},"          severity",{"type":44,"tag":115,"props":5454,"children":5455},{"style":134},[5456],{"type":49,"value":157},{"type":44,"tag":115,"props":5458,"children":5459},{"style":134},[5460],{"type":49,"value":463},{"type":44,"tag":115,"props":5462,"children":5463},{"style":466},[5464],{"type":49,"value":5465},"high",{"type":44,"tag":115,"props":5467,"children":5468},{"style":134},[5469],{"type":49,"value":474},{"type":44,"tag":115,"props":5471,"children":5472},{"style":134},[5473],{"type":49,"value":479},{"type":44,"tag":115,"props":5475,"children":5476},{"class":117,"line":2788},[5477,5482,5486],{"type":44,"tag":115,"props":5478,"children":5479},{"style":149},[5480],{"type":49,"value":5481},"          runId",{"type":44,"tag":115,"props":5483,"children":5484},{"style":134},[5485],{"type":49,"value":157},{"type":44,"tag":115,"props":5487,"children":5488},{"style":423},[5489],{"type":49,"value":5490}," run_id\n",{"type":44,"tag":115,"props":5492,"children":5493},{"class":117,"line":2796},[5494,5499,5503],{"type":44,"tag":115,"props":5495,"children":5496},{"style":134},[5497],{"type":49,"value":5498},"        }",{"type":44,"tag":115,"props":5500,"children":5501},{"style":149},[5502],{"type":49,"value":709},{"type":44,"tag":115,"props":5504,"children":5505},{"style":134},[5506],{"type":49,"value":714},{"type":44,"tag":115,"props":5508,"children":5509},{"class":117,"line":2808},[5510,5514,5518],{"type":44,"tag":115,"props":5511,"children":5512},{"style":134},[5513],{"type":49,"value":2760},{"type":44,"tag":115,"props":5515,"children":5516},{"style":149},[5517],{"type":49,"value":709},{"type":44,"tag":115,"props":5519,"children":5520},{"style":134},[5521],{"type":49,"value":714},{"type":44,"tag":115,"props":5523,"children":5524},{"class":117,"line":2816},[5525],{"type":44,"tag":115,"props":5526,"children":5527},{"style":134},[5528],{"type":49,"value":686},{"type":44,"tag":115,"props":5530,"children":5531},{"class":117,"line":2849},[5532],{"type":44,"tag":115,"props":5533,"children":5534},{"emptyLinePlaceholder":842},[5535],{"type":49,"value":845},{"type":44,"tag":115,"props":5537,"children":5538},{"class":117,"line":20},[5539],{"type":44,"tag":115,"props":5540,"children":5541},{"style":170},[5542],{"type":49,"value":5543},"    \u002F\u002F Auto-retry certain failures\n",{"type":44,"tag":115,"props":5545,"children":5546},{"class":117,"line":2965},[5547,5551,5555,5559,5563,5567,5572,5576,5581,5585,5590],{"type":44,"tag":115,"props":5548,"children":5549},{"style":417},[5550],{"type":49,"value":5275},{"type":44,"tag":115,"props":5552,"children":5553},{"style":149},[5554],{"type":49,"value":5280},{"type":44,"tag":115,"props":5556,"children":5557},{"style":423},[5558],{"type":49,"value":5103},{"type":44,"tag":115,"props":5560,"children":5561},{"style":134},[5562],{"type":49,"value":431},{"type":44,"tag":115,"props":5564,"children":5565},{"style":423},[5566],{"type":49,"value":111},{"type":44,"tag":115,"props":5568,"children":5569},{"style":134},[5570],{"type":49,"value":5571}," ===",{"type":44,"tag":115,"props":5573,"children":5574},{"style":134},[5575],{"type":49,"value":463},{"type":44,"tag":115,"props":5577,"children":5578},{"style":466},[5579],{"type":49,"value":5580},"RATE_LIMIT_EXCEEDED",{"type":44,"tag":115,"props":5582,"children":5583},{"style":134},[5584],{"type":49,"value":474},{"type":44,"tag":115,"props":5586,"children":5587},{"style":149},[5588],{"type":49,"value":5589},") ",{"type":44,"tag":115,"props":5591,"children":5592},{"style":134},[5593],{"type":49,"value":447},{"type":44,"tag":115,"props":5595,"children":5596},{"class":117,"line":3022},[5597,5601,5605,5609,5613,5617,5621,5626,5630,5634,5638,5642,5646],{"type":44,"tag":115,"props":5598,"children":5599},{"style":417},[5600],{"type":49,"value":5328},{"type":44,"tag":115,"props":5602,"children":5603},{"style":423},[5604],{"type":49,"value":2590},{"type":44,"tag":115,"props":5606,"children":5607},{"style":134},[5608],{"type":49,"value":431},{"type":44,"tag":115,"props":5610,"children":5611},{"style":434},[5612],{"type":49,"value":2625},{"type":44,"tag":115,"props":5614,"children":5615},{"style":149},[5616],{"type":49,"value":442},{"type":44,"tag":115,"props":5618,"children":5619},{"style":134},[5620],{"type":49,"value":474},{"type":44,"tag":115,"props":5622,"children":5623},{"style":466},[5624],{"type":49,"value":5625},"schedule-retry",{"type":44,"tag":115,"props":5627,"children":5628},{"style":134},[5629],{"type":49,"value":474},{"type":44,"tag":115,"props":5631,"children":5632},{"style":134},[5633],{"type":49,"value":297},{"type":44,"tag":115,"props":5635,"children":5636},{"style":122},[5637],{"type":49,"value":2651},{"type":44,"tag":115,"props":5639,"children":5640},{"style":134},[5641],{"type":49,"value":2656},{"type":44,"tag":115,"props":5643,"children":5644},{"style":122},[5645],{"type":49,"value":2600},{"type":44,"tag":115,"props":5647,"children":5648},{"style":134},[5649],{"type":49,"value":142},{"type":44,"tag":115,"props":5651,"children":5652},{"class":117,"line":3061},[5653,5657,5661,5665,5669,5673],{"type":44,"tag":115,"props":5654,"children":5655},{"style":417},[5656],{"type":49,"value":5385},{"type":44,"tag":115,"props":5658,"children":5659},{"style":423},[5660],{"type":49,"value":426},{"type":44,"tag":115,"props":5662,"children":5663},{"style":134},[5664],{"type":49,"value":431},{"type":44,"tag":115,"props":5666,"children":5667},{"style":434},[5668],{"type":49,"value":437},{"type":44,"tag":115,"props":5670,"children":5671},{"style":149},[5672],{"type":49,"value":442},{"type":44,"tag":115,"props":5674,"children":5675},{"style":134},[5676],{"type":49,"value":447},{"type":44,"tag":115,"props":5678,"children":5679},{"class":117,"line":3099},[5680,5685,5689,5693,5698,5702],{"type":44,"tag":115,"props":5681,"children":5682},{"style":149},[5683],{"type":49,"value":5684},"          name",{"type":44,"tag":115,"props":5686,"children":5687},{"style":134},[5688],{"type":49,"value":157},{"type":44,"tag":115,"props":5690,"children":5691},{"style":134},[5692],{"type":49,"value":463},{"type":44,"tag":115,"props":5694,"children":5695},{"style":466},[5696],{"type":49,"value":5697},"retry\u002Ffunction.requested",{"type":44,"tag":115,"props":5699,"children":5700},{"style":134},[5701],{"type":49,"value":474},{"type":44,"tag":115,"props":5703,"children":5704},{"style":134},[5705],{"type":49,"value":479},{"type":44,"tag":115,"props":5707,"children":5708},{"class":117,"line":3117},[5709,5714,5718,5722,5726,5730,5734,5738,5743,5747,5751,5755,5759,5763],{"type":44,"tag":115,"props":5710,"children":5711},{"style":149},[5712],{"type":49,"value":5713},"          ts",{"type":44,"tag":115,"props":5715,"children":5716},{"style":134},[5717],{"type":49,"value":157},{"type":44,"tag":115,"props":5719,"children":5720},{"style":423},[5721],{"type":49,"value":1684},{"type":44,"tag":115,"props":5723,"children":5724},{"style":134},[5725],{"type":49,"value":431},{"type":44,"tag":115,"props":5727,"children":5728},{"style":434},[5729],{"type":49,"value":1693},{"type":44,"tag":115,"props":5731,"children":5732},{"style":149},[5733],{"type":49,"value":1698},{"type":44,"tag":115,"props":5735,"children":5736},{"style":134},[5737],{"type":49,"value":1703},{"type":44,"tag":115,"props":5739,"children":5740},{"style":596},[5741],{"type":49,"value":5742}," 5",{"type":44,"tag":115,"props":5744,"children":5745},{"style":134},[5746],{"type":49,"value":1713},{"type":44,"tag":115,"props":5748,"children":5749},{"style":596},[5750],{"type":49,"value":1708},{"type":44,"tag":115,"props":5752,"children":5753},{"style":134},[5754],{"type":49,"value":1713},{"type":44,"tag":115,"props":5756,"children":5757},{"style":596},[5758],{"type":49,"value":599},{"type":44,"tag":115,"props":5760,"children":5761},{"style":134},[5762],{"type":49,"value":297},{"type":44,"tag":115,"props":5764,"children":5765},{"style":170},[5766],{"type":49,"value":5767}," \u002F\u002F Retry in 5 minutes\n",{"type":44,"tag":115,"props":5769,"children":5770},{"class":117,"line":3133},[5771,5776,5780,5784,5789,5793,5797],{"type":44,"tag":115,"props":5772,"children":5773},{"style":149},[5774],{"type":49,"value":5775},"          data",{"type":44,"tag":115,"props":5777,"children":5778},{"style":134},[5779],{"type":49,"value":157},{"type":44,"tag":115,"props":5781,"children":5782},{"style":134},[5783],{"type":49,"value":2028},{"type":44,"tag":115,"props":5785,"children":5786},{"style":149},[5787],{"type":49,"value":5788}," originalRunId",{"type":44,"tag":115,"props":5790,"children":5791},{"style":134},[5792],{"type":49,"value":157},{"type":44,"tag":115,"props":5794,"children":5795},{"style":423},[5796],{"type":49,"value":4990},{"type":44,"tag":115,"props":5798,"children":5799},{"style":134},[5800],{"type":49,"value":2055},{"type":44,"tag":115,"props":5802,"children":5803},{"class":117,"line":3149},[5804,5808,5812],{"type":44,"tag":115,"props":5805,"children":5806},{"style":134},[5807],{"type":49,"value":5498},{"type":44,"tag":115,"props":5809,"children":5810},{"style":149},[5811],{"type":49,"value":709},{"type":44,"tag":115,"props":5813,"children":5814},{"style":134},[5815],{"type":49,"value":714},{"type":44,"tag":115,"props":5817,"children":5818},{"class":117,"line":3157},[5819,5823,5827],{"type":44,"tag":115,"props":5820,"children":5821},{"style":134},[5822],{"type":49,"value":2760},{"type":44,"tag":115,"props":5824,"children":5825},{"style":149},[5826],{"type":49,"value":709},{"type":44,"tag":115,"props":5828,"children":5829},{"style":134},[5830],{"type":49,"value":714},{"type":44,"tag":115,"props":5832,"children":5833},{"class":117,"line":3169},[5834],{"type":44,"tag":115,"props":5835,"children":5836},{"style":134},[5837],{"type":49,"value":686},{"type":44,"tag":115,"props":5839,"children":5840},{"class":117,"line":3177},[5841],{"type":44,"tag":115,"props":5842,"children":5843},{"style":134},[5844],{"type":49,"value":695},{"type":44,"tag":115,"props":5846,"children":5847},{"class":117,"line":3210},[5848,5852],{"type":44,"tag":115,"props":5849,"children":5850},{"style":423},[5851],{"type":49,"value":709},{"type":44,"tag":115,"props":5853,"children":5854},{"style":134},[5855],{"type":49,"value":714},{"type":44,"tag":84,"props":5857,"children":5859},{"id":5858},"sending-events",[5860],{"type":49,"value":5861},"Sending Events",{"type":44,"tag":96,"props":5863,"children":5865},{"id":5864},"client-setup",[5866],{"type":49,"value":5867},"Client Setup",{"type":44,"tag":103,"props":5869,"children":5871},{"className":105,"code":5870,"language":107,"meta":108,"style":108},"\u002F\u002F inngest\u002Fclient.ts\nimport { Inngest } from \"inngest\";\n\nexport const inngest = new Inngest({\n  id: \"my-app\"\n});\n\u002F\u002F You must set INNGEST_EVENT_KEY environment variable in production\n",[5872],{"type":44,"tag":111,"props":5873,"children":5874},{"__ignoreMap":108},[5875,5883,5925,5932,5971,5995,6010],{"type":44,"tag":115,"props":5876,"children":5877},{"class":117,"line":118},[5878],{"type":44,"tag":115,"props":5879,"children":5880},{"style":170},[5881],{"type":49,"value":5882},"\u002F\u002F inngest\u002Fclient.ts\n",{"type":44,"tag":115,"props":5884,"children":5885},{"class":117,"line":145},[5886,5891,5895,5900,5904,5909,5913,5917,5921],{"type":44,"tag":115,"props":5887,"children":5888},{"style":417},[5889],{"type":49,"value":5890},"import",{"type":44,"tag":115,"props":5892,"children":5893},{"style":134},[5894],{"type":49,"value":2028},{"type":44,"tag":115,"props":5896,"children":5897},{"style":423},[5898],{"type":49,"value":5899}," Inngest",{"type":44,"tag":115,"props":5901,"children":5902},{"style":134},[5903],{"type":49,"value":2553},{"type":44,"tag":115,"props":5905,"children":5906},{"style":417},[5907],{"type":49,"value":5908}," from",{"type":44,"tag":115,"props":5910,"children":5911},{"style":134},[5912],{"type":49,"value":463},{"type":44,"tag":115,"props":5914,"children":5915},{"style":466},[5916],{"type":49,"value":8},{"type":44,"tag":115,"props":5918,"children":5919},{"style":134},[5920],{"type":49,"value":474},{"type":44,"tag":115,"props":5922,"children":5923},{"style":134},[5924],{"type":49,"value":714},{"type":44,"tag":115,"props":5926,"children":5927},{"class":117,"line":176},[5928],{"type":44,"tag":115,"props":5929,"children":5930},{"emptyLinePlaceholder":842},[5931],{"type":49,"value":845},{"type":44,"tag":115,"props":5933,"children":5934},{"class":117,"line":203},[5935,5940,5945,5950,5954,5959,5963,5967],{"type":44,"tag":115,"props":5936,"children":5937},{"style":417},[5938],{"type":49,"value":5939},"export",{"type":44,"tag":115,"props":5941,"children":5942},{"style":122},[5943],{"type":49,"value":5944}," const",{"type":44,"tag":115,"props":5946,"children":5947},{"style":423},[5948],{"type":49,"value":5949}," inngest ",{"type":44,"tag":115,"props":5951,"children":5952},{"style":134},[5953],{"type":49,"value":1679},{"type":44,"tag":115,"props":5955,"children":5956},{"style":134},[5957],{"type":49,"value":5958}," new",{"type":44,"tag":115,"props":5960,"children":5961},{"style":434},[5962],{"type":49,"value":5899},{"type":44,"tag":115,"props":5964,"children":5965},{"style":423},[5966],{"type":49,"value":442},{"type":44,"tag":115,"props":5968,"children":5969},{"style":134},[5970],{"type":49,"value":447},{"type":44,"tag":115,"props":5972,"children":5973},{"class":117,"line":24},[5974,5978,5982,5986,5991],{"type":44,"tag":115,"props":5975,"children":5976},{"style":149},[5977],{"type":49,"value":320},{"type":44,"tag":115,"props":5979,"children":5980},{"style":134},[5981],{"type":49,"value":157},{"type":44,"tag":115,"props":5983,"children":5984},{"style":134},[5985],{"type":49,"value":463},{"type":44,"tag":115,"props":5987,"children":5988},{"style":466},[5989],{"type":49,"value":5990},"my-app",{"type":44,"tag":115,"props":5992,"children":5993},{"style":134},[5994],{"type":49,"value":677},{"type":44,"tag":115,"props":5996,"children":5997},{"class":117,"line":367},[5998,6002,6006],{"type":44,"tag":115,"props":5999,"children":6000},{"style":134},[6001],{"type":49,"value":704},{"type":44,"tag":115,"props":6003,"children":6004},{"style":423},[6005],{"type":49,"value":709},{"type":44,"tag":115,"props":6007,"children":6008},{"style":134},[6009],{"type":49,"value":714},{"type":44,"tag":115,"props":6011,"children":6012},{"class":117,"line":393},[6013],{"type":44,"tag":115,"props":6014,"children":6015},{"style":170},[6016],{"type":49,"value":6017},"\u002F\u002F You must set INNGEST_EVENT_KEY environment variable in production\n",{"type":44,"tag":96,"props":6019,"children":6021},{"id":6020},"single-event",[6022],{"type":49,"value":6023},"Single Event",{"type":44,"tag":103,"props":6025,"children":6027},{"className":105,"code":6026,"language":107,"meta":108,"style":108},"const result = await inngest.send({\n  name: \"order\u002Fplaced\",\n  data: {\n    orderId: \"ord_123\",\n    customerId: \"cus_456\",\n    amount: 2500,\n    items: [\n      { id: \"item_1\", quantity: 2 },\n      { id: \"item_2\", quantity: 1 }\n    ]\n  }\n});\n\n\u002F\u002F Returns event IDs for tracking\nconsole.log(result.ids); \u002F\u002F [\"01HQ8PTAESBZPBDS8JTRZZYY3S\"]\n",[6028],{"type":44,"tag":111,"props":6029,"children":6030},{"__ignoreMap":108},[6031,6071,6099,6114,6143,6171,6191,6206,6256,6305,6313,6320,6335,6342,6350],{"type":44,"tag":115,"props":6032,"children":6033},{"class":117,"line":118},[6034,6038,6043,6047,6051,6055,6059,6063,6067],{"type":44,"tag":115,"props":6035,"children":6036},{"style":122},[6037],{"type":49,"value":1669},{"type":44,"tag":115,"props":6039,"children":6040},{"style":423},[6041],{"type":49,"value":6042}," result ",{"type":44,"tag":115,"props":6044,"children":6045},{"style":134},[6046],{"type":49,"value":1679},{"type":44,"tag":115,"props":6048,"children":6049},{"style":417},[6050],{"type":49,"value":4099},{"type":44,"tag":115,"props":6052,"children":6053},{"style":423},[6054],{"type":49,"value":426},{"type":44,"tag":115,"props":6056,"children":6057},{"style":134},[6058],{"type":49,"value":431},{"type":44,"tag":115,"props":6060,"children":6061},{"style":434},[6062],{"type":49,"value":437},{"type":44,"tag":115,"props":6064,"children":6065},{"style":423},[6066],{"type":49,"value":442},{"type":44,"tag":115,"props":6068,"children":6069},{"style":134},[6070],{"type":49,"value":447},{"type":44,"tag":115,"props":6072,"children":6073},{"class":117,"line":145},[6074,6078,6082,6086,6091,6095],{"type":44,"tag":115,"props":6075,"children":6076},{"style":149},[6077],{"type":49,"value":152},{"type":44,"tag":115,"props":6079,"children":6080},{"style":134},[6081],{"type":49,"value":157},{"type":44,"tag":115,"props":6083,"children":6084},{"style":134},[6085],{"type":49,"value":463},{"type":44,"tag":115,"props":6087,"children":6088},{"style":466},[6089],{"type":49,"value":6090},"order\u002Fplaced",{"type":44,"tag":115,"props":6092,"children":6093},{"style":134},[6094],{"type":49,"value":474},{"type":44,"tag":115,"props":6096,"children":6097},{"style":134},[6098],{"type":49,"value":479},{"type":44,"tag":115,"props":6100,"children":6101},{"class":117,"line":176},[6102,6106,6110],{"type":44,"tag":115,"props":6103,"children":6104},{"style":149},[6105],{"type":49,"value":182},{"type":44,"tag":115,"props":6107,"children":6108},{"style":134},[6109],{"type":49,"value":157},{"type":44,"tag":115,"props":6111,"children":6112},{"style":134},[6113],{"type":49,"value":142},{"type":44,"tag":115,"props":6115,"children":6116},{"class":117,"line":203},[6117,6122,6126,6130,6135,6139],{"type":44,"tag":115,"props":6118,"children":6119},{"style":149},[6120],{"type":49,"value":6121},"    orderId",{"type":44,"tag":115,"props":6123,"children":6124},{"style":134},[6125],{"type":49,"value":157},{"type":44,"tag":115,"props":6127,"children":6128},{"style":134},[6129],{"type":49,"value":463},{"type":44,"tag":115,"props":6131,"children":6132},{"style":466},[6133],{"type":49,"value":6134},"ord_123",{"type":44,"tag":115,"props":6136,"children":6137},{"style":134},[6138],{"type":49,"value":474},{"type":44,"tag":115,"props":6140,"children":6141},{"style":134},[6142],{"type":49,"value":479},{"type":44,"tag":115,"props":6144,"children":6145},{"class":117,"line":24},[6146,6150,6154,6158,6163,6167],{"type":44,"tag":115,"props":6147,"children":6148},{"style":149},[6149],{"type":49,"value":502},{"type":44,"tag":115,"props":6151,"children":6152},{"style":134},[6153],{"type":49,"value":157},{"type":44,"tag":115,"props":6155,"children":6156},{"style":134},[6157],{"type":49,"value":463},{"type":44,"tag":115,"props":6159,"children":6160},{"style":466},[6161],{"type":49,"value":6162},"cus_456",{"type":44,"tag":115,"props":6164,"children":6165},{"style":134},[6166],{"type":49,"value":474},{"type":44,"tag":115,"props":6168,"children":6169},{"style":134},[6170],{"type":49,"value":479},{"type":44,"tag":115,"props":6172,"children":6173},{"class":117,"line":367},[6174,6178,6182,6187],{"type":44,"tag":115,"props":6175,"children":6176},{"style":149},[6177],{"type":49,"value":589},{"type":44,"tag":115,"props":6179,"children":6180},{"style":134},[6181],{"type":49,"value":157},{"type":44,"tag":115,"props":6183,"children":6184},{"style":596},[6185],{"type":49,"value":6186}," 2500",{"type":44,"tag":115,"props":6188,"children":6189},{"style":134},[6190],{"type":49,"value":479},{"type":44,"tag":115,"props":6192,"children":6193},{"class":117,"line":393},[6194,6198,6202],{"type":44,"tag":115,"props":6195,"children":6196},{"style":149},[6197],{"type":49,"value":1267},{"type":44,"tag":115,"props":6199,"children":6200},{"style":134},[6201],{"type":49,"value":157},{"type":44,"tag":115,"props":6203,"children":6204},{"style":423},[6205],{"type":49,"value":1948},{"type":44,"tag":115,"props":6207,"children":6208},{"class":117,"line":606},[6209,6213,6217,6221,6225,6230,6234,6238,6243,6247,6252],{"type":44,"tag":115,"props":6210,"children":6211},{"style":134},[6212],{"type":49,"value":3860},{"type":44,"tag":115,"props":6214,"children":6215},{"style":149},[6216],{"type":49,"value":2488},{"type":44,"tag":115,"props":6218,"children":6219},{"style":134},[6220],{"type":49,"value":157},{"type":44,"tag":115,"props":6222,"children":6223},{"style":134},[6224],{"type":49,"value":463},{"type":44,"tag":115,"props":6226,"children":6227},{"style":466},[6228],{"type":49,"value":6229},"item_1",{"type":44,"tag":115,"props":6231,"children":6232},{"style":134},[6233],{"type":49,"value":474},{"type":44,"tag":115,"props":6235,"children":6236},{"style":134},[6237],{"type":49,"value":297},{"type":44,"tag":115,"props":6239,"children":6240},{"style":149},[6241],{"type":49,"value":6242}," quantity",{"type":44,"tag":115,"props":6244,"children":6245},{"style":134},[6246],{"type":49,"value":157},{"type":44,"tag":115,"props":6248,"children":6249},{"style":596},[6250],{"type":49,"value":6251}," 2",{"type":44,"tag":115,"props":6253,"children":6254},{"style":134},[6255],{"type":49,"value":3912},{"type":44,"tag":115,"props":6257,"children":6258},{"class":117,"line":623},[6259,6263,6267,6271,6275,6280,6284,6288,6292,6296,6301],{"type":44,"tag":115,"props":6260,"children":6261},{"style":134},[6262],{"type":49,"value":3860},{"type":44,"tag":115,"props":6264,"children":6265},{"style":149},[6266],{"type":49,"value":2488},{"type":44,"tag":115,"props":6268,"children":6269},{"style":134},[6270],{"type":49,"value":157},{"type":44,"tag":115,"props":6272,"children":6273},{"style":134},[6274],{"type":49,"value":463},{"type":44,"tag":115,"props":6276,"children":6277},{"style":466},[6278],{"type":49,"value":6279},"item_2",{"type":44,"tag":115,"props":6281,"children":6282},{"style":134},[6283],{"type":49,"value":474},{"type":44,"tag":115,"props":6285,"children":6286},{"style":134},[6287],{"type":49,"value":297},{"type":44,"tag":115,"props":6289,"children":6290},{"style":149},[6291],{"type":49,"value":6242},{"type":44,"tag":115,"props":6293,"children":6294},{"style":134},[6295],{"type":49,"value":157},{"type":44,"tag":115,"props":6297,"children":6298},{"style":596},[6299],{"type":49,"value":6300}," 1",{"type":44,"tag":115,"props":6302,"children":6303},{"style":134},[6304],{"type":49,"value":2055},{"type":44,"tag":115,"props":6306,"children":6307},{"class":117,"line":653},[6308],{"type":44,"tag":115,"props":6309,"children":6310},{"style":423},[6311],{"type":49,"value":6312},"    ]\n",{"type":44,"tag":115,"props":6314,"children":6315},{"class":117,"line":680},[6316],{"type":44,"tag":115,"props":6317,"children":6318},{"style":134},[6319],{"type":49,"value":695},{"type":44,"tag":115,"props":6321,"children":6322},{"class":117,"line":689},[6323,6327,6331],{"type":44,"tag":115,"props":6324,"children":6325},{"style":134},[6326],{"type":49,"value":704},{"type":44,"tag":115,"props":6328,"children":6329},{"style":423},[6330],{"type":49,"value":709},{"type":44,"tag":115,"props":6332,"children":6333},{"style":134},[6334],{"type":49,"value":714},{"type":44,"tag":115,"props":6336,"children":6337},{"class":117,"line":698},[6338],{"type":44,"tag":115,"props":6339,"children":6340},{"emptyLinePlaceholder":842},[6341],{"type":49,"value":845},{"type":44,"tag":115,"props":6343,"children":6344},{"class":117,"line":956},[6345],{"type":44,"tag":115,"props":6346,"children":6347},{"style":170},[6348],{"type":49,"value":6349},"\u002F\u002F Returns event IDs for tracking\n",{"type":44,"tag":115,"props":6351,"children":6352},{"class":117,"line":982},[6353,6358,6362,6367,6372,6376,6381,6385],{"type":44,"tag":115,"props":6354,"children":6355},{"style":423},[6356],{"type":49,"value":6357},"console",{"type":44,"tag":115,"props":6359,"children":6360},{"style":134},[6361],{"type":49,"value":431},{"type":44,"tag":115,"props":6363,"children":6364},{"style":434},[6365],{"type":49,"value":6366},"log",{"type":44,"tag":115,"props":6368,"children":6369},{"style":423},[6370],{"type":49,"value":6371},"(result",{"type":44,"tag":115,"props":6373,"children":6374},{"style":134},[6375],{"type":49,"value":431},{"type":44,"tag":115,"props":6377,"children":6378},{"style":423},[6379],{"type":49,"value":6380},"ids)",{"type":44,"tag":115,"props":6382,"children":6383},{"style":134},[6384],{"type":49,"value":167},{"type":44,"tag":115,"props":6386,"children":6387},{"style":170},[6388],{"type":49,"value":6389}," \u002F\u002F [\"01HQ8PTAESBZPBDS8JTRZZYY3S\"]\n",{"type":44,"tag":96,"props":6391,"children":6393},{"id":6392},"batch-events",[6394],{"type":49,"value":6395},"Batch Events",{"type":44,"tag":103,"props":6397,"children":6399},{"className":105,"code":6398,"language":107,"meta":108,"style":108},"const orderItems = await getOrderItems(orderId);\n\n\u002F\u002F Convert to events\nconst events = orderItems.map((item) => ({\n  name: \"inventory\u002Fitem.reserved\",\n  data: {\n    itemId: item.id,\n    orderId: orderId,\n    quantity: item.quantity,\n    warehouseId: item.warehouseId\n  }\n}));\n\n\u002F\u002F Send all at once (up to 512kb)\nawait inngest.send(events);\n",[6400],{"type":44,"tag":111,"props":6401,"children":6402},{"__ignoreMap":108},[6403,6437,6444,6452,6510,6538,6553,6582,6602,6631,6656,6663,6679,6686,6694],{"type":44,"tag":115,"props":6404,"children":6405},{"class":117,"line":118},[6406,6410,6415,6419,6423,6428,6433],{"type":44,"tag":115,"props":6407,"children":6408},{"style":122},[6409],{"type":49,"value":1669},{"type":44,"tag":115,"props":6411,"children":6412},{"style":423},[6413],{"type":49,"value":6414}," orderItems ",{"type":44,"tag":115,"props":6416,"children":6417},{"style":134},[6418],{"type":49,"value":1679},{"type":44,"tag":115,"props":6420,"children":6421},{"style":417},[6422],{"type":49,"value":4099},{"type":44,"tag":115,"props":6424,"children":6425},{"style":434},[6426],{"type":49,"value":6427}," getOrderItems",{"type":44,"tag":115,"props":6429,"children":6430},{"style":423},[6431],{"type":49,"value":6432},"(orderId)",{"type":44,"tag":115,"props":6434,"children":6435},{"style":134},[6436],{"type":49,"value":714},{"type":44,"tag":115,"props":6438,"children":6439},{"class":117,"line":145},[6440],{"type":44,"tag":115,"props":6441,"children":6442},{"emptyLinePlaceholder":842},[6443],{"type":49,"value":845},{"type":44,"tag":115,"props":6445,"children":6446},{"class":117,"line":176},[6447],{"type":44,"tag":115,"props":6448,"children":6449},{"style":170},[6450],{"type":49,"value":6451},"\u002F\u002F Convert to events\n",{"type":44,"tag":115,"props":6453,"children":6454},{"class":117,"line":203},[6455,6459,6463,6467,6472,6476,6481,6485,6489,6494,6498,6502,6506],{"type":44,"tag":115,"props":6456,"children":6457},{"style":122},[6458],{"type":49,"value":1669},{"type":44,"tag":115,"props":6460,"children":6461},{"style":423},[6462],{"type":49,"value":1939},{"type":44,"tag":115,"props":6464,"children":6465},{"style":134},[6466],{"type":49,"value":1679},{"type":44,"tag":115,"props":6468,"children":6469},{"style":423},[6470],{"type":49,"value":6471}," orderItems",{"type":44,"tag":115,"props":6473,"children":6474},{"style":134},[6475],{"type":49,"value":431},{"type":44,"tag":115,"props":6477,"children":6478},{"style":434},[6479],{"type":49,"value":6480},"map",{"type":44,"tag":115,"props":6482,"children":6483},{"style":423},[6484],{"type":49,"value":442},{"type":44,"tag":115,"props":6486,"children":6487},{"style":134},[6488],{"type":49,"value":442},{"type":44,"tag":115,"props":6490,"children":6491},{"style":2579},[6492],{"type":49,"value":6493},"item",{"type":44,"tag":115,"props":6495,"children":6496},{"style":134},[6497],{"type":49,"value":709},{"type":44,"tag":115,"props":6499,"children":6500},{"style":122},[6501],{"type":49,"value":2600},{"type":44,"tag":115,"props":6503,"children":6504},{"style":423},[6505],{"type":49,"value":5280},{"type":44,"tag":115,"props":6507,"children":6508},{"style":134},[6509],{"type":49,"value":447},{"type":44,"tag":115,"props":6511,"children":6512},{"class":117,"line":24},[6513,6517,6521,6525,6530,6534],{"type":44,"tag":115,"props":6514,"children":6515},{"style":149},[6516],{"type":49,"value":152},{"type":44,"tag":115,"props":6518,"children":6519},{"style":134},[6520],{"type":49,"value":157},{"type":44,"tag":115,"props":6522,"children":6523},{"style":134},[6524],{"type":49,"value":463},{"type":44,"tag":115,"props":6526,"children":6527},{"style":466},[6528],{"type":49,"value":6529},"inventory\u002Fitem.reserved",{"type":44,"tag":115,"props":6531,"children":6532},{"style":134},[6533],{"type":49,"value":474},{"type":44,"tag":115,"props":6535,"children":6536},{"style":134},[6537],{"type":49,"value":479},{"type":44,"tag":115,"props":6539,"children":6540},{"class":117,"line":367},[6541,6545,6549],{"type":44,"tag":115,"props":6542,"children":6543},{"style":149},[6544],{"type":49,"value":182},{"type":44,"tag":115,"props":6546,"children":6547},{"style":134},[6548],{"type":49,"value":157},{"type":44,"tag":115,"props":6550,"children":6551},{"style":134},[6552],{"type":49,"value":142},{"type":44,"tag":115,"props":6554,"children":6555},{"class":117,"line":393},[6556,6561,6565,6570,6574,6578],{"type":44,"tag":115,"props":6557,"children":6558},{"style":149},[6559],{"type":49,"value":6560},"    itemId",{"type":44,"tag":115,"props":6562,"children":6563},{"style":134},[6564],{"type":49,"value":157},{"type":44,"tag":115,"props":6566,"children":6567},{"style":423},[6568],{"type":49,"value":6569}," item",{"type":44,"tag":115,"props":6571,"children":6572},{"style":134},[6573],{"type":49,"value":431},{"type":44,"tag":115,"props":6575,"children":6576},{"style":423},[6577],{"type":49,"value":1362},{"type":44,"tag":115,"props":6579,"children":6580},{"style":134},[6581],{"type":49,"value":479},{"type":44,"tag":115,"props":6583,"children":6584},{"class":117,"line":606},[6585,6589,6593,6598],{"type":44,"tag":115,"props":6586,"children":6587},{"style":149},[6588],{"type":49,"value":6121},{"type":44,"tag":115,"props":6590,"children":6591},{"style":134},[6592],{"type":49,"value":157},{"type":44,"tag":115,"props":6594,"children":6595},{"style":423},[6596],{"type":49,"value":6597}," orderId",{"type":44,"tag":115,"props":6599,"children":6600},{"style":134},[6601],{"type":49,"value":479},{"type":44,"tag":115,"props":6603,"children":6604},{"class":117,"line":623},[6605,6610,6614,6618,6622,6627],{"type":44,"tag":115,"props":6606,"children":6607},{"style":149},[6608],{"type":49,"value":6609},"    quantity",{"type":44,"tag":115,"props":6611,"children":6612},{"style":134},[6613],{"type":49,"value":157},{"type":44,"tag":115,"props":6615,"children":6616},{"style":423},[6617],{"type":49,"value":6569},{"type":44,"tag":115,"props":6619,"children":6620},{"style":134},[6621],{"type":49,"value":431},{"type":44,"tag":115,"props":6623,"children":6624},{"style":423},[6625],{"type":49,"value":6626},"quantity",{"type":44,"tag":115,"props":6628,"children":6629},{"style":134},[6630],{"type":49,"value":479},{"type":44,"tag":115,"props":6632,"children":6633},{"class":117,"line":653},[6634,6639,6643,6647,6651],{"type":44,"tag":115,"props":6635,"children":6636},{"style":149},[6637],{"type":49,"value":6638},"    warehouseId",{"type":44,"tag":115,"props":6640,"children":6641},{"style":134},[6642],{"type":49,"value":157},{"type":44,"tag":115,"props":6644,"children":6645},{"style":423},[6646],{"type":49,"value":6569},{"type":44,"tag":115,"props":6648,"children":6649},{"style":134},[6650],{"type":49,"value":431},{"type":44,"tag":115,"props":6652,"children":6653},{"style":423},[6654],{"type":49,"value":6655},"warehouseId\n",{"type":44,"tag":115,"props":6657,"children":6658},{"class":117,"line":680},[6659],{"type":44,"tag":115,"props":6660,"children":6661},{"style":134},[6662],{"type":49,"value":695},{"type":44,"tag":115,"props":6664,"children":6665},{"class":117,"line":689},[6666,6670,6675],{"type":44,"tag":115,"props":6667,"children":6668},{"style":134},[6669],{"type":49,"value":704},{"type":44,"tag":115,"props":6671,"children":6672},{"style":423},[6673],{"type":49,"value":6674},"))",{"type":44,"tag":115,"props":6676,"children":6677},{"style":134},[6678],{"type":49,"value":714},{"type":44,"tag":115,"props":6680,"children":6681},{"class":117,"line":698},[6682],{"type":44,"tag":115,"props":6683,"children":6684},{"emptyLinePlaceholder":842},[6685],{"type":49,"value":845},{"type":44,"tag":115,"props":6687,"children":6688},{"class":117,"line":956},[6689],{"type":44,"tag":115,"props":6690,"children":6691},{"style":170},[6692],{"type":49,"value":6693},"\u002F\u002F Send all at once (up to 512kb)\n",{"type":44,"tag":115,"props":6695,"children":6696},{"class":117,"line":982},[6697,6701,6705,6709,6713,6717],{"type":44,"tag":115,"props":6698,"children":6699},{"style":417},[6700],{"type":49,"value":420},{"type":44,"tag":115,"props":6702,"children":6703},{"style":423},[6704],{"type":49,"value":426},{"type":44,"tag":115,"props":6706,"children":6707},{"style":134},[6708],{"type":49,"value":431},{"type":44,"tag":115,"props":6710,"children":6711},{"style":434},[6712],{"type":49,"value":437},{"type":44,"tag":115,"props":6714,"children":6715},{"style":423},[6716],{"type":49,"value":2212},{"type":44,"tag":115,"props":6718,"children":6719},{"style":134},[6720],{"type":49,"value":714},{"type":44,"tag":96,"props":6722,"children":6724},{"id":6723},"sending-from-functions",[6725],{"type":49,"value":6726},"Sending from Functions",{"type":44,"tag":103,"props":6728,"children":6730},{"className":105,"code":6729,"language":107,"meta":108,"style":108},"inngest.createFunction(\n  { id: \"process-order\", triggers: [{ event: \"order\u002Fplaced\" }] },\n  async ({ event, step }) => {\n    \u002F\u002F Use step.sendEvent() instead of inngest.send() in functions\n    \u002F\u002F for reliability and deduplication\n    await step.sendEvent(\"trigger-fulfillment\", {\n      name: \"fulfillment\u002Forder.received\",\n      data: {\n        orderId: event.data.orderId,\n        priority: event.data.customerTier === \"premium\" ? \"high\" : \"normal\"\n      }\n    });\n  }\n);\n",[6731],{"type":44,"tag":111,"props":6732,"children":6733},{"__ignoreMap":108},[6734,6753,6833,6868,6876,6884,6928,6957,6973,7009,7094,7102,7117,7124],{"type":44,"tag":115,"props":6735,"children":6736},{"class":117,"line":118},[6737,6741,6745,6749],{"type":44,"tag":115,"props":6738,"children":6739},{"style":423},[6740],{"type":49,"value":8},{"type":44,"tag":115,"props":6742,"children":6743},{"style":134},[6744],{"type":49,"value":431},{"type":44,"tag":115,"props":6746,"children":6747},{"style":434},[6748],{"type":49,"value":2470},{"type":44,"tag":115,"props":6750,"children":6751},{"style":423},[6752],{"type":49,"value":2475},{"type":44,"tag":115,"props":6754,"children":6755},{"class":117,"line":145},[6756,6760,6764,6768,6772,6777,6781,6785,6789,6793,6797,6801,6805,6809,6813,6817,6821,6825,6829],{"type":44,"tag":115,"props":6757,"children":6758},{"style":134},[6759],{"type":49,"value":2483},{"type":44,"tag":115,"props":6761,"children":6762},{"style":149},[6763],{"type":49,"value":2488},{"type":44,"tag":115,"props":6765,"children":6766},{"style":134},[6767],{"type":49,"value":157},{"type":44,"tag":115,"props":6769,"children":6770},{"style":134},[6771],{"type":49,"value":463},{"type":44,"tag":115,"props":6773,"children":6774},{"style":466},[6775],{"type":49,"value":6776},"process-order",{"type":44,"tag":115,"props":6778,"children":6779},{"style":134},[6780],{"type":49,"value":474},{"type":44,"tag":115,"props":6782,"children":6783},{"style":134},[6784],{"type":49,"value":297},{"type":44,"tag":115,"props":6786,"children":6787},{"style":149},[6788],{"type":49,"value":2514},{"type":44,"tag":115,"props":6790,"children":6791},{"style":134},[6792],{"type":49,"value":157},{"type":44,"tag":115,"props":6794,"children":6795},{"style":423},[6796],{"type":49,"value":1276},{"type":44,"tag":115,"props":6798,"children":6799},{"style":134},[6800],{"type":49,"value":2527},{"type":44,"tag":115,"props":6802,"children":6803},{"style":149},[6804],{"type":49,"value":2532},{"type":44,"tag":115,"props":6806,"children":6807},{"style":134},[6808],{"type":49,"value":157},{"type":44,"tag":115,"props":6810,"children":6811},{"style":134},[6812],{"type":49,"value":463},{"type":44,"tag":115,"props":6814,"children":6815},{"style":466},[6816],{"type":49,"value":6090},{"type":44,"tag":115,"props":6818,"children":6819},{"style":134},[6820],{"type":49,"value":474},{"type":44,"tag":115,"props":6822,"children":6823},{"style":134},[6824],{"type":49,"value":2553},{"type":44,"tag":115,"props":6826,"children":6827},{"style":423},[6828],{"type":49,"value":2558},{"type":44,"tag":115,"props":6830,"children":6831},{"style":134},[6832],{"type":49,"value":2563},{"type":44,"tag":115,"props":6834,"children":6835},{"class":117,"line":176},[6836,6840,6844,6848,6852,6856,6860,6864],{"type":44,"tag":115,"props":6837,"children":6838},{"style":122},[6839],{"type":49,"value":2571},{"type":44,"tag":115,"props":6841,"children":6842},{"style":134},[6843],{"type":49,"value":2576},{"type":44,"tag":115,"props":6845,"children":6846},{"style":2579},[6847],{"type":49,"value":2532},{"type":44,"tag":115,"props":6849,"children":6850},{"style":134},[6851],{"type":49,"value":297},{"type":44,"tag":115,"props":6853,"children":6854},{"style":2579},[6855],{"type":49,"value":2590},{"type":44,"tag":115,"props":6857,"children":6858},{"style":134},[6859],{"type":49,"value":2595},{"type":44,"tag":115,"props":6861,"children":6862},{"style":122},[6863],{"type":49,"value":2600},{"type":44,"tag":115,"props":6865,"children":6866},{"style":134},[6867],{"type":49,"value":142},{"type":44,"tag":115,"props":6869,"children":6870},{"class":117,"line":203},[6871],{"type":44,"tag":115,"props":6872,"children":6873},{"style":170},[6874],{"type":49,"value":6875},"    \u002F\u002F Use step.sendEvent() instead of inngest.send() in functions\n",{"type":44,"tag":115,"props":6877,"children":6878},{"class":117,"line":24},[6879],{"type":44,"tag":115,"props":6880,"children":6881},{"style":170},[6882],{"type":49,"value":6883},"    \u002F\u002F for reliability and deduplication\n",{"type":44,"tag":115,"props":6885,"children":6886},{"class":117,"line":367},[6887,6891,6895,6899,6903,6907,6911,6916,6920,6924],{"type":44,"tag":115,"props":6888,"children":6889},{"style":417},[6890],{"type":49,"value":2612},{"type":44,"tag":115,"props":6892,"children":6893},{"style":423},[6894],{"type":49,"value":2590},{"type":44,"tag":115,"props":6896,"children":6897},{"style":134},[6898],{"type":49,"value":431},{"type":44,"tag":115,"props":6900,"children":6901},{"style":434},[6902],{"type":49,"value":3827},{"type":44,"tag":115,"props":6904,"children":6905},{"style":149},[6906],{"type":49,"value":442},{"type":44,"tag":115,"props":6908,"children":6909},{"style":134},[6910],{"type":49,"value":474},{"type":44,"tag":115,"props":6912,"children":6913},{"style":466},[6914],{"type":49,"value":6915},"trigger-fulfillment",{"type":44,"tag":115,"props":6917,"children":6918},{"style":134},[6919],{"type":49,"value":474},{"type":44,"tag":115,"props":6921,"children":6922},{"style":134},[6923],{"type":49,"value":297},{"type":44,"tag":115,"props":6925,"children":6926},{"style":134},[6927],{"type":49,"value":142},{"type":44,"tag":115,"props":6929,"children":6930},{"class":117,"line":393},[6931,6936,6940,6944,6949,6953],{"type":44,"tag":115,"props":6932,"children":6933},{"style":149},[6934],{"type":49,"value":6935},"      name",{"type":44,"tag":115,"props":6937,"children":6938},{"style":134},[6939],{"type":49,"value":157},{"type":44,"tag":115,"props":6941,"children":6942},{"style":134},[6943],{"type":49,"value":463},{"type":44,"tag":115,"props":6945,"children":6946},{"style":466},[6947],{"type":49,"value":6948},"fulfillment\u002Forder.received",{"type":44,"tag":115,"props":6950,"children":6951},{"style":134},[6952],{"type":49,"value":474},{"type":44,"tag":115,"props":6954,"children":6955},{"style":134},[6956],{"type":49,"value":479},{"type":44,"tag":115,"props":6958,"children":6959},{"class":117,"line":606},[6960,6965,6969],{"type":44,"tag":115,"props":6961,"children":6962},{"style":149},[6963],{"type":49,"value":6964},"      data",{"type":44,"tag":115,"props":6966,"children":6967},{"style":134},[6968],{"type":49,"value":157},{"type":44,"tag":115,"props":6970,"children":6971},{"style":134},[6972],{"type":49,"value":142},{"type":44,"tag":115,"props":6974,"children":6975},{"class":117,"line":623},[6976,6981,6985,6989,6993,6997,7001,7005],{"type":44,"tag":115,"props":6977,"children":6978},{"style":149},[6979],{"type":49,"value":6980},"        orderId",{"type":44,"tag":115,"props":6982,"children":6983},{"style":134},[6984],{"type":49,"value":157},{"type":44,"tag":115,"props":6986,"children":6987},{"style":423},[6988],{"type":49,"value":2532},{"type":44,"tag":115,"props":6990,"children":6991},{"style":134},[6992],{"type":49,"value":431},{"type":44,"tag":115,"props":6994,"children":6995},{"style":423},[6996],{"type":49,"value":2712},{"type":44,"tag":115,"props":6998,"children":6999},{"style":134},[7000],{"type":49,"value":431},{"type":44,"tag":115,"props":7002,"children":7003},{"style":423},[7004],{"type":49,"value":1479},{"type":44,"tag":115,"props":7006,"children":7007},{"style":134},[7008],{"type":49,"value":479},{"type":44,"tag":115,"props":7010,"children":7011},{"class":117,"line":653},[7012,7017,7021,7025,7029,7033,7037,7042,7046,7050,7055,7059,7064,7068,7072,7076,7081,7085,7090],{"type":44,"tag":115,"props":7013,"children":7014},{"style":149},[7015],{"type":49,"value":7016},"        priority",{"type":44,"tag":115,"props":7018,"children":7019},{"style":134},[7020],{"type":49,"value":157},{"type":44,"tag":115,"props":7022,"children":7023},{"style":423},[7024],{"type":49,"value":2532},{"type":44,"tag":115,"props":7026,"children":7027},{"style":134},[7028],{"type":49,"value":431},{"type":44,"tag":115,"props":7030,"children":7031},{"style":423},[7032],{"type":49,"value":2712},{"type":44,"tag":115,"props":7034,"children":7035},{"style":134},[7036],{"type":49,"value":431},{"type":44,"tag":115,"props":7038,"children":7039},{"style":423},[7040],{"type":49,"value":7041},"customerTier",{"type":44,"tag":115,"props":7043,"children":7044},{"style":134},[7045],{"type":49,"value":5571},{"type":44,"tag":115,"props":7047,"children":7048},{"style":134},[7049],{"type":49,"value":463},{"type":44,"tag":115,"props":7051,"children":7052},{"style":466},[7053],{"type":49,"value":7054},"premium",{"type":44,"tag":115,"props":7056,"children":7057},{"style":134},[7058],{"type":49,"value":474},{"type":44,"tag":115,"props":7060,"children":7061},{"style":134},[7062],{"type":49,"value":7063}," ?",{"type":44,"tag":115,"props":7065,"children":7066},{"style":134},[7067],{"type":49,"value":463},{"type":44,"tag":115,"props":7069,"children":7070},{"style":466},[7071],{"type":49,"value":5465},{"type":44,"tag":115,"props":7073,"children":7074},{"style":134},[7075],{"type":49,"value":474},{"type":44,"tag":115,"props":7077,"children":7078},{"style":134},[7079],{"type":49,"value":7080}," :",{"type":44,"tag":115,"props":7082,"children":7083},{"style":134},[7084],{"type":49,"value":463},{"type":44,"tag":115,"props":7086,"children":7087},{"style":466},[7088],{"type":49,"value":7089},"normal",{"type":44,"tag":115,"props":7091,"children":7092},{"style":134},[7093],{"type":49,"value":677},{"type":44,"tag":115,"props":7095,"children":7096},{"class":117,"line":680},[7097],{"type":44,"tag":115,"props":7098,"children":7099},{"style":134},[7100],{"type":49,"value":7101},"      }\n",{"type":44,"tag":115,"props":7103,"children":7104},{"class":117,"line":689},[7105,7109,7113],{"type":44,"tag":115,"props":7106,"children":7107},{"style":134},[7108],{"type":49,"value":2777},{"type":44,"tag":115,"props":7110,"children":7111},{"style":149},[7112],{"type":49,"value":709},{"type":44,"tag":115,"props":7114,"children":7115},{"style":134},[7116],{"type":49,"value":714},{"type":44,"tag":115,"props":7118,"children":7119},{"class":117,"line":698},[7120],{"type":44,"tag":115,"props":7121,"children":7122},{"style":134},[7123],{"type":49,"value":695},{"type":44,"tag":115,"props":7125,"children":7126},{"class":117,"line":956},[7127,7131],{"type":44,"tag":115,"props":7128,"children":7129},{"style":423},[7130],{"type":49,"value":709},{"type":44,"tag":115,"props":7132,"children":7133},{"style":134},[7134],{"type":49,"value":714},{"type":44,"tag":84,"props":7136,"children":7138},{"id":7137},"event-design-best-practices",[7139],{"type":49,"value":7140},"Event Design Best Practices",{"type":44,"tag":96,"props":7142,"children":7144},{"id":7143},"schema-versioning",[7145],{"type":49,"value":7146},"Schema Versioning",{"type":44,"tag":103,"props":7148,"children":7150},{"className":105,"code":7149,"language":107,"meta":108,"style":108},"\u002F\u002F Use version field to track schema changes\nawait inngest.send({\n  name: \"user\u002Fprofile.updated\",\n  v: \"2024-01-15.1\", \u002F\u002F Schema version\n  data: {\n    userId: \"user_123\",\n    changes: {\n      email: \"new@example.com\",\n      preferences: { theme: \"dark\" }\n    },\n    \u002F\u002F New field in v2 schema\n    auditInfo: {\n      changedBy: \"user_456\",\n      reason: \"user_requested\"\n    }\n  }\n});\n",[7151],{"type":44,"tag":111,"props":7152,"children":7153},{"__ignoreMap":108},[7154,7162,7189,7216,7249,7264,7291,7307,7336,7378,7386,7394,7410,7439,7464,7471,7478],{"type":44,"tag":115,"props":7155,"children":7156},{"class":117,"line":118},[7157],{"type":44,"tag":115,"props":7158,"children":7159},{"style":170},[7160],{"type":49,"value":7161},"\u002F\u002F Use version field to track schema changes\n",{"type":44,"tag":115,"props":7163,"children":7164},{"class":117,"line":145},[7165,7169,7173,7177,7181,7185],{"type":44,"tag":115,"props":7166,"children":7167},{"style":417},[7168],{"type":49,"value":420},{"type":44,"tag":115,"props":7170,"children":7171},{"style":423},[7172],{"type":49,"value":426},{"type":44,"tag":115,"props":7174,"children":7175},{"style":134},[7176],{"type":49,"value":431},{"type":44,"tag":115,"props":7178,"children":7179},{"style":434},[7180],{"type":49,"value":437},{"type":44,"tag":115,"props":7182,"children":7183},{"style":423},[7184],{"type":49,"value":442},{"type":44,"tag":115,"props":7186,"children":7187},{"style":134},[7188],{"type":49,"value":447},{"type":44,"tag":115,"props":7190,"children":7191},{"class":117,"line":176},[7192,7196,7200,7204,7208,7212],{"type":44,"tag":115,"props":7193,"children":7194},{"style":149},[7195],{"type":49,"value":152},{"type":44,"tag":115,"props":7197,"children":7198},{"style":134},[7199],{"type":49,"value":157},{"type":44,"tag":115,"props":7201,"children":7202},{"style":134},[7203],{"type":49,"value":463},{"type":44,"tag":115,"props":7205,"children":7206},{"style":466},[7207],{"type":49,"value":788},{"type":44,"tag":115,"props":7209,"children":7210},{"style":134},[7211],{"type":49,"value":474},{"type":44,"tag":115,"props":7213,"children":7214},{"style":134},[7215],{"type":49,"value":479},{"type":44,"tag":115,"props":7217,"children":7218},{"class":117,"line":203},[7219,7223,7227,7231,7236,7240,7244],{"type":44,"tag":115,"props":7220,"children":7221},{"style":149},[7222],{"type":49,"value":373},{"type":44,"tag":115,"props":7224,"children":7225},{"style":134},[7226],{"type":49,"value":157},{"type":44,"tag":115,"props":7228,"children":7229},{"style":134},[7230],{"type":49,"value":463},{"type":44,"tag":115,"props":7232,"children":7233},{"style":466},[7234],{"type":49,"value":7235},"2024-01-15.1",{"type":44,"tag":115,"props":7237,"children":7238},{"style":134},[7239],{"type":49,"value":474},{"type":44,"tag":115,"props":7241,"children":7242},{"style":134},[7243],{"type":49,"value":297},{"type":44,"tag":115,"props":7245,"children":7246},{"style":170},[7247],{"type":49,"value":7248}," \u002F\u002F Schema version\n",{"type":44,"tag":115,"props":7250,"children":7251},{"class":117,"line":24},[7252,7256,7260],{"type":44,"tag":115,"props":7253,"children":7254},{"style":149},[7255],{"type":49,"value":182},{"type":44,"tag":115,"props":7257,"children":7258},{"style":134},[7259],{"type":49,"value":157},{"type":44,"tag":115,"props":7261,"children":7262},{"style":134},[7263],{"type":49,"value":142},{"type":44,"tag":115,"props":7265,"children":7266},{"class":117,"line":367},[7267,7271,7275,7279,7283,7287],{"type":44,"tag":115,"props":7268,"children":7269},{"style":149},[7270],{"type":49,"value":560},{"type":44,"tag":115,"props":7272,"children":7273},{"style":134},[7274],{"type":49,"value":157},{"type":44,"tag":115,"props":7276,"children":7277},{"style":134},[7278],{"type":49,"value":463},{"type":44,"tag":115,"props":7280,"children":7281},{"style":466},[7282],{"type":49,"value":1851},{"type":44,"tag":115,"props":7284,"children":7285},{"style":134},[7286],{"type":49,"value":474},{"type":44,"tag":115,"props":7288,"children":7289},{"style":134},[7290],{"type":49,"value":479},{"type":44,"tag":115,"props":7292,"children":7293},{"class":117,"line":393},[7294,7299,7303],{"type":44,"tag":115,"props":7295,"children":7296},{"style":149},[7297],{"type":49,"value":7298},"    changes",{"type":44,"tag":115,"props":7300,"children":7301},{"style":134},[7302],{"type":49,"value":157},{"type":44,"tag":115,"props":7304,"children":7305},{"style":134},[7306],{"type":49,"value":142},{"type":44,"tag":115,"props":7308,"children":7309},{"class":117,"line":606},[7310,7315,7319,7323,7328,7332],{"type":44,"tag":115,"props":7311,"children":7312},{"style":149},[7313],{"type":49,"value":7314},"      email",{"type":44,"tag":115,"props":7316,"children":7317},{"style":134},[7318],{"type":49,"value":157},{"type":44,"tag":115,"props":7320,"children":7321},{"style":134},[7322],{"type":49,"value":463},{"type":44,"tag":115,"props":7324,"children":7325},{"style":466},[7326],{"type":49,"value":7327},"new@example.com",{"type":44,"tag":115,"props":7329,"children":7330},{"style":134},[7331],{"type":49,"value":474},{"type":44,"tag":115,"props":7333,"children":7334},{"style":134},[7335],{"type":49,"value":479},{"type":44,"tag":115,"props":7337,"children":7338},{"class":117,"line":623},[7339,7344,7348,7352,7357,7361,7365,7370,7374],{"type":44,"tag":115,"props":7340,"children":7341},{"style":149},[7342],{"type":49,"value":7343},"      preferences",{"type":44,"tag":115,"props":7345,"children":7346},{"style":134},[7347],{"type":49,"value":157},{"type":44,"tag":115,"props":7349,"children":7350},{"style":134},[7351],{"type":49,"value":2028},{"type":44,"tag":115,"props":7353,"children":7354},{"style":149},[7355],{"type":49,"value":7356}," theme",{"type":44,"tag":115,"props":7358,"children":7359},{"style":134},[7360],{"type":49,"value":157},{"type":44,"tag":115,"props":7362,"children":7363},{"style":134},[7364],{"type":49,"value":463},{"type":44,"tag":115,"props":7366,"children":7367},{"style":466},[7368],{"type":49,"value":7369},"dark",{"type":44,"tag":115,"props":7371,"children":7372},{"style":134},[7373],{"type":49,"value":474},{"type":44,"tag":115,"props":7375,"children":7376},{"style":134},[7377],{"type":49,"value":2055},{"type":44,"tag":115,"props":7379,"children":7380},{"class":117,"line":653},[7381],{"type":44,"tag":115,"props":7382,"children":7383},{"style":134},[7384],{"type":49,"value":7385},"    },\n",{"type":44,"tag":115,"props":7387,"children":7388},{"class":117,"line":680},[7389],{"type":44,"tag":115,"props":7390,"children":7391},{"style":170},[7392],{"type":49,"value":7393},"    \u002F\u002F New field in v2 schema\n",{"type":44,"tag":115,"props":7395,"children":7396},{"class":117,"line":689},[7397,7402,7406],{"type":44,"tag":115,"props":7398,"children":7399},{"style":149},[7400],{"type":49,"value":7401},"    auditInfo",{"type":44,"tag":115,"props":7403,"children":7404},{"style":134},[7405],{"type":49,"value":157},{"type":44,"tag":115,"props":7407,"children":7408},{"style":134},[7409],{"type":49,"value":142},{"type":44,"tag":115,"props":7411,"children":7412},{"class":117,"line":698},[7413,7418,7422,7426,7431,7435],{"type":44,"tag":115,"props":7414,"children":7415},{"style":149},[7416],{"type":49,"value":7417},"      changedBy",{"type":44,"tag":115,"props":7419,"children":7420},{"style":134},[7421],{"type":49,"value":157},{"type":44,"tag":115,"props":7423,"children":7424},{"style":134},[7425],{"type":49,"value":463},{"type":44,"tag":115,"props":7427,"children":7428},{"style":466},[7429],{"type":49,"value":7430},"user_456",{"type":44,"tag":115,"props":7432,"children":7433},{"style":134},[7434],{"type":49,"value":474},{"type":44,"tag":115,"props":7436,"children":7437},{"style":134},[7438],{"type":49,"value":479},{"type":44,"tag":115,"props":7440,"children":7441},{"class":117,"line":956},[7442,7447,7451,7455,7460],{"type":44,"tag":115,"props":7443,"children":7444},{"style":149},[7445],{"type":49,"value":7446},"      reason",{"type":44,"tag":115,"props":7448,"children":7449},{"style":134},[7450],{"type":49,"value":157},{"type":44,"tag":115,"props":7452,"children":7453},{"style":134},[7454],{"type":49,"value":463},{"type":44,"tag":115,"props":7456,"children":7457},{"style":466},[7458],{"type":49,"value":7459},"user_requested",{"type":44,"tag":115,"props":7461,"children":7462},{"style":134},[7463],{"type":49,"value":677},{"type":44,"tag":115,"props":7465,"children":7466},{"class":117,"line":982},[7467],{"type":44,"tag":115,"props":7468,"children":7469},{"style":134},[7470],{"type":49,"value":686},{"type":44,"tag":115,"props":7472,"children":7473},{"class":117,"line":2667},[7474],{"type":44,"tag":115,"props":7475,"children":7476},{"style":134},[7477],{"type":49,"value":695},{"type":44,"tag":115,"props":7479,"children":7480},{"class":117,"line":2689},[7481,7485,7489],{"type":44,"tag":115,"props":7482,"children":7483},{"style":134},[7484],{"type":49,"value":704},{"type":44,"tag":115,"props":7486,"children":7487},{"style":423},[7488],{"type":49,"value":709},{"type":44,"tag":115,"props":7490,"children":7491},{"style":134},[7492],{"type":49,"value":714},{"type":44,"tag":96,"props":7494,"children":7496},{"id":7495},"rich-context-data",[7497],{"type":49,"value":7498},"Rich Context Data",{"type":44,"tag":103,"props":7500,"children":7502},{"className":105,"code":7501,"language":107,"meta":108,"style":108},"\u002F\u002F Include enough context for all consumers\nawait inngest.send({\n  name: \"payment\u002Fcharge.succeeded\",\n  data: {\n    \u002F\u002F Primary identifiers\n    chargeId: \"ch_123\",\n    customerId: \"cus_456\",\n\n    \u002F\u002F Amount details\n    amount: 2500,\n    currency: \"usd\",\n\n    \u002F\u002F Context for different consumers\n    subscription: {\n      id: \"sub_789\",\n      plan: \"pro_monthly\"\n    },\n    invoice: {\n      id: \"inv_012\",\n      number: \"INV-2024-001\"\n    },\n\n    \u002F\u002F Metadata for debugging\n    paymentMethod: {\n      type: \"card\",\n      last4: \"4242\",\n      brand: \"visa\"\n    },\n    metadata: {\n      source: \"stripe_webhook\",\n      environment: \"production\"\n    }\n  }\n});\n",[7503],{"type":44,"tag":111,"props":7504,"children":7505},{"__ignoreMap":108},[7506,7514,7541,7569,7584,7592,7621,7648,7655,7663,7682,7711,7718,7726,7742,7771,7796,7803,7819,7847,7872,7879,7886,7894,7910,7939,7968,7993,8000,8015,8044,8069,8076,8083],{"type":44,"tag":115,"props":7507,"children":7508},{"class":117,"line":118},[7509],{"type":44,"tag":115,"props":7510,"children":7511},{"style":170},[7512],{"type":49,"value":7513},"\u002F\u002F Include enough context for all consumers\n",{"type":44,"tag":115,"props":7515,"children":7516},{"class":117,"line":145},[7517,7521,7525,7529,7533,7537],{"type":44,"tag":115,"props":7518,"children":7519},{"style":417},[7520],{"type":49,"value":420},{"type":44,"tag":115,"props":7522,"children":7523},{"style":423},[7524],{"type":49,"value":426},{"type":44,"tag":115,"props":7526,"children":7527},{"style":134},[7528],{"type":49,"value":431},{"type":44,"tag":115,"props":7530,"children":7531},{"style":434},[7532],{"type":49,"value":437},{"type":44,"tag":115,"props":7534,"children":7535},{"style":423},[7536],{"type":49,"value":442},{"type":44,"tag":115,"props":7538,"children":7539},{"style":134},[7540],{"type":49,"value":447},{"type":44,"tag":115,"props":7542,"children":7543},{"class":117,"line":176},[7544,7548,7552,7556,7561,7565],{"type":44,"tag":115,"props":7545,"children":7546},{"style":149},[7547],{"type":49,"value":152},{"type":44,"tag":115,"props":7549,"children":7550},{"style":134},[7551],{"type":49,"value":157},{"type":44,"tag":115,"props":7553,"children":7554},{"style":134},[7555],{"type":49,"value":463},{"type":44,"tag":115,"props":7557,"children":7558},{"style":466},[7559],{"type":49,"value":7560},"payment\u002Fcharge.succeeded",{"type":44,"tag":115,"props":7562,"children":7563},{"style":134},[7564],{"type":49,"value":474},{"type":44,"tag":115,"props":7566,"children":7567},{"style":134},[7568],{"type":49,"value":479},{"type":44,"tag":115,"props":7570,"children":7571},{"class":117,"line":203},[7572,7576,7580],{"type":44,"tag":115,"props":7573,"children":7574},{"style":149},[7575],{"type":49,"value":182},{"type":44,"tag":115,"props":7577,"children":7578},{"style":134},[7579],{"type":49,"value":157},{"type":44,"tag":115,"props":7581,"children":7582},{"style":134},[7583],{"type":49,"value":142},{"type":44,"tag":115,"props":7585,"children":7586},{"class":117,"line":24},[7587],{"type":44,"tag":115,"props":7588,"children":7589},{"style":170},[7590],{"type":49,"value":7591},"    \u002F\u002F Primary identifiers\n",{"type":44,"tag":115,"props":7593,"children":7594},{"class":117,"line":367},[7595,7600,7604,7608,7613,7617],{"type":44,"tag":115,"props":7596,"children":7597},{"style":149},[7598],{"type":49,"value":7599},"    chargeId",{"type":44,"tag":115,"props":7601,"children":7602},{"style":134},[7603],{"type":49,"value":157},{"type":44,"tag":115,"props":7605,"children":7606},{"style":134},[7607],{"type":49,"value":463},{"type":44,"tag":115,"props":7609,"children":7610},{"style":466},[7611],{"type":49,"value":7612},"ch_123",{"type":44,"tag":115,"props":7614,"children":7615},{"style":134},[7616],{"type":49,"value":474},{"type":44,"tag":115,"props":7618,"children":7619},{"style":134},[7620],{"type":49,"value":479},{"type":44,"tag":115,"props":7622,"children":7623},{"class":117,"line":393},[7624,7628,7632,7636,7640,7644],{"type":44,"tag":115,"props":7625,"children":7626},{"style":149},[7627],{"type":49,"value":502},{"type":44,"tag":115,"props":7629,"children":7630},{"style":134},[7631],{"type":49,"value":157},{"type":44,"tag":115,"props":7633,"children":7634},{"style":134},[7635],{"type":49,"value":463},{"type":44,"tag":115,"props":7637,"children":7638},{"style":466},[7639],{"type":49,"value":6162},{"type":44,"tag":115,"props":7641,"children":7642},{"style":134},[7643],{"type":49,"value":474},{"type":44,"tag":115,"props":7645,"children":7646},{"style":134},[7647],{"type":49,"value":479},{"type":44,"tag":115,"props":7649,"children":7650},{"class":117,"line":606},[7651],{"type":44,"tag":115,"props":7652,"children":7653},{"emptyLinePlaceholder":842},[7654],{"type":49,"value":845},{"type":44,"tag":115,"props":7656,"children":7657},{"class":117,"line":623},[7658],{"type":44,"tag":115,"props":7659,"children":7660},{"style":170},[7661],{"type":49,"value":7662},"    \u002F\u002F Amount details\n",{"type":44,"tag":115,"props":7664,"children":7665},{"class":117,"line":653},[7666,7670,7674,7678],{"type":44,"tag":115,"props":7667,"children":7668},{"style":149},[7669],{"type":49,"value":589},{"type":44,"tag":115,"props":7671,"children":7672},{"style":134},[7673],{"type":49,"value":157},{"type":44,"tag":115,"props":7675,"children":7676},{"style":596},[7677],{"type":49,"value":6186},{"type":44,"tag":115,"props":7679,"children":7680},{"style":134},[7681],{"type":49,"value":479},{"type":44,"tag":115,"props":7683,"children":7684},{"class":117,"line":680},[7685,7690,7694,7698,7703,7707],{"type":44,"tag":115,"props":7686,"children":7687},{"style":149},[7688],{"type":49,"value":7689},"    currency",{"type":44,"tag":115,"props":7691,"children":7692},{"style":134},[7693],{"type":49,"value":157},{"type":44,"tag":115,"props":7695,"children":7696},{"style":134},[7697],{"type":49,"value":463},{"type":44,"tag":115,"props":7699,"children":7700},{"style":466},[7701],{"type":49,"value":7702},"usd",{"type":44,"tag":115,"props":7704,"children":7705},{"style":134},[7706],{"type":49,"value":474},{"type":44,"tag":115,"props":7708,"children":7709},{"style":134},[7710],{"type":49,"value":479},{"type":44,"tag":115,"props":7712,"children":7713},{"class":117,"line":689},[7714],{"type":44,"tag":115,"props":7715,"children":7716},{"emptyLinePlaceholder":842},[7717],{"type":49,"value":845},{"type":44,"tag":115,"props":7719,"children":7720},{"class":117,"line":698},[7721],{"type":44,"tag":115,"props":7722,"children":7723},{"style":170},[7724],{"type":49,"value":7725},"    \u002F\u002F Context for different consumers\n",{"type":44,"tag":115,"props":7727,"children":7728},{"class":117,"line":956},[7729,7734,7738],{"type":44,"tag":115,"props":7730,"children":7731},{"style":149},[7732],{"type":49,"value":7733},"    subscription",{"type":44,"tag":115,"props":7735,"children":7736},{"style":134},[7737],{"type":49,"value":157},{"type":44,"tag":115,"props":7739,"children":7740},{"style":134},[7741],{"type":49,"value":142},{"type":44,"tag":115,"props":7743,"children":7744},{"class":117,"line":982},[7745,7750,7754,7758,7763,7767],{"type":44,"tag":115,"props":7746,"children":7747},{"style":149},[7748],{"type":49,"value":7749},"      id",{"type":44,"tag":115,"props":7751,"children":7752},{"style":134},[7753],{"type":49,"value":157},{"type":44,"tag":115,"props":7755,"children":7756},{"style":134},[7757],{"type":49,"value":463},{"type":44,"tag":115,"props":7759,"children":7760},{"style":466},[7761],{"type":49,"value":7762},"sub_789",{"type":44,"tag":115,"props":7764,"children":7765},{"style":134},[7766],{"type":49,"value":474},{"type":44,"tag":115,"props":7768,"children":7769},{"style":134},[7770],{"type":49,"value":479},{"type":44,"tag":115,"props":7772,"children":7773},{"class":117,"line":2667},[7774,7779,7783,7787,7792],{"type":44,"tag":115,"props":7775,"children":7776},{"style":149},[7777],{"type":49,"value":7778},"      plan",{"type":44,"tag":115,"props":7780,"children":7781},{"style":134},[7782],{"type":49,"value":157},{"type":44,"tag":115,"props":7784,"children":7785},{"style":134},[7786],{"type":49,"value":463},{"type":44,"tag":115,"props":7788,"children":7789},{"style":466},[7790],{"type":49,"value":7791},"pro_monthly",{"type":44,"tag":115,"props":7793,"children":7794},{"style":134},[7795],{"type":49,"value":677},{"type":44,"tag":115,"props":7797,"children":7798},{"class":117,"line":2689},[7799],{"type":44,"tag":115,"props":7800,"children":7801},{"style":134},[7802],{"type":49,"value":7385},{"type":44,"tag":115,"props":7804,"children":7805},{"class":117,"line":2728},[7806,7811,7815],{"type":44,"tag":115,"props":7807,"children":7808},{"style":149},[7809],{"type":49,"value":7810},"    invoice",{"type":44,"tag":115,"props":7812,"children":7813},{"style":134},[7814],{"type":49,"value":157},{"type":44,"tag":115,"props":7816,"children":7817},{"style":134},[7818],{"type":49,"value":142},{"type":44,"tag":115,"props":7820,"children":7821},{"class":117,"line":2754},[7822,7826,7830,7834,7839,7843],{"type":44,"tag":115,"props":7823,"children":7824},{"style":149},[7825],{"type":49,"value":7749},{"type":44,"tag":115,"props":7827,"children":7828},{"style":134},[7829],{"type":49,"value":157},{"type":44,"tag":115,"props":7831,"children":7832},{"style":134},[7833],{"type":49,"value":463},{"type":44,"tag":115,"props":7835,"children":7836},{"style":466},[7837],{"type":49,"value":7838},"inv_012",{"type":44,"tag":115,"props":7840,"children":7841},{"style":134},[7842],{"type":49,"value":474},{"type":44,"tag":115,"props":7844,"children":7845},{"style":134},[7846],{"type":49,"value":479},{"type":44,"tag":115,"props":7848,"children":7849},{"class":117,"line":2771},[7850,7855,7859,7863,7868],{"type":44,"tag":115,"props":7851,"children":7852},{"style":149},[7853],{"type":49,"value":7854},"      number",{"type":44,"tag":115,"props":7856,"children":7857},{"style":134},[7858],{"type":49,"value":157},{"type":44,"tag":115,"props":7860,"children":7861},{"style":134},[7862],{"type":49,"value":463},{"type":44,"tag":115,"props":7864,"children":7865},{"style":466},[7866],{"type":49,"value":7867},"INV-2024-001",{"type":44,"tag":115,"props":7869,"children":7870},{"style":134},[7871],{"type":49,"value":677},{"type":44,"tag":115,"props":7873,"children":7874},{"class":117,"line":2788},[7875],{"type":44,"tag":115,"props":7876,"children":7877},{"style":134},[7878],{"type":49,"value":7385},{"type":44,"tag":115,"props":7880,"children":7881},{"class":117,"line":2796},[7882],{"type":44,"tag":115,"props":7883,"children":7884},{"emptyLinePlaceholder":842},[7885],{"type":49,"value":845},{"type":44,"tag":115,"props":7887,"children":7888},{"class":117,"line":2808},[7889],{"type":44,"tag":115,"props":7890,"children":7891},{"style":170},[7892],{"type":49,"value":7893},"    \u002F\u002F Metadata for debugging\n",{"type":44,"tag":115,"props":7895,"children":7896},{"class":117,"line":2816},[7897,7902,7906],{"type":44,"tag":115,"props":7898,"children":7899},{"style":149},[7900],{"type":49,"value":7901},"    paymentMethod",{"type":44,"tag":115,"props":7903,"children":7904},{"style":134},[7905],{"type":49,"value":157},{"type":44,"tag":115,"props":7907,"children":7908},{"style":134},[7909],{"type":49,"value":142},{"type":44,"tag":115,"props":7911,"children":7912},{"class":117,"line":2849},[7913,7918,7922,7926,7931,7935],{"type":44,"tag":115,"props":7914,"children":7915},{"style":149},[7916],{"type":49,"value":7917},"      type",{"type":44,"tag":115,"props":7919,"children":7920},{"style":134},[7921],{"type":49,"value":157},{"type":44,"tag":115,"props":7923,"children":7924},{"style":134},[7925],{"type":49,"value":463},{"type":44,"tag":115,"props":7927,"children":7928},{"style":466},[7929],{"type":49,"value":7930},"card",{"type":44,"tag":115,"props":7932,"children":7933},{"style":134},[7934],{"type":49,"value":474},{"type":44,"tag":115,"props":7936,"children":7937},{"style":134},[7938],{"type":49,"value":479},{"type":44,"tag":115,"props":7940,"children":7941},{"class":117,"line":20},[7942,7947,7951,7955,7960,7964],{"type":44,"tag":115,"props":7943,"children":7944},{"style":149},[7945],{"type":49,"value":7946},"      last4",{"type":44,"tag":115,"props":7948,"children":7949},{"style":134},[7950],{"type":49,"value":157},{"type":44,"tag":115,"props":7952,"children":7953},{"style":134},[7954],{"type":49,"value":463},{"type":44,"tag":115,"props":7956,"children":7957},{"style":466},[7958],{"type":49,"value":7959},"4242",{"type":44,"tag":115,"props":7961,"children":7962},{"style":134},[7963],{"type":49,"value":474},{"type":44,"tag":115,"props":7965,"children":7966},{"style":134},[7967],{"type":49,"value":479},{"type":44,"tag":115,"props":7969,"children":7970},{"class":117,"line":2965},[7971,7976,7980,7984,7989],{"type":44,"tag":115,"props":7972,"children":7973},{"style":149},[7974],{"type":49,"value":7975},"      brand",{"type":44,"tag":115,"props":7977,"children":7978},{"style":134},[7979],{"type":49,"value":157},{"type":44,"tag":115,"props":7981,"children":7982},{"style":134},[7983],{"type":49,"value":463},{"type":44,"tag":115,"props":7985,"children":7986},{"style":466},[7987],{"type":49,"value":7988},"visa",{"type":44,"tag":115,"props":7990,"children":7991},{"style":134},[7992],{"type":49,"value":677},{"type":44,"tag":115,"props":7994,"children":7995},{"class":117,"line":3022},[7996],{"type":44,"tag":115,"props":7997,"children":7998},{"style":134},[7999],{"type":49,"value":7385},{"type":44,"tag":115,"props":8001,"children":8002},{"class":117,"line":3061},[8003,8007,8011],{"type":44,"tag":115,"props":8004,"children":8005},{"style":149},[8006],{"type":49,"value":612},{"type":44,"tag":115,"props":8008,"children":8009},{"style":134},[8010],{"type":49,"value":157},{"type":44,"tag":115,"props":8012,"children":8013},{"style":134},[8014],{"type":49,"value":142},{"type":44,"tag":115,"props":8016,"children":8017},{"class":117,"line":3099},[8018,8023,8027,8031,8036,8040],{"type":44,"tag":115,"props":8019,"children":8020},{"style":149},[8021],{"type":49,"value":8022},"      source",{"type":44,"tag":115,"props":8024,"children":8025},{"style":134},[8026],{"type":49,"value":157},{"type":44,"tag":115,"props":8028,"children":8029},{"style":134},[8030],{"type":49,"value":463},{"type":44,"tag":115,"props":8032,"children":8033},{"style":466},[8034],{"type":49,"value":8035},"stripe_webhook",{"type":44,"tag":115,"props":8037,"children":8038},{"style":134},[8039],{"type":49,"value":474},{"type":44,"tag":115,"props":8041,"children":8042},{"style":134},[8043],{"type":49,"value":479},{"type":44,"tag":115,"props":8045,"children":8046},{"class":117,"line":3117},[8047,8052,8056,8060,8065],{"type":44,"tag":115,"props":8048,"children":8049},{"style":149},[8050],{"type":49,"value":8051},"      environment",{"type":44,"tag":115,"props":8053,"children":8054},{"style":134},[8055],{"type":49,"value":157},{"type":44,"tag":115,"props":8057,"children":8058},{"style":134},[8059],{"type":49,"value":463},{"type":44,"tag":115,"props":8061,"children":8062},{"style":466},[8063],{"type":49,"value":8064},"production",{"type":44,"tag":115,"props":8066,"children":8067},{"style":134},[8068],{"type":49,"value":677},{"type":44,"tag":115,"props":8070,"children":8071},{"class":117,"line":3133},[8072],{"type":44,"tag":115,"props":8073,"children":8074},{"style":134},[8075],{"type":49,"value":686},{"type":44,"tag":115,"props":8077,"children":8078},{"class":117,"line":3149},[8079],{"type":44,"tag":115,"props":8080,"children":8081},{"style":134},[8082],{"type":49,"value":695},{"type":44,"tag":115,"props":8084,"children":8085},{"class":117,"line":3157},[8086,8090,8094],{"type":44,"tag":115,"props":8087,"children":8088},{"style":134},[8089],{"type":49,"value":704},{"type":44,"tag":115,"props":8091,"children":8092},{"style":423},[8093],{"type":49,"value":709},{"type":44,"tag":115,"props":8095,"children":8096},{"style":134},[8097],{"type":49,"value":714},{"type":44,"tag":52,"props":8099,"children":8100},{},[8101],{"type":44,"tag":65,"props":8102,"children":8103},{},[8104],{"type":49,"value":8105},"Event design principles:",{"type":44,"tag":8107,"props":8108,"children":8109},"ol",{},[8110,8120,8130,8140,8150],{"type":44,"tag":1017,"props":8111,"children":8112},{},[8113,8118],{"type":44,"tag":65,"props":8114,"children":8115},{},[8116],{"type":49,"value":8117},"Self-contained:",{"type":49,"value":8119}," Include all data consumers need",{"type":44,"tag":1017,"props":8121,"children":8122},{},[8123,8128],{"type":44,"tag":65,"props":8124,"children":8125},{},[8126],{"type":49,"value":8127},"Immutable:",{"type":49,"value":8129}," Never modify event schemas after sending",{"type":44,"tag":1017,"props":8131,"children":8132},{},[8133,8138],{"type":44,"tag":65,"props":8134,"children":8135},{},[8136],{"type":49,"value":8137},"Traceable:",{"type":49,"value":8139}," Include correlation IDs and audit trails",{"type":44,"tag":1017,"props":8141,"children":8142},{},[8143,8148],{"type":44,"tag":65,"props":8144,"children":8145},{},[8146],{"type":49,"value":8147},"Actionable:",{"type":49,"value":8149}," Provide enough context for business logic",{"type":44,"tag":1017,"props":8151,"children":8152},{},[8153,8158],{"type":44,"tag":65,"props":8154,"children":8155},{},[8156],{"type":49,"value":8157},"Debuggable:",{"type":49,"value":8159}," Include metadata for troubleshooting",{"type":44,"tag":8161,"props":8162,"children":8163},"style",{},[8164],{"type":49,"value":8165},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}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);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":8167,"total":956},[8168,8186,8201,8215,8228,8243,8258,8270,8276,8289,8305,8320],{"slug":8169,"name":8169,"fn":8170,"description":8171,"org":8172,"tags":8173,"stars":20,"repoUrl":21,"updatedAt":8185},"inngest-agent-evals","build and debug Inngest agent evals","Use when building, migrating, or debugging Agent Evals on Inngest: scoring AI agent or workflow outcomes, deferred scorers, sessions, traces, step experiments, experiment variant attribution, Insights queries, or production eval loops for prompts, models, tools, providers, and agent behavior. Covers TypeScript SDK v4 scoring beta APIs, `scoreMiddleware`, `step.score`, `inngest.score`, `createScorer`, `defer`, `group.experiment`, `experimentRef`, `meta.sessions`, and when to use durable workflow primitives for outcome-based evaluation.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8174,8177,8180,8181,8184],{"name":8175,"slug":8176,"type":13},"Agents","agents",{"name":8178,"slug":8179,"type":13},"Evals","evals",{"name":9,"slug":8,"type":13},{"name":8182,"slug":8183,"type":13},"Observability","observability",{"name":18,"slug":19,"type":13},"2026-07-12T07:36:51.711641",{"slug":8187,"name":8187,"fn":8188,"description":8189,"org":8190,"tags":8191,"stars":20,"repoUrl":21,"updatedAt":8200},"inngest-agents","build durable AI agent workflows","Use when building durable AI agents or agentic workflows with Inngest and AgentKit, including model calls, tool calls, multi-agent networks, human approval, realtime progress, provider rate limits, crash-safe execution, and Agent Evals handoff. Covers AgentKit, `step.ai`, `step.run`, `step.waitForEvent`, native realtime, and when to use lower-level Inngest primitives instead of an in-memory agent loop. Use `inngest-agent-evals` with this skill when the user wants scoring, sessions, experiments, deferred scorers, or outcome-based evaluation for the agent.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8192,8193,8196,8197],{"name":8175,"slug":8176,"type":13},{"name":8194,"slug":8195,"type":13},"Automation","automation",{"name":9,"slug":8,"type":13},{"name":8198,"slug":8199,"type":13},"LLM","llm","2026-07-12T07:36:45.984181",{"slug":8202,"name":8202,"fn":8203,"description":8204,"org":8205,"tags":8206,"stars":20,"repoUrl":21,"updatedAt":8214},"inngest-api","interact with Inngest REST API","Use when the user explicitly asks for the Inngest REST API v2, raw HTTP, OpenAPI, API docs, API authentication, or an endpoint that the Inngest CLI does not expose. Covers api-docs.inngest.com, llms.txt, the OpenAPI v2 spec, Bearer authentication with API keys or signing keys, production and local base URLs, raw curl\u002Ffetch requests, request-shape discovery, pagination, secret redaction, and when to prefer the `inngest-api-cli` skill instead.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8207,8210,8213],{"name":8208,"slug":8209,"type":13},"API Development","api-development",{"name":8211,"slug":8212,"type":13},"REST API","rest-api",{"name":18,"slug":19,"type":13},"2026-07-12T07:36:39.364409",{"slug":8216,"name":8216,"fn":8217,"description":8218,"org":8219,"tags":8220,"stars":20,"repoUrl":21,"updatedAt":8227},"inngest-api-cli","operate Inngest API resources via CLI","Use when operating Inngest API resources from the terminal with `npx inngest-cli@latest api`: Cloud\u002Flocal run debugging, event-run lookup, function traces, function invocation, app syncs, webhooks, environments, keys, account checks, and Insights queries. Provides prescriptive command routing for agents: which CLI command to run for a run ID, event ID, app ID, function ID, Cloud environment, API key, missing ID, or potentially mutating operation. Use `inngest-cli` for dev server setup\u002Fgeneral CLI workflows and `inngest-api` only when raw REST API v2 docs or OpenAPI fallback are needed.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8221,8222,8223,8226],{"name":8208,"slug":8209,"type":13},{"name":8194,"slug":8195,"type":13},{"name":8224,"slug":8225,"type":13},"CLI","cli",{"name":9,"slug":8,"type":13},"2026-07-12T07:36:47.58183",{"slug":8229,"name":8229,"fn":8230,"description":8231,"org":8232,"tags":8233,"stars":20,"repoUrl":21,"updatedAt":8242},"inngest-brownfield-audit","audit codebases for Inngest integration","Use when analyzing an existing TypeScript or JavaScript codebase to decide where and how to introduce Inngest. Covers repository discovery, framework and package detection, finding durability gaps in HTTP handlers, webhooks, cron jobs, queues, long-running jobs, AI agents, Agent Evals, polling loops, eval loops, and side-effect-heavy code, then producing and implementing an incremental integration plan.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8234,8235,8238,8241],{"name":8194,"slug":8195,"type":13},{"name":8236,"slug":8237,"type":13},"Code Analysis","code-analysis",{"name":8239,"slug":8240,"type":13},"Engineering","engineering",{"name":9,"slug":8,"type":13},"2026-07-12T07:36:55.811247",{"slug":8244,"name":8244,"fn":8245,"description":8246,"org":8247,"tags":8248,"stars":20,"repoUrl":21,"updatedAt":8257},"inngest-cli","configure Inngest CLI and dev server","Use when installing or running the Inngest CLI and Dev Server for local development, local testing, serve endpoint debugging, Docker or Docker Compose setup, MCP configuration, self-hosted `inngest start`, or deployment workflow checks. Covers `inngest dev`, `inngest start`, auto-discovery, config files, environment variables, `@inngest\u002Ftest`, local event sending, platform gotchas, and production\u002Fself-hosted server flags.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8249,8250,8253,8254],{"name":8224,"slug":8225,"type":13},{"name":8251,"slug":8252,"type":13},"Docker","docker",{"name":9,"slug":8,"type":13},{"name":8255,"slug":8256,"type":13},"Local Development","local-development","2026-07-12T07:36:40.694652",{"slug":1622,"name":1622,"fn":8259,"description":8260,"org":8261,"tags":8262,"stars":20,"repoUrl":21,"updatedAt":8269},"build durable and retry-safe functions","Use when building functions that must survive process crashes, retry automatically on failure, run on a schedule, react to events, or maintain state across infrastructure failures — e.g., webhook handlers that drop events, flaky cron jobs, background jobs that fail mid-execution, or workflows that need to resume where they left off. Covers Inngest function configuration, triggers (events, cron, invoke), step execution and memoization, idempotency, cancellation, error handling, retries, logging, and observability.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8263,8264,8267,8268],{"name":8194,"slug":8195,"type":13},{"name":8265,"slug":8266,"type":13},"Backend","backend",{"name":9,"slug":8,"type":13},{"name":18,"slug":19,"type":13},"2026-07-12T07:36:57.141023",{"slug":4,"name":4,"fn":5,"description":6,"org":8271,"tags":8272,"stars":20,"repoUrl":21,"updatedAt":22},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8273,8274,8275],{"name":15,"slug":16,"type":13},{"name":9,"slug":8,"type":13},{"name":18,"slug":19,"type":13},{"slug":8277,"name":8277,"fn":8278,"description":8279,"org":8280,"tags":8281,"stars":20,"repoUrl":21,"updatedAt":8288},"inngest-flow-control","manage API rate limits and load","Use when handling external API rate limits (e.g., OpenAI 429s, HubSpot or Stripe rate limits), preventing duplicate work from rapid event bursts (debouncing user actions), spreading load over time, ensuring per-tenant fairness, processing events in batches, limiting concurrent runs of the same operation, or assigning priority to important runs. Covers Inngest flow control: concurrency limits with keys, throttling, rate limiting, debounce, priority, singleton, and event batching.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8282,8283,8284,8285],{"name":8208,"slug":8209,"type":13},{"name":8194,"slug":8195,"type":13},{"name":9,"slug":8,"type":13},{"name":8286,"slug":8287,"type":13},"Performance","performance","2026-07-12T07:36:52.987451",{"slug":8290,"name":8290,"fn":8291,"description":8292,"org":8293,"tags":8294,"stars":20,"repoUrl":21,"updatedAt":8304},"inngest-middleware","add middleware to Inngest durable functions","Use when adding cross-cutting concerns to durable functions — structured logging or tracing across all functions, error tracking with Sentry, payload encryption for sensitive data, dependency injection of clients (DB, Stripe, etc.) into function handlers, custom telemetry, or behavior that should apply uniformly across many functions. Covers Inngest middleware lifecycle, creating custom middleware, dependencyInjectionMiddleware, @inngest\u002Fmiddleware-encryption, @inngest\u002Fmiddleware-sentry, and custom middleware patterns.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8295,8296,8297,8300,8301],{"name":8239,"slug":8240,"type":13},{"name":9,"slug":8,"type":13},{"name":8298,"slug":8299,"type":13},"Middleware","middleware",{"name":8182,"slug":8183,"type":13},{"name":8302,"slug":8303,"type":13},"Sentry","sentry","2026-07-12T07:36:50.127999",{"slug":8306,"name":8306,"fn":8307,"description":8308,"org":8309,"tags":8310,"stars":20,"repoUrl":21,"updatedAt":8319},"inngest-realtime","stream durable workflow updates to UI","Use when streaming durable workflow updates to a UI in real time — live order status pages that animate as steps complete, AI agent token streaming from a function to the browser, log tailing for long-running jobs, or human-in-the-loop approval flows that publish a prompt and wait for a user reply. Covers Inngest v4 native realtime: defining typed channels, publishing from inside step.run, minting subscription tokens via server actions, and consuming the stream from React\u002FNext.js client components.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8311,8312,8315,8316],{"name":8194,"slug":8195,"type":13},{"name":8313,"slug":8314,"type":13},"Frontend","frontend",{"name":9,"slug":8,"type":13},{"name":8317,"slug":8318,"type":13},"Real-time","real-time","2026-07-12T07:36:48.895092",{"slug":8321,"name":8321,"fn":8322,"description":8323,"org":8324,"tags":8325,"stars":20,"repoUrl":21,"updatedAt":8331},"inngest-setup","build durable TypeScript workflows","Use when adding durable execution to a TypeScript project — building retry-safe webhook handlers, background jobs that survive crashes, scheduled tasks, or long-running workflows that outlive a single request. Covers Inngest SDK installation, client config, environment variables, serve endpoints (Next.js, Express, Hono, Fastify), connect-as-worker mode, and the local dev server.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8326,8327,8328,8329],{"name":8194,"slug":8195,"type":13},{"name":8265,"slug":8266,"type":13},{"name":9,"slug":8,"type":13},{"name":8330,"slug":107,"type":13},"TypeScript","2026-07-12T07:36:42.004122",{"items":8333,"total":956},[8334,8342,8349,8355,8362,8369,8376],{"slug":8169,"name":8169,"fn":8170,"description":8171,"org":8335,"tags":8336,"stars":20,"repoUrl":21,"updatedAt":8185},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8337,8338,8339,8340,8341],{"name":8175,"slug":8176,"type":13},{"name":8178,"slug":8179,"type":13},{"name":9,"slug":8,"type":13},{"name":8182,"slug":8183,"type":13},{"name":18,"slug":19,"type":13},{"slug":8187,"name":8187,"fn":8188,"description":8189,"org":8343,"tags":8344,"stars":20,"repoUrl":21,"updatedAt":8200},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8345,8346,8347,8348],{"name":8175,"slug":8176,"type":13},{"name":8194,"slug":8195,"type":13},{"name":9,"slug":8,"type":13},{"name":8198,"slug":8199,"type":13},{"slug":8202,"name":8202,"fn":8203,"description":8204,"org":8350,"tags":8351,"stars":20,"repoUrl":21,"updatedAt":8214},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8352,8353,8354],{"name":8208,"slug":8209,"type":13},{"name":8211,"slug":8212,"type":13},{"name":18,"slug":19,"type":13},{"slug":8216,"name":8216,"fn":8217,"description":8218,"org":8356,"tags":8357,"stars":20,"repoUrl":21,"updatedAt":8227},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8358,8359,8360,8361],{"name":8208,"slug":8209,"type":13},{"name":8194,"slug":8195,"type":13},{"name":8224,"slug":8225,"type":13},{"name":9,"slug":8,"type":13},{"slug":8229,"name":8229,"fn":8230,"description":8231,"org":8363,"tags":8364,"stars":20,"repoUrl":21,"updatedAt":8242},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8365,8366,8367,8368],{"name":8194,"slug":8195,"type":13},{"name":8236,"slug":8237,"type":13},{"name":8239,"slug":8240,"type":13},{"name":9,"slug":8,"type":13},{"slug":8244,"name":8244,"fn":8245,"description":8246,"org":8370,"tags":8371,"stars":20,"repoUrl":21,"updatedAt":8257},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8372,8373,8374,8375],{"name":8224,"slug":8225,"type":13},{"name":8251,"slug":8252,"type":13},{"name":9,"slug":8,"type":13},{"name":8255,"slug":8256,"type":13},{"slug":1622,"name":1622,"fn":8259,"description":8260,"org":8377,"tags":8378,"stars":20,"repoUrl":21,"updatedAt":8269},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[8379,8380,8381,8382],{"name":8194,"slug":8195,"type":13},{"name":8265,"slug":8266,"type":13},{"name":9,"slug":8,"type":13},{"name":18,"slug":19,"type":13}]