mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-09 15:59:30 +00:00
refactor(signal): localize internal declarations (#102042)
This commit is contained in:
parent
eb5d8f85c4
commit
ee6c576e8f
4 changed files with 7 additions and 7 deletions
|
|
@ -5,15 +5,15 @@ import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/string-coer
|
|||
import { resolveSignalAccount } from "./accounts.js";
|
||||
import { looksLikeSignalTargetId, normalizeSignalMessagingTarget } from "./normalize.js";
|
||||
|
||||
export type SignalResolvedTargetKind = "user" | "group";
|
||||
type SignalResolvedTargetKind = "user" | "group";
|
||||
|
||||
export type ResolvedSignalAliasTarget = {
|
||||
type ResolvedSignalAliasTarget = {
|
||||
to: string;
|
||||
kind: SignalResolvedTargetKind;
|
||||
alias: string;
|
||||
};
|
||||
|
||||
export type ResolvedSignalTarget =
|
||||
type ResolvedSignalTarget =
|
||||
| (ResolvedSignalAliasTarget & { source: "alias" })
|
||||
| {
|
||||
to: string;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ const PERSISTENT_NAMESPACE = "signal.approval-reactions.v2";
|
|||
const PERSISTENT_MAX_ENTRIES = 1000;
|
||||
const DEFAULT_REACTION_TARGET_TTL_MS = 24 * 60 * 60 * 1000;
|
||||
|
||||
export type SignalApprovalReactionBinding = ApprovalReactionDecisionBinding;
|
||||
type SignalApprovalReactionBinding = ApprovalReactionDecisionBinding;
|
||||
|
||||
type SignalApprovalReactionResolution = {
|
||||
approvalId: string;
|
||||
|
|
|
|||
|
|
@ -21,14 +21,14 @@ import { readResponseWithLimit } from "openclaw/plugin-sdk/response-limit-runtim
|
|||
import { readRegularFile } from "openclaw/plugin-sdk/security-runtime";
|
||||
import WebSocket from "ws";
|
||||
|
||||
export type ContainerRpcOptions = {
|
||||
type ContainerRpcOptions = {
|
||||
baseUrl: string;
|
||||
timeoutMs?: number;
|
||||
maxResponseBytes?: number;
|
||||
maxAttachmentBytes?: number;
|
||||
};
|
||||
|
||||
export type ContainerWebSocketMessage = {
|
||||
type ContainerWebSocketMessage = {
|
||||
envelope?: {
|
||||
syncMessage?: unknown;
|
||||
dataMessage?: {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ export type SignalRpcOptions = {
|
|||
maxResponseBytes?: number;
|
||||
};
|
||||
|
||||
export type SignalRpcError = {
|
||||
type SignalRpcError = {
|
||||
code?: number;
|
||||
message?: string;
|
||||
data?: unknown;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue