@communi/chat-api-client-typescript 2.6.3 → 2.6.5

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 (56) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +3 -3
  3. package/index.js +1 -1
  4. package/package.json +1 -1
  5. package/src/api-version.js +1 -1
  6. package/src/axios.js +1 -1
  7. package/src/client.js +1 -1
  8. package/src/config/config.js +1 -1
  9. package/src/config/index.js +1 -1
  10. package/src/demo.js +1 -1
  11. package/src/guest/guest.js +1 -1
  12. package/src/guest/index.js +1 -1
  13. package/src/guest/types.js +1 -1
  14. package/src/index.js +1 -1
  15. package/src/jwt.js +1 -1
  16. package/src/message/index.js +1 -1
  17. package/src/message/message.js +1 -1
  18. package/src/message/types.js +1 -1
  19. package/src/notification/index.js +1 -1
  20. package/src/notification/notification.js +1 -1
  21. package/src/notification/types.js +1 -1
  22. package/src/preview-link/index.js +1 -1
  23. package/src/preview-link/preview-link.js +1 -1
  24. package/src/preview-link/types.js +1 -1
  25. package/src/search/index.js +1 -1
  26. package/src/search/search.d.ts +3 -1
  27. package/src/search/search.js +1 -1
  28. package/src/search/types.d.ts +10 -1
  29. package/src/search/types.js +1 -1
  30. package/src/session/index.js +1 -1
  31. package/src/session/session.js +1 -1
  32. package/src/session/types.js +1 -1
  33. package/src/sticker/index.js +1 -1
  34. package/src/sticker/sticker.js +1 -1
  35. package/src/sticker/types.js +1 -1
  36. package/src/super-groups/index.js +1 -1
  37. package/src/super-groups/super-groups.js +1 -1
  38. package/src/tag/index.js +1 -1
  39. package/src/tag/tag.js +1 -1
  40. package/src/tag/types.js +1 -1
  41. package/src/tag-category/category.js +1 -1
  42. package/src/tag-category/index.js +1 -1
  43. package/src/tag-category/types.js +1 -1
  44. package/src/thread/index.js +1 -1
  45. package/src/thread/thread.js +1 -1
  46. package/src/thread/types.d.ts +1 -0
  47. package/src/thread/types.js +1 -1
  48. package/src/types.js +1 -1
  49. package/src/upload/index.js +1 -1
  50. package/src/upload/types.js +1 -1
  51. package/src/upload/upload.js +1 -1
  52. package/src/user/index.js +1 -1
  53. package/src/user/types.d.ts +3 -1
  54. package/src/user/types.js +1 -1
  55. package/src/user/user.js +1 -1
  56. package/src/utils.js +1 -1
package/src/user/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function S(p,w){var v=h();return S=function(V,n){V=V-0x16a;var m=v[V];return m;},S(p,w);}(function(p,w){var m=S,v=p();while(!![]){try{var V=parseInt(m(0x16e))/0x1+parseInt(m(0x16c))/0x2*(parseInt(m(0x170))/0x3)+parseInt(m(0x16d))/0x4*(-parseInt(m(0x16b))/0x5)+-parseInt(m(0x171))/0x6+-parseInt(m(0x16a))/0x7*(parseInt(m(0x16f))/0x8)+-parseInt(m(0x173))/0x9+parseInt(m(0x172))/0xa;if(V===w)break;else v['push'](v['shift']());}catch(n){v['push'](v['shift']());}}}(h,0x6ef30));export*from'./user';export*from'./types';function h(){var u=['36NWXUnu','496803RmShbP','343760PflXWv','27yWuFzt','5194752FopSVJ','25041670sVENiC','6670341lRMKXd','77DvGvlf','377470AAPVhI','47230cXsLhp'];h=function(){return u;};return h();}
1
+ 'use strict';(function(k,g){var v=V,e=k();while(!![]){try{var O=parseInt(v(0x102))/0x1+parseInt(v(0x100))/0x2+-parseInt(v(0x103))/0x3*(-parseInt(v(0xff))/0x4)+-parseInt(v(0xfa))/0x5*(parseInt(v(0xfb))/0x6)+parseInt(v(0x104))/0x7*(-parseInt(v(0xfe))/0x8)+-parseInt(v(0xfd))/0x9*(parseInt(v(0xf9))/0xa)+-parseInt(v(0xfc))/0xb*(parseInt(v(0x101))/0xc);if(O===g)break;else e['push'](e['shift']());}catch(l){e['push'](e['shift']());}}}(d,0x29f93));function V(k,g){var e=d();return V=function(O,l){O=O-0xf9;var v=e[O];return v;},V(k,g);}export*from'./user';function d(){var B=['27WognlB','16EbBaxh','4tirlgx','490996PDTZgH','708ktjYlv','314702LislgO','782466McDLqV','1103312NtoVCb','471290jBrPVM','5xYdxTC','245100PVGGol','28270mXMITc'];d=function(){return B;};return d();}export*from'./types';
@@ -1,7 +1,9 @@
1
1
  import { PSRoleThreadType } from '../thread';
