@communi/chat-api-client-typescript 2.0.1 → 2.0.3

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 (52) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
  3. package/src/api-version.js +1 -1
  4. package/src/axios.js +1 -1
  5. package/src/client.d.ts +1 -0
  6. package/src/client.js +1 -1
  7. package/src/config/config.js +1 -1
  8. package/src/config/index.js +1 -1
  9. package/src/demo.js +1 -1
  10. package/src/index.js +1 -1
  11. package/src/jwt.js +1 -1
  12. package/src/message/index.js +1 -1
  13. package/src/message/message.js +1 -1
  14. package/src/message/types.d.ts +5 -0
  15. package/src/message/types.js +1 -1
  16. package/src/notification/index.js +1 -1
  17. package/src/notification/notification.js +1 -1
  18. package/src/notification/types.js +1 -1
  19. package/src/preview-link/index.js +1 -1
  20. package/src/preview-link/preview-link.js +1 -1
  21. package/src/preview-link/types.js +1 -1
  22. package/src/search/index.js +1 -1
  23. package/src/search/search.js +1 -1
  24. package/src/search/types.js +1 -1
  25. package/src/session/index.js +1 -1
  26. package/src/session/session.js +1 -1
  27. package/src/session/types.js +1 -1
  28. package/src/sticker/index.js +1 -1
  29. package/src/sticker/sticker.js +1 -1
  30. package/src/sticker/types.js +1 -1
  31. package/src/super-groups/index.js +1 -1
  32. package/src/super-groups/super-groups.js +1 -1
  33. package/src/tag/index.js +1 -1
  34. package/src/tag/tag.js +1 -1
  35. package/src/tag/types.js +1 -1
  36. package/src/tag-category/category.js +1 -1
  37. package/src/tag-category/index.js +1 -1
  38. package/src/tag-category/types.js +1 -1
  39. package/src/thread/index.js +1 -1
  40. package/src/thread/thread.d.ts +8 -4
  41. package/src/thread/thread.js +1 -1
  42. package/src/thread/types.d.ts +18 -1
  43. package/src/thread/types.js +1 -1
  44. package/src/types.js +1 -1
  45. package/src/upload/index.js +1 -1
  46. package/src/upload/types.js +1 -1
  47. package/src/upload/upload.js +1 -1
  48. package/src/user/index.js +1 -1
  49. package/src/user/types.d.ts +10 -0
  50. package/src/user/types.js +1 -1
  51. package/src/user/user.js +1 -1
  52. package/src/utils.js +1 -1
@@ -3,6 +3,13 @@ export declare enum PSUserType {
3
3
  USER = 1,
4
4
  BOT = 2
5
5
  }
