1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[97601],{97601:(e,t,o)=>{o.d(t,{CV:()=>a,HS:()=>p,Mf:()=>$,R9:()=>c,Tn:()=>m,VY:()=>f,Wc:()=>u,ch:()=>h,js:()=>g,lookupSsoApi:()=>d,mg:()=>l});let n="https://genfire-backend-660853459690.us-central1.run.app/api".replace(/\/$/,""),r=n.endsWith("/api")?`${n}/enterprise`:`${n}/api/enterprise`;class i extends Error{constructor(e,t,o){super(e),this.status=t,this.code=o}}async function s(e,t,o){let n=await fetch(e,{...t,headers:{"Content-Type":"application/json",...o?{Authorization:`Bearer ${o}`}:{},...t.headers??{}}}),r=await n.json().catch(()=>({}));if(!n.ok)throw new i(r?.error||r?.message||`Request failed (${n.status})`,n.status,r?.code);return r}function d(e){return s(`${r}/sso/lookup`,{method:"POST",body:JSON.stringify({email:e})})}function u(e){return s(`${r}/policy`,{method:"GET"},e)}function a(e,t){return s(`${r}/${t}/sso`,{method:"GET"},e)}function c(e,t,o){return s(`${r}/${t}/sso`,{method:"PUT",body:JSON.stringify(o)},e)}function m(e,t,o){return s(`${r}/${t}/sso/domain/verify`,{method:"POST",body:JSON.stringify({domain:o})},e)}function p(e,t){return s(`${r}/${t}/policy`,{method:"GET"},e)}function l(e,t,o){return s(`${r}/${t}/policy`,{method:"PUT",body:JSON.stringify(o?{mode:o.mode,modelKeys:o.modelKeys}:{policy:null})},e)}function f(e,t){return s(`${r}/${t}/budgets`,{method:"GET"},e)}function h(e,t,o){return s(`${r}/${t}/budgets`,{method:"PUT",body:JSON.stringify({memberBudgets:o})},e)}function $(e,t,o={}){let n=new URLSearchParams;o.uid&&n.set("uid",o.uid),o.action&&n.set("action",o.action),o.from&&n.set("from",o.from),o.to&&n.set("to",o.to),o.cursor&&n.set("cursor",String(o.cursor)),o.limit&&n.set("limit",String(o.limit));let i=n.toString()?`?${n}`:"";return s(`${r}/${t}/audit${i}`,{method:"GET"},e)}let g={"credits.debit":"Credits spent","team.member.added":"Member added","team.member.removed":"Member removed","team.member.role_changed":"Role changed","sso.updated":"SSO updated","sso.login":"SSO sign-in","policy.updated":"Model policy updated","retention.updated":"Retention updated","retention.purge":"Retention purge","budgets.updated":"Budgets updated","session.created":"Signed in"}}}]);
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.