@whoz-oss/coday-client 0.114.2 → 0.115.2
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/browser/chunk-2DVVHRX4.js +1 -0
- package/browser/chunk-2NHY3763.js +1 -0
- package/browser/{chunk-7V75AFNU.js → chunk-3QJA3PD3.js} +1 -1
- package/browser/chunk-4NNLWDVJ.js +10 -0
- package/browser/chunk-4SMKZ2HA.js +1 -0
- package/browser/{chunk-Q6VCYSB2.js → chunk-4TOD23CW.js} +1 -1
- package/browser/{chunk-QK4YUPJ4.js → chunk-55ETGHKC.js} +1 -1
- package/browser/chunk-5JA4YMVL.js +1 -0
- package/browser/{chunk-P25I3C22.js → chunk-5MXEOOQM.js} +1 -1
- package/browser/{chunk-HX6IQXOO.js → chunk-6LHAGXIC.js} +1 -1
- package/browser/{chunk-OX6WF3Z4.js → chunk-6WUBJOTP.js} +1 -1
- package/browser/chunk-6XQBGSR4.js +1 -0
- package/browser/chunk-AE24ERN3.js +1 -0
- package/browser/{chunk-DSEAUPTG.js → chunk-AE2AQO4B.js} +1 -1
- package/browser/chunk-AWTXRCO7.js +1 -0
- package/browser/chunk-B2QVH3K3.js +1 -0
- package/browser/chunk-FMBLR6NH.js +1 -0
- package/browser/chunk-FZVCANBC.js +1 -0
- package/browser/chunk-H5JAF7XP.js +1 -0
- package/browser/{chunk-227SHMWS.js → chunk-H72Z2LX3.js} +1 -1
- package/browser/chunk-HGEXTRZ7.js +1 -0
- package/browser/{chunk-FL6JPD3W.js → chunk-JCQFYRAF.js} +1 -1
- package/browser/chunk-MN73E3JO.js +1 -0
- package/browser/{chunk-H34KEEJ5.js → chunk-NSSFL3WG.js} +1 -1
- package/browser/{chunk-TIR2HD4O.js → chunk-ORNGVCRW.js} +1 -1
- package/browser/{chunk-2M2BOWAG.js → chunk-OUZFS4TC.js} +1 -1
- package/browser/chunk-SPAN622B.js +1 -0
- package/browser/chunk-TRUXCA4C.js +5 -0
- package/browser/{chunk-OFSMISUU.js → chunk-VVZKXHDD.js} +1 -1
- package/browser/{chunk-KTV6E2MT.js → chunk-WZJ3UIRS.js} +1 -1
- package/browser/{chunk-YF5TCNFL.js → chunk-X6TFXJKZ.js} +1 -1
- package/browser/{chunk-OEWE7VBT.js → chunk-YKARRAPE.js} +1 -1
- package/browser/{chunk-DOKGAGLU.js → chunk-YRNTZU7L.js} +1 -1
- package/browser/{chunk-OIIJPQ2M.js → chunk-ZP4X376S.js} +3 -3
- package/browser/index.html +1 -1
- package/browser/{main-D75VEKMS.js → main-C4MZGYXT.js} +25 -25
- package/package.json +1 -1
- package/browser/chunk-6JCVDUKO.js +0 -10
- package/browser/chunk-APZFPOUA.js +0 -1
- package/browser/chunk-ASYMPPFD.js +0 -1
- package/browser/chunk-DIARVKX4.js +0 -1
- package/browser/chunk-OTLZ4X7Y.js +0 -1
- package/browser/chunk-PC73MTF7.js +0 -1
- package/browser/chunk-PO4TEPXT.js +0 -1
- package/browser/chunk-RS3TLRZ3.js +0 -1
- package/browser/chunk-SLXXGWVF.js +0 -1
- package/browser/chunk-SNDFCTPS.js +0 -1
- package/browser/chunk-TN2PAWIS.js +0 -5
- package/browser/chunk-UVKQUFKA.js +0 -1
- package/browser/chunk-XKPYE4VF.js +0 -1
- package/browser/chunk-ZYBKXGLA.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{P as y,R as F,S as H,T as V,U as J,a as f,b as u,da as k,f as W,lc as D,mc as h,oc as j}from"./chunk-TRUXCA4C.js";var v=class{apiKeys;username;password;accessToken;basePath;withCredentials;encoder;encodeParam;credentials;constructor({accessToken:b,apiKeys:n,basePath:r,credentials:s,encodeParam:o,encoder:t,password:e,username:p,withCredentials:c}={}){n&&(this.apiKeys=n),p!==void 0&&(this.username=p),e!==void 0&&(this.password=e),b!==void 0&&(this.accessToken=b),r!==void 0&&(this.basePath=r),c!==void 0&&(this.withCredentials=c),t&&(this.encoder=t),this.encodeParam=o??(a=>this.defaultEncodeParam(a)),this.credentials=s??{}}selectHeaderContentType(b){if(b.length===0)return;let n=b.find(r=>this.isJsonMime(r));return n===void 0?b[0]:n}selectHeaderAccept(b){if(b.length===0)return;let n=b.find(r=>this.isJsonMime(r));return n===void 0?b[0]:n}isJsonMime(b){let n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return b!==null&&(n.test(b)||b.toLowerCase()==="application/json-patch+json")}lookupCredential(b){let n=this.credentials[b];return typeof n=="function"?n():n}addCredentialToHeaders(b,n,r,s){let o=this.lookupCredential(b);return o?r.set(n,(s??"")+o):r}addCredentialToQuery(b,n,r){let s=this.lookupCredential(b);return s?r.set(n,s):r}defaultEncodeParam(b){let n=b.dataFormat==="date-time"&&b.value instanceof Date?b.value.toISOString():b.value;return encodeURIComponent(String(n))}};var m=new F("basePath");var I=class{encodeKey(b){return encodeURIComponent(b)}encodeValue(b){return encodeURIComponent(b)}decodeKey(b){return decodeURIComponent(b)}decodeValue(b){return decodeURIComponent(b)}};var A=class{basePath="http://localhost:8124";defaultHeaders=new D;configuration;encoder;constructor(b,n){if(this.configuration=n||new v,typeof this.configuration.basePath!="string"){let r=Array.isArray(b)?b[0]:void 0;r!=null&&(b=r),typeof b!="string"&&(b=this.basePath),this.configuration.basePath=b}this.encoder=this.configuration.encoder||new I}canConsumeForm(b){return b.indexOf("multipart/form-data")!==-1}addToHttpParams(b,n,r,s=!1){return typeof n=="object"&&!(n instanceof Date)?this.addToHttpParamsRecursive(b,n,s?r:void 0,s):this.addToHttpParamsRecursive(b,n,r)}addToHttpParamsRecursive(b,n,r,s=!1){if(n==null)return b;if(typeof n=="object"){if(r!=null)return s?Object.keys(n).reduce((o,t)=>o.append(`${r}[${t}]`,n[t]),b):b.append(r,JSON.stringify(n));if(Array.isArray(n))n.forEach(o=>b=this.addToHttpParamsRecursive(b,o,r));else if(n instanceof Date)if(r!=null)b=b.append(r,n.toISOString());else throw Error("key may not be null if value is Date");else Object.keys(n).forEach(o=>{let t=r?`${r}.${o}`:o;b=this.addToHttpParamsRecursive(b,n[o],t)});return b}else if(r!=null)return b.append(r,n);throw Error("key may not be null if value is not object or array")}};var R=class g extends A{constructor(n,r,s){super(r,s);this.httpClient=n}addMessageCase(n,r,s="body",o=!1,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling addMessageCase.");if(r==null)throw new Error("Required parameter addMessageRequest was null or undefined when calling addMessageCase.");let e=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);p!==void 0&&(e=e.set("Accept",p));let c=t?.context??new h,a=t?.transferCache??!0,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";p&&(p.startsWith("text")?l="text":this.configuration.isJsonMime(p)?l="json":l="blob");let x=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}/messages`,{basePath:C,withCredentials:P}=this.configuration;return this.httpClient.request("post",`${C}${x}`,u(f({context:c,body:r,responseType:l},P?{withCredentials:P}:{}),{headers:e,observe:s,transferCache:a,reportProgress:o}))}createCase(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter _case was null or undefined when calling createCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/cases",{basePath:x,withCredentials:C}=this.configuration;return this.httpClient.request("post",`${x}${l}`,u(f({context:p,body:n,responseType:i},C?{withCredentials:C}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}deleteCase(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}getByIdCase(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}getByIdsCase(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling getByIdsCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/cases/by-ids",{basePath:x,withCredentials:C}=this.configuration;return this.httpClient.request("post",`${x}${l}`,u(f({context:p,body:n,responseType:i},C?{withCredentials:C}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}interruptCase(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling interruptCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}/interrupt`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}killCase(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling killCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}/kill`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}listByParentCase(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentCase.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}updateCase(n,r,s="body",o=!1,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateCase.");if(r==null)throw new Error("Required parameter _case was null or undefined when calling updateCase.");let e=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(e=e.set("Accept",p));let c=t?.context??new h,a=t?.transferCache??!0,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";p&&(p.startsWith("text")?l="text":this.configuration.isJsonMime(p)?l="json":l="blob");let x=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:C,withCredentials:P}=this.configuration;return this.httpClient.request("put",`${C}${x}`,u(f({context:c,body:r,responseType:l},P?{withCredentials:P}:{}),{headers:e,observe:s,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||g)(H(j),H(m,8),H(v,8))};static \u0275prov=y({token:g,factory:g.\u0275fac,providedIn:"root"})};var O=class g extends A{constructor(n,r,s){super(r,s);this.httpClient=n}createIntegrationConfig(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter integrationConfig was null or undefined when calling createIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/integration-configs",{basePath:x,withCredentials:C}=this.configuration;return this.httpClient.request("post",`${x}${l}`,u(f({context:p,body:n,responseType:i},C?{withCredentials:C}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}deleteIntegrationConfig(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}getByIdIntegrationConfig(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}getByIdsIntegrationConfig(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling getByIdsIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/integration-configs/by-ids",{basePath:x,withCredentials:C}=this.configuration;return this.httpClient.request("post",`${x}${l}`,u(f({context:p,body:n,responseType:i},C?{withCredentials:C}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}listByParentIntegrationConfig(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentIntegrationConfig.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-configs/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}updateIntegrationConfig(n,r,s="body",o=!1,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateIntegrationConfig.");if(r==null)throw new Error("Required parameter integrationConfig was null or undefined when calling updateIntegrationConfig.");let e=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(e=e.set("Accept",p));let c=t?.context??new h,a=t?.transferCache??!0,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";p&&(p.startsWith("text")?l="text":this.configuration.isJsonMime(p)?l="json":l="blob");let x=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:C,withCredentials:P}=this.configuration;return this.httpClient.request("put",`${C}${x}`,u(f({context:c,body:r,responseType:l},P?{withCredentials:P}:{}),{headers:e,observe:s,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||g)(H(j),H(m,8),H(v,8))};static \u0275prov=y({token:g,factory:g.\u0275fac,providedIn:"root"})};var S=class g extends A{constructor(n,r,s){super(r,s);this.httpClient=n}getTypeIntegrationType(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter type was null or undefined when calling getTypeIntegrationType.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/integration-types/${this.configuration.encodeParam({name:"type",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}listTypesIntegrationType(n="body",r=!1,s){let o=this.defaultHeaders,t=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=s?.context??new h,p=s?.transferCache??!0,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/integration-types",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,u(f({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:p,reportProgress:r}))}static \u0275fac=function(r){return new(r||g)(H(j),H(m,8),H(v,8))};static \u0275prov=y({token:g,factory:g.\u0275fac,providedIn:"root"})};var $=class g extends A{constructor(n,r,s){super(r,s);this.httpClient=n}createNamespace(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter namespace was null or undefined when calling createNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/namespaces",{basePath:x,withCredentials:C}=this.configuration;return this.httpClient.request("post",`${x}${l}`,u(f({context:p,body:n,responseType:i},C?{withCredentials:C}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}deleteNamespace(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}getByIdNamespace(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}getByIdsNamespace(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling getByIdsNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/namespaces/by-ids",{basePath:x,withCredentials:C}=this.configuration;return this.httpClient.request("post",`${x}${l}`,u(f({context:p,body:n,responseType:i},C?{withCredentials:C}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}listAllNamespace(n="body",r=!1,s){let o=this.defaultHeaders,t=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=s?.context??new h,p=s?.transferCache??!0,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/namespaces",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,u(f({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:p,reportProgress:r}))}listByParentNamespace(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentNamespace.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/namespaces/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}updateNamespace(n,r,s="body",o=!1,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateNamespace.");if(r==null)throw new Error("Required parameter namespace was null or undefined when calling updateNamespace.");let e=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(e=e.set("Accept",p));let c=t?.context??new h,a=t?.transferCache??!0,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";p&&(p.startsWith("text")?l="text":this.configuration.isJsonMime(p)?l="json":l="blob");let x=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:C,withCredentials:P}=this.configuration;return this.httpClient.request("put",`${C}${x}`,u(f({context:c,body:r,responseType:l},P?{withCredentials:P}:{}),{headers:e,observe:s,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||g)(H(j),H(m,8),H(v,8))};static \u0275prov=y({token:g,factory:g.\u0275fac,providedIn:"root"})};var q=class g extends A{constructor(n,r,s){super(r,s);this.httpClient=n}create2(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter agentFinishedEventAgentRunningEventAgentSelectedEventAnswerEventCaseStatusEventIntentionGeneratedEventMessageEventQuestionEventTextChunkEventThinkingEventToolRequestEventToolResponseEventToolSelectedEventWarnEvent was null or undefined when calling create2.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/case-events",{basePath:x,withCredentials:C}=this.configuration;return this.httpClient.request("post",`${x}${l}`,u(f({context:p,body:n,responseType:i},C?{withCredentials:C}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}delete2(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling delete2.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}getById2(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getById2.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}getByIds2(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling getByIds2.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/case-events/by-ids",{basePath:x,withCredentials:C}=this.configuration;return this.httpClient.request("post",`${x}${l}`,u(f({context:p,body:n,responseType:i},C?{withCredentials:C}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}listByParent2(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParent2.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/case-events/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}update2(n,r,s="body",o=!1,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling update2.");if(r==null)throw new Error("Required parameter agentFinishedEventAgentRunningEventAgentSelectedEventAnswerEventCaseStatusEventIntentionGeneratedEventMessageEventQuestionEventTextChunkEventThinkingEventToolRequestEventToolResponseEventToolSelectedEventWarnEvent was null or undefined when calling update2.");let e=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(e=e.set("Accept",p));let c=t?.context??new h,a=t?.transferCache??!0,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";p&&(p.startsWith("text")?l="text":this.configuration.isJsonMime(p)?l="json":l="blob");let x=`/api/case-events/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:C,withCredentials:P}=this.configuration;return this.httpClient.request("put",`${C}${x}`,u(f({context:c,body:r,responseType:l},P?{withCredentials:P}:{}),{headers:e,observe:s,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||g)(H(j),H(m,8),H(v,8))};static \u0275prov=y({token:g,factory:g.\u0275fac,providedIn:"root"})};var B=class g extends A{constructor(n,r,s){super(r,s);this.httpClient=n}debugAllPlugins(n="body",r=!1,s){let o=this.defaultHeaders,t=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=s?.context??new h,p=s?.transferCache??!0,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/plugins/debug",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,u(f({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:p,reportProgress:r}))}debugPlugin(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling debugPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/debug`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}getAllPlugins(n="body",r=!1,s){let o=this.defaultHeaders,t=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=s?.context??new h,p=s?.transferCache??!0,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/plugins",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,u(f({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:p,reportProgress:r}))}getPlugin(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling getPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}reloadAllAgentsPlugin(n="body",r=!1,s){let o=this.defaultHeaders,t=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=s?.context??new h,p=s?.transferCache??!0,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/plugins/reload-agents",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,u(f({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:p,reportProgress:r}))}reloadPlugin(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling reloadPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/reload`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}startPlugin(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling startPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/start`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}stopPlugin(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling stopPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}/stop`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("post",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}unloadPlugin(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter pluginId was null or undefined when calling unloadPlugin.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/plugins/${this.configuration.encodeParam({name:"pluginId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:void 0})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}uploadPlugin(n="body",r=!1,s){let o=this.defaultHeaders,t=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["*/*"]);t!==void 0&&(o=o.set("Accept",t));let e=s?.context??new h,p=s?.transferCache??!0,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/plugins/upload",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${a}`,u(f({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:p,reportProgress:r}))}static \u0275fac=function(r){return new(r||g)(H(j),H(m,8),H(v,8))};static \u0275prov=y({token:g,factory:g.\u0275fac,providedIn:"root"})};var N=class g extends A{constructor(n,r,s){super(r,s);this.httpClient=n}streamEventsCaseEventSse(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling streamEventsCaseEventSse.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["text/event-stream"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}/events`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}static \u0275fac=function(r){return new(r||g)(H(j),H(m,8),H(v,8))};static \u0275prov=y({token:g,factory:g.\u0275fac,providedIn:"root"})};var M=class g extends A{constructor(n,r,s){super(r,s);this.httpClient=n}createUser(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter user was null or undefined when calling createUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/users",{basePath:x,withCredentials:C}=this.configuration;return this.httpClient.request("post",`${x}${l}`,u(f({context:p,body:n,responseType:i},C?{withCredentials:C}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}deleteUser(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}getByIdUser(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}getByIdsUser(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling getByIdsUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a=["application/json"],d=this.configuration.selectHeaderContentType(a);d!==void 0&&(t=t.set("Content-Type",d));let i="json";e&&(e.startsWith("text")?i="text":this.configuration.isJsonMime(e)?i="json":i="blob");let l="/api/users/by-ids",{basePath:x,withCredentials:C}=this.configuration;return this.httpClient.request("post",`${x}${l}`,u(f({context:p,body:n,responseType:i},C?{withCredentials:C}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}getMeUser(n="body",r=!1,s){let o=this.defaultHeaders,t=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=s?.context??new h,p=s?.transferCache??!0,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/users/me",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,u(f({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:p,reportProgress:r}))}listAllUser(n="body",r=!1,s){let o=this.defaultHeaders,t=s?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);t!==void 0&&(o=o.set("Accept",t));let e=s?.context??new h,p=s?.transferCache??!0,c="json";t&&(t.startsWith("text")?c="text":this.configuration.isJsonMime(t)?c="json":c="blob");let a="/api/users",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${a}`,u(f({context:e,responseType:c},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:p,reportProgress:r}))}listByParentUser(n,r="body",s=!1,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentUser.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let p=o?.context??new h,c=o?.transferCache??!0,a="json";e&&(e.startsWith("text")?a="text":this.configuration.isJsonMime(e)?a="json":a="blob");let d=`/api/users/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:l}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(f({context:p,responseType:a},l?{withCredentials:l}:{}),{headers:t,observe:r,transferCache:c,reportProgress:s}))}updateUser(n,r,s="body",o=!1,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateUser.");if(r==null)throw new Error("Required parameter user was null or undefined when calling updateUser.");let e=this.defaultHeaders,p=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);p!==void 0&&(e=e.set("Accept",p));let c=t?.context??new h,a=t?.transferCache??!0,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let l="json";p&&(p.startsWith("text")?l="text":this.configuration.isJsonMime(p)?l="json":l="blob");let x=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:C,withCredentials:P}=this.configuration;return this.httpClient.request("put",`${C}${x}`,u(f({context:c,body:r,responseType:l},P?{withCredentials:P}:{}),{headers:e,observe:s,transferCache:a,reportProgress:o}))}static \u0275fac=function(r){return new(r||g)(H(j),H(m,8),H(v,8))};static \u0275prov=y({token:g,factory:g.\u0275fac,providedIn:"root"})};function Hn(g){return J([typeof g=="string"?{provide:m,useValue:g}:{provide:v,useValue:new v(f({},g))}])}var U=class g{config=V(v);zone=V(k);connect(b){let n=`${this.config.basePath}/api/cases/${b}/events`;return new W(r=>{let s=this.zone.runOutsideAngular(()=>new EventSource(n));return s.onmessage=o=>{try{let t=JSON.parse(o.data);this.zone.run(()=>r.next(t))}catch(t){this.zone.run(()=>r.error(new Error(`Failed to parse SSE event: ${t}`)))}},s.onerror=o=>{s.readyState===EventSource.CLOSED?this.zone.run(()=>r.complete()):this.zone.run(()=>r.error(new Error(`SSE connection error for case ${b}`))),s.close()},()=>s.close()})}static \u0275fac=function(n){return new(n||g)};static \u0275prov=y({token:g,factory:g.\u0275fac,providedIn:"root"})};export{v as a,R as b,O as c,S as d,$ as e,B as f,M as g,Hn as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as O,b as P}from"./chunk-FMBLR6NH.js";import{a as E}from"./chunk-FZVCANBC.js";import{a as k}from"./chunk-JCQFYRAF.js";import{w as x}from"./chunk-4NNLWDVJ.js";import"./chunk-5MXEOOQM.js";import"./chunk-AE24ERN3.js";import{a as S}from"./chunk-55ETGHKC.js";import{a as v,b as y,c as M}from"./chunk-NSSFL3WG.js";import"./chunk-H5JAF7XP.js";import"./chunk-2DVVHRX4.js";import"./chunk-VVZKXHDD.js";import{$a as u,Ea as p,Sa as g,Ta as b,Ya as f,Za as t,_a as n,ga as s,ib as l,kb as C,ua as c,yb as o,zb as h}from"./chunk-TRUXCA4C.js";var r=()=>!0;var T=[{path:"",loadComponent:()=>import("./chunk-4SMKZ2HA.js").then(e=>e.AgentosShellComponent),children:[{path:"",loadComponent:()=>import("./chunk-SPAN622B.js").then(e=>e.LayoutComponent),children:[{path:"namespaces/new",canActivate:[r],loadComponent:()=>import("./chunk-5JA4YMVL.js").then(e=>e.NamespaceFormComponent)},{path:"namespaces/:namespaceId/edit",canActivate:[r],loadComponent:()=>import("./chunk-5JA4YMVL.js").then(e=>e.NamespaceFormComponent)},{path:"namespaces",canActivate:[r],loadComponent:()=>import("./chunk-6XQBGSR4.js").then(e=>e.NamespaceListComponent)},{path:":namespaceId/cases",canActivate:[r],loadComponent:()=>import("./chunk-AWTXRCO7.js").then(e=>e.CaseListComponent)},{path:":namespaceId/integrations/new",canActivate:[r],loadComponent:()=>import("./chunk-MN73E3JO.js").then(e=>e.IntegrationFormComponent)},{path:":namespaceId/integrations/:integrationId/edit",canActivate:[r],loadComponent:()=>import("./chunk-MN73E3JO.js").then(e=>e.IntegrationFormComponent)},{path:":namespaceId/integrations",canActivate:[r],loadComponent:()=>import("./chunk-HGEXTRZ7.js").then(e=>e.NamespaceIntegrationsComponent)},{path:":namespaceId/cases/:caseId",canActivate:[r],loadComponent:()=>import("./chunk-B2QVH3K3.js").then(e=>e.CaseChatComponent)},{path:"me",canActivate:[r],loadComponent:()=>import("./chunk-6WUBJOTP.js").then(e=>e.UserProfileComponent)},{path:"",redirectTo:"namespaces",pathMatch:"full"}]}]}];function A(e,m){if(e&1&&(t(0,"p",11),o(1," Last action: "),t(2,"strong"),o(3),n()()),e&2){let a=C();c(3),h(a.lastAction())}}var _=class e{lastAction=s(null);onSend(){this.lastAction.set("send")}onStop(){this.lastAction.set("stop")}onAttach(){this.lastAction.set("attach")}static \u0275fac=function(a){return new(a||e)};static \u0275cmp=p({type:e,selectors:[["agentos-hello"]],decls:35,vars:2,consts:[[1,"hello-agentos"],[1,"card"],[1,"badge"],[1,"principles"],[1,"demo"],[1,"demo-label"],[1,"demo-buttons"],["icon","send","variant","primary","title","Send",3,"action"],["icon","stop","variant","danger","title","Stop",3,"action"],["icon","attach_file","variant","default","title","Attach",3,"action"],["icon","mic","variant","default","title","Record",3,"action","disabled"],[1,"demo-feedback"]],template:function(a,i){a&1&&(t(0,"div",0)(1,"div",1)(2,"div",2),o(3,"AgentOS UI"),n(),t(4,"h1"),o(5,"Hello AgentOS"),n(),t(6,"p"),o(7," This component lives in "),t(8,"code"),o(9,"libs/agentos-ui"),n(),o(10," \u2014 isolated from Coday internals, ready to be published as "),t(11,"code"),o(12,"@whoz-oss/agentos-ui"),n(),o(13,". "),n(),u(14,"agentos-backend-status"),t(15,"ul",3)(16,"li"),o(17,"\u2726 No imports from Coday app"),n(),t(18,"li"),o(19,"\u2726 CSS custom properties as host contract"),n(),t(20,"li"),o(21,"\u2726 Standalone Angular components"),n(),t(22,"li"),o(23,"\u2726 Signals-first reactive state"),n()(),t(24,"div",4)(25,"p",5),o(26,"ds-icon-button from "),t(27,"code"),o(28,"@whoz-oss/design-system"),n()(),t(29,"div",6)(30,"ds-icon-button",7),l("action",function(){return i.onSend()}),n(),t(31,"ds-icon-button",8),l("action",function(){return i.onStop()}),n(),t(32,"ds-icon-button",9),l("action",function(){return i.onAttach()}),n(),t(33,"ds-icon-button",10),l("action",function(){return i.onAttach()}),n()(),g(34,A,4,1,"p",11),n()()()),a&2&&(c(33),f("disabled",!0),c(),b(i.lastAction()?34:-1))},dependencies:[x,v],styles:['@charset "UTF-8";.hello-agentos[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:2rem}.card[_ngcontent-%COMP%]{background:var(--glass-bg, rgba(255, 255, 255, .72));border:1px solid var(--glass-border, rgba(255, 255, 255, .18));box-shadow:var(--glass-shadow, 0 8px 32px 0 rgba(31, 38, 135, .15));backdrop-filter:var(--glass-backdrop-blur, blur(20px));-webkit-backdrop-filter:var(--glass-backdrop-blur, blur(20px));border-radius:20px;padding:3rem;max-width:480px;width:100%;text-align:center}.badge[_ngcontent-%COMP%]{display:inline-block;background:var(--color-primary, #007aff);color:var(--color-text-inverse, #ffffff);font-size:.75rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:.25rem .75rem;border-radius:100px;margin-bottom:1.5rem}h1[_ngcontent-%COMP%]{color:var(--color-text, #1d1d1f);font-size:2rem;font-weight:700;margin:0 0 1rem;letter-spacing:-.02em}p[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);line-height:1.6;margin:0 0 1.5rem}p[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:var(--color-code-bg, rgba(142, 142, 147, .12));color:var(--color-code-text, #ff375f);padding:.125rem .375rem;border-radius:6px;font-size:.875em;border:1px solid var(--color-border, rgba(0, 0, 0, .1))}.principles[_ngcontent-%COMP%]{list-style:none;margin:0 0 1.5rem;padding:0;text-align:left;display:flex;flex-direction:column;gap:.5rem}.principles[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);font-size:.9rem;padding:.5rem .75rem;background:var(--color-bg-hover, rgba(0, 0, 0, .04));border-radius:8px;border:1px solid var(--color-border-light, rgba(40, 40, 40, .08))}.demo[_ngcontent-%COMP%]{border-top:1px solid var(--color-border-light, rgba(40, 40, 40, .08));padding-top:1.25rem}.demo[_ngcontent-%COMP%] .demo-label[_ngcontent-%COMP%]{color:var(--color-text-secondary, #6e6e73);font-size:.8rem;margin:0 0 .75rem}.demo[_ngcontent-%COMP%] .demo-label[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:var(--color-code-bg, rgba(142, 142, 147, .12));color:var(--color-code-text, #ff375f);padding:.125rem .375rem;border-radius:6px;font-size:.875em;border:1px solid var(--color-border, rgba(0, 0, 0, .1))}.demo[_ngcontent-%COMP%] .demo-buttons[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center;justify-content:center;padding:.75rem;background:var(--color-bg-hover, rgba(0, 0, 0, .04));border-radius:12px;border:1px solid var(--color-border-light, rgba(40, 40, 40, .08))}.demo[_ngcontent-%COMP%] .demo-feedback[_ngcontent-%COMP%]{margin:.75rem 0 0;font-size:.85rem;color:var(--color-text-secondary, #6e6e73)}.demo[_ngcontent-%COMP%] .demo-feedback[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--color-primary, #007aff)}']})};export{T as AGENTOS_ROUTES,S as AgentosShellComponent,v as BackendStatusComponent,k as CaseChatComponent,E as CaseListComponent,y as HeaderComponent,_ as HelloAgentosComponent,M as LayoutComponent,O as NamespaceItemComponent,P as NamespaceListComponent,r as agentosReadyGuard};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as c,P as p,T as l,l as s,
|
|
1
|
+
import{M as c,P as p,T as l,l as s,oc as g,p as a}from"./chunk-TRUXCA4C.js";var m=class n{http=l(g);agentsCache=new Map;getAgents(e){let t=this.agentsCache.get(e);return t?s(t):this.http.get(`/api/projects/${e}/agents`).pipe(c(r=>{this.agentsCache.set(e,r)}))}getAgentsAutocomplete(e,t){return this.getAgents(e).pipe(a(r=>{if(!t)return r;let o=t.toLowerCase();return r.filter(i=>{let h=i.name.toLowerCase(),u=i.description?.toLowerCase()||"";return h.includes(o)||u.includes(o)})}))}clearCache(e){this.agentsCache.delete(e)}clearAllCache(){this.agentsCache.clear()}static \u0275fac=function(t){return new(t||n)};static \u0275prov=p({token:n,factory:n.\u0275fac,providedIn:"root"})};export{m as a};
|