@whoz-oss/coday-client 0.120.0 → 0.121.0
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-ENCPEUR3.js → chunk-3YDRI4TY.js} +1 -1
- package/browser/chunk-6WTX5KC7.js +1 -0
- package/browser/{chunk-GUVOZD4J.js → chunk-72FRBMD4.js} +1 -1
- package/browser/{chunk-PSC2HZRN.js → chunk-7CLTLEML.js} +1 -1
- package/browser/{chunk-25MTCGSQ.js → chunk-A4ZJFWAK.js} +1 -1
- package/browser/chunk-EAUVSQPC.js +1 -0
- package/browser/{chunk-N7MEOGQ5.js → chunk-GLWBXLFL.js} +1 -1
- package/browser/{chunk-ITOHO7HS.js → chunk-J3WTEANY.js} +1 -1
- package/browser/{chunk-SOIUR4KR.js → chunk-JB7MERI6.js} +1 -1
- package/browser/{chunk-XYUTAO2Y.js → chunk-LXI5747H.js} +1 -1
- package/browser/{chunk-AY5OKKHN.js → chunk-OVZ5YI5D.js} +1 -1
- package/browser/{chunk-DCHGOWKI.js → chunk-RNFBUSBO.js} +1 -1
- package/browser/{chunk-F7YZBZT4.js → chunk-RQLPS2YR.js} +1 -1
- package/browser/chunk-TA4AM2F6.js +1 -0
- package/browser/{chunk-BYBGUR45.js → chunk-VIG2DS4B.js} +1 -1
- package/browser/{chunk-BJWCFY2A.js → chunk-VLQP3XTM.js} +1 -1
- package/browser/chunk-VOAECLLH.js +1 -0
- package/browser/chunk-WCNGR6NT.js +1 -0
- package/browser/{chunk-5NIZ3ZYP.js → chunk-YZAA7VTK.js} +1 -1
- package/browser/index.html +1 -1
- package/browser/{main-2VS5AL3N.js → main-HXX7E37B.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-JSIAY7XX.js +0 -1
- package/browser/chunk-K4ZGQGPW.js +0 -1
- package/browser/chunk-PXA63SBZ.js +0 -1
- package/browser/chunk-VWFPTABT.js +0 -1
- package/browser/chunk-YJVSFPKB.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as a}from"./chunk-GUVOZD4J.js";import"./chunk-4VDSG7R6.js";import"./chunk-S2O6N5YR.js";import"./chunk-U3HXU6IS.js";import"./chunk-K4ZGQGPW.js";import"./chunk-SQBLNCXA.js";import"./chunk-QU3UZZE4.js";export{a as NamespaceListComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{P as v,R as _,S as H,T as O,U as D,a as b,b as u,da as G,f as F,lc as L,mc as h,oc as j}from"./chunk-QU3UZZE4.js";var y=class{apiKeys;username;password;accessToken;basePath;withCredentials;encoder;encodeParam;credentials;constructor({accessToken:f,apiKeys:n,basePath:a,credentials:s,encodeParam:o,encoder:t,password:e,username:c,withCredentials:l}={}){n&&(this.apiKeys=n),c!==void 0&&(this.username=c),e!==void 0&&(this.password=e),f!==void 0&&(this.accessToken=f),a!==void 0&&(this.basePath=a),l!==void 0&&(this.withCredentials=l),t&&(this.encoder=t),this.encodeParam=o??(r=>this.defaultEncodeParam(r)),this.credentials=s??{}}selectHeaderContentType(f){if(f.length===0)return;let n=f.find(a=>this.isJsonMime(a));return n===void 0?f[0]:n}selectHeaderAccept(f){if(f.length===0)return;let n=f.find(a=>this.isJsonMime(a));return n===void 0?f[0]:n}isJsonMime(f){let n=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return f!==null&&(n.test(f)||f.toLowerCase()==="application/json-patch+json")}lookupCredential(f){let n=this.credentials[f];return typeof n=="function"?n():n}addCredentialToHeaders(f,n,a,s){let o=this.lookupCredential(f);return o?a.set(n,(s??"")+o):a}addCredentialToQuery(f,n,a){let s=this.lookupCredential(f);return s?a.set(n,s):a}defaultEncodeParam(f){let n=f.dataFormat==="date-time"&&f.value instanceof Date?f.value.toISOString():f.value;return encodeURIComponent(String(n))}};var A=new _("basePath");var V=class{encodeKey(f){return encodeURIComponent(f)}encodeValue(f){return encodeURIComponent(f)}decodeKey(f){return decodeURIComponent(f)}decodeValue(f){return decodeURIComponent(f)}};var m=class{basePath="http://localhost:8124";defaultHeaders=new L;configuration;encoder;constructor(f,n){if(this.configuration=n||new y,typeof this.configuration.basePath!="string"){let a=Array.isArray(f)?f[0]:void 0;a!=null&&(f=a),typeof f!="string"&&(f=this.basePath),this.configuration.basePath=f}this.encoder=this.configuration.encoder||new V}canConsumeForm(f){return f.indexOf("multipart/form-data")!==-1}addToHttpParams(f,n,a,s=!1){return typeof n=="object"&&!(n instanceof Date)?this.addToHttpParamsRecursive(f,n,s?a:void 0,s):this.addToHttpParamsRecursive(f,n,a)}addToHttpParamsRecursive(f,n,a,s=!1){if(n==null)return f;if(typeof n=="object"){if(a!=null)return s?Object.keys(n).reduce((o,t)=>o.append(`${a}[${t}]`,n[t]),f):f.append(a,JSON.stringify(n));if(Array.isArray(n))n.forEach(o=>f=this.addToHttpParamsRecursive(f,o,a));else if(n instanceof Date)if(a!=null)f=f.append(a,n.toISOString());else throw Error("key may not be null if value is Date");else Object.keys(n).forEach(o=>{let t=a?`${a}.${o}`:o;f=this.addToHttpParamsRecursive(f,n[o],t)});return f}else if(a!=null)return f.append(a,n);throw Error("key may not be null if value is not object or array")}};var R=class C extends m{constructor(n,a,s){super(a,s);this.httpClient=n}createAiModel(n,a="body",s=!1,o){if(n==null)throw new Error("Required parameter aiModel was null or undefined when calling createAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let c=o?.context??new h,l=o?.transferCache??!0,r=["application/json"],d=this.configuration.selectHeaderContentType(r);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 p="/api/ai-models",{basePath:x,withCredentials:g}=this.configuration;return this.httpClient.request("post",`${x}${p}`,u(b({context:c,body:n,responseType:i},g?{withCredentials:g}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}deleteAiModel(n,a="body",s=!1,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:p}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}getByIdAiModel(n,a="body",s=!1,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}getByIdsAiModel(n,a="body",s=!1,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling getByIdsAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let c=o?.context??new h,l=o?.transferCache??!0,r=["application/json"],d=this.configuration.selectHeaderContentType(r);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 p="/api/ai-models/by-ids",{basePath:x,withCredentials:g}=this.configuration;return this.httpClient.request("post",`${x}${p}`,u(b({context:c,body:n,responseType:i},g?{withCredentials:g}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}listByNamespaceIdAiModel(n,a="body",s=!1,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listByNamespaceIdAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/ai-models/by-namespaceId/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}listByParentAiModel(n,a="body",s=!1,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAiModel.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/ai-models/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}updateAiModel(n,a,s="body",o=!1,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiModel.");if(a==null)throw new Error("Required parameter aiModel was null or undefined when calling updateAiModel.");let e=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(e=e.set("Accept",c));let l=t?.context??new h,r=t?.transferCache??!0,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let p="json";c&&(c.startsWith("text")?p="text":this.configuration.isJsonMime(c)?p="json":p="blob");let x=`/api/ai-models/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:g,withCredentials:P}=this.configuration;return this.httpClient.request("put",`${g}${x}`,u(b({context:l,body:a,responseType:p},P?{withCredentials:P}:{}),{headers:e,observe:s,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(H(j),H(A,8),H(y,8))};static \u0275prov=v({token:C,factory:C.\u0275fac,providedIn:"root"})};var E=class C extends m{constructor(n,a,s){super(a,s);this.httpClient=n}createAiProvider(n,a="body",s=!1,o){if(n==null)throw new Error("Required parameter aiProvider was null or undefined when calling createAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let c=o?.context??new h,l=o?.transferCache??!0,r=["application/json"],d=this.configuration.selectHeaderContentType(r);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 p="/api/ai-providers",{basePath:x,withCredentials:g}=this.configuration;return this.httpClient.request("post",`${x}${p}`,u(b({context:c,body:n,responseType:i},g?{withCredentials:g}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}deleteAiProvider(n,a="body",s=!1,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling deleteAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);e!==void 0&&(t=t.set("Accept",e));let c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:p}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}getByIdAiProvider(n,a="body",s=!1,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}getByIdsAiProvider(n,a="body",s=!1,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling getByIdsAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let c=o?.context??new h,l=o?.transferCache??!0,r=["application/json"],d=this.configuration.selectHeaderContentType(r);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 p="/api/ai-providers/by-ids",{basePath:x,withCredentials:g}=this.configuration;return this.httpClient.request("post",`${x}${p}`,u(b({context:c,body:n,responseType:i},g?{withCredentials:g}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}listByNamespaceIdAiProvider(n,a="body",s=!1,o){if(n==null)throw new Error("Required parameter namespaceId was null or undefined when calling listByNamespaceIdAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/ai-providers/by-namespaceId/${this.configuration.encodeParam({name:"namespaceId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}listByParentAiProvider(n,a="body",s=!1,o){if(n==null)throw new Error("Required parameter parentId was null or undefined when calling listByParentAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/ai-providers/by-parentId/${this.configuration.encodeParam({name:"parentId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}listByUserIdAiProvider(n,a="body",s=!1,o){if(n==null)throw new Error("Required parameter userId was null or undefined when calling listByUserIdAiProvider.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/ai-providers/by-userId/${this.configuration.encodeParam({name:"userId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}updateAiProvider(n,a,s="body",o=!1,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateAiProvider.");if(a==null)throw new Error("Required parameter aiProvider was null or undefined when calling updateAiProvider.");let e=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(e=e.set("Accept",c));let l=t?.context??new h,r=t?.transferCache??!0,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let p="json";c&&(c.startsWith("text")?p="text":this.configuration.isJsonMime(c)?p="json":p="blob");let x=`/api/ai-providers/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:g,withCredentials:P}=this.configuration;return this.httpClient.request("put",`${g}${x}`,u(b({context:l,body:a,responseType:p},P?{withCredentials:P}:{}),{headers:e,observe:s,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(H(j),H(A,8),H(y,8))};static \u0275prov=v({token:C,factory:C.\u0275fac,providedIn:"root"})};var M=class C extends m{constructor(n,a,s){super(a,s);this.httpClient=n}addMessageCase(n,a,s="body",o=!1,t){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling addMessageCase.");if(a==null)throw new Error("Required parameter addMessageRequest was null or undefined when calling addMessageCase.");let e=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept([]);c!==void 0&&(e=e.set("Accept",c));let l=t?.context??new h,r=t?.transferCache??!0,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let p="json";c&&(c.startsWith("text")?p="text":this.configuration.isJsonMime(c)?p="json":p="blob");let x=`/api/cases/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}/messages`,{basePath:g,withCredentials:P}=this.configuration;return this.httpClient.request("post",`${g}${x}`,u(b({context:l,body:a,responseType:p},P?{withCredentials:P}:{}),{headers:e,observe:s,transferCache:r,reportProgress:o}))}createCase(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r=["application/json"],d=this.configuration.selectHeaderContentType(r);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 p="/api/cases",{basePath:x,withCredentials:g}=this.configuration;return this.httpClient.request("post",`${x}${p}`,u(b({context:c,body:n,responseType:i},g?{withCredentials:g}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}deleteCase(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}getByIdCase(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}getByIdsCase(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r=["application/json"],d=this.configuration.selectHeaderContentType(r);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 p="/api/cases/by-ids",{basePath:x,withCredentials:g}=this.configuration;return this.httpClient.request("post",`${x}${p}`,u(b({context:c,body:n,responseType:i},g?{withCredentials:g}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}interruptCase(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("post",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}killCase(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("post",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}listByParentCase(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}updateCase(n,a,s="body",o=!1,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateCase.");if(a==null)throw new Error("Required parameter _case was null or undefined when calling updateCase.");let e=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(e=e.set("Accept",c));let l=t?.context??new h,r=t?.transferCache??!0,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let p="json";c&&(c.startsWith("text")?p="text":this.configuration.isJsonMime(c)?p="json":p="blob");let x=`/api/cases/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:g,withCredentials:P}=this.configuration;return this.httpClient.request("put",`${g}${x}`,u(b({context:l,body:a,responseType:p},P?{withCredentials:P}:{}),{headers:e,observe:s,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(H(j),H(A,8),H(y,8))};static \u0275prov=v({token:C,factory:C.\u0275fac,providedIn:"root"})};var $=class C extends m{constructor(n,a,s){super(a,s);this.httpClient=n}createIntegrationConfig(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r=["application/json"],d=this.configuration.selectHeaderContentType(r);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 p="/api/integration-configs",{basePath:x,withCredentials:g}=this.configuration;return this.httpClient.request("post",`${x}${p}`,u(b({context:c,body:n,responseType:i},g?{withCredentials:g}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}deleteIntegrationConfig(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}getByIdIntegrationConfig(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}getByIdsIntegrationConfig(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r=["application/json"],d=this.configuration.selectHeaderContentType(r);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 p="/api/integration-configs/by-ids",{basePath:x,withCredentials:g}=this.configuration;return this.httpClient.request("post",`${x}${p}`,u(b({context:c,body:n,responseType:i},g?{withCredentials:g}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}listByParentIntegrationConfig(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}updateIntegrationConfig(n,a,s="body",o=!1,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateIntegrationConfig.");if(a==null)throw new Error("Required parameter integrationConfig was null or undefined when calling updateIntegrationConfig.");let e=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(e=e.set("Accept",c));let l=t?.context??new h,r=t?.transferCache??!0,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let p="json";c&&(c.startsWith("text")?p="text":this.configuration.isJsonMime(c)?p="json":p="blob");let x=`/api/integration-configs/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:g,withCredentials:P}=this.configuration;return this.httpClient.request("put",`${g}${x}`,u(b({context:l,body:a,responseType:p},P?{withCredentials:P}:{}),{headers:e,observe:s,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(H(j),H(A,8),H(y,8))};static \u0275prov=v({token:C,factory:C.\u0275fac,providedIn:"root"})};var B=class C extends m{constructor(n,a,s){super(a,s);this.httpClient=n}getTypeIntegrationType(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}listTypesIntegrationType(n="body",a=!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,c=s?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let r="/api/integration-types",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${r}`,u(b({context:e,responseType:l},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:c,reportProgress:a}))}static \u0275fac=function(a){return new(a||C)(H(j),H(A,8),H(y,8))};static \u0275prov=v({token:C,factory:C.\u0275fac,providedIn:"root"})};var q=class C extends m{constructor(n,a,s){super(a,s);this.httpClient=n}createNamespace(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r=["application/json"],d=this.configuration.selectHeaderContentType(r);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 p="/api/namespaces",{basePath:x,withCredentials:g}=this.configuration;return this.httpClient.request("post",`${x}${p}`,u(b({context:c,body:n,responseType:i},g?{withCredentials:g}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}deleteNamespace(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}getByIdNamespace(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}getByIdsNamespace(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r=["application/json"],d=this.configuration.selectHeaderContentType(r);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 p="/api/namespaces/by-ids",{basePath:x,withCredentials:g}=this.configuration;return this.httpClient.request("post",`${x}${p}`,u(b({context:c,body:n,responseType:i},g?{withCredentials:g}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}listAllNamespace(n="body",a=!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,c=s?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let r="/api/namespaces",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${r}`,u(b({context:e,responseType:l},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:c,reportProgress:a}))}listByParentNamespace(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}updateNamespace(n,a,s="body",o=!1,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateNamespace.");if(a==null)throw new Error("Required parameter namespace was null or undefined when calling updateNamespace.");let e=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(e=e.set("Accept",c));let l=t?.context??new h,r=t?.transferCache??!0,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let p="json";c&&(c.startsWith("text")?p="text":this.configuration.isJsonMime(c)?p="json":p="blob");let x=`/api/namespaces/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:g,withCredentials:P}=this.configuration;return this.httpClient.request("put",`${g}${x}`,u(b({context:l,body:a,responseType:p},P?{withCredentials:P}:{}),{headers:e,observe:s,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(H(j),H(A,8),H(y,8))};static \u0275prov=v({token:C,factory:C.\u0275fac,providedIn:"root"})};var k=(a=>(a.OpenAI="OpenAI",a.Anthropic="Anthropic",a.Gemini="Gemini",a))(k||{});var S=class C extends m{constructor(n,a,s){super(a,s);this.httpClient=n}getByIdCaseEventRest(n,a="body",s=!1,o){if(n==null)throw new Error("Required parameter id was null or undefined when calling getByIdCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}getByIdsCaseEventRest(n,a="body",s=!1,o){if(n==null)throw new Error("Required parameter requestBody was null or undefined when calling getByIdsCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let c=o?.context??new h,l=o?.transferCache??!0,r=["application/json"],d=this.configuration.selectHeaderContentType(r);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 p="/api/case-events/by-ids",{basePath:x,withCredentials:g}=this.configuration;return this.httpClient.request("post",`${x}${p}`,u(b({context:c,body:n,responseType:i},g?{withCredentials:g}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}listByCaseCaseEventRest(n,a="body",s=!1,o){if(n==null)throw new Error("Required parameter caseId was null or undefined when calling listByCaseCaseEventRest.");let t=this.defaultHeaders,e=o?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);e!==void 0&&(t=t.set("Accept",e));let c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="blob");let d=`/api/case-events/by-parentId/${this.configuration.encodeParam({name:"caseId",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:i,withCredentials:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}static \u0275fac=function(a){return new(a||C)(H(j),H(A,8),H(y,8))};static \u0275prov=v({token:C,factory:C.\u0275fac,providedIn:"root"})};var N=class C extends m{constructor(n,a,s){super(a,s);this.httpClient=n}debugAllPlugins(n="body",a=!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,c=s?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let r="/api/plugins/debug",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${r}`,u(b({context:e,responseType:l},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:c,reportProgress:a}))}debugPlugin(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}getAllPlugins(n="body",a=!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,c=s?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let r="/api/plugins",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${r}`,u(b({context:e,responseType:l},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:c,reportProgress:a}))}getPlugin(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}reloadAllAgentsPlugin(n="body",a=!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,c=s?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let r="/api/plugins/reload-agents",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${r}`,u(b({context:e,responseType:l},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:c,reportProgress:a}))}reloadPlugin(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("post",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}startPlugin(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("post",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}stopPlugin(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("post",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}unloadPlugin(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}uploadPlugin(n="body",a=!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,c=s?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let r="/api/plugins/upload",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("post",`${d}${r}`,u(b({context:e,responseType:l},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:c,reportProgress:a}))}static \u0275fac=function(a){return new(a||C)(H(j),H(A,8),H(y,8))};static \u0275prov=v({token:C,factory:C.\u0275fac,providedIn:"root"})};var U=class C extends m{constructor(n,a,s){super(a,s);this.httpClient=n}streamEventsCaseEventSse(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}static \u0275fac=function(a){return new(a||C)(H(j),H(A,8),H(y,8))};static \u0275prov=v({token:C,factory:C.\u0275fac,providedIn:"root"})};var J=class C extends m{constructor(n,a,s){super(a,s);this.httpClient=n}createUser(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r=["application/json"],d=this.configuration.selectHeaderContentType(r);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 p="/api/users",{basePath:x,withCredentials:g}=this.configuration;return this.httpClient.request("post",`${x}${p}`,u(b({context:c,body:n,responseType:i},g?{withCredentials:g}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}deleteUser(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("delete",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}getByIdUser(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}getByIdsUser(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r=["application/json"],d=this.configuration.selectHeaderContentType(r);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 p="/api/users/by-ids",{basePath:x,withCredentials:g}=this.configuration;return this.httpClient.request("post",`${x}${p}`,u(b({context:c,body:n,responseType:i},g?{withCredentials:g}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}getMeUser(n="body",a=!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,c=s?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let r="/api/users/me",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${r}`,u(b({context:e,responseType:l},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:c,reportProgress:a}))}listAllUser(n="body",a=!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,c=s?.transferCache??!0,l="json";t&&(t.startsWith("text")?l="text":this.configuration.isJsonMime(t)?l="json":l="blob");let r="/api/users",{basePath:d,withCredentials:i}=this.configuration;return this.httpClient.request("get",`${d}${r}`,u(b({context:e,responseType:l},i?{withCredentials:i}:{}),{headers:o,observe:n,transferCache:c,reportProgress:a}))}listByParentUser(n,a="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 c=o?.context??new h,l=o?.transferCache??!0,r="json";e&&(e.startsWith("text")?r="text":this.configuration.isJsonMime(e)?r="json":r="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:p}=this.configuration;return this.httpClient.request("get",`${i}${d}`,u(b({context:c,responseType:r},p?{withCredentials:p}:{}),{headers:t,observe:a,transferCache:l,reportProgress:s}))}updateUser(n,a,s="body",o=!1,t){if(n==null)throw new Error("Required parameter id was null or undefined when calling updateUser.");if(a==null)throw new Error("Required parameter user was null or undefined when calling updateUser.");let e=this.defaultHeaders,c=t?.httpHeaderAccept??this.configuration.selectHeaderAccept(["application/json"]);c!==void 0&&(e=e.set("Accept",c));let l=t?.context??new h,r=t?.transferCache??!0,d=["application/json"],i=this.configuration.selectHeaderContentType(d);i!==void 0&&(e=e.set("Content-Type",i));let p="json";c&&(c.startsWith("text")?p="text":this.configuration.isJsonMime(c)?p="json":p="blob");let x=`/api/users/${this.configuration.encodeParam({name:"id",value:n,in:"path",style:"simple",explode:!1,dataType:"string",dataFormat:"uuid"})}`,{basePath:g,withCredentials:P}=this.configuration;return this.httpClient.request("put",`${g}${x}`,u(b({context:l,body:a,responseType:p},P?{withCredentials:P}:{}),{headers:e,observe:s,transferCache:r,reportProgress:o}))}static \u0275fac=function(a){return new(a||C)(H(j),H(A,8),H(y,8))};static \u0275prov=v({token:C,factory:C.\u0275fac,providedIn:"root"})};function Dn(C){return D([typeof C=="string"?{provide:A,useValue:C}:{provide:y,useValue:new y(b({},C))}])}var W=class C{config=O(y);zone=O(G);connect(f){let n=`${this.config.basePath}/api/cases/${f}/events`;return new F(a=>{let s=this.zone.runOutsideAngular(()=>new EventSource(n));return s.onmessage=o=>{try{let t=JSON.parse(o.data);this.zone.run(()=>a.next(t))}catch(t){this.zone.run(()=>a.error(new Error(`Failed to parse SSE event: ${t}`)))}},s.onerror=o=>{s.readyState===EventSource.CLOSED?this.zone.run(()=>a.complete()):this.zone.run(()=>a.error(new Error(`SSE connection error for case ${f}`))),s.close()},()=>s.close()})}static \u0275fac=function(n){return new(n||C)};static \u0275prov=v({token:C,factory:C.\u0275fac,providedIn:"root"})};export{y as a,R as b,E as c,M as d,$ as e,B as f,q as g,N as h,J as i,k as j,Dn as k};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-DCHGOWKI.js";import"./chunk-4VDSG7R6.js";import"./chunk-S2O6N5YR.js";import"./chunk-U3HXU6IS.js";import"./chunk-K4ZGQGPW.js";import"./chunk-SQBLNCXA.js";import"./chunk-QU3UZZE4.js";export{a as CaseChatComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-5NIZ3ZYP.js";import"./chunk-K4ZGQGPW.js";import"./chunk-QU3UZZE4.js";export{a as CaseListComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as a}from"./chunk-ITOHO7HS.js";import"./chunk-SOIUR4KR.js";import"./chunk-K4ZGQGPW.js";import"./chunk-SQBLNCXA.js";import"./chunk-QU3UZZE4.js";export{a as LayoutComponent};
|