@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.
- 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.d.ts +1 -0
- 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/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 +5 -0
- 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.js +1 -1
- package/src/search/types.js +1 -1
- package/src/session/index.js +1 -1
- package/src/session/session.js +1 -1
- 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.d.ts +8 -4
- package/src/thread/thread.js +1 -1
- package/src/thread/types.d.ts +18 -1
- 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 +10 -0
- package/src/user/types.js +1 -1
- package/src/user/user.js +1 -1
- package/src/utils.js +1 -1
package/src/user/types.d.ts
CHANGED
|
@@ -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(
|
|
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
|
|
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
|
|
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;
|