agenttwin 0.3.22 → 0.3.24
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 +1335 -729
- package/dist/dashboard/assets/next/static/chunks/{1250-7571b1a697f6bb4a.js → 1250-a3c859fd20517500.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/{2743-a0efd6f4aeb11cc5.js → 2743-72610a5d5a3f8462.js} +1 -1
- package/dist/dashboard/assets/next/static/chunks/5663-2ba656663ac4643f.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/app/v2/page-fc4df4912ce3af44.js +1 -0
- package/dist/dashboard/assets/next/static/chunks/{webpack-be6e526fd530c797.js → webpack-ecd761d72719adb3.js} +1 -1
- package/dist/dashboard/index.html +2 -2
- package/dist/engine.js +2025 -1415
- package/dist/gateway.js +1411 -807
- package/dist/twins/catalog.json +20 -18
- package/dist/twins/engine/v2/agenttwin-clock.mjs +2 -0
- package/dist/twins/engine/v2/chunks/{4CPL6MPF.mjs → 52CMXHSV.mjs} +1 -1
- package/dist/twins/engine/v2/chunks/B2VTT7PF.mjs +2 -0
- package/dist/twins/engine/{v3/chunks/2CHBP57N.mjs → v2/chunks/HZDHKUD5.mjs} +1 -1
- package/dist/twins/engine/v2/chunks/IVRB2YOK.mjs +8 -0
- package/dist/twins/engine/v2/chunks/{YSJQQVUM.mjs → MPX7J53E.mjs} +1 -1
- package/dist/twins/engine/v2/chunks/{SQSP35HM.mjs → RFZW5KCO.mjs} +1 -1
- package/dist/twins/engine/v2/react-dom_client.mjs +1 -1
- package/dist/twins/engine/v2/react-dom_server.mjs +1 -1
- package/dist/twins/engine/v2/react.mjs +1 -1
- package/dist/twins/engine/v2/react_jsx-runtime.mjs +1 -1
- package/dist/twins/engine/v2/volter_world-core.mjs +103 -109
- package/dist/twins/engine/v2/volter_world-core_app-route.mjs +1 -1
- package/dist/twins/engine/v2/volter_world-core_network-policy.mjs +1 -1
- package/dist/twins/engine/v3/agenttwin-clock.mjs +2 -0
- package/dist/twins/engine/v3/chunks/{MFH2VZPP.mjs → 2EG5AD6A.mjs} +1 -1
- package/dist/twins/engine/v3/chunks/{C46M5U3Q.mjs → 5QGCNQS3.mjs} +1 -1
- package/dist/twins/engine/v3/chunks/{O7HGPMXG.mjs → 5WNKAVCT.mjs} +1 -1
- package/dist/twins/engine/v3/chunks/7D6PDVOF.mjs +11 -0
- package/dist/twins/engine/v3/chunks/B2VTT7PF.mjs +2 -0
- package/dist/twins/engine/v3/chunks/{N5BL5RDF.mjs → F72NFZTW.mjs} +131 -140
- package/dist/twins/engine/v3/chunks/{TY4LDBVH.mjs → GY2CTF2C.mjs} +1 -1
- package/dist/twins/engine/v3/chunks/{MWCO5UV3.mjs → GZESXXB2.mjs} +1 -1
- package/dist/twins/engine/{v2/chunks/2CHBP57N.mjs → v3/chunks/HZDHKUD5.mjs} +1 -1
- package/dist/twins/engine/v3/chunks/{WPATONSC.mjs → IC6JHXCF.mjs} +1 -1
- package/dist/twins/engine/v3/chunks/{5PWRY4UK.mjs → JLOGZJDO.mjs} +1 -1
- package/dist/twins/engine/v3/chunks/{2YSSPA5O.mjs → K7NBWSIY.mjs} +1 -1
- package/dist/twins/engine/v3/chunks/{WGUCFQK6.mjs → T4VKXHGB.mjs} +1 -1
- package/dist/twins/engine/v3/chunks/{AWOWH2H5.mjs → UAP25HWH.mjs} +1 -1
- package/dist/twins/engine/v3/chunks/{VDIRUSCM.mjs → UKHKF3CP.mjs} +1 -1
- package/dist/twins/engine/v3/chunks/{PLB7HTON.mjs → VJIL5WLL.mjs} +1 -1
- package/dist/twins/engine/v3/chunks/{7XRKSFFJ.mjs → ZIV3ZV6R.mjs} +1 -1
- package/dist/twins/engine/v3/react_jsx-runtime.mjs +1 -1
- package/dist/twins/engine/v3/volter_world-core.mjs +1 -1
- package/dist/twins/engine/v3/volter_world-ui.mjs +1 -1
- package/dist/twins/packs/ahrefs/NOTICE +1 -1
- package/dist/twins/packs/ai-gateway/NOTICE +1 -1
- package/dist/twins/packs/airtable/NOTICE +1 -1
- package/dist/twins/packs/algolia/NOTICE +1 -1
- package/dist/twins/packs/ambientcg/NOTICE +1 -1
- package/dist/twins/packs/anthropic/NOTICE +1 -1
- package/dist/twins/packs/assemblyai/NOTICE +1 -1
- package/dist/twins/packs/aws/NOTICE +1 -1
- package/dist/twins/packs/azure/NOTICE +1 -1
- package/dist/twins/packs/azureformrecognizer/NOTICE +1 -1
- package/dist/twins/packs/bitly/NOTICE +1 -1
- package/dist/twins/packs/bluesky/NOTICE +1 -1
- package/dist/twins/packs/calcom/NOTICE +1 -1
- package/dist/twins/packs/clerk/NOTICE +1 -1
- package/dist/twins/packs/cloudflare/NOTICE +1 -1
- package/dist/twins/packs/cohere/NOTICE +1 -1
- package/dist/twins/packs/datadog/NOTICE +1 -1
- package/dist/twins/packs/deepinfra/NOTICE +1 -1
- package/dist/twins/packs/deepseek/NOTICE +1 -1
- package/dist/twins/packs/discord/NOTICE +1 -1
- package/dist/twins/packs/duckduckgo/NOTICE +1 -1
- package/dist/twins/packs/dynadot/NOTICE +1 -1
- package/dist/twins/packs/e2b/NOTICE +1 -1
- package/dist/twins/packs/elevenlabs/NOTICE +1 -1
- package/dist/twins/packs/expo/NOTICE +1 -1
- package/dist/twins/packs/fal/NOTICE +1 -1
- package/dist/twins/packs/figma/NOTICE +1 -1
- package/dist/twins/packs/firecrawl/NOTICE +1 -1
- package/dist/twins/packs/fireworks/NOTICE +1 -1
- package/dist/twins/packs/fly/NOTICE +1 -1
- package/dist/twins/packs/gcs/NOTICE +1 -1
- package/dist/twins/packs/gemini/NOTICE +1 -1
- package/dist/twins/packs/github/NOTICE +1 -1
- package/dist/twins/packs/github/index.mjs +1 -1
- package/dist/twins/packs/googleads/NOTICE +1 -1
- package/dist/twins/packs/googlemaps/NOTICE +1 -1
- package/dist/twins/packs/googleoauth/NOTICE +1 -1
- package/dist/twins/packs/hackernews/NOTICE +1 -1
- package/dist/twins/packs/huggingface/NOTICE +1 -1
- package/dist/twins/packs/inngest/NOTICE +1 -1
- package/dist/twins/packs/inngest/index.mjs +1 -1
- package/dist/twins/packs/instagram/NOTICE +1 -1
- package/dist/twins/packs/jira/NOTICE +1 -1
- package/dist/twins/packs/langfuse/NOTICE +1 -1
- package/dist/twins/packs/linear/NOTICE +1 -1
- package/dist/twins/packs/linear/index.mjs +1 -1
- package/dist/twins/packs/linkedin/NOTICE +1 -1
- package/dist/twins/packs/livekit/NOTICE +1 -1
- package/dist/twins/packs/mailgun/NOTICE +1 -1
- package/dist/twins/packs/mapbox/NOTICE +1 -1
- package/dist/twins/packs/merge/NOTICE +1 -1
- package/dist/twins/packs/mistral/NOTICE +1 -1
- package/dist/twins/packs/mixpanel/NOTICE +1 -1
- package/dist/twins/packs/mongodb/NOTICE +1 -1
- package/dist/twins/packs/moonshot/NOTICE +1 -1
- package/dist/twins/packs/notion/NOTICE +1 -1
- package/dist/twins/packs/npm-registry/NOTICE +1 -1
- package/dist/twins/packs/oa-treasury/NOTICE +1 -1
- package/dist/twins/packs/openai/NOTICE +1 -1
- package/dist/twins/packs/openrouter/NOTICE +1 -1
- package/dist/twins/packs/openweather/NOTICE +1 -1
- package/dist/twins/packs/paypal/NOTICE +1 -1
- package/dist/twins/packs/pinecone/NOTICE +1 -1
- package/dist/twins/packs/plain/NOTICE +1 -1
- package/dist/twins/packs/plain/index.mjs +1 -1
- package/dist/twins/packs/planetscale/NOTICE +1 -1
- package/dist/twins/packs/polar/NOTICE +1 -1
- package/dist/twins/packs/polyhaven/NOTICE +1 -1
- package/dist/twins/packs/postmark/NOTICE +1 -1
- package/dist/twins/packs/reddit/NOTICE +1 -1
- package/dist/twins/packs/redis/NOTICE +1 -1
- package/dist/twins/packs/replicate/NOTICE +1 -1
- package/dist/twins/packs/resend/NOTICE +1 -1
- package/dist/twins/packs/runhuman/NOTICE +1 -1
- package/dist/twins/packs/scrapecreators/NOTICE +1 -1
- package/dist/twins/packs/segment/NOTICE +1 -1
- package/dist/twins/packs/sendblue/NOTICE +1 -1
- package/dist/twins/packs/sendgrid/NOTICE +1 -1
- package/dist/twins/packs/sentry/NOTICE +1 -1
- package/dist/twins/packs/sigstore/NOTICE +1 -1
- package/dist/twins/packs/slack/NOTICE +1 -1
- package/dist/twins/packs/smtp/NOTICE +1 -1
- package/dist/twins/packs/snowflake/NOTICE +1 -1
- package/dist/twins/packs/stigg/NOTICE +1 -1
- package/dist/twins/packs/stigg/index.mjs +1 -1
- package/dist/twins/packs/stream/NOTICE +1 -1
- package/dist/twins/packs/stripe/NOTICE +1 -1
- package/dist/twins/packs/supabase/NOTICE +1 -1
- package/dist/twins/packs/supermemory/NOTICE +1 -1
- package/dist/twins/packs/svix/NOTICE +1 -1
- package/dist/twins/packs/tavily/NOTICE +1 -1
- package/dist/twins/packs/telegram/NOTICE +1 -1
- package/dist/twins/packs/temporal/NOTICE +1 -1
- package/dist/twins/packs/temporal/index.mjs +1 -1
- package/dist/twins/packs/tiktok/NOTICE +1 -1
- package/dist/twins/packs/tinybird/NOTICE +1 -1
- package/dist/twins/packs/togetherai/NOTICE +1 -1
- package/dist/twins/packs/tremendous/NOTICE +1 -1
- package/dist/twins/packs/tripo/NOTICE +1 -1
- package/dist/twins/packs/tunnel/NOTICE +1 -1
- package/dist/twins/packs/twelvelabs/NOTICE +1 -1
- package/dist/twins/packs/twilio/NOTICE +1 -1
- package/dist/twins/packs/twitch/NOTICE +1 -1
- package/dist/twins/packs/upstash/NOTICE +1 -1
- package/dist/twins/packs/upstashvector/NOTICE +1 -1
- package/dist/twins/packs/vercel/NOTICE +1 -1
- package/dist/twins/packs/veriff/NOTICE +1 -1
- package/dist/twins/packs/vgauth/NOTICE +1 -1
- package/dist/twins/packs/vital/NOTICE +1 -1
- package/dist/twins/packs/volteridentity/NOTICE +1 -1
- package/dist/twins/packs/webrisk/NOTICE +1 -1
- package/dist/twins/packs/worldlabs/NOTICE +1 -1
- package/dist/twins/packs/x/NOTICE +1 -1
- package/dist/twins/packs/xai/NOTICE +1 -1
- package/dist/twins/packs/xidentity/NOTICE +1 -1
- package/dist/twins/packs/xidentity/index.mjs +1 -1
- package/dist/twins/packs/youtube/NOTICE +1 -1
- package/dist/worker.js +1518 -180
- package/dist/world-host.js +797 -263
- package/package.json +2 -2
- package/dist/dashboard/assets/next/static/chunks/5663-403316746afad10e.js +0 -1
- package/dist/dashboard/assets/next/static/chunks/app/v2/page-3e86fffabfa87d88.js +0 -1
- package/dist/twins/engine/v2/chunks/OYLYKZGD.mjs +0 -2
- package/dist/twins/engine/v3/chunks/OYLYKZGD.mjs +0 -2
- /package/dist/dashboard/assets/next/static/{8f121VqXS9LLPMmYd1SRn → ztFPFZw3-M7E56BfRipIn}/_buildManifest.js +0 -0
- /package/dist/dashboard/assets/next/static/{8f121VqXS9LLPMmYd1SRn → ztFPFZw3-M7E56BfRipIn}/_ssgManifest.js +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{createRequire as __atReq}from'node:module';const require=__atReq(import.meta.url);
|
|
2
|
-
import{a as K,b as _}from"./OYLYKZGD.mjs";var b=_((q,j)=>{j.exports={"//":"GENERATED by scripts/pack-facts.ts \u2014 current pack descriptors and explicit world-runtime server backings; no prior-artifact entries are retained.",packs:{"ai-gateway":{adoption:{sdks:["@ai-sdk/gateway"],envStems:["AI_GATEWAY"]},hosts:[{host:"ai-gateway.vercel.sh"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"@ai-sdk/gateway calls https://ai-gateway.vercel.sh/v4/ai and an OpenAI client is given https://ai-gateway.vercel.sh/v1 in code; the World claims the host",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{AI_GATEWAY_API_KEY:"api_key"}},serveExport:"createAiGatewayTwinServer"},ambientcg:{adoption:{sdks:[],envStems:[]},hosts:[{host:"ambientcg.com"},{host:"acg-download.struffelproductions.com"},{host:"acg-media.struffelproductions.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["asset"],endpointEnvNone:"the editor calls ambientcg.com and the urls it answers; the World claims the hosts",serveExport:"createAmbientcgTwinServer"},anthropic:{adoption:{sdks:["@anthropic-ai/sdk","@ai-sdk/anthropic","@anthropic-ai/vertex-sdk","@anthropic-ai/bedrock-sdk","@anthropic-ai/claude-agent-sdk"],scopes:["@anthropic-ai/"],pypi:["anthropic","claude-agent-sdk","claude-code-sdk"],envStems:["ANTHROPIC"]},hosts:[{host:"api.anthropic.com"},{host:"platform.claude.com"},{host:"console.anthropic.com"}],archetype:"generative",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["organization","workspace"],endpointEnv:{name:"ANTHROPIC_BASE_URL",note:"the SDKs' base URL (the TypeScript and Python SDKs and Claude Code read ANTHROPIC_BASE_URL)"},credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{ANTHROPIC_API_KEY:"key"}},serveExport:"createAnthropicTwinServer"},aws:{adoption:{sdks:["@aws-sdk/client-secrets-manager","@aws-sdk/client-s3"],pypi:[],envStems:["AWS"],worldIds:["secretsmanager","s3"]},hosts:[{key:"s3",host:"s3.amazonaws.com"},{key:"secretsmanager",hostPattern:"^secretsmanager(-fips)?\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"s3",suffix:".s3.amazonaws.com"},{key:"s3",hostPattern:"^s3[.-][a-z0-9-]+\\.amazonaws\\.com$"},{key:"s3",hostPattern:"\\.s3[.-][a-z0-9-]+\\.amazonaws\\.com$"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["secret","s3_bucket","s3_object","s3_upload","s3_part"],endpointEnv:{name:"AWS_ENDPOINT_URL",note:"The AWS SDKs read AWS_ENDPOINT_URL as every service's endpoint (https://docs.aws.amazon.com/sdkref/latest/guide/feature-ss-endpoints.html)."},credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{AWS_ACCESS_KEY_ID:"access_key_id",AWS_SECRET_ACCESS_KEY:"secret_access_key",AWS_ACCESS_KEY:"access_key_id",AWS_SECRET_KEY:"secret_access_key"}},serveExport:"createAwsTwinServer"},axiom:{adoption:{sdks:["@axiomhq/js","@axiomhq/logging","@axiomhq/nextjs","@axiomhq/winston","next-axiom"],envStems:["AXIOM"]},hosts:[{host:"api.axiom.co"},{host:"cloud.axiom.co",pathPattern:"^/api/v1/datasets/"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnv:{name:"AXIOM_URL",note:"Optional next-axiom 0.17.0 reads this base URL; all API operations remain gaps."},serveExport:"createAxiomTwinServer"},bitly:{adoption:{sdks:[],envStems:["BITLY","BUFFER_BITLY"]},hosts:[{host:"api-ssl.bitly.com"},{host:"bitly.com",pathPattern:"^/oauth/authorize/?$"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["group","bitlink"],endpointEnvNone:"Dub uses literal vendor URLs and native fetch; the World routes them by host.",credentialDoor:{path:"/_twin/signup",body:{email:"publisher@example.test",password:"throwaway-bitly-password",login:"publisher"},fill:{BITLY_CLIENT_ID:"client_id",BITLY_CLIENT_SECRET:"client_secret",BUFFER_BITLY_API_KEY:"access_token"}},serveExport:"createBitlyTwinServer"},cerebras:{adoption:{sdks:["@ai-sdk/cerebras","@cerebras/cerebras_cloud_sdk"],envStems:["CEREBRAS"]},hosts:[{host:"api.cerebras.ai"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the SDK calls https://api.cerebras.ai/v1 unless given a base URL in code; the World claims the host",serveExport:"createCerebrasTwinServer"},clerk:{adoption:{pypi:["clerk-backend-api"],sdks:["@clerk/backend","@clerk/clerk-sdk-node","@clerk/nextjs","@clerk/fastify","@clerk/express"],scopes:["@clerk/"],envStems:["CLERK"]},hosts:[{host:"api.clerk.com"},{host:"dashboard.clerk.com"},{suffix:".clerk.accounts.dev"},{host:"frontend-api.clerk.dev"},{hostPattern:"^clerk\\.(?:[a-z0-9-]+\\.)+[a-z0-9-]+$"},{host:"img.clerk.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",assets:["vendor/clerk-js/dist"],resources:["invitation","user","session","organization","organization_membership","organization_invitation","organization_role","organization_permission","jwt_template","saml_connection","client","sign_in","sign_up","oauth_application","organization_settings"],credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{CLERK_SECRET_KEY:"secret_key",CLERK_API_KEY:"secret_key",CLERK_PUBLISHABLE_KEY:"publishable_key",NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY:"publishable_key",VITE_CLERK_PUBLISHABLE_KEY:"publishable_key",EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY:"publishable_key",PUBLIC_CLERK_PUBLISHABLE_KEY:"publishable_key",CLERK_JWT_KEY:"jwt_key",CLERK_WEBHOOK_SECRET:"webhook_secret",CLERK_WEBHOOK_SIGNING_SECRET:"webhook_secret"}},serveExport:"createClerkTwinServer"},clickhouse:{adoption:{sdks:["@clickhouse/client","@clickhouse/client-web"],pypi:["clickhouse-driver","clickhouse-connect","infi-clickhouse-orm"],envStems:["CLICKHOUSE"]},hostsNone:"Self-hosted database: its own declared host and allocated listener are supplied by managed infrastructure.",archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["database","table","row"],endpointEnv:{name:"CLICKHOUSE_URL",note:"HTTP base URL read by the documented JavaScript client."},managedService:{kind:"clickhouse",scheme:"http",configurationArg:"--configuration",originalInputs:{version:1,manifestArg:"--original-inputs",rootArg:"--original-root",digestArg:"--original-inputs-sha256",paths:["/etc/clickhouse-server","/docker-entrypoint-initdb.d","/entrypoint.sh"]},note:"One HTTP8123/native9000 process and store; declared operator configuration is installed before listeners."},sidePorts:[{name:"native",option:"nativePort",flag:"--native-port",note:"ClickHouse native TCP protocol, normally9000, beside HTTP8123."}],serveExport:"createClickhouseTwinServer"},cloudflare:{adoption:{pypi:["cloudflare"],sdks:["cloudflare","aws4fetch","react-turnstile","@marsidev/react-turnstile"],envStems:["CLOUDFLARE","TURNSTILE"],tools:[{package:"wrangler",usage:"deployment"}]},hosts:[{host:"api.cloudflare.com"},{host:"dash.cloudflare.com",pathPattern:"^/($|login|profile/api-tokens|_twin/users/|[0-9a-f]{32}/(r2/api-tokens|workers-and-pages))"},{host:"challenges.cloudflare.com",pathPattern:"^/turnstile/v0/"},{suffix:".r2.cloudflarestorage.com"}],hostsClaimed:{door:"/_twin/hosts",note:"R2 custom domains registered to a bucket (public read still requires enabled and active ownership/TLS), and Workers Custom Domains, answered with the Worker static assets."},archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["account","api_token","worker_script","worker_version","worker_deployment","worker_secret","zone","custom_hostname","turnstile_widget","r2_bucket","r2_object","r2_multipart","r2_custom_domain"],endpointEnv:{name:"CLOUDFLARE_API_BASE_URL",templates:{CLOUDFLARE_API_BASE_URL:"${url}/client/v4"},note:"Cloudflare SDK and wrangler API base."},credentialDoor:{path:"/_twin/app-credentials",body:{account:"world"},fill:{CLOUDFLARE_API_TOKEN:"api_token",CLOUDFLARE_API_KEY:"api_token",CLOUDFLARE_ACCOUNT_ID:"account_id",R2_ACCESS_KEY_ID:"r2_access_key_id",R2_SECRET_ACCESS_KEY:"r2_secret_access_key",CLOUDFLARE_ACCESS_KEY:"r2_access_key_id",CLOUDFLARE_SECRET_ACCESS_KEY:"r2_secret_access_key",R2_ENDPOINT:"r2_endpoint"}},serveExport:"createCloudflareTwinServer"},cohere:{adoption:{sdks:["@ai-sdk/cohere","cohere-ai"],pypi:["cohere"],envStems:["CO","COHERE"]},hosts:[{host:"api.cohere.com"},{host:"api.cohere.ai"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnv:{name:"COHERE_API_URL",templates:{COHERE_API_URL:"${url}/v2/rerank"},note:"The pinned LibreChat CohereReranker reads this full request URL; retain its /v2/rerank suffix."},credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{COHERE_API_KEY:"api_key"}},serveExport:"createCohereTwinServer"},currencyapi:{adoption:{sdks:["@everapi/currencyapi-js"],pypi:["currencyapicom"],envStems:["CURRENCYAPI"]},hosts:[{host:"api.currencyapi.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"The currencyapi clients hardcode https://api.currencyapi.com/v3 and read no base-URL env; interception uses the API host.",serveExport:"createCurrencyapiTwinServer"},daily:{adoption:{envStems:["DAILY"]},hosts:[{host:"api.daily.co"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"The Cal.com REST fetcher hardcodes https://api.daily.co/v1 and reads no base-URL env; interception uses the API host.",serveExport:"createDailyTwinServer"},deepgram:{adoption:{sdks:["@deepgram/sdk"],envStems:["DEEPGRAM"]},hosts:[{host:"api.deepgram.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"No scanned application calls Deepgram; the World claims api.deepgram.com",serveExport:"createDeepgramTwinServer"},discord:{adoption:{sdks:["discord.js","@discordjs/rest","@discordjs/core","discord-api-types","passport-discord","@chat-adapter/discord"],envStems:["DISCORD"]},hosts:[{host:"discord.com",pathPattern:"^/(api/|oauth2/)"},{host:"discordapp.com",pathPattern:"^/api/"},{host:"gateway.discord.gg"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["user","application","command","guild","role","member","channel","message","reaction","webhook","invite"],endpointEnvNone:"the apps call discord.com and send people to its authorize page; the World claims the host, `GET /gateway/bot` answers the twin's own socket, and a client that dials the Gateway at gateway.discord.gg reaches the same socket there",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{DISCORD_CLIENT_ID:"client_id",DISCORD_CLIENT_SECRET:"client_secret",DISCORD_BOT_TOKEN:"bot_token",DISCORD_BOT_TOKEN_ID:"bot_token",DISCORD_APPLICATION_ID:"application_id",DISCORD_PUBLIC_KEY:"public_key"}},serveExport:"createDiscordTwinServer"},duckduckgo:{adoption:{sdks:[],envStems:[]},hosts:[{host:"html.duckduckgo.com"},{host:"duckduckgo.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["page"],endpointEnv:{name:"SUPERCODE_WEB_SEARCH_URL",templates:{SUPERCODE_WEB_SEARCH_URL:"${url}/html/"},note:"Harness reads its documented full search endpoint; the World preserves the DuckDuckGo HTML path. Workbench navigation uses host substitution."},serveExport:"createDuckduckgoTwinServer"},e2b:{adoption:{sdks:["e2b","@e2b/code-interpreter"],envStems:["E2B"]},hosts:[{host:"api.e2b.app"},{suffix:".e2b.app"},{host:"api.e2b.dev"},{suffix:".e2b.dev"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["sandbox","template"],endpointEnv:{name:"E2B_API_URL",templates:{E2B_API_URL:"${url}",E2B_SANDBOX_URL:"${url}"},note:"Python e2b 2.45.0 and the JS SDK read E2B_API_URL; the JS SDK reads E2B_SANDBOX_URL and sends sandbox id/port headers; vendor hosts route through the World proxy"},credentialDoor:{path:"/_twin/teams",body:{name:"World team"},fill:{E2B_API_KEY:"api_key"}},serveExport:"createE2bTwinServer"},elevenlabs:{adoption:{sdks:["@elevenlabs/elevenlabs-js","elevenlabs"],envStems:["ELEVENLABS","ELEVENSLABS"]},hosts:[{host:"api.elevenlabs.io"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["voice","agent","conversation","workspace_secret"],endpointEnvNone:"the applications call https://api.elevenlabs.io unless configured with another URL; the World claims the host",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{ELEVENLABS_API_KEY:"api_key",ELEVENSLABS_API_KEY:"api_key"}},serveExport:"createElevenlabsTwinServer"},expo:{adoption:{sdks:["expo-server-sdk"],pypi:["exponent-server-sdk"],envStems:["EXPO_ACCESS"]},hosts:[{host:"exp.host",pathPattern:"^/--/api/v2/push/"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnv:{name:"EXPO_BASE_URL",note:"expo-server-sdk reads its base URL from EXPO_BASE_URL, so its own Undici client reaches the twin"},serveExport:"createExpoTwinServer"},fal:{adoption:{sdks:["@fal-ai/client"],envStems:["FAL"]},hosts:[{host:"fal.run"},{host:"api.fal.ai"}],archetype:"generative",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the customer life calls https://fal.run/fal-ai/<model>; the World claims the hosts",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{FAL_KEY:"api_key"}},serveExport:"createFalTwinServer"},firecrawl:{adoption:{sdks:["@mendable/firecrawl-js"],envStems:["FIRECRAWL"]},hosts:[{host:"api.firecrawl.dev"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"LibreChat defaults to api.firecrawl.dev/v2/scrape; the World claims that host",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{FIRECRAWL_API_KEY:"api_key"}},serveExport:"createFirecrawlTwinServer"},fly:{adoption:{sdks:[],envStems:["FLY"]},hosts:[{host:"api.machines.dev"},{suffix:".fly.dev"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["app","machine","volume"],endpointEnv:{name:"FLY_API_HOSTNAME",note:"Substrate reads the Machines API base from FLY_API_HOSTNAME (fly-provider.ts), as flyctl does"},credentialDoor:{path:"/_twin/tokens",body:{org:"personal"},fill:{FLY_API_TOKEN:"token"}},serveExport:"createFlyTwinServer"},gemini:{adoption:{sdks:["@google/genai","@ai-sdk/google","@google/generative-ai"],envStems:["GEMINI","GOOGLE_GENERATIVE_AI"]},hosts:[{host:"generativelanguage.googleapis.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnv:{name:"GOOGLE_GEMINI_BASE_URL",note:"Google GenAI SDK reads this base URL; other callers retain the routed vendor host."},credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{GEMINI_API_KEY:"api_key",GOOGLE_GENERATIVE_AI_API_KEY:"api_key",GOOGLE_API_KEY:"api_key",GOOGLE_KEY:"api_key"}},serveExport:"createGeminiTwinServer"},github:{adoption:{sdks:["@octokit/rest","@actions/github","@octokit/auth-app","@octokit/auth-oauth-app","@octokit/auth-oauth-device","@octokit/core","@octokit/graphql","@octokit/webhooks","octokit"],scopes:["@octokit/"],pypi:["PyGithub","githubkit"],envStems:["GITHUB","GH","BACKENDGITHUB","INFAPPCONNECTIONGITHUBAPP","INFAPPCONNECTIONGITHUBOAUTH","INFAPPCONNECTIONGITHUBRADARAPP","APPSMITHOAUTH2GITHUB"]},hosts:[{host:"api.github.com"},{host:"uploads.github.com"},{host:"raw.githubusercontent.com"},{host:"token.actions.githubusercontent.com"},{host:"github.com",pathPattern:"^/login|^/session|^/settings/|^/organizations/|^/apps/|^/[^/]+/[^/]+/(?:info/refs|git-upload-pack|git-receive-pack)$|^/[^/]+/[^/]+\\.git/|^/[^/]+/[^/]+/?$|^/[^/]+/[^/]+/(?:issues|pulls?|blob|raw|tree|commits?|compare)(?:/|$)"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["repository","issue","pull","workflow_run","check_run","release","app"],credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{GITHUB_TOKEN:"token",GH_TOKEN:"token",GITHUB_PAT:"token",GITHUB_ACCESS_TOKEN:"token"}},serveExport:"createGithubTwinServer"},googlecalendar:{adoption:{sdks:["@googleapis/calendar"],pypi:[],envStems:["GOOGLECALENDAR"]},hosts:[{host:"www.googleapis.com",pathPattern:"^/(batch/)?calendar/v3(/|$)"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"Google generated clients take rootUrl in code; the World routes the declared Calendar API paths.",serveExport:"createGooglecalendarTwinServer"},googlefonts:{adoption:{sdks:[],envStems:["GOOGLE_FONTS"]},hosts:[{host:"www.googleapis.com",pathPattern:"^/webfonts/v1/webfonts$"},{host:"webfonts.googleapis.com",pathPattern:"^/v1/webfonts$"},{host:"fonts.googleapis.com",pathPattern:"^/css2?$"},{host:"fonts.gstatic.com",pathPattern:"^/(s/|l/font$)"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["webfont","_api_key","_font_catalog","_stylesheet","_font_file"],endpointEnvNone:"Pinned helper hardcodes the vendor API and CSS hosts, then downloads their returned gstatic URLs. Scoped host routing preserves these URLs.",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{GOOGLE_FONTS_API_KEY:"api_key"}},serveExport:"createGooglefontsTwinServer"},googleoauth:{adoption:{sdks:["google-auth-library","@googleapis/oauth2"],envStems:["GOOGLE_CLIENT","GOOGLE_OAUTH"]},hosts:[{host:"accounts.google.com",pathPattern:"^/(o/oauth2/v2/auth(/oauthchooseaccount|/choose)?|o/oauth2/auth|o/oauth2/token|signin/oauth/error|\\.well-known/openid-configuration)/?$"},{host:"accounts.google.com",pathPattern:"^/_twin/"},{host:"oauth2.googleapis.com",pathPattern:"^/(token|oauth2/v4/token|revoke|tokeninfo|device/code)/?$"},{host:"www.googleapis.com",pathPattern:"^/(oauth2/(v1/certs|v3/(certs|userinfo)|v2/userinfo)|userinfo/v2/me)/?$"},{host:"openidconnect.googleapis.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["client","account","access_token","api_key"],endpointEnvNone:"Google's OAuth libraries read no base-URL variable: the endpoints are the discovery document's, claimed by the host rules.",credentialDoor:{path:"/_twin/credentials",body:{client_email:"world@world-project.iam.gserviceaccount.com",client:{redirect_uris:["http://localhost:3000/oauth2callback"],name:"World App"},account:{sub:"100000000000000000001",email:"person@world.example",name:"World Person"},api_key:{name:"API key 1"}},fill:{GOOGLE_APPLICATION_CREDENTIALS:"file:credentials",GOOGLE_CLIENT_ID:"client_id",GOOGLE_CLIENT_SECRET:"client_secret",YOUTUBE_API_KEY:"api_key"}},serveExport:"createGoogleoauthTwinServer"},groq:{adoption:{sdks:["@ai-sdk/groq","groq-sdk"],envStems:["GROQ"]},hosts:[{host:"api.groq.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the SDK calls https://api.groq.com/openai/v1 unless given a base URL in code; the World claims the host",serveExport:"createGroqTwinServer"},hackernews:{adoption:{sdks:[],envStems:["HN","HACKERNEWS"]},hosts:[{host:"hacker-news.firebaseio.com"},{host:"news.ycombinator.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["item","user","_vote","_person","_web_session","_web_session_issue"],endpointEnvNone:"Hacker News publishes no SDK: clients fetch https://hacker-news.firebaseio.com/v0 directly and people use news.ycombinator.com in a browser, both reached by host",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{HN_USERNAME:"acct",HN_PASSWORD:"pw"}},serveExport:"createHackernewsTwinServer"},hubspot:{adoption:{sdks:["@hubspot/api-client"],pypi:["hubspot-api-client"],envStems:["HUBSPOT","HUBSPOTPRIVATEAPP"]},hosts:[{host:"api.hubapi.com"},{host:"app.hubspot.com",demandPathPattern:!1},{host:"api.hsforms.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"The optional integrations address HubSpot hosts; no SDK base-URL environment variable is injected.",serveExport:"createHubspotTwinServer"},huggingface:{adoption:{sdks:["@huggingface/transformers","@huggingface/hub","huggingface_hub"],envStems:["HF_TOKEN","HUGGING_FACE_HUB_TOKEN","HF_ENDPOINT"]},hosts:[{host:"huggingface.co"},{host:"us.aws.cdn.hf.co"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",maxRequestBodySize:2147483648,resources:["repo"],endpointEnvNone:"localrouter's catalog names https://huggingface.co URLs; the World claims the hosts",credentialDoor:{path:"/_twin/users",body:{name:"world"},fill:{HF_TOKEN:"token"}},serveExport:"createHuggingfaceTwinServer"},instagram:{adoption:{sdks:[],envStems:["INSTAGRAM"]},hosts:[{host:"graph.instagram.com"},{host:"api.instagram.com"},{host:"www.instagram.com",pathPattern:"^/oauth/authorize"},{host:"scontent.cdninstagram.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["container","media","comment"],endpointEnvNone:"an app calls graph.instagram.com and api.instagram.com and sends people to www.instagram.com; the World claims the hosts",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{INSTAGRAM_APP_ID:"app_id",INSTAGRAM_APP_SECRET:"app_secret",INSTAGRAM_ACCESS_TOKEN:"access_token",INSTAGRAM_USER_ID:"user_id"}},serveExport:"createInstagramTwinServer"},intercom:{adoption:{sdks:["intercom-client"],envStems:["INTERCOM"]},hosts:[{host:"api.intercom.io"},{host:"app.intercom.com",pathPattern:"^/oauth",demandPathPattern:!1}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"intercom-client takes its base URL in code; the optional integrations address hosts routed by the World.",serveExport:"createIntercomTwinServer"},jira:{adoption:{sdks:["jira.js","jira-client"],envStems:["JIRA","ATLASSIAN"]},hosts:[{host:"auth.atlassian.com"},{host:"api.atlassian.com",pathPattern:"^/(oauth/|ex/jira/)"},{suffix:".atlassian.net"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["project","issue","comment","component"],endpointEnvNone:"The on-call agent uses its site URL; the OAuth flow uses auth.atlassian.com and api.atlassian.com, all claimed by the World",credentialDoor:{path:"/_twin/api-token",body:{site:"acme",email:"agent@acme.example",password:"world-password"},fill:{JIRA_API_TOKEN:"apiToken"}},serveExport:"createJiraTwinServer"},linear:{adoption:{sdks:["@linear/sdk"],envStems:["LINEAR"]},hosts:[{host:"api.linear.app"},{host:"linear.app"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"graphql",resources:["organization","user","team","workflow_state","project","issue","comment","issue_label"],endpointEnvNone:"Linear uses api.linear.app/graphql and linear.app for its workspace and OAuth authorize page; the World claims those hosts",credentialDoor:{path:"/_twin/local-credentials",body:{},fill:{LINEAR_CLIENT_ID:"client_id",LINEAR_CLIENT_SECRET:"client_secret",LINEAR_API_KEY:"api_key"}},serveExport:"createLinearTwinServer"},linkedin:{adoption:{sdks:["linkedin-api-client"],pypi:["linkedin-api-client"],envStems:["LINKEDIN"]},hosts:[{host:"api.linkedin.com",pathPattern:"^/(rest|v2)/|^/_twin/",demandPathPattern:"^/(rest|v2)/"},{host:"www.linkedin.com",pathPattern:"^/$|^/(dms-uploads|dms-mpf-uploads|feed|company|login|uas/login|m/logout|signup/cold-join|signup/api/cors/createAccount|checkpoint/lg/login-submit)(/|$)|^/_twin/",demandPathPattern:"^/(dms-uploads|dms-mpf-uploads)(/|$)"},{host:"linkedin.com",pathPattern:"^/$|^/(dms-uploads|dms-mpf-uploads|feed|company|login|uas/login|m/logout|signup/cold-join|signup/api/cors/createAccount|checkpoint/lg/login-submit)(/|$)|^/_twin/",demandPathPattern:"^/(dms-uploads|dms-mpf-uploads)(/|$)"},{host:"media.licdn.com",pathPattern:"^/dms/image/",demandPathPattern:!1},{host:"dms.licdn.com",pathPattern:"^/playlist/",demandPathPattern:!1}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["post","image","video","organization","member","organization_acl","developer_app","_access_token","_usage","_upload","_person","_web_session"],endpointEnvNone:"LinkedIn's clients (linkedin-api-client, plain fetch) read no base-URL variable; the World claims api.linkedin.com and www.linkedin.com",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{LINKEDIN_ACCESS_TOKEN:"access_token"}},serveExport:"createLinkedinTwinServer"},livekit:{serverBacking:{command:"livekit-server"},adoption:{sdks:["livekit-client","livekit-server-sdk","@livekit/rtc-node","@livekit/react-native","@livekit/react-native-expo-plugin","@livekit/react-native-webrtc"],pypi:["livekit","livekit-agents","livekit-api"],envStems:["LIVEKIT"]},hostsNone:"The World runs the vendor server on its declared endpoint; SDKs read LIVEKIT_URL.",endpointEnv:{name:"LIVEKIT_URL",templates:{LIVEKIT_URL:"ws://${host}:${port}",LIVEKIT_API_KEY:"twin-livekit-key",LIVEKIT_API_SECRET:"twin-livekit-secret-for-the-worlds-own-server"},note:"Credentials and URL are the same ones the World starts its LiveKit server with."},sidePorts:[{name:"rtc-tcp",option:"rtcTcpPort",flag:"--rtc-tcp-port",scheme:"tcp",note:"ICE/TCP media advertised on loopback at this port; the vendor binds all interfaces. Forward beside signaling for a browser on another machine."}]},merge:{adoption:{sdks:[],envStems:["MERGE_GATEWAY","MODEL_GATEWAY"]},hosts:[{host:"api-gateway.merge.dev"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"Open Autonomy reads MODEL_GATEWAY_URL and defaults to api-gateway.merge.dev; the World claims the host",credentialDoor:{path:"/_twin/organizations",body:{},fill:{MODEL_GATEWAY_API_KEY:"api_key",MERGE_GATEWAY_API_KEY:"api_key"}},serveExport:"createMergeTwinServer"},mistral:{adoption:{sdks:["@ai-sdk/mistral","@mistralai/mistralai"],pypi:["mistralai"],envStems:["MISTRAL","OCR"]},hosts:[{host:"api.mistral.ai"}],archetype:"generative",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the SDKs call https://api.mistral.ai/v1 unless given a base URL in code or config; the World claims the host",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{MISTRAL_API_KEY:"api_key"}},serveExport:"createMistralTwinServer"},mongodb:{adoption:{sdks:["mongodb","mongoose"],envStems:["MONGODB","MONGO"]},hosts:[],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"raw-tcp",resources:["collection","index","document"],endpointEnvNone:"Managed infrastructure injects the connection address from the declared mongodb service; it is a TCP endpoint, with no HTTP API host.",managedService:{kind:"mongodb",scheme:"mongodb",note:"MongoDB 7.0 wire: standalone, or a declared single-member handshake without sessions; state in the World tree"},serveExport:"createMongodbTwinServer"},"npm-registry":{adoption:{envStems:["NPM"],tools:[{package:"npm",usage:"build"}]},hosts:[{host:"registry.npmjs.org"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["package","user","org"],endpointEnv:{name:"NPM_CONFIG_REGISTRY",note:"npm and bun read the registry from npm_config_registry (and .npmrc's `registry`)."},credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{NODE_AUTH_TOKEN:"token",NPM_TOKEN:"token"}},serveExport:"createNpmRegistryTwinServer"},openai:{adoption:{pypi:["openai","openai-agents"],sdks:["openai","@ai-sdk/openai"],envStems:["CODEX","OPENAI","APOPENAI","OPENAIMODERATION","REWORKDPLATFORMOPENAI"]},hosts:[{host:"chatgpt.com",pathPattern:"^/backend-api/(codex|wham)(/|$)"},{host:"auth.openai.com",pathPattern:"^/(oauth/(authorize|token|revoke)|api/accounts/deviceauth/(usercode|token)|codex/device)(/|$)"},{host:"api.openai.com"},{host:"platform.openai.com",pathPattern:"^/(settings/proj[-_][^/]+/api-keys|login$)"}],archetype:"generative",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["file","response","chat_completion","assistant","thread","message","run","project","api_key"],credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{OPENAI_API_KEY:"api_key",OPENAI_KEY:"api_key",CODEX_HOME:"directory:codex_home"}},serveExport:"createOpenaiTwinServer"},openrouter:{adoption:{sdks:["@openrouter/sdk","@openrouter/ai-sdk-provider"],envStems:["OPENROUTER"]},hosts:[{host:"openrouter.ai"}],archetype:"generative",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["user"],endpointEnvNone:"the SDKs call https://openrouter.ai/api/v1 unless given a base URL in code; the World claims the host",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{OPENROUTER_API_KEY:"api_key"}},serveExport:"createOpenrouterTwinServer"},perplexity:{adoption:{sdks:["@ai-sdk/perplexity"],envStems:["PERPLEXITY"]},hosts:[{host:"api.perplexity.ai"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the SDK calls https://api.perplexity.ai unless given a base URL in code; the World claims the host",serveExport:"createPerplexityTwinServer"},planetscale:{adoption:{sdks:["@planetscale/database","@prisma/adapter-planetscale"],envStems:["PLANETSCALE"]},hosts:[{suffix:".psdb.cloud"},{host:"api.planetscale.com"},{host:"app.planetscale.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["database","password","service_token","backup","table","row"],endpointEnv:{name:"PLANETSCALE_TWIN_URL",note:"the twin's own URL; applications reach it at <region>.connect.psdb.cloud, which the injector redirects, with the password the credentialDoor issued."},credentialDoor:{path:"/_twin/app-credentials",body:{organization:"world",database:"world"},fill:{PLANETSCALE_DATABASE_URL:"http_url",DATABASE_URL:"side:mysql:native_url"}},prismaAdapter:{adapter:"@prisma/adapter-planetscale",export:"PrismaPlanetScale",urlEnv:"PLANETSCALE_DATABASE_URL"},sidePorts:[{name:"mysql",option:"wirePort",flag:"--wire-port",note:"MySQL's native wire over the same database psdb serves (mysql_native_password, text and prepared statements)"}],serveExport:"createPlanetscaleTwinServer"},polar:{adoption:{sdks:["@polar-sh/sdk"],pypi:["polar-sdk"],scopes:["@polar-sh/"],envStems:["POLAR"]},hosts:[{host:"api.polar.sh"},{host:"sandbox-api.polar.sh"},{host:"buy.polar.sh"},{host:"polar.sh",pathPattern:"^/[^/]+/portal"},{host:"sandbox.polar.sh"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["customer","product","checkout","subscription","order","event","meter","customer_session","webhook_endpoint"],endpointEnvNone:"@polar-sh/sdk reads no base-URL variable: its `server` option picks production or sandbox, both claimed by the host rules.",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{POLAR_ACCESS_TOKEN:"access_token",POLAR_API_KEY:"access_token",POLAR_ORGANIZATION_TOKEN:"access_token"}},serveExport:"createPolarTwinServer"},polyhaven:{adoption:{sdks:[],envStems:[]},hosts:[{host:"api.polyhaven.com"},{host:"dl.polyhaven.org"},{host:"cdn.polyhaven.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["asset"],endpointEnvNone:"the editor calls api.polyhaven.com and the urls it answers; the World claims the hosts",serveExport:"createPolyhavenTwinServer"},posthog:{adoption:{sdks:["posthog-js","posthog-node"],envStems:["POSTHOG"]},hosts:[{host:"us.i.posthog.com"},{host:"eu.i.posthog.com"},{host:"us-assets.i.posthog.com"},{host:"eu-assets.i.posthog.com"},{host:"us.posthog.com"},{host:"eu.posthog.com"},{host:"app.posthog.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"The SDKs accept host options; no base-URL environment variable belongs to the SDK itself.",serveExport:"createPosthogTwinServer"},reddit:{adoption:{sdks:["snoowrap"],pypi:["praw","asyncpraw"],envStems:["REDDIT"]},hosts:[{host:"oauth.reddit.com"},{host:"www.reddit.com",demandPathPattern:"^/api/"},{host:"reddit.com",demandPathPattern:"^/api/"},{host:"old.reddit.com",demandPathPattern:"^/api/"},{host:"reddit-uploaded-media.s3-accelerate.amazonaws.com"},{host:"reddit-uploaded-video.s3-accelerate.amazonaws.com"},{host:"v.redd.it",demandPathPattern:!1},{host:"i.redd.it",demandPathPattern:!1},{host:"preview.redd.it",demandPathPattern:!1},{host:"external-preview.redd.it",demandPathPattern:!1},{host:"b.thumbs.redditmedia.com",demandPathPattern:!1}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resourcesUnreachable:{},resources:["account","subreddit","link","comment","asset","app","_access_token","_token_issue","_client_secret","_rate_window","_vote","_membership","_person","_web_session","_web_session_issue"],endpointEnvNone:"Reddit's clients name oauth.reddit.com and www.reddit.com themselves (the campaign's sender writes them as constants); the World's injector routes those hosts, and no client of the demand reads a base-URL variable",credentialDoor:{path:"/_twin/app-credentials",body:{username:"FamouslyDefault"},fill:{REDDIT_ACCESS_TOKEN:"access_token"}},serveExport:"createRedditTwinServer"},redis:{adoption:{sdks:["ioredis","redis","bullmq"],envStems:["REDIS"]},hosts:[],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"raw-tcp",resources:["key","member","script"],endpointEnvNone:"Managed infrastructure injects REDIS_URL from the declared redis service; it is a TCP endpoint, with no HTTP API host.",managedService:{kind:"redis",scheme:"redis",note:"stock Redis over RESP2 with state in the World tree"},serveExport:"createRedisTwinServer"},resend:{adoption:{pypi:["resend"],sdks:["resend"],envStems:["RESEND","NEXTPRIVATERESEND"]},hosts:[{host:"api.resend.com"},{host:"inbound-cdn.resend.com"},{host:"resend.com",pathPattern:"^/emails(?:/|$)"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["email","domain","received"],credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{RESEND_API_KEY:"token"}},serveExport:"createResendTwinServer"},sentry:{adoption:{sdks:["@sentry/astro","@sentry/browser","@sentry/electron","@sentry/nextjs","@sentry/node","@sentry/nestjs","@sentry/react","@sentry/react-native","@sentry/remix","@sentry/sveltekit","@sentry/vue","@sentry/cli"],pypi:["sentry-sdk"],envStems:["APPSMITHSENTRY","SENTRY"]},hosts:[{host:"sentry.io"},{host:"us.sentry.io"},{host:"de.sentry.io"},{suffix:".ingest.sentry.io"},{suffix:".ingest.us.sentry.io"},{suffix:".ingest.de.sentry.io"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["organization","project","project_key","event","issue","release","monitor","check_in"],endpointEnvNone:"an SDK sends to its DSN's host and sentry-cli to SENTRY_URL (sentry.io by default); the DSN the World issues names the World's ingest host, claimed by the host rules",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{SENTRY_DSN:"dsn",NEXT_PUBLIC_SENTRY_DSN:"dsn",NEXT_PUBLIC_SENTRY_DSN_CLIENT:"dsn",SENTRY_FRONT_DSN:"dsn",SENTRY_DSN_API:"dsn",VITE_SENTRY_DSN:"dsn",EXPO_PUBLIC_SENTRY_DSN:"dsn",SENTRY_AUTH_TOKEN:"auth_token",SENTRY_ORG:"org",SENTRY_ORGANIZATION:"org",SENTRY_PROJECT:"project"}},serveExport:"createSentryTwinServer"},sigstore:{adoption:{sdks:["sigstore","@sigstore/sign"],envStems:["SIGSTORE"]},hosts:[{host:"fulcio.sigstore.dev"},{host:"rekor.sigstore.dev"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"npm and the sigstore library read no address for Fulcio or Rekor: both are fixed hosts, claimed by the host rules.",serveExport:"createSigstoreTwinServer"},slack:{adoption:{pypi:["slack-sdk","slack-bolt","slackclient"],sdks:["@slack/web-api","@slack/bolt","@slack/webhook","@slack/oauth","@chat-adapter/slack"],scopes:["@slack/"],envStems:["SLACK","SLACKBOTUSER"]},hosts:[{host:"app.slack.com"},{host:"slack.com"},{host:"www.slack.com"},{host:"api.slack.com"},{host:"hooks.slack.com",pathPattern:"^/services/"},{host:"files.slack.com",pathPattern:"^/upload/"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"web-api",resources:["team","user","channel","message","file","usergroup","app"],credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{SLACK_BOT_TOKEN:"bot_token",SLACK_TOKEN:"bot_token",SLACK_APP_TOKEN:"app_token",SLACK_SIGNING_SECRET:"signing_secret",SLACK_CLIENT_ID:"client_id",SLACK_CLIENT_SECRET:"client_secret"}},serveExport:"createSlackTwinServer"},smtp:{adoption:{pypi:["aiosmtplib"],sdks:["nodemailer","nodemailer-smtp-transport","emailjs"],envStems:["NEXTPRIVATESMTP"]},hostsNone:"RAW-PROTOCOL pack: SMTP is a line protocol over a raw TCP socket, invisible to the http/fetch injector, and the relay is whatever host the operator names. The World injects SMTP_HOST/SMTP_PORT, EMAIL_SERVER_HOST/EMAIL_SERVER_PORT and EMAIL_SERVER at the twin's listener (world-runtime init.ts).",archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"raw-tcp",resources:["message","relay"],endpointEnvNone:"the relay is named by host and port settings the runtime injects as templates (world-runtime init.ts), not a base URL",sidePorts:[{name:"inspect",option:"inspectPort",flag:"--inspect-port",path:"/_twin/messages",note:"the World's inspect doors: the messages the relay accepted"}],serveExport:"createSmtpTwinServer"},stripe:{adoption:{pypi:["stripe"],sdks:["stripe"],envStems:["STRIPE","NEXTPRIVATESTRIPE"]},hosts:[{host:"api.stripe.com"},{host:"checkout.stripe.com",pathPattern:"^/c/pay/"},{host:"billing.stripe.com",pathPattern:"^/p/session/"},{host:"connect.stripe.com",pathPattern:"^/setup/"},{host:"dashboard.stripe.com",pathPattern:"^/customers(?:/[^/]+)?/?$|^/radar/lists(?:/[^/]+)?/?$|^/test/issuing/balance/?$|^/settings/public/?$"},{host:"verify.stripe.com",pathPattern:"^/start/"},{host:"js.stripe.com",pathPattern:"^/v3/?$|^/(v3|[a-z]+)/stripe\\.js$"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["charge","customer","payment_intent","setup_intent","payment_method","subscription","price","product","invoice","invoiceitem","refund","event"],credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{STRIPE_SECRET_KEY:"secret_key",STRIPE_API_KEY:"secret_key",STRIPE_PRIVATE_KEY:"secret_key",BILLING_STRIPE_API_KEY:"secret_key",STRIPE_PUBLISHABLE_KEY:"publishable_key",NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY:"publishable_key",NEXT_PUBLIC_STRIPE_PUBLIC_KEY:"publishable_key",NEXT_PUBLIC_STRIPE_KEY:"publishable_key",STRIPE_WEBHOOK_SECRET:"webhook_secret",STRIPE_WEBHOOK_SIGNING_SECRET:"webhook_secret",STRIPE_ENDPOINT_SECRET:"webhook_secret",STRIPE_WEBHOOK_SECRET_KEY:"webhook_secret",NEXT_PRIVATE_STRIPE_WEBHOOK_SECRET:"webhook_secret",BILLING_STRIPE_WEBHOOK_SECRET:"webhook_secret",STRIPE_CONNECT_WEBHOOK_SECRET:"connect_webhook_secret",STRIPE_WEBHOOK_SECRET_CONNECT:"connect_webhook_secret",STRIPE_CONNECT_WEBHOOK_SIGNING_SECRET:"connect_webhook_secret"}},serveExport:"createStripeTwinServer"},supabase:{adoption:{pypi:["supabase","gotrue","supabase-auth","postgrest","storage3","supafunc","realtime"],sdks:["@supabase/supabase-js"],scopes:["@supabase/"],envStems:["SUPABASE"],worldIds:["supabasemgmt"]},hosts:[{host:"api.supabase.com"},{suffix:".supabase.co",pathPattern:"^/(rest|storage|auth)/v1(/|$)"}],archetype:"engine-control",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{SUPABASE_DB_URL:"database_url"}},managedDatabase:{kind:"postgres",arg:"--database",note:"the project's database is the World's managed postgres: the database the application's migrations and queries use, whose URL the credential door answers"},serveExport:"createSupabaseTwinServer"},tavily:{adoption:{sdks:["@tavily/core","@langchain/tavily"],pypi:["tavily-python"],envStems:["TAVILY"]},hosts:[{host:"api.tavily.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the clients call https://api.tavily.com; the World claims the host",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{TAVILY_API_KEY:"api_key"}},serveExport:"createTavilyTwinServer"},telegram:{adoption:{sdks:["@chat-adapter/telegram","node-telegram-bot-api","telegraf"],envStems:["TELEGRAM"]},hosts:[{host:"api.telegram.org"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"web-api",resources:["user","chat","chat_member","message","update","file"],endpointEnv:{name:"TELEGRAM_API_BASE_URL",note:"the Chat SDK's Telegram adapter reads it as its API base (@chat-adapter/telegram 4.39.0, dist/index.js:1039); node-telegram-bot-api takes a baseApiUrl option only, and reaches the twin by its host"},credentialDoor:{path:"/_twin/bots",body:{},fill:{TELEGRAM_BOT_TOKEN:"token",TELEGRAM_TOKEN:"token",TELEGRAM_BOT_USERNAME:"username",TELEGRAM_BOT_NAME:"username"}},serveExport:"createTelegramTwinServer"},temporal:{serverBacking:{command:"temporal"},adoption:{sdks:["@temporalio/client","@temporalio/worker","@temporalio/workflow","nestjs-temporal-core"],pypi:["temporalio"],envStems:["TEMPORAL"]},hostsNone:"The World runs the vendor development server at its declared loopback gRPC endpoint.",endpointEnv:{name:"TEMPORAL_ADDRESS",templates:{TEMPORAL_ADDRESS:"${host}:${port}",TEMPORAL_NAMESPACE:"default",TEMPORAL_TLS:"false",TEMPORAL_API_KEY:""},note:"The local development server creates default; no TLS or Cloud API key."}},tiktok:{adoption:{sdks:[],envStems:["TIKTOK"]},hosts:[{host:"business-api.tiktok.com"},{host:"open.tiktokapis.com"},{host:"open-upload.tiktokapis.com"},{host:"upload.us.tiktokapis.com"},{host:"www.tiktok.com",pathPattern:"^/v2/auth/authorize"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["publish","video"],endpointEnvNone:"an app calls open.tiktokapis.com and sends people to www.tiktok.com; the World claims the hosts",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{TIKTOK_CLIENT_ID:"client_key",TIKTOK_CLIENT_SECRET:"client_secret",TIKTOK_BUSINESS_CLIENT_ID:"business_client_id",TIKTOK_BUSINESS_CLIENT_SECRET:"business_client_secret"}},serveExport:"createTiktokTwinServer"},tinybird:{adoption:{pypi:["tinybird-python-sdk","tinybird-cli"],sdks:["@chronark/zod-bird"],scopes:["@chronark/zod-bird"],envStems:["TINYBIRD"]},hosts:[{host:"api.tinybird.co"},{hostPattern:"^api\\.[a-z0-9.-]+\\.tinybird\\.co$"},{host:"cloud.tinybird.co"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["workspace","datasource","pipe","event","token","job","tag"],endpointEnvNone:"Tinybird's clients take the API host as configuration (@chronark/zod-bird's baseUrl, tinybird-cli's --host), defaulting to https://api.tinybird.co, which the World routes by host; no SDK reads a base-URL variable of its own",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{TINYBIRD_API_KEY:"token",TINYBIRD_TOKEN:"token"}},serveExport:"createTinybirdTwinServer"},tremendous:{adoption:{sdks:["tremendous"],envStems:["TREMENDOUS"],pypi:[]},hosts:[{host:"api.tremendous.com"},{host:"testflight.tremendous.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"The demanded caller passes the public file URL directly to fetch; World host routing supplies the endpoint.",serveExport:"createTremendousTwinServer"},tripo:{adoption:{pypi:["tripo3d"],envStems:["TRIPO"]},hosts:[{host:"api.tripo3d.ai"},{host:"api.tripo3d.com"},{host:"openapi.tripo3d.ai",pathPattern:"^/v3(?:/|$)"},{host:"openapi.tripo3d.com",pathPattern:"^/v3(?:/|$)"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the editor calls api.tripo3d.ai; the World claims the host",credentialDoor:{path:"/_twin/accounts",body:{balance:3e3},fill:{TRIPO_API_KEY:"api_key"}},serveExport:"createTripoTwinServer"},tunnel:{adoption:{sdks:["@volter/tunnel"],envStems:["TUNNEL","VOLTERTUNNEL"]},hosts:[{host:"voltertest.xyz"},{suffix:".voltertest.xyz"},{host:"www.voltertest.xyz",exclude:!0},{host:"twins.voltertest.xyz",exclude:!0}],archetype:"proxy",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the relay URL is the credential door's (TUNNEL_SERVER_URL, SUPERCODE_TUNNEL_SERVER_URL), the World claiming voltertest.xyz",credentialDoor:{path:"/_twin/accounts",body:{slug:"world"},fill:{TUNNEL_SECRET:"token",TUNNEL_SERVER_URL:"server",SUPERCODE_TUNNEL_SERVER_URL:"server"}},serveExport:"createTunnelTwinServer"},turbopuffer:{adoption:{sdks:["@turbopuffer/turbopuffer"],pypi:["turbopuffer"],scopes:["@turbopuffer/"],envStems:["TURBOPUFFER"]},hosts:[{hostPattern:"^(?:aws|gcp|azure)-[a-z0-9-]+\\.turbopuffer\\.com$"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnv:{name:"TURBOPUFFER_TWIN_URL",templates:{TURBOPUFFER_BASE_URL:"${url}/{region}"},note:"The pinned SDK requires the region placeholder when a region is supplied; its Node socket client reads TURBOPUFFER_BASE_URL."},serveExport:"createTurbopufferTwinServer"},twitch:{adoption:{sdks:[],envStems:["TWITCH"]},hosts:[{host:"api.twitch.tv",pathPattern:"^/helix/|^/_twin/"},{host:"id.twitch.tv",pathPattern:"^/oauth2/|^/_twin/"},{host:"www.twitch.tv",pathPattern:"^/$|^/login/?$|^/popout/[A-Za-z0-9_]{1,25}/chat/?$|^/[A-Za-z0-9_]{1,25}/?$|^/_twin/"},{host:"twitch.tv",pathPattern:"^/$|^/login/?$|^/popout/[A-Za-z0-9_]{1,25}/chat/?$|^/[A-Za-z0-9_]{1,25}/?$|^/_twin/"},{host:"m.twitch.tv",pathPattern:"^/$|^/login/?$|^/popout/[A-Za-z0-9_]{1,25}/chat/?$|^/[A-Za-z0-9_]{1,25}/?$|^/_twin/"},{host:"dashboard.twitch.tv",pathPattern:"^/u/[A-Za-z0-9_]{1,25}/(?:stream-manager|settings/stream)/?$"},{host:"player.twitch.tv",pathPattern:"^/$"},{host:"irc-ws.chat.twitch.tv"},{host:"usher.ttvnw.net",pathPattern:"^/api/channel/hls/"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["user","channel","stream","chat_message","application","_token","_authorization_code","_client_secret","_stream_key","_live","_live_segment"],endpointEnvNone:"Twitch's clients address api.twitch.tv, id.twitch.tv and irc-ws.chat.twitch.tv by their published URLs; no SDK reads a base-URL variable",credentialDoor:{path:"/_twin/console",body:{login:"worldchannel",password:"world-password",email:"worldchannel@example.com",application:{name:"World App",redirect_uris:["http://localhost:3000"]}},fill:{TWITCH_CLIENT_ID:"client_id",TWITCH_CLIENT_SECRET:"client_secret",TWITCH_CHANNEL:"login"}},sidePorts:[{name:"ingest",option:"ingestPort",flag:"--ingest-port",scheme:"rtmp",path:"/app",note:"Twitch's RTMP ingest (rtmp://<ingest-server>/app/<stream-key>): OBS publishes the channel's broadcast here"}],serveExport:"createTwitchTwinServer"},upstash:{adoption:{sdks:["@upstash/redis","@upstash/ratelimit","@upstash/qstash","@upstash/workflow"],envStems:["UPSTASH","UPSTASH_REDIS","QSTASH","KV_REST_API"]},hosts:[{suffix:".upstash.io"},{suffix:"-vector.upstash.io",exclude:!0},{host:"console.upstash.com"},{host:"api.upstash.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["database","key","script","message","queue","workflow_run"],endpointEnv:{name:"UPSTASH_TWIN_URL",templates:{QSTASH_URL:"${url}",UPSTASH_REDIS_REST_URL:"${url}",KV_REST_API_URL:"${url}"},note:"Redis reads its REST URL; QStash and Workflow read QSTASH_URL. Direct SDK transports use the twin endpoint and issued token; other clients also use host routing."},credentialDoor:{path:"/_twin/app-credentials",body:{owner:"owner@world.test"},fill:{UPSTASH_REDIS_REST_URL:"redis_url",UPSTASH_REDIS_REST_TOKEN:"redis_token",KV_REST_API_URL:"redis_url",KV_REST_API_TOKEN:"redis_token",QSTASH_TOKEN:"qstash_token",QSTASH_CURRENT_SIGNING_KEY:"qstash_current_signing_key",QSTASH_NEXT_SIGNING_KEY:"qstash_next_signing_key"}},serveExport:"createUpstashTwinServer"},vercel:{adoption:{sdks:["@vercel/sdk","@vercel/edge-config"],pypi:["vercel"],envStems:["VERCEL","EDGE_CONFIG"],configFiles:[{file:"vercel.json",usage:"application",when:"crons"}]},hosts:[{host:"api.vercel.com"},{host:"vercel.com"},{host:"edge-config.vercel.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["team","project","project_domain","domain","edge_config","edge_config_item"],endpointEnvNone:"the applications reach api.vercel.com and the Edge Config connection string's host, which the World routes to the twin",credentialDoor:{path:"/_twin/app-credentials",body:{team:"world",project:"world"},fill:{VERCEL_API_KEY:"token",VERCEL_TOKEN:"token",TEAM_ID_VERCEL:"team_id",PROJECT_ID_VERCEL:"project_id",VERCEL_PROJECT_ID:"project_id",EDGE_CONFIG:"edge_config",EDGE_CONFIG_ID:"edge_config_id"}},serveExport:"createVercelTwinServer"},vgauth:{adoption:{sdks:[],envStems:[]},hosts:[{host:"auth.videogame.ai"}],archetype:"proxy",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["Account"],endpointEnv:{name:"VOLTER_ACCOUNT_URL",note:"Volter Editor managed-account-defaults.ts derives VOLTER_OAUTH_ISSUER_URL and VOLTER_AUTH_URL from this URL."},credentialDoor:{path:"/_twin/configuration",body:{},fill:{}},serveExport:"createVgauthTwinServer"},volteridentity:{adoption:{sdks:["@volter/identity"],envStems:["VOLTER_ISSUER","VOLTER_CLIENT"]},hosts:[{host:"id.volter.ai"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["user","account","oauth_client","organization","member","invitation"],endpointEnv:{name:"VOLTER_ISSUER",note:"A product names its identity service by VOLTER_ISSUER (twin-world apps/platform/src/identity.ts)."},serveExport:"createVolteridentityTwinServer"},webrisk:{adoption:{sdks:["@google-cloud/web-risk"]},hosts:[{host:"webrisk.googleapis.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"raw-tcp",resources:[],endpointEnvNone:"No demanded application configures a Web Risk endpoint; the World routes the declared vendor host.",serveExport:"createWebriskTwinServer"},worldlabs:{adoption:{sdks:[],envStems:["WORLDLABS"]},hosts:[{host:"api.worldlabs.ai"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the editor calls api.worldlabs.ai; the World claims the host",credentialDoor:{path:"/_twin/accounts",body:{},fill:{WORLDLABS_API_KEY:"api_key"}},serveExport:"createWorldlabsTwinServer"},x:{adoption:{pypi:["tweepy"],sdks:["@xdevplatform/xdk","twitter-api-sdk","twitter-api-v2"],scopes:["@xdevplatform/"],envStems:["X","TWITTER"]},hosts:[{host:"api.x.com",pathPattern:"^/2/|^/oauth/(?:request_token|authorize|authenticate|access_token)/?$|^/1\\.1/oauth/invalidate_token(?:\\.json)?/?$|^/_twin/"},{host:"api.twitter.com",pathPattern:"^/2/|^/oauth/(?:request_token|authorize|authenticate|access_token)/?$|^/1\\.1/oauth/invalidate_token(?:\\.json)?/?$|^/_twin/"},{host:"x.com",pathPattern:"^/i/oauth2/authorize/?$|^/_twin/|^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$|^/home/?$|^/i/flow/login/?$|^/$|^/intent/tweet/?$"},{host:"twitter.com",pathPattern:"^/i/oauth2/authorize/?$|^/_twin/|^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$|^/home/?$|^/i/flow/login/?$|^/$|^/intent/tweet/?$"},{host:"www.x.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$|^/home/?$|^/i/flow/login/?$|^/$"},{host:"www.twitter.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$|^/home/?$|^/i/flow/login/?$|^/$"},{host:"mobile.twitter.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$|^/home/?$|^/i/flow/login/?$|^/$"},{host:"mobile.x.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$|^/home/?$|^/i/flow/login/?$|^/$"},{host:"pbs.twimg.com",pathPattern:"^/media/[0-9a-f]{64}\\.(?:jpg|png|gif|webp)$|^/ext_tw_video_thumb/[0-9]{1,19}/pu/img/[0-9a-f]{64}\\.svg$"},{host:"video.twimg.com",pathPattern:"^/ext_tw_video/[0-9]{1,19}/pu/vid/avc1/[0-9]+x[0-9]+/[0-9a-f]{64}\\.mp4$"},{host:"abs.twimg.com",pathPattern:"^/sticky/default_profile_images/default_profile_(?:normal|bigger|200x200|400x400)\\.png$"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resourcesUnreachable:{poll:"The customer applications publish text, photos, videos and Articles; poll creation is exercised separately by the vendor-published Post with poll example.",_refresh_token:"Dub requests tweet.read users.read for handle verification without offline.access, so its grant issues no refresh token. The vendor-backed root exchanges refresh tokens, exercised by the published examples."},resources:["oauth_client","oauth1_app","account","auth_request","post","poll","rate_limit","_oauth1_token","article","like","repost","bookmark","_impressions","_card","_grant","_oauth1_grant","_rate_window","_authorization_code","_access_token","_refresh_token","_oauth1_request_token","_client_secret","_code_challenge","upload"],credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{TWITTER_API_KEY:"consumer_key",TWITTER_API_SECRET:"consumer_secret",TWITTER_ACCESS_TOKEN:"access_token",TWITTER_ACCESS_SECRET:"access_token_secret",TWITTER_CLIENT_ID:"client_id",TWITTER_CLIENT_SECRET:"client_secret"}},serveExport:"createXTwinServer"},xai:{adoption:{sdks:["@ai-sdk/xai"],envStems:["XAI","GROK"]},hosts:[{host:"api.x.ai"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the SDK calls https://api.x.ai/v1 unless given a base URL in code; the World claims the host",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{XAI_API_KEY:"api_key"}},serveExport:"createXaiTwinServer"},youtube:{adoption:{sdks:["@googleapis/youtube"],envStems:["YOUTUBE"]},hosts:[{host:"www.googleapis.com",pathPattern:"^/(upload/|resumable/upload/)?youtube/v3(/|$)"},{host:"youtube.googleapis.com",pathPattern:"^/(upload/|resumable/upload/)?youtube/v3(/|$)|^/_twin/"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["channel","video","liveBroadcast","liveStream","liveChatMessage","commentThread","comment","_upload_session","_live_chat","_comment_ban","_live","_live_segment"],endpointEnvNone:"Google's generated clients take rootUrl in code (googleapis: https://youtube.googleapis.com/); the World routes the declared YouTube paths on both API hosts",credentialDoor:{path:"/_twin/channels",body:{sub:"100000000000000000001",title:"World Channel",handle:"worldchannel"},fill:{YOUTUBE_CHANNEL_ID:"id"}},credentialIssuer:"googleoauth",sidePorts:[{name:"ingest",option:"ingestPort",flag:"--ingest-port",scheme:"rtmp",path:"/live2",note:"YouTube's RTMP ingest (<ingestionAddress>/<streamName>): an encoder publishes a liveStream's video here"}],serveExport:"createYoutubeTwinServer"}},undeclared:[]}});var R=_((X,f)=>{"use strict";function v(e,a){if(["host","suffix","hostPattern"].filter(i=>e[i]!==void 0).length!==1)throw new Error(`inject: ${a} rule ${JSON.stringify(e)} \u2014 exactly one of host | suffix | hostPattern (pack-facts.json is hand-edited or stale)`);let s=e.hostPattern===void 0?null:new RegExp(e.hostPattern),o=e.pathPattern===void 0?null:new RegExp(e.pathPattern);return(i,n)=>(e.host!==void 0?i===e.host:e.suffix!==void 0?i.endsWith(e.suffix):s.test(i))&&(o===null||n===void 0||o.test(n))}function $(e){let a=new Map;for(let s of e||[]){let o=s.key===void 0?"":s.key;a.has(o)||a.set(o,[]),a.get(o).push(s)}let t=[...a.values()].map(s=>({includes:s.filter(o=>o.exclude!==!0).map(o=>v(o,"a pack")),excludes:s.filter(o=>o.exclude===!0).map(o=>v(o,"a pack"))}));return{names:s=>t.some(o=>o.includes.some(i=>i(s))),takes:(s,o)=>t.some(i=>i.includes.some(n=>n(s,o))&&!i.excludes.some(n=>n(s,o)))}}function B(e,a=[]){let t={googlefavicon:r=>r==="www.google.com"||r==="google.com"||r==="t2.gstatic.com",browserassets:r=>r==="cdnjs.cloudflare.com"||r==="www.googletagmanager.com"||r==="www.google-analytics.com"||r==="connect.facebook.net"||r==="snap.licdn.com"||r==="px.ads.linkedin.com"||r==="static.hotjar.com"||r==="fonts.googleapis.com"||r==="fonts.gstatic.com"||r==="api.fontshare.com"||r==="images.subscribe.dev"||r==="www.youtube.com"||r==="www.youtube-nocookie.com"||r==="i.ytimg.com"},s=new Map,o=new Set(Object.keys(t));function i(r,w){for(let d of Object.keys(r)){let E=r[d].hosts;if(!E||E.length===0)continue;for(let c of s.get(d)||[])delete t[c];if(s.delete(d),t[d]&&!(w&&o.has(d)))throw new Error(`inject: vendor "${d}" declares hosts on its pack descriptor AND in the hand VENDOR_HOSTS table \u2014 one home per fact; delete the hand entry.`);let u=new Map;for(let c of E){let h=c.key===void 0?d:c.key;u.has(h)||u.set(h,[]),u.get(h).push(c)}for(let[c,h]of u){if(t[c]&&!(w&&o.has(c)))throw new Error(`inject: key "${c}" (pack ${d}) is declared twice \u2014 on this descriptor and in the hand VENDOR_HOSTS table or another pack's descriptor; a key has one home.`);let T=p=>v(p,`key "${c}" (pack ${d})`),x=h.filter(p=>p.exclude!==!0).map(T),U=h.filter(p=>p.exclude===!0).map(T);t[c]=(p,y)=>x.some(g=>g(p,y))&&!U.some(g=>g(p,y)),s.set(d,[...s.get(d)||[],c])}}}let n=new Set(a);return i(Object.fromEntries(Object.entries(e).filter(([r])=>!n.has(r))),!1),i(Object.fromEntries(Object.entries(e).filter(([r])=>n.has(r))),!0),{hosts:t,addPackHosts:r=>i(r||{},!0)}}function H(e,a,t,s,o={}){for(let n of Object.keys(e))if(t[n]&&e[n](a,s))return{vendor:n,origin:t[n]};let i=String(a||"").toLowerCase();for(let n of Object.keys(o)){if(!t[n])continue;if((typeof o[n]=="function"?o[n]():o[n]).has(i))return{vendor:n,origin:t[n]}}return null}f.exports={createHostTable:B,hostRules:$,resolveTwinHost:H}});var O=_((Z,L)=>{"use strict";var k=R(),P=A().packFacts(),I=k.createHostTable(P.packs,P.installed),l=I.hosts,G=k.hostRules;function W(e){I.addPackHosts(e)}function Y(e){let a=String(e||"").toLowerCase().replace(/\.$/,"");return Object.keys(l).some(t=>l[t](a))}function z(e){let a=String(e||"").toLowerCase().replace(/\.$/,"");return Object.keys(l).filter(t=>l[t](a))}function N(e){return String(e).toUpperCase().replace(/[^A-Z0-9]/g,"_")}function M(e){let a={};for(let t of Object.keys(l)){let s=e[`${N(t)}_TWIN_URL`];s&&(a[t]=s.replace(/\/$/,""))}if(e.TWIN_INJECT)for(let t of String(e.TWIN_INJECT).split(",")){let s=t.indexOf("=");if(s<=0)continue;let o=t.slice(0,s).trim(),i=t.slice(s+1).trim();o&&i&&Object.hasOwn(l,o)&&(a[o]=i.replace(/\/$/,""))}return a}function F(e,a,t,s){return k.resolveTwinHost(l,e,a,t,s)}L.exports={resolveTwinHost:F,VENDOR_HOSTS:l,hostRules:G,addPackHosts:W,isVendorHost:Y,vendorsOfHost:z,twinEnvStem:N,twinOrigins:M}});var A=_((J,D)=>{var S=K("fs"),m;function C(){if(m)return m;let e=b(),a=Object.assign({},e.packs),t=[],s=process.env.VOLTER_WORLD_INSTANCE;if(s)try{let o=JSON.parse(S.readFileSync(s,"utf8")).packFacts||[];for(let i of o)try{let n=JSON.parse(S.readFileSync(i,"utf8")).packs||{};Object.assign(a,n),t.push(...Object.keys(n))}catch{}}catch{}return m=Object.assign({},e,{packs:a,installed:t}),m}function V(e){let a=C(),t={};for(let s of e||[])try{Object.assign(t,JSON.parse(S.readFileSync(s,"utf8")).packs||{})}catch{}return Object.assign(a.packs,t),O().addPackHosts(t),a}D.exports={packFacts:C,extendPackFacts:V}});export{R as a,A as b,O as c};
|
|
2
|
+
import{a as K,b as _}from"./B2VTT7PF.mjs";var b=_((q,j)=>{j.exports={"//":"GENERATED by scripts/pack-facts.ts \u2014 current pack descriptors and explicit world-runtime server backings; no prior-artifact entries are retained.",packs:{"ai-gateway":{adoption:{sdks:["@ai-sdk/gateway"],envStems:["AI_GATEWAY"]},hosts:[{host:"ai-gateway.vercel.sh"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"@ai-sdk/gateway calls https://ai-gateway.vercel.sh/v4/ai and an OpenAI client is given https://ai-gateway.vercel.sh/v1 in code; the World claims the host",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{AI_GATEWAY_API_KEY:"api_key"}},serveExport:"createAiGatewayTwinServer"},ambientcg:{adoption:{sdks:[],envStems:[]},hosts:[{host:"ambientcg.com"},{host:"acg-download.struffelproductions.com"},{host:"acg-media.struffelproductions.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["asset"],endpointEnvNone:"the editor calls ambientcg.com and the urls it answers; the World claims the hosts",serveExport:"createAmbientcgTwinServer"},anthropic:{adoption:{sdks:["@anthropic-ai/sdk","@ai-sdk/anthropic","@anthropic-ai/vertex-sdk","@anthropic-ai/bedrock-sdk","@anthropic-ai/claude-agent-sdk"],scopes:["@anthropic-ai/"],pypi:["anthropic","claude-agent-sdk","claude-code-sdk"],envStems:["ANTHROPIC"]},hosts:[{host:"api.anthropic.com"},{host:"platform.claude.com"},{host:"console.anthropic.com"}],archetype:"generative",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["organization","workspace"],endpointEnv:{name:"ANTHROPIC_BASE_URL",note:"the SDKs' base URL (the TypeScript and Python SDKs and Claude Code read ANTHROPIC_BASE_URL)"},credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{ANTHROPIC_API_KEY:"key"}},serveExport:"createAnthropicTwinServer"},aws:{adoption:{sdks:["@aws-sdk/client-secrets-manager","@aws-sdk/client-s3"],pypi:[],envStems:["AWS"],worldIds:["secretsmanager","s3"]},hosts:[{key:"s3",host:"s3.amazonaws.com"},{key:"secretsmanager",hostPattern:"^secretsmanager(-fips)?\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"s3",suffix:".s3.amazonaws.com"},{key:"s3",hostPattern:"^s3[.-][a-z0-9-]+\\.amazonaws\\.com$"},{key:"s3",hostPattern:"\\.s3[.-][a-z0-9-]+\\.amazonaws\\.com$"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["secret","s3_bucket","s3_object","s3_upload","s3_part"],endpointEnv:{name:"AWS_ENDPOINT_URL",note:"The AWS SDKs read AWS_ENDPOINT_URL as every service's endpoint (https://docs.aws.amazon.com/sdkref/latest/guide/feature-ss-endpoints.html)."},credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{AWS_ACCESS_KEY_ID:"access_key_id",AWS_SECRET_ACCESS_KEY:"secret_access_key",AWS_ACCESS_KEY:"access_key_id",AWS_SECRET_KEY:"secret_access_key"}},serveExport:"createAwsTwinServer"},axiom:{adoption:{sdks:["@axiomhq/js","@axiomhq/logging","@axiomhq/nextjs","@axiomhq/winston","next-axiom"],envStems:["AXIOM"]},hosts:[{host:"api.axiom.co"},{host:"cloud.axiom.co",pathPattern:"^/api/v1/datasets/"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnv:{name:"AXIOM_URL",note:"Optional next-axiom 0.17.0 reads this base URL; all API operations remain gaps."},serveExport:"createAxiomTwinServer"},bitly:{adoption:{sdks:[],envStems:["BITLY","BUFFER_BITLY"]},hosts:[{host:"api-ssl.bitly.com"},{host:"bitly.com",pathPattern:"^/oauth/authorize/?$"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["group","bitlink"],endpointEnvNone:"Dub uses literal vendor URLs and native fetch; the World routes them by host.",credentialDoor:{path:"/_twin/signup",body:{email:"publisher@example.test",password:"throwaway-bitly-password",login:"publisher"},fill:{BITLY_CLIENT_ID:"client_id",BITLY_CLIENT_SECRET:"client_secret",BUFFER_BITLY_API_KEY:"access_token"}},serveExport:"createBitlyTwinServer"},cerebras:{adoption:{sdks:["@ai-sdk/cerebras","@cerebras/cerebras_cloud_sdk"],envStems:["CEREBRAS"]},hosts:[{host:"api.cerebras.ai"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the SDK calls https://api.cerebras.ai/v1 unless given a base URL in code; the World claims the host",serveExport:"createCerebrasTwinServer"},clerk:{adoption:{pypi:["clerk-backend-api"],sdks:["@clerk/backend","@clerk/clerk-sdk-node","@clerk/nextjs","@clerk/fastify","@clerk/express"],scopes:["@clerk/"],envStems:["CLERK"]},hosts:[{host:"api.clerk.com"},{host:"dashboard.clerk.com"},{suffix:".clerk.accounts.dev"},{host:"frontend-api.clerk.dev"},{hostPattern:"^clerk\\.(?:[a-z0-9-]+\\.)+[a-z0-9-]+$"},{host:"img.clerk.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",assets:["vendor/clerk-js/dist"],resources:["invitation","user","session","organization","organization_membership","organization_invitation","organization_role","organization_permission","jwt_template","saml_connection","client","sign_in","sign_up","oauth_application","organization_settings"],credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{CLERK_SECRET_KEY:"secret_key",CLERK_API_KEY:"secret_key",CLERK_PUBLISHABLE_KEY:"publishable_key",NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY:"publishable_key",VITE_CLERK_PUBLISHABLE_KEY:"publishable_key",EXPO_PUBLIC_CLERK_PUBLISHABLE_KEY:"publishable_key",PUBLIC_CLERK_PUBLISHABLE_KEY:"publishable_key",CLERK_JWT_KEY:"jwt_key",CLERK_WEBHOOK_SECRET:"webhook_secret",CLERK_WEBHOOK_SIGNING_SECRET:"webhook_secret"}},serveExport:"createClerkTwinServer"},clickhouse:{adoption:{sdks:["@clickhouse/client","@clickhouse/client-web"],pypi:["clickhouse-driver","clickhouse-connect","infi-clickhouse-orm"],envStems:["CLICKHOUSE"]},hostsNone:"Self-hosted database: its own declared host and allocated listener are supplied by managed infrastructure.",archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["database","table","row"],endpointEnv:{name:"CLICKHOUSE_URL",note:"HTTP base URL read by the documented JavaScript client."},managedService:{kind:"clickhouse",scheme:"http",configurationArg:"--configuration",originalInputs:{version:1,manifestArg:"--original-inputs",rootArg:"--original-root",digestArg:"--original-inputs-sha256",paths:["/etc/clickhouse-server","/docker-entrypoint-initdb.d","/entrypoint.sh"]},note:"One HTTP8123/native9000 process and store; declared operator configuration is installed before listeners."},sidePorts:[{name:"native",option:"nativePort",flag:"--native-port",note:"ClickHouse native TCP protocol, normally9000, beside HTTP8123."}],serveExport:"createClickhouseTwinServer"},cloudflare:{adoption:{pypi:["cloudflare"],sdks:["cloudflare","aws4fetch","react-turnstile","@marsidev/react-turnstile"],envStems:["CLOUDFLARE","TURNSTILE"],tools:[{package:"wrangler",usage:"deployment"}]},hosts:[{host:"api.cloudflare.com"},{host:"dash.cloudflare.com",pathPattern:"^/($|login|profile/api-tokens|_twin/users/|[0-9a-f]{32}/(r2/api-tokens|workers-and-pages))"},{host:"challenges.cloudflare.com",pathPattern:"^/turnstile/v0/"},{suffix:".r2.cloudflarestorage.com"}],hostsClaimed:{door:"/_twin/hosts",note:"R2 custom domains registered to a bucket (public read still requires enabled and active ownership/TLS), and Workers Custom Domains, answered with the Worker static assets."},archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["account","api_token","worker_script","worker_version","worker_deployment","worker_secret","zone","custom_hostname","turnstile_widget","r2_bucket","r2_object","r2_multipart","r2_custom_domain"],endpointEnv:{name:"CLOUDFLARE_API_BASE_URL",templates:{CLOUDFLARE_API_BASE_URL:"${url}/client/v4"},note:"Cloudflare SDK and wrangler API base."},credentialDoor:{path:"/_twin/app-credentials",body:{account:"world"},fill:{CLOUDFLARE_API_TOKEN:"api_token",CLOUDFLARE_API_KEY:"api_token",CLOUDFLARE_ACCOUNT_ID:"account_id",R2_ACCESS_KEY_ID:"r2_access_key_id",R2_SECRET_ACCESS_KEY:"r2_secret_access_key",CLOUDFLARE_ACCESS_KEY:"r2_access_key_id",CLOUDFLARE_SECRET_ACCESS_KEY:"r2_secret_access_key",R2_ENDPOINT:"r2_endpoint"}},serveExport:"createCloudflareTwinServer"},cohere:{adoption:{sdks:["@ai-sdk/cohere","cohere-ai"],pypi:["cohere"],envStems:["CO","COHERE"]},hosts:[{host:"api.cohere.com"},{host:"api.cohere.ai"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnv:{name:"COHERE_API_URL",templates:{COHERE_API_URL:"${url}/v2/rerank"},note:"The pinned LibreChat CohereReranker reads this full request URL; retain its /v2/rerank suffix."},credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{COHERE_API_KEY:"api_key"}},serveExport:"createCohereTwinServer"},currencyapi:{adoption:{sdks:["@everapi/currencyapi-js"],pypi:["currencyapicom"],envStems:["CURRENCYAPI"]},hosts:[{host:"api.currencyapi.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"The currencyapi clients hardcode https://api.currencyapi.com/v3 and read no base-URL env; interception uses the API host.",serveExport:"createCurrencyapiTwinServer"},daily:{adoption:{envStems:["DAILY"]},hosts:[{host:"api.daily.co"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"The Cal.com REST fetcher hardcodes https://api.daily.co/v1 and reads no base-URL env; interception uses the API host.",serveExport:"createDailyTwinServer"},deepgram:{adoption:{sdks:["@deepgram/sdk"],envStems:["DEEPGRAM"]},hosts:[{host:"api.deepgram.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"No scanned application calls Deepgram; the World claims api.deepgram.com",serveExport:"createDeepgramTwinServer"},discord:{adoption:{sdks:["discord.js","@discordjs/rest","@discordjs/core","discord-api-types","passport-discord","@chat-adapter/discord"],envStems:["DISCORD"]},hosts:[{host:"discord.com",pathPattern:"^/(api/|oauth2/)"},{host:"discordapp.com",pathPattern:"^/api/"},{host:"gateway.discord.gg"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["user","application","command","guild","role","member","channel","message","reaction","webhook","invite"],endpointEnvNone:"the apps call discord.com and send people to its authorize page; the World claims the host, `GET /gateway/bot` answers the twin's own socket, and a client that dials the Gateway at gateway.discord.gg reaches the same socket there",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{DISCORD_CLIENT_ID:"client_id",DISCORD_CLIENT_SECRET:"client_secret",DISCORD_BOT_TOKEN:"bot_token",DISCORD_BOT_TOKEN_ID:"bot_token",DISCORD_APPLICATION_ID:"application_id",DISCORD_PUBLIC_KEY:"public_key"}},serveExport:"createDiscordTwinServer"},duckduckgo:{adoption:{sdks:[],envStems:[]},hosts:[{host:"html.duckduckgo.com"},{host:"duckduckgo.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["page"],endpointEnv:{name:"SUPERCODE_WEB_SEARCH_URL",templates:{SUPERCODE_WEB_SEARCH_URL:"${url}/html/"},note:"Harness reads its documented full search endpoint; the World preserves the DuckDuckGo HTML path. Workbench navigation uses host substitution."},serveExport:"createDuckduckgoTwinServer"},e2b:{adoption:{sdks:["e2b","@e2b/code-interpreter"],envStems:["E2B"]},hosts:[{host:"api.e2b.app"},{suffix:".e2b.app"},{host:"api.e2b.dev"},{suffix:".e2b.dev"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["sandbox","template"],endpointEnv:{name:"E2B_API_URL",templates:{E2B_API_URL:"${url}",E2B_SANDBOX_URL:"${url}"},note:"Python e2b 2.45.0 and the JS SDK read E2B_API_URL; the JS SDK reads E2B_SANDBOX_URL and sends sandbox id/port headers; vendor hosts route through the World proxy"},credentialDoor:{path:"/_twin/teams",body:{name:"World team"},fill:{E2B_API_KEY:"api_key"}},serveExport:"createE2bTwinServer"},elevenlabs:{adoption:{sdks:["@elevenlabs/elevenlabs-js","elevenlabs"],envStems:["ELEVENLABS","ELEVENSLABS"]},hosts:[{host:"api.elevenlabs.io"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["voice","agent","conversation","workspace_secret"],endpointEnvNone:"the applications call https://api.elevenlabs.io unless configured with another URL; the World claims the host",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{ELEVENLABS_API_KEY:"api_key",ELEVENSLABS_API_KEY:"api_key"}},serveExport:"createElevenlabsTwinServer"},expo:{adoption:{sdks:["expo-server-sdk"],pypi:["exponent-server-sdk"],envStems:["EXPO_ACCESS"]},hosts:[{host:"exp.host",pathPattern:"^/--/api/v2/push/"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnv:{name:"EXPO_BASE_URL",note:"expo-server-sdk reads its base URL from EXPO_BASE_URL, so its own Undici client reaches the twin"},serveExport:"createExpoTwinServer"},fal:{adoption:{sdks:["@fal-ai/client"],envStems:["FAL"]},hosts:[{host:"fal.run"},{host:"api.fal.ai"}],archetype:"generative",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the customer life calls https://fal.run/fal-ai/<model>; the World claims the hosts",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{FAL_KEY:"api_key"}},serveExport:"createFalTwinServer"},firecrawl:{adoption:{sdks:["@mendable/firecrawl-js"],envStems:["FIRECRAWL"]},hosts:[{host:"api.firecrawl.dev"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"LibreChat defaults to api.firecrawl.dev/v2/scrape; the World claims that host",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{FIRECRAWL_API_KEY:"api_key"}},serveExport:"createFirecrawlTwinServer"},fly:{adoption:{sdks:[],envStems:["FLY"]},hosts:[{host:"api.machines.dev"},{suffix:".fly.dev"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["app","machine","volume"],endpointEnv:{name:"FLY_API_HOSTNAME",note:"Substrate reads the Machines API base from FLY_API_HOSTNAME (fly-provider.ts), as flyctl does"},credentialDoor:{path:"/_twin/tokens",body:{org:"personal"},fill:{FLY_API_TOKEN:"token"}},serveExport:"createFlyTwinServer"},gemini:{adoption:{sdks:["@google/genai","@ai-sdk/google","@google/generative-ai"],envStems:["GEMINI","GOOGLE_GENERATIVE_AI"]},hosts:[{host:"generativelanguage.googleapis.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnv:{name:"GOOGLE_GEMINI_BASE_URL",note:"Google GenAI SDK reads this base URL; other callers retain the routed vendor host."},credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{GEMINI_API_KEY:"api_key",GOOGLE_GENERATIVE_AI_API_KEY:"api_key",GOOGLE_API_KEY:"api_key",GOOGLE_KEY:"api_key"}},serveExport:"createGeminiTwinServer"},github:{adoption:{sdks:["@octokit/rest","@actions/github","@octokit/auth-app","@octokit/auth-oauth-app","@octokit/auth-oauth-device","@octokit/core","@octokit/graphql","@octokit/webhooks","octokit"],scopes:["@octokit/"],pypi:["PyGithub","githubkit"],envStems:["GITHUB","GH","BACKENDGITHUB","INFAPPCONNECTIONGITHUBAPP","INFAPPCONNECTIONGITHUBOAUTH","INFAPPCONNECTIONGITHUBRADARAPP","APPSMITHOAUTH2GITHUB"]},hosts:[{host:"api.github.com"},{host:"uploads.github.com"},{host:"raw.githubusercontent.com"},{host:"token.actions.githubusercontent.com"},{host:"github.com",pathPattern:"^/login|^/session|^/settings/|^/organizations/|^/apps/|^/[^/]+/[^/]+/(?:info/refs|git-upload-pack|git-receive-pack)$|^/[^/]+/[^/]+\\.git/|^/[^/]+/[^/]+/?$|^/[^/]+/[^/]+/(?:issues|pulls?|blob|raw|tree|commits?|compare)(?:/|$)"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["repository","issue","pull","workflow_run","check_run","release","app"],credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{GITHUB_TOKEN:"token",GH_TOKEN:"token",GITHUB_PAT:"token",GITHUB_ACCESS_TOKEN:"token"}},serveExport:"createGithubTwinServer"},googlecalendar:{adoption:{sdks:["@googleapis/calendar"],pypi:[],envStems:["GOOGLECALENDAR"]},hosts:[{host:"www.googleapis.com",pathPattern:"^/(batch/)?calendar/v3(/|$)"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"Google generated clients take rootUrl in code; the World routes the declared Calendar API paths.",serveExport:"createGooglecalendarTwinServer"},googlefonts:{adoption:{sdks:[],envStems:["GOOGLE_FONTS"]},hosts:[{host:"www.googleapis.com",pathPattern:"^/webfonts/v1/webfonts$"},{host:"webfonts.googleapis.com",pathPattern:"^/v1/webfonts$"},{host:"fonts.googleapis.com",pathPattern:"^/css2?$"},{host:"fonts.gstatic.com",pathPattern:"^/(s/|l/font$)"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["webfont","_api_key","_font_catalog","_stylesheet","_font_file"],endpointEnvNone:"Pinned helper hardcodes the vendor API and CSS hosts, then downloads their returned gstatic URLs. Scoped host routing preserves these URLs.",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{GOOGLE_FONTS_API_KEY:"api_key"}},serveExport:"createGooglefontsTwinServer"},googleoauth:{adoption:{sdks:["google-auth-library","@googleapis/oauth2"],envStems:["GOOGLE_CLIENT","GOOGLE_OAUTH"]},hosts:[{host:"accounts.google.com",pathPattern:"^/(o/oauth2/v2/auth(/oauthchooseaccount|/choose)?|o/oauth2/auth|o/oauth2/token|signin/oauth/error|\\.well-known/openid-configuration)/?$"},{host:"accounts.google.com",pathPattern:"^/_twin/"},{host:"oauth2.googleapis.com",pathPattern:"^/(token|oauth2/v4/token|revoke|tokeninfo|device/code)/?$"},{host:"www.googleapis.com",pathPattern:"^/(oauth2/(v1/certs|v3/(certs|userinfo)|v2/userinfo)|userinfo/v2/me)/?$"},{host:"openidconnect.googleapis.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["client","account","access_token","api_key"],endpointEnvNone:"Google's OAuth libraries read no base-URL variable: the endpoints are the discovery document's, claimed by the host rules.",credentialDoor:{path:"/_twin/credentials",body:{client_email:"world@world-project.iam.gserviceaccount.com",client:{redirect_uris:["http://localhost:3000/oauth2callback"],name:"World App"},account:{sub:"100000000000000000001",email:"person@world.example",name:"World Person"},api_key:{name:"API key 1"}},fill:{GOOGLE_APPLICATION_CREDENTIALS:"file:credentials",GOOGLE_CLIENT_ID:"client_id",GOOGLE_CLIENT_SECRET:"client_secret",YOUTUBE_API_KEY:"api_key"}},serveExport:"createGoogleoauthTwinServer"},groq:{adoption:{sdks:["@ai-sdk/groq","groq-sdk"],envStems:["GROQ"]},hosts:[{host:"api.groq.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the SDK calls https://api.groq.com/openai/v1 unless given a base URL in code; the World claims the host",serveExport:"createGroqTwinServer"},hackernews:{adoption:{sdks:[],envStems:["HN","HACKERNEWS"]},hosts:[{host:"hacker-news.firebaseio.com"},{host:"news.ycombinator.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["item","user","_vote","_person","_web_session","_web_session_issue"],endpointEnvNone:"Hacker News publishes no SDK: clients fetch https://hacker-news.firebaseio.com/v0 directly and people use news.ycombinator.com in a browser, both reached by host",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{HN_USERNAME:"acct",HN_PASSWORD:"pw"}},serveExport:"createHackernewsTwinServer"},hubspot:{adoption:{sdks:["@hubspot/api-client"],pypi:["hubspot-api-client"],envStems:["HUBSPOT","HUBSPOTPRIVATEAPP"]},hosts:[{host:"api.hubapi.com"},{host:"app.hubspot.com",demandPathPattern:!1},{host:"api.hsforms.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"The optional integrations address HubSpot hosts; no SDK base-URL environment variable is injected.",serveExport:"createHubspotTwinServer"},huggingface:{adoption:{sdks:["@huggingface/transformers","@huggingface/hub","huggingface_hub"],envStems:["HF_TOKEN","HUGGING_FACE_HUB_TOKEN","HF_ENDPOINT"]},hosts:[{host:"huggingface.co"},{host:"us.aws.cdn.hf.co"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",maxRequestBodySize:2147483648,resources:["repo"],endpointEnvNone:"localrouter's catalog names https://huggingface.co URLs; the World claims the hosts",credentialDoor:{path:"/_twin/users",body:{name:"world"},fill:{HF_TOKEN:"token"}},serveExport:"createHuggingfaceTwinServer"},instagram:{adoption:{sdks:[],envStems:["INSTAGRAM"]},hosts:[{host:"graph.instagram.com"},{host:"api.instagram.com"},{host:"www.instagram.com",pathPattern:"^/oauth/authorize"},{host:"scontent.cdninstagram.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["container","media","comment"],endpointEnvNone:"an app calls graph.instagram.com and api.instagram.com and sends people to www.instagram.com; the World claims the hosts",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{INSTAGRAM_APP_ID:"app_id",INSTAGRAM_APP_SECRET:"app_secret",INSTAGRAM_ACCESS_TOKEN:"access_token",INSTAGRAM_USER_ID:"user_id"}},serveExport:"createInstagramTwinServer"},intercom:{adoption:{sdks:["intercom-client"],envStems:["INTERCOM"]},hosts:[{host:"api.intercom.io"},{host:"app.intercom.com",pathPattern:"^/oauth",demandPathPattern:!1}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"intercom-client takes its base URL in code; the optional integrations address hosts routed by the World.",serveExport:"createIntercomTwinServer"},jira:{adoption:{sdks:["jira.js","jira-client"],envStems:["JIRA","ATLASSIAN"]},hosts:[{host:"auth.atlassian.com"},{host:"api.atlassian.com",pathPattern:"^/(oauth/|ex/jira/)"},{suffix:".atlassian.net"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["project","issue","comment","component"],endpointEnvNone:"The on-call agent uses its site URL; the OAuth flow uses auth.atlassian.com and api.atlassian.com, all claimed by the World",credentialDoor:{path:"/_twin/api-token",body:{site:"acme",email:"agent@acme.example",password:"world-password"},fill:{JIRA_API_TOKEN:"apiToken"}},serveExport:"createJiraTwinServer"},linear:{adoption:{sdks:["@linear/sdk"],envStems:["LINEAR"]},hosts:[{host:"api.linear.app"},{host:"linear.app"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"graphql",resources:["organization","user","team","workflow_state","project","issue","comment","issue_label"],endpointEnvNone:"Linear uses api.linear.app/graphql and linear.app for its workspace and OAuth authorize page; the World claims those hosts",credentialDoor:{path:"/_twin/local-credentials",body:{},fill:{LINEAR_CLIENT_ID:"client_id",LINEAR_CLIENT_SECRET:"client_secret",LINEAR_API_KEY:"api_key"}},serveExport:"createLinearTwinServer"},linkedin:{adoption:{sdks:["linkedin-api-client"],pypi:["linkedin-api-client"],envStems:["LINKEDIN"]},hosts:[{host:"api.linkedin.com",pathPattern:"^/(rest|v2)/|^/_twin/",demandPathPattern:"^/(rest|v2)/"},{host:"www.linkedin.com",pathPattern:"^/$|^/(dms-uploads|dms-mpf-uploads|feed|company|login|uas/login|m/logout|signup/cold-join|signup/api/cors/createAccount|checkpoint/lg/login-submit)(/|$)|^/_twin/",demandPathPattern:"^/(dms-uploads|dms-mpf-uploads)(/|$)"},{host:"linkedin.com",pathPattern:"^/$|^/(dms-uploads|dms-mpf-uploads|feed|company|login|uas/login|m/logout|signup/cold-join|signup/api/cors/createAccount|checkpoint/lg/login-submit)(/|$)|^/_twin/",demandPathPattern:"^/(dms-uploads|dms-mpf-uploads)(/|$)"},{host:"media.licdn.com",pathPattern:"^/dms/image/",demandPathPattern:!1},{host:"dms.licdn.com",pathPattern:"^/playlist/",demandPathPattern:!1}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["post","image","video","organization","member","organization_acl","developer_app","_access_token","_usage","_upload","_person","_web_session"],endpointEnvNone:"LinkedIn's clients (linkedin-api-client, plain fetch) read no base-URL variable; the World claims api.linkedin.com and www.linkedin.com",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{LINKEDIN_ACCESS_TOKEN:"access_token"}},serveExport:"createLinkedinTwinServer"},livekit:{serverBacking:{command:"livekit-server"},adoption:{sdks:["livekit-client","livekit-server-sdk","@livekit/rtc-node","@livekit/react-native","@livekit/react-native-expo-plugin","@livekit/react-native-webrtc"],pypi:["livekit","livekit-agents","livekit-api"],envStems:["LIVEKIT"]},hostsNone:"The World runs the vendor server on its declared endpoint; SDKs read LIVEKIT_URL.",endpointEnv:{name:"LIVEKIT_URL",templates:{LIVEKIT_URL:"ws://${host}:${port}",LIVEKIT_API_KEY:"twin-livekit-key",LIVEKIT_API_SECRET:"twin-livekit-secret-for-the-worlds-own-server"},note:"Credentials and URL are the same ones the World starts its LiveKit server with."},sidePorts:[{name:"rtc-tcp",option:"rtcTcpPort",flag:"--rtc-tcp-port",scheme:"tcp",note:"ICE/TCP media advertised on loopback at this port; the vendor binds all interfaces. Forward beside signaling for a browser on another machine."}]},merge:{adoption:{sdks:[],envStems:["MERGE_GATEWAY","MODEL_GATEWAY"]},hosts:[{host:"api-gateway.merge.dev"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"Open Autonomy reads MODEL_GATEWAY_URL and defaults to api-gateway.merge.dev; the World claims the host",credentialDoor:{path:"/_twin/organizations",body:{},fill:{MODEL_GATEWAY_API_KEY:"api_key",MERGE_GATEWAY_API_KEY:"api_key"}},serveExport:"createMergeTwinServer"},mistral:{adoption:{sdks:["@ai-sdk/mistral","@mistralai/mistralai"],pypi:["mistralai"],envStems:["MISTRAL","OCR"]},hosts:[{host:"api.mistral.ai"}],archetype:"generative",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the SDKs call https://api.mistral.ai/v1 unless given a base URL in code or config; the World claims the host",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{MISTRAL_API_KEY:"api_key"}},serveExport:"createMistralTwinServer"},mongodb:{adoption:{sdks:["mongodb","mongoose"],envStems:["MONGODB","MONGO"]},hosts:[],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"raw-tcp",resources:["collection","index","document"],endpointEnvNone:"Managed infrastructure injects the connection address from the declared mongodb service; it is a TCP endpoint, with no HTTP API host.",managedService:{kind:"mongodb",scheme:"mongodb",note:"MongoDB 7.0 wire: standalone, or a declared single-member handshake without sessions; state in the World tree"},serveExport:"createMongodbTwinServer"},"npm-registry":{adoption:{envStems:["NPM"],tools:[{package:"npm",usage:"build"}]},hosts:[{host:"registry.npmjs.org"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["package","user","org"],endpointEnv:{name:"NPM_CONFIG_REGISTRY",note:"npm and bun read the registry from npm_config_registry (and .npmrc's `registry`)."},credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{NODE_AUTH_TOKEN:"token",NPM_TOKEN:"token"}},serveExport:"createNpmRegistryTwinServer"},openai:{adoption:{pypi:["openai","openai-agents"],sdks:["openai","@ai-sdk/openai"],envStems:["CODEX","OPENAI","APOPENAI","OPENAIMODERATION","REWORKDPLATFORMOPENAI"]},hosts:[{host:"chatgpt.com",pathPattern:"^/backend-api/(codex|wham)(/|$)"},{host:"auth.openai.com",pathPattern:"^/(oauth/(authorize|token|revoke)|api/accounts/deviceauth/(usercode|token)|codex/device)(/|$)"},{host:"api.openai.com"},{host:"platform.openai.com",pathPattern:"^/(settings/proj[-_][^/]+/api-keys|login$)"}],archetype:"generative",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["file","response","chat_completion","assistant","thread","message","run","project","api_key"],credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{OPENAI_API_KEY:"api_key",OPENAI_KEY:"api_key",CODEX_HOME:"directory:codex_home"}},serveExport:"createOpenaiTwinServer"},openrouter:{adoption:{sdks:["@openrouter/sdk","@openrouter/ai-sdk-provider"],envStems:["OPENROUTER"]},hosts:[{host:"openrouter.ai"}],archetype:"generative",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["user"],endpointEnvNone:"the SDKs call https://openrouter.ai/api/v1 unless given a base URL in code; the World claims the host",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{OPENROUTER_API_KEY:"api_key"}},serveExport:"createOpenrouterTwinServer"},perplexity:{adoption:{sdks:["@ai-sdk/perplexity"],envStems:["PERPLEXITY"]},hosts:[{host:"api.perplexity.ai"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the SDK calls https://api.perplexity.ai unless given a base URL in code; the World claims the host",serveExport:"createPerplexityTwinServer"},planetscale:{adoption:{sdks:["@planetscale/database","@prisma/adapter-planetscale"],envStems:["PLANETSCALE"]},hosts:[{suffix:".psdb.cloud"},{host:"api.planetscale.com"},{host:"app.planetscale.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["database","password","service_token","backup","table","row"],endpointEnv:{name:"PLANETSCALE_TWIN_URL",note:"the twin's own URL; applications reach it at <region>.connect.psdb.cloud, which the injector redirects, with the password the credentialDoor issued."},credentialDoor:{path:"/_twin/app-credentials",body:{organization:"world",database:"world"},fill:{PLANETSCALE_DATABASE_URL:"http_url",DATABASE_URL:"side:mysql:native_url"}},prismaAdapter:{adapter:"@prisma/adapter-planetscale",export:"PrismaPlanetScale",urlEnv:"PLANETSCALE_DATABASE_URL"},sidePorts:[{name:"mysql",option:"wirePort",flag:"--wire-port",note:"MySQL's native wire over the same database psdb serves (mysql_native_password, text and prepared statements)"}],serveExport:"createPlanetscaleTwinServer"},polar:{adoption:{sdks:["@polar-sh/sdk"],pypi:["polar-sdk"],scopes:["@polar-sh/"],envStems:["POLAR"]},hosts:[{host:"api.polar.sh"},{host:"sandbox-api.polar.sh"},{host:"buy.polar.sh"},{host:"polar.sh",pathPattern:"^/[^/]+/portal"},{host:"sandbox.polar.sh"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["customer","product","checkout","subscription","order","event","meter","customer_session","webhook_endpoint"],endpointEnvNone:"@polar-sh/sdk reads no base-URL variable: its `server` option picks production or sandbox, both claimed by the host rules.",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{POLAR_ACCESS_TOKEN:"access_token",POLAR_API_KEY:"access_token",POLAR_ORGANIZATION_TOKEN:"access_token"}},serveExport:"createPolarTwinServer"},polyhaven:{adoption:{sdks:[],envStems:[]},hosts:[{host:"api.polyhaven.com"},{host:"dl.polyhaven.org"},{host:"cdn.polyhaven.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["asset"],endpointEnvNone:"the editor calls api.polyhaven.com and the urls it answers; the World claims the hosts",serveExport:"createPolyhavenTwinServer"},posthog:{adoption:{sdks:["posthog-js","posthog-node"],envStems:["POSTHOG"]},hosts:[{host:"us.i.posthog.com"},{host:"eu.i.posthog.com"},{host:"us-assets.i.posthog.com"},{host:"eu-assets.i.posthog.com"},{host:"us.posthog.com"},{host:"eu.posthog.com"},{host:"app.posthog.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"The SDKs accept host options; no base-URL environment variable belongs to the SDK itself.",serveExport:"createPosthogTwinServer"},reddit:{adoption:{sdks:["snoowrap"],pypi:["praw","asyncpraw"],envStems:["REDDIT"]},hosts:[{host:"oauth.reddit.com"},{host:"www.reddit.com",demandPathPattern:"^/api/"},{host:"reddit.com",demandPathPattern:"^/api/"},{host:"old.reddit.com",demandPathPattern:"^/api/"},{host:"reddit-uploaded-media.s3-accelerate.amazonaws.com"},{host:"reddit-uploaded-video.s3-accelerate.amazonaws.com"},{host:"v.redd.it",demandPathPattern:!1},{host:"i.redd.it",demandPathPattern:!1},{host:"preview.redd.it",demandPathPattern:!1},{host:"external-preview.redd.it",demandPathPattern:!1},{host:"b.thumbs.redditmedia.com",demandPathPattern:!1}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resourcesUnreachable:{},resources:["account","subreddit","link","comment","asset","app","_access_token","_token_issue","_client_secret","_rate_window","_vote","_membership","_person","_web_session","_web_session_issue"],endpointEnvNone:"Reddit's clients name oauth.reddit.com and www.reddit.com themselves (the campaign's sender writes them as constants); the World's injector routes those hosts, and no client of the demand reads a base-URL variable",credentialDoor:{path:"/_twin/app-credentials",body:{username:"FamouslyDefault"},fill:{REDDIT_ACCESS_TOKEN:"access_token"}},serveExport:"createRedditTwinServer"},redis:{adoption:{sdks:["ioredis","redis","bullmq"],envStems:["REDIS"]},hosts:[],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"raw-tcp",resources:["key","member","script"],endpointEnvNone:"Managed infrastructure injects REDIS_URL from the declared redis service; it is a TCP endpoint, with no HTTP API host.",managedService:{kind:"redis",scheme:"redis",note:"stock Redis over RESP2 with state in the World tree"},serveExport:"createRedisTwinServer"},resend:{adoption:{pypi:["resend"],sdks:["resend"],envStems:["RESEND","NEXTPRIVATERESEND"]},hosts:[{host:"api.resend.com"},{host:"inbound-cdn.resend.com"},{host:"resend.com",pathPattern:"^/emails(?:/|$)"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["email","domain","received"],credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{RESEND_API_KEY:"token"}},serveExport:"createResendTwinServer"},sentry:{adoption:{sdks:["@sentry/astro","@sentry/browser","@sentry/electron","@sentry/nextjs","@sentry/node","@sentry/nestjs","@sentry/react","@sentry/react-native","@sentry/remix","@sentry/sveltekit","@sentry/vue","@sentry/cli"],pypi:["sentry-sdk"],envStems:["APPSMITHSENTRY","SENTRY"]},hosts:[{host:"sentry.io"},{host:"us.sentry.io"},{host:"de.sentry.io"},{suffix:".ingest.sentry.io"},{suffix:".ingest.us.sentry.io"},{suffix:".ingest.de.sentry.io"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["organization","project","project_key","event","issue","release","monitor","check_in"],endpointEnvNone:"an SDK sends to its DSN's host and sentry-cli to SENTRY_URL (sentry.io by default); the DSN the World issues names the World's ingest host, claimed by the host rules",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{SENTRY_DSN:"dsn",NEXT_PUBLIC_SENTRY_DSN:"dsn",NEXT_PUBLIC_SENTRY_DSN_CLIENT:"dsn",SENTRY_FRONT_DSN:"dsn",SENTRY_DSN_API:"dsn",VITE_SENTRY_DSN:"dsn",EXPO_PUBLIC_SENTRY_DSN:"dsn",SENTRY_AUTH_TOKEN:"auth_token",SENTRY_ORG:"org",SENTRY_ORGANIZATION:"org",SENTRY_PROJECT:"project"}},serveExport:"createSentryTwinServer"},sigstore:{adoption:{sdks:["sigstore","@sigstore/sign"],envStems:["SIGSTORE"]},hosts:[{host:"fulcio.sigstore.dev"},{host:"rekor.sigstore.dev"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"npm and the sigstore library read no address for Fulcio or Rekor: both are fixed hosts, claimed by the host rules.",serveExport:"createSigstoreTwinServer"},slack:{adoption:{pypi:["slack-sdk","slack-bolt","slackclient"],sdks:["@slack/web-api","@slack/bolt","@slack/webhook","@slack/oauth","@chat-adapter/slack"],scopes:["@slack/"],envStems:["SLACK","SLACKBOTUSER"]},hosts:[{host:"app.slack.com"},{host:"slack.com"},{host:"www.slack.com"},{host:"api.slack.com"},{host:"hooks.slack.com",pathPattern:"^/services/"},{host:"files.slack.com",pathPattern:"^/upload/"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"web-api",resources:["team","user","channel","message","file","usergroup","app"],credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{SLACK_BOT_TOKEN:"bot_token",SLACK_TOKEN:"bot_token",SLACK_APP_TOKEN:"app_token",SLACK_SIGNING_SECRET:"signing_secret",SLACK_CLIENT_ID:"client_id",SLACK_CLIENT_SECRET:"client_secret"}},serveExport:"createSlackTwinServer"},smtp:{adoption:{pypi:["aiosmtplib"],sdks:["nodemailer","nodemailer-smtp-transport","emailjs"],envStems:["NEXTPRIVATESMTP"]},hostsNone:"RAW-PROTOCOL pack: SMTP is a line protocol over a raw TCP socket, invisible to the http/fetch injector, and the relay is whatever host the operator names. The World injects SMTP_HOST/SMTP_PORT, EMAIL_SERVER_HOST/EMAIL_SERVER_PORT and EMAIL_SERVER at the twin's listener (world-runtime init.ts).",archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"raw-tcp",resources:["message","relay"],endpointEnvNone:"the relay is named by host and port settings the runtime injects as templates (world-runtime init.ts), not a base URL",sidePorts:[{name:"inspect",option:"inspectPort",flag:"--inspect-port",path:"/_twin/messages",note:"the World's inspect doors: the messages the relay accepted"}],serveExport:"createSmtpTwinServer"},stripe:{adoption:{pypi:["stripe"],sdks:["stripe"],envStems:["STRIPE","NEXTPRIVATESTRIPE"]},hosts:[{host:"api.stripe.com"},{host:"checkout.stripe.com",pathPattern:"^/c/pay/"},{host:"billing.stripe.com",pathPattern:"^/p/session/"},{host:"connect.stripe.com",pathPattern:"^/setup/"},{host:"dashboard.stripe.com",pathPattern:"^/customers(?:/[^/]+)?/?$|^/radar/lists(?:/[^/]+)?/?$|^/test/issuing/balance/?$|^/settings/public/?$"},{host:"verify.stripe.com",pathPattern:"^/start/"},{host:"js.stripe.com",pathPattern:"^/v3/?$|^/(v3|[a-z]+)/stripe\\.js$"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["charge","customer","payment_intent","setup_intent","payment_method","subscription","price","product","invoice","invoiceitem","refund","event"],credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{STRIPE_SECRET_KEY:"secret_key",STRIPE_API_KEY:"secret_key",STRIPE_PRIVATE_KEY:"secret_key",BILLING_STRIPE_API_KEY:"secret_key",STRIPE_PUBLISHABLE_KEY:"publishable_key",NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY:"publishable_key",NEXT_PUBLIC_STRIPE_PUBLIC_KEY:"publishable_key",NEXT_PUBLIC_STRIPE_KEY:"publishable_key",STRIPE_WEBHOOK_SECRET:"webhook_secret",STRIPE_WEBHOOK_SIGNING_SECRET:"webhook_secret",STRIPE_ENDPOINT_SECRET:"webhook_secret",STRIPE_WEBHOOK_SECRET_KEY:"webhook_secret",NEXT_PRIVATE_STRIPE_WEBHOOK_SECRET:"webhook_secret",BILLING_STRIPE_WEBHOOK_SECRET:"webhook_secret",STRIPE_CONNECT_WEBHOOK_SECRET:"connect_webhook_secret",STRIPE_WEBHOOK_SECRET_CONNECT:"connect_webhook_secret",STRIPE_CONNECT_WEBHOOK_SIGNING_SECRET:"connect_webhook_secret"}},serveExport:"createStripeTwinServer"},supabase:{adoption:{pypi:["supabase","gotrue","supabase-auth","postgrest","storage3","supafunc","realtime"],sdks:["@supabase/supabase-js"],scopes:["@supabase/"],envStems:["SUPABASE"],worldIds:["supabasemgmt"]},hosts:[{host:"api.supabase.com"},{suffix:".supabase.co",pathPattern:"^/(rest|storage|auth)/v1(/|$)"}],archetype:"engine-control",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{SUPABASE_DB_URL:"database_url"}},managedDatabase:{kind:"postgres",arg:"--database",note:"the project's database is the World's managed postgres: the database the application's migrations and queries use, whose URL the credential door answers"},serveExport:"createSupabaseTwinServer"},tavily:{adoption:{sdks:["@tavily/core","@langchain/tavily"],pypi:["tavily-python"],envStems:["TAVILY"]},hosts:[{host:"api.tavily.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the clients call https://api.tavily.com; the World claims the host",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{TAVILY_API_KEY:"api_key"}},serveExport:"createTavilyTwinServer"},telegram:{adoption:{sdks:["@chat-adapter/telegram","node-telegram-bot-api","telegraf"],envStems:["TELEGRAM"]},hosts:[{host:"api.telegram.org"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"web-api",resources:["user","chat","chat_member","message","update","file"],endpointEnv:{name:"TELEGRAM_API_BASE_URL",note:"the Chat SDK's Telegram adapter reads it as its API base (@chat-adapter/telegram 4.39.0, dist/index.js:1039); node-telegram-bot-api takes a baseApiUrl option only, and reaches the twin by its host"},credentialDoor:{path:"/_twin/bots",body:{},fill:{TELEGRAM_BOT_TOKEN:"token",TELEGRAM_TOKEN:"token",TELEGRAM_BOT_USERNAME:"username",TELEGRAM_BOT_NAME:"username"}},serveExport:"createTelegramTwinServer"},temporal:{serverBacking:{command:"temporal"},adoption:{sdks:["@temporalio/client","@temporalio/worker","@temporalio/workflow","nestjs-temporal-core"],pypi:["temporalio"],envStems:["TEMPORAL"]},hostsNone:"The World runs the vendor development server at its declared loopback gRPC endpoint.",endpointEnv:{name:"TEMPORAL_ADDRESS",templates:{TEMPORAL_ADDRESS:"${host}:${port}",TEMPORAL_NAMESPACE:"default",TEMPORAL_TLS:"false",TEMPORAL_API_KEY:""},note:"The local development server creates default; no TLS or Cloud API key."}},tiktok:{adoption:{sdks:[],envStems:["TIKTOK"]},hosts:[{host:"business-api.tiktok.com"},{host:"open.tiktokapis.com"},{host:"open-upload.tiktokapis.com"},{host:"upload.us.tiktokapis.com"},{host:"www.tiktok.com",pathPattern:"^/v2/auth/authorize"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["publish","video"],endpointEnvNone:"an app calls open.tiktokapis.com and sends people to www.tiktok.com; the World claims the hosts",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{TIKTOK_CLIENT_ID:"client_key",TIKTOK_CLIENT_SECRET:"client_secret",TIKTOK_BUSINESS_CLIENT_ID:"business_client_id",TIKTOK_BUSINESS_CLIENT_SECRET:"business_client_secret"}},serveExport:"createTiktokTwinServer"},tinybird:{adoption:{pypi:["tinybird-python-sdk","tinybird-cli"],sdks:["@chronark/zod-bird"],scopes:["@chronark/zod-bird"],envStems:["TINYBIRD"]},hosts:[{host:"api.tinybird.co"},{hostPattern:"^api\\.[a-z0-9.-]+\\.tinybird\\.co$"},{host:"cloud.tinybird.co"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["workspace","datasource","pipe","event","token","job","tag"],endpointEnvNone:"Tinybird's clients take the API host as configuration (@chronark/zod-bird's baseUrl, tinybird-cli's --host), defaulting to https://api.tinybird.co, which the World routes by host; no SDK reads a base-URL variable of its own",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{TINYBIRD_API_KEY:"token",TINYBIRD_TOKEN:"token"}},serveExport:"createTinybirdTwinServer"},tremendous:{adoption:{sdks:["tremendous"],envStems:["TREMENDOUS"],pypi:[]},hosts:[{host:"api.tremendous.com"},{host:"testflight.tremendous.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"The demanded caller passes the public file URL directly to fetch; World host routing supplies the endpoint.",serveExport:"createTremendousTwinServer"},tripo:{adoption:{pypi:["tripo3d"],envStems:["TRIPO"]},hosts:[{host:"api.tripo3d.ai"},{host:"api.tripo3d.com"},{host:"openapi.tripo3d.ai",pathPattern:"^/v3(?:/|$)"},{host:"openapi.tripo3d.com",pathPattern:"^/v3(?:/|$)"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the editor calls api.tripo3d.ai; the World claims the host",credentialDoor:{path:"/_twin/accounts",body:{balance:3e3},fill:{TRIPO_API_KEY:"api_key"}},serveExport:"createTripoTwinServer"},tunnel:{adoption:{sdks:["@volter/tunnel"],envStems:["TUNNEL","VOLTERTUNNEL"]},hosts:[{host:"voltertest.xyz"},{suffix:".voltertest.xyz"},{host:"www.voltertest.xyz",exclude:!0},{host:"twins.voltertest.xyz",exclude:!0}],archetype:"proxy",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the relay URL is the credential door's (TUNNEL_SERVER_URL, SUPERCODE_TUNNEL_SERVER_URL), the World claiming voltertest.xyz",credentialDoor:{path:"/_twin/accounts",body:{slug:"world"},fill:{TUNNEL_SECRET:"token",TUNNEL_SERVER_URL:"server",SUPERCODE_TUNNEL_SERVER_URL:"server"}},serveExport:"createTunnelTwinServer"},turbopuffer:{adoption:{sdks:["@turbopuffer/turbopuffer"],pypi:["turbopuffer"],scopes:["@turbopuffer/"],envStems:["TURBOPUFFER"]},hosts:[{hostPattern:"^(?:aws|gcp|azure)-[a-z0-9-]+\\.turbopuffer\\.com$"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnv:{name:"TURBOPUFFER_TWIN_URL",templates:{TURBOPUFFER_BASE_URL:"${url}/{region}"},note:"The pinned SDK requires the region placeholder when a region is supplied; its Node socket client reads TURBOPUFFER_BASE_URL."},serveExport:"createTurbopufferTwinServer"},twitch:{adoption:{sdks:[],envStems:["TWITCH"]},hosts:[{host:"api.twitch.tv",pathPattern:"^/helix/|^/_twin/"},{host:"id.twitch.tv",pathPattern:"^/oauth2/|^/_twin/"},{host:"www.twitch.tv",pathPattern:"^/$|^/login/?$|^/popout/[A-Za-z0-9_]{1,25}/chat/?$|^/[A-Za-z0-9_]{1,25}/?$|^/_twin/"},{host:"twitch.tv",pathPattern:"^/$|^/login/?$|^/popout/[A-Za-z0-9_]{1,25}/chat/?$|^/[A-Za-z0-9_]{1,25}/?$|^/_twin/"},{host:"m.twitch.tv",pathPattern:"^/$|^/login/?$|^/popout/[A-Za-z0-9_]{1,25}/chat/?$|^/[A-Za-z0-9_]{1,25}/?$|^/_twin/"},{host:"dashboard.twitch.tv",pathPattern:"^/u/[A-Za-z0-9_]{1,25}/(?:stream-manager|settings/stream)/?$"},{host:"player.twitch.tv",pathPattern:"^/$"},{host:"irc-ws.chat.twitch.tv"},{host:"usher.ttvnw.net",pathPattern:"^/api/channel/hls/"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["user","channel","stream","chat_message","application","_token","_authorization_code","_client_secret","_stream_key","_live","_live_segment"],endpointEnvNone:"Twitch's clients address api.twitch.tv, id.twitch.tv and irc-ws.chat.twitch.tv by their published URLs; no SDK reads a base-URL variable",credentialDoor:{path:"/_twin/console",body:{login:"worldchannel",password:"world-password",email:"worldchannel@example.com",application:{name:"World App",redirect_uris:["http://localhost:3000"]}},fill:{TWITCH_CLIENT_ID:"client_id",TWITCH_CLIENT_SECRET:"client_secret",TWITCH_CHANNEL:"login"}},sidePorts:[{name:"ingest",option:"ingestPort",flag:"--ingest-port",scheme:"rtmp",path:"/app",note:"Twitch's RTMP ingest (rtmp://<ingest-server>/app/<stream-key>): OBS publishes the channel's broadcast here"}],serveExport:"createTwitchTwinServer"},upstash:{adoption:{sdks:["@upstash/redis","@upstash/ratelimit","@upstash/qstash","@upstash/workflow"],envStems:["UPSTASH","UPSTASH_REDIS","QSTASH","KV_REST_API"]},hosts:[{suffix:".upstash.io"},{suffix:"-vector.upstash.io",exclude:!0},{host:"console.upstash.com"},{host:"api.upstash.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["database","key","script","message","queue","workflow_run"],endpointEnv:{name:"UPSTASH_TWIN_URL",templates:{QSTASH_URL:"${url}",UPSTASH_REDIS_REST_URL:"${url}",KV_REST_API_URL:"${url}"},note:"Redis reads its REST URL; QStash and Workflow read QSTASH_URL. Direct SDK transports use the twin endpoint and issued token; other clients also use host routing."},credentialDoor:{path:"/_twin/app-credentials",body:{owner:"owner@world.test"},fill:{UPSTASH_REDIS_REST_URL:"redis_url",UPSTASH_REDIS_REST_TOKEN:"redis_token",KV_REST_API_URL:"redis_url",KV_REST_API_TOKEN:"redis_token",QSTASH_TOKEN:"qstash_token",QSTASH_CURRENT_SIGNING_KEY:"qstash_current_signing_key",QSTASH_NEXT_SIGNING_KEY:"qstash_next_signing_key"}},serveExport:"createUpstashTwinServer"},vercel:{adoption:{sdks:["@vercel/sdk","@vercel/edge-config"],pypi:["vercel"],envStems:["VERCEL","EDGE_CONFIG"],configFiles:[{file:"vercel.json",usage:"application",when:"crons"}]},hosts:[{host:"api.vercel.com"},{host:"vercel.com"},{host:"edge-config.vercel.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["team","project","project_domain","domain","edge_config","edge_config_item"],endpointEnvNone:"the applications reach api.vercel.com and the Edge Config connection string's host, which the World routes to the twin",credentialDoor:{path:"/_twin/app-credentials",body:{team:"world",project:"world"},fill:{VERCEL_API_KEY:"token",VERCEL_TOKEN:"token",TEAM_ID_VERCEL:"team_id",PROJECT_ID_VERCEL:"project_id",VERCEL_PROJECT_ID:"project_id",EDGE_CONFIG:"edge_config",EDGE_CONFIG_ID:"edge_config_id"}},serveExport:"createVercelTwinServer"},vgauth:{adoption:{sdks:[],envStems:[]},hosts:[{host:"auth.videogame.ai"}],archetype:"proxy",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["Account"],endpointEnv:{name:"VOLTER_ACCOUNT_URL",note:"Volter Editor managed-account-defaults.ts derives VOLTER_OAUTH_ISSUER_URL and VOLTER_AUTH_URL from this URL."},credentialDoor:{path:"/_twin/configuration",body:{},fill:{}},serveExport:"createVgauthTwinServer"},volteridentity:{adoption:{sdks:["@volter/identity"],envStems:["VOLTER_ISSUER","VOLTER_CLIENT"]},hosts:[{host:"id.volter.ai"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["user","account","oauth_client","organization","member","invitation"],endpointEnv:{name:"VOLTER_ISSUER",note:"A product names its identity service by VOLTER_ISSUER (twin-world apps/platform/src/identity.ts)."},serveExport:"createVolteridentityTwinServer"},webrisk:{adoption:{sdks:["@google-cloud/web-risk"]},hosts:[{host:"webrisk.googleapis.com"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"raw-tcp",resources:[],endpointEnvNone:"No demanded application configures a Web Risk endpoint; the World routes the declared vendor host.",serveExport:"createWebriskTwinServer"},worldlabs:{adoption:{sdks:[],envStems:["WORLDLABS"]},hosts:[{host:"api.worldlabs.ai"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the editor calls api.worldlabs.ai; the World claims the host",credentialDoor:{path:"/_twin/accounts",body:{},fill:{WORLDLABS_API_KEY:"api_key"}},serveExport:"createWorldlabsTwinServer"},x:{adoption:{pypi:["tweepy"],sdks:["@xdevplatform/xdk","twitter-api-sdk","twitter-api-v2"],scopes:["@xdevplatform/"],envStems:["X","TWITTER"]},hosts:[{host:"api.x.com",pathPattern:"^/2/|^/oauth/(?:request_token|authorize|authenticate|access_token)/?$|^/1\\.1/oauth/invalidate_token(?:\\.json)?/?$|^/_twin/"},{host:"api.twitter.com",pathPattern:"^/2/|^/oauth/(?:request_token|authorize|authenticate|access_token)/?$|^/1\\.1/oauth/invalidate_token(?:\\.json)?/?$|^/_twin/"},{host:"x.com",pathPattern:"^/i/oauth2/authorize/?$|^/_twin/|^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$|^/home/?$|^/i/flow/login/?$|^/$|^/intent/tweet/?$"},{host:"twitter.com",pathPattern:"^/i/oauth2/authorize/?$|^/_twin/|^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$|^/home/?$|^/i/flow/login/?$|^/$|^/intent/tweet/?$"},{host:"www.x.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$|^/home/?$|^/i/flow/login/?$|^/$"},{host:"www.twitter.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$|^/home/?$|^/i/flow/login/?$|^/$"},{host:"mobile.twitter.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$|^/home/?$|^/i/flow/login/?$|^/$"},{host:"mobile.x.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$|^/home/?$|^/i/flow/login/?$|^/$"},{host:"pbs.twimg.com",pathPattern:"^/media/[0-9a-f]{64}\\.(?:jpg|png|gif|webp)$|^/ext_tw_video_thumb/[0-9]{1,19}/pu/img/[0-9a-f]{64}\\.svg$"},{host:"video.twimg.com",pathPattern:"^/ext_tw_video/[0-9]{1,19}/pu/vid/avc1/[0-9]+x[0-9]+/[0-9a-f]{64}\\.mp4$"},{host:"abs.twimg.com",pathPattern:"^/sticky/default_profile_images/default_profile_(?:normal|bigger|200x200|400x400)\\.png$"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resourcesUnreachable:{poll:"The customer applications publish text, photos, videos and Articles; poll creation is exercised separately by the vendor-published Post with poll example.",_refresh_token:"Dub requests tweet.read users.read for handle verification without offline.access, so its grant issues no refresh token. The vendor-backed root exchanges refresh tokens, exercised by the published examples."},resources:["oauth_client","oauth1_app","account","auth_request","post","poll","rate_limit","_oauth1_token","article","like","repost","bookmark","_impressions","_card","_grant","_oauth1_grant","_rate_window","_authorization_code","_access_token","_refresh_token","_oauth1_request_token","_client_secret","_code_challenge","upload"],credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{TWITTER_API_KEY:"consumer_key",TWITTER_API_SECRET:"consumer_secret",TWITTER_ACCESS_TOKEN:"access_token",TWITTER_ACCESS_SECRET:"access_token_secret",TWITTER_CLIENT_ID:"client_id",TWITTER_CLIENT_SECRET:"client_secret"}},serveExport:"createXTwinServer"},xai:{adoption:{sdks:["@ai-sdk/xai"],envStems:["XAI","GROK"]},hosts:[{host:"api.x.ai"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"the SDK calls https://api.x.ai/v1 unless given a base URL in code; the World claims the host",credentialDoor:{path:"/_twin/app-credentials",body:{},fill:{XAI_API_KEY:"api_key"}},serveExport:"createXaiTwinServer"},youtube:{adoption:{sdks:["@googleapis/youtube"],envStems:["YOUTUBE"]},hosts:[{host:"www.googleapis.com",pathPattern:"^/(upload/|resumable/upload/)?youtube/v3(/|$)"},{host:"youtube.googleapis.com",pathPattern:"^/(upload/|resumable/upload/)?youtube/v3(/|$)|^/_twin/"}],archetype:"crud",protocol:{declared:"3",major:3,standing:"current"},transport:"rest",resources:["channel","video","liveBroadcast","liveStream","liveChatMessage","commentThread","comment","_upload_session","_live_chat","_comment_ban","_live","_live_segment"],endpointEnvNone:"Google's generated clients take rootUrl in code (googleapis: https://youtube.googleapis.com/); the World routes the declared YouTube paths on both API hosts",credentialDoor:{path:"/_twin/channels",body:{sub:"100000000000000000001",title:"World Channel",handle:"worldchannel"},fill:{YOUTUBE_CHANNEL_ID:"id"}},credentialIssuer:"googleoauth",sidePorts:[{name:"ingest",option:"ingestPort",flag:"--ingest-port",scheme:"rtmp",path:"/live2",note:"YouTube's RTMP ingest (<ingestionAddress>/<streamName>): an encoder publishes a liveStream's video here"}],serveExport:"createYoutubeTwinServer"}},undeclared:[]}});var R=_((X,f)=>{"use strict";function v(e,a){if(["host","suffix","hostPattern"].filter(i=>e[i]!==void 0).length!==1)throw new Error(`inject: ${a} rule ${JSON.stringify(e)} \u2014 exactly one of host | suffix | hostPattern (pack-facts.json is hand-edited or stale)`);let s=e.hostPattern===void 0?null:new RegExp(e.hostPattern),o=e.pathPattern===void 0?null:new RegExp(e.pathPattern);return(i,n)=>(e.host!==void 0?i===e.host:e.suffix!==void 0?i.endsWith(e.suffix):s.test(i))&&(o===null||n===void 0||o.test(n))}function $(e){let a=new Map;for(let s of e||[]){let o=s.key===void 0?"":s.key;a.has(o)||a.set(o,[]),a.get(o).push(s)}let t=[...a.values()].map(s=>({includes:s.filter(o=>o.exclude!==!0).map(o=>v(o,"a pack")),excludes:s.filter(o=>o.exclude===!0).map(o=>v(o,"a pack"))}));return{names:s=>t.some(o=>o.includes.some(i=>i(s))),takes:(s,o)=>t.some(i=>i.includes.some(n=>n(s,o))&&!i.excludes.some(n=>n(s,o)))}}function B(e,a=[]){let t={googlefavicon:r=>r==="www.google.com"||r==="google.com"||r==="t2.gstatic.com",browserassets:r=>r==="cdnjs.cloudflare.com"||r==="www.googletagmanager.com"||r==="www.google-analytics.com"||r==="connect.facebook.net"||r==="snap.licdn.com"||r==="px.ads.linkedin.com"||r==="static.hotjar.com"||r==="fonts.googleapis.com"||r==="fonts.gstatic.com"||r==="api.fontshare.com"||r==="images.subscribe.dev"||r==="www.youtube.com"||r==="www.youtube-nocookie.com"||r==="i.ytimg.com"},s=new Map,o=new Set(Object.keys(t));function i(r,w){for(let d of Object.keys(r)){let E=r[d].hosts;if(!E||E.length===0)continue;for(let c of s.get(d)||[])delete t[c];if(s.delete(d),t[d]&&!(w&&o.has(d)))throw new Error(`inject: vendor "${d}" declares hosts on its pack descriptor AND in the hand VENDOR_HOSTS table \u2014 one home per fact; delete the hand entry.`);let u=new Map;for(let c of E){let h=c.key===void 0?d:c.key;u.has(h)||u.set(h,[]),u.get(h).push(c)}for(let[c,h]of u){if(t[c]&&!(w&&o.has(c)))throw new Error(`inject: key "${c}" (pack ${d}) is declared twice \u2014 on this descriptor and in the hand VENDOR_HOSTS table or another pack's descriptor; a key has one home.`);let T=p=>v(p,`key "${c}" (pack ${d})`),x=h.filter(p=>p.exclude!==!0).map(T),U=h.filter(p=>p.exclude===!0).map(T);t[c]=(p,y)=>x.some(g=>g(p,y))&&!U.some(g=>g(p,y)),s.set(d,[...s.get(d)||[],c])}}}let n=new Set(a);return i(Object.fromEntries(Object.entries(e).filter(([r])=>!n.has(r))),!1),i(Object.fromEntries(Object.entries(e).filter(([r])=>n.has(r))),!0),{hosts:t,addPackHosts:r=>i(r||{},!0)}}function H(e,a,t,s,o={}){for(let n of Object.keys(e))if(t[n]&&e[n](a,s))return{vendor:n,origin:t[n]};let i=String(a||"").toLowerCase();for(let n of Object.keys(o)){if(!t[n])continue;if((typeof o[n]=="function"?o[n]():o[n]).has(i))return{vendor:n,origin:t[n]}}return null}f.exports={createHostTable:B,hostRules:$,resolveTwinHost:H}});var O=_((Z,L)=>{"use strict";var k=R(),P=A().packFacts(),I=k.createHostTable(P.packs,P.installed),l=I.hosts,G=k.hostRules;function W(e){I.addPackHosts(e)}function Y(e){let a=String(e||"").toLowerCase().replace(/\.$/,"");return Object.keys(l).some(t=>l[t](a))}function z(e){let a=String(e||"").toLowerCase().replace(/\.$/,"");return Object.keys(l).filter(t=>l[t](a))}function N(e){return String(e).toUpperCase().replace(/[^A-Z0-9]/g,"_")}function M(e){let a={};for(let t of Object.keys(l)){let s=e[`${N(t)}_TWIN_URL`];s&&(a[t]=s.replace(/\/$/,""))}if(e.TWIN_INJECT)for(let t of String(e.TWIN_INJECT).split(",")){let s=t.indexOf("=");if(s<=0)continue;let o=t.slice(0,s).trim(),i=t.slice(s+1).trim();o&&i&&Object.hasOwn(l,o)&&(a[o]=i.replace(/\/$/,""))}return a}function F(e,a,t,s){return k.resolveTwinHost(l,e,a,t,s)}L.exports={resolveTwinHost:F,VENDOR_HOSTS:l,hostRules:G,addPackHosts:W,isVendorHost:Y,vendorsOfHost:z,twinEnvStem:N,twinOrigins:M}});var A=_((J,D)=>{var S=K("fs"),m;function C(){if(m)return m;let e=b(),a=Object.assign({},e.packs),t=[],s=process.env.VOLTER_WORLD_INSTANCE;if(s)try{let o=JSON.parse(S.readFileSync(s,"utf8")).packFacts||[];for(let i of o)try{let n=JSON.parse(S.readFileSync(i,"utf8")).packs||{};Object.assign(a,n),t.push(...Object.keys(n))}catch{}}catch{}return m=Object.assign({},e,{packs:a,installed:t}),m}function V(e){let a=C(),t={};for(let s of e||[])try{Object.assign(t,JSON.parse(S.readFileSync(s,"utf8")).packs||{})}catch{}return Object.assign(a.packs,t),O().addPackHosts(t),a}D.exports={packFacts:C,extendPackFacts:V}});export{R as a,A as b,O as c};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{createRequire as __atReq}from'node:module';const require=__atReq(import.meta.url);
|
|
2
|
-
import{b as N}from"./OYLYKZGD.mjs";var X=N(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.Signature=T.Envelope=void 0;T.Envelope={fromJSON(i){return{payload:H(i.payload)?Buffer.from(M(i.payload)):Buffer.alloc(0),payloadType:H(i.payloadType)?globalThis.String(i.payloadType):"",signatures:globalThis.Array.isArray(i?.signatures)?i.signatures.map(r=>T.Signature.fromJSON(r)):[]}},toJSON(i){let r={};return i.payload.length!==0&&(r.payload=U(i.payload)),i.payloadType!==""&&(r.payloadType=i.payloadType),i.signatures?.length&&(r.signatures=i.signatures.map(n=>T.Signature.toJSON(n))),r}};T.Signature={fromJSON(i){return{sig:H(i.sig)?Buffer.from(M(i.sig)):Buffer.alloc(0),keyid:H(i.keyid)?globalThis.String(i.keyid):""}},toJSON(i){let r={};return i.sig.length!==0&&(r.sig=U(i.sig)),i.keyid!==""&&(r.keyid=i.keyid),r}};function M(i){return Uint8Array.from(globalThis.Buffer.from(i,"base64"))}function U(i){return globalThis.Buffer.from(i).toString("base64")}function H(i){return i!=null}});var F=N(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.Timestamp=void 0;K.Timestamp={fromJSON(i){return{seconds:B(i.seconds)?globalThis.String(i.seconds):"0",nanos:B(i.nanos)?globalThis.Number(i.nanos):0}},toJSON(i){let r={};return i.seconds!=="0"&&(r.seconds=i.seconds),i.nanos!==0&&(r.nanos=Math.round(i.nanos)),r}};function B(i){return i!=null}});var J=N(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.TimeRange=e.X509CertificateChain=e.SubjectAlternativeName=e.X509Certificate=e.DistinguishedName=e.ObjectIdentifierValuePair=e.ObjectIdentifier=e.PublicKeyIdentifier=e.PublicKey=e.RFC3161SignedTimestamp=e.LogId=e.MessageSignature=e.HashOutput=e.SubjectAlternativeNameType=e.PublicKeyDetails=e.HashAlgorithm=void 0;e.hashAlgorithmFromJSON=w;e.hashAlgorithmToJSON=b;e.publicKeyDetailsFromJSON=z;e.publicKeyDetailsToJSON=$;e.subjectAlternativeNameTypeFromJSON=x;e.subjectAlternativeNameTypeToJSON=Y;var ti=F(),d;(function(i){i[i.HASH_ALGORITHM_UNSPECIFIED=0]="HASH_ALGORITHM_UNSPECIFIED",i[i.SHA2_256=1]="SHA2_256",i[i.SHA2_384=2]="SHA2_384",i[i.SHA2_512=3]="SHA2_512",i[i.SHA3_256=4]="SHA3_256",i[i.SHA3_384=5]="SHA3_384"})(d||(e.HashAlgorithm=d={}));function w(i){switch(i){case 0:case"HASH_ALGORITHM_UNSPECIFIED":return d.HASH_ALGORITHM_UNSPECIFIED;case 1:case"SHA2_256":return d.SHA2_256;case 2:case"SHA2_384":return d.SHA2_384;case 3:case"SHA2_512":return d.SHA2_512;case 4:case"SHA3_256":return d.SHA3_256;case 5:case"SHA3_384":return d.SHA3_384;default:throw new globalThis.Error("Unrecognized enum value "+i+" for enum HashAlgorithm")}}function b(i){switch(i){case d.HASH_ALGORITHM_UNSPECIFIED:return"HASH_ALGORITHM_UNSPECIFIED";case d.SHA2_256:return"SHA2_256";case d.SHA2_384:return"SHA2_384";case d.SHA2_512:return"SHA2_512";case d.SHA3_256:return"SHA3_256";case d.SHA3_384:return"SHA3_384";default:throw new globalThis.Error("Unrecognized enum value "+i+" for enum HashAlgorithm")}}var t;(function(i){i[i.PUBLIC_KEY_DETAILS_UNSPECIFIED=0]="PUBLIC_KEY_DETAILS_UNSPECIFIED",i[i.PKCS1_RSA_PKCS1V5=1]="PKCS1_RSA_PKCS1V5",i[i.PKCS1_RSA_PSS=2]="PKCS1_RSA_PSS",i[i.PKIX_RSA_PKCS1V5=3]="PKIX_RSA_PKCS1V5",i[i.PKIX_RSA_PSS=4]="PKIX_RSA_PSS",i[i.PKIX_RSA_PKCS1V15_2048_SHA256=9]="PKIX_RSA_PKCS1V15_2048_SHA256",i[i.PKIX_RSA_PKCS1V15_3072_SHA256=10]="PKIX_RSA_PKCS1V15_3072_SHA256",i[i.PKIX_RSA_PKCS1V15_4096_SHA256=11]="PKIX_RSA_PKCS1V15_4096_SHA256",i[i.PKIX_RSA_PSS_2048_SHA256=16]="PKIX_RSA_PSS_2048_SHA256",i[i.PKIX_RSA_PSS_3072_SHA256=17]="PKIX_RSA_PSS_3072_SHA256",i[i.PKIX_RSA_PSS_4096_SHA256=18]="PKIX_RSA_PSS_4096_SHA256",i[i.PKIX_ECDSA_P256_HMAC_SHA_256=6]="PKIX_ECDSA_P256_HMAC_SHA_256",i[i.PKIX_ECDSA_P256_SHA_256=5]="PKIX_ECDSA_P256_SHA_256",i[i.PKIX_ECDSA_P384_SHA_384=12]="PKIX_ECDSA_P384_SHA_384",i[i.PKIX_ECDSA_P521_SHA_512=13]="PKIX_ECDSA_P521_SHA_512",i[i.PKIX_ED25519=7]="PKIX_ED25519",i[i.PKIX_ED25519_PH=8]="PKIX_ED25519_PH",i[i.PKIX_ECDSA_P384_SHA_256=19]="PKIX_ECDSA_P384_SHA_256",i[i.PKIX_ECDSA_P521_SHA_256=20]="PKIX_ECDSA_P521_SHA_256",i[i.LMS_SHA256=14]="LMS_SHA256",i[i.LMOTS_SHA256=15]="LMOTS_SHA256",i[i.ML_DSA_44=23]="ML_DSA_44",i[i.ML_DSA_65=21]="ML_DSA_65",i[i.ML_DSA_87=22]="ML_DSA_87"})(t||(e.PublicKeyDetails=t={}));function z(i){switch(i){case 0:case"PUBLIC_KEY_DETAILS_UNSPECIFIED":return t.PUBLIC_KEY_DETAILS_UNSPECIFIED;case 1:case"PKCS1_RSA_PKCS1V5":return t.PKCS1_RSA_PKCS1V5;case 2:case"PKCS1_RSA_PSS":return t.PKCS1_RSA_PSS;case 3:case"PKIX_RSA_PKCS1V5":return t.PKIX_RSA_PKCS1V5;case 4:case"PKIX_RSA_PSS":return t.PKIX_RSA_PSS;case 9:case"PKIX_RSA_PKCS1V15_2048_SHA256":return t.PKIX_RSA_PKCS1V15_2048_SHA256;case 10:case"PKIX_RSA_PKCS1V15_3072_SHA256":return t.PKIX_RSA_PKCS1V15_3072_SHA256;case 11:case"PKIX_RSA_PKCS1V15_4096_SHA256":return t.PKIX_RSA_PKCS1V15_4096_SHA256;case 16:case"PKIX_RSA_PSS_2048_SHA256":return t.PKIX_RSA_PSS_2048_SHA256;case 17:case"PKIX_RSA_PSS_3072_SHA256":return t.PKIX_RSA_PSS_3072_SHA256;case 18:case"PKIX_RSA_PSS_4096_SHA256":return t.PKIX_RSA_PSS_4096_SHA256;case 6:case"PKIX_ECDSA_P256_HMAC_SHA_256":return t.PKIX_ECDSA_P256_HMAC_SHA_256;case 5:case"PKIX_ECDSA_P256_SHA_256":return t.PKIX_ECDSA_P256_SHA_256;case 12:case"PKIX_ECDSA_P384_SHA_384":return t.PKIX_ECDSA_P384_SHA_384;case 13:case"PKIX_ECDSA_P521_SHA_512":return t.PKIX_ECDSA_P521_SHA_512;case 7:case"PKIX_ED25519":return t.PKIX_ED25519;case 8:case"PKIX_ED25519_PH":return t.PKIX_ED25519_PH;case 19:case"PKIX_ECDSA_P384_SHA_256":return t.PKIX_ECDSA_P384_SHA_256;case 20:case"PKIX_ECDSA_P521_SHA_256":return t.PKIX_ECDSA_P521_SHA_256;case 14:case"LMS_SHA256":return t.LMS_SHA256;case 15:case"LMOTS_SHA256":return t.LMOTS_SHA256;case 23:case"ML_DSA_44":return t.ML_DSA_44;case 21:case"ML_DSA_65":return t.ML_DSA_65;case 22:case"ML_DSA_87":return t.ML_DSA_87;default:throw new globalThis.Error("Unrecognized enum value "+i+" for enum PublicKeyDetails")}}function $(i){switch(i){case t.PUBLIC_KEY_DETAILS_UNSPECIFIED:return"PUBLIC_KEY_DETAILS_UNSPECIFIED";case t.PKCS1_RSA_PKCS1V5:return"PKCS1_RSA_PKCS1V5";case t.PKCS1_RSA_PSS:return"PKCS1_RSA_PSS";case t.PKIX_RSA_PKCS1V5:return"PKIX_RSA_PKCS1V5";case t.PKIX_RSA_PSS:return"PKIX_RSA_PSS";case t.PKIX_RSA_PKCS1V15_2048_SHA256:return"PKIX_RSA_PKCS1V15_2048_SHA256";case t.PKIX_RSA_PKCS1V15_3072_SHA256:return"PKIX_RSA_PKCS1V15_3072_SHA256";case t.PKIX_RSA_PKCS1V15_4096_SHA256:return"PKIX_RSA_PKCS1V15_4096_SHA256";case t.PKIX_RSA_PSS_2048_SHA256:return"PKIX_RSA_PSS_2048_SHA256";case t.PKIX_RSA_PSS_3072_SHA256:return"PKIX_RSA_PSS_3072_SHA256";case t.PKIX_RSA_PSS_4096_SHA256:return"PKIX_RSA_PSS_4096_SHA256";case t.PKIX_ECDSA_P256_HMAC_SHA_256:return"PKIX_ECDSA_P256_HMAC_SHA_256";case t.PKIX_ECDSA_P256_SHA_256:return"PKIX_ECDSA_P256_SHA_256";case t.PKIX_ECDSA_P384_SHA_384:return"PKIX_ECDSA_P384_SHA_384";case t.PKIX_ECDSA_P521_SHA_512:return"PKIX_ECDSA_P521_SHA_512";case t.PKIX_ED25519:return"PKIX_ED25519";case t.PKIX_ED25519_PH:return"PKIX_ED25519_PH";case t.PKIX_ECDSA_P384_SHA_256:return"PKIX_ECDSA_P384_SHA_256";case t.PKIX_ECDSA_P521_SHA_256:return"PKIX_ECDSA_P521_SHA_256";case t.LMS_SHA256:return"LMS_SHA256";case t.LMOTS_SHA256:return"LMOTS_SHA256";case t.ML_DSA_44:return"ML_DSA_44";case t.ML_DSA_65:return"ML_DSA_65";case t.ML_DSA_87:return"ML_DSA_87";default:throw new globalThis.Error("Unrecognized enum value "+i+" for enum PublicKeyDetails")}}var O;(function(i){i[i.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED=0]="SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED",i[i.EMAIL=1]="EMAIL",i[i.URI=2]="URI",i[i.OTHER_NAME=3]="OTHER_NAME"})(O||(e.SubjectAlternativeNameType=O={}));function x(i){switch(i){case 0:case"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED":return O.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED;case 1:case"EMAIL":return O.EMAIL;case 2:case"URI":return O.URI;case 3:case"OTHER_NAME":return O.OTHER_NAME;default:throw new globalThis.Error("Unrecognized enum value "+i+" for enum SubjectAlternativeNameType")}}function Y(i){switch(i){case O.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED:return"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED";case O.EMAIL:return"EMAIL";case O.URI:return"URI";case O.OTHER_NAME:return"OTHER_NAME";default:throw new globalThis.Error("Unrecognized enum value "+i+" for enum SubjectAlternativeNameType")}}e.HashOutput={fromJSON(i){return{algorithm:s(i.algorithm)?w(i.algorithm):0,digest:s(i.digest)?Buffer.from(m(i.digest)):Buffer.alloc(0)}},toJSON(i){let r={};return i.algorithm!==0&&(r.algorithm=b(i.algorithm)),i.digest.length!==0&&(r.digest=C(i.digest)),r}};e.MessageSignature={fromJSON(i){return{messageDigest:s(i.messageDigest)?e.HashOutput.fromJSON(i.messageDigest):void 0,signature:s(i.signature)?Buffer.from(m(i.signature)):Buffer.alloc(0)}},toJSON(i){let r={};return i.messageDigest!==void 0&&(r.messageDigest=e.HashOutput.toJSON(i.messageDigest)),i.signature.length!==0&&(r.signature=C(i.signature)),r}};e.LogId={fromJSON(i){return{keyId:s(i.keyId)?Buffer.from(m(i.keyId)):Buffer.alloc(0)}},toJSON(i){let r={};return i.keyId.length!==0&&(r.keyId=C(i.keyId)),r}};e.RFC3161SignedTimestamp={fromJSON(i){return{signedTimestamp:s(i.signedTimestamp)?Buffer.from(m(i.signedTimestamp)):Buffer.alloc(0)}},toJSON(i){let r={};return i.signedTimestamp.length!==0&&(r.signedTimestamp=C(i.signedTimestamp)),r}};e.PublicKey={fromJSON(i){return{rawBytes:s(i.rawBytes)?Buffer.from(m(i.rawBytes)):void 0,keyDetails:s(i.keyDetails)?z(i.keyDetails):0,validFor:s(i.validFor)?e.TimeRange.fromJSON(i.validFor):void 0}},toJSON(i){let r={};return i.rawBytes!==void 0&&(r.rawBytes=C(i.rawBytes)),i.keyDetails!==0&&(r.keyDetails=$(i.keyDetails)),i.validFor!==void 0&&(r.validFor=e.TimeRange.toJSON(i.validFor)),r}};e.PublicKeyIdentifier={fromJSON(i){return{hint:s(i.hint)?globalThis.String(i.hint):""}},toJSON(i){let r={};return i.hint!==""&&(r.hint=i.hint),r}};e.ObjectIdentifier={fromJSON(i){return{id:globalThis.Array.isArray(i?.id)?i.id.map(r=>globalThis.Number(r)):[]}},toJSON(i){let r={};return i.id?.length&&(r.id=i.id.map(n=>Math.round(n))),r}};e.ObjectIdentifierValuePair={fromJSON(i){return{oid:s(i.oid)?e.ObjectIdentifier.fromJSON(i.oid):void 0,value:s(i.value)?Buffer.from(m(i.value)):Buffer.alloc(0)}},toJSON(i){let r={};return i.oid!==void 0&&(r.oid=e.ObjectIdentifier.toJSON(i.oid)),i.value.length!==0&&(r.value=C(i.value)),r}};e.DistinguishedName={fromJSON(i){return{organization:s(i.organization)?globalThis.String(i.organization):"",commonName:s(i.commonName)?globalThis.String(i.commonName):""}},toJSON(i){let r={};return i.organization!==""&&(r.organization=i.organization),i.commonName!==""&&(r.commonName=i.commonName),r}};e.X509Certificate={fromJSON(i){return{rawBytes:s(i.rawBytes)?Buffer.from(m(i.rawBytes)):Buffer.alloc(0)}},toJSON(i){let r={};return i.rawBytes.length!==0&&(r.rawBytes=C(i.rawBytes)),r}};e.SubjectAlternativeName={fromJSON(i){return{type:s(i.type)?x(i.type):0,identity:s(i.regexp)?{$case:"regexp",regexp:globalThis.String(i.regexp)}:s(i.value)?{$case:"value",value:globalThis.String(i.value)}:void 0}},toJSON(i){let r={};return i.type!==0&&(r.type=Y(i.type)),i.identity?.$case==="regexp"?r.regexp=i.identity.regexp:i.identity?.$case==="value"&&(r.value=i.identity.value),r}};e.X509CertificateChain={fromJSON(i){return{certificates:globalThis.Array.isArray(i?.certificates)?i.certificates.map(r=>e.X509Certificate.fromJSON(r)):[]}},toJSON(i){let r={};return i.certificates?.length&&(r.certificates=i.certificates.map(n=>e.X509Certificate.toJSON(n))),r}};e.TimeRange={fromJSON(i){return{start:s(i.start)?k(i.start):void 0,end:s(i.end)?k(i.end):void 0}},toJSON(i){let r={};return i.start!==void 0&&(r.start=i.start.toISOString()),i.end!==void 0&&(r.end=i.end.toISOString()),r}};function m(i){return Uint8Array.from(globalThis.Buffer.from(i,"base64"))}function C(i){return globalThis.Buffer.from(i).toString("base64")}function ei(i){let r=(globalThis.Number(i.seconds)||0)*1e3;return r+=(i.nanos||0)/1e6,new globalThis.Date(r)}function k(i){return i instanceof globalThis.Date?i:typeof i=="string"?new globalThis.Date(i):ei(ti.Timestamp.fromJSON(i))}function s(i){return i!=null}});var V=N(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.TransparencyLogEntry=u.InclusionPromise=u.InclusionProof=u.Checkpoint=u.KindVersion=void 0;var q=J();u.KindVersion={fromJSON(i){return{kind:l(i.kind)?globalThis.String(i.kind):"",version:l(i.version)?globalThis.String(i.version):""}},toJSON(i){let r={};return i.kind!==""&&(r.kind=i.kind),i.version!==""&&(r.version=i.version),r}};u.Checkpoint={fromJSON(i){return{envelope:l(i.envelope)?globalThis.String(i.envelope):""}},toJSON(i){let r={};return i.envelope!==""&&(r.envelope=i.envelope),r}};u.InclusionProof={fromJSON(i){return{logIndex:l(i.logIndex)?globalThis.String(i.logIndex):"0",rootHash:l(i.rootHash)?Buffer.from(R(i.rootHash)):Buffer.alloc(0),treeSize:l(i.treeSize)?globalThis.String(i.treeSize):"0",hashes:globalThis.Array.isArray(i?.hashes)?i.hashes.map(r=>Buffer.from(R(r))):[],checkpoint:l(i.checkpoint)?u.Checkpoint.fromJSON(i.checkpoint):void 0}},toJSON(i){let r={};return i.logIndex!=="0"&&(r.logIndex=i.logIndex),i.rootHash.length!==0&&(r.rootHash=v(i.rootHash)),i.treeSize!=="0"&&(r.treeSize=i.treeSize),i.hashes?.length&&(r.hashes=i.hashes.map(n=>v(n))),i.checkpoint!==void 0&&(r.checkpoint=u.Checkpoint.toJSON(i.checkpoint)),r}};u.InclusionPromise={fromJSON(i){return{signedEntryTimestamp:l(i.signedEntryTimestamp)?Buffer.from(R(i.signedEntryTimestamp)):Buffer.alloc(0)}},toJSON(i){let r={};return i.signedEntryTimestamp.length!==0&&(r.signedEntryTimestamp=v(i.signedEntryTimestamp)),r}};u.TransparencyLogEntry={fromJSON(i){return{logIndex:l(i.logIndex)?globalThis.String(i.logIndex):"0",logId:l(i.logId)?q.LogId.fromJSON(i.logId):void 0,kindVersion:l(i.kindVersion)?u.KindVersion.fromJSON(i.kindVersion):void 0,integratedTime:l(i.integratedTime)?globalThis.String(i.integratedTime):"0",inclusionPromise:l(i.inclusionPromise)?u.InclusionPromise.fromJSON(i.inclusionPromise):void 0,inclusionProof:l(i.inclusionProof)?u.InclusionProof.fromJSON(i.inclusionProof):void 0,canonicalizedBody:l(i.canonicalizedBody)?Buffer.from(R(i.canonicalizedBody)):Buffer.alloc(0)}},toJSON(i){let r={};return i.logIndex!=="0"&&(r.logIndex=i.logIndex),i.logId!==void 0&&(r.logId=q.LogId.toJSON(i.logId)),i.kindVersion!==void 0&&(r.kindVersion=u.KindVersion.toJSON(i.kindVersion)),i.integratedTime!=="0"&&(r.integratedTime=i.integratedTime),i.inclusionPromise!==void 0&&(r.inclusionPromise=u.InclusionPromise.toJSON(i.inclusionPromise)),i.inclusionProof!==void 0&&(r.inclusionProof=u.InclusionProof.toJSON(i.inclusionProof)),i.canonicalizedBody.length!==0&&(r.canonicalizedBody=v(i.canonicalizedBody)),r}};function R(i){return Uint8Array.from(globalThis.Buffer.from(i,"base64"))}function v(i){return globalThis.Buffer.from(i).toString("base64")}function l(i){return i!=null}});var D=N(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});c.Bundle=c.VerificationMaterial=c.TimestampVerificationData=void 0;var G=X(),p=J(),Q=V();c.TimestampVerificationData={fromJSON(i){return{rfc3161Timestamps:globalThis.Array.isArray(i?.rfc3161Timestamps)?i.rfc3161Timestamps.map(r=>p.RFC3161SignedTimestamp.fromJSON(r)):[]}},toJSON(i){let r={};return i.rfc3161Timestamps?.length&&(r.rfc3161Timestamps=i.rfc3161Timestamps.map(n=>p.RFC3161SignedTimestamp.toJSON(n))),r}};c.VerificationMaterial={fromJSON(i){return{content:I(i.publicKey)?{$case:"publicKey",publicKey:p.PublicKeyIdentifier.fromJSON(i.publicKey)}:I(i.x509CertificateChain)?{$case:"x509CertificateChain",x509CertificateChain:p.X509CertificateChain.fromJSON(i.x509CertificateChain)}:I(i.certificate)?{$case:"certificate",certificate:p.X509Certificate.fromJSON(i.certificate)}:void 0,tlogEntries:globalThis.Array.isArray(i?.tlogEntries)?i.tlogEntries.map(r=>Q.TransparencyLogEntry.fromJSON(r)):[],timestampVerificationData:I(i.timestampVerificationData)?c.TimestampVerificationData.fromJSON(i.timestampVerificationData):void 0}},toJSON(i){let r={};return i.content?.$case==="publicKey"?r.publicKey=p.PublicKeyIdentifier.toJSON(i.content.publicKey):i.content?.$case==="x509CertificateChain"?r.x509CertificateChain=p.X509CertificateChain.toJSON(i.content.x509CertificateChain):i.content?.$case==="certificate"&&(r.certificate=p.X509Certificate.toJSON(i.content.certificate)),i.tlogEntries?.length&&(r.tlogEntries=i.tlogEntries.map(n=>Q.TransparencyLogEntry.toJSON(n))),i.timestampVerificationData!==void 0&&(r.timestampVerificationData=c.TimestampVerificationData.toJSON(i.timestampVerificationData)),r}};c.Bundle={fromJSON(i){return{mediaType:I(i.mediaType)?globalThis.String(i.mediaType):"",verificationMaterial:I(i.verificationMaterial)?c.VerificationMaterial.fromJSON(i.verificationMaterial):void 0,content:I(i.messageSignature)?{$case:"messageSignature",messageSignature:p.MessageSignature.fromJSON(i.messageSignature)}:I(i.dsseEnvelope)?{$case:"dsseEnvelope",dsseEnvelope:G.Envelope.fromJSON(i.dsseEnvelope)}:void 0}},toJSON(i){let r={};return i.mediaType!==""&&(r.mediaType=i.mediaType),i.verificationMaterial!==void 0&&(r.verificationMaterial=c.VerificationMaterial.toJSON(i.verificationMaterial)),i.content?.$case==="messageSignature"?r.messageSignature=p.MessageSignature.toJSON(i.content.messageSignature):i.content?.$case==="dsseEnvelope"&&(r.dsseEnvelope=G.Envelope.toJSON(i.content.dsseEnvelope)),r}};function I(i){return i!=null}});var L=N(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0});o.ClientTrustConfig=o.ServiceConfiguration=o.Service=o.SigningConfig=o.TrustedRoot=o.CertificateAuthority=o.TransparencyLogInstance=o.ServiceSelector=void 0;o.serviceSelectorFromJSON=W;o.serviceSelectorToJSON=Z;var _=J(),h;(function(i){i[i.SERVICE_SELECTOR_UNDEFINED=0]="SERVICE_SELECTOR_UNDEFINED",i[i.ALL=1]="ALL",i[i.ANY=2]="ANY",i[i.EXACT=3]="EXACT"})(h||(o.ServiceSelector=h={}));function W(i){switch(i){case 0:case"SERVICE_SELECTOR_UNDEFINED":return h.SERVICE_SELECTOR_UNDEFINED;case 1:case"ALL":return h.ALL;case 2:case"ANY":return h.ANY;case 3:case"EXACT":return h.EXACT;default:throw new globalThis.Error("Unrecognized enum value "+i+" for enum ServiceSelector")}}function Z(i){switch(i){case h.SERVICE_SELECTOR_UNDEFINED:return"SERVICE_SELECTOR_UNDEFINED";case h.ALL:return"ALL";case h.ANY:return"ANY";case h.EXACT:return"EXACT";default:throw new globalThis.Error("Unrecognized enum value "+i+" for enum ServiceSelector")}}o.TransparencyLogInstance={fromJSON(i){return{baseUrl:S(i.baseUrl)?globalThis.String(i.baseUrl):"",hashAlgorithm:S(i.hashAlgorithm)?(0,_.hashAlgorithmFromJSON)(i.hashAlgorithm):0,publicKey:S(i.publicKey)?_.PublicKey.fromJSON(i.publicKey):void 0,logId:S(i.logId)?_.LogId.fromJSON(i.logId):void 0,checkpointKeyId:S(i.checkpointKeyId)?_.LogId.fromJSON(i.checkpointKeyId):void 0,operator:S(i.operator)?globalThis.String(i.operator):""}},toJSON(i){let r={};return i.baseUrl!==""&&(r.baseUrl=i.baseUrl),i.hashAlgorithm!==0&&(r.hashAlgorithm=(0,_.hashAlgorithmToJSON)(i.hashAlgorithm)),i.publicKey!==void 0&&(r.publicKey=_.PublicKey.toJSON(i.publicKey)),i.logId!==void 0&&(r.logId=_.LogId.toJSON(i.logId)),i.checkpointKeyId!==void 0&&(r.checkpointKeyId=_.LogId.toJSON(i.checkpointKeyId)),i.operator!==""&&(r.operator=i.operator),r}};o.CertificateAuthority={fromJSON(i){return{subject:S(i.subject)?_.DistinguishedName.fromJSON(i.subject):void 0,uri:S(i.uri)?globalThis.String(i.uri):"",certChain:S(i.certChain)?_.X509CertificateChain.fromJSON(i.certChain):void 0,validFor:S(i.validFor)?_.TimeRange.fromJSON(i.validFor):void 0,operator:S(i.operator)?globalThis.String(i.operator):""}},toJSON(i){let r={};return i.subject!==void 0&&(r.subject=_.DistinguishedName.toJSON(i.subject)),i.uri!==""&&(r.uri=i.uri),i.certChain!==void 0&&(r.certChain=_.X509CertificateChain.toJSON(i.certChain)),i.validFor!==void 0&&(r.validFor=_.TimeRange.toJSON(i.validFor)),i.operator!==""&&(r.operator=i.operator),r}};o.TrustedRoot={fromJSON(i){return{mediaType:S(i.mediaType)?globalThis.String(i.mediaType):"",tlogs:globalThis.Array.isArray(i?.tlogs)?i.tlogs.map(r=>o.TransparencyLogInstance.fromJSON(r)):[],certificateAuthorities:globalThis.Array.isArray(i?.certificateAuthorities)?i.certificateAuthorities.map(r=>o.CertificateAuthority.fromJSON(r)):[],ctlogs:globalThis.Array.isArray(i?.ctlogs)?i.ctlogs.map(r=>o.TransparencyLogInstance.fromJSON(r)):[],timestampAuthorities:globalThis.Array.isArray(i?.timestampAuthorities)?i.timestampAuthorities.map(r=>o.CertificateAuthority.fromJSON(r)):[]}},toJSON(i){let r={};return i.mediaType!==""&&(r.mediaType=i.mediaType),i.tlogs?.length&&(r.tlogs=i.tlogs.map(n=>o.TransparencyLogInstance.toJSON(n))),i.certificateAuthorities?.length&&(r.certificateAuthorities=i.certificateAuthorities.map(n=>o.CertificateAuthority.toJSON(n))),i.ctlogs?.length&&(r.ctlogs=i.ctlogs.map(n=>o.TransparencyLogInstance.toJSON(n))),i.timestampAuthorities?.length&&(r.timestampAuthorities=i.timestampAuthorities.map(n=>o.CertificateAuthority.toJSON(n))),r}};o.SigningConfig={fromJSON(i){return{mediaType:S(i.mediaType)?globalThis.String(i.mediaType):"",caUrls:globalThis.Array.isArray(i?.caUrls)?i.caUrls.map(r=>o.Service.fromJSON(r)):[],oidcUrls:globalThis.Array.isArray(i?.oidcUrls)?i.oidcUrls.map(r=>o.Service.fromJSON(r)):[],rekorTlogUrls:globalThis.Array.isArray(i?.rekorTlogUrls)?i.rekorTlogUrls.map(r=>o.Service.fromJSON(r)):[],rekorTlogConfig:S(i.rekorTlogConfig)?o.ServiceConfiguration.fromJSON(i.rekorTlogConfig):void 0,tsaUrls:globalThis.Array.isArray(i?.tsaUrls)?i.tsaUrls.map(r=>o.Service.fromJSON(r)):[],tsaConfig:S(i.tsaConfig)?o.ServiceConfiguration.fromJSON(i.tsaConfig):void 0}},toJSON(i){let r={};return i.mediaType!==""&&(r.mediaType=i.mediaType),i.caUrls?.length&&(r.caUrls=i.caUrls.map(n=>o.Service.toJSON(n))),i.oidcUrls?.length&&(r.oidcUrls=i.oidcUrls.map(n=>o.Service.toJSON(n))),i.rekorTlogUrls?.length&&(r.rekorTlogUrls=i.rekorTlogUrls.map(n=>o.Service.toJSON(n))),i.rekorTlogConfig!==void 0&&(r.rekorTlogConfig=o.ServiceConfiguration.toJSON(i.rekorTlogConfig)),i.tsaUrls?.length&&(r.tsaUrls=i.tsaUrls.map(n=>o.Service.toJSON(n))),i.tsaConfig!==void 0&&(r.tsaConfig=o.ServiceConfiguration.toJSON(i.tsaConfig)),r}};o.Service={fromJSON(i){return{url:S(i.url)?globalThis.String(i.url):"",majorApiVersion:S(i.majorApiVersion)?globalThis.Number(i.majorApiVersion):0,validFor:S(i.validFor)?_.TimeRange.fromJSON(i.validFor):void 0,operator:S(i.operator)?globalThis.String(i.operator):""}},toJSON(i){let r={};return i.url!==""&&(r.url=i.url),i.majorApiVersion!==0&&(r.majorApiVersion=Math.round(i.majorApiVersion)),i.validFor!==void 0&&(r.validFor=_.TimeRange.toJSON(i.validFor)),i.operator!==""&&(r.operator=i.operator),r}};o.ServiceConfiguration={fromJSON(i){return{selector:S(i.selector)?W(i.selector):0,count:S(i.count)?globalThis.Number(i.count):0}},toJSON(i){let r={};return i.selector!==0&&(r.selector=Z(i.selector)),i.count!==0&&(r.count=Math.round(i.count)),r}};o.ClientTrustConfig={fromJSON(i){return{mediaType:S(i.mediaType)?globalThis.String(i.mediaType):"",trustedRoot:S(i.trustedRoot)?o.TrustedRoot.fromJSON(i.trustedRoot):void 0,signingConfig:S(i.signingConfig)?o.SigningConfig.fromJSON(i.signingConfig):void 0}},toJSON(i){let r={};return i.mediaType!==""&&(r.mediaType=i.mediaType),i.trustedRoot!==void 0&&(r.trustedRoot=o.TrustedRoot.toJSON(i.trustedRoot)),i.signingConfig!==void 0&&(r.signingConfig=o.SigningConfig.toJSON(i.signingConfig)),r}};function S(i){return i!=null}});var ri=N(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});a.Input=a.Artifact=a.ArtifactVerificationOptions_ObserverTimestampOptions=a.ArtifactVerificationOptions_TlogIntegratedTimestampOptions=a.ArtifactVerificationOptions_TimestampAuthorityOptions=a.ArtifactVerificationOptions_CtlogOptions=a.ArtifactVerificationOptions_TlogOptions=a.ArtifactVerificationOptions=a.PublicKeyIdentities=a.CertificateIdentities=a.CertificateIdentity=void 0;var j=D(),g=J(),ii=L();a.CertificateIdentity={fromJSON(i){return{issuer:f(i.issuer)?globalThis.String(i.issuer):"",san:f(i.san)?g.SubjectAlternativeName.fromJSON(i.san):void 0,oids:globalThis.Array.isArray(i?.oids)?i.oids.map(r=>g.ObjectIdentifierValuePair.fromJSON(r)):[]}},toJSON(i){let r={};return i.issuer!==""&&(r.issuer=i.issuer),i.san!==void 0&&(r.san=g.SubjectAlternativeName.toJSON(i.san)),i.oids?.length&&(r.oids=i.oids.map(n=>g.ObjectIdentifierValuePair.toJSON(n))),r}};a.CertificateIdentities={fromJSON(i){return{identities:globalThis.Array.isArray(i?.identities)?i.identities.map(r=>a.CertificateIdentity.fromJSON(r)):[]}},toJSON(i){let r={};return i.identities?.length&&(r.identities=i.identities.map(n=>a.CertificateIdentity.toJSON(n))),r}};a.PublicKeyIdentities={fromJSON(i){return{publicKeys:globalThis.Array.isArray(i?.publicKeys)?i.publicKeys.map(r=>g.PublicKey.fromJSON(r)):[]}},toJSON(i){let r={};return i.publicKeys?.length&&(r.publicKeys=i.publicKeys.map(n=>g.PublicKey.toJSON(n))),r}};a.ArtifactVerificationOptions={fromJSON(i){return{signers:f(i.certificateIdentities)?{$case:"certificateIdentities",certificateIdentities:a.CertificateIdentities.fromJSON(i.certificateIdentities)}:f(i.publicKeys)?{$case:"publicKeys",publicKeys:a.PublicKeyIdentities.fromJSON(i.publicKeys)}:void 0,tlogOptions:f(i.tlogOptions)?a.ArtifactVerificationOptions_TlogOptions.fromJSON(i.tlogOptions):void 0,ctlogOptions:f(i.ctlogOptions)?a.ArtifactVerificationOptions_CtlogOptions.fromJSON(i.ctlogOptions):void 0,tsaOptions:f(i.tsaOptions)?a.ArtifactVerificationOptions_TimestampAuthorityOptions.fromJSON(i.tsaOptions):void 0,integratedTsOptions:f(i.integratedTsOptions)?a.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.fromJSON(i.integratedTsOptions):void 0,observerOptions:f(i.observerOptions)?a.ArtifactVerificationOptions_ObserverTimestampOptions.fromJSON(i.observerOptions):void 0}},toJSON(i){let r={};return i.signers?.$case==="certificateIdentities"?r.certificateIdentities=a.CertificateIdentities.toJSON(i.signers.certificateIdentities):i.signers?.$case==="publicKeys"&&(r.publicKeys=a.PublicKeyIdentities.toJSON(i.signers.publicKeys)),i.tlogOptions!==void 0&&(r.tlogOptions=a.ArtifactVerificationOptions_TlogOptions.toJSON(i.tlogOptions)),i.ctlogOptions!==void 0&&(r.ctlogOptions=a.ArtifactVerificationOptions_CtlogOptions.toJSON(i.ctlogOptions)),i.tsaOptions!==void 0&&(r.tsaOptions=a.ArtifactVerificationOptions_TimestampAuthorityOptions.toJSON(i.tsaOptions)),i.integratedTsOptions!==void 0&&(r.integratedTsOptions=a.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.toJSON(i.integratedTsOptions)),i.observerOptions!==void 0&&(r.observerOptions=a.ArtifactVerificationOptions_ObserverTimestampOptions.toJSON(i.observerOptions)),r}};a.ArtifactVerificationOptions_TlogOptions={fromJSON(i){return{threshold:f(i.threshold)?globalThis.Number(i.threshold):0,performOnlineVerification:f(i.performOnlineVerification)?globalThis.Boolean(i.performOnlineVerification):!1,disable:f(i.disable)?globalThis.Boolean(i.disable):!1}},toJSON(i){let r={};return i.threshold!==0&&(r.threshold=Math.round(i.threshold)),i.performOnlineVerification!==!1&&(r.performOnlineVerification=i.performOnlineVerification),i.disable!==!1&&(r.disable=i.disable),r}};a.ArtifactVerificationOptions_CtlogOptions={fromJSON(i){return{threshold:f(i.threshold)?globalThis.Number(i.threshold):0,disable:f(i.disable)?globalThis.Boolean(i.disable):!1}},toJSON(i){let r={};return i.threshold!==0&&(r.threshold=Math.round(i.threshold)),i.disable!==!1&&(r.disable=i.disable),r}};a.ArtifactVerificationOptions_TimestampAuthorityOptions={fromJSON(i){return{threshold:f(i.threshold)?globalThis.Number(i.threshold):0,disable:f(i.disable)?globalThis.Boolean(i.disable):!1}},toJSON(i){let r={};return i.threshold!==0&&(r.threshold=Math.round(i.threshold)),i.disable!==!1&&(r.disable=i.disable),r}};a.ArtifactVerificationOptions_TlogIntegratedTimestampOptions={fromJSON(i){return{threshold:f(i.threshold)?globalThis.Number(i.threshold):0,disable:f(i.disable)?globalThis.Boolean(i.disable):!1}},toJSON(i){let r={};return i.threshold!==0&&(r.threshold=Math.round(i.threshold)),i.disable!==!1&&(r.disable=i.disable),r}};a.ArtifactVerificationOptions_ObserverTimestampOptions={fromJSON(i){return{threshold:f(i.threshold)?globalThis.Number(i.threshold):0,disable:f(i.disable)?globalThis.Boolean(i.disable):!1}},toJSON(i){let r={};return i.threshold!==0&&(r.threshold=Math.round(i.threshold)),i.disable!==!1&&(r.disable=i.disable),r}};a.Artifact={fromJSON(i){return{data:f(i.artifactUri)?{$case:"artifactUri",artifactUri:globalThis.String(i.artifactUri)}:f(i.artifact)?{$case:"artifact",artifact:Buffer.from(ni(i.artifact))}:f(i.artifactDigest)?{$case:"artifactDigest",artifactDigest:g.HashOutput.fromJSON(i.artifactDigest)}:void 0}},toJSON(i){let r={};return i.data?.$case==="artifactUri"?r.artifactUri=i.data.artifactUri:i.data?.$case==="artifact"?r.artifact=oi(i.data.artifact):i.data?.$case==="artifactDigest"&&(r.artifactDigest=g.HashOutput.toJSON(i.data.artifactDigest)),r}};a.Input={fromJSON(i){return{artifactTrustRoot:f(i.artifactTrustRoot)?ii.TrustedRoot.fromJSON(i.artifactTrustRoot):void 0,artifactVerificationOptions:f(i.artifactVerificationOptions)?a.ArtifactVerificationOptions.fromJSON(i.artifactVerificationOptions):void 0,bundle:f(i.bundle)?j.Bundle.fromJSON(i.bundle):void 0,artifact:f(i.artifact)?a.Artifact.fromJSON(i.artifact):void 0}},toJSON(i){let r={};return i.artifactTrustRoot!==void 0&&(r.artifactTrustRoot=ii.TrustedRoot.toJSON(i.artifactTrustRoot)),i.artifactVerificationOptions!==void 0&&(r.artifactVerificationOptions=a.ArtifactVerificationOptions.toJSON(i.artifactVerificationOptions)),i.bundle!==void 0&&(r.bundle=j.Bundle.toJSON(i.bundle)),i.artifact!==void 0&&(r.artifact=a.Artifact.toJSON(i.artifact)),r}};function ni(i){return Uint8Array.from(globalThis.Buffer.from(i,"base64"))}function oi(i){return globalThis.Buffer.from(i).toString("base64")}function f(i){return i!=null}});var fi=N(A=>{var ai=A&&A.__createBinding||(Object.create?(function(i,r,n,P){P===void 0&&(P=n);var E=Object.getOwnPropertyDescriptor(r,n);(!E||("get"in E?!r.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(i,P,E)}):(function(i,r,n,P){P===void 0&&(P=n),i[P]=r[n]})),y=A&&A.__exportStar||function(i,r){for(var n in i)n!=="default"&&!Object.prototype.hasOwnProperty.call(r,n)&&ai(r,i,n)};Object.defineProperty(A,"__esModule",{value:!0});y(X(),A);y(D(),A);y(J(),A);y(V(),A);y(L(),A);y(ri(),A)});export{X as a,J as b,fi as c};
|
|
2
|
+
import{b as N}from"./B2VTT7PF.mjs";var X=N(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.Signature=T.Envelope=void 0;T.Envelope={fromJSON(i){return{payload:H(i.payload)?Buffer.from(M(i.payload)):Buffer.alloc(0),payloadType:H(i.payloadType)?globalThis.String(i.payloadType):"",signatures:globalThis.Array.isArray(i?.signatures)?i.signatures.map(r=>T.Signature.fromJSON(r)):[]}},toJSON(i){let r={};return i.payload.length!==0&&(r.payload=U(i.payload)),i.payloadType!==""&&(r.payloadType=i.payloadType),i.signatures?.length&&(r.signatures=i.signatures.map(n=>T.Signature.toJSON(n))),r}};T.Signature={fromJSON(i){return{sig:H(i.sig)?Buffer.from(M(i.sig)):Buffer.alloc(0),keyid:H(i.keyid)?globalThis.String(i.keyid):""}},toJSON(i){let r={};return i.sig.length!==0&&(r.sig=U(i.sig)),i.keyid!==""&&(r.keyid=i.keyid),r}};function M(i){return Uint8Array.from(globalThis.Buffer.from(i,"base64"))}function U(i){return globalThis.Buffer.from(i).toString("base64")}function H(i){return i!=null}});var F=N(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.Timestamp=void 0;K.Timestamp={fromJSON(i){return{seconds:B(i.seconds)?globalThis.String(i.seconds):"0",nanos:B(i.nanos)?globalThis.Number(i.nanos):0}},toJSON(i){let r={};return i.seconds!=="0"&&(r.seconds=i.seconds),i.nanos!==0&&(r.nanos=Math.round(i.nanos)),r}};function B(i){return i!=null}});var J=N(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.TimeRange=e.X509CertificateChain=e.SubjectAlternativeName=e.X509Certificate=e.DistinguishedName=e.ObjectIdentifierValuePair=e.ObjectIdentifier=e.PublicKeyIdentifier=e.PublicKey=e.RFC3161SignedTimestamp=e.LogId=e.MessageSignature=e.HashOutput=e.SubjectAlternativeNameType=e.PublicKeyDetails=e.HashAlgorithm=void 0;e.hashAlgorithmFromJSON=w;e.hashAlgorithmToJSON=b;e.publicKeyDetailsFromJSON=z;e.publicKeyDetailsToJSON=$;e.subjectAlternativeNameTypeFromJSON=x;e.subjectAlternativeNameTypeToJSON=Y;var ti=F(),d;(function(i){i[i.HASH_ALGORITHM_UNSPECIFIED=0]="HASH_ALGORITHM_UNSPECIFIED",i[i.SHA2_256=1]="SHA2_256",i[i.SHA2_384=2]="SHA2_384",i[i.SHA2_512=3]="SHA2_512",i[i.SHA3_256=4]="SHA3_256",i[i.SHA3_384=5]="SHA3_384"})(d||(e.HashAlgorithm=d={}));function w(i){switch(i){case 0:case"HASH_ALGORITHM_UNSPECIFIED":return d.HASH_ALGORITHM_UNSPECIFIED;case 1:case"SHA2_256":return d.SHA2_256;case 2:case"SHA2_384":return d.SHA2_384;case 3:case"SHA2_512":return d.SHA2_512;case 4:case"SHA3_256":return d.SHA3_256;case 5:case"SHA3_384":return d.SHA3_384;default:throw new globalThis.Error("Unrecognized enum value "+i+" for enum HashAlgorithm")}}function b(i){switch(i){case d.HASH_ALGORITHM_UNSPECIFIED:return"HASH_ALGORITHM_UNSPECIFIED";case d.SHA2_256:return"SHA2_256";case d.SHA2_384:return"SHA2_384";case d.SHA2_512:return"SHA2_512";case d.SHA3_256:return"SHA3_256";case d.SHA3_384:return"SHA3_384";default:throw new globalThis.Error("Unrecognized enum value "+i+" for enum HashAlgorithm")}}var t;(function(i){i[i.PUBLIC_KEY_DETAILS_UNSPECIFIED=0]="PUBLIC_KEY_DETAILS_UNSPECIFIED",i[i.PKCS1_RSA_PKCS1V5=1]="PKCS1_RSA_PKCS1V5",i[i.PKCS1_RSA_PSS=2]="PKCS1_RSA_PSS",i[i.PKIX_RSA_PKCS1V5=3]="PKIX_RSA_PKCS1V5",i[i.PKIX_RSA_PSS=4]="PKIX_RSA_PSS",i[i.PKIX_RSA_PKCS1V15_2048_SHA256=9]="PKIX_RSA_PKCS1V15_2048_SHA256",i[i.PKIX_RSA_PKCS1V15_3072_SHA256=10]="PKIX_RSA_PKCS1V15_3072_SHA256",i[i.PKIX_RSA_PKCS1V15_4096_SHA256=11]="PKIX_RSA_PKCS1V15_4096_SHA256",i[i.PKIX_RSA_PSS_2048_SHA256=16]="PKIX_RSA_PSS_2048_SHA256",i[i.PKIX_RSA_PSS_3072_SHA256=17]="PKIX_RSA_PSS_3072_SHA256",i[i.PKIX_RSA_PSS_4096_SHA256=18]="PKIX_RSA_PSS_4096_SHA256",i[i.PKIX_ECDSA_P256_HMAC_SHA_256=6]="PKIX_ECDSA_P256_HMAC_SHA_256",i[i.PKIX_ECDSA_P256_SHA_256=5]="PKIX_ECDSA_P256_SHA_256",i[i.PKIX_ECDSA_P384_SHA_384=12]="PKIX_ECDSA_P384_SHA_384",i[i.PKIX_ECDSA_P521_SHA_512=13]="PKIX_ECDSA_P521_SHA_512",i[i.PKIX_ED25519=7]="PKIX_ED25519",i[i.PKIX_ED25519_PH=8]="PKIX_ED25519_PH",i[i.PKIX_ECDSA_P384_SHA_256=19]="PKIX_ECDSA_P384_SHA_256",i[i.PKIX_ECDSA_P521_SHA_256=20]="PKIX_ECDSA_P521_SHA_256",i[i.LMS_SHA256=14]="LMS_SHA256",i[i.LMOTS_SHA256=15]="LMOTS_SHA256",i[i.ML_DSA_44=23]="ML_DSA_44",i[i.ML_DSA_65=21]="ML_DSA_65",i[i.ML_DSA_87=22]="ML_DSA_87"})(t||(e.PublicKeyDetails=t={}));function z(i){switch(i){case 0:case"PUBLIC_KEY_DETAILS_UNSPECIFIED":return t.PUBLIC_KEY_DETAILS_UNSPECIFIED;case 1:case"PKCS1_RSA_PKCS1V5":return t.PKCS1_RSA_PKCS1V5;case 2:case"PKCS1_RSA_PSS":return t.PKCS1_RSA_PSS;case 3:case"PKIX_RSA_PKCS1V5":return t.PKIX_RSA_PKCS1V5;case 4:case"PKIX_RSA_PSS":return t.PKIX_RSA_PSS;case 9:case"PKIX_RSA_PKCS1V15_2048_SHA256":return t.PKIX_RSA_PKCS1V15_2048_SHA256;case 10:case"PKIX_RSA_PKCS1V15_3072_SHA256":return t.PKIX_RSA_PKCS1V15_3072_SHA256;case 11:case"PKIX_RSA_PKCS1V15_4096_SHA256":return t.PKIX_RSA_PKCS1V15_4096_SHA256;case 16:case"PKIX_RSA_PSS_2048_SHA256":return t.PKIX_RSA_PSS_2048_SHA256;case 17:case"PKIX_RSA_PSS_3072_SHA256":return t.PKIX_RSA_PSS_3072_SHA256;case 18:case"PKIX_RSA_PSS_4096_SHA256":return t.PKIX_RSA_PSS_4096_SHA256;case 6:case"PKIX_ECDSA_P256_HMAC_SHA_256":return t.PKIX_ECDSA_P256_HMAC_SHA_256;case 5:case"PKIX_ECDSA_P256_SHA_256":return t.PKIX_ECDSA_P256_SHA_256;case 12:case"PKIX_ECDSA_P384_SHA_384":return t.PKIX_ECDSA_P384_SHA_384;case 13:case"PKIX_ECDSA_P521_SHA_512":return t.PKIX_ECDSA_P521_SHA_512;case 7:case"PKIX_ED25519":return t.PKIX_ED25519;case 8:case"PKIX_ED25519_PH":return t.PKIX_ED25519_PH;case 19:case"PKIX_ECDSA_P384_SHA_256":return t.PKIX_ECDSA_P384_SHA_256;case 20:case"PKIX_ECDSA_P521_SHA_256":return t.PKIX_ECDSA_P521_SHA_256;case 14:case"LMS_SHA256":return t.LMS_SHA256;case 15:case"LMOTS_SHA256":return t.LMOTS_SHA256;case 23:case"ML_DSA_44":return t.ML_DSA_44;case 21:case"ML_DSA_65":return t.ML_DSA_65;case 22:case"ML_DSA_87":return t.ML_DSA_87;default:throw new globalThis.Error("Unrecognized enum value "+i+" for enum PublicKeyDetails")}}function $(i){switch(i){case t.PUBLIC_KEY_DETAILS_UNSPECIFIED:return"PUBLIC_KEY_DETAILS_UNSPECIFIED";case t.PKCS1_RSA_PKCS1V5:return"PKCS1_RSA_PKCS1V5";case t.PKCS1_RSA_PSS:return"PKCS1_RSA_PSS";case t.PKIX_RSA_PKCS1V5:return"PKIX_RSA_PKCS1V5";case t.PKIX_RSA_PSS:return"PKIX_RSA_PSS";case t.PKIX_RSA_PKCS1V15_2048_SHA256:return"PKIX_RSA_PKCS1V15_2048_SHA256";case t.PKIX_RSA_PKCS1V15_3072_SHA256:return"PKIX_RSA_PKCS1V15_3072_SHA256";case t.PKIX_RSA_PKCS1V15_4096_SHA256:return"PKIX_RSA_PKCS1V15_4096_SHA256";case t.PKIX_RSA_PSS_2048_SHA256:return"PKIX_RSA_PSS_2048_SHA256";case t.PKIX_RSA_PSS_3072_SHA256:return"PKIX_RSA_PSS_3072_SHA256";case t.PKIX_RSA_PSS_4096_SHA256:return"PKIX_RSA_PSS_4096_SHA256";case t.PKIX_ECDSA_P256_HMAC_SHA_256:return"PKIX_ECDSA_P256_HMAC_SHA_256";case t.PKIX_ECDSA_P256_SHA_256:return"PKIX_ECDSA_P256_SHA_256";case t.PKIX_ECDSA_P384_SHA_384:return"PKIX_ECDSA_P384_SHA_384";case t.PKIX_ECDSA_P521_SHA_512:return"PKIX_ECDSA_P521_SHA_512";case t.PKIX_ED25519:return"PKIX_ED25519";case t.PKIX_ED25519_PH:return"PKIX_ED25519_PH";case t.PKIX_ECDSA_P384_SHA_256:return"PKIX_ECDSA_P384_SHA_256";case t.PKIX_ECDSA_P521_SHA_256:return"PKIX_ECDSA_P521_SHA_256";case t.LMS_SHA256:return"LMS_SHA256";case t.LMOTS_SHA256:return"LMOTS_SHA256";case t.ML_DSA_44:return"ML_DSA_44";case t.ML_DSA_65:return"ML_DSA_65";case t.ML_DSA_87:return"ML_DSA_87";default:throw new globalThis.Error("Unrecognized enum value "+i+" for enum PublicKeyDetails")}}var O;(function(i){i[i.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED=0]="SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED",i[i.EMAIL=1]="EMAIL",i[i.URI=2]="URI",i[i.OTHER_NAME=3]="OTHER_NAME"})(O||(e.SubjectAlternativeNameType=O={}));function x(i){switch(i){case 0:case"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED":return O.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED;case 1:case"EMAIL":return O.EMAIL;case 2:case"URI":return O.URI;case 3:case"OTHER_NAME":return O.OTHER_NAME;default:throw new globalThis.Error("Unrecognized enum value "+i+" for enum SubjectAlternativeNameType")}}function Y(i){switch(i){case O.SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED:return"SUBJECT_ALTERNATIVE_NAME_TYPE_UNSPECIFIED";case O.EMAIL:return"EMAIL";case O.URI:return"URI";case O.OTHER_NAME:return"OTHER_NAME";default:throw new globalThis.Error("Unrecognized enum value "+i+" for enum SubjectAlternativeNameType")}}e.HashOutput={fromJSON(i){return{algorithm:s(i.algorithm)?w(i.algorithm):0,digest:s(i.digest)?Buffer.from(m(i.digest)):Buffer.alloc(0)}},toJSON(i){let r={};return i.algorithm!==0&&(r.algorithm=b(i.algorithm)),i.digest.length!==0&&(r.digest=C(i.digest)),r}};e.MessageSignature={fromJSON(i){return{messageDigest:s(i.messageDigest)?e.HashOutput.fromJSON(i.messageDigest):void 0,signature:s(i.signature)?Buffer.from(m(i.signature)):Buffer.alloc(0)}},toJSON(i){let r={};return i.messageDigest!==void 0&&(r.messageDigest=e.HashOutput.toJSON(i.messageDigest)),i.signature.length!==0&&(r.signature=C(i.signature)),r}};e.LogId={fromJSON(i){return{keyId:s(i.keyId)?Buffer.from(m(i.keyId)):Buffer.alloc(0)}},toJSON(i){let r={};return i.keyId.length!==0&&(r.keyId=C(i.keyId)),r}};e.RFC3161SignedTimestamp={fromJSON(i){return{signedTimestamp:s(i.signedTimestamp)?Buffer.from(m(i.signedTimestamp)):Buffer.alloc(0)}},toJSON(i){let r={};return i.signedTimestamp.length!==0&&(r.signedTimestamp=C(i.signedTimestamp)),r}};e.PublicKey={fromJSON(i){return{rawBytes:s(i.rawBytes)?Buffer.from(m(i.rawBytes)):void 0,keyDetails:s(i.keyDetails)?z(i.keyDetails):0,validFor:s(i.validFor)?e.TimeRange.fromJSON(i.validFor):void 0}},toJSON(i){let r={};return i.rawBytes!==void 0&&(r.rawBytes=C(i.rawBytes)),i.keyDetails!==0&&(r.keyDetails=$(i.keyDetails)),i.validFor!==void 0&&(r.validFor=e.TimeRange.toJSON(i.validFor)),r}};e.PublicKeyIdentifier={fromJSON(i){return{hint:s(i.hint)?globalThis.String(i.hint):""}},toJSON(i){let r={};return i.hint!==""&&(r.hint=i.hint),r}};e.ObjectIdentifier={fromJSON(i){return{id:globalThis.Array.isArray(i?.id)?i.id.map(r=>globalThis.Number(r)):[]}},toJSON(i){let r={};return i.id?.length&&(r.id=i.id.map(n=>Math.round(n))),r}};e.ObjectIdentifierValuePair={fromJSON(i){return{oid:s(i.oid)?e.ObjectIdentifier.fromJSON(i.oid):void 0,value:s(i.value)?Buffer.from(m(i.value)):Buffer.alloc(0)}},toJSON(i){let r={};return i.oid!==void 0&&(r.oid=e.ObjectIdentifier.toJSON(i.oid)),i.value.length!==0&&(r.value=C(i.value)),r}};e.DistinguishedName={fromJSON(i){return{organization:s(i.organization)?globalThis.String(i.organization):"",commonName:s(i.commonName)?globalThis.String(i.commonName):""}},toJSON(i){let r={};return i.organization!==""&&(r.organization=i.organization),i.commonName!==""&&(r.commonName=i.commonName),r}};e.X509Certificate={fromJSON(i){return{rawBytes:s(i.rawBytes)?Buffer.from(m(i.rawBytes)):Buffer.alloc(0)}},toJSON(i){let r={};return i.rawBytes.length!==0&&(r.rawBytes=C(i.rawBytes)),r}};e.SubjectAlternativeName={fromJSON(i){return{type:s(i.type)?x(i.type):0,identity:s(i.regexp)?{$case:"regexp",regexp:globalThis.String(i.regexp)}:s(i.value)?{$case:"value",value:globalThis.String(i.value)}:void 0}},toJSON(i){let r={};return i.type!==0&&(r.type=Y(i.type)),i.identity?.$case==="regexp"?r.regexp=i.identity.regexp:i.identity?.$case==="value"&&(r.value=i.identity.value),r}};e.X509CertificateChain={fromJSON(i){return{certificates:globalThis.Array.isArray(i?.certificates)?i.certificates.map(r=>e.X509Certificate.fromJSON(r)):[]}},toJSON(i){let r={};return i.certificates?.length&&(r.certificates=i.certificates.map(n=>e.X509Certificate.toJSON(n))),r}};e.TimeRange={fromJSON(i){return{start:s(i.start)?k(i.start):void 0,end:s(i.end)?k(i.end):void 0}},toJSON(i){let r={};return i.start!==void 0&&(r.start=i.start.toISOString()),i.end!==void 0&&(r.end=i.end.toISOString()),r}};function m(i){return Uint8Array.from(globalThis.Buffer.from(i,"base64"))}function C(i){return globalThis.Buffer.from(i).toString("base64")}function ei(i){let r=(globalThis.Number(i.seconds)||0)*1e3;return r+=(i.nanos||0)/1e6,new globalThis.Date(r)}function k(i){return i instanceof globalThis.Date?i:typeof i=="string"?new globalThis.Date(i):ei(ti.Timestamp.fromJSON(i))}function s(i){return i!=null}});var V=N(u=>{"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.TransparencyLogEntry=u.InclusionPromise=u.InclusionProof=u.Checkpoint=u.KindVersion=void 0;var q=J();u.KindVersion={fromJSON(i){return{kind:l(i.kind)?globalThis.String(i.kind):"",version:l(i.version)?globalThis.String(i.version):""}},toJSON(i){let r={};return i.kind!==""&&(r.kind=i.kind),i.version!==""&&(r.version=i.version),r}};u.Checkpoint={fromJSON(i){return{envelope:l(i.envelope)?globalThis.String(i.envelope):""}},toJSON(i){let r={};return i.envelope!==""&&(r.envelope=i.envelope),r}};u.InclusionProof={fromJSON(i){return{logIndex:l(i.logIndex)?globalThis.String(i.logIndex):"0",rootHash:l(i.rootHash)?Buffer.from(R(i.rootHash)):Buffer.alloc(0),treeSize:l(i.treeSize)?globalThis.String(i.treeSize):"0",hashes:globalThis.Array.isArray(i?.hashes)?i.hashes.map(r=>Buffer.from(R(r))):[],checkpoint:l(i.checkpoint)?u.Checkpoint.fromJSON(i.checkpoint):void 0}},toJSON(i){let r={};return i.logIndex!=="0"&&(r.logIndex=i.logIndex),i.rootHash.length!==0&&(r.rootHash=v(i.rootHash)),i.treeSize!=="0"&&(r.treeSize=i.treeSize),i.hashes?.length&&(r.hashes=i.hashes.map(n=>v(n))),i.checkpoint!==void 0&&(r.checkpoint=u.Checkpoint.toJSON(i.checkpoint)),r}};u.InclusionPromise={fromJSON(i){return{signedEntryTimestamp:l(i.signedEntryTimestamp)?Buffer.from(R(i.signedEntryTimestamp)):Buffer.alloc(0)}},toJSON(i){let r={};return i.signedEntryTimestamp.length!==0&&(r.signedEntryTimestamp=v(i.signedEntryTimestamp)),r}};u.TransparencyLogEntry={fromJSON(i){return{logIndex:l(i.logIndex)?globalThis.String(i.logIndex):"0",logId:l(i.logId)?q.LogId.fromJSON(i.logId):void 0,kindVersion:l(i.kindVersion)?u.KindVersion.fromJSON(i.kindVersion):void 0,integratedTime:l(i.integratedTime)?globalThis.String(i.integratedTime):"0",inclusionPromise:l(i.inclusionPromise)?u.InclusionPromise.fromJSON(i.inclusionPromise):void 0,inclusionProof:l(i.inclusionProof)?u.InclusionProof.fromJSON(i.inclusionProof):void 0,canonicalizedBody:l(i.canonicalizedBody)?Buffer.from(R(i.canonicalizedBody)):Buffer.alloc(0)}},toJSON(i){let r={};return i.logIndex!=="0"&&(r.logIndex=i.logIndex),i.logId!==void 0&&(r.logId=q.LogId.toJSON(i.logId)),i.kindVersion!==void 0&&(r.kindVersion=u.KindVersion.toJSON(i.kindVersion)),i.integratedTime!=="0"&&(r.integratedTime=i.integratedTime),i.inclusionPromise!==void 0&&(r.inclusionPromise=u.InclusionPromise.toJSON(i.inclusionPromise)),i.inclusionProof!==void 0&&(r.inclusionProof=u.InclusionProof.toJSON(i.inclusionProof)),i.canonicalizedBody.length!==0&&(r.canonicalizedBody=v(i.canonicalizedBody)),r}};function R(i){return Uint8Array.from(globalThis.Buffer.from(i,"base64"))}function v(i){return globalThis.Buffer.from(i).toString("base64")}function l(i){return i!=null}});var D=N(c=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});c.Bundle=c.VerificationMaterial=c.TimestampVerificationData=void 0;var G=X(),p=J(),Q=V();c.TimestampVerificationData={fromJSON(i){return{rfc3161Timestamps:globalThis.Array.isArray(i?.rfc3161Timestamps)?i.rfc3161Timestamps.map(r=>p.RFC3161SignedTimestamp.fromJSON(r)):[]}},toJSON(i){let r={};return i.rfc3161Timestamps?.length&&(r.rfc3161Timestamps=i.rfc3161Timestamps.map(n=>p.RFC3161SignedTimestamp.toJSON(n))),r}};c.VerificationMaterial={fromJSON(i){return{content:I(i.publicKey)?{$case:"publicKey",publicKey:p.PublicKeyIdentifier.fromJSON(i.publicKey)}:I(i.x509CertificateChain)?{$case:"x509CertificateChain",x509CertificateChain:p.X509CertificateChain.fromJSON(i.x509CertificateChain)}:I(i.certificate)?{$case:"certificate",certificate:p.X509Certificate.fromJSON(i.certificate)}:void 0,tlogEntries:globalThis.Array.isArray(i?.tlogEntries)?i.tlogEntries.map(r=>Q.TransparencyLogEntry.fromJSON(r)):[],timestampVerificationData:I(i.timestampVerificationData)?c.TimestampVerificationData.fromJSON(i.timestampVerificationData):void 0}},toJSON(i){let r={};return i.content?.$case==="publicKey"?r.publicKey=p.PublicKeyIdentifier.toJSON(i.content.publicKey):i.content?.$case==="x509CertificateChain"?r.x509CertificateChain=p.X509CertificateChain.toJSON(i.content.x509CertificateChain):i.content?.$case==="certificate"&&(r.certificate=p.X509Certificate.toJSON(i.content.certificate)),i.tlogEntries?.length&&(r.tlogEntries=i.tlogEntries.map(n=>Q.TransparencyLogEntry.toJSON(n))),i.timestampVerificationData!==void 0&&(r.timestampVerificationData=c.TimestampVerificationData.toJSON(i.timestampVerificationData)),r}};c.Bundle={fromJSON(i){return{mediaType:I(i.mediaType)?globalThis.String(i.mediaType):"",verificationMaterial:I(i.verificationMaterial)?c.VerificationMaterial.fromJSON(i.verificationMaterial):void 0,content:I(i.messageSignature)?{$case:"messageSignature",messageSignature:p.MessageSignature.fromJSON(i.messageSignature)}:I(i.dsseEnvelope)?{$case:"dsseEnvelope",dsseEnvelope:G.Envelope.fromJSON(i.dsseEnvelope)}:void 0}},toJSON(i){let r={};return i.mediaType!==""&&(r.mediaType=i.mediaType),i.verificationMaterial!==void 0&&(r.verificationMaterial=c.VerificationMaterial.toJSON(i.verificationMaterial)),i.content?.$case==="messageSignature"?r.messageSignature=p.MessageSignature.toJSON(i.content.messageSignature):i.content?.$case==="dsseEnvelope"&&(r.dsseEnvelope=G.Envelope.toJSON(i.content.dsseEnvelope)),r}};function I(i){return i!=null}});var L=N(o=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0});o.ClientTrustConfig=o.ServiceConfiguration=o.Service=o.SigningConfig=o.TrustedRoot=o.CertificateAuthority=o.TransparencyLogInstance=o.ServiceSelector=void 0;o.serviceSelectorFromJSON=W;o.serviceSelectorToJSON=Z;var _=J(),h;(function(i){i[i.SERVICE_SELECTOR_UNDEFINED=0]="SERVICE_SELECTOR_UNDEFINED",i[i.ALL=1]="ALL",i[i.ANY=2]="ANY",i[i.EXACT=3]="EXACT"})(h||(o.ServiceSelector=h={}));function W(i){switch(i){case 0:case"SERVICE_SELECTOR_UNDEFINED":return h.SERVICE_SELECTOR_UNDEFINED;case 1:case"ALL":return h.ALL;case 2:case"ANY":return h.ANY;case 3:case"EXACT":return h.EXACT;default:throw new globalThis.Error("Unrecognized enum value "+i+" for enum ServiceSelector")}}function Z(i){switch(i){case h.SERVICE_SELECTOR_UNDEFINED:return"SERVICE_SELECTOR_UNDEFINED";case h.ALL:return"ALL";case h.ANY:return"ANY";case h.EXACT:return"EXACT";default:throw new globalThis.Error("Unrecognized enum value "+i+" for enum ServiceSelector")}}o.TransparencyLogInstance={fromJSON(i){return{baseUrl:S(i.baseUrl)?globalThis.String(i.baseUrl):"",hashAlgorithm:S(i.hashAlgorithm)?(0,_.hashAlgorithmFromJSON)(i.hashAlgorithm):0,publicKey:S(i.publicKey)?_.PublicKey.fromJSON(i.publicKey):void 0,logId:S(i.logId)?_.LogId.fromJSON(i.logId):void 0,checkpointKeyId:S(i.checkpointKeyId)?_.LogId.fromJSON(i.checkpointKeyId):void 0,operator:S(i.operator)?globalThis.String(i.operator):""}},toJSON(i){let r={};return i.baseUrl!==""&&(r.baseUrl=i.baseUrl),i.hashAlgorithm!==0&&(r.hashAlgorithm=(0,_.hashAlgorithmToJSON)(i.hashAlgorithm)),i.publicKey!==void 0&&(r.publicKey=_.PublicKey.toJSON(i.publicKey)),i.logId!==void 0&&(r.logId=_.LogId.toJSON(i.logId)),i.checkpointKeyId!==void 0&&(r.checkpointKeyId=_.LogId.toJSON(i.checkpointKeyId)),i.operator!==""&&(r.operator=i.operator),r}};o.CertificateAuthority={fromJSON(i){return{subject:S(i.subject)?_.DistinguishedName.fromJSON(i.subject):void 0,uri:S(i.uri)?globalThis.String(i.uri):"",certChain:S(i.certChain)?_.X509CertificateChain.fromJSON(i.certChain):void 0,validFor:S(i.validFor)?_.TimeRange.fromJSON(i.validFor):void 0,operator:S(i.operator)?globalThis.String(i.operator):""}},toJSON(i){let r={};return i.subject!==void 0&&(r.subject=_.DistinguishedName.toJSON(i.subject)),i.uri!==""&&(r.uri=i.uri),i.certChain!==void 0&&(r.certChain=_.X509CertificateChain.toJSON(i.certChain)),i.validFor!==void 0&&(r.validFor=_.TimeRange.toJSON(i.validFor)),i.operator!==""&&(r.operator=i.operator),r}};o.TrustedRoot={fromJSON(i){return{mediaType:S(i.mediaType)?globalThis.String(i.mediaType):"",tlogs:globalThis.Array.isArray(i?.tlogs)?i.tlogs.map(r=>o.TransparencyLogInstance.fromJSON(r)):[],certificateAuthorities:globalThis.Array.isArray(i?.certificateAuthorities)?i.certificateAuthorities.map(r=>o.CertificateAuthority.fromJSON(r)):[],ctlogs:globalThis.Array.isArray(i?.ctlogs)?i.ctlogs.map(r=>o.TransparencyLogInstance.fromJSON(r)):[],timestampAuthorities:globalThis.Array.isArray(i?.timestampAuthorities)?i.timestampAuthorities.map(r=>o.CertificateAuthority.fromJSON(r)):[]}},toJSON(i){let r={};return i.mediaType!==""&&(r.mediaType=i.mediaType),i.tlogs?.length&&(r.tlogs=i.tlogs.map(n=>o.TransparencyLogInstance.toJSON(n))),i.certificateAuthorities?.length&&(r.certificateAuthorities=i.certificateAuthorities.map(n=>o.CertificateAuthority.toJSON(n))),i.ctlogs?.length&&(r.ctlogs=i.ctlogs.map(n=>o.TransparencyLogInstance.toJSON(n))),i.timestampAuthorities?.length&&(r.timestampAuthorities=i.timestampAuthorities.map(n=>o.CertificateAuthority.toJSON(n))),r}};o.SigningConfig={fromJSON(i){return{mediaType:S(i.mediaType)?globalThis.String(i.mediaType):"",caUrls:globalThis.Array.isArray(i?.caUrls)?i.caUrls.map(r=>o.Service.fromJSON(r)):[],oidcUrls:globalThis.Array.isArray(i?.oidcUrls)?i.oidcUrls.map(r=>o.Service.fromJSON(r)):[],rekorTlogUrls:globalThis.Array.isArray(i?.rekorTlogUrls)?i.rekorTlogUrls.map(r=>o.Service.fromJSON(r)):[],rekorTlogConfig:S(i.rekorTlogConfig)?o.ServiceConfiguration.fromJSON(i.rekorTlogConfig):void 0,tsaUrls:globalThis.Array.isArray(i?.tsaUrls)?i.tsaUrls.map(r=>o.Service.fromJSON(r)):[],tsaConfig:S(i.tsaConfig)?o.ServiceConfiguration.fromJSON(i.tsaConfig):void 0}},toJSON(i){let r={};return i.mediaType!==""&&(r.mediaType=i.mediaType),i.caUrls?.length&&(r.caUrls=i.caUrls.map(n=>o.Service.toJSON(n))),i.oidcUrls?.length&&(r.oidcUrls=i.oidcUrls.map(n=>o.Service.toJSON(n))),i.rekorTlogUrls?.length&&(r.rekorTlogUrls=i.rekorTlogUrls.map(n=>o.Service.toJSON(n))),i.rekorTlogConfig!==void 0&&(r.rekorTlogConfig=o.ServiceConfiguration.toJSON(i.rekorTlogConfig)),i.tsaUrls?.length&&(r.tsaUrls=i.tsaUrls.map(n=>o.Service.toJSON(n))),i.tsaConfig!==void 0&&(r.tsaConfig=o.ServiceConfiguration.toJSON(i.tsaConfig)),r}};o.Service={fromJSON(i){return{url:S(i.url)?globalThis.String(i.url):"",majorApiVersion:S(i.majorApiVersion)?globalThis.Number(i.majorApiVersion):0,validFor:S(i.validFor)?_.TimeRange.fromJSON(i.validFor):void 0,operator:S(i.operator)?globalThis.String(i.operator):""}},toJSON(i){let r={};return i.url!==""&&(r.url=i.url),i.majorApiVersion!==0&&(r.majorApiVersion=Math.round(i.majorApiVersion)),i.validFor!==void 0&&(r.validFor=_.TimeRange.toJSON(i.validFor)),i.operator!==""&&(r.operator=i.operator),r}};o.ServiceConfiguration={fromJSON(i){return{selector:S(i.selector)?W(i.selector):0,count:S(i.count)?globalThis.Number(i.count):0}},toJSON(i){let r={};return i.selector!==0&&(r.selector=Z(i.selector)),i.count!==0&&(r.count=Math.round(i.count)),r}};o.ClientTrustConfig={fromJSON(i){return{mediaType:S(i.mediaType)?globalThis.String(i.mediaType):"",trustedRoot:S(i.trustedRoot)?o.TrustedRoot.fromJSON(i.trustedRoot):void 0,signingConfig:S(i.signingConfig)?o.SigningConfig.fromJSON(i.signingConfig):void 0}},toJSON(i){let r={};return i.mediaType!==""&&(r.mediaType=i.mediaType),i.trustedRoot!==void 0&&(r.trustedRoot=o.TrustedRoot.toJSON(i.trustedRoot)),i.signingConfig!==void 0&&(r.signingConfig=o.SigningConfig.toJSON(i.signingConfig)),r}};function S(i){return i!=null}});var ri=N(a=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0});a.Input=a.Artifact=a.ArtifactVerificationOptions_ObserverTimestampOptions=a.ArtifactVerificationOptions_TlogIntegratedTimestampOptions=a.ArtifactVerificationOptions_TimestampAuthorityOptions=a.ArtifactVerificationOptions_CtlogOptions=a.ArtifactVerificationOptions_TlogOptions=a.ArtifactVerificationOptions=a.PublicKeyIdentities=a.CertificateIdentities=a.CertificateIdentity=void 0;var j=D(),g=J(),ii=L();a.CertificateIdentity={fromJSON(i){return{issuer:f(i.issuer)?globalThis.String(i.issuer):"",san:f(i.san)?g.SubjectAlternativeName.fromJSON(i.san):void 0,oids:globalThis.Array.isArray(i?.oids)?i.oids.map(r=>g.ObjectIdentifierValuePair.fromJSON(r)):[]}},toJSON(i){let r={};return i.issuer!==""&&(r.issuer=i.issuer),i.san!==void 0&&(r.san=g.SubjectAlternativeName.toJSON(i.san)),i.oids?.length&&(r.oids=i.oids.map(n=>g.ObjectIdentifierValuePair.toJSON(n))),r}};a.CertificateIdentities={fromJSON(i){return{identities:globalThis.Array.isArray(i?.identities)?i.identities.map(r=>a.CertificateIdentity.fromJSON(r)):[]}},toJSON(i){let r={};return i.identities?.length&&(r.identities=i.identities.map(n=>a.CertificateIdentity.toJSON(n))),r}};a.PublicKeyIdentities={fromJSON(i){return{publicKeys:globalThis.Array.isArray(i?.publicKeys)?i.publicKeys.map(r=>g.PublicKey.fromJSON(r)):[]}},toJSON(i){let r={};return i.publicKeys?.length&&(r.publicKeys=i.publicKeys.map(n=>g.PublicKey.toJSON(n))),r}};a.ArtifactVerificationOptions={fromJSON(i){return{signers:f(i.certificateIdentities)?{$case:"certificateIdentities",certificateIdentities:a.CertificateIdentities.fromJSON(i.certificateIdentities)}:f(i.publicKeys)?{$case:"publicKeys",publicKeys:a.PublicKeyIdentities.fromJSON(i.publicKeys)}:void 0,tlogOptions:f(i.tlogOptions)?a.ArtifactVerificationOptions_TlogOptions.fromJSON(i.tlogOptions):void 0,ctlogOptions:f(i.ctlogOptions)?a.ArtifactVerificationOptions_CtlogOptions.fromJSON(i.ctlogOptions):void 0,tsaOptions:f(i.tsaOptions)?a.ArtifactVerificationOptions_TimestampAuthorityOptions.fromJSON(i.tsaOptions):void 0,integratedTsOptions:f(i.integratedTsOptions)?a.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.fromJSON(i.integratedTsOptions):void 0,observerOptions:f(i.observerOptions)?a.ArtifactVerificationOptions_ObserverTimestampOptions.fromJSON(i.observerOptions):void 0}},toJSON(i){let r={};return i.signers?.$case==="certificateIdentities"?r.certificateIdentities=a.CertificateIdentities.toJSON(i.signers.certificateIdentities):i.signers?.$case==="publicKeys"&&(r.publicKeys=a.PublicKeyIdentities.toJSON(i.signers.publicKeys)),i.tlogOptions!==void 0&&(r.tlogOptions=a.ArtifactVerificationOptions_TlogOptions.toJSON(i.tlogOptions)),i.ctlogOptions!==void 0&&(r.ctlogOptions=a.ArtifactVerificationOptions_CtlogOptions.toJSON(i.ctlogOptions)),i.tsaOptions!==void 0&&(r.tsaOptions=a.ArtifactVerificationOptions_TimestampAuthorityOptions.toJSON(i.tsaOptions)),i.integratedTsOptions!==void 0&&(r.integratedTsOptions=a.ArtifactVerificationOptions_TlogIntegratedTimestampOptions.toJSON(i.integratedTsOptions)),i.observerOptions!==void 0&&(r.observerOptions=a.ArtifactVerificationOptions_ObserverTimestampOptions.toJSON(i.observerOptions)),r}};a.ArtifactVerificationOptions_TlogOptions={fromJSON(i){return{threshold:f(i.threshold)?globalThis.Number(i.threshold):0,performOnlineVerification:f(i.performOnlineVerification)?globalThis.Boolean(i.performOnlineVerification):!1,disable:f(i.disable)?globalThis.Boolean(i.disable):!1}},toJSON(i){let r={};return i.threshold!==0&&(r.threshold=Math.round(i.threshold)),i.performOnlineVerification!==!1&&(r.performOnlineVerification=i.performOnlineVerification),i.disable!==!1&&(r.disable=i.disable),r}};a.ArtifactVerificationOptions_CtlogOptions={fromJSON(i){return{threshold:f(i.threshold)?globalThis.Number(i.threshold):0,disable:f(i.disable)?globalThis.Boolean(i.disable):!1}},toJSON(i){let r={};return i.threshold!==0&&(r.threshold=Math.round(i.threshold)),i.disable!==!1&&(r.disable=i.disable),r}};a.ArtifactVerificationOptions_TimestampAuthorityOptions={fromJSON(i){return{threshold:f(i.threshold)?globalThis.Number(i.threshold):0,disable:f(i.disable)?globalThis.Boolean(i.disable):!1}},toJSON(i){let r={};return i.threshold!==0&&(r.threshold=Math.round(i.threshold)),i.disable!==!1&&(r.disable=i.disable),r}};a.ArtifactVerificationOptions_TlogIntegratedTimestampOptions={fromJSON(i){return{threshold:f(i.threshold)?globalThis.Number(i.threshold):0,disable:f(i.disable)?globalThis.Boolean(i.disable):!1}},toJSON(i){let r={};return i.threshold!==0&&(r.threshold=Math.round(i.threshold)),i.disable!==!1&&(r.disable=i.disable),r}};a.ArtifactVerificationOptions_ObserverTimestampOptions={fromJSON(i){return{threshold:f(i.threshold)?globalThis.Number(i.threshold):0,disable:f(i.disable)?globalThis.Boolean(i.disable):!1}},toJSON(i){let r={};return i.threshold!==0&&(r.threshold=Math.round(i.threshold)),i.disable!==!1&&(r.disable=i.disable),r}};a.Artifact={fromJSON(i){return{data:f(i.artifactUri)?{$case:"artifactUri",artifactUri:globalThis.String(i.artifactUri)}:f(i.artifact)?{$case:"artifact",artifact:Buffer.from(ni(i.artifact))}:f(i.artifactDigest)?{$case:"artifactDigest",artifactDigest:g.HashOutput.fromJSON(i.artifactDigest)}:void 0}},toJSON(i){let r={};return i.data?.$case==="artifactUri"?r.artifactUri=i.data.artifactUri:i.data?.$case==="artifact"?r.artifact=oi(i.data.artifact):i.data?.$case==="artifactDigest"&&(r.artifactDigest=g.HashOutput.toJSON(i.data.artifactDigest)),r}};a.Input={fromJSON(i){return{artifactTrustRoot:f(i.artifactTrustRoot)?ii.TrustedRoot.fromJSON(i.artifactTrustRoot):void 0,artifactVerificationOptions:f(i.artifactVerificationOptions)?a.ArtifactVerificationOptions.fromJSON(i.artifactVerificationOptions):void 0,bundle:f(i.bundle)?j.Bundle.fromJSON(i.bundle):void 0,artifact:f(i.artifact)?a.Artifact.fromJSON(i.artifact):void 0}},toJSON(i){let r={};return i.artifactTrustRoot!==void 0&&(r.artifactTrustRoot=ii.TrustedRoot.toJSON(i.artifactTrustRoot)),i.artifactVerificationOptions!==void 0&&(r.artifactVerificationOptions=a.ArtifactVerificationOptions.toJSON(i.artifactVerificationOptions)),i.bundle!==void 0&&(r.bundle=j.Bundle.toJSON(i.bundle)),i.artifact!==void 0&&(r.artifact=a.Artifact.toJSON(i.artifact)),r}};function ni(i){return Uint8Array.from(globalThis.Buffer.from(i,"base64"))}function oi(i){return globalThis.Buffer.from(i).toString("base64")}function f(i){return i!=null}});var fi=N(A=>{var ai=A&&A.__createBinding||(Object.create?(function(i,r,n,P){P===void 0&&(P=n);var E=Object.getOwnPropertyDescriptor(r,n);(!E||("get"in E?!r.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(i,P,E)}):(function(i,r,n,P){P===void 0&&(P=n),i[P]=r[n]})),y=A&&A.__exportStar||function(i,r){for(var n in i)n!=="default"&&!Object.prototype.hasOwnProperty.call(r,n)&&ai(r,i,n)};Object.defineProperty(A,"__esModule",{value:!0});y(X(),A);y(D(),A);y(J(),A);y(V(),A);y(L(),A);y(ri(),A)});export{X as a,J as b,fi as c};
|