agenttwin 0.3.21 → 0.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.js +2113 -609
- package/dist/dashboard/assets/dashboard/agent-home.css +7 -7
- package/dist/dashboard/assets/dashboard/bay-morning.webp +0 -0
- package/dist/dashboard/assets/dashboard/golden-gate-afternoon.webp +0 -0
- package/dist/dashboard/assets/dashboard/golden-gate-portrait.webp +0 -0
- package/dist/dashboard/assets/dashboard/moonlit-coast.webp +0 -0
- package/dist/dashboard/assets/next/static/chunks/5663-403316746afad10e.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/dashboard/{page-9c11295678539a5f.js → page-0e0392368e0a891e.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-4981ea4966b19e3e.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/onboarding/page-dd4ac0f5f36e6bfa.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/dashboard/{page-34574448d210c775.js → page-de0fe6d84be21e6a.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-360cbffc57981f6b.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/{page-07c8054d57c9089b.js → page-3e86fffabfa87d88.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/{webpack-40324749d289e4a5.js → webpack-be6e526fd530c797.js} +1 -1
- package/dist/dashboard/assets/next/static/css/{42045de5f39b50ca.css → 37d81e1d2804cc5f.css} +1 -1
- package/dist/dashboard/assets/next/static/css/69ec1bae997c3bb0.css +1 -0
- package/dist/dashboard/assets/next/static/css/ad85402a1595e56e.css +1 -0
- package/dist/dashboard/assets/next/static/css/{4bbe78c2fe206b92.css → da981fb878a02b8c.css} +1 -1
- package/dist/dashboard/assets/next/static/media/bay-morning.82669113.webp +0 -0
- package/dist/dashboard/assets/next/static/media/golden-gate-afternoon.0aa49492.webp +0 -0
- package/dist/dashboard/assets/next/static/media/golden-gate-portrait.89fc667a.webp +0 -0
- package/dist/dashboard/assets/next/static/media/moonlit-coast.09739ef4.webp +0 -0
- package/dist/dashboard/index.html +2 -2
- package/dist/engine.js +6385 -4973
- package/dist/gateway.js +2194 -604
- package/dist/twins/catalog.json +6020 -0
- package/dist/twins/engine/v2/THIRD-PARTY.txt +25 -0
- package/dist/twins/engine/v2/chunks/2CHBP57N.mjs +8 -0
- package/dist/twins/engine/v2/chunks/4CPL6MPF.mjs +30 -0
- package/dist/twins/engine/v2/chunks/OYLYKZGD.mjs +2 -0
- package/dist/twins/engine/v2/chunks/SQSP35HM.mjs +38 -0
- package/dist/twins/engine/v2/chunks/YSJQQVUM.mjs +2 -0
- package/dist/twins/engine/v2/react-dom_client.mjs +272 -0
- package/dist/twins/engine/v2/react-dom_server.mjs +263 -0
- package/dist/twins/engine/v2/react.mjs +2 -0
- package/dist/twins/engine/v2/react_jsx-runtime.mjs +31 -0
- package/dist/twins/engine/v2/volter_world-core.mjs +195 -0
- package/dist/twins/engine/v2/volter_world-core_app-route.mjs +2 -0
- package/dist/twins/engine/v2/volter_world-core_network-policy.mjs +2 -0
- package/dist/twins/engine/v3/THIRD-PARTY.txt +65 -0
- package/dist/twins/engine/v3/chunks/2CHBP57N.mjs +8 -0
- package/dist/twins/engine/v3/chunks/2YSSPA5O.mjs +65 -0
- package/dist/twins/engine/v3/chunks/5PWRY4UK.mjs +154 -0
- package/dist/twins/engine/v3/chunks/7XRKSFFJ.mjs +2 -0
- package/dist/twins/engine/v3/chunks/AWOWH2H5.mjs +2 -0
- package/dist/twins/engine/v3/chunks/C46M5U3Q.mjs +2 -0
- package/dist/twins/engine/v3/chunks/MFH2VZPP.mjs +2 -0
- package/dist/twins/engine/v3/chunks/MWCO5UV3.mjs +2 -0
- package/dist/twins/engine/v3/chunks/N5BL5RDF.mjs +313 -0
- package/dist/twins/engine/v3/chunks/O7HGPMXG.mjs +2 -0
- package/dist/twins/engine/v3/chunks/OYLYKZGD.mjs +2 -0
- package/dist/twins/engine/v3/chunks/PLB7HTON.mjs +8 -0
- package/dist/twins/engine/v3/chunks/TY4LDBVH.mjs +7 -0
- package/dist/twins/engine/v3/chunks/VDIRUSCM.mjs +2 -0
- package/dist/twins/engine/v3/chunks/WGUCFQK6.mjs +2 -0
- package/dist/twins/engine/v3/chunks/WPATONSC.mjs +2 -0
- package/dist/twins/engine/v3/react_jsx-runtime.mjs +2 -0
- package/dist/twins/engine/v3/volter_world-core.mjs +2 -0
- package/dist/twins/engine/v3/volter_world-ui.mjs +559 -0
- package/dist/twins/packs/ahrefs/LICENSE +202 -0
- package/dist/twins/packs/ahrefs/NOTICE +7 -0
- package/dist/twins/packs/ahrefs/index.mjs +2 -0
- package/dist/twins/packs/ai-gateway/LICENSE +202 -0
- package/dist/twins/packs/ai-gateway/NOTICE +7 -0
- package/dist/twins/packs/ai-gateway/index.mjs +14 -0
- package/dist/twins/packs/airtable/LICENSE +202 -0
- package/dist/twins/packs/airtable/NOTICE +7 -0
- package/dist/twins/packs/airtable/index.mjs +2 -0
- package/dist/twins/packs/algolia/LICENSE +202 -0
- package/dist/twins/packs/algolia/NOTICE +7 -0
- package/dist/twins/packs/algolia/index.mjs +2 -0
- package/dist/twins/packs/ambientcg/LICENSE +202 -0
- package/dist/twins/packs/ambientcg/NOTICE +7 -0
- package/dist/twins/packs/ambientcg/index.mjs +2 -0
- package/dist/twins/packs/anthropic/LICENSE +202 -0
- package/dist/twins/packs/anthropic/NOTICE +7 -0
- package/dist/twins/packs/anthropic/index.mjs +18 -0
- package/dist/twins/packs/assemblyai/LICENSE +202 -0
- package/dist/twins/packs/assemblyai/NOTICE +7 -0
- package/dist/twins/packs/assemblyai/index.mjs +11 -0
- package/dist/twins/packs/aws/LICENSE +202 -0
- package/dist/twins/packs/aws/NOTICE +7 -0
- package/dist/twins/packs/aws/index.mjs +2 -0
- package/dist/twins/packs/azure/LICENSE +202 -0
- package/dist/twins/packs/azure/NOTICE +7 -0
- package/dist/twins/packs/azure/index.mjs +38 -0
- package/dist/twins/packs/azureformrecognizer/LICENSE +202 -0
- package/dist/twins/packs/azureformrecognizer/NOTICE +7 -0
- package/dist/twins/packs/azureformrecognizer/index.mjs +3 -0
- package/dist/twins/packs/bitly/LICENSE +202 -0
- package/dist/twins/packs/bitly/NOTICE +7 -0
- package/dist/twins/packs/bitly/index.mjs +2 -0
- package/dist/twins/packs/bluesky/LICENSE +202 -0
- package/dist/twins/packs/bluesky/NOTICE +7 -0
- package/dist/twins/packs/bluesky/index.mjs +30 -0
- package/dist/twins/packs/calcom/LICENSE +202 -0
- package/dist/twins/packs/calcom/NOTICE +7 -0
- package/dist/twins/packs/calcom/index.mjs +2 -0
- package/dist/twins/packs/clerk/LICENSE +202 -0
- package/dist/twins/packs/clerk/NOTICE +7 -0
- package/dist/twins/packs/clerk/index.mjs +5 -0
- package/dist/twins/packs/cloudflare/LICENSE +202 -0
- package/dist/twins/packs/cloudflare/NOTICE +7 -0
- package/dist/twins/packs/cloudflare/index.mjs +79 -0
- package/dist/twins/packs/cohere/LICENSE +202 -0
- package/dist/twins/packs/cohere/NOTICE +7 -0
- package/dist/twins/packs/cohere/index.mjs +2 -0
- package/dist/twins/packs/datadog/LICENSE +202 -0
- package/dist/twins/packs/datadog/NOTICE +7 -0
- package/dist/twins/packs/datadog/index.mjs +3 -0
- package/dist/twins/packs/deepinfra/LICENSE +202 -0
- package/dist/twins/packs/deepinfra/NOTICE +7 -0
- package/dist/twins/packs/deepinfra/index.mjs +13 -0
- package/dist/twins/packs/deepseek/LICENSE +202 -0
- package/dist/twins/packs/deepseek/NOTICE +7 -0
- package/dist/twins/packs/deepseek/index.mjs +12 -0
- package/dist/twins/packs/discord/LICENSE +202 -0
- package/dist/twins/packs/discord/NOTICE +7 -0
- package/dist/twins/packs/discord/index.mjs +2 -0
- package/dist/twins/packs/duckduckgo/LICENSE +202 -0
- package/dist/twins/packs/duckduckgo/NOTICE +7 -0
- package/dist/twins/packs/duckduckgo/index.mjs +532 -0
- package/dist/twins/packs/dynadot/LICENSE +202 -0
- package/dist/twins/packs/dynadot/NOTICE +7 -0
- package/dist/twins/packs/dynadot/index.mjs +2 -0
- package/dist/twins/packs/e2b/LICENSE +202 -0
- package/dist/twins/packs/e2b/NOTICE +7 -0
- package/dist/twins/packs/e2b/index.mjs +2 -0
- package/dist/twins/packs/elevenlabs/LICENSE +202 -0
- package/dist/twins/packs/elevenlabs/NOTICE +7 -0
- package/dist/twins/packs/elevenlabs/index.mjs +4 -0
- package/dist/twins/packs/expo/LICENSE +202 -0
- package/dist/twins/packs/expo/NOTICE +7 -0
- package/dist/twins/packs/expo/index.mjs +2 -0
- package/dist/twins/packs/fal/LICENSE +202 -0
- package/dist/twins/packs/fal/NOTICE +7 -0
- package/dist/twins/packs/fal/index.mjs +2 -0
- package/dist/twins/packs/figma/LICENSE +202 -0
- package/dist/twins/packs/figma/NOTICE +7 -0
- package/dist/twins/packs/figma/index.mjs +2 -0
- package/dist/twins/packs/firecrawl/LICENSE +202 -0
- package/dist/twins/packs/firecrawl/NOTICE +7 -0
- package/dist/twins/packs/firecrawl/index.mjs +9 -0
- package/dist/twins/packs/fireworks/LICENSE +202 -0
- package/dist/twins/packs/fireworks/NOTICE +7 -0
- package/dist/twins/packs/fireworks/index.mjs +13 -0
- package/dist/twins/packs/fly/LICENSE +202 -0
- package/dist/twins/packs/fly/NOTICE +7 -0
- package/dist/twins/packs/fly/index.mjs +2 -0
- package/dist/twins/packs/gcs/LICENSE +202 -0
- package/dist/twins/packs/gcs/NOTICE +7 -0
- package/dist/twins/packs/gcs/index.mjs +8 -0
- package/dist/twins/packs/gemini/LICENSE +202 -0
- package/dist/twins/packs/gemini/NOTICE +7 -0
- package/dist/twins/packs/gemini/index.mjs +7 -0
- package/dist/twins/packs/github/LICENSE +202 -0
- package/dist/twins/packs/github/NOTICE +7 -0
- package/dist/twins/packs/github/index.mjs +75153 -0
- package/dist/twins/packs/googleads/LICENSE +202 -0
- package/dist/twins/packs/googleads/NOTICE +7 -0
- package/dist/twins/packs/googleads/index.mjs +3 -0
- package/dist/twins/packs/googlemaps/LICENSE +202 -0
- package/dist/twins/packs/googlemaps/NOTICE +7 -0
- package/dist/twins/packs/googlemaps/index.mjs +2 -0
- package/dist/twins/packs/googleoauth/LICENSE +202 -0
- package/dist/twins/packs/googleoauth/NOTICE +7 -0
- package/dist/twins/packs/googleoauth/index.mjs +2 -0
- package/dist/twins/packs/hackernews/LICENSE +202 -0
- package/dist/twins/packs/hackernews/NOTICE +7 -0
- package/dist/twins/packs/hackernews/index.mjs +35 -0
- package/dist/twins/packs/huggingface/LICENSE +202 -0
- package/dist/twins/packs/huggingface/NOTICE +7 -0
- package/dist/twins/packs/huggingface/index.mjs +9 -0
- package/dist/twins/packs/inngest/LICENSE +202 -0
- package/dist/twins/packs/inngest/NOTICE +7 -0
- package/dist/twins/packs/inngest/index.mjs +2 -0
- package/dist/twins/packs/instagram/LICENSE +202 -0
- package/dist/twins/packs/instagram/NOTICE +7 -0
- package/dist/twins/packs/instagram/index.mjs +2 -0
- package/dist/twins/packs/jira/LICENSE +202 -0
- package/dist/twins/packs/jira/NOTICE +7 -0
- package/dist/twins/packs/jira/index.mjs +2 -0
- package/dist/twins/packs/langfuse/LICENSE +202 -0
- package/dist/twins/packs/langfuse/NOTICE +7 -0
- package/dist/twins/packs/langfuse/index.mjs +2 -0
- package/dist/twins/packs/linear/LICENSE +202 -0
- package/dist/twins/packs/linear/NOTICE +7 -0
- package/dist/twins/packs/linear/index.mjs +52866 -0
- package/dist/twins/packs/linkedin/LICENSE +202 -0
- package/dist/twins/packs/linkedin/NOTICE +7 -0
- package/dist/twins/packs/linkedin/index.mjs +78 -0
- package/dist/twins/packs/livekit/LICENSE +202 -0
- package/dist/twins/packs/livekit/NOTICE +7 -0
- package/dist/twins/packs/livekit/index.mjs +2 -0
- package/dist/twins/packs/mailgun/LICENSE +202 -0
- package/dist/twins/packs/mailgun/NOTICE +7 -0
- package/dist/twins/packs/mailgun/index.mjs +13 -0
- package/dist/twins/packs/mapbox/LICENSE +202 -0
- package/dist/twins/packs/mapbox/NOTICE +7 -0
- package/dist/twins/packs/mapbox/index.mjs +2 -0
- package/dist/twins/packs/merge/LICENSE +202 -0
- package/dist/twins/packs/merge/NOTICE +7 -0
- package/dist/twins/packs/merge/index.mjs +4 -0
- package/dist/twins/packs/mistral/LICENSE +202 -0
- package/dist/twins/packs/mistral/NOTICE +7 -0
- package/dist/twins/packs/mistral/index.mjs +6 -0
- package/dist/twins/packs/mixpanel/LICENSE +202 -0
- package/dist/twins/packs/mixpanel/NOTICE +8 -0
- package/dist/twins/packs/mixpanel/index.mjs +2 -0
- package/dist/twins/packs/mongodb/LICENSE +202 -0
- package/dist/twins/packs/mongodb/NOTICE +7 -0
- package/dist/twins/packs/mongodb/index.mjs +8 -0
- package/dist/twins/packs/moonshot/LICENSE +202 -0
- package/dist/twins/packs/moonshot/NOTICE +7 -0
- package/dist/twins/packs/moonshot/index.mjs +18 -0
- package/dist/twins/packs/notion/LICENSE +202 -0
- package/dist/twins/packs/notion/NOTICE +7 -0
- package/dist/twins/packs/notion/index.mjs +2 -0
- package/dist/twins/packs/npm-registry/LICENSE +202 -0
- package/dist/twins/packs/npm-registry/NOTICE +7 -0
- package/dist/twins/packs/npm-registry/index.mjs +2 -0
- package/dist/twins/packs/oa-treasury/LICENSE +202 -0
- package/dist/twins/packs/oa-treasury/NOTICE +8 -0
- package/dist/twins/packs/oa-treasury/index.mjs +16 -0
- package/dist/twins/packs/openai/LICENSE +202 -0
- package/dist/twins/packs/openai/NOTICE +7 -0
- package/dist/twins/packs/openai/index.mjs +3473 -0
- package/dist/twins/packs/openrouter/LICENSE +202 -0
- package/dist/twins/packs/openrouter/NOTICE +7 -0
- package/dist/twins/packs/openrouter/index.mjs +2 -0
- package/dist/twins/packs/openweather/LICENSE +202 -0
- package/dist/twins/packs/openweather/NOTICE +7 -0
- package/dist/twins/packs/openweather/index.mjs +2 -0
- package/dist/twins/packs/paypal/LICENSE +202 -0
- package/dist/twins/packs/paypal/NOTICE +7 -0
- package/dist/twins/packs/paypal/index.mjs +51 -0
- package/dist/twins/packs/pinecone/LICENSE +202 -0
- package/dist/twins/packs/pinecone/NOTICE +7 -0
- package/dist/twins/packs/pinecone/index.mjs +2 -0
- package/dist/twins/packs/plain/LICENSE +202 -0
- package/dist/twins/packs/plain/NOTICE +8 -0
- package/dist/twins/packs/plain/index.mjs +18426 -0
- package/dist/twins/packs/planetscale/LICENSE +202 -0
- package/dist/twins/packs/planetscale/NOTICE +7 -0
- package/dist/twins/packs/planetscale/index.mjs +18 -0
- package/dist/twins/packs/polar/LICENSE +202 -0
- package/dist/twins/packs/polar/NOTICE +7 -0
- package/dist/twins/packs/polar/index.mjs +2 -0
- package/dist/twins/packs/polyhaven/LICENSE +202 -0
- package/dist/twins/packs/polyhaven/NOTICE +7 -0
- package/dist/twins/packs/polyhaven/index.mjs +3 -0
- package/dist/twins/packs/postmark/LICENSE +202 -0
- package/dist/twins/packs/postmark/NOTICE +7 -0
- package/dist/twins/packs/postmark/index.mjs +12 -0
- package/dist/twins/packs/reddit/LICENSE +202 -0
- package/dist/twins/packs/reddit/NOTICE +7 -0
- package/dist/twins/packs/reddit/index.mjs +324 -0
- package/dist/twins/packs/redis/LICENSE +202 -0
- package/dist/twins/packs/redis/NOTICE +7 -0
- package/dist/twins/packs/redis/index.mjs +2 -0
- package/dist/twins/packs/replicate/LICENSE +202 -0
- package/dist/twins/packs/replicate/NOTICE +7 -0
- package/dist/twins/packs/replicate/index.mjs +2 -0
- package/dist/twins/packs/resend/LICENSE +202 -0
- package/dist/twins/packs/resend/NOTICE +7 -0
- package/dist/twins/packs/resend/index.mjs +139 -0
- package/dist/twins/packs/runhuman/LICENSE +202 -0
- package/dist/twins/packs/runhuman/NOTICE +7 -0
- package/dist/twins/packs/runhuman/index.mjs +3 -0
- package/dist/twins/packs/scrapecreators/LICENSE +202 -0
- package/dist/twins/packs/scrapecreators/NOTICE +7 -0
- package/dist/twins/packs/scrapecreators/index.mjs +2 -0
- package/dist/twins/packs/segment/LICENSE +202 -0
- package/dist/twins/packs/segment/NOTICE +8 -0
- package/dist/twins/packs/segment/index.mjs +2 -0
- package/dist/twins/packs/sendblue/LICENSE +202 -0
- package/dist/twins/packs/sendblue/NOTICE +7 -0
- package/dist/twins/packs/sendblue/index.mjs +2 -0
- package/dist/twins/packs/sendgrid/LICENSE +202 -0
- package/dist/twins/packs/sendgrid/NOTICE +8 -0
- package/dist/twins/packs/sendgrid/index.mjs +4 -0
- package/dist/twins/packs/sentry/LICENSE +202 -0
- package/dist/twins/packs/sentry/NOTICE +7 -0
- package/dist/twins/packs/sentry/index.mjs +5 -0
- package/dist/twins/packs/sigstore/LICENSE +202 -0
- package/dist/twins/packs/sigstore/NOTICE +7 -0
- package/dist/twins/packs/sigstore/index.mjs +12 -0
- package/dist/twins/packs/slack/LICENSE +202 -0
- package/dist/twins/packs/slack/NOTICE +7 -0
- package/dist/twins/packs/slack/index.mjs +66 -0
- package/dist/twins/packs/smtp/LICENSE +202 -0
- package/dist/twins/packs/smtp/NOTICE +7 -0
- package/dist/twins/packs/smtp/index.mjs +3 -0
- package/dist/twins/packs/snowflake/LICENSE +202 -0
- package/dist/twins/packs/snowflake/NOTICE +8 -0
- package/dist/twins/packs/snowflake/index.mjs +30 -0
- package/dist/twins/packs/stigg/LICENSE +202 -0
- package/dist/twins/packs/stigg/NOTICE +8 -0
- package/dist/twins/packs/stigg/index.mjs +22194 -0
- package/dist/twins/packs/stream/LICENSE +202 -0
- package/dist/twins/packs/stream/NOTICE +7 -0
- package/dist/twins/packs/stream/index.mjs +2 -0
- package/dist/twins/packs/stripe/LICENSE +202 -0
- package/dist/twins/packs/stripe/NOTICE +7 -0
- package/dist/twins/packs/stripe/index.mjs +211 -0
- package/dist/twins/packs/supabase/LICENSE +202 -0
- package/dist/twins/packs/supabase/NOTICE +7 -0
- package/dist/twins/packs/supabase/index.mjs +2 -0
- package/dist/twins/packs/supermemory/LICENSE +202 -0
- package/dist/twins/packs/supermemory/NOTICE +7 -0
- package/dist/twins/packs/supermemory/index.mjs +2 -0
- package/dist/twins/packs/svix/LICENSE +202 -0
- package/dist/twins/packs/svix/NOTICE +7 -0
- package/dist/twins/packs/svix/index.mjs +2 -0
- package/dist/twins/packs/tavily/LICENSE +202 -0
- package/dist/twins/packs/tavily/NOTICE +7 -0
- package/dist/twins/packs/tavily/index.mjs +2 -0
- package/dist/twins/packs/telegram/LICENSE +202 -0
- package/dist/twins/packs/telegram/NOTICE +7 -0
- package/dist/twins/packs/telegram/index.mjs +11 -0
- package/dist/twins/packs/temporal/LICENSE +202 -0
- package/dist/twins/packs/temporal/NOTICE +7 -0
- package/dist/twins/packs/temporal/index.mjs +44 -0
- package/dist/twins/packs/tiktok/LICENSE +202 -0
- package/dist/twins/packs/tiktok/NOTICE +7 -0
- package/dist/twins/packs/tiktok/index.mjs +2 -0
- package/dist/twins/packs/tinybird/LICENSE +202 -0
- package/dist/twins/packs/tinybird/NOTICE +7 -0
- package/dist/twins/packs/tinybird/index.mjs +50 -0
- package/dist/twins/packs/togetherai/LICENSE +202 -0
- package/dist/twins/packs/togetherai/NOTICE +7 -0
- package/dist/twins/packs/togetherai/index.mjs +11 -0
- package/dist/twins/packs/tremendous/LICENSE +202 -0
- package/dist/twins/packs/tremendous/NOTICE +7 -0
- package/dist/twins/packs/tremendous/index.mjs +2 -0
- package/dist/twins/packs/tripo/LICENSE +202 -0
- package/dist/twins/packs/tripo/NOTICE +7 -0
- package/dist/twins/packs/tripo/index.mjs +9 -0
- package/dist/twins/packs/tunnel/LICENSE +202 -0
- package/dist/twins/packs/tunnel/NOTICE +7 -0
- package/dist/twins/packs/tunnel/index.mjs +2 -0
- package/dist/twins/packs/twelvelabs/LICENSE +202 -0
- package/dist/twins/packs/twelvelabs/NOTICE +7 -0
- package/dist/twins/packs/twelvelabs/index.mjs +5 -0
- package/dist/twins/packs/twilio/LICENSE +202 -0
- package/dist/twins/packs/twilio/NOTICE +7 -0
- package/dist/twins/packs/twilio/index.mjs +2 -0
- package/dist/twins/packs/twitch/LICENSE +202 -0
- package/dist/twins/packs/twitch/NOTICE +7 -0
- package/dist/twins/packs/twitch/index.mjs +68 -0
- package/dist/twins/packs/upstash/LICENSE +202 -0
- package/dist/twins/packs/upstash/NOTICE +7 -0
- package/dist/twins/packs/upstash/index.mjs +14 -0
- package/dist/twins/packs/upstashvector/LICENSE +202 -0
- package/dist/twins/packs/upstashvector/NOTICE +7 -0
- package/dist/twins/packs/upstashvector/index.mjs +3 -0
- package/dist/twins/packs/vercel/LICENSE +202 -0
- package/dist/twins/packs/vercel/NOTICE +7 -0
- package/dist/twins/packs/vercel/index.mjs +10 -0
- package/dist/twins/packs/veriff/LICENSE +202 -0
- package/dist/twins/packs/veriff/NOTICE +7 -0
- package/dist/twins/packs/veriff/index.mjs +2 -0
- package/dist/twins/packs/vgauth/LICENSE +202 -0
- package/dist/twins/packs/vgauth/NOTICE +7 -0
- package/dist/twins/packs/vgauth/index.mjs +2 -0
- package/dist/twins/packs/vital/LICENSE +202 -0
- package/dist/twins/packs/vital/NOTICE +7 -0
- package/dist/twins/packs/vital/index.mjs +2 -0
- package/dist/twins/packs/volteridentity/LICENSE +202 -0
- package/dist/twins/packs/volteridentity/NOTICE +7 -0
- package/dist/twins/packs/volteridentity/index.mjs +2 -0
- package/dist/twins/packs/webrisk/LICENSE +202 -0
- package/dist/twins/packs/webrisk/NOTICE +7 -0
- package/dist/twins/packs/webrisk/index.mjs +2 -0
- package/dist/twins/packs/worldlabs/LICENSE +202 -0
- package/dist/twins/packs/worldlabs/NOTICE +7 -0
- package/dist/twins/packs/worldlabs/index.mjs +2 -0
- package/dist/twins/packs/x/LICENSE +202 -0
- package/dist/twins/packs/x/NOTICE +7 -0
- package/dist/twins/packs/x/index.mjs +63 -0
- package/dist/twins/packs/xai/LICENSE +202 -0
- package/dist/twins/packs/xai/NOTICE +7 -0
- package/dist/twins/packs/xai/index.mjs +4 -0
- package/dist/twins/packs/xidentity/LICENSE +202 -0
- package/dist/twins/packs/xidentity/NOTICE +8 -0
- package/dist/twins/packs/xidentity/index.mjs +209 -0
- package/dist/twins/packs/youtube/LICENSE +202 -0
- package/dist/twins/packs/youtube/NOTICE +7 -0
- package/dist/twins/packs/youtube/index.mjs +5 -0
- package/dist/worker.js +442 -18
- package/dist/world-host.js +928 -91
- package/package.json +5 -4
- package/dist/dashboard/assets/dashboard/bay-morning.png +0 -0
- package/dist/dashboard/assets/dashboard/golden-gate-afternoon.png +0 -0
- package/dist/dashboard/assets/dashboard/golden-gate-portrait.png +0 -0
- package/dist/dashboard/assets/dashboard/moonlit-coast.png +0 -0
- package/dist/dashboard/assets/next/static/chunks/2868-424d32cfc8ae81c9.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/docs/[[...slug]]/page-f9fca2c08f779fa0.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/onboarding/page-bc480c9258e5cc4d.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/onboarding/page-f04c0b236abaead3.js +0 -1
- package/dist/dashboard/assets/next/static/css/4af3c8ca0da0f48b.css +0 -1
- package/dist/dashboard/assets/next/static/css/6b8edde77e493a51.css +0 -1
- package/dist/dashboard/assets/next/static/media/bay-morning.1a9f358c.png +0 -0
- package/dist/dashboard/assets/next/static/media/golden-gate-afternoon.3e7cea58.png +0 -0
- package/dist/dashboard/assets/next/static/media/golden-gate-portrait.7941528f.png +0 -0
- package/dist/dashboard/assets/next/static/media/moonlit-coast.bbe901a1.png +0 -0
- /package/dist/dashboard/assets/next/static/{5ub3D2yzS8DE7w2qZd1nv → 8f121VqXS9LLPMmYd1SRn}/_buildManifest.js +0 -0
- /package/dist/dashboard/assets/next/static/{5ub3D2yzS8DE7w2qZd1nv → 8f121VqXS9LLPMmYd1SRn}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
@agenttwin/twin-livekit
|
|
2
|
+
|
|
3
|
+
Contains @volter/twin-livekit 0.1.38 by Volter (https://github.com/volter-ai),
|
|
4
|
+
licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
+
|
|
6
|
+
Modified by AgentTwin: bundled and minified into one file; only code reachable from the pack's
|
|
7
|
+
fetch factory is included; shared modules are imported from the AgentTwin twin engine.
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as __atReq}from'node:module';const require=__atReq(import.meta.url);
|
|
2
|
+
import{applyTwinWrite as V}from"../../engine/v2/volter_world-core.mjs";import{createHash as $t}from"node:crypto";import{projectResources as Bt}from"../../engine/v2/volter_world-core.mjs";var A="livekit",B="1970-01-01T00:00:00.000Z",P={UNKNOWN:0,CAMERA:1,MICROPHONE:2,SCREEN_SHARE:3,SCREEN_SHARE_AUDIO:4},ot={AUDIO:0,VIDEO:1,DATA:2},at={JOINING:0,JOINED:1,ACTIVE:2,DISCONNECTED:3},f={STARTING:0,ACTIVE:1,ENDING:2,COMPLETE:3,FAILED:4,ABORTED:5,LIMIT_REACHED:6},_={RTMP_INPUT:0,WHIP_INPUT:1,URL_INPUT:2},J={ENDPOINT_INACTIVE:0,ENDPOINT_BUFFERING:1,ENDPOINT_PUBLISHING:2,ENDPOINT_ERROR:3,ENDPOINT_COMPLETE:4};function k(t){return t===f.STARTING||t===f.ACTIVE||t===f.ENDING}function ht(t){if(typeof t=="number")return t;let s=String(t??"").toUpperCase();return s==="WHIP_INPUT"||s==="WHIP"?_.WHIP_INPUT:s==="URL_INPUT"||s==="URL"?_.URL_INPUT:_.RTMP_INPUT}function h(t){return $t("sha256").update(JSON.stringify(t)).digest("hex").slice(0,16)}function dt(t){return String(Math.floor(new Date(t).getTime()/1e3))}function St(t){return String(new Date(t).getTime())}function Y(t){return`room_${h(t)}`}function jt(t){return`RM_${h(t)}`}function Ht(t,s){return`participant_${h({roomName:t,identity:s})}`}function Gt(t,s){return`PA_${h({roomName:t,identity:s})}`}function bt(t,s,u,o){return`EG_${h({roomName:t,request:s,occurredAt:u,sequence:o})}`}function z(t){return`egress_${t}`}function yt(t,s,u,o){return`IN_${h({roomName:t,participantIdentity:s,request:u,sequence:o})}`}function ut(t){return`ingress_${t}`}function Vt(t){return h({streamKey:t})}function st(t){if(typeof t=="number")return t;let s=String(t??"").toUpperCase();return s==="SCREEN_SHARE"?P.SCREEN_SHARE:s==="SCREEN_SHARE_AUDIO"?P.SCREEN_SHARE_AUDIO:s==="MICROPHONE"?P.MICROPHONE:s==="CAMERA"?P.CAMERA:P.UNKNOWN}function L(t,s=B,u={}){return{id:Y(t),sid:jt(t),name:t,emptyTimeout:Number(u.emptyTimeout??300),departureTimeout:Number(u.departureTimeout??20),maxParticipants:Number(u.maxParticipants??0),metadata:String(u.metadata??""),creationTime:dt(s),creationTimeMs:St(s),numParticipants:0,activeRecording:!1,generation:Number(u.generation??0),deleted:!1}}function O(t,s,u=B,o={}){let e=Array.isArray(o.tracks)?o.tracks:[];return{id:Ht(t,s),sid:String(o.sid??Gt(t,s)),roomName:t,identity:s,state:Number(o.state??at.ACTIVE),tracks:e.map((d,r)=>({sid:String(d.sid??`TR_${h({roomName:t,identity:s,index:r})}`),name:String(d.name??`track-${r+1}`),type:Number(d.type??(st(d.source)===P.MICROPHONE||st(d.source)===P.SCREEN_SHARE_AUDIO?ot.AUDIO:ot.VIDEO)),muted:!!(d.muted??!1),width:Number(d.width??1280),height:Number(d.height??720),source:st(d.source),mimeType:String(d.mimeType??"video/vp8")})),metadata:String(o.metadata??""),joinedAt:dt(u),joinedAtMs:St(u),name:String(o.name??s),version:Number(o.version??1),isPublisher:!!(o.isPublisher??!0),kind:Number(o.kind??0),attributes:o.attributes&&typeof o.attributes=="object"?o.attributes:{},permission:o.permission&&typeof o.permission=="object"?{canSubscribe:!!(o.permission.canSubscribe??!0),canPublish:!!(o.permission.canPublish??!0),canPublishData:!!(o.permission.canPublishData??!0),canUpdateMetadata:!!(o.permission.canUpdateMetadata??!1),hidden:!!(o.permission.hidden??!1),canSubscribeMetrics:!!(o.permission.canSubscribeMetrics??!1)}:{canSubscribe:!0,canPublish:!0,canPublishData:!0,canUpdateMetadata:!1,hidden:!1,canSubscribeMetrics:!1},subscribedTracks:Array.isArray(o.subscribedTracks)?o.subscribedTracks.map(String):[]}}function E(t,s){return Bt(A,s).filter(u=>u.type===t).map(u=>{let{type:o,updatedAt:e,...d}=u;return d})}var U=t=>E("room",t),D=t=>E("participant",t),y=t=>E("egress",t),x=t=>E("ingress",t);function It(t,s,u=B,o={}){let e=o.enableTranscoding!==void 0?!!o.enableTranscoding:s!==_.WHIP_INPUT;return{id:ut(t),ingressId:t,name:String(o.name??""),streamKey:s===_.URL_INPUT?"":Vt(t),url:Wt(s,t,o),inputType:s,bypassTranscoding:!e,enableTranscoding:e,roomName:String(o.roomName??""),participantIdentity:String(o.participantIdentity??""),participantName:String(o.participantName??""),participantMetadata:String(o.participantMetadata??""),reusable:s===_.RTMP_INPUT,enabled:o.enabled===void 0?!0:!!o.enabled,audio:o.audio&&typeof o.audio=="object"?o.audio:void 0,video:o.video&&typeof o.video=="object"?o.video:void 0,state:{status:J.ENDPOINT_INACTIVE,error:"",roomId:"",startedAt:"0",endedAt:"0",updatedAt:dt(u),resourceId:""},deleted:!1}}function Wt(t,s,u){return t===_.URL_INPUT?String(u.url??""):t===_.WHIP_INPUT?"https://twin.whip.livekit.cloud/w":"rtmp://twin.rtmp.livekit.cloud/x"}var N={SIP_TRANSPORT_AUTO:"SIP_TRANSPORT_AUTO",SIP_TRANSPORT_UDP:"SIP_TRANSPORT_UDP",SIP_TRANSPORT_TCP:"SIP_TRANSPORT_TCP",SIP_TRANSPORT_TLS:"SIP_TRANSPORT_TLS"};function Z(t){if(typeof t=="number")return["SIP_TRANSPORT_AUTO","SIP_TRANSPORT_UDP","SIP_TRANSPORT_TCP","SIP_TRANSPORT_TLS"][t]??N.SIP_TRANSPORT_AUTO;let s=String(t??"").toUpperCase();return N[s]??N.SIP_TRANSPORT_AUTO}function _t(t,s,u){return`ST_${h({kind:"inbound",name:t,numbers:s,sequence:u})}`}function Tt(t,s,u){return`ST_${h({kind:"outbound",name:t,address:s,sequence:u})}`}function At(t,s){return`SDR_${h({request:t,sequence:s})}`}function vt(t,s,u){return`SCL_${h({roomName:t,sipCallTo:s,sequence:u})}`}function Rt(t,s){return`PA_${h({sip:!0,roomName:t,identity:s})}`}function Et(t,s,u){return`AD_${h({room:t,agentName:s,sequence:u})}`}var j=t=>E("sip_inbound_trunk",t),C=t=>E("sip_outbound_trunk",t),H=t=>E("sip_dispatch_rule",t),wt=t=>E("sip_participant",t),X=t=>E("agent_dispatch",t);function Q(t,s){let u=D(s).filter(e=>e.roomName===t.name&&e.state!==at.DISCONNECTED).length,o=y(s).some(e=>e.roomName===t.name&&k(e.status));return{...t,numParticipants:u,activeRecording:o}}import{createHmac as Ft,timingSafeEqual as Jt}from"node:crypto";function Yt(t){return Buffer.from(t).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function zt(t){let s=t.length%4===0?"":"=".repeat(4-t.length%4);return Buffer.from(t.replace(/-/g,"+").replace(/_/g,"/")+s,"base64")}function Zt(t,s){return Yt(Ft("sha256",s).update(t).digest())}function ct(t,s,u={}){let o=t.split(".");if(o.length!==3)return{ok:!1,reason:"malformed"};let[e,d,r]=o,n;try{n=JSON.parse(zt(d).toString("utf8"))}catch{return{ok:!1,reason:"malformed"}}let a=String(n.iss??""),i=s(a);if(!i)return{ok:!1,reason:"unknown_key"};let m=Zt(`${e}.${d}`,i),p=Buffer.from(r),l=Buffer.from(m);if(p.length!==l.length||!Jt(p,l))return{ok:!1,reason:"bad_signature"};let g=u.nowSeconds??0,w=u.clockToleranceSeconds??0;return typeof n.exp=="number"&&g>n.exp+w?{ok:!1,reason:"expired"}:typeof n.nbf=="number"&&g+w<n.nbf?{ok:!1,reason:"not_yet_valid"}:{ok:!0,grants:n}}var Xt={"RoomService.CreateRoom":"roomCreate","RoomService.DeleteRoom":"roomCreate","RoomService.ListRooms":"roomList","RoomService.UpdateRoomMetadata":"roomAdmin","RoomService.ListParticipants":"roomAdmin","RoomService.GetParticipant":"roomAdmin","RoomService.RemoveParticipant":"roomAdmin","RoomService.UpdateParticipant":"roomAdmin","RoomService.MutePublishedTrack":"roomAdmin","RoomService.UpdateSubscriptions":"roomAdmin","RoomService.SendData":"roomAdmin","Egress.StartRoomCompositeEgress":"roomRecord","Egress.StartWebEgress":"roomRecord","Egress.StartParticipantEgress":"roomRecord","Egress.StartTrackCompositeEgress":"roomRecord","Egress.StartTrackEgress":"roomRecord","Egress.UpdateLayout":"roomRecord","Egress.UpdateStream":"roomRecord","Egress.StopEgress":"roomRecord","Egress.ListEgress":"roomRecord","Ingress.CreateIngress":"ingressAdmin","Ingress.UpdateIngress":"ingressAdmin","Ingress.ListIngress":"ingressAdmin","Ingress.DeleteIngress":"ingressAdmin","RoomService.ForwardParticipant":"roomAdmin","RoomService.MoveParticipant":"roomAdmin","AgentDispatchService.CreateDispatch":"roomAdmin","AgentDispatchService.DeleteDispatch":"roomAdmin","AgentDispatchService.ListDispatch":"roomAdmin"};function Qt(t){if(!t?.trim())return{};try{let s=JSON.parse(t);return s&&typeof s=="object"&&!Array.isArray(s)?s:{}}catch{return{}}}function c(t,s,u){return{status:t,body:{code:s,msg:u,meta:{}}}}function qt(t){let s=t.match(/^\/twirp\/livekit\.([^/]+)\/([^/?]+)$/);return s?{service:s[1],method:s[2]}:null}function mt(t){return{sid:t.sid,name:t.name,emptyTimeout:t.emptyTimeout,departureTimeout:t.departureTimeout,maxParticipants:t.maxParticipants,creationTime:t.creationTime,creationTimeMs:t.creationTimeMs,metadata:t.metadata,numParticipants:t.numParticipants,activeRecording:t.activeRecording}}function q(t){return{sid:t.sid,identity:t.identity,state:t.state,tracks:t.tracks,metadata:t.metadata,joinedAt:t.joinedAt,joinedAtMs:t.joinedAtMs,name:t.name,version:t.version,isPublisher:t.isPublisher,kind:t.kind,attributes:t.attributes,permission:t.permission,subscribedTracks:t.subscribedTracks}}function M(t){return{egressId:t.egressId,roomId:t.roomId,roomName:t.roomName,sourceType:t.sourceType,status:t.status,startedAt:t.startedAt,endedAt:t.endedAt,updatedAt:t.updatedAt,details:t.details,error:t.error,errorCode:t.errorCode,[t.requestCase]:t.request,streamResults:(t.streamUrls??[]).map(s=>({url:s,status:k(t.status)?0:1})),fileResults:[],segmentResults:[],imageResults:[]}}function tt(t){return{ingressId:t.ingressId,name:t.name,streamKey:t.streamKey,url:t.url,inputType:t.inputType,bypassTranscoding:t.bypassTranscoding,enableTranscoding:t.enableTranscoding,audio:t.audio,video:t.video,roomName:t.roomName,participantIdentity:t.participantIdentity,participantName:t.participantName,participantMetadata:t.participantMetadata,reusable:t.reusable,enabled:t.enabled,state:t.state}}function et(t){return{sipTrunkId:t.sipTrunkId,name:t.name,metadata:t.metadata,numbers:t.numbers,allowedAddresses:t.allowedAddresses,allowedNumbers:t.allowedNumbers,authUsername:t.authUsername,authPassword:t.authPassword,headers:t.headers,headersToAttributes:t.headersToAttributes,krispEnabled:t.krispEnabled,includeHeaders:t.includeHeaders,mediaEncryption:t.mediaEncryption}}function rt(t){return{sipTrunkId:t.sipTrunkId,name:t.name,metadata:t.metadata,address:t.address,transport:t.transport,numbers:t.numbers,authUsername:t.authUsername,authPassword:t.authPassword,headers:t.headers,headersToAttributes:t.headersToAttributes,includeHeaders:t.includeHeaders,mediaEncryption:t.mediaEncryption,destinationCountry:t.destinationCountry}}function it(t){return{sipDispatchRuleId:t.sipDispatchRuleId,rule:{[t.rule.case]:t.rule.value},trunkIds:t.trunkIds,inboundNumbers:t.inboundNumbers,hidePhoneNumber:t.hidePhoneNumber,name:t.name,metadata:t.metadata,attributes:t.attributes,roomPreset:t.roomPreset}}function G(t,s){if(!s||typeof s!="object")return t;let u=s;if(u.clear===!0)return[];if(Array.isArray(u.set))return u.set.map(String);let o=[...t];if(Array.isArray(u.remove)){let e=new Set(u.remove.map(String));o=o.filter(d=>!e.has(d))}if(Array.isArray(u.add))for(let e of u.add.map(String))o.includes(e)||o.push(e);return o}function S(t,s,u,o){return u in s&&s[u]!==void 0?o(s[u]):t}function te(t){return{participantId:t.participantId,participantIdentity:t.participantIdentity,roomName:t.roomName,sipCallId:t.sipCallId}}function pt(t){return{id:t.dispatchId,agentName:t.agentName,room:t.room,metadata:t.metadata,state:{jobs:[],createdAt:t.createdAt,deletedAt:"0"}}}async function I(t,s,u,o,e,d){await V(A,{operation:u,subjectType:t,subjectId:s,fields:o,occurredAt:e,actor:{kind:"system"}},d)}async function K(t,s,u){await V(A,{operation:"room.upsert",subjectType:"room",subjectId:t.id,fields:t,occurredAt:s,actor:{kind:"system"}},u)}async function T(t,s,u){await V(A,{operation:"participant.upsert",subjectType:"participant",subjectId:t.id,fields:t,occurredAt:s,actor:{kind:"system"}},u)}async function $(t,s,u,o){await V(A,{operation:s,subjectType:"egress",subjectId:t.id,fields:t,occurredAt:u,actor:{kind:"system"}},o)}async function lt(t,s,u,o){await V(A,{operation:s,subjectType:"ingress",subjectId:t.id,fields:t,occurredAt:u,actor:{kind:"system"}},o)}function v(t,s){return U(s).find(u=>u.name===t&&!u.deleted)??null}function ee(t,s){let u=U(s).filter(o=>o.name===t);return u[u.length-1]??null}function R(t,s,u){return D(u).find(o=>o.roomName===t&&o.identity===s)??null}async function ft(t){let s=t.method.toUpperCase(),u=new URL(t.path,"http://twin.local"),o=qt(u.pathname),e=Qt(t.body),d=t.occurredAt??B;if(s!=="POST"||!o)return c(404,"not_found",`LiveKit operation not modeled: ${s} ${u.pathname}`);if(t.apiKeys&&o.service!=="Twin"){let r=t.nowSeconds??ie(d);if(!t.authToken)return c(401,"unauthenticated","authorization is required");let n=ct(t.authToken,i=>t.apiKeys[i],{nowSeconds:r});if(!n.ok){let i=n.reason==="expired"?"token expired":n.reason==="not_yet_valid"?"token not yet valid":n.reason==="unknown_key"?"unknown API key":"invalid authorization token";return c(401,"unauthenticated",i)}let a=Xt[`${o.service}.${o.method}`];if(a&&!(n.grants.video??{})[a])return c(403,"permission_denied",`missing required grant: ${a}`)}if(o.service==="Twin"&&o.method==="UpsertParticipant"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=String(e.roomName??e.room??""),n=String(e.identity??"");if(!r||!n)return c(400,"invalid_argument","roomName and identity are required");v(r,t.root)||await K(L(r,d),d,t.root);let a=O(r,n,d,e);return await T(a,d,t.root),{status:200,body:q(a)}}if(o.service==="RoomService"){if(o.method==="CreateRoom"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=String(e.name??"");if(!r)return c(400,"invalid_argument","name is required");let n=v(r,t.root),a=ee(r,t.root),i=n?n.generation:a?.deleted?(a.generation??0)+1:0,m=n?{...n,...L(r,n.creationTimeMs?new Date(Number(n.creationTimeMs)).toISOString():d,{...e,generation:i}),id:n.id,sid:n.sid}:L(r,d,{...e,generation:i});return await K(m,d,t.root),{status:200,body:mt(Q(m,t.root))}}if(o.method==="ListRooms"){let r=Array.isArray(e.names)?e.names.map(String):[];return{status:200,body:{rooms:U(t.root).filter(a=>!a.deleted&&(r.length===0||r.includes(a.name))).map(a=>mt(Q(a,t.root)))}}}if(o.method==="DeleteRoom"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=String(e.room??"");if(!r)return c(400,"invalid_argument","room is required");let n=v(r,t.root);if(!n)return c(404,"not_found","room not found");for(let a of D(t.root).filter(i=>i.roomName===r&&i.state!==3))await T({...a,state:3},d,t.root);for(let a of y(t.root).filter(i=>i.roomName===r&&(i.status===f.STARTING||i.status===f.ACTIVE||i.status===f.ENDING)))await $({...a,status:f.COMPLETE,endedAt:b(d),updatedAt:b(d)},"egress.room_deleted",d,t.root);return await K({...n,deleted:!0},d,t.root),{status:200,body:{}}}if(o.method==="UpdateRoomMetadata"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=String(e.room??""),n=v(r,t.root);if(!n)return c(404,"not_found","room not found");let a={...n,metadata:String(e.metadata??"")};return await K(a,d,t.root),{status:200,body:mt(Q(a,t.root))}}if(o.method==="ListParticipants"){let r=String(e.room??"");return r?v(r,t.root)?{status:200,body:{participants:D(t.root).filter(n=>n.roomName===r&&n.state!==3).map(q)}}:c(404,"not_found","room not found"):c(400,"invalid_argument","room is required")}if(o.method==="GetParticipant"){let r=R(String(e.room??""),String(e.identity??""),t.root);return r?{status:200,body:q(r)}:c(404,"not_found","participant not found")}if(o.method==="RemoveParticipant"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=R(String(e.room??""),String(e.identity??""),t.root);return r?(await T({...r,state:3},d,t.root),{status:200,body:{}}):c(404,"not_found","participant not found")}if(o.method==="UpdateParticipant"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=R(String(e.room??""),String(e.identity??""),t.root);if(!r)return c(404,"not_found","participant not found");let n=e.permission&&typeof e.permission=="object"?{canSubscribe:!!(e.permission.canSubscribe??!1),canPublish:!!(e.permission.canPublish??!1),canPublishData:!!(e.permission.canPublishData??!1),canUpdateMetadata:!!(e.permission.canUpdateMetadata??!1),hidden:!!(e.permission.hidden??!1),canSubscribeMetrics:!!(e.permission.canSubscribeMetrics??!1)}:r.permission,a={...r,metadata:e.metadata!==void 0?String(e.metadata):r.metadata,name:e.name!==void 0?String(e.name):r.name,attributes:e.attributes&&typeof e.attributes=="object"?e.attributes:r.attributes,permission:n,isPublisher:n.canPublish,version:r.version+1};return await T(a,d,t.root),{status:200,body:q(a)}}if(o.method==="UpdateSubscriptions"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=R(String(e.room??""),String(e.identity??""),t.root);if(!r)return c(404,"not_found","participant not found");let n=Array.isArray(e.trackSids)?e.trackSids.map(String):[],a=!!e.subscribe,i=new Set(r.subscribedTracks);for(let p of n)a?i.add(p):i.delete(p);let m={...r,subscribedTracks:[...i],version:r.version+1};return await T(m,d,t.root),{status:200,body:{}}}if(o.method==="SendData"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=String(e.room??"");return v(r,t.root)?e.data===void 0||e.data===null?c(400,"invalid_argument","data is required"):{status:200,body:{}}:c(404,"not_found","room not found")}if(o.method==="MutePublishedTrack"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=R(String(e.room??""),String(e.identity??""),t.root);if(!r)return c(404,"not_found","participant not found");let n=r.tracks.map(i=>i.sid===e.trackSid?{...i,muted:!!e.muted}:i),a=n.find(i=>i.sid===e.trackSid);return a?(await T({...r,tracks:n,version:r.version+1},d,t.root),{status:200,body:{track:a}}):c(404,"not_found","track not found")}if(o.method==="ForwardParticipant"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=String(e.room??""),n=String(e.identity??""),a=String(e.destinationRoom??"");if(!a)return c(400,"invalid_argument","destinationRoom is required");let i=R(r,n,t.root);if(!i)return c(404,"not_found","participant not found");if(v(a,t.root)||await K(L(a,d),d,t.root),R(a,n,t.root))return c(409,"already_exists","participant already present in destination room");let m=O(a,n,d,{...i,isPublisher:!1,permission:{...i.permission,canPublish:!1}});return await T(m,d,t.root),{status:200,body:{}}}if(o.method==="MoveParticipant"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=String(e.room??""),n=String(e.identity??""),a=String(e.destinationRoom??"");if(!a)return c(400,"invalid_argument","destinationRoom is required");let i=R(r,n,t.root);if(!i||i.state===3)return c(404,"not_found","participant not found");if(v(a,t.root)||await K(L(a,d),d,t.root),R(a,n,t.root))return c(409,"already_exists","participant already present in destination room");await T({...i,state:3},d,t.root);let m=O(a,n,d,i);return await T(m,d,t.root),{status:200,body:{}}}}if(o.service==="Egress"){let n={StartRoomCompositeEgress:{case:"roomComposite",sourceType:0,op:"egress.start_room_composite"},StartWebEgress:{case:"web",sourceType:1,op:"egress.start_web"},StartParticipantEgress:{case:"participant",sourceType:2,op:"egress.start_participant"},StartTrackCompositeEgress:{case:"trackComposite",sourceType:3,op:"egress.start_track_composite"},StartTrackEgress:{case:"track",sourceType:4,op:"egress.start_track"}}[o.method];if(n){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");if(t.maxActiveEgress!==void 0&&y(t.root).filter(F=>k(F.status)).length>=t.maxActiveEgress)return c(429,"resource_exhausted","egress capacity limit reached");let a=String(e.roomName??""),i="";if(n.case!=="web"){let w=v(a,t.root);if(!w)return c(404,"not_found","room not found");if(i=w.sid,n.case==="participant"&&!e.identity)return c(400,"invalid_argument","identity is required");if(n.case==="trackComposite"&&!e.audioTrackId&&!e.videoTrackId)return c(400,"invalid_argument","audioTrackId or videoTrackId is required");if(n.case==="track"&&!e.trackId)return c(400,"invalid_argument","trackId is required")}else if(!e.url)return c(400,"invalid_argument","url is required");let m=y(t.root).length+1,p=bt(a||String(e.url??""),e,d,m),l=re(e),g={id:z(p),egressId:p,roomId:i,roomName:a,sourceType:n.sourceType,status:f.ACTIVE,startedAt:b(d),endedAt:"0",updatedAt:b(d),details:"",error:"",errorCode:0,layout:String(e.layout??""),requestCase:n.case,streamUrls:l,fileOutputs:Array.isArray(e.fileOutputs)?e.fileOutputs:[],streamOutputs:Array.isArray(e.streamOutputs)?e.streamOutputs:[],segmentOutputs:Array.isArray(e.segmentOutputs)?e.segmentOutputs:[],imageOutputs:Array.isArray(e.imageOutputs)?e.imageOutputs:[],request:e};return await $(g,n.op,d,t.root),{status:200,body:M(g)}}if(o.method==="ListEgress"){let a=e.roomName===void 0?"":String(e.roomName),i=e.egressId===void 0?"":String(e.egressId),m=e.active===void 0?null:!!e.active;return{status:200,body:{items:y(t.root).filter(l=>!(a&&l.roomName!==a||i&&l.egressId!==i||m!==null&&m!==k(l.status))).map(M)}}}if(o.method==="StopEgress"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let a=y(t.root).find(m=>m.egressId===String(e.egressId??""));if(!a)return c(404,"not_found","egress not found");if(!k(a.status))return c(412,"failed_precondition","egress is not active");let i={...a,status:f.COMPLETE,endedAt:b(d),updatedAt:b(d)};return await $(i,"egress.stop",d,t.root),{status:200,body:M(i)}}if(o.method==="UpdateLayout"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let a=y(t.root).find(m=>m.egressId===String(e.egressId??""));if(!a)return c(404,"not_found","egress not found");let i={...a,layout:String(e.layout??""),updatedAt:b(d),request:{...a.request,layout:String(e.layout??"")}};return await $(i,"egress.update_layout",d,t.root),{status:200,body:M(i)}}if(o.method==="UpdateStream"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let a=y(t.root).find(g=>g.egressId===String(e.egressId??""));if(!a)return c(404,"not_found","egress not found");if(!k(a.status))return c(412,"failed_precondition","egress is not active");let i=Array.isArray(e.addOutputUrls)?e.addOutputUrls.map(String):[],m=new Set(Array.isArray(e.removeOutputUrls)?e.removeOutputUrls.map(String):[]),p=[...a.streamUrls.filter(g=>!m.has(g)),...i.filter(g=>!a.streamUrls.includes(g))],l={...a,streamUrls:p,updatedAt:b(d)};return await $(l,"egress.update_stream",d,t.root),{status:200,body:M(l)}}if(o.method==="FailEgress"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let a=y(t.root).find(p=>p.egressId===String(e.egressId??""));if(!a)return c(404,"not_found","egress not found");let i=Number(e.status??f.FAILED);if(i!==f.FAILED&&i!==f.ABORTED&&i!==f.LIMIT_REACHED)return c(400,"invalid_argument","status must be a terminal failure state");let m={...a,status:i,error:String(e.error??"egress failed"),errorCode:Number(e.errorCode??1),endedAt:b(d),updatedAt:b(d)};return await $(m,"egress.fail",d,t.root),{status:200,body:M(m)}}}if(o.service==="Ingress"){if(o.method==="CreateIngress"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=ht(e.inputType??e.input_type),n=String(e.participantIdentity??"");if(!n)return c(400,"invalid_argument","participantIdentity is required");if(r===_.URL_INPUT&&!e.url)return c(400,"invalid_argument","url is required for URL input");let a=x(t.root).length+1,i=yt(String(e.roomName??""),n,e,a),m=It(i,r,d,e);return await lt(m,"ingress.create",d,t.root),{status:200,body:tt(m)}}if(o.method==="UpdateIngress"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=x(t.root).find(i=>i.ingressId===String(e.ingressId??"")&&!i.deleted);if(!r)return c(404,"not_found","ingress not found");let n=e.enableTranscoding!==void 0?!!e.enableTranscoding:r.enableTranscoding,a={...r,name:e.name!==void 0?String(e.name):r.name,roomName:e.roomName!==void 0?String(e.roomName):r.roomName,participantIdentity:e.participantIdentity!==void 0?String(e.participantIdentity):r.participantIdentity,participantName:e.participantName!==void 0?String(e.participantName):r.participantName,participantMetadata:e.participantMetadata!==void 0?String(e.participantMetadata):r.participantMetadata,enableTranscoding:n,bypassTranscoding:!n,enabled:e.enabled!==void 0?!!e.enabled:r.enabled,audio:e.audio&&typeof e.audio=="object"?e.audio:r.audio,video:e.video&&typeof e.video=="object"?e.video:r.video};return await lt(a,"ingress.update",d,t.root),{status:200,body:tt(a)}}if(o.method==="ListIngress"){let r=e.roomName===void 0?"":String(e.roomName),n=e.ingressId===void 0?"":String(e.ingressId);return{status:200,body:{items:x(t.root).filter(i=>!(i.deleted||r&&i.roomName!==r||n&&i.ingressId!==n)).map(tt)}}}if(o.method==="DeleteIngress"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=x(t.root).find(a=>a.ingressId===String(e.ingressId??"")&&!a.deleted);if(!r)return c(404,"not_found","ingress not found");let n={...r,deleted:!0,state:{...r.state,status:J.ENDPOINT_COMPLETE,endedAt:b(d),updatedAt:b(d)}};return await lt(n,"ingress.delete",d,t.root),{status:200,body:tt(n)}}}if(o.service==="SIP"){if(o.method==="CreateSIPInboundTrunk"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=e.trunk&&typeof e.trunk=="object"?e.trunk:e,n=Array.isArray(r.numbers)?r.numbers.map(String):[];if(n.length===0)return c(400,"invalid_argument","inbound trunk requires at least one number");let a=j(t.root).length+1,i=_t(String(r.name??""),n,a),m={id:`sip_inbound_trunk_${i}`,sipTrunkId:i,name:String(r.name??""),metadata:String(r.metadata??""),numbers:n,allowedAddresses:Array.isArray(r.allowedAddresses)?r.allowedAddresses.map(String):[],allowedNumbers:Array.isArray(r.allowedNumbers)?r.allowedNumbers.map(String):[],authUsername:String(r.authUsername??""),authPassword:String(r.authPassword??""),headers:r.headers&&typeof r.headers=="object"?r.headers:{},headersToAttributes:r.headersToAttributes&&typeof r.headersToAttributes=="object"?r.headersToAttributes:{},krispEnabled:!!(r.krispEnabled??!1),includeHeaders:String(r.includeHeaders??"SIP_NO_HEADERS"),mediaEncryption:String(r.mediaEncryption??"SIP_MEDIA_ENCRYPT_DISABLE")};return await I("sip_inbound_trunk",m.id,"sip.inbound_trunk.create",m,d,t.root),{status:200,body:et(m)}}if(o.method==="CreateSIPOutboundTrunk"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=e.trunk&&typeof e.trunk=="object"?e.trunk:e,n=String(r.address??"");if(!n)return c(400,"invalid_argument","outbound trunk requires an address");let a=C(t.root).length+1,i=Tt(String(r.name??""),n,a),m={id:`sip_outbound_trunk_${i}`,sipTrunkId:i,name:String(r.name??""),metadata:String(r.metadata??""),address:n,transport:Z(r.transport??N.SIP_TRANSPORT_AUTO),numbers:Array.isArray(r.numbers)?r.numbers.map(String):[],authUsername:String(r.authUsername??""),authPassword:String(r.authPassword??""),headers:r.headers&&typeof r.headers=="object"?r.headers:{},headersToAttributes:r.headersToAttributes&&typeof r.headersToAttributes=="object"?r.headersToAttributes:{},includeHeaders:String(r.includeHeaders??"SIP_NO_HEADERS"),mediaEncryption:String(r.mediaEncryption??"SIP_MEDIA_ENCRYPT_DISABLE"),destinationCountry:String(r.destinationCountry??"")};return await I("sip_outbound_trunk",m.id,"sip.outbound_trunk.create",m,d,t.root),{status:200,body:rt(m)}}if(o.method==="UpdateSIPInboundTrunk"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=String(e.sipTrunkId??""),n=j(t.root).find(i=>i.sipTrunkId===r&&!i.deleted);if(!n)return c(404,"not_found","sip inbound trunk not found");let a;if(e.replace&&typeof e.replace=="object"){let i=e.replace;a={...n,name:String(i.name??""),metadata:String(i.metadata??""),numbers:Array.isArray(i.numbers)?i.numbers.map(String):[],allowedAddresses:Array.isArray(i.allowedAddresses)?i.allowedAddresses.map(String):[],allowedNumbers:Array.isArray(i.allowedNumbers)?i.allowedNumbers.map(String):[],authUsername:String(i.authUsername??""),authPassword:String(i.authPassword??""),headers:i.headers&&typeof i.headers=="object"?i.headers:{},headersToAttributes:i.headersToAttributes&&typeof i.headersToAttributes=="object"?i.headersToAttributes:{},krispEnabled:!!(i.krispEnabled??!1),includeHeaders:String(i.includeHeaders??"SIP_NO_HEADERS"),mediaEncryption:String(i.mediaEncryption??"SIP_MEDIA_ENCRYPT_DISABLE")}}else if(e.update&&typeof e.update=="object"){let i=e.update;a={...n,numbers:G(n.numbers,i.numbers),allowedAddresses:G(n.allowedAddresses,i.allowedAddresses),allowedNumbers:G(n.allowedNumbers,i.allowedNumbers),authUsername:S(n.authUsername,i,"authUsername",String),authPassword:S(n.authPassword,i,"authPassword",String),name:S(n.name,i,"name",String),metadata:S(n.metadata,i,"metadata",String),mediaEncryption:S(n.mediaEncryption,i,"mediaEncryption",String)}}else return c(400,"invalid_argument","update requires a replace or update action");return await I("sip_inbound_trunk",n.id,"sip.inbound_trunk.update",a,d,t.root),{status:200,body:et(a)}}if(o.method==="UpdateSIPOutboundTrunk"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=String(e.sipTrunkId??""),n=C(t.root).find(i=>i.sipTrunkId===r&&!i.deleted);if(!n)return c(404,"not_found","sip outbound trunk not found");let a;if(e.replace&&typeof e.replace=="object"){let i=e.replace;a={...n,name:String(i.name??""),metadata:String(i.metadata??""),address:String(i.address??""),transport:Z(i.transport??N.SIP_TRANSPORT_AUTO),numbers:Array.isArray(i.numbers)?i.numbers.map(String):[],authUsername:String(i.authUsername??""),authPassword:String(i.authPassword??""),headers:i.headers&&typeof i.headers=="object"?i.headers:{},headersToAttributes:i.headersToAttributes&&typeof i.headersToAttributes=="object"?i.headersToAttributes:{},includeHeaders:String(i.includeHeaders??"SIP_NO_HEADERS"),mediaEncryption:String(i.mediaEncryption??"SIP_MEDIA_ENCRYPT_DISABLE"),destinationCountry:String(i.destinationCountry??"")}}else if(e.update&&typeof e.update=="object"){let i=e.update;a={...n,numbers:G(n.numbers,i.numbers),address:S(n.address,i,"address",String),transport:"transport"in i&&i.transport!==void 0?Z(i.transport):n.transport,destinationCountry:S(n.destinationCountry,i,"destinationCountry",String),authUsername:S(n.authUsername,i,"authUsername",String),authPassword:S(n.authPassword,i,"authPassword",String),name:S(n.name,i,"name",String),metadata:S(n.metadata,i,"metadata",String),mediaEncryption:S(n.mediaEncryption,i,"mediaEncryption",String)}}else return c(400,"invalid_argument","update requires a replace or update action");return await I("sip_outbound_trunk",n.id,"sip.outbound_trunk.update",a,d,t.root),{status:200,body:rt(a)}}if(o.method==="ListSIPInboundTrunk"){let r=Array.isArray(e.trunkIds)?e.trunkIds.map(String):[],n=Array.isArray(e.numbers)?e.numbers.map(String):[];return{status:200,body:{items:j(t.root).filter(i=>!i.deleted&&(r.length===0||r.includes(i.sipTrunkId))&&(n.length===0||i.numbers.some(m=>n.includes(m)))).map(et)}}}if(o.method==="ListSIPOutboundTrunk"){let r=Array.isArray(e.trunkIds)?e.trunkIds.map(String):[],n=Array.isArray(e.numbers)?e.numbers.map(String):[];return{status:200,body:{items:C(t.root).filter(i=>!i.deleted&&(r.length===0||r.includes(i.sipTrunkId))&&(n.length===0||i.numbers.some(m=>n.includes(m)))).map(rt)}}}if(o.method==="DeleteSIPTrunk"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=String(e.sipTrunkId??""),n=j(t.root).find(i=>i.sipTrunkId===r&&!i.deleted);if(n)return await I("sip_inbound_trunk",n.id,"sip.inbound_trunk.delete",{...n,deleted:!0},d,t.root),{status:200,body:et(n)};let a=C(t.root).find(i=>i.sipTrunkId===r&&!i.deleted);return a?(await I("sip_outbound_trunk",a.id,"sip.outbound_trunk.delete",{...a,deleted:!0},d,t.root),{status:200,body:rt(a)}):c(404,"not_found","sip trunk not found")}if(o.method==="CreateSIPDispatchRule"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=e.rule&&typeof e.rule=="object"?e.rule:{},n=null,a={};if(r.dispatchRuleDirect&&typeof r.dispatchRuleDirect=="object"){if(n="dispatchRuleDirect",a={roomName:String(r.dispatchRuleDirect.roomName??""),pin:String(r.dispatchRuleDirect.pin??"")},!a.roomName)return c(400,"invalid_argument","direct dispatch rule requires roomName")}else r.dispatchRuleIndividual&&typeof r.dispatchRuleIndividual=="object"&&(n="dispatchRuleIndividual",a={roomPrefix:String(r.dispatchRuleIndividual.roomPrefix??""),pin:String(r.dispatchRuleIndividual.pin??"")});if(!n)return c(400,"invalid_argument","dispatch rule requires a direct or individual rule");let i=H(t.root).length+1,m=At(e,i),p={id:`sip_dispatch_rule_${m}`,sipDispatchRuleId:m,name:String(e.name??""),metadata:String(e.metadata??""),trunkIds:Array.isArray(e.trunkIds)?e.trunkIds.map(String):[],hidePhoneNumber:!!(e.hidePhoneNumber??!1),attributes:e.attributes&&typeof e.attributes=="object"?e.attributes:{},roomPreset:String(e.roomPreset??""),inboundNumbers:Array.isArray(e.inboundNumbers)?e.inboundNumbers.map(String):[],rule:{case:n,value:a}};return await I("sip_dispatch_rule",p.id,"sip.dispatch_rule.create",p,d,t.root),{status:200,body:it(p)}}if(o.method==="ListSIPDispatchRule"){let r=Array.isArray(e.dispatchRuleIds)?e.dispatchRuleIds.map(String):[],n=Array.isArray(e.trunkIds)?e.trunkIds.map(String):[];return{status:200,body:{items:H(t.root).filter(i=>!i.deleted&&(r.length===0||r.includes(i.sipDispatchRuleId))&&(n.length===0||i.trunkIds.length===0||i.trunkIds.some(m=>n.includes(m)))).map(it)}}}if(o.method==="UpdateSIPDispatchRule"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=String(e.sipDispatchRuleId??""),n=H(t.root).find(m=>m.sipDispatchRuleId===r&&!m.deleted);if(!n)return c(404,"not_found","sip dispatch rule not found");let a=m=>{if(m.dispatchRuleDirect&&typeof m.dispatchRuleDirect=="object"){let p=m.dispatchRuleDirect;return p.roomName?{case:"dispatchRuleDirect",value:{roomName:String(p.roomName),pin:String(p.pin??"")}}:null}if(m.dispatchRuleIndividual&&typeof m.dispatchRuleIndividual=="object"){let p=m.dispatchRuleIndividual;return{case:"dispatchRuleIndividual",value:{roomPrefix:String(p.roomPrefix??""),pin:String(p.pin??"")}}}return null},i;if(e.replace&&typeof e.replace=="object"){let m=e.replace,p=m.rule&&typeof m.rule=="object"?a(m.rule):null;if(!p)return c(400,"invalid_argument","dispatch rule requires a direct or individual rule");i={...n,name:String(m.name??""),metadata:String(m.metadata??""),trunkIds:Array.isArray(m.trunkIds)?m.trunkIds.map(String):[],hidePhoneNumber:!!(m.hidePhoneNumber??!1),attributes:m.attributes&&typeof m.attributes=="object"?m.attributes:{},roomPreset:String(m.roomPreset??""),inboundNumbers:Array.isArray(m.inboundNumbers)?m.inboundNumbers.map(String):[],rule:p}}else if(e.update&&typeof e.update=="object"){let m=e.update,p=n.rule;if(m.rule&&typeof m.rule=="object"){let l=a(m.rule);if(!l)return c(400,"invalid_argument","dispatch rule requires a direct or individual rule");p=l}i={...n,trunkIds:G(n.trunkIds,m.trunkIds),name:S(n.name,m,"name",String),metadata:S(n.metadata,m,"metadata",String),attributes:m.attributes&&typeof m.attributes=="object"?m.attributes:n.attributes,rule:p}}else return c(400,"invalid_argument","update requires a replace or update action");return await I("sip_dispatch_rule",n.id,"sip.dispatch_rule.update",i,d,t.root),{status:200,body:it(i)}}if(o.method==="DeleteSIPDispatchRule"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=H(t.root).find(n=>n.sipDispatchRuleId===String(e.sipDispatchRuleId??"")&&!n.deleted);return r?(await I("sip_dispatch_rule",r.id,"sip.dispatch_rule.delete",{...r,deleted:!0},d,t.root),{status:200,body:it(r)}):c(404,"not_found","sip dispatch rule not found")}if(o.method==="CreateSIPParticipant"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=String(e.sipTrunkId??""),n=String(e.roomName??""),a=String(e.sipCallTo??"");if(!n)return c(400,"invalid_argument","roomName is required");if(!a)return c(400,"invalid_argument","sipCallTo (number to dial) is required");if(!(r?C(t.root).some(F=>F.sipTrunkId===r&&!F.deleted):e.trunk&&typeof e.trunk=="object"))return c(404,"not_found","sip outbound trunk not found");v(n,t.root)||await K(L(n,d),d,t.root);let m=String(e.participantIdentity??"sip-participant"),p=wt(t.root).length+1,l=vt(n,a,p),g={id:`sip_participant_${l}`,participantId:Rt(n,m),participantIdentity:m,roomName:n,sipCallId:l,sipTrunkId:r,sipCallTo:a,fromNumber:String(e.sipNumber??e.fromNumber??"")};await I("sip_participant",g.id,"sip.participant.create",g,d,t.root);let w=O(n,m,d,{name:String(e.participantName??m),kind:3,attributes:e.participantAttributes&&typeof e.participantAttributes=="object"?e.participantAttributes:{},metadata:String(e.participantMetadata??"")});return await T({...w,sid:g.participantId},d,t.root),{status:200,body:te(g)}}if(o.method==="TransferSIPParticipant"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=String(e.roomName??""),n=String(e.participantIdentity??""),a=String(e.transferTo??"");if(!a)return c(400,"invalid_argument","transferTo is required");let i=R(r,n,t.root);if(!i||i.state===3)return c(404,"not_found","sip participant not found");let m={...i.attributes,"sip.transferTo":a};return await T({...i,attributes:m,version:i.version+1},d,t.root),{status:200,body:{}}}}if(o.service==="AgentDispatchService"){if(o.method==="CreateDispatch"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=String(e.room??""),n=String(e.agentName??"");if(!r)return c(400,"invalid_argument","room is required");if(!n)return c(400,"invalid_argument","agentName is required");let a=X(t.root).length+1,i=Et(r,n,a),m={id:`agent_dispatch_${i}`,dispatchId:i,agentName:n,room:r,metadata:String(e.metadata??""),createdAt:b(d)};return await I("agent_dispatch",m.id,"agent.dispatch.create",m,d,t.root),{status:200,body:pt(m)}}if(o.method==="ListDispatch"){let r=e.room===void 0?"":String(e.room),n=e.dispatchId===void 0?"":String(e.dispatchId);return{status:200,body:{agentDispatches:X(t.root).filter(i=>!i.deleted&&(r===""||i.room===r)&&(n===""||i.dispatchId===n)).map(pt)}}}if(o.method==="DeleteDispatch"){if(t.readOnly)return c(405,"permission_denied","LiveKit twin is read-only");let r=X(t.root).find(n=>n.dispatchId===String(e.dispatchId??"")&&!n.deleted);return r?(await I("agent_dispatch",r.id,"agent.dispatch.delete",{...r,deleted:!0},d,t.root),{status:200,body:pt(r)}):c(404,"not_found","agent dispatch not found")}}return c(404,"not_found",`LiveKit operation not modeled: ${o.service}.${o.method}`)}function re(t){let s=[],u=Array.isArray(t.streamOutputs)?t.streamOutputs:[];for(let o of u)o&&typeof o=="object"&&Array.isArray(o.urls)&&s.push(...o.urls.map(String));return t.stream&&typeof t.stream=="object"&&Array.isArray(t.stream.urls)&&s.push(...t.stream.urls.map(String)),s}function b(t){let s=Math.floor(new Date(t).getTime()/1e3);return Number.isFinite(s)?String(s):"0"}function ie(t){let s=Math.floor(new Date(t).getTime()/1e3);return Number.isFinite(s)?s:0}import{serveHttp as Ne}from"../../engine/v2/volter_world-core.mjs";import{createTwinFetchFromHandler as ne,statefulTwinManifest as se}from"../../engine/v2/volter_world-core.mjs";function Pt(t={}){return ne(ft,{root:t.root,readOnly:t.readOnly,manifest:se({vendor:"livekit",twinOf:"the LiveKit control plane",stores:"rooms, participants and egress state"}),stores:{rooms:()=>U(t.root),participants:()=>D(t.root),egress:()=>y(t.root),ingress:()=>x(t.root)},handlerOptions:{...t.apiKeys?{apiKeys:t.apiKeys}:{},...t.maxActiveEgress!==void 0?{maxActiveEgress:t.maxActiveEgress}:{}},extras:s=>{let u=s.headers.get("authorization")??"",o=u.toLowerCase().startsWith("bearer ")?u.slice(7).trim():u.trim();return o?{authToken:o}:{}}})}import{observeResources as me}from"../../engine/v2/volter_world-core.mjs";import{declareRateBudget as oe,rateBudgetPath as Ke,rateBudgetWeight as Ue,RateBudget as Ce}from"../../engine/v2/volter_world-core.mjs";import{RateBudgetError as Ot}from"../../engine/v2/volter_world-core.mjs";var ae="livekit",Nt=6e4,kt=200,Lt=300,W={perRoomFanOut:2,read:1,other:2},nt={windowMs:Nt,ceiling:kt,defaultWeight:W.other,maxRetryAfterSeconds:Lt,rules:[{match:"^RoomService/ListParticipants$",weight:W.perRoomFanOut},{match:"^AgentDispatchService/ListDispatch$",weight:W.perRoomFanOut},{match:"^[A-Za-z]+/(List|Get)[A-Za-z]*$",weight:W.read}],reason:`LiveKit documents that "All projects have a Server API rate limit of 1,000 requests per minute" \u2014 covering RoomService/Egress/Ingress/SIP-style requests, not SDK room operations (docs.livekit.io/deploy/admin/quotas-and-limits/). Every call this connector makes is a Server API call. 200 weighted units / 60s prices a flat list/get at 1, so the ceiling is 20% of that project-wide limit \u2014 which the app's own server shares. ListParticipants and ListDispatch cost 2 because the snapshot issues one PER ROOM, so their call count is unbounded in the room count \u2014 a judgement call, not a published cost.`};oe(ae,nt);var pe="1970-01-01T00:00:00.000Z";function Dt(t,s){if(typeof s!="string"||!/^[A-Za-z][A-Za-z0-9_]*$/.test(s))throw new Error(`liveKitTwirpPath: "${String(s)}" is not a Twirp method name \u2014 refusing to build a request URL from it`);return`/twirp/livekit.${t}/${s}`}async function le(t,s,u){let o=[],e=await t({service:"RoomService",method:"ListRooms",body:{names:s}});if(e.status>=200&&e.status<300)for(let n of e.data.rooms??[]){o.push({type:"room",id:Y(n.name),fields:{...n,id:Y(n.name)}});let a=await t({service:"RoomService",method:"ListParticipants",body:{room:n.name}});if(a.status>=200&&a.status<300)for(let i of a.data.participants??[]){let m=O(n.name,i.identity,u,i);o.push({type:"participant",id:m.id,fields:m})}}let d=await t({service:"Egress",method:"ListEgress",body:{}});if(d.status>=200&&d.status<300)for(let n of d.data.items??[]){let a=z(n.egressId);o.push({type:"egress",id:a,fields:{...n,id:a}})}let r=await t({service:"Ingress",method:"ListIngress",body:{}});if(r.status>=200&&r.status<300)for(let n of r.data.items??[]){let a=ut(n.ingressId);o.push({type:"ingress",id:a,fields:{...n,id:a}})}return o}async function fe(t){let s=[],u=await t({service:"SIP",method:"ListSIPInboundTrunk",body:{}});if(u.status>=200&&u.status<300)for(let d of u.data.items??[]){let r=`sip_inbound_trunk_${d.sipTrunkId}`;s.push({type:"sip_inbound_trunk",id:r,fields:{...d,id:r}})}let o=await t({service:"SIP",method:"ListSIPOutboundTrunk",body:{}});if(o.status>=200&&o.status<300)for(let d of o.data.items??[]){let r=`sip_outbound_trunk_${d.sipTrunkId}`;s.push({type:"sip_outbound_trunk",id:r,fields:{...d,id:r}})}let e=await t({service:"SIP",method:"ListSIPDispatchRule",body:{}});if(e.status>=200&&e.status<300)for(let d of e.data.items??[]){let r=`sip_dispatch_rule_${d.sipDispatchRuleId}`;s.push({type:"sip_dispatch_rule",id:r,fields:{...d,id:r}})}return s}async function ge(t,s){let u=[];for(let o of s){let e=await t({service:"AgentDispatchService",method:"ListDispatch",body:{room:o}});if(!(e.status<200||e.status>=300))for(let d of e.data.agentDispatches??[]){let r=d.id,n=`agent_dispatch_${r}`,a={id:n,dispatchId:r,agentName:d.agentName,room:d.room??o,metadata:d.metadata??"",createdAt:d.state?.createdAt??"0"};u.push({type:"agent_dispatch",id:n,fields:a})}}return u}function he(t,s){return me(A,t.map(u=>({type:u.type,id:u.id,fields:u.fields})),{...s.root!==void 0?{root:s.root}:{},at:s.occurredAt,batch:`obs:${A}:${s.occurredAt}`})}async function xt(t,s={}){let u=s.occurredAt??pe,o=s.roomNames??[],e=[...await le(t,o,u),...await fe(t),...await ge(t,o)],d=he(e,{occurredAt:u,...s.root!==void 0?{root:s.root}:{}});return{observed:d.observed,deltasAppended:d.appended}}function gt(t){let s=t.fields;return t.operation==="room.update_metadata"?{service:"RoomService",method:"UpdateRoomMetadata",body:{room:s.name,metadata:s.metadata??""}}:t.operation==="egress.stop"?{service:"Egress",method:"StopEgress",body:{egressId:s.egressId}}:null}async function Kt(t,s){let u=gt(t);if(!u)return!1;let o=await s(u);if(o.status<200||o.status>=300)return!1;let e=o.data;return!(t.operation==="room.update_metadata"&&e.metadata!==t.fields.metadata||t.operation==="egress.stop"&&e.status!==f.COMPLETE)}function Ut(t){return async({service:s,method:u,body:o})=>{let e=await t({method:"POST",path:Dt(s,u),headers:{accept:"application/json","content-type":"application/json"},body:JSON.stringify(o??{})}),d={};if(e.body)try{d=JSON.parse(e.body)}catch{d={msg:e.body}}return{status:e.status,data:d}}}async function Ct(t,s={}){return xt(Ut(t),{...s.root!==void 0?{root:s.root}:{},...s.occurredAt!==void 0?{occurredAt:s.occurredAt}:{}})}async function Mt(t,s,u){if(!gt(s))return{externalId:s.subject.id,data:{performed:!1,reason:`${s.operation??s.subject.type} is the twin's own record \u2014 nothing at LiveKit to write`}};if(!await Kt(s,Ut(t)))throw new Error(`livekit perform ${s.operation??s.subject.type} refused: the answer did not show the change`);return{externalId:s.subject.id}}import{registerPack as Se}from"../../engine/v2/volter_world-core.mjs";var be={protocol:"2",refresh:{every:"1m",webhook:!0,onDemand:{atMost:"10s"}},stateSystem:{perform:Mt,refresh:Ct},roundTrip:{method:"POST",path:"/twirp/livekit.RoomService/CreateRoom",body:{name:"round-trip"}},parityOrigin:"http://twin",vendor:"livekit",rateBudget:nt,transport:"rest",archetype:"crud",bin:"world-livekit",resources:["room","participant","egress","ingress","sip_inbound_trunk","sip_outbound_trunk","sip_dispatch_rule","sip_participant","agent_dispatch"],specSource:"LiveKit Server APIs: RoomService (incl. Forward/MoveParticipant), Egress, Ingress, SIP (SIPService), and AgentDispatchService Twirp JSON endpoints + AccessToken/WebhookReceiver schemes used by livekit-server-sdk 2.15.x; this pack models the control plane, not the media plane.",description:"LiveKit control-plane twin \u2014 local rooms, participants, egress/ingress lifecycle, access-token grants, and webhook signing for server SDK integrations.",browserRouting:{apiPathPrefix:"/twirp/",loaderHost:"https://livekit.cloud"},hostsNone:"real local media plane (livekit-server) exposed via app-read env (LIVEKIT_URL is ws:// \u2014 WebSocket media is outside the HTTP injector's reach)",adoption:{pypi:["livekit-api","livekit","livekit-agents"],sdks:["livekit-server-sdk","@livekit/rtc-node"],scopes:["@livekit/"],envStems:["LIVEKIT"]}};Se(be);export{Pt as createTwinFetch};
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
@agenttwin/twin-mailgun
|
|
2
|
+
|
|
3
|
+
Contains @volter/twin-mailgun 0.1.37 by Volter (https://github.com/volter-ai),
|
|
4
|
+
licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
+
|
|
6
|
+
Modified by AgentTwin: bundled and minified into one file; only code reachable from the pack's
|
|
7
|
+
fetch factory is included; shared modules are imported from the AgentTwin twin engine.
|