@whoz-oss/coday-client 0.0.0-workstream-forge.319 → 0.0.0-workstream-forge.321

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.
Files changed (50) hide show
  1. package/browser/{chunk-DlLEAMMg.js → chunk-5q267T8K.js} +1 -1
  2. package/browser/{chunk-BZftfpBZ.js → chunk-B-v-3uCk.js} +1 -1
  3. package/browser/{chunk-CaqVk39O.js → chunk-B49wIc1T.js} +1 -1
  4. package/browser/{chunk-QFSmJ65x.js → chunk-B73mjelH.js} +1 -1
  5. package/browser/{chunk-BM0ZeEkn.js → chunk-BCJtc5Xu.js} +1 -1
  6. package/browser/{chunk-BfbRo2eq.js → chunk-BJjAUtwn.js} +1 -1
  7. package/browser/{chunk-0PeLV_Cu.js → chunk-BQJ8KnhA.js} +1 -1
  8. package/browser/{chunk-EucrAwun.js → chunk-BQotWIiQ.js} +1 -1
  9. package/browser/{chunk-Dj-RDcJY.js → chunk-Bb6F_a82.js} +1 -1
  10. package/browser/{chunk-BobfaCoK.js → chunk-Bf9AiNWG.js} +1 -1
  11. package/browser/{chunk-BqP68YVZ.js → chunk-BmCkPLIV.js} +1 -1
  12. package/browser/{chunk-a582tmG6.js → chunk-BmnDFi8a.js} +1 -1
  13. package/browser/{chunk-C2ZVcJof.js → chunk-Bn-2bVXG.js} +1 -1
  14. package/browser/{chunk-D3-ObXWx.js → chunk-BpsVuR22.js} +1 -1
  15. package/browser/{chunk-CaEHspO8.js → chunk-BvQQNbW1.js} +1 -1
  16. package/browser/{chunk-BJ_2tsip.js → chunk-C-c37RBL.js} +1 -1
  17. package/browser/{chunk-D3d3XS5H.js → chunk-C4Y202e9.js} +1 -1
  18. package/browser/{chunk-zOPOfeyq.js → chunk-CHoqSi5W.js} +1 -1
  19. package/browser/{chunk-CYdD0V3D.js → chunk-CKv5NCCg.js} +1 -1
  20. package/browser/{chunk-DeRUUEre.js → chunk-CPp4wPbS.js} +1 -1
  21. package/browser/{chunk-CR_i3pME.js → chunk-CU4ntAXg.js} +1 -1
  22. package/browser/{chunk-DjQuloiH.js → chunk-CVJtge04.js} +1 -1
  23. package/browser/{chunk-Dqwn2r3a.js → chunk-CX0BEOeU.js} +1 -1
  24. package/browser/{chunk-COQO5pZ-.js → chunk-CZzMi2_N.js} +1 -1
  25. package/browser/{chunk-gNHkkkJA.js → chunk-Cb6HVYcc.js} +1 -1
  26. package/browser/{chunk-Bl2V557L.js → chunk-Chv5ChBS.js} +1 -1
  27. package/browser/{chunk-B4vPSwvB.js → chunk-CvzEU_I0.js} +1 -1
  28. package/browser/{chunk-YyFQSeEa.js → chunk-CxVG8rDk.js} +1 -1
  29. package/browser/{chunk-CZrMmk2_.js → chunk-CzUXTBCC.js} +1 -1
  30. package/browser/{chunk-DUUl8Ujj.js → chunk-D0zlYejL.js} +1 -1
  31. package/browser/{chunk-DepcXmP8.js → chunk-D2MJ-XFU.js} +1 -1
  32. package/browser/{chunk-bUBZ4IKo.js → chunk-DCfNRcEd.js} +1 -1
  33. package/browser/{chunk-4sRiWz5d.js → chunk-DO7awWtN.js} +1 -1
  34. package/browser/{chunk-BiyTqy2W.js → chunk-DV5Aqa1j.js} +1 -1
  35. package/browser/{chunk-Cg0Y0Rx9.js → chunk-D_HRSiGF.js} +1 -1
  36. package/browser/{chunk-DwgCb6Fq.js → chunk-DdUbPTpM.js} +1 -1
  37. package/browser/{chunk-CPBSXO4y.js → chunk-DlHeKWaQ.js} +1 -1
  38. package/browser/{chunk-eUlhzJed.js → chunk-DviAa-yr.js} +1 -1
  39. package/browser/{chunk-C7VxZP8K.js → chunk-UGVV7wsD.js} +1 -1
  40. package/browser/{chunk-DI9poEf6.js → chunk-XBL7yH_b.js} +1 -1
  41. package/browser/{chunk-B7vuc5oo.js → chunk-eKkU_k0f.js} +1 -1
  42. package/browser/{chunk-Cdq764lV.js → chunk-ip_qQ2Q-.js} +1 -1
  43. package/browser/{chunk-BJWYcYdG.js → chunk-j4az_g4j.js} +18 -18
  44. package/browser/chunk-tSpYMeZM.js +1 -0
  45. package/browser/{chunk-Ce5zYetC.js → chunk-u3rjiKR1.js} +1 -1
  46. package/browser/{chunk-aD-SvXOi.js → chunk-z0rp50dG.js} +1 -1
  47. package/browser/index.html +1 -1
  48. package/browser/{main-TQWWQMKE.js → main-NX6CNSJE.js} +1 -1
  49. package/package.json +1 -1
  50. package/browser/chunk-Co53pbT4.js +0 -1
