PageSourceSearch

https://teleon.ai/_next/static/chunks/23m177so3g2cs.js

js teleon.ai collected 2026-10-05 14:45:06 UTC 36,330 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,4581,64885,e=>{"use strict";function t(e,...n){let o,r=e&&"object"==typeof e.payload&&e.payload?e.payload:{},i=(o=e&&"object"==typeof e.payload&&e.payload?e.payload:{}).event&&"object"==typeof o.event?o.event:o;for(let e of n){if(null!=r[e]&&""!==r[e])return r[e];if(null!=i[e]&&""!==i[e])return i[e]}return null}function n(e){return String(e&&e.event_type||"").toLowerCase()}let o=e=>"string"==typeof e&&e?e:null;function r(e){return{traceId:o(t(e,"trace_id")),spanId:o(t(e,"span_id")),parentSpanId:o(t(e,"parent_span_id"))}}let i=Object.freeze({request_start:"request",request_end:"request",agent_response:"request",agent_action:"turn",agent_finish:"turn",llm_call:"llm_call",llm_call_pre:"llm_call",llm_call_post:"llm_call",egress_llm_call_pre:"llm_call",streaming_chunk:"llm_call",streaming_end:"llm_call",tool_call:"tool_call",tool_call_pre:"tool_call",tool_call_post:"tool_call",tool_call_observed:"tool_call",memory_op_pre:"memory_op",memory_op_post:"memory_op",agent_handoff:"subagent",agent_handoff_pre:"subagent"}),a=Object.freeze({request:"request",turn:"turn",llm_call:"model call",tool_call:"tool call",memory_op:"memory",subagent:"sub-agent",gate:"policy gate",step:"step"});function l(e){return i[n(e)]||null}let s=Object.freeze({deny:"deny",block:"deny",blocked:"deny",denied:"deny",require_approval:"held",approval_required:"held",held:"held",redact:"redact",redacted:"redact",flag:"flag",flagged:"flag",escalate:"flag",allow:"allow",allowed:"allow"});function c(e){return s[String(null==e?"":e).trim().toLowerCase()]||null}let u=new Set(["gateway","sidecar"]);function d(e){let t=String(e&&e.provenance||"").toLowerCase();if("enforced"===t)return"platform";if("reported"===t)return"reported";let n=String(e&&e.integration_path||"").toLowerCase();return u.has(n)?"platform":"reported"}function p(e){let n,o=c(e&&e.decision);if(o&&"allow"!==o)return{decision:o,source:"reported"===String(e&&e.provenance||"").toLowerCase()?"reported":"platform"};let r=(n=c(t(e,"decision")))&&"allow"!==n?n:null;return r?{decision:r,source:d(e)}:{decision:o||"allow",source:"none"}}function f(e){let n=t(e,"policy_ids","policy_id");return Array.isArray(n)?n.map(String).filter(Boolean):"string"==typeof n?n.split(",").map(e=>e.trim()).filter(Boolean):[]}let m=Object.freeze({success:{label:"Finished cleanly",decision:"allow"},held:{label:"Held — waiting for a human",decision:"held"},blocked:{label:"Stopped by a policy",decision:"deny"},error:{label:"Failed",decision:"flag"}});function g(e){if("request_end"!==n(e))return null;let o=String(t(e,"status")||"").trim().toLowerCase(),r=m[o];return r?{status:o,label:r.label,decision:r.decision,detail:t(e,"error_detail","detail"),latencyMs:$(t(e,"latency_ms"))}:null}let y=Object.freeze({run:"the agent run",llm:"a model call",tool:"a tool",memory:"a memory operation"});function h(e){if("error"!==n(e))return null;let o=String(t(e,"source")||"").trim().toLowerCase(),r=$(t(e,"attempt"));return{source:o||null,where:y[o]||o||"the run",errorType:t(e,"error_type"),message:t(e,"error_message","error","detail"),attempt:r,toolName:t(e,"tool_name","tool")}}function S(e){let t=h(e);if(!t)return null;let n=t.errorType?`${t.errorType} in ${t.where}`:`${t.where} failed`,o=t.toolName?`${n} (${t.toolName})`:n;return null!=t.attempt?`${o} \xb7 attempt ${t.attempt}`:o}function _(e){let n,o,r,i=(n=t(e,"streamed"),o=$(t(e,"ttft_ms")),r=$(t(e,"stream_chunks")),!0!==n&&null==o&&null==r?null:{streamed:!0===n||null!=o||null!=r,ttftMs:o,chunks:r,chars:$(t(e,"stream_chars")),probes:$(t(e,"stream_probes"))});if(!i)return null;let a=[];return null!=i.ttftMs&&a.push(`first token ${i.ttftMs}ms`),null!=i.chunks&&a.push(`${i.chunks} chunk${1===i.chunks?"":"s"}`),null!=i.chars&&a.push(`${i.chars} chars`),null!=i.probes&&a.push(i.probes>0?`screened ${i.probes}\xd7 mid-stream`:"screened once, at the end"),a.length?`streamed \xb7 ${a.join(" · ")}`:"streamed"}function $(e){if(null==e||""===e)return null;let t=Number(e);return Number.isFinite(t)?t:null}function b(e){let t=$(e&&e.id),n=e&&e.timestamp?Date.parse(e.timestamp):NaN;return{at:Number.isFinite(n)?n:null,id:null==t?Number.MAX_SAFE_INTEGER:t}}function v(e,t){let n=b(e),o=b(t);return null!=n.at&&null!=o.at&&n.at!==o.at?n.at-o.at:n.id-o.id}let w={deny:4,held:3,redact:2,flag:1,allow:0};function T(e,{includeContent:o=!1}={}){let r=n(e),i=[],a=(e,t)=>{null!=t&&""!==t&&i.push({label:e,value:"string"==typeof t?t:JSON.stringify(t)})},s=o&&e&&!0!==e.content_redacted&&e.raw_content?e.raw_content:null,c=e&&e.meaning?e.meaning:r||"event",u=h(e);if(u)return c=S(e),a("message",u.message),{title:c,lines:i,kind:"error"};let d=g(e);if(d)return c=d.label,null!=d.latencyMs&&a(null,`${d.latencyMs}ms end to end`),a("detail",d.detail),{title:c,lines:i,kind:"request"};if("agent_response"===r){c="Final answer judged";let n=f(e);return n.length&&a("rubric",n.join(", ")),a("reason",t(e,"block_reason")),a("profile",t(e,"profile_version")),s&&a("response",O(s.response)),{title:c,lines:i,kind:"request"}}if(r.startsWith("tool_call")){c=t(e,"tool_name","tool")||"tool call",a("reason",t(e,"block_reason")),s&&(a("input",O(s.input)),a("output",O(null!=s.output?s.output:s.result)));let n=$(t(e,"latency_ms"));return null!=n&&a(null,`${n}ms`),{title:c,lines:i,kind:"tool_call"}}if(r.startsWith("llm_call")||"egress_llm_call_pre"===r){c=[t(e,"provider"),t(e,"model")].filter(
1Boolean).join(" · ")||"model call";let n=t(e,"usage")||{},o=$(null!=n.prompt_tokens?n.prompt_tokens:t(e,"prompt_tokens","input_tokens")),r=$(null!=n.completion_tokens?n.completion_tokens:t(e,"output_tokens","completion_tokens"));(null!=o||null!=r)&&a(null,`prompt: ${null==o?"?":o} tokens \xb7 output: ${null==r?"?":r} tokens`);let l=_(e);l&&a(null,l),a("reason",t(e,"block_reason")),s&&a("response",O(s.response));let u=$(t(e,"latency_ms"));return null!=u&&a(null,`${u}ms`),{title:c,lines:i,kind:"llm_call"}}if(r.startsWith("memory_op"))return c=`memory ${t(e,"operation")||"operation"}`,a("store",t(e,"store")),a("reason",t(e,"block_reason")),s&&a("data",O(null!=s.data?s.data:s.result)),{title:c,lines:i,kind:"memory_op"};if(r.startsWith("agent_handoff")){let n=t(e,"from"),o=t(e,"to");return c=n&&o?`${n} → ${o}`:"sub-agent handoff",a("reason",t(e,"block_reason")),{title:c,lines:i,kind:"subagent"}}return"request_start"===r?(c="Request received",a("framework",t(e,"framework")),s&&a("user",O(s.user)),{title:c,lines:i,kind:"request"}):"agent_action"===r?{title:c=`step → ${t(e,"tool")||"tool"}`,lines:i,kind:"turn"}:(a("reason",t(e,"block_reason","reason")),{title:c,lines:i,kind:l(e)||"step"})}function O(e){return null==e?null:"string"==typeof e?e:JSON.stringify(e)}e.s(["SPAN_KIND_LABELS",0,a,"buildRunTrace",0,function(e){let t=(e||[]).filter(Boolean).slice().sort(v),n=new Map,o=[],i=new Set;for(let e of t){let{traceId:t,spanId:a,parentSpanId:s}=r(e);if(t&&i.add(t),!a){o.push(e);continue}let c=n.get(a);c||(c={spanId:a,parentSpanId:s,traceId:t,kind:null,rows:[],children:[],depth:0},n.set(a,c)),!c.parentSpanId&&s&&(c.parentSpanId=s),c.kind||(c.kind=l(e)),c.rows.push(e)}let a=new Map;for(let e of n.values())"request"===e.kind&&e.traceId&&!a.has(e.traceId)&&a.set(e.traceId,e);let s=[];for(let e of n.values()){let t=e.parentSpanId?n.get(e.parentSpanId):null;if(!t&&e.parentSpanId&&e.traceId){let n=a.get(e.traceId);n&&n!==e&&(t=n,e.parentNotLoaded=!0)}t&&t!==e?t.children.push(e):s.push(e)}let c=t.length?b(t[0]).at:null,u=[],d=new Set,p=(e,t)=>{if(d.has(e))return;d.add(e),e.depth=t,e.kind=e.kind||"step",e.children.sort((e,t)=>v(e.rows[0],t.rows[0]));let n=b(e.rows[0]).at;for(let o of(e.offsetMs=null!=c&&null!=n?n-c:null,u.push(e),e.children))p(o,t+1)};for(let e of(s.sort((e,t)=>v(e.rows[0],t.rows[0])),s))p(e,0);for(let e of n.values())d.has(e)||p(e,0);return{spans:u,unplaced:o,rowCount:t.length,traceIds:[...i]}},"describeRow",0,T,"describeSpan",0,function(e,t={}){let o=[];for(let r of e.rows||[]){let i=T(r,t),a=p(r),l=o[o.length-1];if(l&&l.title===i.title){l.lines=l.lines.concat(i.lines),l.eventTypes.push(n(r)),(w[a.decision]||0)>(w[l.decision]||0)&&(l.decision=a.decision,l.source=a.source);continue}o.push({id:r&&null!=r.id?String(r.id):`${e.spanId}:${o.length}`,title:i.title,lines:i.lines,decision:a.decision,source:a.source,eventTypes:[n(r)]})}let r=function(e){let t={decision:"allow",source:"none"};for(let n of e.rows||[]){let e=p(n),o=g(n),r=[e];for(let i of(o&&r.push({decision:o.decision,source:e.source}),h(n)&&r.push({decision:"flag",source:"reported"}),r))(w[i.decision]||0)>(w[t.decision]||0)&&(t=i)}return t}(e);return{spanId:e.spanId,depth:e.depth||0,kind:e.kind||"step",offsetMs:null==e.offsetMs?null:e.offsetMs,decision:r.decision,source:r.source,blocks:o}},"failureLabel",0,S,"failureSummary",0,h,"hasSpanIds",0,function(e){let{traceId:t,spanId:n}=r(e);return!!(t&&n)},"payloadVerdictSource",0,d,"policyIds",0,f,"rowDecision",0,p,"runOutcome",0,g,"siblingRows",0,function(e,t){let n=e&&e.request_id;if(!n)return e?[e]:[];let o=(t||[]).filter(e=>e&&e.request_id===n);return o.length?o:e?[e]:[]},"streamLabel",0,_],64885);let A="/api/v1";class P extends Error{constructor(e,t,n){super("string"==typeof t&&t?t:`Request failed (${e})`),this.status=e,this.body=n}}async function R(e,t={}){let{skipAuthRedirect:n=!1,...o}=t,r=function(){if("u">typeof document)return document.cookie.split("; ").find(e=>e.startsWith("__teleon_csrf="))?.split("=")[1]}(),i=await fetch(e,{...o,credentials:"include",headers:{...o.body?{"Content-Type":"application/json"}:{},...r?{"x-teleon-csrf":r}:{},...o.headers}});if(401===i.status){let e=null;try{e=await i.clone().json()}catch(e){}if(e?.detail?.error==="reauthentication_required")throw new P(401,e.detail.detail||"Confirm it is you before making this change",e);if(!n&&(window.location.pathname.startsWith("/dashboard")||window.location.pathname.startsWith("/approvals
1/"))){let e=window.location.pathname+window.location.search+window.location.hash;window.location.href=`/signin?redirect=${encodeURIComponent(e)}&reason=session_expired`}throw new P(401,"Session expired")}if(!i.ok){let e=null;try{e=await i.json()}catch(e){}throw new P(i.status,function(e,t,n){let o=e?.detail;if("string"==typeof o&&o)return o;if(o&&"object"==typeof o){if("string"==typeof o.message&&o.message)return o.message;if(Array.isArray(o)){let e=o.map(e=>e&&"object"==typeof e?e.msg:null).filter(Boolean);if(e.length)return e.join("; ")}}return"string"==typeof e?.message&&e.message?e.message:"string"==typeof e?.title&&e.title?e.title:n||`Request failed (${t})`}(e,i.status,i.statusText),e)}return i}async function k(e,t={}){let n=await R(e,t);return 204===n.status?null:n.json()}function C(e,t){let n=e.headers.get(t);if(null===n||""===n)return null;let o=Number(n);return Number.isFinite(o)?o:null}async function U(e,t={}){let n=await R(e,t);return{data:204===n.status?null:await n.json(),nextCursor:C(n,"X-Next-Cursor"),total:C(n,"X-Total-Count"),mitigated:C(n,"X-Mitigated-Count")}}async function N(){let e=await fetch("/auth/whoami",{credentials:"include",cache:"no-store"});return e.ok?e.json():null}async function E(){try{await fetch("/auth/logout",{method:"POST",credentials:"include"})}catch(e){}}let D=Object.freeze([Object.freeze({id:"us-east-1",label:"US East (N. Virginia)",default:!0})]);async function I(){try{return function(e){let t=new Set,n=[];for(let o of Array.isArray(e?.regions)?e.regions:[]){let e="string"==typeof o?.id?o.id.trim():"";if(!e||t.has(e))continue;t.add(e);let r="string"==typeof o.label&&o.label.trim()?o.label.trim():e;n.push({id:e,label:r,default:!0===o.default})}return n.length?n:D}(await k(`${A}/regions`,{skipAuthRedirect:!0}))}catch(e){return D}}async function L(e,{limit:t=100,beforeId:n=null}={}){let o=new URLSearchParams({limit:String(t)});null!=n&&o.set("before_id",String(n));let{data:r,nextCursor:i}=await U(`${A}/agents/${e}/audit?${o.toString()}`);return{entries:Array.isArray(r)?r:[],nextCursor:i}}async function J(e,{limit:t=50,offset:n=0}={}){let o=new URLSearchParams({limit:String(t),offset:String(n)}),{data:r,total:i,mitigated:a}=await U(`${A}/agents/${e}/red-team?${o.toString()}`),l=Array.isArray(r)?r:[];return{findings:l,total:null===i?n+l.length:i,mitigated:null===a?l.filter(e=>"mitigated"===e.status).length:a}}async function M(e){try{return await k(`${A}/agents/${e}/red-team/ratchet`)}catch(e){if(e?.status===404)return null;throw e}}function q(e,t=new Date){let n=t.toISOString().slice(0,10);return{...e.from?{period_start:`${e.from}T00:00:00.000Z`}:{},...e.to?{period_end:e.to===n?t.toISOString():`${e.to}T23:59:59.999Z`}:{}}}function j(e,t,n){return k(`${A}/public/dsr/${encodeURIComponent(e)}/requests`,{method:"POST",headers:n?{"Idempotency-Key":n}:{},body:JSON.stringify(t)})}function F(e){return"active"===e?"green":"warming"===e||"stale"===e?"yellow":"red"}function B(e){return e?{...e,light:F(e.state),displayName:e.name,env:e.environment||e.metadata?.environment||"—",regimes:(e.regime_compliance||[]).map(e=>String(e).toLowerCase())}:null}let x={request_start:{type:"request.start",meaning:"Request received"},request_end:{type:"request.end",meaning:"Request finished"},llm_call:{type:"llm.complete",meaning:"Model answered"},llm_call_pre:{type:"llm.call.pre",meaning:"Model call, before it ran"},llm_call_post:{type:"llm.call.post",meaning:"Model call, after it ran"},egress_llm_call_pre:{type:"llm.call.pre",meaning:"Model call, before it ran"},streaming_chunk:{type:"llm.stream.chunk",meaning:"Streamed part of an answer"},streaming_end:{type:"llm.stream.end",meaning:"Streamed answer finished"},agent_response:{type:"agent.response",meaning:"Agent replied to the user"},agent_action:{type:"agent.action",meaning:"Agent took a step"},agent_finish:{type:"agent.finish",meaning:"Agent finished its task"},tool_call:{type:"tool.call",meaning:"Tool used"},tool_call_pre:{type:"tool.call.pre",meaning:"Tool call, before it ran"},tool_call_post:{type:"tool.call.post",meaning:"Tool call, after it ran"},tool_call_observed:{type:"tool.call.observed",meaning:"Tool use recorded"},policy_block:{type:"policy.block",meaning:"Refused by a policy"},violation:{type:"policy.block",meaning:"Refused by a policy"},policy_redact:{type:"policy.redact",meaning:"Sensitive data removed from the reply"},policy_flag:{type:"policy.flag",meaning:"Flagged for review"},policy_allow:{type:"policy.allow",meaning:"Allowed by policy"},policy_decision:{type:"policy.allow",meaning:"Allowed by policy"},policy_tag:{type:"policy.tag",meaning:"Tagged for an auditor"},policy_escalation:{type:"policy.escalate",meaning:"Escalated — somebody was alerted"},policy_shadow_match:{type:"policy.shadow",meaning:"Would have fired (shadow mode)"},score_penalty:{type:"policy.penalty",meaning:"Trust score penalty applied"},semantic_advisory_flag:{type:"policy.advisory",meaning:"Advisory flag raised"},approval_required:{type:"approval.required",meaning:"Held — waiting for a human"},approval_released:{type:"approval.released",meaning:"Approved by a human, call resumed"},judge_queued:{type:"judge.queued",meaning:"Sent for review by the judge"},judge_verdict:{type:"judge.verdict",meaning:"Judge reached a verdict"},custom_signal:{type:"custom.signal",meaning:"Agent published a signal"},memory_op_pre:{type:"memory.op.pre",meaning:"Memory operation, before it ran"},memory_op_post:{type:"memory.op.post",meaning:"Memory operation, after it ran"},agent_handoff:{type:"agent.handoff",meaning:"Agent handed work to another agent"},agent_handoff_pre:{type:"agent.handoff.pre",meaning:"Agent delegation, before it ran"},vault_tokenize:{type:"vault.tokenize",meaning:"Sensitive value replaced with a token"},vault_tokenize_skipped:{type:"vault.skipped",meaning:"Tokenization skipped"},attack_detected:{type:"attack.detected",meaning:"Attack detected"},score_change:{type:"score.change",meaning:"Trust score changed"},usage_warning:{type:"usage.warning",meaning:"Usage approaching a limit"},billing_event:{type:"billing.event",meaning:"Billing event"},onboarding_update:{type:"onboarding.update",meaning:"Setup progress"},dsr_status_change:{type:"dsr.status",meaning:"Data request status changed"},error:{type:"error",meaning:"Something went wrong"},log:{type:"event.log",meaning:"Recorded"}};function z(e,t){let n=x[e];if(n)return n.meaning;let o=String(e||t||"").replace(/[._]+/g," ").trim();return o?o.charAt(0).toUpperCase()+o.slice(1):"Recorded"}let W=Object.fromEntries(Object.entries(x).map(([e,t])=>[e,t.type]));function K(e){let t=new Date(e.timestamp),n=!Number.isNaN(t.getTime()),o=p(e),r=g(e),i=r?r.decision:o.decision,a=e.payload?.event&&"object"==typeof e.payload.event?e.payload.event:e.payload,l=a?.matched_policy,s="string"==typeof l?l.replace(/^Tutorial · /,""):null,c=r?W[e.event_type]||"request.end":"deny"===i?"policy.block":"held"===i?"approval.required":"flag"===i?"policy.flag":"redact"===i&&"policy_redact"===e.event_type?"policy.redact":W[e.event_type]||e.event_type||"event.log",u=S(e)||(r?r.label:null)||("deny"===i?"Refused by a policy":"held"===i?"Held — waiting for a human":"flag"===i?"Flagged for review":"redact"===i?"Sensitive data removed from the reply":z(e.event_type,c));return{...e,raw_content:e.content_redacted?null:e.raw_content,t:n?t.toISOString().slice(11,19):"TIME UNKNOWN",date_label:n?`${["SUN","MON","TUE","WED","THU","FRI","SAT"][t.getUTCDay()]} \xb7 ${String(t.getUTCDate()).padStart(2,"0")} ${["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"][t.getUTCMonth()]} ${t.getUTCFullYear()}`:"DATE UNKNOWN",type:c,meaning:u,decision:i,decision_source:"allow"===i?"none":"none"===o.source?d(e):o.source,run_status:r?r.status:null,stream
1:_(e),col:"deny"===i?"var(--critical)":"flag"===i||"redact"===i||"held"===i?"var(--amber)":"var(--verified)",policy:e.policy_name||s||(a?.tutorial&&"allow"===i?"No policy matched":null)}}function H(e){if(!e)return"—";let t=Math.max(0,(Date.now()-new Date(e).getTime())/1e3);return t<60?`${Math.floor(t)}s ago`:t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:`${Math.floor(t/86400)}d ago`}function G(e){return e?new Date(e).toISOString().slice(0,10):"—"}function X(e){return null==e?"—":e>=1e6?`${(e/1e6).toFixed(2)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}let V="https://gw.teleon.ai",Y="https://app.teleon.ai",Z="https://api.teleon.ai",Q="https://trust.teleon.ai",ee=new URL("/",Q).href,et=new URL(Y).hostname.split(".").includes("staging"),en={ApiError:P,whoami:N,loginUrl:function(){return"/auth/login"},logout:E,fetchOverview:function(){return k(`${A}/account/overview`)},fetchOperationsAttention:function(){return k(`${A}/operations/attention`)},fetchAgents:function(){return k(`${A}/agents`)},fetchAgentCounts:function(){return k(`${A}/account/agent-counts`)},fetchTrustSnapshot:function(e){return k(`${A}/agents/${e}/trust-snapshot`)},fetchAgent:function(e){return k(`${A}/agents/${e}`)},createAgent:function({tenant_id:e,name:t,integration_path:n,description:o,environment:r,region:i,regimes:a,framework:l,capture_content:s}){return k(`${A}/agents`,{method:"POST",body:JSON.stringify({tenant_id:e,name:t,integration_path:n,description:o,environment:r,region:i,regimes:a,framework:l,capture_content:s})})},updateAgent:function(e,t){return k(`${A}/agents/${e}`,{method:"PUT",body:JSON.stringify(t)})},deleteAgent:function(e){return k(`${A}/agents/${e}`,{method:"DELETE"})},fetchAgentProfile:function(e){return k(`${A}/agents/${e}/profile`)},fetchScore:function(e){return k(`${A}/agents/${e}/score`)},fetchRegions:I,fetchFirstRunEligibility:function(){return k(`${A}/onboarding/first-run`)},createFirstRunDemo:function(){return k(`${A}/onboarding/first-run`,{method:"POST",body:JSON.stringify({})})},fetchFirstRunDemo:function(e){return k(`${A}/onboarding/first-run/${encodeURIComponent(e)}`)},fetchAuditEvents:function(e,{limit:t=50}={}){return k(`${A}/agents/${e}/audit?limit=${t}`)},fetchAuditPage:L,verifyAuditChain:function(){return k(`${A}/audit/verify`,{method:"POST",body:JSON.stringify({})})},openAuditStream:function(){return new EventSource(`${A}/stream`)},fetchAnchor:function(e){return k(`${A}/agents/${e}/anchor`)},replayAuditEvent:function(e,t,n={}){return k(`${A}/agents/${e}/audit/${t}/replay`,{method:"POST",body:JSON.stringify(n||{})})},fetchApprovals:function({status:e,assignee:t,priority:n,policyId:o,agentId:r,environment:i,sla:a,sort:l="requested_desc",limit:s=50,offset:c=0}={}){let u=new URLSearchParams({limit:String(s),offset:String(c),sort:l});return e&&u.set("status",e),t&&u.set("assignee",t),n&&u.set("priority",n),o&&u.set("policy_id",o),r&&u.set("agent_id",r),i&&u.set("environment",i),a&&u.set("sla",a),k(`${A}/approvals?${u.toString()}`)},fetchApproval:function(e){return k(`${A}/approvals/${encodeURIComponent(e)}`)},decideApproval:function(e,t,n="",o){return k(`${A}/approvals/${encodeURIComponent(e)}/decision`,{method:"POST",body:JSON.stringify({decision:t,note:n,review_version:o})})},assignApproval:function(e,t,n,o){return k(`${A}/approvals/${encodeURIComponent(e)}/assignment`,{method:"PUT",body:JSON.stringify({assigned_to:t||null,reason:n,review_version:o})})},acknowledgeApproval:function(e,t){return k(`${A}/approvals/${encodeURIComponent(e)}/acknowledge`,{method:"POST",body:JSON.stringify({review_version:t})})},commentOnApproval:function(e,t){return k(`${A}/approvals/${encodeURIComponent(e)}/comments`,{method:"POST",body:JSON.stringify({body:t})})},escalateApproval:function(e,t,n,o){return k(`${A}/approvals/${encodeURIComponent(e)}/escalate`,{method:"POST",body:JSON.stringify({reason:t,destination_role_id:n||null,review_version:o})})},fetchApprovalReceipt:function(e){return k(`${A}/approvals/${encodeURIComponent(e)}/receipt`)},fetchNotifications:function({eventType:e,limit:t=100}={}){let n=new URLSearchParams({limit:String(t)});return e&&n.set("event_type",e),k(`${A}/notifications?${n.toString()}`)},fetchPolicies:function(e){return k(`${A}/agents/${e}/policies`)},createPolicy:function(e,{name:t,description:n,code:o}){return k(`${A}/agents/${e}/policies`,{method:"POST",body:JSON.stringify({name:t,description:n,code:o})})},updatePolicy:function(e,t){return k(`${A}/policies/${e}`,{method:"PATCH",body:JSON.stringify(t)})},deletePolicy:function(e){return k(`${A}/policies/${e}`,{method:"DELETE"})},compilePolicy:function(e,{agent_id:t=null}={}){return k(`${A}/policies/compile`,{method:"POST",body:JSON.stringify({code:e,agent_id:t})})},draftPolicy:function(e){return k(`${A}/policies/draft`,{method:"POST",body:JSON.stringify({code:e})})},fetchRedTeamFindings:J,fetchRedTeamRatchet:M,fetchBadge:function(e){return k(`${A}/agents/${e}/badge`)},fetchPublicRegistrySetting:function(e){return k(`${A}/agents/${e}/public-registry`)},updatePublicRegistrySetting:function(e,t){return k(`${A}/agents/${e}/public-registry`,{method:"PUT",body:JSON.stringify({enabled:!!t})})},fetchBundles:function(e){return k(`${A}/agents/${e}/bundles`)},fetchBundleActivityWindow:function(e){return k(`${A}/agents/${e}/activity-window`)},bundleDateWindow:function(e,t=new Date){let n=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())),o=n.getUTCMonth()-3,r=new Date(Date.UTC(n.getUTCFullYear(),o,1)),i=new Date(Date.UTC(r.getUTCFullYear(),r.getUTCMonth()+1,0)).getUTCDate();r.setUTCDate(Math.min(n.getUTCDate(),i));let a=e?new Date(e):null,l=a&&!Number.isNaN(a.getTime())?new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate())):null,
1s=e=>e.toISOString().slice(0,10);return{from:s(l&&l>r?l:r),to:s(n)}},bundlePeriodPayload:q,generateBundle:function(e,t,n={}){return k(`${A}/agents/${e}/bundles`,{method:"POST",body:JSON.stringify({...t?{regime:t}:{},...q(n)})})},fetchDSRRequests:function(e){return k(`${A}/agents/${e}/dsr`)},fetchAccountDSRRequests:function(e,t){let n=new URLSearchParams;e&&n.set("agent_id",e),t&&n.set("status_filter",t);let o=n.size?`?${n.toString()}`:"";return k(`${A}/account/dsr${o}`)},fetchDSRVerificationDeliveries:function(e){return k(`${A}/account/dsr-verification-deliveries?agent_id=${encodeURIComponent(e)}`)},fetchDSRPortalConfig:function(e){return k(`${A}/account/dsr-portal?agent_id=${encodeURIComponent(e)}`)},updateDSRPortalConfig:function(e,t){return k(`${A}/account/dsr-portal`,{method:"PUT",body:JSON.stringify({agent_id:e,enabled:t})})},fetchAccountDSR:function(e){return k(`${A}/account/dsr/${encodeURIComponent(e)}`)},decideAccountDSR:function(e,{action:t,lock_version:n,reason:o}){return k(`${A}/account/dsr/${encodeURIComponent(e)}/decision`,{method:"POST",body:JSON.stringify({action:t,lock_version:n,reason:o||null})})},uploadManualDSREvidence:function(e,t,n,o){let r=t.name.split(".").pop()?.toLowerCase(),i=t.name.replace(/[^A-Za-z0-9._-]+/g,"-");return k(`${A}/account/dsr/${encodeURIComponent(e)}/manual-evidence`,{method:"PUT",headers:{"Content-Type":t.type||({json:"application/json",csv:"text/csv",pdf:"application/pdf",zip:"application/zip"})[r]||"application/octet-stream","X-Evidence-Filename":i,"X-DSR-Lock-Version":String(n),"X-Evidence-Attestation":function(e){let t=new TextEncoder().encode(JSON.stringify(e)),n="";for(let e of t)n+=String.fromCharCode(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,"")}(o)},body:t})},attestNoDataDSR:function(e,t,n){return k(`${A}/account/dsr/${encodeURIComponent(e)}/no-data`,{method:"POST",body:JSON.stringify({lock_version:t,attestation:n})})},uploadSupplementalDSREvidence:function(e,t,n){let o=t.name.split(".").pop()?.toLowerCase(),r=t.name.replace(/[^A-Za-z0-9._-]+/g,"-");return k(`${A}/account/dsr/${encodeURIComponent(e)}/supplemental-evidence`,{method:"PUT",headers:{"Content-Type":t.type||({json:"application/json",csv:"text/csv",pdf:"application/pdf",zip:"application/zip"})[o]||"application/octet-stream","X-Evidence-Filename":r,"X-DSR-Lock-Version":String(n)},body:t})},releaseAccountDSR:function(e,t){return k(`${A}/account/dsr/${encodeURIComponent(e)}/release`,{method:"POST",body:JSON.stringify({lock_version:t})})},retryAccountDSRFulfillment:function(e){return k(`${A}/account/dsr/${encodeURIComponent(e)}/retry`,{method:"POST"})},submitPublicDSR:j,fetchAccountActivity:function(){return k(`${A}/account/activity`)},fetchEnterpriseSSO:function(){return k(`${A}/account/sso`)},configureEnterpriseSSO:function(e){return k(`${A}/account/sso`,{method:"POST",body:JSON.stringify(e)})},verifyEnterpriseSSODomain:function(){return k(`${A}/account/sso/domain/verify`,{method:"POST"})},fetchEnterpriseSSOTestLogin:function(){return k(`${A}/account/sso/test-login`)},activateEnterpriseSSO:function(e=!1){return k(`${A}/account/sso/activate`,{method:"POST",body:JSON.stringify({enforce:e})})},disconnectEnterpriseSSO:function(){return k(`${A}/account/sso`,{method:"DELETE"})},fetchAccountSecurity:function(){return k(`${A}/account/security`)},fetchAccountProfile:function(){return k(`${A}/account/profile`)},updateAccountProfile:function({given_name:e,family_name:t}){return k(`${A}/account/profile`,{method:"PATCH",body:JSON.stringify({given_name:e,family_name:t}),skipAuthRedirect:!0})},fetchSecurityActivity:function(e=100){return k(`${A}/account/security/activity?limit=${encodeURIComponent(e)}`)},reauthenticateAccount:function(e){return k(`${A}/account/security/reauth/password`,{method:"POST",body:JSON.stringify({password:e}),skipAuthRedirect:!0})},changeAccountPassword:function({current_password:e,new_password:t}){let n={new_password:t};return e&&(n.current_password=e),k(`${A}/account/security/password`,{method:"POST",body:JSON.stringify(n)})},beginPasskeyRegistration:function(){return k(`${A}/account/security/passkeys/begin`,{method:"POST"})},finishPasskeyRegistration:function(e,t,n){return k(`${A}/account/security/passkeys/finish`,{method:"POST",body:JSON.stringify({registration_id:e,public_key_credential:t,name:n})})},renamePasskey:function(e,t){return k(`${A}/account/security/passkeys/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify({name:t})})},removePasskey:function(e){return k(`${A}/account/security/passkeys/${encodeURIComponent(e)}`,{method:"DELETE"})},beginSecurityKeyRegistration:function(){return k(`${A}/account/security/security-keys/begin`,{method:"POST"})},finishSecurityKeyRegistration:function(e,t,n){return k(`${A}/account/security/security-keys/finish`,{method:"POST",body:JSON.stringify({registration_id:e,public_key_credential:t,name:n})})},renameSecurityKey:function(e,t){return k(`${A}/account/security/security-keys/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify({name:t})})},removeSecurityKey:function(e){return k(`${A}/account/security/security-keys/${encodeURIComponent(e)}`,{method:"DELETE"})},beginTotpRegistration:function(){return k(`${A}/account/security/totp/begin`,{method:"POST"})}
1,verifyTotpRegistration:function(e){return k(`${A}/account/security/totp/verify`,{method:"POST",body:JSON.stringify({code:e})})},removeTotp:function(){return k(`${A}/account/security/totp`,{method:"DELETE"})},generateRecoveryCodes:function(){return k(`${A}/account/security/recovery-codes`,{method:"POST"})},removeRecoveryCodes:function(){return k(`${A}/account/security/recovery-codes`,{method:"DELETE"})},fetchAccountSessions:function(){return k(`${A}/account/sessions`)},revokeAccountSession:function(e){return k(`${A}/account/sessions/${encodeURIComponent(e)}`,{method:"DELETE"})},revokeAllAccountSessions:function(){return k(`${A}/account/sessions`,{method:"DELETE"})},fetchTenant:function(){return k(`${A}/account/tenant`)},fetchApiKeys:function(){return k(`${A}/account/api-keys`)},createApiKey:function({name:e,scopes:t=["enforce","ingest","read"],expires_in_days:n=365,agent_id:o=null}){return k(`${A}/account/api-keys`,{method:"POST",body:JSON.stringify({name:e,scopes:t,expires_in_days:n,agent_id:o})})},rotateApiKey:function(e,{grace_period_hours:t=24}={}){return k(`${A}/account/api-keys/${e}/rotate`,{method:"POST",body:JSON.stringify({grace_period_hours:t})})},revokeApiKey:function(e){return k(`${A}/account/api-keys/${e}`,{method:"DELETE"})},fetchSiemDestinations:function(){return k(`${A}/siem-destinations`)},createSiemDestination:function({channel:e,config:t,event_types:n=["security_alert"],name:o="",enabled:r=!0}){return k(`${A}/siem-destinations`,{method:"POST",body:JSON.stringify({channel:e,config:t,event_types:n,name:o,enabled:r})})},updateSiemDestination:function(e,{event_types:t,enabled:n}){return k(`${A}/siem-destinations/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify({event_types:t,enabled:n})})},deleteSiemDestination:function(e,{confirm:t=!1}={}){return k(`${A}/siem-destinations/${encodeURIComponent(e)}${t?"?confirm=true":""}`,{method:"DELETE"})},testSiemDestination:function({channel:e,config:t,destination_id:n}){return k(`${A}/siem-destinations/test`,{method:"POST",body:JSON.stringify({channel:e,config:t,destination_id:n})})},fetchCommonsBenefit:function(e=30){return k(`${A}/account/red-team/commons?days=${e}`)},fetchCorpusContributions:function(){return k(`${A}/account/red-team/contributions`)},fetchMembers:function(){return k(`${A}/account/members`)},inviteMember:function({email:e,role:t}){return k(`${A}/account/invites`,{method:"POST",body:JSON.stringify({email:e,role:t})})},updateMemberRole:function(e,t){return k(`${A}/account/members/${e}`,{method:"PATCH",body:JSON.stringify({role:t})})},removeMember:function(e){return k(`${A}/account/members/${e}`,{method:"DELETE"})},fetchBilling:function(){return k(`${A}/account/billing`)},fetchApprovalRoles:function(){return k(`${A}/account/approval-roles`)},createApprovalRole:function(e){return k(`${A}/account/approval-roles`,{method:"POST",body:JSON.stringify(e)})},updateApprovalRole:function(e,t){return k(`${A}/account/approval-roles/${encodeURIComponent(e)}`,{method:"PUT",body:JSON.stringify(t)})}
1,createBillingCheckout:function(e,t){return k(`${A}/account/billing/checkout`,{method:"POST",headers:{"X-Request-ID":crypto.randomUUID()},body:JSON.stringify({plan:e,interval:t})})},createBillingPortal:function(){return k(`${A}/account/billing/portal`,{method:"POST"})},submitFeedback:function({category:e,message:t,page:n}){return k(`${A}/account/feedback`,{method:"POST",body:JSON.stringify({category:e,message:t,page:n})})},fetchProviders:function(){return k(`${A}/providers`)},upsertProvider:function(e){return k(`${A}/providers`,{method:"PUT",body:JSON.stringify(e)})},deleteProvider:function(e,t){return k(`${A}/providers/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{method:"DELETE"})},testProvider:function(e){return k(`${A}/providers/test`,{method:"POST",body:JSON.stringify(e)})},setActiveTenant:function(e){return k(`${A}/account/active-tenant`,{method:"POST",body:JSON.stringify({tenant_id:e})})},agentLight:F,agentStateLabel:function(e){return({active:"enforcing",warming:"warming",stale:"stale",archived:"archived"})[e]||e},adaptAgent:B,adaptAuditEntry:K,timeAgo:H,fmtDate:G,fmtNum:X,GATEWAY_URL:V,APP_URL:Y,AUDIT_API_URL:Z,TRUST_URL:Q,REGISTRY_URL:ee};window.TeleonAPI=en,e.s(["APP_URL",0,Y,"AUDIT_API_URL",0,Z,"ApiError",0,P,"GATEWAY_URL",0,V,"IS_STAGING",0,et,"TRUST_URL",0,Q,"adaptAgent",0,B,"adaptAuditEntry",0,K,"default",0,en,"defaultRegionId",0,function(e){return(e.find(e=>e.default)||e[0]).id},"eventMeaning",0,z,"fetchPublicDSRAvailability",0,function(e){return k(`${A}/public/dsr/${encodeURIComponent(e)}/availability`)},"fetchPublicDSRStatus",0,function(e,t){return k(`${A}/public/dsr/${encodeURIComponent(e)}/requests/${encodeURIComponent(t)}`)},"fmtDate",0,G,"fmtNum",0,X,"resendPublicDSRVerification",0,function(e,t){return k(`${A}/public/dsr/${encodeURIComponent(e)}/resend`,{method:"POST",body:JSON.stringify({verification_reference:t})})},"submitPublicDSR",0,j,"timeAgo",0,H],4581)},89887,e=>{"use strict";e.i(47167);var t=e.i(4581);async function n(e="/"){await t.default.logout();let o=e.startsWith("/")?e:"/",r=new URLSearchParams({client_id:"392012545583561926",post_logout_redirect_uri:window.location.origin+o});window.location.assign(`https://auth.teleon.ai/oidc/v1/end_session?${r.toString()}`)}e.s(["signOutBrowserSession",0,n])},62696,e=>{"use strict";let t={developer:{slug:"developer",label:"Developer",who:"Solo builders",blurb:"For people shipping prototypes that talk to real users.",monthlyPrice:49,selfServe:!0,features:["Gateway path","3 agents","100k events / month","Private Trust Report","Email support","7-day audit retention"]},team:{slug:"team",label:"Team",who:"Early-stage startups",blurb:"When the first procurement question lands. Middleware unlocks.",monthlyPrice:499,selfServe:!0,features:["+ Middleware path (all frameworks)","10 agents","1M events / month","Natural-language policy compiler","Public Trust Report (no badge)","Slack · webhook · email alerts","SIEM forwarding, Splunk · Datadog · Sumo","30-day audit retention","Business-hour support"]},business:{slug:"business",label:"Business",who:"Growth · procurement-exposed",blurb:"The badge tier. Where Teleon stops being a tool and becomes part of how you sell.",monthlyPrice:2499,selfServe:!0,features:["+ Sidecar path (closed-source)","50 agents","10M events / month","Teleon Trusted Badge","Audit bundles (SOC2 · GDPR · HIPAA · PCI · EU AI Act)","Privacy Vault","SSO · SAML · SCIM","99.9% SLA","1-year audit retention","Priority support · 4hr response"]},enterprise:{slug:"enterprise",label:"Enterprise",who:"F500 · regulated",blurb:"On-prem sidecar, dedicated red-team tenant, co-signed DPA / BAA.",monthlyPrice:null,selfServe:!1}},n=Object.values(t).filter(e=>e.selfServe).map(e=>e.slug),o=new Set(["canceled","incomplete_expired","expired"]),r={active:"healthy",trialing:"healthy",past_due:"warning",unpaid:"critical",canceled:"critical",incomplete:"warning",incomplete_expired:"critical",paused:"warning",inactive:"critical"};e.s(["ANNUAL_DISCOUNT_PERCENT",0,15,"PLAN_CATALOG",0,t,"SELF_SERVE_SLUGS",0,n,"annualPrice",0,function(e){return Math.round(12*Math.round(100*e)*.85)/100},"billingContractState",0,function(e={}){let t=String(e.status||"active").toLowerCase(),r=[...n,"enterprise"].includes(String(e.plan||"").toLowerCase()),i="stripe"===e.provider&&!o.has(t),a=i||r&&!o.has(t);return{active:a,managed:a&&!i,stripe:i}},"purchasePath",0,function(e,t="annual"){return`/dashboard?plan=${e}&interval=${t}#billing`},"roleFor",0,function(e,t){let n=(e?.memberships||[]).find(e=>
1e.tenant_id===t?.id);return n?.role||""},"statusTone",0,function(e){return r[e]||"warning"}])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.