@communi/chat-api-client-typescript 2.6.4 → 2.6.6
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/index.js +1 -1
- package/package.json +1 -1
- package/src/api-version.js +1 -1
- package/src/axios.js +1 -1
- package/src/client.js +1 -1
- package/src/config/config.js +1 -1
- package/src/config/index.js +1 -1
- package/src/demo.js +1 -1
- package/src/guest/guest.js +1 -1
- package/src/guest/index.js +1 -1
- package/src/guest/types.js +1 -1
- package/src/index.js +1 -1
- package/src/jwt.js +1 -1
- package/src/message/index.js +1 -1
- package/src/message/message.js +1 -1
- package/src/message/types.d.ts +12 -1
- package/src/message/types.js +1 -1
- package/src/notification/index.js +1 -1
- package/src/notification/notification.js +1 -1
- package/src/notification/types.js +1 -1
- package/src/preview-link/index.js +1 -1
- package/src/preview-link/preview-link.js +1 -1
- package/src/preview-link/types.js +1 -1
- package/src/search/index.js +1 -1
- package/src/search/search.d.ts +3 -1
- package/src/search/search.js +1 -1
- package/src/search/types.d.ts +9 -1
- package/src/search/types.js +1 -1
- package/src/session/index.js +1 -1
- package/src/session/session.d.ts +25 -1
- package/src/session/session.js +1 -1
- package/src/session/types.d.ts +29 -0
- package/src/session/types.js +1 -1
- package/src/sticker/index.js +1 -1
- package/src/sticker/sticker.js +1 -1
- package/src/sticker/types.js +1 -1
- package/src/super-groups/index.js +1 -1
- package/src/super-groups/super-groups.js +1 -1
- package/src/tag/index.js +1 -1
- package/src/tag/tag.js +1 -1
- package/src/tag/types.js +1 -1
- package/src/tag-category/category.js +1 -1
- package/src/tag-category/index.js +1 -1
- package/src/tag-category/types.js +1 -1
- package/src/thread/index.js +1 -1
- package/src/thread/thread.js +1 -1
- package/src/thread/types.d.ts +6 -0
- package/src/thread/types.js +1 -1
- package/src/types.js +1 -1
- package/src/upload/index.js +1 -1
- package/src/upload/types.js +1 -1
- package/src/upload/upload.js +1 -1
- package/src/user/index.js +1 -1
- package/src/user/types.d.ts +3 -1
- package/src/user/types.js +1 -1
- package/src/user/user.js +1 -1
- package/src/utils.js +1 -1
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(k,P){var t=g,O=k();while(!![]){try{var S=-parseInt(t(0x1df))/0x1+parseInt(t(0x1dd))/0x2*(-parseInt(t(0x1e2))/0x3)+-parseInt(t(0x1dc))/0x4*(parseInt(t(0x1e3))/0x5)+-parseInt(t(0x1de))/0x6*(-parseInt(t(0x1e4))/0x7)+-parseInt(t(0x1e1))/0x8*(-parseInt(t(0x1e5))/0x9)+parseInt(t(0x1db))/0xa+parseInt(t(0x1e0))/0xb;if(S===P)break;else O['push'](O['shift']());}catch(m){O['push'](O['shift']());}}}(h,0x48526));function g(k,P){var O=h();return g=function(S,m){S=S-0x1db;var t=O[S];return t;},g(k,P);}export*from'./src';function h(){var w=['6721253AjfshD','1285592IgvRDe','1407111pSeQoq','604140nnDMDu','973fWJkAk','9ZOoddM','4733160pDXYXe','12NuFpKr','2grLAoO','18342hyQlqX','542210VAavvm'];h=function(){return w;};return h();}
|
package/package.json
CHANGED
package/src/api-version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function g(k,P){const O=h();return g=function(S,m){S=S-0x176;let t=O[S];return t;},g(k,P);}const w=g;(function(k,P){const t=g,O=k();while(!![]){try{const S=-parseInt(t(0x17f))/0x1+-parseInt(t(0x180))/0x2*(parseInt(t(0x189))/0x3)+-parseInt(t(0x181))/0x4+parseInt(t(0x18a))/0x5+parseInt(t(0x178))/0x6*(-parseInt(t(0x179))/0x7)+-parseInt(t(0x186))/0x8+-parseInt(t(0x17a))/0x9*(-parseInt(t(0x176))/0xa);if(S===P)break;else O['push'](O['shift']());}catch(m){O['push'](O['shift']());}}}(h,0x35530));export const PS_CHAT_API_VERSION=w(0x183)+w(0x18b),PS_SEARCH_API_VERSION=w(0x185)+w(0x17c)+'0',PS_PREVIEW_LINK_API_VERSION=w(0x18c)+w(0x184)+w(0x17d)+'.0',PS_UPLOAD_API_VERSION=w(0x18e)+w(0x182)+'0',PS_NOTIFICATION_API_VERSION=w(0x17b)+w(0x18f)+w(0x188)+'.0',PS_STICKER_API_VERSION=w(0x17e)+w(0x177)+'.0',PS_USER_API_VERSION=w(0x18d)+w(0x18b),PS_DESK_API_VERSION=w(0x187)+w(0x18b);function h(){const A=['stick','198654zEBiCB','82ycQgwW','141736qDRcas','d/v1.','chat/','ew-li','searc','2557944tvxcJy','desk/','on/v1','5997DKWeSB','674390FdjCzU','v1.0','previ','user/','uploa','icati','1420gdflJS','er/v1','1279116nJkJcT','7PNWAHF','59103JPMOrW','notif','h/v1.','nk/v1'];h=function(){return A;};return h();}
|
package/src/axios.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const v=g;function g(k,P){const O=h();return g=function(S,m){S=S-0xe5;let t=O[S];return t;},g(k,P);}(function(b,L){const V=g,q=b();while(!![]){try{const o=parseInt(V(0xfc))/0x1+-parseInt(V(0x107))/0x2+-parseInt(V(0xff))/0x3*(parseInt(V(0x106))/0x4)+parseInt(V(0x103))/0x5+parseInt(V(0x135))/0x6*(-parseInt(V(0x104))/0x7)+-parseInt(V(0x109))/0x8+parseInt(V(0x12d))/0x9;if(o===L)break;else q['push'](q['shift']());}catch(y){q['push'](q['shift']());}}}(h,0x70d7e));import k from'axios';import{PSResponseError as P}from'./types';function h(){const R=['uest','ken\x20t','Beare','espon','quest','code','isErr','isNet','=>\x20th','est\x20k','mise','868215nDBOiL','h\x20tok','workO','99RtBcqQ','confi','error','nse','857875fLhaTS','63iZYYXS','nce','106796kNYUbo','822594PIooBG','post','3152856FhydZx','ử\x20lại','FromR','early','sh\x20to','sent','\x20API\x20','ponse','put','orRes','get','doAxi','jwt','cepto','công\x20','log','respo','osReq','hác\x20đ','messa','đang\x20','tRequ','optio','shTok','onse','rIdem','statu','ang\x20r','eResp','creat','handl','Token','id\x20re','ỗi\x20-\x20','url','fetch','16369020GcVlPI','getJW','inter','Refre','Inval','\x20bị\x204','n/jso','appli','473262MwNTfL','reque','use','hành\x20','baseU','Insta','ken\x20l','heade','ror','\x20type','efres','data','API\x20','patch','i\x20=>\x20','\x20requ','poten','estEr','ken','delet','refre','enPro','axios','01\x20rồ','catio','ion','i\x20như','ng\x20có','rizat','Autho','http_'];h=function(){return R;};return h();}import O from'axios-retry';import{decodeJWT as S,isJWTExpired as m}from'./jwt';import{errorLogger as t,requestLogger as w,responseLogger as A}from'./utils';const a=0x191;export class PSChatAxiosDelegate{[v(0x115)];[v(0x11f)+'ns'];[v(0xe8)+v(0x13a)+v(0x105)];[v(0xe6)+v(0x120)+v(0xe7)+v(0xfb)];constructor(b,L,q){const x=v;this[x(0x115)]=b,this[x(0x11f)+'ns']=L,this[x(0xe8)+x(0x13a)+x(0x105)]=k[x(0x126)+'e']({'baseURL':q,'headers':{'Content-Type':x(0x134)+x(0xea)+x(0x133)+'n'},'timeout':0x2710,'withCredentials':!0x1}),this[x(0xe8)+x(0x13a)+x(0x105)][x(0x12f)+x(0x116)+'rs'][x(0x136)+'st'][x(0x137)](async y=>(this[x(0x115)]?this[x(0x10c)+x(0x130)+x(0x120)+'en'](this[x(0x115)]):this[x(0x115)]=await this[x(0x11f)+'ns'][x(0x12c)+x(0x128)](),y[x(0x13c)+'rs'][x(0xef)+x(0xee)+x(0xeb)]=x(0xf3)+'r\x20'+this[x(0x115)],w(y)),y=>t(y)),this[x(0xe8)+x(0x13a)+x(0x105)][x(0x12f)+x(0x116)+'rs'][x(0x119)+x(0x102)][x(0x137)](y=>A(y),async y=>{const H=x,N=y[H(0x100)+'g'];if(y[H(0x119)+H(0x102)]&&y[H(0x119)+H(0x102)][H(0x123)+'s']===a&&!N[H(0x10e)]){N[H(0x10e)]=!0x0,this[H(0xe6)+H(0x120)+H(0xe7)+H(0xfb)]?console[H(0x118)](H(0x141)+(N[H(0x139)+'RL']+N[H(0x12b)])+(H(0x132)+H(0xe9)+H(0xec)+H(0xed)+H(0x144)+H(0xfa)+H(0x11b)+H(0x124)+H(0x13f)+H(0xfd)+'en')):(console[H(0x118)](H(0x141)+(N[H(0x139)+'RL']+N[H(0x12b)])+(H(0x132)+H(0xe9)+H(0x143)+H(0x11d)+H(0xe6)+H(0x10d)+H(0x147))),this[H(0xe6)+H(0x120)+H(0xe7)+H(0xfb)]=this[H(0x11f)+'ns'][H(0x12c)+H(0x128)]());try{return this[H(0x115)]=await this[H(0xe6)+H(0x120)+H(0xe7)+H(0xfb)],this[H(0xe6)+H(0x120)+H(0xe7)+H(0xfb)]=void 0x0,console[H(0x118)](H(0x130)+H(0x10d)+H(0xf2)+H(0x138)+H(0x117)+H(0xf9)+H(0x10a)+H(0x10f)+(N[H(0x139)+'RL']+N[H(0x12b)])),this[H(0xe8)+H(0x13a)+H(0x105)](N);}catch(z){console[H(0x118)](H(0x130)+H(0x10d)+H(0x13b)+H(0x12a)+z);}}return t(y);}),O(this[x(0xe8)+x(0x13a)+x(0x105)],{'retries':0x3,'retryDelay':()=>0x3e8,'retryCondition':y=>y[x(0x119)+x(0x102)]!==void 0x0&&y[x(0x119)+x(0x102)][x(0x123)+'s']!==a&&O[x(0xf8)+x(0xfe)+x(0x122)+x(0x145)+x(0x11e)+x(0x146)+x(0x13d)](y)});}[v(0x12e)+'T'](){const E=v;return this[E(0x115)];}[v(0x113)](b,L){const T=v;return this[T(0x114)+T(0x11a)+T(0xf1)](T(0x113),b,null,L);}[v(0x111)](b,L,q){const D=v;return this[D(0x114)+D(0x11a)+D(0xf1)](D(0x111),b,L,q);}[v(0x108)](b,L,q){const s=v;return this[s(0x114)+s(0x11a)+s(0xf1)](s(0x108),b,L,q);}[v(0x142)](b,L,q){const j=v;return this[j(0x114)+j(0x11a)+j(0xf1)](j(0x142),b,L,q);}[v(0xe5)+'e'](b,L){const C=v;return this[C(0x114)+C(0x11a)+C(0xf1)](C(0xe5)+'e',b,null,L);}[v(0x10c)+v(0x130)+v(0x120)+'en']=async b=>{const J=v;if(this[J(0xe6)+J(0x120)+J(0xe7)+J(0xfb)])return;const L=S(b);L&&m(L)&&(this[J(0xe6)+J(0x120)+J(0xe7)+J(0xfb)]=this[J(0x11f)+'ns'][J(0x12c)+J(0x128)](),this[J(0x115)]=await this[J(0xe6)+J(0x120)+J(0xe7)+J(0xfb)],this[J(0xe6)+J(0x120)+J(0xe7)+J(0xfb)]=void 0x0);};[v(0x114)+v(0x11a)+v(0xf1)]=async(b,L,q,y)=>{const W=v;try{let N;switch(b){case W(0x113):N=await this[W(0xe8)+W(0x13a)+W(0x105)][W(0x113)](L,y);break;case W(0xe5)+'e':N=await this[W(0xe8)+W(0x13a)+W(0x105)][W(0xe5)+'e'](L,y);break;case W(0x108):N=await this[W(0xe8)+W(0x13a)+W(0x105)][W(0x108)](L,q,y);break;case W(0x111):N=await this[W(0xe8)+W(0x13a)+W(0x105)][W(0x111)](L,q,y);break;case W(0x142):N=await this[W(0xe8)+W(0x13a)+W(0x105)][W(0x142)](L,q,y);break;case W(0x11f)+'ns':N=await this[W(0xe8)+W(0x13a)+W(0x105)][W(0x11f)+'ns'](L,y);break;default:throw new Error(W(0x131)+W(0x129)+W(0xf5)+W(0x13e));}return this[W(0x127)+W(0x125)+W(0x121)](N);}catch(z){if(z[W(0x119)+W(0x102)])return this[W(0x127)+W(0x125)+W(0x121)](z[W(0x119)+W(0x102)]);throw z;}};[v(0x127)+v(0x125)+v(0x121)](b){const Z=v,L=b[Z(0x140)];if(this[Z(0xf7)+Z(0x112)+Z(0x110)](b))throw this[Z(0x101)+Z(0x10b)+Z(0xf4)+'se'](b);return L;}[v(0x101)+v(0x10b)+v(0xf4)+'se'](b){const M=v,L=b[M(0x123)+'s'],q=b[M(0x140)],y=new P(q[M(0x11c)+'ge']??'');return y[M(0xf0)+M(0xf6)]=L,y[M(0x119)+M(0x102)]=b,y;}[v(0xf7)+v(0x112)+v(0x110)](b){const G=v;return!b[G(0x123)+'s']||b[G(0x123)+'s']<0xc8||0x12c<=b[G(0x123)+'s'];}}
|
package/src/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const F=P;(function(Z,M){const e=P,G=Z();while(!![]){try{const R=parseInt(e(0xcb))/0x1*(-parseInt(e(0xa6))/0x2)+parseInt(e(0xd3))/0x3*(-parseInt(e(0xb8))/0x4)+-parseInt(e(0x98))/0x5*(parseInt(e(0x8b))/0x6)+parseInt(e(0xb9))/0x7*(parseInt(e(0xc9))/0x8)+-parseInt(e(0xc5))/0x9*(-parseInt(e(0xa1))/0xa)+parseInt(e(0xab))/0xb+-parseInt(e(0xaa))/0xc;if(R===M)break;else G['push'](G['shift']());}catch(B){G['push'](G['shift']());}}}(k,0x27117));import{PSChatConfigApiImpl as O}from'./config';import{PSChatThreadApiImpl as S}from'./thread';import{PSChatTagApiImpl as t}from'./tag';import{PSChatMessageApiImpl as b}from'./message';import{PSChatAxiosDelegate as L}from'./axios';function k(){const h0=['ewLin','s/hea','ser_i','ance','axios','super','id\x20to','103065LqLnMH','12wzVcta','uploa','previ','ing\x20a','tagCa','getJW','dApi','Deleg','Url','dDele','onApi','creat','gApi','170395lChIfs','heck','valid','kBase','yApi','fetch','lth-c','\x20miss','tegor','72170SAOwQa','messa','eInst','kApi','/user','8SOyewq','geApi','erApi','tagAp','1052004uCVvmP','1184480nuekUT','id\x20or','confi','stick','threa','Uploa','userI','userA','Inval','ext_u','gate','hChec','searc','12pOoLMB','329oiSwAd','Token','sessi','hApi','ate','eGues','healt','icati','Group','sApi','ppId','tions','333VGdlsX','ateOp','notif','appId','40864gSfvMQ','ken','48968LucUzI'];k=function(){return h0;};return k();}function P(h,g){const O=k();return P=function(S,m){S=S-0x8b;let t=O[S];return t;},P(h,g);}import{decodeJWT as q}from'./jwt';import{PSChatUserApiImpl as y}from'./user';import{PSChatPreviewLinkApiImpl as N}from'./preview-link';import{PSChatSearchApiImpl as z}from'./search';import{PSChatUploadApiImpl as V}from'./upload';import{PSChatNotificationApiImpl as v}from'./notification';import{generateBaseUrl as H,generateBaseUploadUrl as i}from'./utils';import{PS_CHAT_API_VERSION as E}from'./api-version';import{PSChatSuperGroupsApiImpl as T}from'./super-groups';import{PSChatStickerApiImpl as D}from'./sticker';import{PSChatSessionApiImpl as j}from'./session';import{PSChatTagCategoryApiImpl as J}from'./tag-category';import{PSChatGuestApi as W}from'./guest';export class PSChatApiClient{[F(0xb1)+'d'];[F(0xad)+F(0x97)];[F(0xaf)+F(0x91)];[F(0xa2)+F(0xa7)];[F(0xb2)+'pi'];[F(0x8d)+F(0xcc)+F(0xa4)];[F(0xb7)+F(0xbc)];[F(0xae)+F(0xa8)];[F(0x8c)+F(0x91)];[F(0xc7)+F(0xc0)+F(0x95)];[F(0xd1)+F(0xc1)+F(0xc2)];[F(0xa9)+'i'];[F(0xbb)+F(0x95)];[F(0x8f)+F(0xa0)+F(0x9c)];[F(0xbf)+F(0xb6)+F(0x9b)+F(0x93)];[F(0xd0)+F(0x92)+F(0xbd)];[F(0xd0)+F(0xb0)+F(0x94)+F(0xb5)];constructor(Z,M,G){const Q=F;PSChatApiClient[Q(0x9a)+Q(0xc6)+Q(0xc4)](G),this[Q(0xbf)+Q(0xb6)+Q(0x9b)+Q(0x93)]=''+H(G[Q(0xc8)])+E+(Q(0xa5)+Q(0xcd)+Q(0x9e)+Q(0x99)),this[Q(0xb1)+'d']=Z,this[Q(0xd0)+Q(0x92)+Q(0xbd)]=new L(M,G,H(G[Q(0xc8)])),this[Q(0xd0)+Q(0xb0)+Q(0x94)+Q(0xb5)]=new L(M,G,i(G[Q(0xc8)])),this[Q(0xad)+Q(0x97)]=new O(this[Q(0xd0)+Q(0x92)+Q(0xbd)]),this[Q(0xaf)+Q(0x91)]=new S(this[Q(0xd0)+Q(0x92)+Q(0xbd)]),this[Q(0xa2)+Q(0xa7)]=new b(this[Q(0xd0)+Q(0x92)+Q(0xbd)]),this[Q(0xb2)+'pi']=new y(this[Q(0xd0)+Q(0x92)+Q(0xbd)]),this[Q(0x8d)+Q(0xcc)+Q(0xa4)]=new N(this[Q(0xd0)+Q(0x92)+Q(0xbd)]),this[Q(0xb7)+Q(0xbc)]=new z(this[Q(0xd0)+Q(0x92)+Q(0xbd)]),this[Q(0xae)+Q(0xa8)]=new D(this[Q(0xd0)+Q(0x92)+Q(0xbd)]),this[Q(0x8c)+Q(0x91)]=new V(this[Q(0xd0)+Q(0xb0)+Q(0x94)+Q(0xb5)]),this[Q(0xc7)+Q(0xc0)+Q(0x95)]=new v(this[Q(0xd0)+Q(0x92)+Q(0xbd)]),this[Q(0xd1)+Q(0xc1)+Q(0xc2)]=new T(this[Q(0xd0)+Q(0x92)+Q(0xbd)]),this[Q(0xa9)+'i']=new t(this[Q(0xd0)+Q(0x92)+Q(0xbd)]),this[Q(0xbb)+Q(0x95)]=new j(this[Q(0xd0)+Q(0x92)+Q(0xbd)]),this[Q(0x8f)+Q(0xa0)+Q(0x9c)]=new J(this[Q(0xd0)+Q(0x92)+Q(0xbd)]);}[F(0x90)+'T'](){const X=F;return this[X(0xd0)+X(0x92)+X(0xbd)][X(0x90)+'T']();}static[F(0x9a)+F(0xc6)+F(0xc4)](Z){const K=F;if(!Z?.[K(0xc8)])throw new Error(K(0xb3)+K(0xac)+K(0x9f)+K(0x8e)+K(0xc3));}static async[F(0x96)+F(0xa3)+F(0xcf)](Z){const U=F,M=await Z[U(0x9d)+U(0xba)](),G=q(M);if(!G||!G[U(0xb4)+U(0xce)+'d'])throw new Error(U(0xb3)+U(0xd2)+U(0xca));return new PSChatApiClient(G[U(0xb4)+U(0xce)+'d'],M,Z);}static async[F(0x96)+F(0xbe)+'t'](Z,M){const Y=F;return W[Y(0x96)+Y(0xbe)+'t'](Z,M);}}
|
package/src/config/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';var w=g;function h(){var L=['fetch','Deleg','3577530PMcpCc','83004JdGeMi','get','ate','590SHQroK','3xSDcmD','Confi','axios','506TYotGW','6892HMScfG','397061ACXmRr','265796WHXtQt','40TxRzig','11304wWkMuE','confi','567yscAEX','371097pbohPY'];h=function(){return L;};return h();}(function(k,P){var t=g,O=k();while(!![]){try{var S=-parseInt(t(0x15d))/0x1*(parseInt(t(0x163))/0x2)+parseInt(t(0x167))/0x3*(parseInt(t(0x161))/0x4)+-parseInt(t(0x15c))/0x5*(-parseInt(t(0x165))/0x6)+parseInt(t(0x162))/0x7*(-parseInt(t(0x164))/0x8)+-parseInt(t(0x155))/0x9+parseInt(t(0x158))/0xa+parseInt(t(0x160))/0xb*(parseInt(t(0x159))/0xc);if(S===P)break;else O['push'](O['shift']());}catch(m){O['push'](O['shift']());}}}(h,0x7a280));function g(k,P){var O=h();return g=function(S,m){S=S-0x155;var t=O[S];return t;},g(k,P);}export class PSChatConfigApiImpl{[w(0x15f)+w(0x157)+w(0x15b)];constructor(k){var A=w;this[A(0x15f)+A(0x157)+A(0x15b)]=k;}[w(0x156)+w(0x15e)+'gs'](){var b=w;return this[b(0x15f)+b(0x157)+b(0x15b)][b(0x15a)](b(0x166)+'gs');}}
|
package/src/config/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function h(){var w=['1279205aRVEfz','27994lNGkEG','414780sRYXEL','154NZqCnK','1791528EbpZbo','300039KOSKvq','4YrPBfP','2482740OuSccX','8ydWarA','2QviDuu','1616573jzpZWr'];h=function(){return w;};return h();}(function(k,P){var t=g,O=k();while(!![]){try{var S=parseInt(t(0x186))/0x1*(parseInt(t(0x189))/0x2)+parseInt(t(0x18d))/0x3+parseInt(t(0x183))/0x4*(parseInt(t(0x188))/0x5)+-parseInt(t(0x18c))/0x6+-parseInt(t(0x187))/0x7*(parseInt(t(0x185))/0x8)+-parseInt(t(0x184))/0x9+-parseInt(t(0x18a))/0xa*(-parseInt(t(0x18b))/0xb);if(S===P)break;else O['push'](O['shift']());}catch(m){O['push'](O['shift']());}}}(h,0x26db1));function g(k,P){var O=h();return g=function(S,m){S=S-0x183;var t=O[S];return t;},g(k,P);}export*from'./config';
|
package/src/demo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const L=k;function g(){const x=['eInst','gify','xfQ.i','strin','Zw9XS','1NiIs','Qp5vQ','Kien','lbjoQ','8c9-c','oyGmM','stick','pYXQi','ance','udF9p','d5b-9','Q7V1a','0gWb-','Previ','-kj1-','2HKVz','JleHR','HiqTN','8qcoX','scale','ien','UF55U','Tg5MD','VHTQJ','6Et3j','clGXW','mOLRZ','cua\x20K','qTwYt','OJeWY','JdIv6','tzqNU','A0Bf9','ewLin','zFWvo','nwmMK','g5Nzc','eyJhb','Y4NzI','6ipgy','OTMyM','vZJ-D','224yN','NzY3M','HDJI_','-GQw7','FDmpY','HEsfw','nYNjR','zOTMx','q9ZSI','7PAIf','15678EaPzqX','tdQcs','https','L_6J0','i_M-Y','dtkin','NxCoW','ntIr4','HhX8L','xLRBx','CI6Ij','pAcXq','dZM8-','-EFp-','f4f-t','cl9pZ','VTPOx','d4fc7','Xh0X3','rsvvg','kwODk','TY5OD','jpg','threa','1ylw6','TL9hh','xt0KP','kResp','owHNy','wZ-Yr','d\x20=\x20','9.eyJ','Ap1Vq','511176IqKhwT','vNAqR','1LJMdmK','TKvvF','ancjj','j5P9v','eMess','CI6MT','15GcP','TA_xN','JkSPk','KfPqt','K6Ojx','tyNeN','b30-1','GciOi','_nEvg','9qeSQ','NvjAE','geByI','Y1I67','xlLmN','8120dBZbHT','Jksx4','data','d32I-','dApi','vtkN6','km5qG','dXNlc','jY4Nz','C53Bw','eSG-q','4PBkd','9T4Ls','Z3e3J','CSldw','BlIjo','YiLCJ','hXweO','qOtlH','RUCBn','fdXNl','miimi','BuLB8','6ffPv','PK_w6','bMTug','JSUzI','NNjnb','mEhk6','qHG8N','NywiZ','wMTYz','creat','177084ixXJLK','psOxf','zLmWd','eThre','mAoHh','38dae','y3yM5','5NTM3','mY_Ep','lJ1tb','ZiI6M','Ty19x','onse\x20','kien.','-nuI3','1451435wnuBeM','b6xDy','CI6Ik','://pi','jEUkJ','qHWGB','age','WZIoQ','13d-4','5LZWc','Nhom\x20','LHBDW','InR5c','Y5ODk','RNpuw','K1zkk','l90eX','pXVCJ','1Jjc6','-oTsg','-aLFK','d_id','hdWQi','E-Yr_','DY3ND','jISep','OfOTW','cXUYi','U6GYw','kApi','y5WZv','3fZKJ','37655','Kieen','IwMTY','3Nywi','140ARDFtU','FWaCx','ImV4c','erApi','Packa','3iNxv','yJfs3','1yoAl','OdgHD','yI9W9','OiJwa','A-2hd','YB-Xu','Test','it6vE','5Aivp','BSca3','zciLC','sIm5i','.com/','427zqYvIn','m165W','aa9-9','29iEc','da7-4','log','267114IwFPel','AiRNR','be080','geApi','f8bc2','EXA8J','4c2-5','fetch','304-9','lengt','773216EEiLpE','vbSIs','Threa','dById','BoIqO','ig0vQ','woNAs','e93f1','messa','OYTIJ','ezmxE','ZCI6I','previ','RlbmF','OjE2O','_Bxh4','arROr','3p6Xp','XNjYW'];g=function(){return x;};return g();}(function(O,S){const b=k,m=O();while(!![]){try{const t=-parseInt(b(0x1e5))/0x1*(parseInt(b(0x267))/0x2)+-parseInt(b(0x1e3))/0x3+parseInt(b(0x1f9))/0x4+parseInt(b(0x229))/0x5+parseInt(b(0x1c2))/0x6*(-parseInt(b(0x261))/0x7)+parseInt(b(0x176))/0x8+-parseInt(b(0x21a))/0x9*(-parseInt(b(0x24d))/0xa);if(t===S)break;else m['push'](m['shift']());}catch(w){m['push'](m['shift']());}}}(g,0x31183));import{PSChatApiClient as P}from'./client';function k(h,P){const O=g();return k=function(S,m){S=S-0x172;let t=O[S];return t;},k(h,P);}const i=L(0x1b3)+L(0x1f2)+L(0x213)+L(0x18e)+L(0x235)+L(0x22b)+L(0x23a)+L(0x1e1)+L(0x23f)+L(0x257)+L(0x188)+L(0x1f8)+L(0x177)+L(0x24f)+L(0x1ea)+L(0x236)+L(0x221)+L(0x217)+L(0x1d4)+L(0x183)+L(0x197)+L(0x181)+L(0x201)+L(0x24b)+L(0x1bf)+L(0x1b9)+L(0x25e)+L(0x19e)+L(0x20d)+L(0x1d1)+L(0x1cc)+L(0x1b4)+L(0x218)+L(0x1b6)+L(0x241)+L(0x209)+L(0x195)+L(0x184)+L(0x1a4)+L(0x1b2)+L(0x25f)+L(0x224)+L(0x1d7)+L(0x1d6)+L(0x24c)+L(0x200)+L(0x239)+L(0x208)+L(0x18b)+L(0x19d)+L(0x187)+L(0x1c5)+L(0x247)+L(0x1a7)+L(0x254)+L(0x1a0)+L(0x1ad)+L(0x207)+L(0x1bb)+L(0x23c)+L(0x1a5)+L(0x24e)+L(0x1fa)+L(0x1b1)+L(0x1ec)+L(0x1ca)+L(0x193)+L(0x232)+L(0x1db)+L(0x22d)+L(0x1cd)+L(0x1e2)+L(0x225)+L(0x212)+L(0x228)+L(0x262)+L(0x256)+L(0x185)+L(0x1cf)+L(0x1ef)+L(0x240)+L(0x215)+L(0x1ed)+L(0x20e)+L(0x264)+L(0x205)+L(0x216)+L(0x1c7)+L(0x1b5)+L(0x1cb)+L(0x25d)+L(0x237)+L(0x1de)+L(0x1ff)+L(0x220)+L(0x1c1)+L(0x1d5)+L(0x203)+L(0x1a3)+L(0x202)+L(0x253)+L(0x20b)+L(0x238)+L(0x1b0)+L(0x1df)+L(0x252)+L(0x20a)+L(0x21e)+L(0x1eb)+L(0x22e)+L(0x1bd)+L(0x1b7)+L(0x18d)+L(0x19a)+L(0x1aa)+L(0x243)+L(0x180)+L(0x20f)+L(0x1d2)+L(0x22a)+L(0x206)+L(0x268)+L(0x244)+L(0x23d)+L(0x1c0)+L(0x1dc)+L(0x199)+L(0x1d0)+L(0x1f7)+L(0x25b)+L(0x1da)+L(0x21b)+L(0x17f)+L(0x204)+L(0x1a8)+L(0x191)+L(0x255)+L(0x20c)+L(0x230)+L(0x1ac)+L(0x214)+L(0x1f3)+L(0x21c)+L(0x1f4)+L(0x1c8)+L(0x259)+L(0x1ab)+L(0x17b)+L(0x1bc)+L(0x210)+L(0x1b8)+L(0x245)+L(0x18f)+L(0x258)+L(0x1ce)+L(0x23b)+L(0x248)+L(0x223)+L(0x1c6)+L(0x1e6)+L(0x19f)+L(0x1f0)+L(0x17a)+L(0x19c)+L(0x234)+L(0x1ae)+L(0x1f5)+L(0x1fe)+L(0x1ee)+L(0x186)+L(0x1a6)+L(0x211)+L(0x1e8)+L(0x1be)+L(0x1c9)+L(0x1e4)+L(0x25c)+L(0x1ba)+L(0x26c)+L(0x1c3)+L(0x1e7)+L(0x17c)+L(0x242)+L(0x222)+L(0x1fc)+'LA',r=async O=>{const q=L;try{const S=await O[q(0x1d9)+q(0x1fd)][q(0x219)+q(0x21d)+'ad']({'type':0x2,'member_ids':['1','2'],'name':q(0x233)+q(0x1a9)+q(0x1a2),'avatar_url':q(0x1c4)+q(0x22c)+q(0x1a1)+q(0x260)+q(0x227)+q(0x1d8),'description':q(0x25a),'alias':q(0x190)});console[q(0x266)](q(0x1d9)+q(0x1e0)+S[q(0x1fb)]?.[q(0x1d9)+q(0x23e)]);}catch(m){console[q(0x266)](m);}},d=async(O,S)=>{const y=L;try{const m=await O[y(0x1d9)+y(0x1fd)][y(0x173)+y(0x178)+y(0x179)](S);console[y(0x266)](y(0x1d9)+y(0x1e0)+m[y(0x1fb)]?.['id']);}catch(w){console[y(0x266)](w);}},h=async(O,S,m)=>{const N=L;try{const w=await O[N(0x1d9)+N(0x1fd)][N(0x173)+N(0x178)+'ds'](S,m);console[N(0x266)](N(0x1d9)+N(0x1e0)+w[N(0x1fb)]?.[N(0x175)+'h']);}catch(A){console[N(0x266)](A);}},p=async(O,S)=>{const z=L;try{const m=await O[z(0x17e)+z(0x26a)][z(0x219)+z(0x1e9)+z(0x22f)](S,{'request_id':z(0x1d3)+z(0x192)+z(0x231)+z(0x174)+z(0x172)+z(0x269)+z(0x249)+'b','body':{'text':z(0x24a)}});}catch(w){console[z(0x266)](w);}},l=async(O,S)=>{const V=L;try{const m=await O[V(0x182)+V(0x1af)+V(0x246)][V(0x173)+V(0x19b)+V(0x1af)+'k'](S);console[V(0x266)](V(0x182)+V(0x1af)+V(0x1dd)+V(0x226)+'=\x20'+JSON[V(0x18c)+V(0x18a)](m));}catch(w){console[V(0x266)](w);}},o=async()=>{const v=L,O=await P[v(0x219)+v(0x189)+v(0x196)]({'appId':'1','fetchToken':async()=>new Promise(S=>S(i))});try{const S=await O[v(0x194)+v(0x250)][v(0x173)+v(0x251)+v(0x1f6)+'d'](v(0x17d)+v(0x198)+v(0x265)+v(0x263)+v(0x1f1)+v(0x21f)+v(0x26b)+'c');}catch(m){console[v(0x266)](m);}};o();
|
package/src/guest/guest.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var L=g;function g(k,P){var O=h();return g=function(S,m){S=S-0x159;var t=O[S];return t;},g(k,P);}function h(){var o=['eGues','n/jso','90DKOeDa','8320248QKQEIB','/chat','1179840adFGdQ','appli','/gues','458235nozzev','10777585mJgoIo','catio','-id-t','4179960ennCTE','34FlfguB','2986460uZlXgb','8yyaAxw','oken','get','264003duZQpj','creat'];h=function(){return o;};return h();}(function(S,m){var b=g,t=S();while(!![]){try{var w=-parseInt(b(0x162))/0x1+parseInt(b(0x167))/0x2*(parseInt(b(0x16c))/0x3)+parseInt(b(0x169))/0x4*(parseInt(b(0x168))/0x5)+parseInt(b(0x15f))/0x6+parseInt(b(0x163))/0x7+parseInt(b(0x15d))/0x8+parseInt(b(0x15c))/0x9*(-parseInt(b(0x166))/0xa);if(w===m)break;else t['push'](t['shift']());}catch(A){t['push'](t['shift']());}}}(h,0xca53c));import k from'axios';import{generateGuestUrl as P}from'../utils';import{PS_USER_API_VERSION as O}from'../api-version';export class PSChatGuestApi{static async[L(0x159)+L(0x15a)+'t'](S,m){var q=L;return k[q(0x159)+'e']({'baseURL':P(),'headers':{'Content-Type':q(0x160)+q(0x164)+q(0x15b)+'n'},'timeout':0x2710,'withCredentials':!0x1})[q(0x16b)](O+(q(0x161)+'t/')+S+(q(0x15e)+q(0x165)+q(0x16a)),{'params':{'tenant_id':m}});}}
|
package/src/guest/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function h(){var w=['1266RzHxGR','582063eiGowD','116217KpQLRA','2965JKHtTg','217866pWiQOQ','600UJuJjM','1782564vhRfXL','95557xDqZNV','4QEHPhN','633808ruMsdh','96eprYLx'];h=function(){return w;};return h();}(function(k,P){var t=g,O=k();while(!![]){try{var S=parseInt(t(0x1ce))/0x1+parseInt(t(0x1c8))/0x2+-parseInt(t(0x1cb))/0x3*(-parseInt(t(0x1c7))/0x4)+parseInt(t(0x1cd))/0x5*(-parseInt(t(0x1ca))/0x6)+parseInt(t(0x1c5))/0x7+-parseInt(t(0x1c9))/0x8*(parseInt(t(0x1cc))/0x9)+parseInt(t(0x1c4))/0xa*(-parseInt(t(0x1c6))/0xb);if(S===P)break;else O['push'](O['shift']());}catch(m){O['push'](O['shift']());}}}(h,0x2c780));function g(k,P){var O=h();return g=function(S,m){S=S-0x1c4;var t=O[S];return t;},g(k,P);}export*from'./guest';export*from'./types';
|
package/src/guest/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(k,P){var t=g,O=k();while(!![]){try{var S=parseInt(t(0x150))/0x1*(-parseInt(t(0x14b))/0x2)+parseInt(t(0x14f))/0x3+-parseInt(t(0x14c))/0x4*(-parseInt(t(0x155))/0x5)+-parseInt(t(0x14e))/0x6*(parseInt(t(0x153))/0x7)+-parseInt(t(0x151))/0x8+-parseInt(t(0x14d))/0x9*(parseInt(t(0x152))/0xa)+parseInt(t(0x154))/0xb;if(S===P)break;else O['push'](O['shift']());}catch(m){O['push'](O['shift']());}}}(h,0x7a9cf));function g(k,P){var O=h();return g=function(S,m){S=S-0x14b;var t=O[S];return t;},g(k,P);}export{};function h(){var w=['7399264zNQfnc','14710GAgWpT','28175mwgThP','12773277XmNYBa','120zUwBvl','93346mbwlqh','1312Cxqxdh','144qOjtDX','270ZwQdas','2088234FlYQWG','5ZBCjhj'];h=function(){return w;};return h();}
|
package/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(k,P){var t=g,O=k();while(!![]){try{var S=parseInt(t(0x74))/0x1+parseInt(t(0x6e))/0x2+-parseInt(t(0x73))/0x3+parseInt(t(0x6f))/0x4+parseInt(t(0x72))/0x5*(-parseInt(t(0x75))/0x6)+-parseInt(t(0x70))/0x7+parseInt(t(0x71))/0x8;if(S===P)break;else O['push'](O['shift']());}catch(m){O['push'](O['shift']());}}}(h,0x3295a));export*from'./config';export*from'./notification';export*from'./message';export*from'./preview-link';export*from'./search';export*from'./sticker';export*from'./super-groups';export*from'./thread';export*from'./upload';function g(k,P){var O=h();return g=function(S,m){S=S-0x6e;var t=O[S];return t;},g(k,P);}export*from'./user';function h(){var w=['233958PkWnIE','525200UhKVVG','90236GYIwmk','2747206KCzvpD','1660968mhkueZ','5meyxYd','152583IkIyIr','196726BFpRod'];h=function(){return w;};return h();}export*from'./tag';export*from'./axios';export*from'./client';export*from'./jwt';export*from'./types';export*from'./utils';export*from'./session';export*from'./tag-category';
|
package/src/jwt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const q=g;(function(P,O){const L=g,S=P();while(!![]){try{const m=-parseInt(L(0x137))/0x1+parseInt(L(0x12c))/0x2*(parseInt(L(0x12f))/0x3)+parseInt(L(0x145))/0x4*(parseInt(L(0x10f))/0x5)+parseInt(L(0x11f))/0x6*(-parseInt(L(0x131))/0x7)+parseInt(L(0x124))/0x8*(-parseInt(L(0x141))/0x9)+-parseInt(L(0x11c))/0xa+parseInt(L(0x135))/0xb;if(m===O)break;else S['push'](S['shift']());}catch(t){S['push'](S['shift']());}}}(h,0xea267));function g(k,P){const O=h();return g=function(S,m){S=S-0x10e;let t=O[S];return t;},g(k,P);}import{decode as k}from'base-64';global[q(0x129)]=k;export const decodeJWT=P=>{try{return d(P,{'header':!0x1});}catch{return;}},isJWTExpired=P=>P[q(0x134)]-new Date()[q(0x138)+'me']()/0x3e8<0xa;export class InvalidTokenError extends Error{}InvalidTokenError[q(0x110)+q(0x139)][q(0x125)]=q(0x121)+q(0x143)+q(0x122)+'or';function i(P){const o=q;return decodeURIComponent(atob(P)[o(0x142)+'ce'](/(.)/g,(O,S)=>{const y=o;let m=S[y(0x10e)+y(0x111)](0x0)[y(0x114)+y(0x132)](0x10)[y(0x13a)+y(0x13c)+'e']();return m[y(0x116)+'h']<0x2&&(m='0'+m),'%'+m;}));}function s(P){const r=q;let O=P[r(0x142)+'ce'](/-/g,'+')[r(0x142)+'ce'](/_/g,'/');switch(O[r(0x116)+'h']%0x4){case 0x0:break;case 0x2:O+='==';break;case 0x3:O+='=';break;default:throw new Error(r(0x11a)+r(0x11e)+r(0x123)+r(0x147)+r(0x113)+r(0x119)+r(0x118)+r(0x12b)+'th');}try{return i(O);}catch{return atob(O);}}function d(P,O){const N=q;if(typeof P!=N(0x133)+'g')throw new InvalidTokenError(N(0x121)+N(0x127)+N(0x112)+N(0x130)+N(0x12d)+N(0x13b)+N(0x144)+N(0x133)+'g');O||={};const S=O[N(0x13f)+'r']===!0x0?0x0:0x1,m=P[N(0x148)]('.')[S];if(typeof m!=N(0x133)+'g')throw new InvalidTokenError(N(0x121)+N(0x127)+N(0x112)+N(0x130)+N(0x12d)+N(0x115)+N(0x128)+N(0x11d)+(S+0x1));let w;try{w=s(m);}catch(A){throw new InvalidTokenError(N(0x121)+N(0x127)+N(0x112)+N(0x130)+N(0x12d)+N(0x13d)+N(0x13e)+N(0x136)+N(0x12a)+N(0x140)+(S+0x1)+'\x20('+A[N(0x11b)+'ge']+')');}try{return JSON[N(0x117)](w);}catch(b){throw new InvalidTokenError(N(0x121)+N(0x127)+N(0x112)+N(0x130)+N(0x12d)+N(0x13d)+N(0x12e)+N(0x126)+N(0x146)+N(0x120)+(S+0x1)+'\x20('+b[N(0x11b)+'ge']+')');}}function h(){const z=['art\x20#','7983QjVBDZ','repla','idTok','be\x20a\x20','3173496VzFzJv','r\x20par','s\x20not','split','charC','5FqqcZE','proto','odeAt','ken\x20s','\x20of\x20t','toStr','missi','lengt','parse','rrect','he\x20co','base6','messa','17300560LerdHW','rt\x20#','4\x20str','52506wtdzLo','t\x20#','Inval','enErr','ing\x20i','9208iAXmDN','name','on\x20fo','id\x20to','ng\x20pa','atob','for\x20p','\x20leng','54VlLHtY','ied:\x20','id\x20js','168186DGhlpo','pecif','1379oTuKYk','ing','strin','exp','43206504TfeHKr','se64\x20','800893wpCGoI','getTi','type','toUpp','must\x20','erCas','inval','id\x20ba','heade'];h=function(){return z;};return h();}
|
package/src/message/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function h(){var w=['20mGSdxK','110365clYCSx','1472580BscLiF','827673XgZOUy','8nqRYQm','34SCBwzq','268gYJOkY','1061400NwksJE','71760WFbBXB','200835heiZsk'];h=function(){return w;};return h();}(function(k,P){var t=g,O=k();while(!![]){try{var S=-parseInt(t(0x149))/0x1*(-parseInt(t(0x14a))/0x2)+-parseInt(t(0x14c))/0x3+-parseInt(t(0x14e))/0x4*(parseInt(t(0x14f))/0x5)+parseInt(t(0x146))/0x6+-parseInt(t(0x147))/0x7+-parseInt(t(0x148))/0x8*(-parseInt(t(0x14d))/0x9)+parseInt(t(0x14b))/0xa;if(S===P)break;else O['push'](O['shift']());}catch(m){O['push'](O['shift']());}}}(h,0x1ebdd));function g(k,P){var O=h();return g=function(S,m){S=S-0x146;var t=O[S];return t;},g(k,P);}export*from'./message';export*from'./types';
|
package/src/message/message.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function h(){const C=['ate','limit','ands','126lNEJtI','tions','er_id','messa','rward','markS','/mess','addOp','/vote','Voted','patch','unpin','geByI','prev_','7917moZlbp','BotCo','appli','essag','vote','unrea','1371012yCKaUo','ads/m','rdMes','ages/','200mptjRc','st_id','/poll','/thre','ages','2030qUjCid','&leve','tionP','ages?','react','next_','10202430vriKfA','&limi','forwa','/bots','fetch','ges','ons/','5OhPglM','lenco','2945646hQLsSq','Messa','dMess','958148eVTZjG','ww-fo','s?vot','ded','22401aEmXar','/pin_','editM','/reac','ge_id','axios','956EvIThi','Pinne','/comm','/pin?','es/fo','rm-ur','mmand','ons','pinMe','post','/view','unvot','catio','eenMe','n/x-w','delet','Users','Deleg','sages','reque','get','/opti','creat','oll','ads/','eMess','ssage','age'];h=function(){return C;};return h();}const L=g;(function(P,O){const b=g,S=P();while(!![]){try{const m=-parseInt(b(0x159))/0x1*(-parseInt(b(0x11d))/0x2)+parseInt(b(0x150))/0x3+-parseInt(b(0x113))/0x4*(parseInt(b(0x166))/0x5)+-parseInt(b(0x13c))/0x6*(-parseInt(b(0x14a))/0x7)+-parseInt(b(0x154))/0x8*(-parseInt(b(0x117))/0x9)+-parseInt(b(0x15f))/0xa+parseInt(b(0x168))/0xb;if(m===O)break;else S['push'](S['shift']());}catch(t){S['push'](S['shift']());}}}(h,0x7f46e));function g(k,P){const O=h();return g=function(S,m){S=S-0x112;let t=O[S];return t;},g(k,P);}import{PS_CHAT_API_VERSION as k}from'../api-version';export class PSChatMessageApiImpl{[L(0x11c)+L(0x12e)+L(0x139)];constructor(P){const q=L;this[q(0x11c)+q(0x12e)+q(0x139)]=P;}[L(0x133)+L(0x136)+L(0x138)](P,O){const o=L;return this[o(0x11c)+o(0x12e)+o(0x139)][o(0x126)](k+(o(0x157)+o(0x135))+P+(o(0x142)+o(0x158)),O);}[L(0x119)+L(0x14d)+'e'](P,O,S){const y=L;return this[y(0x11c)+y(0x12e)+y(0x139)][y(0x146)](k+(y(0x157)+y(0x135))+P+(y(0x142)+y(0x153))+O,S);}[L(0x12c)+L(0x136)+L(0x138)](P,O,S){const r=L;return this[r(0x11c)+r(0x12e)+r(0x139)][r(0x12c)+'e'](k+(r(0x157)+r(0x135))+P+(r(0x142)+r(0x15c)+r(0x13f)+r(0x11b)+'s=')+O+(r(0x15a)+'l=')+S);}[L(0x163)+L(0x169)+L(0x148)+'d'](P,O){const N=L;return this[N(0x11c)+N(0x12e)+N(0x139)][N(0x131)](k+(N(0x157)+N(0x135))+P+(N(0x142)+N(0x153))+O);}[L(0x163)+L(0x169)+L(0x164)](P,O,S,m){const z=L;let w;return S?w=z(0x15e)+z(0x13a)+'='+S:m?w=z(0x149)+z(0x13a)+'='+m:w='',this[z(0x11c)+z(0x12e)+z(0x139)][z(0x131)](k+(z(0x157)+z(0x135))+P+(z(0x142)+z(0x15c)+z(0x13f)+z(0x11b)+'=')+O+'&'+w);}[L(0x141)+L(0x12a)+L(0x137)](P,O){const V=L;return this[V(0x11c)+V(0x12e)+V(0x139)][V(0x126)](k+(V(0x157)+V(0x135))+P+(V(0x142)+V(0x153))+O+(V(0x127)+'ed'));}[L(0x161)+L(0x152)+L(0x12f)](P){const v=L;return this[v(0x11c)+v(0x12e)+v(0x139)][v(0x126)](k+(v(0x157)+v(0x151)+v(0x14d)+v(0x121)+v(0x140)),P);}[L(0x125)+L(0x137)](P,O,S){const x=L;return this[x(0x11c)+x(0x12e)+x(0x139)][x(0x126)](k+(x(0x157)+x(0x135))+P+(x(0x142)+x(0x153))+O+(x(0x120)+x(0x130)+x(0x155)+'=')+S);}[L(0x147)+L(0x169)+'ge'](P,O,S){const H=L;return this[H(0x11c)+H(0x12e)+H(0x139)][H(0x12c)+'e'](k+(H(0x157)+H(0x135))+P+(H(0x142)+H(0x153))+O+(H(0x120)+H(0x130)+H(0x155)+'=')+S);}[L(0x163)+L(0x11e)+L(0x112)+L(0x158)](P){const i=L;return this[i(0x11c)+i(0x12e)+i(0x139)][i(0x131)](k+(i(0x157)+i(0x135))+P+(i(0x118)+i(0x13f)+i(0x164)));}[L(0x15d)](P,O,S){const E=L;return this[E(0x11c)+E(0x12e)+E(0x139)][E(0x126)](k+(E(0x157)+E(0x135))+P+(E(0x142)+E(0x153))+O+(E(0x11a)+E(0x13d)+'/')+S,void 0x0,{'headers':{'Content-Type':E(0x14c)+E(0x129)+E(0x12b)+E(0x114)+E(0x122)+E(0x167)+E(0x116)}});}[L(0x14f)+'ct'](P,O,S){const c=L;return this[c(0x11c)+c(0x12e)+c(0x139)][c(0x12c)+'e'](k+(c(0x157)+c(0x135))+P+(c(0x142)+c(0x153))+O+(c(0x11a)+c(0x13d)+'/')+S,{'headers':{'Content-Type':c(0x14c)+c(0x129)+c(0x12b)+c(0x114)+c(0x122)+c(0x167)+c(0x116)}});}[L(0x14e)](P,O,S,m){const p=L;return this[p(0x11c)+p(0x12e)+p(0x139)][p(0x126)](k+(p(0x157)+p(0x135))+P+(p(0x142)+p(0x153))+O+(p(0x156)+'s/')+S+(p(0x132)+p(0x165))+m+p(0x144));}[L(0x128)+'e'](P,O,S,m){const T=L;return this[T(0x11c)+T(0x12e)+T(0x139)][T(0x12c)+'e'](k+(T(0x157)+T(0x135))+P+(T(0x142)+T(0x153))+O+(T(0x156)+'s/')+S+(T(0x132)+T(0x165))+m+T(0x144));}[L(0x143)+L(0x15b)+L(0x134)](P,O,S,m){const D=L;return this[D(0x11c)+D(0x12e)+D(0x139)][D(0x126)](k+(D(0x157)+D(0x135))+P+(D(0x142)+D(0x153))+O+(D(0x156)+'s/')+S+(D(0x132)+D(0x124)),{'text':m});}[L(0x163)+L(0x12d)+L(0x145)](P,O,S,m,w,A){const s=L;return this[s(0x11c)+s(0x12e)+s(0x139)][s(0x131)](k+(s(0x157)+s(0x135))+P+(s(0x142)+s(0x153))+O+(s(0x156)+'s/')+S+(s(0x132)+s(0x165))+m+(s(0x144)+s(0x115)+s(0x13e)+'=')+w+(s(0x160)+'t=')+A);}[L(0x163)+L(0x14b)+L(0x123)+'s'](P){const j=L;return this[j(0x11c)+j(0x12e)+j(0x139)][j(0x131)](k+(j(0x162)+'/')+P+(j(0x11f)+j(0x13b)));}}
|
package/src/message/types.d.ts
CHANGED
|
@@ -84,6 +84,7 @@ export type PSMessageBodyDto = {
|
|
|
84
84
|
ref_object?: PSMessageBodyRefObjectDto;
|
|
85
85
|
mention_ids?: string[];
|
|
86
86
|
forward_from?: PSMessageForwardFromDto;
|
|
87
|
+
original_sender?: PSUserDto;
|
|
87
88
|
};
|
|
88
89
|
export type PSMessageBodyRefObjectDto = {
|
|
89
90
|
messages?: PSMessageDto[];
|
|
@@ -109,7 +110,8 @@ export declare enum PSMessageMetadataType {
|
|
|
109
110
|
MENU = 13,
|
|
110
111
|
START_SESSION = 14,
|
|
111
112
|
END_SESSION = 15,
|
|
112
|
-
PROMOTION = 16
|
|
113
|
+
PROMOTION = 16,
|
|
114
|
+
RATING = 17
|
|
113
115
|
}
|
|
114
116
|
export declare enum PSMessageMetadataFileType {
|
|
115
117
|
PNG = "png",
|
|
@@ -143,6 +145,7 @@ export type PSMessageMetadataDto = {
|
|
|
143
145
|
menu?: PSMessageMetadataMenuDto[];
|
|
144
146
|
file_type?: PSMessageMetadataFileType;
|
|
145
147
|
promotion?: PSMessageMetadataPromotionDto;
|
|
148
|
+
rating?: PSMessageMetadataRatingDto;
|
|
146
149
|
};
|
|
147
150
|
export type PSMessageMetadataOptionDto = {
|
|
148
151
|
id: string;
|
|
@@ -178,6 +181,14 @@ export type PSMessageMetadataPromotionDto = {
|
|
|
178
181
|
image_url: string;
|
|
179
182
|
buttons: PSMessageMetadataChatBotButtonDto[];
|
|
180
183
|
};
|
|
184
|
+
export type PSMessageMetadataRatingDto = {
|
|
185
|
+
title: string;
|
|
186
|
+
value: number;
|
|
187
|
+
comment: string;
|
|
188
|
+
session_id: string;
|
|
189
|
+
support_thread_id: string;
|
|
190
|
+
lock_comment: boolean;
|
|
191
|
+
};
|
|
181
192
|
export type PSMessageForwardFromDto = {
|
|
182
193
|
src_thread_id: string;
|
|
183
194
|
src_msg_id: number;
|
package/src/message/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';function h(){var o=['478dBmJuT','POLL','RATIN','UN_BL','gif','E_MEM','MESSA','_GROU','ON_UP','png','FILE','PROMO','ALL','C_GRO','ION','PNG','UNPIN','BER','EW_LI','RIPTI','1579891qOVihB','BY_SY','E_GRO','AUDIO','STICK','R_REM','4243383VOazNm','ED_BY','webp','_SESS','_SYST','_MEMB','GIF','ADD_M','OVED_','STEM','TEXT','6109044dyIuNw','EAD','_UPDA','MEMBE','_AVAT','JSON','_REPL','QUICK','PUBLI','PREVI','R_ADD','LEAVE','EMBER','50KXctqA','PIN','TED','IMAGE','VIDEO','END_S','BACK','_DESC','2559PxrJTN','CAROU','OCK_M','START','POST_','AR_UP','ESSIO','5EprtPs','REMOV','6785034hgrTrY','_NAME','URI','DATED','GROUP','WEBP','BLOCK','TION','JOIN_','DELET','CREAT','10012485HPWsCa','10776248fttwWH','SEL','MENU','E_THR'];h=function(){return o;};return h();}(function(k,P){var t=g,O=k();while(!![]){try{var S=-parseInt(t(0x194))/0x1+parseInt(t(0x180))/0x2*(parseInt(t(0x167))/0x3)+parseInt(t(0x1a5))/0x4+parseInt(t(0x16e))/0x5*(parseInt(t(0x170))/0x6)+-parseInt(t(0x17b))/0x7+-parseInt(t(0x17c))/0x8+parseInt(t(0x19a))/0x9*(parseInt(t(0x1b2))/0xa);if(S===P)break;else O['push'](O['shift']());}catch(m){O['push'](O['shift']());}}}(h,0xd27ad));function g(k,P){var O=h();return g=function(S,m){S=S-0x164;var t=O[S];return t;},g(k,P);}export var PSDeleteMessageLevel;(function(k){var w=g;k[k['ME']=0x1]='ME',k[k[w(0x18c)]=0x2]=w(0x18c),k[k[w(0x179)+w(0x17f)+w(0x1a6)]=0x3]=w(0x179)+w(0x17f)+w(0x1a6);}(PSDeleteMessageLevel||(PSDeleteMessageLevel={})));export var PSMessageMetadataType;(function(k){var A=g;k[k[A(0x1a4)]=0x1]=A(0x1a4),k[k[A(0x1b5)]=0x2]=A(0x1b5),k[k[A(0x1b6)]=0x3]=A(0x1b6),k[k[A(0x1ae)+A(0x192)+'NK']=0x4]=A(0x1ae)+A(0x192)+'NK',k[k[A(0x181)]=0x5]=A(0x181),k[k[A(0x18a)]=0x6]=A(0x18a),k[k[A(0x197)]=0x7]=A(0x197),k[k[A(0x198)+'ER']=0x8]=A(0x198)+'ER',k[k[A(0x1aa)]=0xa]=A(0x1aa),k[k[A(0x1ac)+A(0x1ab)+'Y']=0xb]=A(0x1ac)+A(0x1ab)+'Y',k[k[A(0x168)+A(0x17d)]=0xc]=A(0x168)+A(0x17d),k[k[A(0x17e)]=0xd]=A(0x17e),k[k[A(0x16a)+A(0x19d)+A(0x18e)]=0xe]=A(0x16a)+A(0x19d)+A(0x18e),k[k[A(0x164)+A(0x16d)+'N']=0xf]=A(0x164)+A(0x16d)+'N',k[k[A(0x18b)+A(0x177)]=0x10]=A(0x18b)+A(0x177),k[k[A(0x182)+'G']=0x11]=A(0x182)+'G';}(PSMessageMetadataType||(PSMessageMetadataType={})));export var PSMessageMetadataFileType;(function(k){var b=g;k[b(0x18f)]=b(0x189),k[b(0x1a0)]=b(0x184),k[b(0x175)]=b(0x19c);}(PSMessageMetadataFileType||(PSMessageMetadataFileType={})));export var PSMessageActionNoteType;(function(k){var L=g;k[k[L(0x17a)+L(0x196)+'UP']=0x1]=L(0x17a)+L(0x196)+'UP',k[k[L(0x1a1)+L(0x1b1)]=0x2]=L(0x1a1)+L(0x1b1),k[k[L(0x16f)+L(0x185)+L(0x191)]=0x3]=L(0x16f)+L(0x185)+L(0x191),k[k[L(0x178)+L(0x174)]=0x4]=L(0x178)+L(0x174),k[k[L(0x1b0)+L(0x187)+'P']=0x5]=L(0x1b0)+L(0x187)+'P',k[k[L(0x1b3)]=0x8]=L(0x1b3),k[k[L(0x190)]=0x9]=L(0x190),k[k[L(0x174)+L(0x171)+L(0x1a7)+L(0x1b4)]=0xa]=L(0x174)+L(0x171)+L(0x1a7)+L(0x1b4),k[k[L(0x174)+L(0x1a9)+L(0x16c)+L(0x173)]=0xb]=L(0x174)+L(0x1a9)+L(0x16c)+L(0x173),k[k[L(0x174)+L(0x166)+L(0x193)+L(0x188)+L(0x173)]=0xc]=L(0x174)+L(0x166)+L(0x193)+L(0x188)+L(0x173),k[k[L(0x178)+L(0x1ad)+L(0x18d)+'UP']=0xd]=L(0x178)+L(0x1ad)+L(0x18d)+'UP',k[k[L(0x1a8)+L(0x1af)+L(0x19b)+L(0x19e)+'EM']=0xe]=L(0x1a8)+L(0x1af)+L(0x19b)+L(0x19e)+'EM',k[k[L(0x1a8)+L(0x199)+L(0x1a2)+L(0x195)+L(0x1a3)]=0xf]=L(0x1a8)+L(0x199)+L(0x1a2)+L(0x195)+L(0x1a3),k[k[L(0x176)+L(0x19f)+'ER']=0x10]=L(0x176)+L(0x19f)+'ER',k[k[L(0x183)+L(0x169)+L(0x1b1)]=0x11]=L(0x183)+L(0x169)+L(0x1b1);}(PSMessageActionNoteType||(PSMessageActionNoteType={})));export var PSMessageMetadataChatBotButtonActionType;(function(k){var q=g;k[k[q(0x172)]=0x1]=q(0x172),k[k[q(0x16b)+q(0x165)]=0x2]=q(0x16b)+q(0x165),k[k[q(0x186)+'GE']=0x3]=q(0x186)+'GE';}(PSMessageMetadataChatBotButtonActionType||(PSMessageMetadataChatBotButtonActionType={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(
|
|
1
|
+
'use strict';(function(k,P){var t=g,O=k();while(!![]){try{var S=parseInt(t(0x11f))/0x1*(-parseInt(t(0x11a))/0x2)+parseInt(t(0x119))/0x3+-parseInt(t(0x11c))/0x4+-parseInt(t(0x11d))/0x5+-parseInt(t(0x11b))/0x6*(parseInt(t(0x120))/0x7)+-parseInt(t(0x121))/0x8+-parseInt(t(0x11e))/0x9*(-parseInt(t(0x122))/0xa);if(S===P)break;else O['push'](O['shift']());}catch(m){O['push'](O['shift']());}}}(h,0x7d6a3));export*from'./notification';function h(){var w=['2776695IbsYmw','2UvdrLa','54XWLhBC','536312vyhVnC','3016815AnSqau','411381eZAYak','561659gniUJr','709695UqAHpj','1326304gisvXK','430qJIoCS'];h=function(){return w;};return h();}function g(k,P){var O=h();return g=function(S,m){S=S-0x119;var t=O[S];return t;},g(k,P);}export*from'./types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var b=g;(function(P,O){var A=g,S=P();while(!![]){try{var m=-parseInt(A(0x9f))/0x1*(-parseInt(A(0xa1))/0x2)+-parseInt(A(0x96))/0x3*(-parseInt(A(0x95))/0x4)+-parseInt(A(0xac))/0x5+parseInt(A(0xa5))/0x6*(parseInt(A(0x97))/0x7)+parseInt(A(0xae))/0x8*(-parseInt(A(0x9c))/0x9)+-parseInt(A(0x91))/0xa*(-parseInt(A(0x93))/0xb)+-parseInt(A(0xa9))/0xc*(parseInt(A(0x99))/0xd);if(m===O)break;else S['push'](S['shift']());}catch(w){S['push'](S['shift']());}}}(h,0x92474));import{PS_NOTIFICATION_API_VERSION as k}from'../api-version';function g(k,P){var O=h();return g=function(S,m){S=S-0x91;var t=O[S];return t;},g(k,P);}export class PSChatNotificationApiImpl{[b(0xa4)+b(0xa2)+b(0xa7)];constructor(P){var L=b;this[L(0xa4)+L(0xa2)+L(0xa7)]=P;}[b(0x9d)+b(0xaf)](P){var q=b;return this[q(0xa4)+q(0xa2)+q(0xa7)][q(0xa0)](k+(q(0xad)+'ce'),P);}[b(0x9b)+b(0xa8)](P){var o=b;return this[o(0xa4)+o(0xa2)+o(0xa7)][o(0x9a)](k+(o(0xad)+'ce'),P);}[b(0x9d)+b(0xb3)+b(0xaa)+b(0xa3)+b(0x98)+b(0xb2)+b(0xab)](P,O){var y=b;return this[y(0xa4)+y(0xa2)+y(0xa7)][y(0xa0)](k+(y(0xad)+y(0xa6))+O,P);}[b(0x9b)+b(0xa8)+b(0xb1)+b(0x94)+b(0xb0)+b(0x92)+b(0x9e)](P,O){var r=b;return this[r(0xa4)+r(0xa2)+r(0xa7)][r(0x9a)](k+(r(0xad)+r(0xa6))+O,P);}}function h(){var N=['1765267KXlmtg','Proje','93704frsQDC','patch','unreg','5436OqiYcp','regis','umber','1831QdXRgs','post','830TeLRVb','Deleg','eBase','axios','18yDVKxg','ce/','ate','ister','1428aOxNhW','thFir','ber','4964920rAZZub','/devi','2176EyAdHz','ter','sePro','WithF','ctNum','terWi','450SYdniT','jectN','144749swdORK','ireBa','2022468QWAUMW','3ulfoDG'];h=function(){return N;};return h();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(k,P){var t=g,O=k();while(!![]){try{var S=parseInt(t(0x168))/0x1*(-parseInt(t(0x166))/0x2)+-parseInt(t(0x162))/0x3+parseInt(t(0x169))/0x4*(-parseInt(t(0x164))/0x5)+-parseInt(t(0x16d))/0x6+parseInt(t(0x163))/0x7*(-parseInt(t(0x16b))/0x8)+-parseInt(t(0x15f))/0x9*(parseInt(t(0x160))/0xa)+-parseInt(t(0x161))/0xb*(-parseInt(t(0x165))/0xc);if(S===P)break;else O['push'](O['shift']());}catch(m){O['push'](O['shift']());}}}(h,0x9a766));function g(k,P){var O=h();return g=function(S,m){S=S-0x15f;var t=O[S];return t;},g(k,P);}export var PSChatNotificationDeviceType;(function(k){var w=g;k[k[w(0x16a)]=0x1]=w(0x16a),k[k[w(0x16c)+'ID']=0x2]=w(0x16c)+'ID',k[k[w(0x167)+'I']=0x3]=w(0x167)+'I';}(PSChatNotificationDeviceType||(PSChatNotificationDeviceType={})));function h(){var A=['5dPEluo','45669660VGHDDJ','98oNnSMv','HUAWE','9919MrVEuu','2711036pauXPh','IOS','1031432hKPrVV','ANDRO','932382gYqljD','9YQmzAH','29150fBUYdp','11vgdaHP','3232353jiRmPB','42irLotF'];h=function(){return A;};return h();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';(function(k,P){var t=g,O=k();while(!![]){try{var S=-parseInt(t(0x1ae))/0x1*(-parseInt(t(0x1b3))/0x2)+parseInt(t(0x1b1))/0x3+parseInt(t(0x1b4))/0x4+parseInt(t(0x1b0))/0x5+-parseInt(t(0x1b5))/0x6+parseInt(t(0x1af))/0x7+-parseInt(t(0x1b2))/0x8;if(S===P)break;else O['push'](O['shift']());}catch(m){O['push'](O['shift']());}}}(h,0x7f1ea));function h(){var w=['2WBsuyK','141144ZQKgcs','747744yNUTuo','556706iDIjod','6607958alioCb','2436940gtrKwN','2998572cPkyep','19020736aOraNn'];h=function(){return w;};return h();}export*from'./preview-link';function g(k,P){var O=h();return g=function(S,m){S=S-0x1ae;var t=O[S];return t;},g(k,P);}export*from'./types';
|