6
+ export declare enum PSUserStatus {
7
+ DEACTIVATED = 2
8
+ }
9
+ export declare enum MEMBER_STATUS {
10
+ ACTIVE = 1,
11
+ MUTED = 2
12
+ }
6
13
  export type PSUserDto = {
7
14
  user_id: string;
8
15
  ext_user_id: string;
@@ -10,6 +17,9 @@ export type PSUserDto = {
10
17
  avatar_url?: string;
11
18
  role?: PSRoleThreadType;
12
19
  type?: PSUserType;
20
+ alias?: string;
21
+ verified?: boolean;
22
+ status?: PSUserStatus;
13
23
  };
14
24
  export type PSUserLastOnlineTimeDto = {
15
25
  ext_user_id: string;
package/src/user/types.js CHANGED
@@ -1 +1 @@
1
- 'use strict';(function(I,V){var v=U,M=I();while(!![]){try{var E=parseInt(v(0x196))/0x1+-parseInt(v(0x1a1))/0x2*(parseInt(v(0x19f))/0x3)+-parseInt(v(0x197))/0x4*(-parseInt(v(0x19b))/0x5)+-parseInt(v(0x1a0))/0x6*(parseInt(v(0x199))/0x7)+-parseInt(v(0x19e))/0x8*(-parseInt(v(0x1a2))/0x9)+parseInt(v(0x19a))/0xa*(parseInt(v(0x19c))/0xb)+-parseInt(v(0x198))/0xc;if(E===V)break;else M['push'](M['shift']());}catch(u){M['push'](M['shift']());}}}(i,0x3032c));function U(I,V){var M=i();return U=function(E,u){E=E-0x196;var v=M[E];return v;},U(I,V);}export var PSUserType;function i(){var q=['62430kIJkjx','4jNaveN','388620nuhTrw','28YtMEtq','3012980xRywdI','100295TQeDEW','11gtjTst','BOT','1570728cggRxi','33YkdirX','333708SXWFpt','58944PZnvTK','18cLvHqM','USER'];i=function(){return q;};return i();}(function(I){var L=U;I[I[L(0x1a3)]=0x1]=L(0x1a3),I[I[L(0x19d)]=0x2]=L(0x19d);}(PSUserType||(PSUserType={})));
1
+ 'use strict';(function(m,Q){var x=j,y=m();while(!![]){try{var O=parseInt(x(0x185))/0x1*(parseInt(x(0x189))/0x2)+parseInt(x(0x184))/0x3+-parseInt(x(0x17c))/0x4*(parseInt(x(0x180))/0x5)+parseInt(x(0x181))/0x6+parseInt(x(0x18a))/0x7+-parseInt(x(0x187))/0x8+-parseInt(x(0x188))/0x9;if(O===Q)break;else y['push'](y['shift']());}catch(a){y['push'](y['shift']());}}}(h,0x43e43));function j(m,Q){var y=h();return j=function(O,a){O=O-0x17c;var x=y[O];return x;},j(m,Q);}function h(){var J=['1128834vusCan','4ViJJra','MUTED','ACTIV','USER','1579005XerqNT','3334008reoymB','DEACT','IVATE','163983phfDty','533371eRuXEA','BOT','1760088XRvnGe','4419603oiVaQR','2jkIkhk'];h=function(){return J;};return h();}export var PSUserType;(function(m){var E=j;m[m[E(0x17f)]=0x1]=E(0x17f),m[m[E(0x186)]=0x2]=E(0x186);}(PSUserType||(PSUserType={})));export var PSUserStatus;(function(m){var H=j;m[m[H(0x182)+H(0x183)+'D']=0x2]=H(0x182)+H(0x183)+'D';}(PSUserStatus||(PSUserStatus={})));export var MEMBER_STATUS;(function(m){var V=j;m[m[V(0x17e)+'E']=0x1]=V(0x17e)+'E',m[m[V(0x17d)]=0x2]=V(0x17d);}(MEMBER_STATUS||(MEMBER_STATUS={})));
package/src/user/user.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function i(){const J=['yId','ate','join','ping','post','10UAWpjr','25GbnpIf','mqttP','2568cIbRjp','210177ToGoEu','_ids=','s/me-','Users','s/mqt','UserB','ds=','143547xnkbzW','t-pin','/user','1172376yAhPRY','get','fetch','yIds','axios','1614818ElTGYW','Onlin','ser_i','Deleg','9434349OFVuwm','7UeBsPL','509892XGlBfd','ine?u','s/onl','/puse','_user','9682336wGOjoD','r?ext','2yEoyHN','ing'];i=function(){return J;};return i();}const e=U;(function(M,E){const q=U,u=M();while(!![]){try{const v=parseInt(q(0x9b))/0x1*(parseInt(q(0x8e))/0x2)+-parseInt(q(0x86))/0x3+parseInt(q(0x94))/0x4+parseInt(q(0xa3))/0x5*(parseInt(q(0x89))/0x6)+-parseInt(q(0x93))/0x7*(-parseInt(q(0x99))/0x8)+-parseInt(q(0x92))/0x9*(-parseInt(q(0xa2))/0xa)+-parseInt(q(0xa6))/0xb*(parseInt(q(0xa5))/0xc);if(v===E)break;else u['push'](u['shift']());}catch(L){u['push'](u['shift']());}}}(i,0xcd575));function U(I,V){const M=i();return U=function(E,u){E=E-0x83;let v=M[E];return v;},U(I,V);}import{PS_CHAT_API_VERSION as I,PS_USER_API_VERSION as V}from'../api-version';export const PS_FETCH_USER_BY_IDS_MAX=0xa;export class PSChatUserApiImpl{[e(0x8d)+e(0x91)+e(0x9e)];constructor(M){const B=e;this[B(0x8d)+B(0x91)+B(0x9e)]=M;}[e(0xa0)](){const j=e;return this[j(0x8d)+j(0x91)+j(0x9e)][j(0xa1)](I+(j(0x88)+j(0xa8)+j(0xa0)));}[e(0x8b)+e(0xa9)+e(0x8f)+'e'](M){const A=e;return this[A(0x8d)+A(0x91)+A(0x9e)][A(0x8a)](I+(A(0x88)+A(0x96)+A(0x95)+A(0x90)+A(0x85))+M[A(0x9f)](','));}[e(0x8b)+e(0x84)+e(0x9d)](M){const C=e;return this[C(0x8d)+C(0x91)+C(0x9e)][C(0x8a)](V+(C(0x97)+'r/')+M);}[e(0x8b)+e(0x84)+e(0x8c)](M){const F=e;return this[F(0x8d)+F(0x91)+F(0x9e)][F(0x8a)](V+(F(0x97)+F(0x9a)+F(0x98)+F(0xa7))+M[F(0x9f)](','));}[e(0xa4)+e(0x9c)](M){const n=e;return this[n(0x8d)+n(0x91)+n(0x9e)][n(0xa1)](I+(n(0x88)+n(0x83)+n(0x87)+'g'),null,{'headers':{'X-Piscale-Request-Id':M}});}}
1
+ 'use strict';const V=j;function j(m,Q){const y=h();return j=function(O,a){O=O-0xe1;let x=y[O];return x;},j(m,Q);}(function(y,O){const H=j,a=y();while(!![]){try{const x=-parseInt(H(0x101))/0x1*(parseInt(H(0xfc))/0x2)+parseInt(H(0x100))/0x3*(parseInt(H(0x102))/0x4)+parseInt(H(0xe2))/0x5*(-parseInt(H(0xe6))/0x6)+-parseInt(H(0x104))/0x7+-parseInt(H(0xf4))/0x8+-parseInt(H(0xe1))/0x9*(-parseInt(H(0xe3))/0xa)+parseInt(H(0x103))/0xb;if(x===O)break;else a['push'](a['shift']());}catch(E){a['push'](a['shift']());}}}(h,0xc068a));function h(){const Z=['ds=','r?ext','s/mqt','t-pin','mqttP','s/me-','ping','ing','ate','post','s/onl','1768848eBROdL','yId','Onlin','UserB','Deleg','_user','_ids=','/puse','4haphcH','axios','fetch','Users','3qKljjH','61498nIajUC','771644FtEbLi','5592983JsYnFm','5039748GvzjHs','yIds','get','18brRPzQ','10btCECZ','6393090hprkQQ','ine?u','/user','383430oQKeIQ','join','ser_i'];h=function(){return Z;};return h();}import{PS_CHAT_API_VERSION as m,PS_USER_API_VERSION as Q}from'../api-version';export const PS_FETCH_USER_BY_IDS_MAX=0xa;export class PSChatUserApiImpl{[V(0xfd)+V(0xf8)+V(0xf1)];constructor(y){const J=V;this[J(0xfd)+J(0xf8)+J(0xf1)]=y;}[V(0xef)](){const T=V;return this[T(0xfd)+T(0xf8)+T(0xf1)][T(0xf2)](m+(T(0xe5)+T(0xee)+T(0xef)));}[V(0xfe)+V(0xff)+V(0xf6)+'e'](y){const N=V;return this[N(0xfd)+N(0xf8)+N(0xf1)][N(0x106)](m+(N(0xe5)+N(0xf3)+N(0xe4)+N(0xe8)+N(0xe9))+y[N(0xe7)](','));}[V(0xfe)+V(0xf7)+V(0xf5)](y){const P=V;return this[P(0xfd)+P(0xf8)+P(0xf1)][P(0x106)](Q+(P(0xfb)+'r/')+y);}[V(0xfe)+V(0xf7)+V(0x105)](y){const U=V;return this[U(0xfd)+U(0xf8)+U(0xf1)][U(0x106)](Q+(U(0xfb)+U(0xea)+U(0xf9)+U(0xfa))+y[U(0xe7)](','));}[V(0xed)+V(0xf0)](y){const R=V;return this[R(0xfd)+R(0xf8)+R(0xf1)][R(0xf2)](m+(R(0xe5)+R(0xeb)+R(0xec)+'g'),null,{'headers':{'X-Piscale-Request-Id':y}});}}
package/src/utils.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const e=U;function U(I,V){const M=i();return U=function(E,u){E=E-0x1e5;let v=M[E];return v;},U(I,V);}function i(){const B=['.api.','https','1250406IfdrbW','502458EhsWrp','363940zAMrOQ','ad.pi','69KXngRl','261YydYPi','le.co','2633435xHfZyO','174580kdObqw','.uplo','rejec','scale','46672zDbooN','553rEAHhZ','.com/','://','4504tCMNYT','pisca'];i=function(){return B;};return i();}(function(I,V){const v=U,M=I();while(!![]){try{const E=parseInt(v(0x1e6))/0x1+parseInt(v(0x1f5))/0x2*(parseInt(v(0x1e9))/0x3)+parseInt(v(0x1e7))/0x4+-parseInt(v(0x1ec))/0x5+parseInt(v(0x1e5))/0x6+-parseInt(v(0x1f2))/0x7*(-parseInt(v(0x1f1))/0x8)+-parseInt(v(0x1ea))/0x9*(parseInt(v(0x1ed))/0xa);if(E===V)break;else M['push'](M['shift']());}catch(u){M['push'](M['shift']());}}}(i,0x44bd5));export const generateBaseUrl=I=>{const L=U;let V='';return V=L(0x1f8)+L(0x1f4)+I+(L(0x1f7)+L(0x1f6)+L(0x1eb)+'m/'),V;},generateBaseUploadUrl=I=>{const q=U;let V='';return V=q(0x1f8)+q(0x1f4)+I+(q(0x1ee)+q(0x1e8)+q(0x1f0)+q(0x1f3)),V;},errorLogger=async I=>Promise[e(0x1ef)+'t'](I),requestLogger=I=>I,responseLogger=I=>I;
1
+ 'use strict';const V=j;(function(m,Q){const x=j,y=m();while(!![]){try{const O=-parseInt(x(0x1f9))/0x1*(-parseInt(x(0x1ed))/0x2)+-parseInt(x(0x1f2))/0x3*(-parseInt(x(0x1f0))/0x4)+parseInt(x(0x1ff))/0x5*(parseInt(x(0x1f1))/0x6)+parseInt(x(0x1ea))/0x7*(-parseInt(x(0x1fc))/0x8)+-parseInt(x(0x1fd))/0x9*(parseInt(x(0x1f4))/0xa)+parseInt(x(0x1eb))/0xb+-parseInt(x(0x1ef))/0xc*(parseInt(x(0x1fb))/0xd);if(O===Q)break;else y['push'](y['shift']());}catch(a){y['push'](y['shift']());}}}(h,0x98e96));function h(){const J=['.api.','133XxqtYd','10890693BoFybc','.uplo','144542aaoTLf','scale','1170924JpkNef','11000iwYSlW','1003704vpUJBD','1119QmuBXy','https','100oXdqja','pisca','.com/','rejec','ad.pi','2wKUPVU','le.co','52DCLKTK','241160ZREMRv','664425xQCbIq','://','5udWVlX'];h=function(){return J;};return h();}function j(m,Q){const y=h();return j=function(O,a){O=O-0x1e9;let x=y[O];return x;},j(m,Q);}export const generateBaseUrl=m=>{const E=j;let Q='';return Q=E(0x1f3)+E(0x1fe)+m+(E(0x1e9)+E(0x1f5)+E(0x1fa)+'m/'),Q;},generateBaseUploadUrl=m=>{const H=j;let Q='';return Q=H(0x1f3)+H(0x1fe)+m+(H(0x1ec)+H(0x1f8)+H(0x1ee)+H(0x1f6)),Q;},errorLogger=async m=>Promise[V(0x1f7)+'t'](m),requestLogger=m=>m,responseLogger=m=>m;