@tachybase/plugin-online-user 0.23.8

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 (43) hide show
  1. package/.turbo/turbo-build.log +14 -0
  2. package/README.md +1 -0
  3. package/client.d.ts +2 -0
  4. package/client.js +1 -0
  5. package/dist/client/OnlineUserProvider.d.ts +2 -0
  6. package/dist/client/index.d.ts +7 -0
  7. package/dist/client/index.js +1 -0
  8. package/dist/client/locale.d.ts +9 -0
  9. package/dist/externalVersion.js +10 -0
  10. package/dist/index.d.ts +2 -0
  11. package/dist/index.js +39 -0
  12. package/dist/locale/en-US.json +3 -0
  13. package/dist/locale/zh-CN.json +3 -0
  14. package/dist/node_modules/redis/LICENSE +21 -0
  15. package/dist/node_modules/redis/dist/index.d.ts +302 -0
  16. package/dist/node_modules/redis/dist/index.js +1 -0
  17. package/dist/node_modules/redis/package.json +1 -0
  18. package/dist/node_modules/ws/LICENSE +20 -0
  19. package/dist/node_modules/ws/browser.js +8 -0
  20. package/dist/node_modules/ws/index.js +1 -0
  21. package/dist/node_modules/ws/lib/buffer-util.js +131 -0
  22. package/dist/node_modules/ws/lib/constants.js +18 -0
  23. package/dist/node_modules/ws/lib/event-target.js +292 -0
  24. package/dist/node_modules/ws/lib/extension.js +203 -0
  25. package/dist/node_modules/ws/lib/limiter.js +55 -0
  26. package/dist/node_modules/ws/lib/permessage-deflate.js +514 -0
  27. package/dist/node_modules/ws/lib/receiver.js +706 -0
  28. package/dist/node_modules/ws/lib/sender.js +602 -0
  29. package/dist/node_modules/ws/lib/stream.js +159 -0
  30. package/dist/node_modules/ws/lib/subprotocol.js +62 -0
  31. package/dist/node_modules/ws/lib/validation.js +152 -0
  32. package/dist/node_modules/ws/lib/websocket-server.js +540 -0
  33. package/dist/node_modules/ws/lib/websocket.js +1388 -0
  34. package/dist/node_modules/ws/package.json +1 -0
  35. package/dist/server/index.d.ts +1 -0
  36. package/dist/server/index.js +33 -0
  37. package/dist/server/plugin.d.ts +11 -0
  38. package/dist/server/plugin.js +48 -0
  39. package/dist/server/services/connection-manager.d.ts +9 -0
  40. package/dist/server/services/connection-manager.js +181 -0
  41. package/package.json +25 -0
  42. package/server.d.ts +2 -0
  43. package/server.js +1 -0
