@vertesia/common 1.0.0-dev.20260225.024852Z → 1.0.0-dev.20260227.112605Z
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/lib/cjs/interaction.js.map +1 -1
- package/lib/esm/interaction.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/apps.d.ts +28 -2
- package/lib/types/apps.d.ts.map +1 -1
- package/lib/types/interaction.d.ts +1 -0
- package/lib/types/interaction.d.ts.map +1 -1
- package/lib/vertesia-common.js +1 -1
- package/lib/vertesia-common.js.map +1 -1
- package/package.json +3 -3
- package/src/apps.ts +32 -3
- package/src/interaction.ts +1 -0
package/lib/vertesia-common.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e,t,o,i,n;function a(e){if("string"==typeof e){if(e.startsWith("mcp:")){const t=e.substring(4),o=new URL(t).hostname.replace(/\./g,"-");return{url:t,type:"mcp",name:o,description:`MCP server at ${t}`,namespace:o}}return{url:e,type:"vertesia_sdk"}}return e}function u(e){return"email"===e.type}function r(e){return"interactive"===e.type}!function(e){e.int_read="interaction:read",e.int_write="interaction:write",e.int_delete="interaction:delete",e.int_execute="interaction:execute",e.run_read="run:read",e.run_write="run:write",e.env_admin="environment:admin",e.project_admin="project:admin",e.project_integration_read="project:integration_read",e.project_settings_write="project:settings_write",e.api_key_create="api_key:create",e.api_key_read="api_key:read",e.api_key_update="api_key:update",e.api_key_delete="api_key:delete",e.account_read="account:read",e.account_write="account:write",e.account_admin="account:admin",e.manage_billing="account:billing",e.account_member="account:member",e.content_read="content:read",e.content_write="content:write",e.content_delete="content:delete",e.content_admin="content:admin",e.content_superadmin="content:superadmin",e.workflow_run="workflow:run",e.workflow_admin="workflow:admin",e.workflow_superadmin="workflow:superadmin",e.iam_impersonate="iam:impersonate",e.studio_access="studio:access"}(e||(e={})),function(e){e.project="project",e.environment="environment",e.account="account",e.interaction="interaction",e.app="application"}(t||(t={})),function(e){e.user="user",e.group="group",e.apikey="apikey"}(o||(o={})),function(e){e.secret="sk"}(i||(i={})),function(e){e.User="user",e.Group="group",e.ApiKey="apikey",e.ServiceAccount="service_account",e.Agent="agent",e.Schedule="schedule"}(n||(n={}));const d="id name endpoint parent description status version visibility tags agent_runner_options updated_at prompts",p=`${d} result_schema`;var s,m,l,c;!function(e){e.draft="draft",e.published="published",e.archived="archived"}(s||(s={})),function(e){e.created="created",e.processing="processing",e.completed="completed",e.failed="failed"}(m||(m={})),function(e){e.STANDARD="STANDARD",e.RESTRICTED="RESTRICTED",e.DEBUG="DEBUG"}(l||(l={})),function(e){e.STANDARD="Run data is stored for both the model inputs and output.",e.RESTRICTED="No run data is stored for the model inputs — only the model output.",e.DEBUG="Run data is stored for the model inputs and output, schema, and final prompt."}(c||(c={}));const _={[l.STANDARD]:c.STANDARD,[l.RESTRICTED]:c.RESTRICTED,[l.DEBUG]:c.DEBUG};var g,v;!function(e){e.Collection="collection"}(g||(g={})),function(e){e.api="api",e.cli="cli",e.ui="ui",e.webhook="webhook",e.test="test-data",e.system="system"}(v||(v={}));const b="-result -parameters -result_schema -prompt";var f,E;!function(e){e.RUN_AND_INTERACTION_CONFIG="RUN_AND_INTERACTION_CONFIG",e.RUN_CONFIG_ONLY="RUN_CONFIG_ONLY",e.INTERACTION_CONFIG_ONLY="INTERACTION_CONFIG_ONLY"}(f||(f={})),function(e){e.RUN_AND_INTERACTION_CONFIG="This run configuration is used. Undefined options are filled with interaction configuration.",e.RUN_CONFIG_ONLY="Only this run configuration is used. Undefined options remain undefined.",e.INTERACTION_CONFIG_ONLY="Only interaction configuration is used."}(E||(E={}));const x={[f.RUN_AND_INTERACTION_CONFIG]:E.RUN_AND_INTERACTION_CONFIG,[f.RUN_CONFIG_ONLY]:E.RUN_CONFIG_ONLY,[f.INTERACTION_CONFIG_ONLY]:E.INTERACTION_CONFIG_ONLY};var T,h,N;function I(e){return e?.find(u)}function A(e){return!!I(e)}function O(e,t){const o=e||[],i=o.findIndex(u);if(-1===i)return t.to_email?[...o,{type:"email",...t}]:o;const n=[...o];return n[i]={...n[i],...t,type:"email"},n}function y(e,t,o){const i=I(e);if(!i)return e||[];const n=i.references?[...i.references]:[];return n.includes(t)||n.push(t),O(e,{in_reply_to:t,references:n,thread_subject:o||i.thread_subject})}!function(e){e.config="config",e.interaction="interaction",e.environmentDefault="environmentDefault",e.projectSystemDefault="projectSystemDefault",e.projectBaseDefault="projectBaseDefault",e.projectModalityDefault="projectModalityDefault",e.projectLegacyDefault="projectLegacyDefault"}(T||(T={})),function(e){e.STRING="STRING",e.INTEGER="INTEGER",e.BIGINT="BIGINT",e.FLOAT="FLOAT",e.DOUBLE="DOUBLE",e.DECIMAL="DECIMAL",e.BOOLEAN="BOOLEAN",e.DATE="DATE",e.TIMESTAMP="TIMESTAMP",e.JSON="JSON"}(h||(h={})),function(e){e.EMAIL="email",e.PHONE="phone",e.URL="url",e.CURRENCY="currency",e.PERCENTAGE="percentage",e.PERSON_NAME="person_name",e.ADDRESS="address",e.COUNTRY="country",e.DATE_ISO="date_iso",e.IDENTIFIER="identifier"}(N||(N={}));const R={[h.STRING]:"VARCHAR",[h.INTEGER]:"INTEGER",[h.BIGINT]:"BIGINT",[h.FLOAT]:"FLOAT",[h.DOUBLE]:"DOUBLE",[h.DECIMAL]:"DECIMAL(18,4)",[h.BOOLEAN]:"BOOLEAN",[h.DATE]:"DATE",[h.TIMESTAMP]:"TIMESTAMP",[h.JSON]:"JSON"};var D,S;!function(e){e.CREATING="creating",e.ACTIVE="active",e.ERROR="error",e.ARCHIVED="archived"}(D||(D={})),function(e){e.PENDING="pending",e.PROCESSING="processing",e.COMPLETED="completed",e.FAILED="failed",e.ROLLED_BACK="rolled_back"}(S||(S={}));const C={retention_days:30,snapshots_exempt:!0};var U;!function(e){e.ACTIVE="active",e.ARCHIVED="archived"}(U||(U={}));const M={columns:2,cellWidth:600,cellHeight:400,padding:20};var w;!function(e){e.openai="openai",e.openai_compatible="openai_compatible",e.azure_openai="azure_openai",e.azure_foundry="azure_foundry",e.huggingface_ie="huggingface_ie",e.replicate="replicate",e.bedrock="bedrock",e.vertexai="vertexai",e.togetherai="togetherai",e.mistralai="mistralai",e.groq="groq",e.watsonx="watsonx",e.xai="xai"}(w||(w={}));const k={openai:{id:w.openai,name:"OpenAI",requiresApiKey:!0,requiresEndpointUrl:!1,supportSearch:!1},azure_openai:{id:w.azure_openai,name:"Azure OpenAI",requiresApiKey:!1,requiresEndpointUrl:!0,supportSearch:!1},azure_foundry:{id:w.azure_foundry,name:"Azure Foundry",requiresApiKey:!0,requiresEndpointUrl:!0,supportSearch:!1},huggingface_ie:{id:w.huggingface_ie,name:"HuggingFace Inference Endpoint",requiresApiKey:!0,requiresEndpointUrl:!0},replicate:{id:w.replicate,name:"Replicate",requiresApiKey:!0,requiresEndpointUrl:!1,supportSearch:!0},bedrock:{id:w.bedrock,name:"AWS Bedrock",requiresApiKey:!1,requiresEndpointUrl:!1,endpointPlaceholder:"region name (eg. us-east-1)",supportSearch:!1},vertexai:{id:w.vertexai,name:"Google Vertex AI",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},togetherai:{id:w.togetherai,name:"Together AI",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},mistralai:{id:w.mistralai,name:"Mistral AI",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},groq:{id:w.groq,name:"Groq Cloud",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},watsonx:{id:w.watsonx,name:"IBM WatsonX",requiresApiKey:!0,requiresEndpointUrl:!0,supportSearch:!1},xai:{id:w.xai,name:"xAI (Grok)",requiresApiKey:!0,requiresEndpointUrl:!1,supportSearch:!1},openai_compatible:{id:w.openai_compatible,name:"OpenAI Compatible",requiresApiKey:!0,requiresEndpointUrl:!0,endpointPlaceholder:"https://api.example.com/v1",supportSearch:!1}};var L,G,P,j,q,W,Y;!function(e){e.max_tokens="max_tokens",e.temperature="temperature",e.top_p="top_p",e.top_k="top_k",e.presence_penalty="presence_penalty",e.frequency_penalty="frequency_penalty",e.stop_sequence="stop_sequence",e.seed="seed",e.number_of_images="number_of_images"}(L||(L={})),function(e){e.numeric="numeric",e.enum="enum",e.boolean="boolean",e.string_list="string_list"}(G||(G={})),function(e){e.safety="safety",e.system="system",e.user="user",e.assistant="assistant",e.negative="negative",e.mask="mask",e.tool="tool"}(P||(P={})),function(e){e.text="text",e.image="image"}(j||(j={})),function(e){e.Available="available",e.Pending="pending",e.Stopped="stopped",e.Unavailable="unavailable",e.Unknown="unknown",e.Legacy="legacy"}(q||(q={})),function(e){e.Classifier="classifier",e.Regressor="regressor",e.Clustering="clustering",e.AnomalyDetection="anomaly-detection",e.TimeSeries="time-series",e.Text="text",e.Image="image",e.Audio="audio",e.Video="video",e.Embedding="embedding",e.Chat="chat",e.Code="code",e.NLP="nlp",e.MultiModal="multi-modal",e.Test="test",e.Other="other",e.Unknown="unknown"}(W||(W={})),function(e){e.running="running",e.succeeded="succeeded",e.failed="failed",e.cancelled="cancelled"}(Y||(Y={}));const H={"o1-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},o3:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"deepseek-r1-0528":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"deepseek-v3-0324":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"mistral-medium-2505":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"mistral-nemo":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"llama-4-scout-17b-16e-instruct":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1}},F={"gpt-3.5-turbo":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"gpt-35-turbo":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"gpt-35":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"gpt-4":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"gpt-4.1":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"gpt-4.5":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"gpt-4o":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},gpt:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},o1:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"o1-preview":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"o1-pro":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"o3-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"o4-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},o4:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},o:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"llama-3.1":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"llama-3.2":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"llama-3.3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"llama-3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"llama-4":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},llama:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"mistral-large":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"mistral-small":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},mistral:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"phi-4":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},phi:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"deepseek-r1":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"deepseek-v3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},deepseek:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"ai21-jamba":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},ai21:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},jamba:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"cohere-command":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},cohere:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},command:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"grok-3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},grok:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0}},K=["image","vision"],B=["video"],V=["audio"],z=["text"],Q=["image"],J=["video"],Z=["audio"],$=["text"],X=["embed"],ee=["tool","gpt-4","gpt-4o","o1","o3","o4","llama-3","mistral-large","mistral-small","jamba","cohere","command","grok"];function te(e,t){return t.some(t=>e.includes(t))}function oe(e,t){return t.startsWith("gpt-")||t.startsWith("o1")||t.startsWith("o3")||t.startsWith("o4")?e:{...e,tool_support:!1,tool_support_streaming:!1}}const ie={},ne={"meta.llama3-1-70b-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"meta.llama3-1-8b-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1}},ae={"ai21.jamba-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"amazon.nova-canvas-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{image:!0,text:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"amazon.nova-micro-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"anthropic.claude-3-5-haiku-20241022-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"meta.llama3-2-11b-instruct-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"meta.llama3-2-90b-instruct-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1}},ue={"ai21.jamba":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"amazon.nova":{input:{text:!0,image:!0,video:!0,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"amazon.titan":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"anthropic.claude-3-5-haiku":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"anthropic.claude":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"cohere.command-r":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"cohere.command":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"deepseek.r1":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"meta.llama3-1":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"meta.llama3-2":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"meta.llama3-3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"meta.llama3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"meta.llama4":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"mistral.mistral-large":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"mistral.mistral":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"mistral.mixtral":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"mistral.pixtral":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"openai.gpt-oss":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"qwen.":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"twelvelabs.":{input:{text:!0,image:!1,video:!0,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"writer.palmyra":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1}};const re=["image"],de=["video"],pe=["audio"],se=["text"],me=["image"],le=["video"],ce=["audio"],_e=["text"],ge=["embed"],ve=["tool","sonnet","opus","nova","palmyra","command-r","mistral-large","pixtral"];function be(e,t){return t.some(t=>e.includes(t))}function fe(e){const t=e.toLowerCase();let o=t;if(/^arn:aws:bedrock:[^:]+:[^:]*:(inference-profile|foundation-model)\/.+/i.test(t)){const e=t.lastIndexOf("foundation-model/"),i=t.lastIndexOf("inference-profile/");-1!==e?o=t.substring(e):-1!==i&&(o=t.substring(i))}const i=o.startsWith("inference-profile/"),n=o.startsWith("foundation-model/"),a=function(e){const t=e.toLowerCase(),o=t.lastIndexOf("/");let i=-1===o?t:t.slice(o+1);return t.includes("inference-profile/")&&(i=i.replace(/^[^.]+\./,"")),i}(o);if(n){const e=ie[a];if(e)return e}else if(i){const e=ne[a];if(e)return e}const u=ae[a];if(u)return u;const r=function(e,t){let o;for(const i of Object.keys(t))e.startsWith(i)&&(!o||i.length>o.length)&&(o=i);return o?t[o]:void 0}(a,ue);if(r)return r;const d=function(e){const t=e.toLowerCase();if(t.includes("inference-profile")){const e=t.split("/");if(e.length>1){const t=e[e.length-1],o=t.split(".");return o.length>1&&"deepseek"===o[1]?`deepseek-${o.slice(2).join(".")}`:o.length>2?o.slice(2).join("."):t}}return t}(a);return{input:{text:be(d,se)||void 0,image:be(d,re)||void 0,video:be(d,de)||void 0,audio:be(d,pe)||void 0,embed:!1},output:{text:be(d,_e)||void 0,image:be(d,me)||void 0,video:be(d,le)||void 0,audio:be(d,ce)||void 0,embed:be(d,ge)||void 0},tool_support:be(d,ve)||void 0}}const Ee={"chatgpt-4o-latest":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0}},xe={gpt:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-3.5":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-4":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4-turbo":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4o":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4.1":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4.5":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-image":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-oss":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},o:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"o1-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"o1-preview":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"omni-moderation":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},sora:{input:{text:!0,image:!0,video:!0,audio:!1,embed:!1},output:{text:!1,image:!1,video:!0,audio:!0,embed:!1},tool_support:!1},"text-embedding":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!1,image:!1,video:!1,audio:!1,embed:!0},tool_support:!1},"text-moderation":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},whisper:{input:{text:!1,image:!1,video:!1,audio:!0,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1}},Te=["image"],he=["video"],Ne=["audio"],Ie=["text"],Ae=["image"],Oe=["video"],ye=["audio"],Re=["text"],De=["embed"],Se=["tool","gpt","o1","o3","o4"];function Ce(e,t){return t.some(t=>e.includes(t))}function Ue(e){const t=e.toLowerCase();const o=Ee[t];if(o)return{...o,tool_support_streaming:o.tool_support_streaming??o.tool_support};let i,n=0;for(const e of Object.keys(xe))t.startsWith(e)&&e.length>n&&(i=e,n=e.length);if(i){const e=xe[i];return{...e,tool_support_streaming:e.tool_support_streaming??e.tool_support}}const a={text:Ce(t,Ie)||void 0,image:Ce(t,Te)||void 0,video:Ce(t,he)||void 0,audio:Ce(t,Ne)||void 0,embed:!1},u={text:Ce(t,Re)||void 0,image:Ce(t,Ae)||void 0,video:Ce(t,Oe)||void 0,audio:Ce(t,ye)||void 0,embed:Ce(t,De)||void 0},r=Ce(t,Se)||void 0;return{input:a,output:u,tool_support:r,tool_support_streaming:r}}const Me={"gemini-2.0-flash-lite-001":{input:{text:!0,image:!0,video:!0,audio:!0,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1}},we={gemini:{input:{text:!0,image:!0,video:!0,audio:!0,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gemini-2.5-flash-image":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"gemini-3.0-pro-image":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"gemini-3.0-flash-image":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},imagen:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"imagen-3.0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"imagen-3.0-capability":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"imagen-4.0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"imagen-4.0-capability":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},claude:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},llama:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"llama-2":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"llama-3.2":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"llama-4":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0}},ke=["image"],Le=["video"],Ge=["audio"],Pe=["text"],je=["image"],qe=["video"],We=["audio"],Ye=["text"],He=["embed"],Fe=["tool","sonnet","opus","gemini","claude"];function Ke(e,t){return t.some(t=>e.includes(t))}function Be(e){const t=function(e){const t=e.toLowerCase().split("/");return t[t.length-1]}(e),o=Me[t];if(o)return o;let i,n=0;for(const e of Object.keys(we))t.startsWith(e)&&e.length>n&&(i=e,n=e.length);if(i)return we[i];return{input:{text:Ke(t,Pe)||void 0,image:Ke(t,ke)||void 0,video:Ke(t,Le)||void 0,audio:Ke(t,Ge)||void 0,embed:!1},output:{text:Ke(t,Ye)||void 0,image:Ke(t,je)||void 0,video:Ke(t,qe)||void 0,audio:Ke(t,We)||void 0,embed:Ke(t,He)||void 0},tool_support:Ke(t,Fe)||void 0}}function Ve(e,t){if(e.startsWith("locations/")){const t=e.split("/");t.length>=3&&(e=t.slice(2).join("/"))}const o=function(e,t){switch(t?.toLowerCase()){case w.vertexai:return Be(e);case w.openai:case w.openai_compatible:return Ue(e);case w.bedrock:return fe(e);case w.azure_foundry:return function(e){const{baseModel:t}=function(e){const t=e.split("::");return 2===t.length?{deploymentName:t[0],baseModel:t[1]}:{deploymentName:e,baseModel:e}}(e),o=t.toLowerCase(),i=H[o];if(i)return oe(i,o);let n,a=0;for(const e of Object.keys(F))o.startsWith(e)&&e.length>a&&(n=e,a=e.length);if(n)return oe(F[n],o);const u={text:te(o,z)||!0,image:te(o,K)||void 0,video:te(o,B)||void 0,audio:te(o,V)||void 0,embed:!1},r={text:te(o,$)||!0,image:te(o,Q)||void 0,video:te(o,J)||void 0,audio:te(o,Z)||void 0,embed:te(o,X)||void 0},d=te(o,ee)||void 0;return oe({input:u,output:r,tool_support:d,tool_support_streaming:d||void 0},o)}(e);case w.xai:return{input:{text:!0,image:e.includes("vision")},output:{text:!0},tool_support:!0,tool_support_streaming:!1};default:return e.startsWith("gpt")?Ue(e):e.startsWith("grok")?{input:{text:!0,image:e.includes("vision")},output:{text:!0},tool_support:!0,tool_support_streaming:!1}:e.startsWith("publishers/")?Be(e):e.startsWith("arn:aws")?fe(e):{input:{},output:{}}}}(e,t);return o.input.audio=!1,o.output.audio=!1,o.output.video=!1,o}function ze(e,t,o=!1){const i=Ve(e,t);return o?!!i.tool_support_streaming:!!i.tool_support}var Qe,Je,Ze,$e;L.max_tokens,G.numeric,L.temperature,G.numeric,L.top_p,G.numeric,L.top_k,G.numeric,L.presence_penalty,G.numeric,L.frequency_penalty,G.numeric,L.stop_sequence,G.string_list,function(e){e.TEXT_IMAGE="TEXT_IMAGE",e.EDIT_MODE_INPAINT_REMOVAL="EDIT_MODE_INPAINT_REMOVAL",e.EDIT_MODE_INPAINT_INSERTION="EDIT_MODE_INPAINT_INSERTION",e.EDIT_MODE_BGSWAP="EDIT_MODE_BGSWAP",e.EDIT_MODE_OUTPAINT="EDIT_MODE_OUTPAINT",e.CUSTOMIZATION_SUBJECT="CUSTOMIZATION_SUBJECT",e.CUSTOMIZATION_STYLE="CUSTOMIZATION_STYLE",e.CUSTOMIZATION_CONTROLLED="CUSTOMIZATION_CONTROLLED",e.CUSTOMIZATION_INSTRUCT="CUSTOMIZATION_INSTRUCT"}(Qe||(Qe={})),function(e){e.MASK_MODE_USER_PROVIDED="MASK_MODE_USER_PROVIDED",e.MASK_MODE_BACKGROUND="MASK_MODE_BACKGROUND",e.MASK_MODE_FOREGROUND="MASK_MODE_FOREGROUND",e.MASK_MODE_SEMANTIC="MASK_MODE_SEMANTIC"}(Je||(Je={})),function(e){e.HIGH="HIGH",e.LOW="LOW",e.THINKING_LEVEL_UNSPECIFIED="THINKING_LEVEL_UNSPECIFIED"}(Ze||(Ze={})),function(e){e.virtual_lb="virtual_lb",e.virtual_mediator="virtual_mediator",e.test="test"}($e||($e={}));const Xe={...w,...$e},et={virtual_lb:{id:$e.virtual_lb,name:"Virtual - Load Balancer",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},virtual_mediator:{id:$e.virtual_mediator,name:"Virtual - Mediator",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},test:{id:$e.test,name:"Test LLM",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1}},tt={...k,...et},ot="id name provider enabled_models default_model endpoint_url allowed_projects account created_at updated_at",it="id name tags description";var nt,at,ut,rt,dt;!function(e){e.gladia="gladia",e.github="github",e.aws="aws",e.magic_pdf="magic_pdf",e.serper="serper",e.exa="exa",e.linkup="linkup",e.resend="resend",e.ask_user_webhook="ask_user_webhook"}(nt||(nt={})),function(e){e.analyzed_pages="analyzed_pages",e.extracted_tables="extracted_tables",e.analyzed_images="analyzed_images",e.input_token_used="input_token_used",e.output_token_used="output_token_used",e.task_run="task_run"}(at||(at={}));class pt{constructor(e,t,o){this.parent=e,this.parentUnits=t,this.spanUnits=o,this.unitsDone=0}done(e){const t=this.spanUnits-this.unitsDone;t&&((!e||e>t)&&(e=t),this.unitsDone+=e,this.parent.done(e*this.parentUnits/this.spanUnits))}get parentUnitsDone(){return Math.round(this.unitsDone*this.parentUnits/this.spanUnits)}get isDone(){return this.unitsDone>=this.spanUnits}}class st{constructor(e){this.total=e,this.unitsDone=0}get fraction(){return this.unitsDone/this.total}get percent(){return Math.round(100*this.fraction)}get isDone(){return this.unitsDone>=this.total}done(e){const t=this.total-this.unitsDone;t&&((!e||e>t)&&(e=t),this.unitsDone+=e)}span(e,t){return new pt(this,e,t||e)}}function mt(e,t){switch(t){case ut.owner:return!0;case ut.admin:return e!==ut.billing&&e!==ut.owner;case ut.developer:return e===ut.developer;case ut.billing:return e===ut.billing;default:return!1}}!function(e){e.owner="owner",e.admin="admin",e.manager="manager",e.developer="developer",e.application="application",e.consumer="consumer",e.executor="executor",e.reader="reader",e.billing="billing",e.member="member",e.app_member="app_member",e.content_superadmin="content_superadmin"}(ut||(ut={})),function(e){e.public="public",e.account="account",e.project="project"}(rt||(rt={})),function(e){e.content_type="content_type",e.intake="intake",e.analysis="analysis",e.non_applicable="non_applicable"}(dt||(dt={}));const lt={ExtractInformation:dt.intake,SelectDocumentType:dt.intake,GenerateMetadataModel:dt.content_type,ChunkDocument:dt.intake,IdentifyTextSections:dt.intake,AnalyzeDocument:dt.analysis,ReduceTextSections:dt.analysis,GenericAgent:dt.non_applicable,AdhocTaskAgent:dt.non_applicable,Mediator:dt.non_applicable,AnalyzeConversation:dt.analysis,GetAgentConversationTopic:dt.analysis};function ct(e){e.startsWith("sys:")&&(e=e.substring(4));const t=lt[e];if(t!==dt.non_applicable)return t||void 0}var _t,gt;!function(e){e.text="text",e.image="image",e.properties="properties"}(_t||(_t={})),function(e){e.full_text="full_text"}(gt||(gt={}));const vt={..._t,...gt},bt="id name account",ft={en:"English",zh:"Chinese",es:"Spanish",hi:"Hindi",ar:"Arabic",pt:"Portuguese",bn:"Bengali",ru:"Russian",ja:"Japanese",de:"German",fr:"French",ko:"Korean",it:"Italian",tr:"Turkish",vi:"Vietnamese",pl:"Polish",uk:"Ukrainian",nl:"Dutch",th:"Thai",el:"Greek",cs:"Czech",sv:"Swedish",ro:"Romanian",hu:"Hungarian",da:"Danish",fi:"Finnish",no:"Norwegian",he:"Hebrew",id:"Indonesian",fa:"Persian"};var Et,xt,Tt,ht,Nt;!function(e){e.draft="draft",e.published="published",e.archived="archived"}(Et||(Et={})),function(e){e.chat="chat",e.template="template"}(xt||(xt={})),function(e){e.jst="jst",e.handlebars="handlebars",e.text="text"}(Tt||(Tt={})),function(e){e.project="Project",e.projects="Projects",e.environment="Environment",e.user="User",e.account="Account",e.interaction="Interaction",e.userGroup="UserGroup"}(ht||(ht={})),function(e){e.active="active",e.archived="archived"}(Nt||(Nt={}));const It="id name description tags created_at updated_at",At={type:"object",description:"Represent a rendition of a file stored in an object. It will be stored as a separate object in the database.",properties:{mime_type:{type:"string",description:"The format of the rendition. This is a MIME type."},source_etag:{type:"string",description:"The ETag of the file used for the rendition.",nullable:!0},height:{type:"integer",description:"The height of the rendition",nullable:!0},width:{type:"integer",description:"The width of the rendition",nullable:!0},multipart:{type:"boolean",description:"If the rendition is a multi-part rendition",nullable:!0,default:!1},total_parts:{type:"integer",description:"The total number of parts in the rendition",nullable:!0}},required:["mime_type"]},Ot={type:"object",description:"Represent a semantic chunk of a document",properties:{source_etag:{type:"string",description:"The ETag of the file used for the rendition.",nullable:!0},part_number:{type:"integer",description:"The part number of the chunk"},title:{type:"string",description:"The title of the chunk",nullable:!0},source_line_start:{type:"integer",description:"The line number where the chunk starts",nullable:!0},source_line_end:{type:"integer",description:"The line number where the chunk ends",nullable:!0},type:{type:"string",description:"The type of the chunk",enum:["text","image","table","chart","diagram","code","other"],nullable:!0},page_number:{type:"integer",description:"The page number of the document part",nullable:!0},description:{type:"string",description:"The description of the document part, if it's an image, the exhaustive description of the image",nullable:!0},height:{type:"integer",description:"The height of the rendition",nullable:!0},width:{type:"integer",description:"The width of the rendition",nullable:!0}},required:["part_number"]},yt={EVERY_HOUR:"0 * * * *",EVERY_DAY_MIDNIGHT:"0 0 * * *",EVERY_DAY_9AM:"0 9 * * *",EVERY_MONDAY_MIDNIGHT:"0 0 * * MON",EVERY_WEEKDAY_9AM:"0 9 * * MON-FRI",FIRST_OF_MONTH:"0 0 1 * *"},Rt={EVERY_HOUR:"Every hour",EVERY_DAY_MIDNIGHT:"Daily at midnight",EVERY_DAY_9AM:"Daily at 9:00 AM",EVERY_MONDAY_MIDNIGHT:"Every Monday at midnight",EVERY_WEEKDAY_9AM:"Weekdays at 9:00 AM",FIRST_OF_MONTH:"First day of month at midnight"};var Dt,St,Ct,Ut;!function(e){e.COLLECTION_ID="x-collection-id",e.PROCESSING_PRIORITY="x-processing-priority",e.CREATE_REVISION="x-create-revision",e.REVISION_LABEL="x-revision-label",e.SUPPRESS_WORKFLOWS="x-suppress-workflows"}(Dt||(Dt={})),function(e){e.DATA_STORE_ID="x-data-store-id"}(St||(St={})),function(e){e.created="created",e.processing="processing",e.ready="ready",e.completed="completed",e.failed="failed",e.archived="archived"}(Ct||(Ct={})),function(e){e.Video="video",e.Image="image",e.Audio="audio",e.Document="document",e.Code="code",e.Other="other"}(Ut||(Ut={}));const Mt="Poster",wt="Audio",kt="Web",Lt="PDF";function Gt(e){return e.id||e.code}function Pt(e){return e.includes(":")}var jt,qt,Wt;!function(e){e.single="single",e.multiple="multiple",e.none="none"}(jt||(jt={})),function(e){e.jpeg="jpeg",e.png="png",e.webp="webp"}(qt||(qt={})),function(e){e.docx="docx",e.pdf="pdf"}(Wt||(Wt={}));const Yt={"image/*":[qt.jpeg,qt.png,qt.webp],"video/*":[qt.jpeg,qt.png],"application/pdf":[qt.jpeg,qt.png,qt.webp],"text/markdown":[Wt.pdf,Wt.docx],"text/*":[Wt.docx],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[Wt.pdf],"application/msword":[Wt.pdf],"application/vnd.openxmlformats-officedocument.presentationml.presentation":[Wt.pdf],"application/vnd.ms-powerpoint":[Wt.pdf]};function Ht(e,t){if(!e)return!1;const o=t,i=Yt[e];if(i&&i.some(e=>e===o))return!0;const[n]=e.split("/"),a=Yt[`${n}/*`];return!(!a||!a.some(e=>e===o))}function Ft(e){if(!e)return[];if(Yt[e])return[...Yt[e]];const[t]=e.split("/"),o=Yt[`${t}/*`];return o?[...o]:[]}function Kt(e){return Ht(e,qt.jpeg)}var Bt,Vt,zt,Qt,Jt,Zt;function $t(e){return"objectIds"===e.input?.inputType?e.input.objectIds:e.objectIds?e.objectIds:[]}function Xt(e){return e.type===Zt.THOUGHT&&!!e.details&&"object"==typeof e.details&&"string"==typeof e.details.tool}function eo(e){return e.type===Zt.UPDATE&&!!e.details&&"object"==typeof e.details&&("document_created"===e.details.event_class||"document_updated"===e.details.event_class)&&"string"==typeof e.details.document_id}function to(e){return e.type===Zt.SYSTEM&&!!e.details&&"object"==typeof e.details&&"file_processing"===e.details.system_type&&Array.isArray(e.details.files)}function oo(e){return e.type===Zt.PLAN&&!!e.details&&"object"==typeof e.details&&Array.isArray(e.details.plan)}function io(e){return e.type===Zt.REQUEST_INPUT&&!!e.details&&"object"==typeof e.details}function no(e){return"object"==typeof e&&null!==e&&"t"in e}function ao(e){return"object"==typeof e&&null!==e&&"type"in e&&!("t"in e)}!function(e){e.normal="normal",e.low="low"}(Bt||(Bt={})),function(e){e.create="create",e.change_type="change_type",e.update="update",e.revision_created="revision_created",e.delete="delete",e.workflow_finished="workflow_finished",e.workflow_execution_request="workflow_execution_request",e.api_request="api_request"}(Vt||(Vt={})),function(e){e.SCHEDULED="scheduled",e.RUNNING="running",e.COMPLETED="completed",e.FAILED="failed",e.CANCELED="canceled",e.TIMED_OUT="timed_out",e.TERMINATED="terminated",e.SENT="sent",e.RECEIVED="received"}(zt||(zt={})),function(e){e.ACTIVITY="activity",e.CHILD_WORKFLOW="childWorkflow",e.SIGNAL="signal",e.TIMER="timer"}(Qt||(Qt={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.RUNNING=1]="RUNNING",e[e.COMPLETED=2]="COMPLETED",e[e.FAILED=3]="FAILED",e[e.CANCELED=4]="CANCELED",e[e.TERMINATED=5]="TERMINATED",e[e.CONTINUED_AS_NEW=6]="CONTINUED_AS_NEW",e[e.TIMED_OUT=7]="TIMED_OUT"}(Jt||(Jt={})),function(e){e[e.SYSTEM=0]="SYSTEM",e[e.THOUGHT=1]="THOUGHT",e[e.PLAN=2]="PLAN",e[e.UPDATE=3]="UPDATE",e[e.COMPLETE=4]="COMPLETE",e[e.WARNING=5]="WARNING",e[e.ERROR=6]="ERROR",e[e.ANSWER=7]="ANSWER",e[e.QUESTION=8]="QUESTION",e[e.REQUEST_INPUT=9]="REQUEST_INPUT",e[e.IDLE=10]="IDLE",e[e.TERMINATED=11]="TERMINATED",e[e.STREAMING_CHUNK=12]="STREAMING_CHUNK",e[e.BATCH_PROGRESS=13]="BATCH_PROGRESS"}(Zt||(Zt={}));const uo={system:Zt.SYSTEM,thought:Zt.THOUGHT,plan:Zt.PLAN,update:Zt.UPDATE,complete:Zt.COMPLETE,warning:Zt.WARNING,error:Zt.ERROR,answer:Zt.ANSWER,question:Zt.QUESTION,request_input:Zt.REQUEST_INPUT,idle:Zt.IDLE,terminated:Zt.TERMINATED,streaming_chunk:Zt.STREAMING_CHUNK,batch_progress:Zt.BATCH_PROGRESS},ro={0:Zt.SYSTEM,1:Zt.THOUGHT,2:Zt.PLAN,3:Zt.UPDATE,4:Zt.COMPLETE,5:Zt.WARNING,6:Zt.ERROR,7:Zt.ANSWER,8:Zt.QUESTION,9:Zt.REQUEST_INPUT,10:Zt.IDLE,11:Zt.TERMINATED,12:Zt.STREAMING_CHUNK,13:Zt.BATCH_PROGRESS};function po(e){return"number"==typeof e?ro[e]??Zt.UPDATE:"string"==typeof e?uo[e]??Zt.UPDATE:Zt.UPDATE}function so(e){const t={t:po(e.type)};if(e.message&&(t.m=e.message),e.workstream_id&&"main"!==e.workstream_id&&(t.w=e.workstream_id),e.timestamp&&(t.ts=e.timestamp),t.t===Zt.STREAMING_CHUNK&&e.details){e.details.is_final&&(t.f=1)}else e.details&&(t.d=e.details);return t}function mo(e){const t="string"==typeof e?JSON.parse(e):e;if(no(t))return t;if(ao(t))return so(t);throw new Error("Unknown message format")}function lo(e,t={}){const o={t:e};return t.message&&(o.m=t.message),t.workstreamId&&"main"!==t.workstreamId&&(o.w=t.workstreamId),t.details&&(o.d=t.details),t.isFinal&&(o.f=1),t.timestamp&&(o.ts=t.timestamp),o}function co(e,t=""){const o={type:e.t,timestamp:e.ts||Date.now(),workflow_run_id:t,message:e.m||"",workstream_id:e.w||"main"};return void 0!==e.d&&(o.details=e.d),e.t===Zt.STREAMING_CHUNK&&(o.details={..."object"==typeof e.d?e.d:{},streaming_id:e.w||"main",is_final:1===e.f,activity_id:e.i}),o}var _o;function go(e){return`workflow:${e}:channel`}function vo(e){return`workflow:${e}:updates`}!function(e){e.UPLOADING="uploading",e.PROCESSING="processing",e.READY="ready",e.ERROR="error"}(_o||(_o={}));const bo="low_priority";function fo(e){return"pdf"===e.format||"docx"===e.format}function Eo(e){return e===Jt.COMPLETED||e===Jt.FAILED||e===Jt.CANCELED||e===Jt.TERMINATED||e===Jt.TIMED_OUT}const xo={TERMINATE:"TERMINATE",ABANDON:"ABANDON",REQUEST_CANCEL:"REQUEST_CANCEL",PARENT_CLOSE_POLICY_UNSPECIFIED:void 0,PARENT_CLOSE_POLICY_TERMINATE:"TERMINATE",PARENT_CLOSE_POLICY_ABANDON:"ABANDON",PARENT_CLOSE_POLICY_REQUEST_CANCEL:"REQUEST_CANCEL"};function To(e){return"apikey"===e.type}function ho(e){return"user"===e.type}function No(e){return"project"===e.type}function Io(e){return"environment"===e.type}function Ao(e){return"agent"===e.type}function Oo(e){return"service_account"===e.type}var yo,Ro;!function(e){e.created="created",e.building="building",e.prepared="prepared",e.processing="processing",e.completed="completed",e.cancelled="cancelled",e.failed="failed"}(yo||(yo={})),function(e){e.userInvite="user-invite",e.migration="migration"}(Ro||(Ro={}));const Do="id name email picture";var So,Co,Uo;!function(e){e.aws="aws",e.gcp="gcp",e.azure="azure"}(So||(So={})),function(e){e.stripe="stripe",e.invoice="invoice"}(Co||(Co={})),function(e){e.vertesia="vertesia",e.partner="partner",e.free="free",e.customer="customer",e.unknown="unknown"}(Uo||(Uo={}));const Mo="id name";function wo(e,t){return e.slice(-6)+"_"+t.slice(-6)}function ko(e){return wo(e.account,e.id)}function Lo(e){return{name:e.name,description:e.description,input_schema:e.input_schema}}function Go(e){return e?e.map(Lo):e}function Po(e){if(!e)return e;if(Array.isArray(e))for(const t of e)Po(t);else if("object"==typeof e){const t=e;for(const[e,o]of Object.entries(t))("editor"!==e||"textarea"!==o&&"document"!==o&&"media"!==o)&&("format"!==e||"textarea"!==o&&"document"!==o&&"media"!==o)?"object"==typeof o&&Po(o):delete t[e]}return e}function jo(e){const t={};let o=[];for(const i of e)if(i.properties){if(i.required)for(const e of i.required)o.includes(e)||o.push(e);Object.assign(t,i.properties)}return Object.keys(t).length>0?{properties:t,required:o,type:"object"}:null}function qo(e){const t={};let o=new Set;for(const i of e)if(i.template?.inputSchema?.properties){const e=i.template?.inputSchema;if(e.required)for(const t of e.required)o.add(t);Object.assign(t,e.properties)}else i.type===xt.chat&&(Object.assign(t,{chat:{type:"array",items:{type:"object",properties:{role:{type:"string",enum:[P.assistant,P.user]},content:{type:"string"}},required:["role","content"]}}}),o.add("chat"));return Object.keys(t).length>0?{properties:t,required:Array.from(o)}:null}function Wo(e){return e.prompts?qo(e.prompts):null}function Yo(e){const t={};let o=new Set;for(const i of e)if(i.schema?.properties){const e=i.schema;if(e.required)for(const t of e.required)o.add(t);Object.assign(t,e.properties)}return Object.keys(t).length>0?{properties:t,required:Array.from(o)}:null}var Ho,Fo,Ko,Bo;!function(e){e[e.COMPLETION_RESULT_V1=20250925]="COMPLETION_RESULT_V1",e[e.DOWNLOAD_URL_NO_MIME_TYPE_V1=20260210]="DOWNLOAD_URL_NO_MIME_TYPE_V1"}(Ho||(Ho={})),function(e){e.AgentRunStarted="agent_run_started",e.AgentRunCompleted="agent_run_completed",e.LlmCall="llm_call",e.ToolCall="tool_call"}(Fo||(Fo={})),function(e){e.Start="start",e.ResumeTools="resume_tools",e.ResumeUser="resume_user",e.Checkpoint="checkpoint",e.NestedInteraction="nested_interaction"}(Ko||(Ko={})),function(e){e.Builtin="builtin",e.Interaction="interaction",e.Remote="remote",e.Skill="skill"}(Bo||(Bo={}));export{wt as AUDIO_RENDITION_NAME,o as AccessControlPrincipalType,t as AccessControlResourceType,Mo as AccountRefPopulate,Uo as AccountType,Fo as AgentEventType,Zt as AgentMessageType,g as AgentSearchScope,i as ApiKeyTypes,Ho as ApiVersions,Co as BillingMethod,yt as CRON_PRESETS,Rt as CRON_PRESET_LABELS,Nt as CollectionStatus,f as ConfigModes,E as ConfigModesDescription,x as ConfigModesOptions,Vt as ContentEventName,Ut as ContentNature,Dt as ContentObjectApiHeaders,Bt as ContentObjectProcessingPriority,Ct as ContentObjectStatus,$e as CustomProviders,et as CustomProvidersList,R as DATA_COLUMN_TYPE_TO_DUCKDB,M as DEFAULT_DASHBOARD_LAYOUT,C as DEFAULT_RETENTION_CONFIG,U as DashboardStatus,h as DataColumnType,St as DataStoreApiHeaders,D as DataStoreStatus,So as Datacenters,Ot as DocumentPartSchema,ot as ExecutionEnvironmentRefPopulate,b as ExecutionRunRefSelect,m as ExecutionRunStatus,_o as FileProcessingStatus,gt as FullTextType,qt as ImageRenditionFormat,S as ImportStatus,d as InteractionRefPopulate,p as InteractionRefWithSchemaPopulate,s as InteractionStatus,bo as LOW_PRIORITY_TASK_QUEUE,Ko as LlmCallType,Wt as MarkdownRenditionFormat,at as MeterNames,T as ModelSource,Lt as PDF_RENDITION_NAME,Mt as POSTER_RENDITION_NAME,xo as ParentClosePolicy,e as Permission,n as PrincipalType,st as Progress,bt as ProjectRefPopulate,ut as ProjectRoles,xt as PromptSegmentDefType,Et as PromptStatus,At as RenditionSchema,ht as ResolvableRefType,rt as ResourceVisibility,c as RunDataStorageDescription,l as RunDataStorageLevel,_ as RunDataStorageOptions,v as RunSourceTypes,ft as SUPPORTED_SEARCH_LANGUAGES,lt as SYSTEM_INTERACTION_CATEGORIES,vt as SearchTypes,N as SemanticColumnType,_t as SupportedEmbeddingTypes,nt as SupportedIntegrations,Xe as SupportedProviders,tt as SupportedProvidersList,dt as SystemInteractionCategory,zt as TaskStatus,Qt as TaskType,Bo as TelemetryToolType,Tt as TemplateType,yo as TrainingSessionStatus,Ro as TransientTokenType,it as UserGroupRefPopulate,Do as UserRefPopulate,kt as WEB_VIDEO_RENDITION_NAME,It as WorkflowDefinitionRefPopulate,Jt as WorkflowExecutionStatus,jt as WorkflowRuleInputType,qo as _mergePromptsSchema,Ht as canGenerateRendition,lo as createCompactMessage,I as findEmailChannel,Gt as getContentTypeRefId,$t as getDocumentIds,Ft as getSupportedRenditionFormats,ct as getSystemInteractionCategory,wo as getTenantId,ko as getTenantIdFromProject,go as getWorkflowChannel,vo as getWorkflowUpdatesKey,A as hasEmailChannel,Ao as isAgentRequest,To as isApiKeyRequest,no as isCompactMessage,eo as isDocumentEventMessage,u as isEmailChannel,Io as isEnvironmentRequest,to as isFileProcessingMessage,Pt as isInCodeType,r as isInteractiveChannel,ao as isLegacyMessage,fo as isMarkdownRenditionVars,oo as isPlanMessage,No as isProjectRequest,io as isRequestInputMessage,mt as isRoleIncludedIn,Oo as isServiceAccountRequest,Xt as isToolCallMessage,ho as isUserRequest,Eo as isWorkflowTerminalStatus,Yo as mergeInCodePromptSchemas,jo as mergeJSONSchemas,Wo as mergePromptsSchema,po as normalizeMessageType,a as normalizeToolCollection,mo as parseMessage,Po as removeExtraProperties,Lo as sanitizeToolDefinition,Go as sanitizeToolDefinitions,ze as supportsToolUse,Kt as supportsVisualRendition,co as toAgentMessage,so as toCompactMessage,O as updateEmailChannel,y as updateEmailThreading};
|
|
1
|
+
var e,t,o,i,n;function a(e){if("string"==typeof e){if(e.startsWith("mcp:")){const t=e.substring(4),o=new URL(t).hostname.replace(/\./g,"-");return{url:t,type:"mcp",name:o,description:`MCP server at ${t}`,namespace:o}}return{url:e,type:"vertesia_sdk"}}return e}function u(e){return"email"===e.type}function r(e){return"interactive"===e.type}!function(e){e.int_read="interaction:read",e.int_write="interaction:write",e.int_delete="interaction:delete",e.int_execute="interaction:execute",e.run_read="run:read",e.run_write="run:write",e.env_admin="environment:admin",e.project_admin="project:admin",e.project_integration_read="project:integration_read",e.project_settings_write="project:settings_write",e.api_key_create="api_key:create",e.api_key_read="api_key:read",e.api_key_update="api_key:update",e.api_key_delete="api_key:delete",e.account_read="account:read",e.account_write="account:write",e.account_admin="account:admin",e.manage_billing="account:billing",e.account_member="account:member",e.content_read="content:read",e.content_write="content:write",e.content_delete="content:delete",e.content_admin="content:admin",e.content_superadmin="content:superadmin",e.workflow_run="workflow:run",e.workflow_admin="workflow:admin",e.workflow_superadmin="workflow:superadmin",e.iam_impersonate="iam:impersonate",e.studio_access="studio:access"}(e||(e={})),function(e){e.project="project",e.environment="environment",e.account="account",e.interaction="interaction",e.app="application"}(t||(t={})),function(e){e.user="user",e.group="group",e.apikey="apikey"}(o||(o={})),function(e){e.secret="sk"}(i||(i={})),function(e){e.User="user",e.Group="group",e.ApiKey="apikey",e.ServiceAccount="service_account",e.Agent="agent",e.Schedule="schedule"}(n||(n={}));const d="id name endpoint parent description status version visibility tags agent_runner_options updated_at prompts",p=`${d} result_schema`;var s,m,l,c;!function(e){e.draft="draft",e.published="published",e.archived="archived"}(s||(s={})),function(e){e.created="created",e.processing="processing",e.completed="completed",e.failed="failed"}(m||(m={})),function(e){e.STANDARD="STANDARD",e.RESTRICTED="RESTRICTED",e.DEBUG="DEBUG"}(l||(l={})),function(e){e.STANDARD="Run data is stored for both the model inputs and output.",e.RESTRICTED="No run data is stored for the model inputs — only the model output.",e.DEBUG="Run data is stored for the model inputs and output, schema, and final prompt."}(c||(c={}));const _={[l.STANDARD]:c.STANDARD,[l.RESTRICTED]:c.RESTRICTED,[l.DEBUG]:c.DEBUG};var g,v;!function(e){e.Collection="collection"}(g||(g={})),function(e){e.api="api",e.cli="cli",e.ui="ui",e.webhook="webhook",e.test="test-data",e.system="system"}(v||(v={}));const b="-result -parameters -result_schema -prompt";var f,E;!function(e){e.RUN_AND_INTERACTION_CONFIG="RUN_AND_INTERACTION_CONFIG",e.RUN_CONFIG_ONLY="RUN_CONFIG_ONLY",e.INTERACTION_CONFIG_ONLY="INTERACTION_CONFIG_ONLY"}(f||(f={})),function(e){e.RUN_AND_INTERACTION_CONFIG="This run configuration is used. Undefined options are filled with interaction configuration.",e.RUN_CONFIG_ONLY="Only this run configuration is used. Undefined options remain undefined.",e.INTERACTION_CONFIG_ONLY="Only interaction configuration is used."}(E||(E={}));const x={[f.RUN_AND_INTERACTION_CONFIG]:E.RUN_AND_INTERACTION_CONFIG,[f.RUN_CONFIG_ONLY]:E.RUN_CONFIG_ONLY,[f.INTERACTION_CONFIG_ONLY]:E.INTERACTION_CONFIG_ONLY};var T,h,N;function I(e){return e?.find(u)}function A(e){return!!I(e)}function O(e,t){const o=e||[],i=o.findIndex(u);if(-1===i)return t.to_email?[...o,{type:"email",...t}]:o;const n=[...o];return n[i]={...n[i],...t,type:"email"},n}function y(e,t,o){const i=I(e);if(!i)return e||[];const n=i.references?[...i.references]:[];return n.includes(t)||n.push(t),O(e,{in_reply_to:t,references:n,thread_subject:o||i.thread_subject})}!function(e){e.config="config",e.interaction="interaction",e.environmentDefault="environmentDefault",e.projectSystemDefault="projectSystemDefault",e.projectBaseDefault="projectBaseDefault",e.projectModalityDefault="projectModalityDefault",e.projectLegacyDefault="projectLegacyDefault"}(T||(T={})),function(e){e.STRING="STRING",e.INTEGER="INTEGER",e.BIGINT="BIGINT",e.FLOAT="FLOAT",e.DOUBLE="DOUBLE",e.DECIMAL="DECIMAL",e.BOOLEAN="BOOLEAN",e.DATE="DATE",e.TIMESTAMP="TIMESTAMP",e.JSON="JSON"}(h||(h={})),function(e){e.EMAIL="email",e.PHONE="phone",e.URL="url",e.CURRENCY="currency",e.PERCENTAGE="percentage",e.PERSON_NAME="person_name",e.ADDRESS="address",e.COUNTRY="country",e.DATE_ISO="date_iso",e.IDENTIFIER="identifier"}(N||(N={}));const R={[h.STRING]:"VARCHAR",[h.INTEGER]:"INTEGER",[h.BIGINT]:"BIGINT",[h.FLOAT]:"FLOAT",[h.DOUBLE]:"DOUBLE",[h.DECIMAL]:"DECIMAL(18,4)",[h.BOOLEAN]:"BOOLEAN",[h.DATE]:"DATE",[h.TIMESTAMP]:"TIMESTAMP",[h.JSON]:"JSON"};var D,S;!function(e){e.CREATING="creating",e.ACTIVE="active",e.ERROR="error",e.ARCHIVED="archived"}(D||(D={})),function(e){e.PENDING="pending",e.PROCESSING="processing",e.COMPLETED="completed",e.FAILED="failed",e.ROLLED_BACK="rolled_back"}(S||(S={}));const C={retention_days:30,snapshots_exempt:!0};var U;!function(e){e.ACTIVE="active",e.ARCHIVED="archived"}(U||(U={}));const M={columns:2,cellWidth:600,cellHeight:400,padding:20};var w;!function(e){e.openai="openai",e.openai_compatible="openai_compatible",e.azure_openai="azure_openai",e.azure_foundry="azure_foundry",e.huggingface_ie="huggingface_ie",e.replicate="replicate",e.bedrock="bedrock",e.vertexai="vertexai",e.togetherai="togetherai",e.mistralai="mistralai",e.groq="groq",e.watsonx="watsonx",e.xai="xai"}(w||(w={}));const k={openai:{id:w.openai,name:"OpenAI",requiresApiKey:!0,requiresEndpointUrl:!1,supportSearch:!1},azure_openai:{id:w.azure_openai,name:"Azure OpenAI",requiresApiKey:!1,requiresEndpointUrl:!0,supportSearch:!1},azure_foundry:{id:w.azure_foundry,name:"Azure Foundry",requiresApiKey:!0,requiresEndpointUrl:!0,supportSearch:!1},huggingface_ie:{id:w.huggingface_ie,name:"HuggingFace Inference Endpoint",requiresApiKey:!0,requiresEndpointUrl:!0},replicate:{id:w.replicate,name:"Replicate",requiresApiKey:!0,requiresEndpointUrl:!1,supportSearch:!0},bedrock:{id:w.bedrock,name:"AWS Bedrock",requiresApiKey:!1,requiresEndpointUrl:!1,endpointPlaceholder:"region name (eg. us-east-1)",supportSearch:!1},vertexai:{id:w.vertexai,name:"Google Vertex AI",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},togetherai:{id:w.togetherai,name:"Together AI",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},mistralai:{id:w.mistralai,name:"Mistral AI",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},groq:{id:w.groq,name:"Groq Cloud",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},watsonx:{id:w.watsonx,name:"IBM WatsonX",requiresApiKey:!0,requiresEndpointUrl:!0,supportSearch:!1},xai:{id:w.xai,name:"xAI (Grok)",requiresApiKey:!0,requiresEndpointUrl:!1,supportSearch:!1},openai_compatible:{id:w.openai_compatible,name:"OpenAI Compatible",requiresApiKey:!0,requiresEndpointUrl:!0,endpointPlaceholder:"https://api.example.com/v1",supportSearch:!1}};var L,G,P,j,q,W,Y;!function(e){e.max_tokens="max_tokens",e.temperature="temperature",e.top_p="top_p",e.top_k="top_k",e.presence_penalty="presence_penalty",e.frequency_penalty="frequency_penalty",e.stop_sequence="stop_sequence",e.seed="seed",e.number_of_images="number_of_images"}(L||(L={})),function(e){e.numeric="numeric",e.enum="enum",e.boolean="boolean",e.string_list="string_list"}(G||(G={})),function(e){e.safety="safety",e.system="system",e.user="user",e.assistant="assistant",e.negative="negative",e.mask="mask",e.tool="tool"}(P||(P={})),function(e){e.text="text",e.image="image"}(j||(j={})),function(e){e.Available="available",e.Pending="pending",e.Stopped="stopped",e.Unavailable="unavailable",e.Unknown="unknown",e.Legacy="legacy"}(q||(q={})),function(e){e.Classifier="classifier",e.Regressor="regressor",e.Clustering="clustering",e.AnomalyDetection="anomaly-detection",e.TimeSeries="time-series",e.Text="text",e.Image="image",e.Audio="audio",e.Video="video",e.Embedding="embedding",e.Chat="chat",e.Code="code",e.NLP="nlp",e.MultiModal="multi-modal",e.Test="test",e.Other="other",e.Unknown="unknown"}(W||(W={})),function(e){e.running="running",e.succeeded="succeeded",e.failed="failed",e.cancelled="cancelled"}(Y||(Y={}));const H={"o1-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},o3:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"deepseek-r1-0528":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"deepseek-v3-0324":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"mistral-medium-2505":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"mistral-nemo":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"llama-4-scout-17b-16e-instruct":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1}},F={"gpt-3.5-turbo":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"gpt-35-turbo":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"gpt-35":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"gpt-4":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"gpt-4.1":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"gpt-4.5":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"gpt-4o":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},gpt:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},o1:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"o1-preview":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"o1-pro":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"o3-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"o4-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},o4:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},o:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"llama-3.1":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"llama-3.2":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"llama-3.3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"llama-3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"llama-4":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},llama:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"mistral-large":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"mistral-small":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},mistral:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"phi-4":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},phi:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"deepseek-r1":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"deepseek-v3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},deepseek:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"ai21-jamba":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},ai21:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},jamba:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"cohere-command":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},cohere:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},command:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"grok-3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},grok:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0}},K=["image","vision"],B=["video"],V=["audio"],z=["text"],Q=["image"],J=["video"],Z=["audio"],$=["text"],X=["embed"],ee=["tool","gpt-4","gpt-4o","o1","o3","o4","llama-3","mistral-large","mistral-small","jamba","cohere","command","grok"];function te(e,t){return t.some(t=>e.includes(t))}function oe(e,t){return t.startsWith("gpt-")||t.startsWith("o1")||t.startsWith("o3")||t.startsWith("o4")?e:{...e,tool_support:!1,tool_support_streaming:!1}}const ie={},ne={"meta.llama3-1-70b-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"meta.llama3-1-8b-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1}},ae={"ai21.jamba-instruct-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"amazon.nova-canvas-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{image:!0,text:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"amazon.nova-micro-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"anthropic.claude-3-5-haiku-20241022-v1:0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"meta.llama3-2-11b-instruct-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"meta.llama3-2-90b-instruct-v1:0":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1}},ue={"ai21.jamba":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"amazon.nova":{input:{text:!0,image:!0,video:!0,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"amazon.titan":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"anthropic.claude-3-5-haiku":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"anthropic.claude":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"cohere.command-r":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!0},"cohere.command":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"deepseek.r1":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"meta.llama3-1":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"meta.llama3-2":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"meta.llama3-3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"meta.llama3":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"meta.llama4":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"mistral.mistral-large":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"mistral.mistral":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"mistral.mixtral":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"mistral.pixtral":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"openai.gpt-oss":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"qwen.":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1,tool_support_streaming:!1},"twelvelabs.":{input:{text:!0,image:!1,video:!0,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1},"writer.palmyra":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0,tool_support_streaming:!1}};const re=["image"],de=["video"],pe=["audio"],se=["text"],me=["image"],le=["video"],ce=["audio"],_e=["text"],ge=["embed"],ve=["tool","sonnet","opus","nova","palmyra","command-r","mistral-large","pixtral"];function be(e,t){return t.some(t=>e.includes(t))}function fe(e){const t=e.toLowerCase();let o=t;if(/^arn:aws:bedrock:[^:]+:[^:]*:(inference-profile|foundation-model)\/.+/i.test(t)){const e=t.lastIndexOf("foundation-model/"),i=t.lastIndexOf("inference-profile/");-1!==e?o=t.substring(e):-1!==i&&(o=t.substring(i))}const i=o.startsWith("inference-profile/"),n=o.startsWith("foundation-model/"),a=function(e){const t=e.toLowerCase(),o=t.lastIndexOf("/");let i=-1===o?t:t.slice(o+1);return t.includes("inference-profile/")&&(i=i.replace(/^[^.]+\./,"")),i}(o);if(n){const e=ie[a];if(e)return e}else if(i){const e=ne[a];if(e)return e}const u=ae[a];if(u)return u;const r=function(e,t){let o;for(const i of Object.keys(t))e.startsWith(i)&&(!o||i.length>o.length)&&(o=i);return o?t[o]:void 0}(a,ue);if(r)return r;const d=function(e){const t=e.toLowerCase();if(t.includes("inference-profile")){const e=t.split("/");if(e.length>1){const t=e[e.length-1],o=t.split(".");return o.length>1&&"deepseek"===o[1]?`deepseek-${o.slice(2).join(".")}`:o.length>2?o.slice(2).join("."):t}}return t}(a);return{input:{text:be(d,se)||void 0,image:be(d,re)||void 0,video:be(d,de)||void 0,audio:be(d,pe)||void 0,embed:!1},output:{text:be(d,_e)||void 0,image:be(d,me)||void 0,video:be(d,le)||void 0,audio:be(d,ce)||void 0,embed:be(d,ge)||void 0},tool_support:be(d,ve)||void 0}}const Ee={"chatgpt-4o-latest":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0}},xe={gpt:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-3.5":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-4":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4-turbo":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4o":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4.1":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-4.5":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-5":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gpt-image":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"chatgpt-image":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"dall-e":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"gpt-oss":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},o:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"o1-mini":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"o1-preview":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"omni-moderation":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},sora:{input:{text:!0,image:!0,video:!0,audio:!1,embed:!1},output:{text:!1,image:!1,video:!0,audio:!0,embed:!1},tool_support:!1},"text-embedding":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!1,image:!1,video:!1,audio:!1,embed:!0},tool_support:!1},"text-moderation":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},whisper:{input:{text:!1,image:!1,video:!1,audio:!0,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1}},Te=["image"],he=["video"],Ne=["audio"],Ie=["text"],Ae=["image"],Oe=["video"],ye=["audio"],Re=["text"],De=["embed"],Se=["tool","gpt","gpt-5","o1","o3","o4"];function Ce(e,t){return t.some(t=>e.includes(t))}function Ue(e){const t=e.toLowerCase();const o=Ee[t];if(o)return{...o,tool_support_streaming:o.tool_support_streaming??o.tool_support};let i,n=0;for(const e of Object.keys(xe))t.startsWith(e)&&e.length>n&&(i=e,n=e.length);if(i){const e=xe[i];return{...e,tool_support_streaming:e.tool_support_streaming??e.tool_support}}const a={text:Ce(t,Ie)||void 0,image:Ce(t,Te)||void 0,video:Ce(t,he)||void 0,audio:Ce(t,Ne)||void 0,embed:!1},u={text:Ce(t,Re)||void 0,image:Ce(t,Ae)||void 0,video:Ce(t,Oe)||void 0,audio:Ce(t,ye)||void 0,embed:Ce(t,De)||void 0},r=Ce(t,Se)||void 0;return{input:a,output:u,tool_support:r,tool_support_streaming:r}}const Me={"gemini-2.0-flash-lite-001":{input:{text:!0,image:!0,video:!0,audio:!0,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1}},we={gemini:{input:{text:!0,image:!0,video:!0,audio:!0,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"gemini-2.5-flash-image":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"gemini-3.0-pro-image":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"gemini-3.0-flash-image":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},imagen:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"imagen-3.0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"imagen-3.0-capability":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"imagen-4.0":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},"imagen-4.0-capability":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!1,image:!0,video:!1,audio:!1,embed:!1},tool_support:!1},claude:{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},llama:{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"llama-2":{input:{text:!0,image:!1,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!1},"llama-3.2":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0},"llama-4":{input:{text:!0,image:!0,video:!1,audio:!1,embed:!1},output:{text:!0,image:!1,video:!1,audio:!1,embed:!1},tool_support:!0}},ke=["image"],Le=["video"],Ge=["audio"],Pe=["text"],je=["image"],qe=["video"],We=["audio"],Ye=["text"],He=["embed"],Fe=["tool","sonnet","opus","gemini","claude"];function Ke(e,t){return t.some(t=>e.includes(t))}function Be(e){const t=function(e){const t=e.toLowerCase().split("/");return t[t.length-1]}(e),o=Me[t];if(o)return o;let i,n=0;for(const e of Object.keys(we))t.startsWith(e)&&e.length>n&&(i=e,n=e.length);if(i)return we[i];return{input:{text:Ke(t,Pe)||void 0,image:Ke(t,ke)||void 0,video:Ke(t,Le)||void 0,audio:Ke(t,Ge)||void 0,embed:!1},output:{text:Ke(t,Ye)||void 0,image:Ke(t,je)||void 0,video:Ke(t,qe)||void 0,audio:Ke(t,We)||void 0,embed:Ke(t,He)||void 0},tool_support:Ke(t,Fe)||void 0}}function Ve(e,t){if(e.startsWith("locations/")){const t=e.split("/");t.length>=3&&(e=t.slice(2).join("/"))}const o=function(e,t){switch(t?.toLowerCase()){case w.vertexai:return Be(e);case w.openai:return Ue(e);case w.openai_compatible:return Qe(e);case w.bedrock:return fe(e);case w.azure_foundry:return function(e){const{baseModel:t}=function(e){const t=e.split("::");return 2===t.length?{deploymentName:t[0],baseModel:t[1]}:{deploymentName:e,baseModel:e}}(e),o=t.toLowerCase(),i=H[o];if(i)return oe(i,o);let n,a=0;for(const e of Object.keys(F))o.startsWith(e)&&e.length>a&&(n=e,a=e.length);if(n)return oe(F[n],o);const u={text:te(o,z)||!0,image:te(o,K)||void 0,video:te(o,B)||void 0,audio:te(o,V)||void 0,embed:!1},r={text:te(o,$)||!0,image:te(o,Q)||void 0,video:te(o,J)||void 0,audio:te(o,Z)||void 0,embed:te(o,X)||void 0},d=te(o,ee)||void 0;return oe({input:u,output:r,tool_support:d,tool_support_streaming:d||void 0},o)}(e);case w.groq:case w.togetherai:case w.mistralai:return Qe(e);case w.xai:return{input:{text:!0,image:e.includes("vision")},output:{text:!0},tool_support:!0,tool_support_streaming:!1};default:return e.startsWith("gpt")?Ue(e):e.startsWith("grok")?{input:{text:!0,image:e.includes("vision")},output:{text:!0},tool_support:!0,tool_support_streaming:!1}:e.startsWith("publishers/")?Be(e):e.startsWith("arn:aws")?fe(e):{input:{},output:{}}}}(e,t);return o.input.audio=!1,o.output.audio=!1,o.output.video=!1,o}const ze=["image","embed","moderation","whisper","sora","dall-e","tts"];function Qe(e){const t=Ue(e);if(void 0!==t.tool_support)return t;const o=e.toLowerCase(),i=ze.some(e=>o.includes(e));return{input:{text:!0},output:{text:!0},tool_support:!i,tool_support_streaming:!i}}function Je(e,t,o=!1){const i=Ve(e,t);return o?!!i.tool_support_streaming:!!i.tool_support}var Ze,$e,Xe,et;L.max_tokens,G.numeric,L.temperature,G.numeric,L.top_p,G.numeric,L.top_k,G.numeric,L.presence_penalty,G.numeric,L.frequency_penalty,G.numeric,L.stop_sequence,G.string_list,function(e){e.TEXT_IMAGE="TEXT_IMAGE",e.EDIT_MODE_INPAINT_REMOVAL="EDIT_MODE_INPAINT_REMOVAL",e.EDIT_MODE_INPAINT_INSERTION="EDIT_MODE_INPAINT_INSERTION",e.EDIT_MODE_BGSWAP="EDIT_MODE_BGSWAP",e.EDIT_MODE_OUTPAINT="EDIT_MODE_OUTPAINT",e.CUSTOMIZATION_SUBJECT="CUSTOMIZATION_SUBJECT",e.CUSTOMIZATION_STYLE="CUSTOMIZATION_STYLE",e.CUSTOMIZATION_CONTROLLED="CUSTOMIZATION_CONTROLLED",e.CUSTOMIZATION_INSTRUCT="CUSTOMIZATION_INSTRUCT"}(Ze||(Ze={})),function(e){e.MASK_MODE_USER_PROVIDED="MASK_MODE_USER_PROVIDED",e.MASK_MODE_BACKGROUND="MASK_MODE_BACKGROUND",e.MASK_MODE_FOREGROUND="MASK_MODE_FOREGROUND",e.MASK_MODE_SEMANTIC="MASK_MODE_SEMANTIC"}($e||($e={})),function(e){e.HIGH="HIGH",e.LOW="LOW",e.THINKING_LEVEL_UNSPECIFIED="THINKING_LEVEL_UNSPECIFIED"}(Xe||(Xe={})),function(e){e.virtual_lb="virtual_lb",e.virtual_mediator="virtual_mediator",e.test="test"}(et||(et={}));const tt={...w,...et},ot={virtual_lb:{id:et.virtual_lb,name:"Virtual - Load Balancer",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},virtual_mediator:{id:et.virtual_mediator,name:"Virtual - Mediator",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1},test:{id:et.test,name:"Test LLM",requiresApiKey:!1,requiresEndpointUrl:!1,supportSearch:!1}},it={...k,...ot},nt="id name provider enabled_models default_model endpoint_url allowed_projects account created_at updated_at",at="id name tags description";var ut,rt,dt,pt,st;!function(e){e.gladia="gladia",e.github="github",e.aws="aws",e.magic_pdf="magic_pdf",e.serper="serper",e.exa="exa",e.linkup="linkup",e.resend="resend",e.ask_user_webhook="ask_user_webhook"}(ut||(ut={})),function(e){e.analyzed_pages="analyzed_pages",e.extracted_tables="extracted_tables",e.analyzed_images="analyzed_images",e.input_token_used="input_token_used",e.output_token_used="output_token_used",e.task_run="task_run"}(rt||(rt={}));class mt{constructor(e,t,o){this.parent=e,this.parentUnits=t,this.spanUnits=o,this.unitsDone=0}done(e){const t=this.spanUnits-this.unitsDone;t&&((!e||e>t)&&(e=t),this.unitsDone+=e,this.parent.done(e*this.parentUnits/this.spanUnits))}get parentUnitsDone(){return Math.round(this.unitsDone*this.parentUnits/this.spanUnits)}get isDone(){return this.unitsDone>=this.spanUnits}}class lt{constructor(e){this.total=e,this.unitsDone=0}get fraction(){return this.unitsDone/this.total}get percent(){return Math.round(100*this.fraction)}get isDone(){return this.unitsDone>=this.total}done(e){const t=this.total-this.unitsDone;t&&((!e||e>t)&&(e=t),this.unitsDone+=e)}span(e,t){return new mt(this,e,t||e)}}function ct(e,t){switch(t){case dt.owner:return!0;case dt.admin:return e!==dt.billing&&e!==dt.owner;case dt.developer:return e===dt.developer;case dt.billing:return e===dt.billing;default:return!1}}!function(e){e.owner="owner",e.admin="admin",e.manager="manager",e.developer="developer",e.application="application",e.consumer="consumer",e.executor="executor",e.reader="reader",e.billing="billing",e.member="member",e.app_member="app_member",e.content_superadmin="content_superadmin"}(dt||(dt={})),function(e){e.public="public",e.account="account",e.project="project"}(pt||(pt={})),function(e){e.content_type="content_type",e.intake="intake",e.analysis="analysis",e.non_applicable="non_applicable"}(st||(st={}));const _t={ExtractInformation:st.intake,SelectDocumentType:st.intake,GenerateMetadataModel:st.content_type,ChunkDocument:st.intake,IdentifyTextSections:st.intake,AnalyzeDocument:st.analysis,ReduceTextSections:st.analysis,GenericAgent:st.non_applicable,AdhocTaskAgent:st.non_applicable,Mediator:st.non_applicable,AnalyzeConversation:st.analysis,GetAgentConversationTopic:st.analysis};function gt(e){e.startsWith("sys:")&&(e=e.substring(4));const t=_t[e];if(t!==st.non_applicable)return t||void 0}var vt,bt;!function(e){e.text="text",e.image="image",e.properties="properties"}(vt||(vt={})),function(e){e.full_text="full_text"}(bt||(bt={}));const ft={...vt,...bt},Et="id name account",xt={en:"English",zh:"Chinese",es:"Spanish",hi:"Hindi",ar:"Arabic",pt:"Portuguese",bn:"Bengali",ru:"Russian",ja:"Japanese",de:"German",fr:"French",ko:"Korean",it:"Italian",tr:"Turkish",vi:"Vietnamese",pl:"Polish",uk:"Ukrainian",nl:"Dutch",th:"Thai",el:"Greek",cs:"Czech",sv:"Swedish",ro:"Romanian",hu:"Hungarian",da:"Danish",fi:"Finnish",no:"Norwegian",he:"Hebrew",id:"Indonesian",fa:"Persian"};var Tt,ht,Nt,It,At;!function(e){e.draft="draft",e.published="published",e.archived="archived"}(Tt||(Tt={})),function(e){e.chat="chat",e.template="template"}(ht||(ht={})),function(e){e.jst="jst",e.handlebars="handlebars",e.text="text"}(Nt||(Nt={})),function(e){e.project="Project",e.projects="Projects",e.environment="Environment",e.user="User",e.account="Account",e.interaction="Interaction",e.userGroup="UserGroup"}(It||(It={})),function(e){e.active="active",e.archived="archived"}(At||(At={}));const Ot="id name description tags created_at updated_at",yt={type:"object",description:"Represent a rendition of a file stored in an object. It will be stored as a separate object in the database.",properties:{mime_type:{type:"string",description:"The format of the rendition. This is a MIME type."},source_etag:{type:"string",description:"The ETag of the file used for the rendition.",nullable:!0},height:{type:"integer",description:"The height of the rendition",nullable:!0},width:{type:"integer",description:"The width of the rendition",nullable:!0},multipart:{type:"boolean",description:"If the rendition is a multi-part rendition",nullable:!0,default:!1},total_parts:{type:"integer",description:"The total number of parts in the rendition",nullable:!0}},required:["mime_type"]},Rt={type:"object",description:"Represent a semantic chunk of a document",properties:{source_etag:{type:"string",description:"The ETag of the file used for the rendition.",nullable:!0},part_number:{type:"integer",description:"The part number of the chunk"},title:{type:"string",description:"The title of the chunk",nullable:!0},source_line_start:{type:"integer",description:"The line number where the chunk starts",nullable:!0},source_line_end:{type:"integer",description:"The line number where the chunk ends",nullable:!0},type:{type:"string",description:"The type of the chunk",enum:["text","image","table","chart","diagram","code","other"],nullable:!0},page_number:{type:"integer",description:"The page number of the document part",nullable:!0},description:{type:"string",description:"The description of the document part, if it's an image, the exhaustive description of the image",nullable:!0},height:{type:"integer",description:"The height of the rendition",nullable:!0},width:{type:"integer",description:"The width of the rendition",nullable:!0}},required:["part_number"]},Dt={EVERY_HOUR:"0 * * * *",EVERY_DAY_MIDNIGHT:"0 0 * * *",EVERY_DAY_9AM:"0 9 * * *",EVERY_MONDAY_MIDNIGHT:"0 0 * * MON",EVERY_WEEKDAY_9AM:"0 9 * * MON-FRI",FIRST_OF_MONTH:"0 0 1 * *"},St={EVERY_HOUR:"Every hour",EVERY_DAY_MIDNIGHT:"Daily at midnight",EVERY_DAY_9AM:"Daily at 9:00 AM",EVERY_MONDAY_MIDNIGHT:"Every Monday at midnight",EVERY_WEEKDAY_9AM:"Weekdays at 9:00 AM",FIRST_OF_MONTH:"First day of month at midnight"};var Ct,Ut,Mt,wt;!function(e){e.COLLECTION_ID="x-collection-id",e.PROCESSING_PRIORITY="x-processing-priority",e.CREATE_REVISION="x-create-revision",e.REVISION_LABEL="x-revision-label",e.SUPPRESS_WORKFLOWS="x-suppress-workflows"}(Ct||(Ct={})),function(e){e.DATA_STORE_ID="x-data-store-id"}(Ut||(Ut={})),function(e){e.created="created",e.processing="processing",e.ready="ready",e.completed="completed",e.failed="failed",e.archived="archived"}(Mt||(Mt={})),function(e){e.Video="video",e.Image="image",e.Audio="audio",e.Document="document",e.Code="code",e.Other="other"}(wt||(wt={}));const kt="Poster",Lt="Audio",Gt="Web",Pt="PDF";function jt(e){return e.id||e.code}function qt(e){return e.includes(":")}var Wt,Yt,Ht;!function(e){e.single="single",e.multiple="multiple",e.none="none"}(Wt||(Wt={})),function(e){e.jpeg="jpeg",e.png="png",e.webp="webp"}(Yt||(Yt={})),function(e){e.docx="docx",e.pdf="pdf"}(Ht||(Ht={}));const Ft={"image/*":[Yt.jpeg,Yt.png,Yt.webp],"video/*":[Yt.jpeg,Yt.png],"application/pdf":[Yt.jpeg,Yt.png,Yt.webp],"text/markdown":[Ht.pdf,Ht.docx],"text/*":[Ht.docx],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[Ht.pdf],"application/msword":[Ht.pdf],"application/vnd.openxmlformats-officedocument.presentationml.presentation":[Ht.pdf],"application/vnd.ms-powerpoint":[Ht.pdf]};function Kt(e,t){if(!e)return!1;const o=t,i=Ft[e];if(i&&i.some(e=>e===o))return!0;const[n]=e.split("/"),a=Ft[`${n}/*`];return!(!a||!a.some(e=>e===o))}function Bt(e){if(!e)return[];if(Ft[e])return[...Ft[e]];const[t]=e.split("/"),o=Ft[`${t}/*`];return o?[...o]:[]}function Vt(e){return Kt(e,Yt.jpeg)}var zt,Qt,Jt,Zt,$t,Xt;function eo(e){return"objectIds"===e.input?.inputType?e.input.objectIds:e.objectIds?e.objectIds:[]}function to(e){return e.type===Xt.THOUGHT&&!!e.details&&"object"==typeof e.details&&"string"==typeof e.details.tool}function oo(e){return e.type===Xt.UPDATE&&!!e.details&&"object"==typeof e.details&&("document_created"===e.details.event_class||"document_updated"===e.details.event_class)&&"string"==typeof e.details.document_id}function io(e){return e.type===Xt.SYSTEM&&!!e.details&&"object"==typeof e.details&&"file_processing"===e.details.system_type&&Array.isArray(e.details.files)}function no(e){return e.type===Xt.PLAN&&!!e.details&&"object"==typeof e.details&&Array.isArray(e.details.plan)}function ao(e){return e.type===Xt.REQUEST_INPUT&&!!e.details&&"object"==typeof e.details}function uo(e){return"object"==typeof e&&null!==e&&"t"in e}function ro(e){return"object"==typeof e&&null!==e&&"type"in e&&!("t"in e)}!function(e){e.normal="normal",e.low="low"}(zt||(zt={})),function(e){e.create="create",e.change_type="change_type",e.update="update",e.revision_created="revision_created",e.delete="delete",e.workflow_finished="workflow_finished",e.workflow_execution_request="workflow_execution_request",e.api_request="api_request"}(Qt||(Qt={})),function(e){e.SCHEDULED="scheduled",e.RUNNING="running",e.COMPLETED="completed",e.FAILED="failed",e.CANCELED="canceled",e.TIMED_OUT="timed_out",e.TERMINATED="terminated",e.SENT="sent",e.RECEIVED="received"}(Jt||(Jt={})),function(e){e.ACTIVITY="activity",e.CHILD_WORKFLOW="childWorkflow",e.SIGNAL="signal",e.TIMER="timer"}(Zt||(Zt={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.RUNNING=1]="RUNNING",e[e.COMPLETED=2]="COMPLETED",e[e.FAILED=3]="FAILED",e[e.CANCELED=4]="CANCELED",e[e.TERMINATED=5]="TERMINATED",e[e.CONTINUED_AS_NEW=6]="CONTINUED_AS_NEW",e[e.TIMED_OUT=7]="TIMED_OUT"}($t||($t={})),function(e){e[e.SYSTEM=0]="SYSTEM",e[e.THOUGHT=1]="THOUGHT",e[e.PLAN=2]="PLAN",e[e.UPDATE=3]="UPDATE",e[e.COMPLETE=4]="COMPLETE",e[e.WARNING=5]="WARNING",e[e.ERROR=6]="ERROR",e[e.ANSWER=7]="ANSWER",e[e.QUESTION=8]="QUESTION",e[e.REQUEST_INPUT=9]="REQUEST_INPUT",e[e.IDLE=10]="IDLE",e[e.TERMINATED=11]="TERMINATED",e[e.STREAMING_CHUNK=12]="STREAMING_CHUNK",e[e.BATCH_PROGRESS=13]="BATCH_PROGRESS"}(Xt||(Xt={}));const po={system:Xt.SYSTEM,thought:Xt.THOUGHT,plan:Xt.PLAN,update:Xt.UPDATE,complete:Xt.COMPLETE,warning:Xt.WARNING,error:Xt.ERROR,answer:Xt.ANSWER,question:Xt.QUESTION,request_input:Xt.REQUEST_INPUT,idle:Xt.IDLE,terminated:Xt.TERMINATED,streaming_chunk:Xt.STREAMING_CHUNK,batch_progress:Xt.BATCH_PROGRESS},so={0:Xt.SYSTEM,1:Xt.THOUGHT,2:Xt.PLAN,3:Xt.UPDATE,4:Xt.COMPLETE,5:Xt.WARNING,6:Xt.ERROR,7:Xt.ANSWER,8:Xt.QUESTION,9:Xt.REQUEST_INPUT,10:Xt.IDLE,11:Xt.TERMINATED,12:Xt.STREAMING_CHUNK,13:Xt.BATCH_PROGRESS};function mo(e){return"number"==typeof e?so[e]??Xt.UPDATE:"string"==typeof e?po[e]??Xt.UPDATE:Xt.UPDATE}function lo(e){const t={t:mo(e.type)};if(e.message&&(t.m=e.message),e.workstream_id&&"main"!==e.workstream_id&&(t.w=e.workstream_id),e.timestamp&&(t.ts=e.timestamp),t.t===Xt.STREAMING_CHUNK&&e.details){e.details.is_final&&(t.f=1)}else e.details&&(t.d=e.details);return t}function co(e){const t="string"==typeof e?JSON.parse(e):e;if(uo(t))return t;if(ro(t))return lo(t);throw new Error("Unknown message format")}function _o(e,t={}){const o={t:e};return t.message&&(o.m=t.message),t.workstreamId&&"main"!==t.workstreamId&&(o.w=t.workstreamId),t.details&&(o.d=t.details),t.isFinal&&(o.f=1),t.timestamp&&(o.ts=t.timestamp),o}function go(e,t=""){const o={type:e.t,timestamp:e.ts||Date.now(),workflow_run_id:t,message:e.m||"",workstream_id:e.w||"main"};return void 0!==e.d&&(o.details=e.d),e.t===Xt.STREAMING_CHUNK&&(o.details={..."object"==typeof e.d?e.d:{},streaming_id:e.w||"main",is_final:1===e.f,activity_id:e.i}),o}var vo;function bo(e){return`workflow:${e}:channel`}function fo(e){return`workflow:${e}:updates`}!function(e){e.UPLOADING="uploading",e.PROCESSING="processing",e.READY="ready",e.ERROR="error"}(vo||(vo={}));const Eo="low_priority";function xo(e){return"pdf"===e.format||"docx"===e.format}function To(e){return e===$t.COMPLETED||e===$t.FAILED||e===$t.CANCELED||e===$t.TERMINATED||e===$t.TIMED_OUT}const ho={TERMINATE:"TERMINATE",ABANDON:"ABANDON",REQUEST_CANCEL:"REQUEST_CANCEL",PARENT_CLOSE_POLICY_UNSPECIFIED:void 0,PARENT_CLOSE_POLICY_TERMINATE:"TERMINATE",PARENT_CLOSE_POLICY_ABANDON:"ABANDON",PARENT_CLOSE_POLICY_REQUEST_CANCEL:"REQUEST_CANCEL"};function No(e){return"apikey"===e.type}function Io(e){return"user"===e.type}function Ao(e){return"project"===e.type}function Oo(e){return"environment"===e.type}function yo(e){return"agent"===e.type}function Ro(e){return"service_account"===e.type}var Do,So;!function(e){e.created="created",e.building="building",e.prepared="prepared",e.processing="processing",e.completed="completed",e.cancelled="cancelled",e.failed="failed"}(Do||(Do={})),function(e){e.userInvite="user-invite",e.migration="migration"}(So||(So={}));const Co="id name email picture";var Uo,Mo,wo;!function(e){e.aws="aws",e.gcp="gcp",e.azure="azure"}(Uo||(Uo={})),function(e){e.stripe="stripe",e.invoice="invoice"}(Mo||(Mo={})),function(e){e.vertesia="vertesia",e.partner="partner",e.free="free",e.customer="customer",e.unknown="unknown"}(wo||(wo={}));const ko="id name";function Lo(e,t){return e.slice(-6)+"_"+t.slice(-6)}function Go(e){return Lo(e.account,e.id)}function Po(e){return{name:e.name,description:e.description,input_schema:e.input_schema}}function jo(e){return e?e.map(Po):e}function qo(e){if(!e)return e;if(Array.isArray(e))for(const t of e)qo(t);else if("object"==typeof e){const t=e;for(const[e,o]of Object.entries(t))("editor"!==e||"textarea"!==o&&"document"!==o&&"media"!==o)&&("format"!==e||"textarea"!==o&&"document"!==o&&"media"!==o)?"object"==typeof o&&qo(o):delete t[e]}return e}function Wo(e){const t={};let o=[];for(const i of e)if(i.properties){if(i.required)for(const e of i.required)o.includes(e)||o.push(e);Object.assign(t,i.properties)}return Object.keys(t).length>0?{properties:t,required:o,type:"object"}:null}function Yo(e){const t={};let o=new Set;for(const i of e)if(i.template?.inputSchema?.properties){const e=i.template?.inputSchema;if(e.required)for(const t of e.required)o.add(t);Object.assign(t,e.properties)}else i.type===ht.chat&&(Object.assign(t,{chat:{type:"array",items:{type:"object",properties:{role:{type:"string",enum:[P.assistant,P.user]},content:{type:"string"}},required:["role","content"]}}}),o.add("chat"));return Object.keys(t).length>0?{properties:t,required:Array.from(o)}:null}function Ho(e){return e.prompts?Yo(e.prompts):null}function Fo(e){const t={};let o=new Set;for(const i of e)if(i.schema?.properties){const e=i.schema;if(e.required)for(const t of e.required)o.add(t);Object.assign(t,e.properties)}return Object.keys(t).length>0?{properties:t,required:Array.from(o)}:null}var Ko,Bo,Vo,zo;!function(e){e[e.COMPLETION_RESULT_V1=20250925]="COMPLETION_RESULT_V1",e[e.DOWNLOAD_URL_NO_MIME_TYPE_V1=20260210]="DOWNLOAD_URL_NO_MIME_TYPE_V1"}(Ko||(Ko={})),function(e){e.AgentRunStarted="agent_run_started",e.AgentRunCompleted="agent_run_completed",e.LlmCall="llm_call",e.ToolCall="tool_call"}(Bo||(Bo={})),function(e){e.Start="start",e.ResumeTools="resume_tools",e.ResumeUser="resume_user",e.Checkpoint="checkpoint",e.NestedInteraction="nested_interaction"}(Vo||(Vo={})),function(e){e.Builtin="builtin",e.Interaction="interaction",e.Remote="remote",e.Skill="skill"}(zo||(zo={}));export{Lt as AUDIO_RENDITION_NAME,o as AccessControlPrincipalType,t as AccessControlResourceType,ko as AccountRefPopulate,wo as AccountType,Bo as AgentEventType,Xt as AgentMessageType,g as AgentSearchScope,i as ApiKeyTypes,Ko as ApiVersions,Mo as BillingMethod,Dt as CRON_PRESETS,St as CRON_PRESET_LABELS,At as CollectionStatus,f as ConfigModes,E as ConfigModesDescription,x as ConfigModesOptions,Qt as ContentEventName,wt as ContentNature,Ct as ContentObjectApiHeaders,zt as ContentObjectProcessingPriority,Mt as ContentObjectStatus,et as CustomProviders,ot as CustomProvidersList,R as DATA_COLUMN_TYPE_TO_DUCKDB,M as DEFAULT_DASHBOARD_LAYOUT,C as DEFAULT_RETENTION_CONFIG,U as DashboardStatus,h as DataColumnType,Ut as DataStoreApiHeaders,D as DataStoreStatus,Uo as Datacenters,Rt as DocumentPartSchema,nt as ExecutionEnvironmentRefPopulate,b as ExecutionRunRefSelect,m as ExecutionRunStatus,vo as FileProcessingStatus,bt as FullTextType,Yt as ImageRenditionFormat,S as ImportStatus,d as InteractionRefPopulate,p as InteractionRefWithSchemaPopulate,s as InteractionStatus,Eo as LOW_PRIORITY_TASK_QUEUE,Vo as LlmCallType,Ht as MarkdownRenditionFormat,rt as MeterNames,T as ModelSource,Pt as PDF_RENDITION_NAME,kt as POSTER_RENDITION_NAME,ho as ParentClosePolicy,e as Permission,n as PrincipalType,lt as Progress,Et as ProjectRefPopulate,dt as ProjectRoles,ht as PromptSegmentDefType,Tt as PromptStatus,yt as RenditionSchema,It as ResolvableRefType,pt as ResourceVisibility,c as RunDataStorageDescription,l as RunDataStorageLevel,_ as RunDataStorageOptions,v as RunSourceTypes,xt as SUPPORTED_SEARCH_LANGUAGES,_t as SYSTEM_INTERACTION_CATEGORIES,ft as SearchTypes,N as SemanticColumnType,vt as SupportedEmbeddingTypes,ut as SupportedIntegrations,tt as SupportedProviders,it as SupportedProvidersList,st as SystemInteractionCategory,Jt as TaskStatus,Zt as TaskType,zo as TelemetryToolType,Nt as TemplateType,Do as TrainingSessionStatus,So as TransientTokenType,at as UserGroupRefPopulate,Co as UserRefPopulate,Gt as WEB_VIDEO_RENDITION_NAME,Ot as WorkflowDefinitionRefPopulate,$t as WorkflowExecutionStatus,Wt as WorkflowRuleInputType,Yo as _mergePromptsSchema,Kt as canGenerateRendition,_o as createCompactMessage,I as findEmailChannel,jt as getContentTypeRefId,eo as getDocumentIds,Bt as getSupportedRenditionFormats,gt as getSystemInteractionCategory,Lo as getTenantId,Go as getTenantIdFromProject,bo as getWorkflowChannel,fo as getWorkflowUpdatesKey,A as hasEmailChannel,yo as isAgentRequest,No as isApiKeyRequest,uo as isCompactMessage,oo as isDocumentEventMessage,u as isEmailChannel,Oo as isEnvironmentRequest,io as isFileProcessingMessage,qt as isInCodeType,r as isInteractiveChannel,ro as isLegacyMessage,xo as isMarkdownRenditionVars,no as isPlanMessage,Ao as isProjectRequest,ao as isRequestInputMessage,ct as isRoleIncludedIn,Ro as isServiceAccountRequest,to as isToolCallMessage,Io as isUserRequest,To as isWorkflowTerminalStatus,Fo as mergeInCodePromptSchemas,Wo as mergeJSONSchemas,Ho as mergePromptsSchema,mo as normalizeMessageType,a as normalizeToolCollection,co as parseMessage,qo as removeExtraProperties,Po as sanitizeToolDefinition,jo as sanitizeToolDefinitions,Je as supportsToolUse,Vt as supportsVisualRendition,go as toAgentMessage,lo as toCompactMessage,O as updateEmailChannel,y as updateEmailThreading};
|
|
2
2
|
//# sourceMappingURL=vertesia-common.js.map
|