@stone-wpp/ofc 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -12
- package/lib/Defaults/index.d.ts +1 -1
- package/lib/Defaults/index.js +1 -1
- package/lib/Signal/Group/sender-key-distribution-message.js +1 -1
- package/lib/Signal/Group/sender-key-message.js +1 -1
- package/lib/Socket/chats.d.ts +1 -1
- package/lib/Socket/chats.js +1 -1
- package/lib/Socket/chats.js.bak +1 -1
- package/lib/Socket/communities.d.ts +1 -1
- package/lib/Socket/communities.js +1 -1
- package/lib/Socket/groups.d.ts +1 -1
- package/lib/Socket/groups.js +1 -1
- package/lib/Socket/index.d.ts +1 -1
- package/lib/Socket/index.js +3 -1
- package/lib/Socket/messages-recv.d.ts +1 -1
- package/lib/Socket/messages-recv.js +1 -1
- package/lib/Socket/messages-send.d.ts +1 -1
- package/lib/Socket/messages-send.js +1 -1
- package/lib/Socket/socket.js +1 -1
- package/lib/Socket/stone-features.d.ts +30 -0
- package/lib/Socket/stone-features.js +255 -0
- package/lib/Types/Auth.d.ts +1 -1
- package/lib/Types/Chat.d.ts +1 -1
- package/lib/Types/Events.d.ts +8 -1
- package/lib/Types/Events.js +1 -1
- package/lib/Types/Message.d.ts +1 -1
- package/lib/Types/Message.js +1 -1
- package/lib/Types/Signal.d.ts +1 -1
- package/lib/Types/Signal.js +1 -1
- package/lib/Types/Socket.d.ts +1 -1
- package/lib/Types/Socket.js +1 -1
- package/lib/Utils/browser-utils.js +1 -1
- package/lib/Utils/chat-utils.d.ts +1 -1
- package/lib/Utils/chat-utils.js +32 -1
- package/lib/Utils/decode-wa-message.js +1 -1
- package/lib/Utils/generics.d.ts +1 -1
- package/lib/Utils/generics.js +1 -1
- package/lib/Utils/history.d.ts +1 -1
- package/lib/Utils/history.js +1 -1
- package/lib/Utils/message-retry-manager.d.ts +1 -1
- package/lib/Utils/messages-media.d.ts +1 -1
- package/lib/Utils/messages-media.js +1 -1
- package/lib/Utils/messages.d.ts +1 -1
- package/lib/Utils/messages.js +9 -3
- package/lib/Utils/noise-handler.d.ts +1 -1
- package/lib/Utils/noise-handler.js +1 -1
- package/lib/Utils/process-message.d.ts +1 -1
- package/lib/Utils/process-message.js +1 -1
- package/lib/Utils/reporting-utils.d.ts +1 -1
- package/lib/Utils/reporting-utils.js +1 -1
- package/lib/Utils/sync-action-utils.d.ts +1 -1
- package/lib/Utils/sync-action-utils.js +1 -1
- package/lib/Utils/use-multi-file-auth-state.js +1 -1
- package/lib/Utils/validate-connection.d.ts +1 -1
- package/lib/Utils/validate-connection.js +1 -1
- package/lib/WABinary/generic-utils.d.ts +1 -1
- package/lib/WABinary/generic-utils.js +1 -1
- package/lib/index.d.ts +3 -4
- package/lib/index.js +3 -4
- package/package.json +7 -6
- package/lib/Recursos/Bots/index.js +0 -1
- package/lib/Recursos/Bots/mensagens.js +0 -21
- package/lib/Recursos/Canais/buscar.js +0 -12
- package/lib/Recursos/Canais/enquetes.js +0 -12
- package/lib/Recursos/Canais/estatisticas.js +0 -15
- package/lib/Recursos/Canais/index.js +0 -25
- package/lib/Recursos/Canais/reacoes.js +0 -13
- package/lib/Recursos/Chamadas/audio.js +0 -4
- package/lib/Recursos/Chamadas/index.js +0 -15
- package/lib/Recursos/Chamadas/video.js +0 -4
- package/lib/Recursos/Grupos/historico.js +0 -24
- package/lib/Recursos/Grupos/index.js +0 -7
- package/lib/Recursos/Grupos/permissoes.js +0 -21
- package/lib/Recursos/Listas/index.js +0 -1
- package/lib/Recursos/Listas/transmissao.js +0 -59
- package/lib/Recursos/index.d.ts +0 -58
- package/lib/Recursos/index.js +0 -8
- /package/{WAProto → Protocol}/GenerateStatics.sh +0 -0
- /package/{WAProto → Protocol}/WAProto.proto +0 -0
- /package/{WAProto → Protocol}/fix-imports.js +0 -0
- /package/{WAProto → Protocol}/index.d.ts +0 -0
- /package/{WAProto → Protocol}/index.js +0 -0
- /package/lib/{Store → DataLayer}/index.d.ts +0 -0
- /package/lib/{Store → DataLayer}/index.js +0 -0
- /package/lib/{Store → DataLayer}/json.js +0 -0
- /package/lib/{Store → DataLayer}/memory.js +0 -0
- /package/lib/{Store → DataLayer}/sqlite.js +0 -0
- /package/lib/{Plugins → Extensions}/index.d.ts +0 -0
- /package/lib/{Plugins → Extensions}/index.js +0 -0
- /package/lib/{Plugins → Extensions}/manager.js +0 -0
package/lib/Recursos/index.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import type { StoneStore } from '../Store/index.js';
|
|
2
|
-
import type { StonePluginManager } from '../Plugins/index.js';
|
|
3
|
-
|
|
4
|
-
export interface StoneFeatures {
|
|
5
|
-
readonly store: StoneStore;
|
|
6
|
-
readonly plugins: StonePluginManager;
|
|
7
|
-
readonly canais: {
|
|
8
|
-
informacoes(chave: string, tipo?: string): Promise<unknown>;
|
|
9
|
-
mensagens(jid: string, quantidade?: number, desde?: number, depois?: number): Promise<unknown>;
|
|
10
|
-
seguidores(jid: string): Promise<unknown>;
|
|
11
|
-
reagir(jid: string, id: string, emoji: string): Promise<unknown>;
|
|
12
|
-
seguir(jid: string): Promise<unknown>;
|
|
13
|
-
deixar(jid: string): Promise<unknown>;
|
|
14
|
-
buscarLocal(canais: unknown[], termo: string, options?: { limite?: number }): unknown[];
|
|
15
|
-
estatisticasLocais(mensagens?: unknown[]): { mensagens: number; visualizacoes: number; reacoes: number; enquetes: number; taxaDeReacao: number };
|
|
16
|
-
resumirReacoes(reacoes?: unknown[]): Record<string, number>;
|
|
17
|
-
resumirEnquete(enquete: unknown): unknown;
|
|
18
|
-
};
|
|
19
|
-
readonly grupos: {
|
|
20
|
-
permissoes: {
|
|
21
|
-
somenteAdminsEnviam(jid: string, ativar?: boolean): Promise<unknown>;
|
|
22
|
-
somenteAdminsEditam(jid: string, ativar?: boolean): Promise<unknown>;
|
|
23
|
-
aprovarEntrada(jid: string, ativar?: boolean): Promise<unknown>;
|
|
24
|
-
permitirAdicaoPorMembros(jid: string, ativar?: boolean): Promise<unknown>;
|
|
25
|
-
solicitacoes(jid: string): Promise<unknown>;
|
|
26
|
-
decidirSolicitacoes(jid: string, jids: string[], acao: 'approve' | 'reject'): Promise<unknown>;
|
|
27
|
-
};
|
|
28
|
-
historico: {
|
|
29
|
-
salvar(jid: string, mensagem: unknown, limite?: number): Promise<number>;
|
|
30
|
-
listar(jid: string, limite?: number): Promise<unknown[]>;
|
|
31
|
-
apagar(jid: string): Promise<boolean>;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
readonly bots: {
|
|
35
|
-
listar(): Promise<unknown>;
|
|
36
|
-
enviar(jid: string, mensagem: unknown, opcoes?: unknown): Promise<unknown>;
|
|
37
|
-
escutar(jid: string, callback: (mensagem: unknown) => void): () => void;
|
|
38
|
-
};
|
|
39
|
-
readonly listas: {
|
|
40
|
-
criar(nome: string, pessoas?: Array<{jid: string; consentimento: true}>): number;
|
|
41
|
-
adicionar(nome: string, pessoa: {jid: string; consentimento: true}): number;
|
|
42
|
-
remover(nome: string, jid: string): boolean;
|
|
43
|
-
listar(): Array<{nome: string; quantidade: number}>;
|
|
44
|
-
destinatarios(nome: string): string[];
|
|
45
|
-
apagar(nome: string): boolean;
|
|
46
|
-
enviar(nome: string, conteudo: unknown, opcoes?: { pausaMs?: number }): Promise<Array<{jid: string; enviado: boolean; erro?: string; id?: string}>>;
|
|
47
|
-
};
|
|
48
|
-
readonly chamadas: {
|
|
49
|
-
linkAudio(evento?: unknown, timeoutMs?: number): Promise<string | undefined>;
|
|
50
|
-
linkVideo(evento?: unknown, timeoutMs?: number): Promise<string | undefined>;
|
|
51
|
-
rejeitar(id: string, remetente: string): Promise<unknown>;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
export declare function criarRecursosCanais(socket: unknown): StoneFeatures['canais'];
|
|
55
|
-
export declare function criarRecursosGrupos(socket: unknown, store: StoneStore): StoneFeatures['grupos'];
|
|
56
|
-
export declare function criarRecursosBots(socket: unknown): StoneFeatures['bots'];
|
|
57
|
-
export declare function criarListasTransmissao(socket: unknown): StoneFeatures['listas'];
|
|
58
|
-
export declare function criarRecursosChamadas(socket: unknown): StoneFeatures['chamadas'];
|
package/lib/Recursos/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { criarRecursosCanais } from './Canais/index.js';
|
|
2
|
-
import { criarRecursosGrupos } from './Grupos/index.js';
|
|
3
|
-
import { criarRecursosBots } from './Bots/index.js';
|
|
4
|
-
import { criarListasTransmissao } from './Listas/index.js';
|
|
5
|
-
import { criarRecursosChamadas } from './Chamadas/index.js';
|
|
6
|
-
|
|
7
|
-
// Utilitários opcionais exportados separadamente, sem criar propriedades no socket.
|
|
8
|
-
export { criarRecursosCanais, criarRecursosGrupos, criarRecursosBots, criarListasTransmissao, criarRecursosChamadas };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|