@@ -1 +1 @@
1
- import {i}from'./chunk-Co53pbT4.js';import {y}from'./chunk-BJWYcYdG.js';import {g,aG as X,$ as Sr,at as _y,a1 as ma,a2 as ga,aa as _r,ad as ne,aF as Jy,P as x,O as w$1,a5 as Ed,aH as an,aI as Ot,aJ as cn,a6 as A}from'./main-TQWWQMKE.js';var nt=["ApiKeyAuthSetting","BasicAuthAuthSetting","BearerTokenAuthSetting","OAuthDiscoverableAuthSetting","OAuthMcpDiscoverableAuthSetting","OAuthCustomAuthSetting","OAuthRegisteredAuthSetting"],it={ApiKeyAuthSetting:"API Key",BasicAuthAuthSetting:"Basic Auth (username / password)",BearerTokenAuthSetting:"Bearer Token",OAuthDiscoverableAuthSetting:"OAuth \u2014 Discovery URL",OAuthMcpDiscoverableAuthSetting:"OAuth \u2014 MCP Discoverable",OAuthCustomAuthSetting:"OAuth \u2014 Custom endpoints",OAuthRegisteredAuthSetting:"OAuth \u2014 Registered app"},R="none",w="me",b=2e3,M=15e4,P=3,L={ApiKeyAuthSetting:"API_KEY",BasicAuthAuthSetting:"BASIC_AUTH",BearerTokenAuthSetting:"BEARER_TOKEN",OAuthDiscoverableAuthSetting:"OAUTH_DISCOVERABLE",OAuthMcpDiscoverableAuthSetting:"OAUTH_MCP_DISCOVERABLE",OAuthCustomAuthSetting:"OAUTH_CUSTOM",OAuthRegisteredAuthSetting:"OAUTH_REGISTERED"},k={API_KEY:"ApiKeyAuthSetting",BASIC_AUTH:"BasicAuthAuthSetting",BEARER_TOKEN:"BearerTokenAuthSetting",OAUTH_DISCOVERABLE:"OAuthDiscoverableAuthSetting",OAUTH_MCP_DISCOVERABLE:"OAuthMcpDiscoverableAuthSetting",OAUTH_CUSTOM:"OAuthCustomAuthSetting",OAUTH_REGISTERED:"OAuthRegisteredAuthSetting"};function B(i){let t=L[i.authType];return t?x(w$1({},i),{authType:t}):i}function m(i){return U(i)}function f(i){return i.map(U)}function U(i){let t=i;if(typeof t.authType=="string"){let e=k[t.authType];if(e)return x(w$1({},t),{authType:e})}return i}function H(i,t){return t===null?true:i!==void 0&&Date.parse(i)>Date.parse(t)}var I=class i$1{controller=g(X);userState=g(y);refresh$=new Sr(void 0);namespaceId$=new Sr(null);vm$=_y([this.namespaceId$,this.refresh$]).pipe(ma(([t])=>{let e=this.loadPlatformSettings().pipe(ga(()=>_r([])));return t?_y([e,this.loadNamespaceSettings(t).pipe(ga(()=>_r([]))),this.loadUserSettings(t).pipe(ga(()=>_r([]))),this.loadUserSettings("global").pipe(ga(()=>_r([])))]).pipe(ne(([n,o,r,h])=>({platform:n,namespace:o,userOnNs:r,userGlobal:h}))):_y([e,this.loadNamespaceSettings("").pipe(ga(()=>_r([]))),this.loadUserSettings("global").pipe(ga(()=>_r([])))]).pipe(ne(([n,o,r])=>({platform:n,namespace:o,userOnNs:[],userGlobal:r})))}),Jy({bufferSize:1,refCount:true}));setNamespace(t){this.namespaceId$.value!==t&&this.namespaceId$.next(t);}refresh(){this.refresh$.next();}loadUserSettings(t){let e=t==="global"?R:t;return this.controller.listAuthSetting(e,w).pipe(ne(n=>f(n)))}userGlobal$=i(this.refresh$,()=>this.loadUserSettings("global"),[]);loadPlatformSettings(){return this.controller.listAuthSetting(R).pipe(ne(t=>f(t)))}loadNamespaceSettings(t){return t?this.controller.listAuthSetting(t).pipe(ne(e=>f(e))):_r([])}getById(t,e){return this.controller.getByIdAuthSetting(t).pipe(ne(n=>m(n)))}create(t,e,n){let r=this.userState.currentUser()?.id;if((e==="userOnNs"||e==="userGlobal")&&!r)throw new Error(`Cannot create ${e} auth setting before UserStateService.loadMe() resolves \u2014 call loadMe() at app init`);if(e==="namespace"&&(n===void 0||n===""))throw new Error("Cannot create namespace-scoped auth setting without a namespaceId");if(e==="userOnNs"&&!n)throw new Error("Cannot create userOnNs auth setting without a namespaceId");let h=B(x(w$1({},t),{namespaceId:e==="namespace"||e==="userOnNs"?n??void 0:void 0,userId:e==="userOnNs"||e==="userGlobal"?r:void 0}));return this.controller.createAuthSetting(h).pipe(ne(A=>m(A)),Ed(()=>this.refresh()))}update(t,e,n){let o=B(x(w$1({},e),{namespaceId:n.namespaceId,userId:n.userId,authType:n.authType}));return this.controller.updateAuthSetting(t,o).pipe(ne(r=>m(r)),Ed(()=>this.refresh()))}delete(t,e){return this.controller.deleteAuthSetting(t).pipe(Ed(()=>this.refresh()))}getConnection(t,e){return this.controller.getConnectionAuthSetting(t,e)}resetCredential(t,e){return this.controller.resetMyCredentialAuthSetting(t,e)}connect(t,e,n,o){return this.getConnection(t,e).pipe(ma(r=>this.controller.connectAuthSetting(t,e).pipe(Ed(h=>n(h.authorizationUrl)),ma(()=>this.awaitNewConnection(t,e,r.connected?r.connectedAt??null:null,o)))))}awaitNewConnection(t,e,n,o){let r=0,h=0;return an(b,b).pipe(ma(()=>this.getConnection(t,e).pipe(ga(()=>_r(null)))),ne(A=>(r++,A?.connected&&H(A.connectedAt,n)?"connected":r*b>=M?"timeout":o()&&++h>=P?"abandoned":null)),Ot(A=>A!==null),cn(1))}static \u0275fac=function(e){return new(e||i$1)};static \u0275prov=A({token:i$1,factory:i$1.\u0275fac,providedIn:"root"})};export{I,it as i,nt as n};
1
+ import {i}from'./chunk-tSpYMeZM.js';import {y}from'./chunk-j4az_g4j.js';import {g,aG as X,$ as Sr,at as _y,a1 as ma,a2 as ga,aa as _r,ad as ne,aF as Jy,P as x,O as w$1,a5 as Ed,aH as an,aI as Ot,aJ as cn,a6 as A}from'./main-NX6CNSJE.js';var nt=["ApiKeyAuthSetting","BasicAuthAuthSetting","BearerTokenAuthSetting","OAuthDiscoverableAuthSetting","OAuthMcpDiscoverableAuthSetting","OAuthCustomAuthSetting","OAuthRegisteredAuthSetting"],it={ApiKeyAuthSetting:"API Key",BasicAuthAuthSetting:"Basic Auth (username / password)",BearerTokenAuthSetting:"Bearer Token",OAuthDiscoverableAuthSetting:"OAuth \u2014 Discovery URL",OAuthMcpDiscoverableAuthSetting:"OAuth \u2014 MCP Discoverable",OAuthCustomAuthSetting:"OAuth \u2014 Custom endpoints",OAuthRegisteredAuthSetting:"OAuth \u2014 Registered app"},R="none",w="me",b=2e3,M=15e4,P=3,L={ApiKeyAuthSetting:"API_KEY",BasicAuthAuthSetting:"BASIC_AUTH",BearerTokenAuthSetting:"BEARER_TOKEN",OAuthDiscoverableAuthSetting:"OAUTH_DISCOVERABLE",OAuthMcpDiscoverableAuthSetting:"OAUTH_MCP_DISCOVERABLE",OAuthCustomAuthSetting:"OAUTH_CUSTOM",OAuthRegisteredAuthSetting:"OAUTH_REGISTERED"},k={API_KEY:"ApiKeyAuthSetting",BASIC_AUTH:"BasicAuthAuthSetting",BEARER_TOKEN:"BearerTokenAuthSetting",OAUTH_DISCOVERABLE:"OAuthDiscoverableAuthSetting",OAUTH_MCP_DISCOVERABLE:"OAuthMcpDiscoverableAuthSetting",OAUTH_CUSTOM:"OAuthCustomAuthSetting",OAUTH_REGISTERED:"OAuthRegisteredAuthSetting"};function B(i){let t=L[i.authType];return t?x(w$1({},i),{authType:t}):i}function m(i){return U(i)}function f(i){return i.map(U)}function U(i){let t=i;if(typeof t.authType=="string"){let e=k[t.authType];if(e)return x(w$1({},t),{authType:e})}return i}function H(i,t){return t===null?true:i!==void 0&&Date.parse(i)>Date.parse(t)}var I=class i$1{controller=g(X);userState=g(y);refresh$=new Sr(void 0);namespaceId$=new Sr(null);vm$=_y([this.namespaceId$,this.refresh$]).pipe(ma(([t])=>{let e=this.loadPlatformSettings().pipe(ga(()=>_r([])));return t?_y([e,this.loadNamespaceSettings(t).pipe(ga(()=>_r([]))),this.loadUserSettings(t).pipe(ga(()=>_r([]))),this.loadUserSettings("global").pipe(ga(()=>_r([])))]).pipe(ne(([n,o,r,h])=>({platform:n,namespace:o,userOnNs:r,userGlobal:h}))):_y([e,this.loadNamespaceSettings("").pipe(ga(()=>_r([]))),this.loadUserSettings("global").pipe(ga(()=>_r([])))]).pipe(ne(([n,o,r])=>({platform:n,namespace:o,userOnNs:[],userGlobal:r})))}),Jy({bufferSize:1,refCount:true}));setNamespace(t){this.namespaceId$.value!==t&&this.namespaceId$.next(t);}refresh(){this.refresh$.next();}loadUserSettings(t){let e=t==="global"?R:t;return this.controller.listAuthSetting(e,w).pipe(ne(n=>f(n)))}userGlobal$=i(this.refresh$,()=>this.loadUserSettings("global"),[]);loadPlatformSettings(){return this.controller.listAuthSetting(R).pipe(ne(t=>f(t)))}loadNamespaceSettings(t){return t?this.controller.listAuthSetting(t).pipe(ne(e=>f(e))):_r([])}getById(t,e){return this.controller.getByIdAuthSetting(t).pipe(ne(n=>m(n)))}create(t,e,n){let r=this.userState.currentUser()?.id;if((e==="userOnNs"||e==="userGlobal")&&!r)throw new Error(`Cannot create ${e} auth setting before UserStateService.loadMe() resolves \u2014 call loadMe() at app init`);if(e==="namespace"&&(n===void 0||n===""))throw new Error("Cannot create namespace-scoped auth setting without a namespaceId");if(e==="userOnNs"&&!n)throw new Error("Cannot create userOnNs auth setting without a namespaceId");let h=B(x(w$1({},t),{namespaceId:e==="namespace"||e==="userOnNs"?n??void 0:void 0,userId:e==="userOnNs"||e==="userGlobal"?r:void 0}));return this.controller.createAuthSetting(h).pipe(ne(A=>m(A)),Ed(()=>this.refresh()))}update(t,e,n){let o=B(x(w$1({},e),{namespaceId:n.namespaceId,userId:n.userId,authType:n.authType}));return this.controller.updateAuthSetting(t,o).pipe(ne(r=>m(r)),Ed(()=>this.refresh()))}delete(t,e){return this.controller.deleteAuthSetting(t).pipe(Ed(()=>this.refresh()))}getConnection(t,e){return this.controller.getConnectionAuthSetting(t,e)}resetCredential(t,e){return this.controller.resetMyCredentialAuthSetting(t,e)}connect(t,e,n,o){return this.getConnection(t,e).pipe(ma(r=>this.controller.connectAuthSetting(t,e).pipe(Ed(h=>n(h.authorizationUrl)),ma(()=>this.awaitNewConnection(t,e,r.connected?r.connectedAt??null:null,o)))))}awaitNewConnection(t,e,n,o){let r=0,h=0;return an(b,b).pipe(ma(()=>this.getConnection(t,e).pipe(ga(()=>_r(null)))),ne(A=>(r++,A?.connected&&H(A.connectedAt,n)?"connected":r*b>=M?"timeout":o()&&++h>=P?"abandoned":null)),Ot(A=>A!==null),cn(1))}static \u0275fac=function(e){return new(e||i$1)};static \u0275prov=A({token:i$1,factory:i$1.\u0275fac,providedIn:"root"})};export{I,it as i,nt as n};