2
2
  export declare enum PSUserType {
3
3
  USER = 1,
4
- BOT = 2
4
+ BOT = 2,
5
+ CS_AGENT = 5,
6
+ GUEST = 6
5
7
  }
6
8
  export declare enum PSUserStatus {
7
9
  DEACTIVATED = 2
package/src/user/types.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function S(p,w){var v=h();return S=function(V,n){V=V-0xa1;var m=v[V];return m;},S(p,w);}(function(p,w){var m=S,v=p();while(!![]){try{var V=parseInt(m(0xb2))/0x1*(parseInt(m(0xaf))/0x2)+parseInt(m(0xa1))/0x3*(parseInt(m(0xa2))/0x4)+-parseInt(m(0xae))/0x5*(-parseInt(m(0xb7))/0x6)+-parseInt(m(0xb4))/0x7+-parseInt(m(0xb5))/0x8*(parseInt(m(0xac))/0x9)+-parseInt(m(0xa7))/0xa*(-parseInt(m(0xb3))/0xb)+parseInt(m(0xab))/0xc*(parseInt(m(0xa5))/0xd);if(V===w)break;else v['push'](v['shift']());}catch(n){v['push'](v['shift']());}}}(h,0x2fb19));export var PSUserType;(function(p){var u=S;p[p[u(0xb1)]=0x1]=u(0xb1),p[p[u(0xa4)]=0x2]=u(0xa4);}(PSUserType||(PSUserType={})));export var PSUserStatus;(function(p){var B=S;p[p[B(0xa6)+B(0xaa)+'D']=0x2]=B(0xa6)+B(0xaa)+'D';}(PSUserStatus||(PSUserStatus={})));export var MEMBER_STATUS;(function(p){var Z=S;p[p[Z(0xa3)+'E']=0x1]=Z(0xa3)+'E',p[p[Z(0xa9)]=0x2]=Z(0xa9);}(MEMBER_STATUS||(MEMBER_STATUS={})));export var USER_STATE;function h(){var c=['IVATE','12HgWsNB','1743426XNVikQ','UNAVA','31805JQIRDI','2CHPYNQ','ILABL','USER','20467gvUdHB','803UCiLER','855631xWEaTo','16MnpLhr','ABLE','102ogCtSK','18246FCyOCH','20fLjNrg','ACTIV','BOT','2815163CQjOsP','DEACT','45130wQhCzZ','AVAIL','MUTED'];h=function(){return c;};return h();}(function(p){var F=S;p[p[F(0xa8)+F(0xb6)]=0x1]=F(0xa8)+F(0xb6),p[p[F(0xad)+F(0xb0)+'E']=0x2]=F(0xad)+F(0xb0)+'E';}(USER_STATE||(USER_STATE={})));
1
+ 'use strict';function V(k,g){var e=d();return V=function(O,l){O=O-0xb9;var v=e[O];return v;},V(k,g);}(function(k,g){var v=V,e=k();while(!![]){try{var O=parseInt(v(0xc1))/0x1*(parseInt(v(0xbf))/0x2)+parseInt(v(0xc0))/0x3+parseInt(v(0xc9))/0x4+parseInt(v(0xb9))/0x5*(-parseInt(v(0xca))/0x6)+parseInt(v(0xcd))/0x7*(-parseInt(v(0xd0))/0x8)+parseInt(v(0xcf))/0x9+parseInt(v(0xbe))/0xa*(-parseInt(v(0xc4))/0xb);if(O===g)break;else e['push'](e['shift']());}catch(l){e['push'](e['shift']());}}}(d,0x390a7));export var PSUserType;(function(k){var B=V;k[k[B(0xce)]=0x1]=B(0xce),k[k[B(0xc5)]=0x2]=B(0xc5),k[k[B(0xc6)+B(0xbc)]=0x5]=B(0xc6)+B(0xbc),k[k[B(0xba)]=0x6]=B(0xba);}(PSUserType||(PSUserType={})));export var PSUserStatus;function d(){var E=['708864iCMpCb','1434bzKtuG','AVAIL','DEACT','1185849ZLTkAG','USER','1407447CNOLiI','8ROwLob','3745LdEqFf','GUEST','MUTED','ENT','ABLE','47030drqOGn','1016ZCOecH','1079256EGeCkx','466mhmrKy','ACTIV','IVATE','814YNIZEb','BOT','CS_AG','ILABL','UNAVA'];d=function(){return E;};return d();}(function(k){var Z=V;k[k[Z(0xcc)+Z(0xc3)+'D']=0x2]=Z(0xcc)+Z(0xc3)+'D';}(PSUserStatus||(PSUserStatus={})));export var MEMBER_STATUS;(function(k){var i=V;k[k[i(0xc2)+'E']=0x1]=i(0xc2)+'E',k[k[i(0xbb)]=0x2]=i(0xbb);}(MEMBER_STATUS||(MEMBER_STATUS={})));export var USER_STATE;(function(k){var L=V;k[k[L(0xcb)+L(0xbd)]=0x1]=L(0xcb)+L(0xbd),k[k[L(0xc8)+L(0xc7)+'E']=0x2]=L(0xc8)+L(0xc7)+'E';}(USER_STATE||(USER_STATE={})));
package/src/user/user.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function S(p,w){const v=h();return S=function(V,n){V=V-0x19b;let m=v[V];return m;},S(p,w);}const F=S;(function(V,n){const Z=S,m=V();while(!![]){try{const u=-parseInt(Z(0x1b8))/0x1*(parseInt(Z(0x1bb))/0x2)+-parseInt(Z(0x1c4))/0x3+-parseInt(Z(0x1af))/0x4*(-parseInt(Z(0x1a8))/0x5)+-parseInt(Z(0x1a1))/0x6+parseInt(Z(0x1c1))/0x7+-parseInt(Z(0x1b6))/0x8*(parseInt(Z(0x19f))/0x9)+-parseInt(Z(0x1b0))/0xa*(-parseInt(Z(0x1ac))/0xb);if(u===n)break;else m['push'](m['shift']());}catch(B){m['push'](m['shift']());}}}(h,0xb6708));function h(){const K=['2WfZmHz','yId','r?ext','1272188GQuPbP','eStat','s/me-','ser_i','/puse','updat','5565560gGSgrZ','_user','s/onl','1809060qhhtUL','Deleg','/user','fetch','join','UserB','9TluWdw','Onlin','7524kDTIgC','s/mqt','Users','put','axios','mqttP','ping','11080uyXdvq','ate','State','post','17809LbwZmD','_ids=','get','1016jwWnrW','8330muQJTz','ine?u','t-pin','/asta','ds=','ing','662696HlTiCY','yIds'];h=function(){return K;};return h();}import{PS_CHAT_API_VERSION as p,PS_DESK_API_VERSION as w,PS_USER_API_VERSION as v}from'../api-version';export const PS_FETCH_USER_BY_IDS_MAX=0xa;export class PSChatUserApiImpl{[F(0x1a5)+F(0x1c5)+F(0x1a9)];constructor(V){const c=F;this[c(0x1a5)+c(0x1c5)+c(0x1a9)]=V;}[F(0x1a7)](){const y=F;return this[y(0x1a5)+y(0x1c5)+y(0x1a9)][y(0x1ab)](p+(y(0x19b)+y(0x1bd)+y(0x1a7)));}[F(0x19c)+F(0x1a3)+F(0x1a0)+'e'](V){const l=F;return this[l(0x1a5)+l(0x1c5)+l(0x1a9)][l(0x1ae)](p+(l(0x19b)+l(0x1c3)+l(0x1b1)+l(0x1be)+l(0x1b4))+V[l(0x19d)](','));}[F(0x19c)+F(0x19e)+F(0x1b9)](V,n){const D=F;return this[D(0x1a5)+D(0x1c5)+D(0x1a9)][D(0x1ae)](v+(D(0x1bf)+'r/')+V,{'params':{'more_fields':n}});}[F(0x19c)+F(0x19e)+F(0x1b7)](V){const E=F;return this[E(0x1a5)+E(0x1c5)+E(0x1a9)][E(0x1ae)](v+(E(0x1bf)+E(0x1ba)+E(0x1c2)+E(0x1ad))+V[E(0x19d)](','));}[F(0x1a6)+F(0x1b5)](V){const Y=F;return this[Y(0x1a5)+Y(0x1c5)+Y(0x1a9)][Y(0x1ab)](p+(Y(0x19b)+Y(0x1a2)+Y(0x1b2)+'g'),null,{'headers':{'X-Piscale-Request-Id':V}});}[F(0x19c)+F(0x1aa)](){const N=F;return this[N(0x1a5)+N(0x1c5)+N(0x1a9)][N(0x1ae)](w+(N(0x1b3)+'te'));}[F(0x1c0)+F(0x1bc)+'e'](V){const k=F;return this[k(0x1a5)+k(0x1c5)+k(0x1a9)][k(0x1a4)](w+(k(0x1b3)+'te'),{'state':V});}}
1
+ 'use strict';const L=V;(function(O,l){const i=V,v=O();while(!![]){try{const B=-parseInt(i(0x115))/0x1*(-parseInt(i(0x12c))/0x2)+parseInt(i(0x11f))/0x3+parseInt(i(0x10c))/0x4*(parseInt(i(0x128))/0x5)+parseInt(i(0x117))/0x6*(parseInt(i(0x10e))/0x7)+parseInt(i(0x11c))/0x8+parseInt(i(0x135))/0x9*(-parseInt(i(0x130))/0xa)+-parseInt(i(0x121))/0xb;if(B===l)break;else v['push'](v['shift']());}catch(Z){v['push'](v['shift']());}}}(d,0xa5561));function V(k,g){const e=d();return V=function(O,l){O=O-0x10b;let v=e[O];return v;},V(k,g);}import{PS_CHAT_API_VERSION as k,PS_DESK_API_VERSION as g,PS_USER_API_VERSION as e}from'../api-version';export const PS_FETCH_USER_BY_IDS_MAX=0xa;function d(){const S=['_ids=','805UYZetk','UserB','ate','fetch','207098pGEteL','t-pin','Onlin','Users','10VllBgl','State','ser_i','mqttP','ing','909801MkXdys','s/onl','33608Nthuxl','yId','8592878ImpsOL','Deleg','get','r?ext','join','yIds','eStat','9OxkoRQ','ine?u','6hRHcYB','_user','axios','ping','put','2823408oYdNGa','s/me-','post','138576bXsIro','updat','34463319zZfzEX','/user','/puse','s/mqt','/asta','ds='];d=function(){return S;};return d();}export class PSChatUserApiImpl{[L(0x119)+L(0x10f)+L(0x12a)];constructor(O){const E=L;this[E(0x119)+E(0x10f)+E(0x12a)]=O;}[L(0x11a)](){const q=L;return this[q(0x119)+q(0x10f)+q(0x12a)][q(0x11e)](k+(q(0x122)+q(0x11d)+q(0x11a)));}[L(0x12b)+L(0x12f)+L(0x12e)+'e'](O){const h=L;return this[h(0x119)+h(0x10f)+h(0x12a)][h(0x110)](k+(h(0x122)+h(0x10b)+h(0x116)+h(0x132)+h(0x126))+O[h(0x112)](','));}[L(0x12b)+L(0x129)+L(0x10d)](O,l){const N=L;return this[N(0x119)+N(0x10f)+N(0x12a)][N(0x110)](e+(N(0x123)+'r/')+O,{'params':{'more_fields':l}});}[L(0x12b)+L(0x129)+L(0x113)](O){const z=L;return this[z(0x119)+z(0x10f)+z(0x12a)][z(0x110)](e+(z(0x123)+z(0x111)+z(0x118)+z(0x127))+O[z(0x112)](','));}[L(0x133)+L(0x134)](O){const K=L;return this[K(0x119)+K(0x10f)+K(0x12a)][K(0x11e)](k+(K(0x122)+K(0x124)+K(0x12d)+'g'),null,{'headers':{'X-Piscale-Request-Id':O}});}[L(0x12b)+L(0x131)](){const U=L;return this[U(0x119)+U(0x10f)+U(0x12a)][U(0x110)](g+(U(0x125)+'te'));}[L(0x120)+L(0x114)+'e'](O){const J=L;return this[J(0x119)+J(0x10f)+J(0x12a)][J(0x11b)](g+(J(0x125)+'te'),{'state':O});}}
package/src/utils.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const F=S;function h(){const c=['ad.pi','://ap','cale.','.uplo','.api.','://','rejec','214cOhVEq','10269672gyoWCf','i.pis','com','1324934qOZjoO','457740oHWqjG','.com/','https','32199oeqNAF','le.co','1342004urDPrr','scale','pisca','886248zWzWFt','6485178DhimpP'];h=function(){return c;};return h();}(function(p,w){const m=S,v=p();while(!![]){try{const V=parseInt(m(0x8d))/0x1+parseInt(m(0x89))/0x2*(-parseInt(m(0x91))/0x3)+parseInt(m(0x93))/0x4+parseInt(m(0x8e))/0x5+-parseInt(m(0x97))/0x6+parseInt(m(0x8a))/0x7+-parseInt(m(0x96))/0x8;if(V===w)break;else v['push'](v['shift']());}catch(n){v['push'](v['shift']());}}}(h,0xd699c));function S(p,w){const v=h();return S=function(V,n){V=V-0x87;let m=v[V];return m;},S(p,w);}export const generateBaseUrl=p=>{const u=S;let w='';return w=u(0x90)+u(0x87)+p+(u(0x9c)+u(0x95)+u(0x92)+'m/'),w;},generateBaseUploadUrl=p=>{const B=S;let w='';return w=B(0x90)+B(0x87)+p+(B(0x9b)+B(0x98)+B(0x94)+B(0x8f)),w;},generateGuestUrl=()=>{const Z=S;let p='';return p=Z(0x90)+Z(0x99)+Z(0x8b)+Z(0x9a)+Z(0x8c),p;},errorLogger=async p=>Promise[F(0x88)+'t'](p),requestLogger=p=>p,responseLogger=p=>p;
1
+ 'use strict';const L=V;function V(k,g){const e=d();return V=function(O,l){O=O-0xc8;let v=e[O];return v;},V(k,g);}function d(){const E=['ad.pi','.com/','rejec','://','https','scale','cale.','.uplo','25080SVKubA','729123PdqcHM','i.pis','704205vBAiVV','187902iwBPut','pisca','233572UMntwK','703218GNvCRm','7zsZHFW','2075192LaXFVa','com','.api.','://ap','le.co'];d=function(){return E;};return d();}(function(k,g){const v=V,e=k();while(!![]){try{const O=parseInt(v(0xd8))/0x1+-parseInt(v(0xd6))/0x2+-parseInt(v(0xd3))/0x3+parseInt(v(0xd2))/0x4+-parseInt(v(0xd5))/0x5+parseInt(v(0xd9))/0x6*(parseInt(v(0xda))/0x7)+parseInt(v(0xdb))/0x8;if(O===g)break;else e['push'](e['shift']());}catch(l){e['push'](e['shift']());}}}(d,0x21d73));export const generateBaseUrl=k=>{const B=V;let g='';return g=B(0xce)+B(0xcd)+k+(B(0xdd)+B(0xd7)+B(0xc9)+'m/'),g;},generateBaseUploadUrl=k=>{const Z=V;let g='';return g=Z(0xce)+Z(0xcd)+k+(Z(0xd1)+Z(0xca)+Z(0xcf)+Z(0xcb)),g;},generateGuestUrl=()=>{const i=V;let k='';return k=i(0xce)+i(0xc8)+i(0xd4)+i(0xd0)+i(0xdc),k;},errorLogger=async k=>Promise[L(0xcc)+'t'](k),requestLogger=k=>k,responseLogger=k=>k;