@@ -0,0 +1,14 @@
1
+
2
+ 
3
+ > @tachybase/plugin-online-user@0.23.7 build /Users/seal/Documents/projects/tachybase/packages/plugin-prototype-online-user
4
+ > tachybase-build --no-dts @tachybase/plugin-online-user
5
+
6
+ The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
7
+ @tachybase/plugin-online-user: plugin-prototype-online-user build start
8
+ @tachybase/plugin-online-user: build plugin client
9
+ @tachybase/plugin-online-user: build plugin server source
10
+ @tachybase/plugin-online-user: delete server files
11
+ @tachybase/plugin-online-user: build plugin server dependencies
12
+ @tachybase/plugin-online-user: These packages redis, ws will be bundled to dist/node_modules. These packages @tachybase/server, @tachybase/utils, jsonwebtoken will be exclude.
13
+ @tachybase/plugin-online-user: write external version
14
+
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # @tachybase/plugin-online-user
package/client.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './dist/client';
2
+ export { default } from './dist/client';
package/client.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('./dist/client/index.js');
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const OnlineUserProvider: (props: any) => React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { Plugin } from '@tachybase/client';
2
+ export declare class PluginOnlineUserClient extends Plugin {
3
+ afterAdd(): Promise<void>;
4
+ beforeLoad(): Promise<void>;
5
+ load(): Promise<void>;
6
+ }
7
+ export default PluginOnlineUserClient;
@@ -0,0 +1 @@
1
+ (function(n,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("@tachybase/client"),require("@tachybase/schema"),require("react/jsx-runtime"),require("react"),require("antd"),require("lodash")):typeof define=="function"&&define.amd?define(["exports","@tachybase/client","@tachybase/schema","react/jsx-runtime","react","antd","lodash"],e):(n=typeof globalThis!="undefined"?globalThis:n||self,e(n["@tachybase/plugin-online-user"]={},n["@tachybase/client"],n["@tachybase/schema"],n.jsxRuntime,n.react,n.antd,n.lodash))})(this,function(n,e,t,o,r,d,h){"use strict";var q=Object.defineProperty;var k=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var x=(n,e,t)=>e in n?q(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,S=(n,e)=>{for(var t in e||(e={}))w.call(e,t)&&x(n,t,e[t]);if(k)for(var t of k(e))A.call(e,t)&&x(n,t,e[t]);return n};var l=(n,e,t)=>new Promise((o,r)=>{var d=s=>{try{a(t.next(s))}catch(u){r(u)}},h=s=>{try{a(t.throw(s))}catch(u){r(u)}},a=s=>s.done?o(s.value):Promise.resolve(s.value).then(d,h);a((t=t.apply(n,e)).next())});const a="online-user",s=()=>{const{i18n:i}=e.useApp();return{t:(f,y={})=>i.t(f,S({ns:a},y))}},u=()=>{const i=e.useApp(),[c,f]=r.useState([]),y=e.useAPIClient(),{token:U}=e.useToken(),{t:b}=s();return r.useEffect(()=>{i.ws.on("message",m=>{var O;const p=JSON.parse(m.data);if((p==null?void 0:p.type)==="plugin-online-user"){const j=(O=p.payload.users)==null?void 0:O.map(P=>{if(P)return{key:t.uid(),label:P.nickname}});f(j)}})},[i]),r.useEffect(()=>{const m={type:"plugin-online-user:client",payload:{token:y.auth.getToken()}};i.ws.send(JSON.stringify(m))},[]),o.jsx(d.Dropdown,{menu:{items:c},children:o.jsx(d.Button,{style:{width:"auto",color:U.colorTextHeaderMenu},type:"text",children:b("{{num}} people online",{num:h.size(c)})})})},T=i=>o.jsx(e.PinnedPluginListProvider,{items:{ou:{order:230,component:"OnlineUserManger",pin:!0,isPublic:!0}},children:o.jsx(e.SchemaComponentOptions,{components:{OnlineUserManger:u},children:i.children})});class g extends e.Plugin{afterAdd(){return l(this,null,function*(){})}beforeLoad(){return l(this,null,function*(){})}load(){return l(this,null,function*(){this.app.use(T),t.autorun(()=>{if(this.app.ws.connected){const c={type:"plugin-online-user:client",payload:{token:this.app.apiClient.auth.getToken()}};this.app.ws.send(JSON.stringify(c))}})})}}n.PluginOnlineUserClient=g,n.default=g,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -0,0 +1,9 @@
1
+ import { Application } from '@tachybase/client';
2
+ export declare class Locale {
3
+ private app;
4
+ constructor(app: Application);
5
+ lang(key: string): string;
6
+ }
7
+ export declare const useTranslation: () => any;
8
+ export declare const tval: (key: string) => string;
9
+ export declare function lang(key: string): string;
@@ -0,0 +1,10 @@
1
+ module.exports = {
2
+ "react": "18.3.1",
3
+ "@tachybase/client": "0.23.8",
4
+ "@tachybase/schema": "0.23.8",
5
+ "antd": "5.22.5",
6
+ "lodash": "4.17.21",
7
+ "@tachybase/server": "0.23.8",
8
+ "@tachybase/utils": "0.23.8",
9
+ "jsonwebtoken": "8.5.1"
10
+ };
@@ -0,0 +1,2 @@
1
+ export * from './server';
2
+ export { default } from './server';
package/dist/index.js ADDED
@@ -0,0 +1,39 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var src_exports = {};
30
+ __export(src_exports, {
31
+ default: () => import_server.default
32
+ });
33
+ module.exports = __toCommonJS(src_exports);
34
+ __reExport(src_exports, require("./server"), module.exports);
35
+ var import_server = __toESM(require("./server"));
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ ...require("./server")
39
+ });
@@ -0,0 +1,3 @@
1
+ {
2
+ "{{num}} people online": "{{num}} people online"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "{{num}} people online": "在线 {{num}} 人"
3
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022-2023, Redis, inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,302 @@
1
+ import { RedisModules, RedisFunctions, RedisScripts, RedisClientOptions, RedisClientType as _RedisClientType, RedisClusterOptions, RedisClusterType as _RedisClusterType } from '@redis/client';
2
+ export * from '@redis/client';
3
+ export * from '@redis/bloom';
4
+ export * from '@redis/graph';
5
+ export * from '@redis/json';
6
+ export * from '@redis/search';
7
+ export * from '@redis/time-series';
8
+ declare const modules: {
9
+ graph: {
10
+ CONFIG_GET: typeof import("@redis/graph/dist/commands/CONFIG_GET");
11
+ configGet: typeof import("@redis/graph/dist/commands/CONFIG_GET");
12
+ CONFIG_SET: typeof import("@redis/graph/dist/commands/CONFIG_SET");
13
+ configSet: typeof import("@redis/graph/dist/commands/CONFIG_SET");
14
+ DELETE: typeof import("@redis/graph/dist/commands/DELETE");
15
+ delete: typeof import("@redis/graph/dist/commands/DELETE");
16
+ EXPLAIN: typeof import("@redis/graph/dist/commands/EXPLAIN");
17
+ explain: typeof import("@redis/graph/dist/commands/EXPLAIN");
18
+ LIST: typeof import("@redis/graph/dist/commands/LIST");
19
+ list: typeof import("@redis/graph/dist/commands/LIST");
20
+ PROFILE: typeof import("@redis/graph/dist/commands/PROFILE");
21
+ profile: typeof import("@redis/graph/dist/commands/PROFILE");
22
+ QUERY: typeof import("@redis/graph/dist/commands/QUERY");
23
+ query: typeof import("@redis/graph/dist/commands/QUERY");
24
+ RO_QUERY: typeof import("@redis/graph/dist/commands/RO_QUERY");
25
+ roQuery: typeof import("@redis/graph/dist/commands/RO_QUERY");
26
+ SLOWLOG: typeof import("@redis/graph/dist/commands/SLOWLOG");
27
+ slowLog: typeof import("@redis/graph/dist/commands/SLOWLOG");
28
+ };
29
+ json: {
30
+ ARRAPPEND: typeof import("@redis/json/dist/commands/ARRAPPEND");
31
+ arrAppend: typeof import("@redis/json/dist/commands/ARRAPPEND");
32
+ ARRINDEX: typeof import("@redis/json/dist/commands/ARRINDEX");
33
+ arrIndex: typeof import("@redis/json/dist/commands/ARRINDEX");
34
+ ARRINSERT: typeof import("@redis/json/dist/commands/ARRINSERT");
35
+ arrInsert: typeof import("@redis/json/dist/commands/ARRINSERT");
36
+ ARRLEN: typeof import("@redis/json/dist/commands/ARRLEN");
37
+ arrLen: typeof import("@redis/json/dist/commands/ARRLEN");
38
+ ARRPOP: typeof import("@redis/json/dist/commands/ARRPOP");
39
+ arrPop: typeof import("@redis/json/dist/commands/ARRPOP");
40
+ ARRTRIM: typeof import("@redis/json/dist/commands/ARRTRIM");
41
+ arrTrim: typeof import("@redis/json/dist/commands/ARRTRIM");
42
+ DEBUG_MEMORY: typeof import("@redis/json/dist/commands/DEBUG_MEMORY");
43
+ debugMemory: typeof import("@redis/json/dist/commands/DEBUG_MEMORY");
44
+ DEL: typeof import("@redis/json/dist/commands/DEL");
45
+ del: typeof import("@redis/json/dist/commands/DEL");
46
+ FORGET: typeof import("@redis/json/dist/commands/FORGET");
47
+ forget: typeof import("@redis/json/dist/commands/FORGET");
48
+ GET: typeof import("@redis/json/dist/commands/GET");
49
+ get: typeof import("@redis/json/dist/commands/GET");
50
+ MERGE: typeof import("@redis/json/dist/commands/MERGE");
51
+ merge: typeof import("@redis/json/dist/commands/MERGE");
52
+ MGET: typeof import("@redis/json/dist/commands/MGET");
53
+ mGet: typeof import("@redis/json/dist/commands/MGET");
54
+ MSET: typeof import("@redis/json/dist/commands/MSET");
55
+ mSet: typeof import("@redis/json/dist/commands/MSET");
56
+ NUMINCRBY: typeof import("@redis/json/dist/commands/NUMINCRBY");
57
+ numIncrBy: typeof import("@redis/json/dist/commands/NUMINCRBY");
58
+ NUMMULTBY: typeof import("@redis/json/dist/commands/NUMMULTBY");
59
+ numMultBy: typeof import("@redis/json/dist/commands/NUMMULTBY");
60
+ OBJKEYS: typeof import("@redis/json/dist/commands/OBJKEYS");
61
+ objKeys: typeof import("@redis/json/dist/commands/OBJKEYS");
62
+ OBJLEN: typeof import("@redis/json/dist/commands/OBJLEN");
63
+ objLen: typeof import("@redis/json/dist/commands/OBJLEN");
64
+ RESP: typeof import("@redis/json/dist/commands/RESP");
65
+ resp: typeof import("@redis/json/dist/commands/RESP");
66
+ SET: typeof import("@redis/json/dist/commands/SET");
67
+ set: typeof import("@redis/json/dist/commands/SET");
68
+ STRAPPEND: typeof import("@redis/json/dist/commands/STRAPPEND");
69
+ strAppend: typeof import("@redis/json/dist/commands/STRAPPEND");
70
+ STRLEN: typeof import("@redis/json/dist/commands/STRLEN");
71
+ strLen: typeof import("@redis/json/dist/commands/STRLEN");
72
+ TYPE: typeof import("@redis/json/dist/commands/TYPE");
73
+ type: typeof import("@redis/json/dist/commands/TYPE");
74
+ };
75
+ ft: {
76
+ _LIST: typeof import("@redis/search/dist/commands/_LIST");
77
+ _list: typeof import("@redis/search/dist/commands/_LIST");
78
+ ALTER: typeof import("@redis/search/dist/commands/ALTER");
79
+ alter: typeof import("@redis/search/dist/commands/ALTER");
80
+ AGGREGATE_WITHCURSOR: typeof import("@redis/search/dist/commands/AGGREGATE_WITHCURSOR");
81
+ aggregateWithCursor: typeof import("@redis/search/dist/commands/AGGREGATE_WITHCURSOR");
82
+ AGGREGATE: typeof import("@redis/search/dist/commands/AGGREGATE");
83
+ aggregate: typeof import("@redis/search/dist/commands/AGGREGATE");
84
+ ALIASADD: typeof import("@redis/search/dist/commands/ALIASADD");
85
+ aliasAdd: typeof import("@redis/search/dist/commands/ALIASADD");
86
+ ALIASDEL: typeof import("@redis/search/dist/commands/ALIASDEL");
87
+ aliasDel: typeof import("@redis/search/dist/commands/ALIASDEL");
88
+ ALIASUPDATE: typeof import("@redis/search/dist/commands/ALIASUPDATE");
89
+ aliasUpdate: typeof import("@redis/search/dist/commands/ALIASUPDATE");
90
+ CONFIG_GET: typeof import("@redis/search/dist/commands/CONFIG_GET");
91
+ configGet: typeof import("@redis/search/dist/commands/CONFIG_GET");
92
+ CONFIG_SET: typeof import("@redis/search/dist/commands/CONFIG_SET");
93
+ configSet: typeof import("@redis/search/dist/commands/CONFIG_SET");
94
+ CREATE: typeof import("@redis/search/dist/commands/CREATE");
95
+ create: typeof import("@redis/search/dist/commands/CREATE");
96
+ CURSOR_DEL: typeof import("@redis/search/dist/commands/CURSOR_DEL");
97
+ cursorDel: typeof import("@redis/search/dist/commands/CURSOR_DEL");
98
+ CURSOR_READ: typeof import("@redis/search/dist/commands/CURSOR_READ");
99
+ cursorRead: typeof import("@redis/search/dist/commands/CURSOR_READ");
100
+ DICTADD: typeof import("@redis/search/dist/commands/DICTADD");
101
+ dictAdd: typeof import("@redis/search/dist/commands/DICTADD");
102
+ DICTDEL: typeof import("@redis/search/dist/commands/DICTDEL");
103
+ dictDel: typeof import("@redis/search/dist/commands/DICTDEL");
104
+ DICTDUMP: typeof import("@redis/search/dist/commands/DICTDUMP");
105
+ dictDump: typeof import("@redis/search/dist/commands/DICTDUMP");
106
+ DROPINDEX: typeof import("@redis/search/dist/commands/DROPINDEX");
107
+ dropIndex: typeof import("@redis/search/dist/commands/DROPINDEX");
108
+ EXPLAIN: typeof import("@redis/search/dist/commands/EXPLAIN");
109
+ explain: typeof import("@redis/search/dist/commands/EXPLAIN");
110
+ EXPLAINCLI: typeof import("@redis/search/dist/commands/EXPLAINCLI");
111
+ explainCli: typeof import("@redis/search/dist/commands/EXPLAINCLI");
112
+ INFO: typeof import("@redis/search/dist/commands/INFO");
113
+ info: typeof import("@redis/search/dist/commands/INFO");
114
+ PROFILESEARCH: typeof import("@redis/search/dist/commands/PROFILE_SEARCH");
115
+ profileSearch: typeof import("@redis/search/dist/commands/PROFILE_SEARCH");
116
+ PROFILEAGGREGATE: typeof import("@redis/search/dist/commands/PROFILE_AGGREGATE");
117
+ profileAggregate: typeof import("@redis/search/dist/commands/PROFILE_AGGREGATE");
118
+ SEARCH: typeof import("@redis/search/dist/commands/SEARCH");
119
+ search: typeof import("@redis/search/dist/commands/SEARCH");
120
+ SEARCH_NOCONTENT: typeof import("@redis/search/dist/commands/SEARCH_NOCONTENT");
121
+ searchNoContent: typeof import("@redis/search/dist/commands/SEARCH_NOCONTENT");
122
+ SPELLCHECK: typeof import("@redis/search/dist/commands/SPELLCHECK");
123
+ spellCheck: typeof import("@redis/search/dist/commands/SPELLCHECK");
124
+ SUGADD: typeof import("@redis/search/dist/commands/SUGADD");
125
+ sugAdd: typeof import("@redis/search/dist/commands/SUGADD");
126
+ SUGDEL: typeof import("@redis/search/dist/commands/SUGDEL");
127
+ sugDel: typeof import("@redis/search/dist/commands/SUGDEL");
128
+ SUGGET_WITHPAYLOADS: typeof import("@redis/search/dist/commands/SUGGET_WITHPAYLOADS");
129
+ sugGetWithPayloads: typeof import("@redis/search/dist/commands/SUGGET_WITHPAYLOADS");
130
+ SUGGET_WITHSCORES_WITHPAYLOADS: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES_WITHPAYLOADS");
131
+ sugGetWithScoresWithPayloads: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES_WITHPAYLOADS");
132
+ SUGGET_WITHSCORES: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES");
133
+ sugGetWithScores: typeof import("@redis/search/dist/commands/SUGGET_WITHSCORES");
134
+ SUGGET: typeof import("@redis/search/dist/commands/SUGGET");
135
+ sugGet: typeof import("@redis/search/dist/commands/SUGGET");
136
+ SUGLEN: typeof import("@redis/search/dist/commands/SUGLEN");
137
+ sugLen: typeof import("@redis/search/dist/commands/SUGLEN");
138
+ SYNDUMP: typeof import("@redis/search/dist/commands/SYNDUMP");
139
+ synDump: typeof import("@redis/search/dist/commands/SYNDUMP");
140
+ SYNUPDATE: typeof import("@redis/search/dist/commands/SYNUPDATE");
141
+ synUpdate: typeof import("@redis/search/dist/commands/SYNUPDATE");
142
+ TAGVALS: typeof import("@redis/search/dist/commands/TAGVALS");
143
+ tagVals: typeof import("@redis/search/dist/commands/TAGVALS");
144
+ };
145
+ ts: {
146
+ ADD: typeof import("@redis/time-series/dist/commands/ADD");
147
+ add: typeof import("@redis/time-series/dist/commands/ADD");
148
+ ALTER: typeof import("@redis/time-series/dist/commands/ALTER");
149
+ alter: typeof import("@redis/time-series/dist/commands/ALTER");
150
+ CREATE: typeof import("@redis/time-series/dist/commands/CREATE");
151
+ create: typeof import("@redis/time-series/dist/commands/CREATE");
152
+ CREATERULE: typeof import("@redis/time-series/dist/commands/CREATERULE");
153
+ createRule: typeof import("@redis/time-series/dist/commands/CREATERULE");
154
+ DECRBY: typeof import("@redis/time-series/dist/commands/DECRBY");
155
+ decrBy: typeof import("@redis/time-series/dist/commands/DECRBY");
156
+ DEL: typeof import("@redis/time-series/dist/commands/DEL");
157
+ del: typeof import("@redis/time-series/dist/commands/DEL");
158
+ DELETERULE: typeof import("@redis/time-series/dist/commands/DELETERULE");
159
+ deleteRule: typeof import("@redis/time-series/dist/commands/DELETERULE");
160
+ GET: typeof import("@redis/time-series/dist/commands/GET");
161
+ get: typeof import("@redis/time-series/dist/commands/GET");
162
+ INCRBY: typeof import("@redis/time-series/dist/commands/INCRBY");
163
+ incrBy: typeof import("@redis/time-series/dist/commands/INCRBY");
164
+ INFO_DEBUG: typeof import("@redis/time-series/dist/commands/INFO_DEBUG");
165
+ infoDebug: typeof import("@redis/time-series/dist/commands/INFO_DEBUG");
166
+ INFO: typeof import("@redis/time-series/dist/commands/INFO");
167
+ info: typeof import("@redis/time-series/dist/commands/INFO");
168
+ MADD: typeof import("@redis/time-series/dist/commands/MADD");
169
+ mAdd: typeof import("@redis/time-series/dist/commands/MADD");
170
+ MGET: typeof import("@redis/time-series/dist/commands/MGET");
171
+ mGet: typeof import("@redis/time-series/dist/commands/MGET");
172
+ MGET_WITHLABELS: typeof import("@redis/time-series/dist/commands/MGET_WITHLABELS");
173
+ mGetWithLabels: typeof import("@redis/time-series/dist/commands/MGET_WITHLABELS");
174
+ QUERYINDEX: typeof import("@redis/time-series/dist/commands/QUERYINDEX");
175
+ queryIndex: typeof import("@redis/time-series/dist/commands/QUERYINDEX");
176
+ RANGE: typeof import("@redis/time-series/dist/commands/RANGE");
177
+ range: typeof import("@redis/time-series/dist/commands/RANGE");
178
+ REVRANGE: typeof import("@redis/time-series/dist/commands/REVRANGE");
179
+ revRange: typeof import("@redis/time-series/dist/commands/REVRANGE");
180
+ MRANGE: typeof import("@redis/time-series/dist/commands/MRANGE");
181
+ mRange: typeof import("@redis/time-series/dist/commands/MRANGE");
182
+ MRANGE_WITHLABELS: typeof import("@redis/time-series/dist/commands/MRANGE_WITHLABELS");
183
+ mRangeWithLabels: typeof import("@redis/time-series/dist/commands/MRANGE_WITHLABELS");
184
+ MREVRANGE: typeof import("@redis/time-series/dist/commands/MREVRANGE");
185
+ mRevRange: typeof import("@redis/time-series/dist/commands/MREVRANGE");
186
+ MREVRANGE_WITHLABELS: typeof import("@redis/time-series/dist/commands/MREVRANGE_WITHLABELS");
187
+ mRevRangeWithLabels: typeof import("@redis/time-series/dist/commands/MREVRANGE_WITHLABELS");
188
+ };
189
+ bf: {
190
+ ADD: typeof import("@redis/bloom/dist/commands/bloom/ADD");
191
+ add: typeof import("@redis/bloom/dist/commands/bloom/ADD");
192
+ CARD: typeof import("@redis/bloom/dist/commands/bloom/CARD");
193
+ card: typeof import("@redis/bloom/dist/commands/bloom/CARD");
194
+ EXISTS: typeof import("@redis/bloom/dist/commands/bloom/EXISTS");
195
+ exists: typeof import("@redis/bloom/dist/commands/bloom/EXISTS");
196
+ INFO: typeof import("@redis/bloom/dist/commands/bloom/INFO");
197
+ info: typeof import("@redis/bloom/dist/commands/bloom/INFO");
198
+ INSERT: typeof import("@redis/bloom/dist/commands/bloom/INSERT");
199
+ insert: typeof import("@redis/bloom/dist/commands/bloom/INSERT");
200
+ LOADCHUNK: typeof import("@redis/bloom/dist/commands/bloom/LOADCHUNK");
201
+ loadChunk: typeof import("@redis/bloom/dist/commands/bloom/LOADCHUNK");
202
+ MADD: typeof import("@redis/bloom/dist/commands/bloom/MADD");
203
+ mAdd: typeof import("@redis/bloom/dist/commands/bloom/MADD");
204
+ MEXISTS: typeof import("@redis/bloom/dist/commands/bloom/MEXISTS");
205
+ mExists: typeof import("@redis/bloom/dist/commands/bloom/MEXISTS");
206
+ RESERVE: typeof import("@redis/bloom/dist/commands/bloom/RESERVE");
207
+ reserve: typeof import("@redis/bloom/dist/commands/bloom/RESERVE");
208
+ SCANDUMP: typeof import("@redis/bloom/dist/commands/bloom/SCANDUMP");
209
+ scanDump: typeof import("@redis/bloom/dist/commands/bloom/SCANDUMP");
210
+ };
211
+ cms: {
212
+ INCRBY: typeof import("@redis/bloom/dist/commands/count-min-sketch/INCRBY");
213
+ incrBy: typeof import("@redis/bloom/dist/commands/count-min-sketch/INCRBY");
214
+ INFO: typeof import("@redis/bloom/dist/commands/count-min-sketch/INFO");
215
+ info: typeof import("@redis/bloom/dist/commands/count-min-sketch/INFO");
216
+ INITBYDIM: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYDIM");
217
+ initByDim: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYDIM");
218
+ INITBYPROB: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYPROB");
219
+ initByProb: typeof import("@redis/bloom/dist/commands/count-min-sketch/INITBYPROB");
220
+ MERGE: typeof import("@redis/bloom/dist/commands/count-min-sketch/MERGE");
221
+ merge: typeof import("@redis/bloom/dist/commands/count-min-sketch/MERGE");
222
+ QUERY: typeof import("@redis/bloom/dist/commands/count-min-sketch/QUERY");
223
+ query: typeof import("@redis/bloom/dist/commands/count-min-sketch/QUERY");
224
+ };
225
+ cf: {
226
+ ADD: typeof import("@redis/bloom/dist/commands/cuckoo/ADD");
227
+ add: typeof import("@redis/bloom/dist/commands/cuckoo/ADD");
228
+ ADDNX: typeof import("@redis/bloom/dist/commands/cuckoo/ADDNX");
229
+ addNX: typeof import("@redis/bloom/dist/commands/cuckoo/ADDNX");
230
+ COUNT: typeof import("@redis/bloom/dist/commands/cuckoo/COUNT");
231
+ count: typeof import("@redis/bloom/dist/commands/cuckoo/COUNT");
232
+ DEL: typeof import("@redis/bloom/dist/commands/cuckoo/DEL");
233
+ del: typeof import("@redis/bloom/dist/commands/cuckoo/DEL");
234
+ EXISTS: typeof import("@redis/bloom/dist/commands/cuckoo/EXISTS");
235
+ exists: typeof import("@redis/bloom/dist/commands/cuckoo/EXISTS");
236
+ INFO: typeof import("@redis/bloom/dist/commands/cuckoo/INFO");
237
+ info: typeof import("@redis/bloom/dist/commands/cuckoo/INFO");
238
+ INSERT: typeof import("@redis/bloom/dist/commands/cuckoo/INSERT");
239
+ insert: typeof import("@redis/bloom/dist/commands/cuckoo/INSERT");
240
+ INSERTNX: typeof import("@redis/bloom/dist/commands/cuckoo/INSERTNX");
241
+ insertNX: typeof import("@redis/bloom/dist/commands/cuckoo/INSERTNX");
242
+ LOADCHUNK: typeof import("@redis/bloom/dist/commands/cuckoo/LOADCHUNK");
243
+ loadChunk: typeof import("@redis/bloom/dist/commands/cuckoo/LOADCHUNK");
244
+ RESERVE: typeof import("@redis/bloom/dist/commands/cuckoo/RESERVE");
245
+ reserve: typeof import("@redis/bloom/dist/commands/cuckoo/RESERVE");
246
+ SCANDUMP: typeof import("@redis/bloom/dist/commands/cuckoo/SCANDUMP");
247
+ scanDump: typeof import("@redis/bloom/dist/commands/cuckoo/SCANDUMP");
248
+ };
249
+ tDigest: {
250
+ ADD: typeof import("@redis/bloom/dist/commands/t-digest/ADD");
251
+ add: typeof import("@redis/bloom/dist/commands/t-digest/ADD");
252
+ BYRANK: typeof import("@redis/bloom/dist/commands/t-digest/BYRANK");
253
+ byRank: typeof import("@redis/bloom/dist/commands/t-digest/BYRANK");
254
+ BYREVRANK: typeof import("@redis/bloom/dist/commands/t-digest/BYREVRANK");
255
+ byRevRank: typeof import("@redis/bloom/dist/commands/t-digest/BYREVRANK");
256
+ CDF: typeof import("@redis/bloom/dist/commands/t-digest/CDF");
257
+ cdf: typeof import("@redis/bloom/dist/commands/t-digest/CDF");
258
+ CREATE: typeof import("@redis/bloom/dist/commands/t-digest/CREATE");
259
+ create: typeof import("@redis/bloom/dist/commands/t-digest/CREATE");
260
+ INFO: typeof import("@redis/bloom/dist/commands/t-digest/INFO");
261
+ info: typeof import("@redis/bloom/dist/commands/t-digest/INFO");
262
+ MAX: typeof import("@redis/bloom/dist/commands/t-digest/MAX");
263
+ max: typeof import("@redis/bloom/dist/commands/t-digest/MAX");
264
+ MERGE: typeof import("@redis/bloom/dist/commands/t-digest/MERGE");
265
+ merge: typeof import("@redis/bloom/dist/commands/t-digest/MERGE");
266
+ MIN: typeof import("@redis/bloom/dist/commands/t-digest/MIN");
267
+ min: typeof import("@redis/bloom/dist/commands/t-digest/MIN");
268
+ QUANTILE: typeof import("@redis/bloom/dist/commands/t-digest/QUANTILE");
269
+ quantile: typeof import("@redis/bloom/dist/commands/t-digest/QUANTILE");
270
+ RANK: typeof import("@redis/bloom/dist/commands/t-digest/RANK");
271
+ rank: typeof import("@redis/bloom/dist/commands/t-digest/RANK");
272
+ RESET: typeof import("@redis/bloom/dist/commands/t-digest/RESET");
273
+ reset: typeof import("@redis/bloom/dist/commands/t-digest/RESET");
274
+ REVRANK: typeof import("@redis/bloom/dist/commands/t-digest/REVRANK");
275
+ revRank: typeof import("@redis/bloom/dist/commands/t-digest/REVRANK");
276
+ TRIMMED_MEAN: typeof import("@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN");
277
+ trimmedMean: typeof import("@redis/bloom/dist/commands/t-digest/TRIMMED_MEAN");
278
+ };
279
+ topK: {
280
+ ADD: typeof import("@redis/bloom/dist/commands/top-k/ADD");
281
+ add: typeof import("@redis/bloom/dist/commands/top-k/ADD");
282
+ COUNT: typeof import("@redis/bloom/dist/commands/top-k/COUNT");
283
+ count: typeof import("@redis/bloom/dist/commands/top-k/COUNT");
284
+ INCRBY: typeof import("@redis/bloom/dist/commands/top-k/INCRBY");
285
+ incrBy: typeof import("@redis/bloom/dist/commands/top-k/INCRBY");
286
+ INFO: typeof import("@redis/bloom/dist/commands/top-k/INFO");
287
+ info: typeof import("@redis/bloom/dist/commands/top-k/INFO");
288
+ LIST_WITHCOUNT: typeof import("@redis/bloom/dist/commands/top-k/LIST_WITHCOUNT");
289
+ listWithCount: typeof import("@redis/bloom/dist/commands/top-k/LIST_WITHCOUNT");
290
+ LIST: typeof import("@redis/bloom/dist/commands/top-k/LIST");
291
+ list: typeof import("@redis/bloom/dist/commands/top-k/LIST");
292
+ QUERY: typeof import("@redis/bloom/dist/commands/top-k/QUERY");
293
+ query: typeof import("@redis/bloom/dist/commands/top-k/QUERY");
294
+ RESERVE: typeof import("@redis/bloom/dist/commands/top-k/RESERVE");
295
+ reserve: typeof import("@redis/bloom/dist/commands/top-k/RESERVE");
296
+ };
297
+ };
298
+ export type RedisDefaultModules = typeof modules;
299
+ export type RedisClientType<M extends RedisModules = RedisDefaultModules, F extends RedisFunctions = Record<string, never>, S extends RedisScripts = Record<string, never>> = _RedisClientType<M, F, S>;
300
+ export declare function createClient<M extends RedisModules, F extends RedisFunctions, S extends RedisScripts>(options?: RedisClientOptions<M, F, S>): _RedisClientType<RedisDefaultModules & M, F, S>;
301
+ export type RedisClusterType<M extends RedisModules = RedisDefaultModules, F extends RedisFunctions = Record<string, never>, S extends RedisScripts = Record<string, never>> = _RedisClusterType<M, F, S>;
302
+ export declare function createCluster<M extends RedisModules, F extends RedisFunctions, S extends RedisScripts>(options: RedisClusterOptions<M, F, S>): RedisClusterType<RedisDefaultModules & M, F, S>;