@dofe/infra-clients 0.1.1
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/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/agentx/agentx-client.module.d.ts +10 -0
- package/dist/internal/agentx/agentx-client.module.d.ts.map +1 -0
- package/dist/internal/agentx/agentx-client.module.js +38 -0
- package/dist/internal/agentx/agentx-client.module.js.map +1 -0
- package/dist/internal/agentx/agentx-client.service.d.ts +570 -0
- package/dist/internal/agentx/agentx-client.service.d.ts.map +1 -0
- package/dist/internal/agentx/agentx-client.service.js +912 -0
- package/dist/internal/agentx/agentx-client.service.js.map +1 -0
- package/dist/internal/agentx/agentx-file-client.service.d.ts +48 -0
- package/dist/internal/agentx/agentx-file-client.service.d.ts.map +1 -0
- package/dist/internal/agentx/agentx-file-client.service.js +276 -0
- package/dist/internal/agentx/agentx-file-client.service.js.map +1 -0
- package/dist/internal/agentx/index.d.ts +9 -0
- package/dist/internal/agentx/index.d.ts.map +1 -0
- package/dist/internal/agentx/index.js +27 -0
- package/dist/internal/agentx/index.js.map +1 -0
- package/dist/internal/agentx/interfaces/file.interface.d.ts +21 -0
- package/dist/internal/agentx/interfaces/file.interface.d.ts.map +1 -0
- package/dist/internal/agentx/interfaces/file.interface.js +22 -0
- package/dist/internal/agentx/interfaces/file.interface.js.map +1 -0
- package/dist/internal/agentx/interfaces/task.interface.d.ts +74 -0
- package/dist/internal/agentx/interfaces/task.interface.d.ts.map +1 -0
- package/dist/internal/agentx/interfaces/task.interface.js +16 -0
- package/dist/internal/agentx/interfaces/task.interface.js.map +1 -0
- package/dist/internal/ai/index.d.ts +3 -0
- package/dist/internal/ai/index.d.ts.map +1 -0
- package/dist/internal/ai/index.js +19 -0
- package/dist/internal/ai/index.js.map +1 -0
- package/dist/internal/ai/risk-detection.client.d.ts +74 -0
- package/dist/internal/ai/risk-detection.client.d.ts.map +1 -0
- package/dist/internal/ai/risk-detection.client.js +224 -0
- package/dist/internal/ai/risk-detection.client.js.map +1 -0
- package/dist/internal/ai/risk-detection.module.d.ts +3 -0
- package/dist/internal/ai/risk-detection.module.d.ts.map +1 -0
- package/dist/internal/ai/risk-detection.module.js +35 -0
- package/dist/internal/ai/risk-detection.module.js.map +1 -0
- package/dist/internal/ai-provider/ai-provider.client.d.ts +81 -0
- package/dist/internal/ai-provider/ai-provider.client.d.ts.map +1 -0
- package/dist/internal/ai-provider/ai-provider.client.js +435 -0
- package/dist/internal/ai-provider/ai-provider.client.js.map +1 -0
- package/dist/internal/ai-provider/ai-provider.module.d.ts +3 -0
- package/dist/internal/ai-provider/ai-provider.module.d.ts.map +1 -0
- package/dist/internal/ai-provider/ai-provider.module.js +28 -0
- package/dist/internal/ai-provider/ai-provider.module.js.map +1 -0
- package/dist/internal/ai-provider/index.d.ts +4 -0
- package/dist/internal/ai-provider/index.d.ts.map +1 -0
- package/dist/internal/ai-provider/index.js +8 -0
- package/dist/internal/ai-provider/index.js.map +1 -0
- package/dist/internal/channel-verify/channel-verify.client.d.ts +31 -0
- package/dist/internal/channel-verify/channel-verify.client.d.ts.map +1 -0
- package/dist/internal/channel-verify/channel-verify.client.js +150 -0
- package/dist/internal/channel-verify/channel-verify.client.js.map +1 -0
- package/dist/internal/channel-verify/index.d.ts +5 -0
- package/dist/internal/channel-verify/index.d.ts.map +1 -0
- package/dist/internal/channel-verify/index.js +26 -0
- package/dist/internal/channel-verify/index.js.map +1 -0
- package/dist/internal/complexity-classifier/complexity-classifier.module.d.ts +3 -0
- package/dist/internal/complexity-classifier/complexity-classifier.module.d.ts.map +1 -0
- package/dist/internal/complexity-classifier/complexity-classifier.module.js +30 -0
- package/dist/internal/complexity-classifier/complexity-classifier.module.js.map +1 -0
- package/dist/internal/complexity-classifier/complexity-classifier.service.d.ts +57 -0
- package/dist/internal/complexity-classifier/complexity-classifier.service.d.ts.map +1 -0
- package/dist/internal/complexity-classifier/complexity-classifier.service.js +285 -0
- package/dist/internal/complexity-classifier/complexity-classifier.service.js.map +1 -0
- package/dist/internal/complexity-classifier/complexity-classifier.types.d.ts +78 -0
- package/dist/internal/complexity-classifier/complexity-classifier.types.d.ts.map +1 -0
- package/dist/internal/complexity-classifier/complexity-classifier.types.js +20 -0
- package/dist/internal/complexity-classifier/complexity-classifier.types.js.map +1 -0
- package/dist/internal/complexity-classifier/index.d.ts +7 -0
- package/dist/internal/complexity-classifier/index.d.ts.map +1 -0
- package/dist/internal/complexity-classifier/index.js +25 -0
- package/dist/internal/complexity-classifier/index.js.map +1 -0
- package/dist/internal/crypt/crypt-client.service.spec.d.ts +2 -0
- package/dist/internal/crypt/crypt-client.service.spec.d.ts.map +1 -0
- package/dist/internal/crypt/crypt-client.service.spec.js +17 -0
- package/dist/internal/crypt/crypt-client.service.spec.js.map +1 -0
- package/dist/internal/crypt/crypt.client.d.ts +10 -0
- package/dist/internal/crypt/crypt.client.d.ts.map +1 -0
- package/dist/internal/crypt/crypt.client.js +78 -0
- package/dist/internal/crypt/crypt.client.js.map +1 -0
- package/dist/internal/crypt/crypt.module.d.ts +3 -0
- package/dist/internal/crypt/crypt.module.d.ts.map +1 -0
- package/dist/internal/crypt/crypt.module.js +23 -0
- package/dist/internal/crypt/crypt.module.js.map +1 -0
- package/dist/internal/crypt/index.d.ts +3 -0
- package/dist/internal/crypt/index.d.ts.map +1 -0
- package/dist/internal/crypt/index.js +19 -0
- package/dist/internal/crypt/index.js.map +1 -0
- package/dist/internal/email/dto/email.dto.d.ts +62 -0
- package/dist/internal/email/dto/email.dto.d.ts.map +1 -0
- package/dist/internal/email/dto/email.dto.js +50 -0
- package/dist/internal/email/dto/email.dto.js.map +1 -0
- package/dist/internal/email/index.d.ts +10 -0
- package/dist/internal/email/index.d.ts.map +1 -0
- package/dist/internal/email/index.js +29 -0
- package/dist/internal/email/index.js.map +1 -0
- package/dist/internal/email/sendcloud.client.d.ts +103 -0
- package/dist/internal/email/sendcloud.client.d.ts.map +1 -0
- package/dist/internal/email/sendcloud.client.js +336 -0
- package/dist/internal/email/sendcloud.client.js.map +1 -0
- package/dist/internal/exchange-rate/exchange-rate.client.d.ts +49 -0
- package/dist/internal/exchange-rate/exchange-rate.client.d.ts.map +1 -0
- package/dist/internal/exchange-rate/exchange-rate.client.js +166 -0
- package/dist/internal/exchange-rate/exchange-rate.client.js.map +1 -0
- package/dist/internal/exchange-rate/exchange-rate.module.d.ts +3 -0
- package/dist/internal/exchange-rate/exchange-rate.module.d.ts.map +1 -0
- package/dist/internal/exchange-rate/exchange-rate.module.js +23 -0
- package/dist/internal/exchange-rate/exchange-rate.module.js.map +1 -0
- package/dist/internal/exchange-rate/index.d.ts +3 -0
- package/dist/internal/exchange-rate/index.d.ts.map +1 -0
- package/dist/internal/exchange-rate/index.js +19 -0
- package/dist/internal/exchange-rate/index.js.map +1 -0
- package/dist/internal/file-cdn/dto/file-cdn.dto.d.ts +78 -0
- package/dist/internal/file-cdn/dto/file-cdn.dto.d.ts.map +1 -0
- package/dist/internal/file-cdn/dto/file-cdn.dto.js +70 -0
- package/dist/internal/file-cdn/dto/file-cdn.dto.js.map +1 -0
- package/dist/internal/file-cdn/file-cdn-client.service.spec.d.ts +2 -0
- package/dist/internal/file-cdn/file-cdn-client.service.spec.d.ts.map +1 -0
- package/dist/internal/file-cdn/file-cdn-client.service.spec.js +17 -0
- package/dist/internal/file-cdn/file-cdn-client.service.spec.js.map +1 -0
- package/dist/internal/file-cdn/file-cdn.client.d.ts +283 -0
- package/dist/internal/file-cdn/file-cdn.client.d.ts.map +1 -0
- package/dist/internal/file-cdn/file-cdn.client.js +526 -0
- package/dist/internal/file-cdn/file-cdn.client.js.map +1 -0
- package/dist/internal/file-cdn/file-cdn.module.d.ts +3 -0
- package/dist/internal/file-cdn/file-cdn.module.d.ts.map +1 -0
- package/dist/internal/file-cdn/file-cdn.module.js +32 -0
- package/dist/internal/file-cdn/file-cdn.module.js.map +1 -0
- package/dist/internal/file-cdn/index.d.ts +35 -0
- package/dist/internal/file-cdn/index.d.ts.map +1 -0
- package/dist/internal/file-cdn/index.js +54 -0
- package/dist/internal/file-cdn/index.js.map +1 -0
- package/dist/internal/file-storage/config/file.config.d.ts +12 -0
- package/dist/internal/file-storage/config/file.config.d.ts.map +1 -0
- package/dist/internal/file-storage/config/file.config.js +15 -0
- package/dist/internal/file-storage/config/file.config.js.map +1 -0
- package/dist/internal/file-storage/dto/file.dto.d.ts +163 -0
- package/dist/internal/file-storage/dto/file.dto.d.ts.map +1 -0
- package/dist/internal/file-storage/dto/file.dto.js +98 -0
- package/dist/internal/file-storage/dto/file.dto.js.map +1 -0
- package/dist/internal/file-storage/file-gcs.client.d.ts +33 -0
- package/dist/internal/file-storage/file-gcs.client.d.ts.map +1 -0
- package/dist/internal/file-storage/file-gcs.client.js +118 -0
- package/dist/internal/file-storage/file-gcs.client.js.map +1 -0
- package/dist/internal/file-storage/file-qiniu.client.d.ts +199 -0
- package/dist/internal/file-storage/file-qiniu.client.d.ts.map +1 -0
- package/dist/internal/file-storage/file-qiniu.client.js +526 -0
- package/dist/internal/file-storage/file-qiniu.client.js.map +1 -0
- package/dist/internal/file-storage/file-s3.client.d.ts +158 -0
- package/dist/internal/file-storage/file-s3.client.d.ts.map +1 -0
- package/dist/internal/file-storage/file-s3.client.js +865 -0
- package/dist/internal/file-storage/file-s3.client.js.map +1 -0
- package/dist/internal/file-storage/file-storage.interface.d.ts +38 -0
- package/dist/internal/file-storage/file-storage.interface.d.ts.map +1 -0
- package/dist/internal/file-storage/file-storage.interface.js +3 -0
- package/dist/internal/file-storage/file-storage.interface.js.map +1 -0
- package/dist/internal/file-storage/file-tos.client.d.ts +109 -0
- package/dist/internal/file-storage/file-tos.client.d.ts.map +1 -0
- package/dist/internal/file-storage/file-tos.client.js +630 -0
- package/dist/internal/file-storage/file-tos.client.js.map +1 -0
- package/dist/internal/file-storage/file-us3.client.d.ts +30 -0
- package/dist/internal/file-storage/file-us3.client.d.ts.map +1 -0
- package/dist/internal/file-storage/file-us3.client.js +129 -0
- package/dist/internal/file-storage/file-us3.client.js.map +1 -0
- package/dist/internal/file-storage/index.d.ts +15 -0
- package/dist/internal/file-storage/index.d.ts.map +1 -0
- package/dist/internal/file-storage/index.js +37 -0
- package/dist/internal/file-storage/index.js.map +1 -0
- package/dist/internal/health-check/health-check.client.d.ts +37 -0
- package/dist/internal/health-check/health-check.client.d.ts.map +1 -0
- package/dist/internal/health-check/health-check.client.js +142 -0
- package/dist/internal/health-check/health-check.client.js.map +1 -0
- package/dist/internal/health-check/health-check.module.d.ts +3 -0
- package/dist/internal/health-check/health-check.module.d.ts.map +1 -0
- package/dist/internal/health-check/health-check.module.js +33 -0
- package/dist/internal/health-check/health-check.module.js.map +1 -0
- package/dist/internal/health-check/index.d.ts +6 -0
- package/dist/internal/health-check/index.d.ts.map +1 -0
- package/dist/internal/health-check/index.js +11 -0
- package/dist/internal/health-check/index.js.map +1 -0
- package/dist/internal/ip-info/dto/ip-info.dto.d.ts +16 -0
- package/dist/internal/ip-info/dto/ip-info.dto.d.ts.map +1 -0
- package/dist/internal/ip-info/dto/ip-info.dto.js +3 -0
- package/dist/internal/ip-info/dto/ip-info.dto.js.map +1 -0
- package/dist/internal/ip-info/index.d.ts +4 -0
- package/dist/internal/ip-info/index.d.ts.map +1 -0
- package/dist/internal/ip-info/index.js +20 -0
- package/dist/internal/ip-info/index.js.map +1 -0
- package/dist/internal/ip-info/ip-info.client.d.ts +16 -0
- package/dist/internal/ip-info/ip-info.client.d.ts.map +1 -0
- package/dist/internal/ip-info/ip-info.client.js +77 -0
- package/dist/internal/ip-info/ip-info.client.js.map +1 -0
- package/dist/internal/ip-info/ip-info.module.d.ts +3 -0
- package/dist/internal/ip-info/ip-info.module.d.ts.map +1 -0
- package/dist/internal/ip-info/ip-info.module.js +28 -0
- package/dist/internal/ip-info/ip-info.module.js.map +1 -0
- package/dist/internal/mlflow/mlflow.client.d.ts +44 -0
- package/dist/internal/mlflow/mlflow.client.d.ts.map +1 -0
- package/dist/internal/mlflow/mlflow.client.js +184 -0
- package/dist/internal/mlflow/mlflow.client.js.map +1 -0
- package/dist/internal/mlflow/mlflow.module.d.ts +3 -0
- package/dist/internal/mlflow/mlflow.module.d.ts.map +1 -0
- package/dist/internal/mlflow/mlflow.module.js +23 -0
- package/dist/internal/mlflow/mlflow.module.js.map +1 -0
- package/dist/internal/model-research-proxy/anthropic-proxy-research.client.d.ts +52 -0
- package/dist/internal/model-research-proxy/anthropic-proxy-research.client.d.ts.map +1 -0
- package/dist/internal/model-research-proxy/anthropic-proxy-research.client.js +174 -0
- package/dist/internal/model-research-proxy/anthropic-proxy-research.client.js.map +1 -0
- package/dist/internal/model-research-proxy/anthropic-proxy-research.client.spec.d.ts +2 -0
- package/dist/internal/model-research-proxy/anthropic-proxy-research.client.spec.d.ts.map +1 -0
- package/dist/internal/model-research-proxy/anthropic-proxy-research.client.spec.js +145 -0
- package/dist/internal/model-research-proxy/anthropic-proxy-research.client.spec.js.map +1 -0
- package/dist/internal/model-research-proxy/anthropic-proxy-research.module.d.ts +3 -0
- package/dist/internal/model-research-proxy/anthropic-proxy-research.module.d.ts.map +1 -0
- package/dist/internal/model-research-proxy/anthropic-proxy-research.module.js +30 -0
- package/dist/internal/model-research-proxy/anthropic-proxy-research.module.js.map +1 -0
- package/dist/internal/model-research-proxy/index.d.ts +6 -0
- package/dist/internal/model-research-proxy/index.d.ts.map +1 -0
- package/dist/internal/model-research-proxy/index.js +24 -0
- package/dist/internal/model-research-proxy/index.js.map +1 -0
- package/dist/internal/model-verify/index.d.ts +4 -0
- package/dist/internal/model-verify/index.d.ts.map +1 -0
- package/dist/internal/model-verify/index.js +26 -0
- package/dist/internal/model-verify/index.js.map +1 -0
- package/dist/internal/model-verify/model-verify.client.d.ts +77 -0
- package/dist/internal/model-verify/model-verify.client.d.ts.map +1 -0
- package/dist/internal/model-verify/model-verify.client.js +324 -0
- package/dist/internal/model-verify/model-verify.client.js.map +1 -0
- package/dist/internal/ocr/dto/ocr.dto.d.ts +76 -0
- package/dist/internal/ocr/dto/ocr.dto.d.ts.map +1 -0
- package/dist/internal/ocr/dto/ocr.dto.js +48 -0
- package/dist/internal/ocr/dto/ocr.dto.js.map +1 -0
- package/dist/internal/ocr/index.d.ts +4 -0
- package/dist/internal/ocr/index.d.ts.map +1 -0
- package/dist/internal/ocr/index.js +20 -0
- package/dist/internal/ocr/index.js.map +1 -0
- package/dist/internal/ocr/ocr.client.d.ts +39 -0
- package/dist/internal/ocr/ocr.client.d.ts.map +1 -0
- package/dist/internal/ocr/ocr.client.js +112 -0
- package/dist/internal/ocr/ocr.client.js.map +1 -0
- package/dist/internal/ocr/ocr.module.d.ts +3 -0
- package/dist/internal/ocr/ocr.module.d.ts.map +1 -0
- package/dist/internal/ocr/ocr.module.js +28 -0
- package/dist/internal/ocr/ocr.module.js.map +1 -0
- package/dist/internal/openai/index.d.ts +3 -0
- package/dist/internal/openai/index.d.ts.map +1 -0
- package/dist/internal/openai/index.js +19 -0
- package/dist/internal/openai/index.js.map +1 -0
- package/dist/internal/openai/openai.client.d.ts +36 -0
- package/dist/internal/openai/openai.client.d.ts.map +1 -0
- package/dist/internal/openai/openai.client.js +112 -0
- package/dist/internal/openai/openai.client.js.map +1 -0
- package/dist/internal/openai/openai.module.d.ts +3 -0
- package/dist/internal/openai/openai.module.d.ts.map +1 -0
- package/dist/internal/openai/openai.module.js +30 -0
- package/dist/internal/openai/openai.module.js.map +1 -0
- package/dist/internal/openclaw/docker-exec.service.d.ts +132 -0
- package/dist/internal/openclaw/docker-exec.service.d.ts.map +1 -0
- package/dist/internal/openclaw/docker-exec.service.js +544 -0
- package/dist/internal/openclaw/docker-exec.service.js.map +1 -0
- package/dist/internal/openclaw/index.d.ts +14 -0
- package/dist/internal/openclaw/index.d.ts.map +1 -0
- package/dist/internal/openclaw/index.js +32 -0
- package/dist/internal/openclaw/index.js.map +1 -0
- package/dist/internal/openclaw/openclaw-agent-coordination.client.d.ts +73 -0
- package/dist/internal/openclaw/openclaw-agent-coordination.client.d.ts.map +1 -0
- package/dist/internal/openclaw/openclaw-agent-coordination.client.js +249 -0
- package/dist/internal/openclaw/openclaw-agent-coordination.client.js.map +1 -0
- package/dist/internal/openclaw/openclaw-context-status.client.d.ts +66 -0
- package/dist/internal/openclaw/openclaw-context-status.client.d.ts.map +1 -0
- package/dist/internal/openclaw/openclaw-context-status.client.js +164 -0
- package/dist/internal/openclaw/openclaw-context-status.client.js.map +1 -0
- package/dist/internal/openclaw/openclaw-cron.client.d.ts +61 -0
- package/dist/internal/openclaw/openclaw-cron.client.d.ts.map +1 -0
- package/dist/internal/openclaw/openclaw-cron.client.js +416 -0
- package/dist/internal/openclaw/openclaw-cron.client.js.map +1 -0
- package/dist/internal/openclaw/openclaw-gateway.client.d.ts +41 -0
- package/dist/internal/openclaw/openclaw-gateway.client.d.ts.map +1 -0
- package/dist/internal/openclaw/openclaw-gateway.client.js +175 -0
- package/dist/internal/openclaw/openclaw-gateway.client.js.map +1 -0
- package/dist/internal/openclaw/openclaw-skill-sync.client.d.ts +222 -0
- package/dist/internal/openclaw/openclaw-skill-sync.client.d.ts.map +1 -0
- package/dist/internal/openclaw/openclaw-skill-sync.client.js +720 -0
- package/dist/internal/openclaw/openclaw-skill-sync.client.js.map +1 -0
- package/dist/internal/openclaw/openclaw.client.d.ts +602 -0
- package/dist/internal/openclaw/openclaw.client.d.ts.map +1 -0
- package/dist/internal/openclaw/openclaw.client.js +3062 -0
- package/dist/internal/openclaw/openclaw.client.js.map +1 -0
- package/dist/internal/openclaw/openclaw.module.d.ts +3 -0
- package/dist/internal/openclaw/openclaw.module.d.ts.map +1 -0
- package/dist/internal/openclaw/openclaw.module.js +62 -0
- package/dist/internal/openclaw/openclaw.module.js.map +1 -0
- package/dist/internal/openclaw/skill-translation.service.d.ts +39 -0
- package/dist/internal/openclaw/skill-translation.service.d.ts.map +1 -0
- package/dist/internal/openclaw/skill-translation.service.js +217 -0
- package/dist/internal/openclaw/skill-translation.service.js.map +1 -0
- package/dist/internal/openclaw/types/cron.types.d.ts +112 -0
- package/dist/internal/openclaw/types/cron.types.d.ts.map +1 -0
- package/dist/internal/openclaw/types/cron.types.js +9 -0
- package/dist/internal/openclaw/types/cron.types.js.map +1 -0
- package/dist/internal/openspeech/index.d.ts +35 -0
- package/dist/internal/openspeech/index.d.ts.map +1 -0
- package/dist/internal/openspeech/index.js +56 -0
- package/dist/internal/openspeech/index.js.map +1 -0
- package/dist/internal/openspeech/openspeech.client.d.ts +304 -0
- package/dist/internal/openspeech/openspeech.client.d.ts.map +1 -0
- package/dist/internal/openspeech/openspeech.client.js +405 -0
- package/dist/internal/openspeech/openspeech.client.js.map +1 -0
- package/dist/internal/openspeech/openspeech.factory.d.ts +247 -0
- package/dist/internal/openspeech/openspeech.factory.d.ts.map +1 -0
- package/dist/internal/openspeech/openspeech.factory.js +406 -0
- package/dist/internal/openspeech/openspeech.factory.js.map +1 -0
- package/dist/internal/openspeech/openspeech.module.d.ts +45 -0
- package/dist/internal/openspeech/openspeech.module.d.ts.map +1 -0
- package/dist/internal/openspeech/openspeech.module.js +68 -0
- package/dist/internal/openspeech/openspeech.module.js.map +1 -0
- package/dist/internal/openspeech/providers/aliyun.provider.d.ts +125 -0
- package/dist/internal/openspeech/providers/aliyun.provider.d.ts.map +1 -0
- package/dist/internal/openspeech/providers/aliyun.provider.js +274 -0
- package/dist/internal/openspeech/providers/aliyun.provider.js.map +1 -0
- package/dist/internal/openspeech/providers/base.provider.d.ts +98 -0
- package/dist/internal/openspeech/providers/base.provider.d.ts.map +1 -0
- package/dist/internal/openspeech/providers/base.provider.js +87 -0
- package/dist/internal/openspeech/providers/base.provider.js.map +1 -0
- package/dist/internal/openspeech/providers/index.d.ts +10 -0
- package/dist/internal/openspeech/providers/index.d.ts.map +1 -0
- package/dist/internal/openspeech/providers/index.js +26 -0
- package/dist/internal/openspeech/providers/index.js.map +1 -0
- package/dist/internal/openspeech/providers/volcengine-streaming.provider.d.ts +291 -0
- package/dist/internal/openspeech/providers/volcengine-streaming.provider.d.ts.map +1 -0
- package/dist/internal/openspeech/providers/volcengine-streaming.provider.js +1358 -0
- package/dist/internal/openspeech/providers/volcengine-streaming.provider.js.map +1 -0
- package/dist/internal/openspeech/providers/volcengine.provider.d.ts +144 -0
- package/dist/internal/openspeech/providers/volcengine.provider.d.ts.map +1 -0
- package/dist/internal/openspeech/providers/volcengine.provider.js +337 -0
- package/dist/internal/openspeech/providers/volcengine.provider.js.map +1 -0
- package/dist/internal/openspeech/types.d.ts +408 -0
- package/dist/internal/openspeech/types.d.ts.map +1 -0
- package/dist/internal/openspeech/types.js +11 -0
- package/dist/internal/openspeech/types.js.map +1 -0
- package/dist/internal/provider-verify/index.d.ts +6 -0
- package/dist/internal/provider-verify/index.d.ts.map +1 -0
- package/dist/internal/provider-verify/index.js +24 -0
- package/dist/internal/provider-verify/index.js.map +1 -0
- package/dist/internal/provider-verify/provider-verify.client.d.ts +55 -0
- package/dist/internal/provider-verify/provider-verify.client.d.ts.map +1 -0
- package/dist/internal/provider-verify/provider-verify.client.js +284 -0
- package/dist/internal/provider-verify/provider-verify.client.js.map +1 -0
- package/dist/internal/provider-verify/provider-verify.module.d.ts +3 -0
- package/dist/internal/provider-verify/provider-verify.module.d.ts.map +1 -0
- package/dist/internal/provider-verify/provider-verify.module.js +28 -0
- package/dist/internal/provider-verify/provider-verify.module.js.map +1 -0
- package/dist/internal/routing-llm/index.d.ts +7 -0
- package/dist/internal/routing-llm/index.d.ts.map +1 -0
- package/dist/internal/routing-llm/index.js +25 -0
- package/dist/internal/routing-llm/index.js.map +1 -0
- package/dist/internal/routing-llm/interfaces/routing-llm.interface.d.ts +88 -0
- package/dist/internal/routing-llm/interfaces/routing-llm.interface.d.ts.map +1 -0
- package/dist/internal/routing-llm/interfaces/routing-llm.interface.js +64 -0
- package/dist/internal/routing-llm/interfaces/routing-llm.interface.js.map +1 -0
- package/dist/internal/routing-llm/routing-llm.client.d.ts +32 -0
- package/dist/internal/routing-llm/routing-llm.client.d.ts.map +1 -0
- package/dist/internal/routing-llm/routing-llm.client.js +275 -0
- package/dist/internal/routing-llm/routing-llm.client.js.map +1 -0
- package/dist/internal/routing-llm/routing-llm.module.d.ts +3 -0
- package/dist/internal/routing-llm/routing-llm.module.d.ts.map +1 -0
- package/dist/internal/routing-llm/routing-llm.module.js +28 -0
- package/dist/internal/routing-llm/routing-llm.module.js.map +1 -0
- package/dist/internal/sms/dto/sms.dto.d.ts +156 -0
- package/dist/internal/sms/dto/sms.dto.d.ts.map +1 -0
- package/dist/internal/sms/dto/sms.dto.js +78 -0
- package/dist/internal/sms/dto/sms.dto.js.map +1 -0
- package/dist/internal/sms/index.d.ts +14 -0
- package/dist/internal/sms/index.d.ts.map +1 -0
- package/dist/internal/sms/index.js +37 -0
- package/dist/internal/sms/index.js.map +1 -0
- package/dist/internal/sms/sms-aliyun.client.d.ts +19 -0
- package/dist/internal/sms/sms-aliyun.client.d.ts.map +1 -0
- package/dist/internal/sms/sms-aliyun.client.js +74 -0
- package/dist/internal/sms/sms-aliyun.client.js.map +1 -0
- package/dist/internal/sms/sms-http.client.d.ts +21 -0
- package/dist/internal/sms/sms-http.client.d.ts.map +1 -0
- package/dist/internal/sms/sms-http.client.js +76 -0
- package/dist/internal/sms/sms-http.client.js.map +1 -0
- package/dist/internal/sms/sms-tencent.client.d.ts +18 -0
- package/dist/internal/sms/sms-tencent.client.d.ts.map +1 -0
- package/dist/internal/sms/sms-tencent.client.js +76 -0
- package/dist/internal/sms/sms-tencent.client.js.map +1 -0
- package/dist/internal/sms/sms-volcengine.client.d.ts +29 -0
- package/dist/internal/sms/sms-volcengine.client.d.ts.map +1 -0
- package/dist/internal/sms/sms-volcengine.client.js +124 -0
- package/dist/internal/sms/sms-volcengine.client.js.map +1 -0
- package/dist/internal/sms/sms-zxjc.client.d.ts +18 -0
- package/dist/internal/sms/sms-zxjc.client.d.ts.map +1 -0
- package/dist/internal/sms/sms-zxjc.client.js +40 -0
- package/dist/internal/sms/sms-zxjc.client.js.map +1 -0
- package/dist/internal/sse/index.d.ts +3 -0
- package/dist/internal/sse/index.d.ts.map +1 -0
- package/dist/internal/sse/index.js +19 -0
- package/dist/internal/sse/index.js.map +1 -0
- package/dist/internal/sse/sse-client.service.spec.d.ts +2 -0
- package/dist/internal/sse/sse-client.service.spec.d.ts.map +1 -0
- package/dist/internal/sse/sse-client.service.spec.js +17 -0
- package/dist/internal/sse/sse-client.service.spec.js.map +1 -0
- package/dist/internal/sse/sse.client.d.ts +63 -0
- package/dist/internal/sse/sse.client.d.ts.map +1 -0
- package/dist/internal/sse/sse.client.js +304 -0
- package/dist/internal/sse/sse.client.js.map +1 -0
- package/dist/internal/sse/sse.module.d.ts +3 -0
- package/dist/internal/sse/sse.module.d.ts.map +1 -0
- package/dist/internal/sse/sse.module.js +30 -0
- package/dist/internal/sse/sse.module.js.map +1 -0
- package/dist/internal/third-party-sse/index.d.ts +3 -0
- package/dist/internal/third-party-sse/index.d.ts.map +1 -0
- package/dist/internal/third-party-sse/index.js +19 -0
- package/dist/internal/third-party-sse/index.js.map +1 -0
- package/dist/internal/third-party-sse/third-party-sse.client.d.ts +14 -0
- package/dist/internal/third-party-sse/third-party-sse.client.d.ts.map +1 -0
- package/dist/internal/third-party-sse/third-party-sse.client.js +63 -0
- package/dist/internal/third-party-sse/third-party-sse.client.js.map +1 -0
- package/dist/internal/third-party-sse/third-party-sse.module.d.ts +3 -0
- package/dist/internal/third-party-sse/third-party-sse.module.d.ts.map +1 -0
- package/dist/internal/third-party-sse/third-party-sse.module.js +23 -0
- package/dist/internal/third-party-sse/third-party-sse.module.js.map +1 -0
- package/dist/internal/third-party-sse/third-party-sse.service.spec.d.ts +2 -0
- package/dist/internal/third-party-sse/third-party-sse.service.spec.d.ts.map +1 -0
- package/dist/internal/third-party-sse/third-party-sse.service.spec.js +17 -0
- package/dist/internal/third-party-sse/third-party-sse.service.spec.js.map +1 -0
- package/dist/internal/verify/index.d.ts +3 -0
- package/dist/internal/verify/index.d.ts.map +1 -0
- package/dist/internal/verify/index.js +19 -0
- package/dist/internal/verify/index.js.map +1 -0
- package/dist/internal/verify/verify.client.d.ts +12 -0
- package/dist/internal/verify/verify.client.d.ts.map +1 -0
- package/dist/internal/verify/verify.client.js +57 -0
- package/dist/internal/verify/verify.client.js.map +1 -0
- package/dist/internal/verify/verify.module.d.ts +3 -0
- package/dist/internal/verify/verify.module.d.ts.map +1 -0
- package/dist/internal/verify/verify.module.js +23 -0
- package/dist/internal/verify/verify.module.js.map +1 -0
- package/dist/internal/volcengine-tts/dto/tts.dto.d.ts +52 -0
- package/dist/internal/volcengine-tts/dto/tts.dto.d.ts.map +1 -0
- package/dist/internal/volcengine-tts/dto/tts.dto.js +59 -0
- package/dist/internal/volcengine-tts/dto/tts.dto.js.map +1 -0
- package/dist/internal/volcengine-tts/index.d.ts +4 -0
- package/dist/internal/volcengine-tts/index.d.ts.map +1 -0
- package/dist/internal/volcengine-tts/index.js +20 -0
- package/dist/internal/volcengine-tts/index.js.map +1 -0
- package/dist/internal/volcengine-tts/volcengine-tts.client.d.ts +104 -0
- package/dist/internal/volcengine-tts/volcengine-tts.client.d.ts.map +1 -0
- package/dist/internal/volcengine-tts/volcengine-tts.client.js +690 -0
- package/dist/internal/volcengine-tts/volcengine-tts.client.js.map +1 -0
- package/dist/internal/volcengine-tts/volcengine-tts.module.d.ts +3 -0
- package/dist/internal/volcengine-tts/volcengine-tts.module.d.ts.map +1 -0
- package/dist/internal/volcengine-tts/volcengine-tts.module.js +34 -0
- package/dist/internal/volcengine-tts/volcengine-tts.module.js.map +1 -0
- package/dist/internal/wechat/index.d.ts +3 -0
- package/dist/internal/wechat/index.d.ts.map +1 -0
- package/dist/internal/wechat/index.js +19 -0
- package/dist/internal/wechat/index.js.map +1 -0
- package/dist/internal/wechat/wechat-client.service.spec.d.ts +2 -0
- package/dist/internal/wechat/wechat-client.service.spec.d.ts.map +1 -0
- package/dist/internal/wechat/wechat-client.service.spec.js +17 -0
- package/dist/internal/wechat/wechat-client.service.spec.js.map +1 -0
- package/dist/internal/wechat/wechat.client.d.ts +3 -0
- package/dist/internal/wechat/wechat.client.d.ts.map +1 -0
- package/dist/internal/wechat/wechat.client.js +17 -0
- package/dist/internal/wechat/wechat.client.js.map +1 -0
- package/dist/internal/wechat/wechat.module.d.ts +3 -0
- package/dist/internal/wechat/wechat.module.d.ts.map +1 -0
- package/dist/internal/wechat/wechat.module.js +21 -0
- package/dist/internal/wechat/wechat.module.js.map +1 -0
- package/dist/plugin/decorators/inject-client.decorator.d.ts +40 -0
- package/dist/plugin/decorators/inject-client.decorator.d.ts.map +1 -0
- package/dist/plugin/decorators/inject-client.decorator.js +63 -0
- package/dist/plugin/decorators/inject-client.decorator.js.map +1 -0
- package/dist/plugin/index.d.ts +14 -0
- package/dist/plugin/index.d.ts.map +1 -0
- package/dist/plugin/index.js +34 -0
- package/dist/plugin/index.js.map +1 -0
- package/dist/plugin/interceptors/http-logging.interceptor.d.ts +51 -0
- package/dist/plugin/interceptors/http-logging.interceptor.d.ts.map +1 -0
- package/dist/plugin/interceptors/http-logging.interceptor.js +84 -0
- package/dist/plugin/interceptors/http-logging.interceptor.js.map +1 -0
- package/dist/plugin/interfaces/client.interface.d.ts +80 -0
- package/dist/plugin/interfaces/client.interface.d.ts.map +1 -0
- package/dist/plugin/interfaces/client.interface.js +8 -0
- package/dist/plugin/interfaces/client.interface.js.map +1 -0
- package/dist/plugin/utils/retry.util.d.ts +49 -0
- package/dist/plugin/utils/retry.util.d.ts.map +1 -0
- package/dist/plugin/utils/retry.util.js +110 -0
- package/dist/plugin/utils/retry.util.js.map +1 -0
- package/package.json +55 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from './plugin';
|
|
2
|
+
export * from './internal/agentx';
|
|
3
|
+
export * from './internal/ai';
|
|
4
|
+
export * from './internal/ai-provider';
|
|
5
|
+
export * from './internal/crypt';
|
|
6
|
+
export * from './internal/email';
|
|
7
|
+
export * from './internal/exchange-rate';
|
|
8
|
+
export * from './internal/file-cdn';
|
|
9
|
+
export * from './internal/file-storage';
|
|
10
|
+
export * from './internal/ip-info';
|
|
11
|
+
export * from './internal/ocr';
|
|
12
|
+
export * from './internal/openai';
|
|
13
|
+
export * from './internal/openspeech';
|
|
14
|
+
export * from './internal/sms';
|
|
15
|
+
export * from './internal/sse';
|
|
16
|
+
export * from './internal/third-party-sse';
|
|
17
|
+
export * from './internal/verify';
|
|
18
|
+
export * from './internal/volcengine-tts';
|
|
19
|
+
export * from './internal/wechat';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./plugin"), exports);
|
|
18
|
+
__exportStar(require("./internal/agentx"), exports);
|
|
19
|
+
__exportStar(require("./internal/ai"), exports);
|
|
20
|
+
__exportStar(require("./internal/ai-provider"), exports);
|
|
21
|
+
__exportStar(require("./internal/crypt"), exports);
|
|
22
|
+
__exportStar(require("./internal/email"), exports);
|
|
23
|
+
__exportStar(require("./internal/exchange-rate"), exports);
|
|
24
|
+
__exportStar(require("./internal/file-cdn"), exports);
|
|
25
|
+
__exportStar(require("./internal/file-storage"), exports);
|
|
26
|
+
__exportStar(require("./internal/ip-info"), exports);
|
|
27
|
+
__exportStar(require("./internal/ocr"), exports);
|
|
28
|
+
__exportStar(require("./internal/openai"), exports);
|
|
29
|
+
__exportStar(require("./internal/openspeech"), exports);
|
|
30
|
+
__exportStar(require("./internal/sms"), exports);
|
|
31
|
+
__exportStar(require("./internal/sse"), exports);
|
|
32
|
+
__exportStar(require("./internal/third-party-sse"), exports);
|
|
33
|
+
__exportStar(require("./internal/verify"), exports);
|
|
34
|
+
__exportStar(require("./internal/volcengine-tts"), exports);
|
|
35
|
+
__exportStar(require("./internal/wechat"), exports);
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,oDAAkC;AAClC,gDAA8B;AAC9B,yDAAuC;AACvC,mDAAiC;AACjC,mDAAiC;AACjC,2DAAyC;AACzC,sDAAoC;AACpC,0DAAwC;AACxC,qDAAmC;AACnC,iDAA+B;AAC/B,oDAAkC;AAClC,wDAAsC;AACtC,iDAA+B;AAC/B,iDAA+B;AAC/B,6DAA2C;AAC3C,oDAAkC;AAClC,4DAA0C;AAC1C,oDAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentx-client.module.d.ts","sourceRoot":"","sources":["../../../src/internal/agentx/agentx-client.module.ts"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,qBAWa,kBAAkB;CAAG"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.AgentXClientModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const axios_1 = require("@nestjs/axios");
|
|
12
|
+
const config_1 = require("@nestjs/config");
|
|
13
|
+
const agentx_client_service_1 = require("./agentx-client.service");
|
|
14
|
+
const agentx_file_client_service_1 = require("./agentx-file-client.service");
|
|
15
|
+
/**
|
|
16
|
+
* AgentX Client Module
|
|
17
|
+
*
|
|
18
|
+
* 提供与 Python AgentX API 交互的客户端服务
|
|
19
|
+
* - AgentXClient: 任务管理
|
|
20
|
+
* - AgentXFileClient: 文件上传
|
|
21
|
+
*/
|
|
22
|
+
let AgentXClientModule = class AgentXClientModule {
|
|
23
|
+
};
|
|
24
|
+
exports.AgentXClientModule = AgentXClientModule;
|
|
25
|
+
exports.AgentXClientModule = AgentXClientModule = __decorate([
|
|
26
|
+
(0, common_1.Module)({
|
|
27
|
+
imports: [
|
|
28
|
+
axios_1.HttpModule.register({
|
|
29
|
+
timeout: 30000, // 默认 30 秒超时
|
|
30
|
+
maxRedirects: 5,
|
|
31
|
+
}),
|
|
32
|
+
config_1.ConfigModule,
|
|
33
|
+
],
|
|
34
|
+
providers: [agentx_client_service_1.AgentXClient, agentx_file_client_service_1.AgentXFileClient],
|
|
35
|
+
exports: [agentx_client_service_1.AgentXClient, agentx_file_client_service_1.AgentXFileClient],
|
|
36
|
+
})
|
|
37
|
+
], AgentXClientModule);
|
|
38
|
+
//# sourceMappingURL=agentx-client.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentx-client.module.js","sourceRoot":"","sources":["../../../src/internal/agentx/agentx-client.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,yCAA2C;AAC3C,2CAA8C;AAC9C,mEAAuD;AACvD,6EAAgE;AAEhE;;;;;;GAMG;AAYI,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,gDAAkB;6BAAlB,kBAAkB;IAX9B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,kBAAU,CAAC,QAAQ,CAAC;gBAClB,OAAO,EAAE,KAAK,EAAE,YAAY;gBAC5B,YAAY,EAAE,CAAC;aAChB,CAAC;YACF,qBAAY;SACb;QACD,SAAS,EAAE,CAAC,oCAAY,EAAE,6CAAgB,CAAC;QAC3C,OAAO,EAAE,CAAC,oCAAY,EAAE,6CAAgB,CAAC;KAC1C,CAAC;GACW,kBAAkB,CAAG"}
|
|
@@ -0,0 +1,570 @@
|
|
|
1
|
+
import { OnModuleInit } from '@nestjs/common';
|
|
2
|
+
import { Logger } from 'winston';
|
|
3
|
+
import { HttpService } from '@nestjs/axios';
|
|
4
|
+
import { ConfigService } from '@nestjs/config';
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
import { CreateTaskRequest, TaskStatusResponse, CancelTaskResponse } from './interfaces/task.interface';
|
|
7
|
+
export interface CollaborativeRecommendationRequest {
|
|
8
|
+
team_id: string;
|
|
9
|
+
user_id: string;
|
|
10
|
+
algorithm?: 'item-based' | 'user-based' | 'hybrid';
|
|
11
|
+
top_k?: number;
|
|
12
|
+
time_window_days?: number;
|
|
13
|
+
exclude_ids?: string[];
|
|
14
|
+
min_similarity?: number;
|
|
15
|
+
k_neighbors?: number;
|
|
16
|
+
item_weight?: number;
|
|
17
|
+
user_weight?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface CollaborativeRecommendationItem {
|
|
20
|
+
knowledge_id: string;
|
|
21
|
+
title: string | null;
|
|
22
|
+
recommendation_score: number;
|
|
23
|
+
reason: string;
|
|
24
|
+
similarity_score: number;
|
|
25
|
+
matched_tags: string[] | null;
|
|
26
|
+
}
|
|
27
|
+
export interface CollaborativeRecommendationResponse {
|
|
28
|
+
user_id: string;
|
|
29
|
+
team_id: string;
|
|
30
|
+
algorithm: string;
|
|
31
|
+
recommendations: CollaborativeRecommendationItem[];
|
|
32
|
+
total: number;
|
|
33
|
+
execution_time_ms: number;
|
|
34
|
+
metadata: {
|
|
35
|
+
time_window_days: number;
|
|
36
|
+
excluded_count: number;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export interface GenerateProductKeywordsRequest {
|
|
40
|
+
productName: string;
|
|
41
|
+
productSellingPoints: string;
|
|
42
|
+
}
|
|
43
|
+
export interface LLMChatMessage {
|
|
44
|
+
role: 'system' | 'user' | 'assistant';
|
|
45
|
+
content: string;
|
|
46
|
+
}
|
|
47
|
+
export interface LLMChatCompletionRequest {
|
|
48
|
+
model: string;
|
|
49
|
+
messages: LLMChatMessage[];
|
|
50
|
+
stream?: boolean;
|
|
51
|
+
temperature?: number;
|
|
52
|
+
response_format?: {
|
|
53
|
+
type: 'json_object' | 'text';
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export interface LLMChatCompletionResponse {
|
|
57
|
+
choices: Array<{
|
|
58
|
+
message: {
|
|
59
|
+
role: string;
|
|
60
|
+
content: string;
|
|
61
|
+
};
|
|
62
|
+
finish_reason: string;
|
|
63
|
+
}>;
|
|
64
|
+
usage?: {
|
|
65
|
+
prompt_tokens: number;
|
|
66
|
+
completion_tokens: number;
|
|
67
|
+
total_tokens: number;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* 图像生成请求 Schema
|
|
72
|
+
*/
|
|
73
|
+
export declare const ImageGenerationRequestSchema: z.ZodObject<{
|
|
74
|
+
model: z.ZodString;
|
|
75
|
+
prompt: z.ZodString;
|
|
76
|
+
n: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
77
|
+
response_format: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
78
|
+
url: "url";
|
|
79
|
+
b64_json: "b64_json";
|
|
80
|
+
}>>>;
|
|
81
|
+
aspect_ratio: z.ZodOptional<z.ZodString>;
|
|
82
|
+
image_size: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
export type ImageGenerationRequest = z.infer<typeof ImageGenerationRequestSchema>;
|
|
85
|
+
/**
|
|
86
|
+
* 图像编辑请求 Schema
|
|
87
|
+
*/
|
|
88
|
+
export declare const ImageEditRequestSchema: z.ZodObject<{
|
|
89
|
+
model: z.ZodString;
|
|
90
|
+
prompt: z.ZodString;
|
|
91
|
+
n: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
92
|
+
response_format: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
93
|
+
url: "url";
|
|
94
|
+
b64_json: "b64_json";
|
|
95
|
+
}>>>;
|
|
96
|
+
aspect_ratio: z.ZodOptional<z.ZodString>;
|
|
97
|
+
image_size: z.ZodOptional<z.ZodString>;
|
|
98
|
+
image: z.ZodArray<z.ZodString>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
export type ImageEditRequest = z.infer<typeof ImageEditRequestSchema>;
|
|
101
|
+
/**
|
|
102
|
+
* 图像生成响应 Schema
|
|
103
|
+
*/
|
|
104
|
+
export declare const ImageGenerationResponseSchema: z.ZodObject<{
|
|
105
|
+
data: z.ZodArray<z.ZodObject<{
|
|
106
|
+
url: z.ZodOptional<z.ZodString>;
|
|
107
|
+
b64_json: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
created: z.ZodNumber;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
export type ImageGenerationResponse = z.infer<typeof ImageGenerationResponseSchema>;
|
|
112
|
+
/**
|
|
113
|
+
* AgentX Internal Client
|
|
114
|
+
*
|
|
115
|
+
* 封装所有与 Python AgentX API 的交互
|
|
116
|
+
* - 统一的 HTTP 请求处理
|
|
117
|
+
* - 统一的错误处理和重试机制
|
|
118
|
+
* - 统一的超时管理
|
|
119
|
+
* - 统一的 callback URL 管理
|
|
120
|
+
* - 协同过滤推荐
|
|
121
|
+
* - 健康检查
|
|
122
|
+
*/
|
|
123
|
+
export declare class AgentXClient implements OnModuleInit {
|
|
124
|
+
private readonly logger;
|
|
125
|
+
private readonly httpService;
|
|
126
|
+
private readonly configService;
|
|
127
|
+
private baseUrl;
|
|
128
|
+
private internalApiUrl;
|
|
129
|
+
private agentxConfig;
|
|
130
|
+
constructor(logger: Logger, httpService: HttpService, configService: ConfigService);
|
|
131
|
+
onModuleInit(): void;
|
|
132
|
+
/**
|
|
133
|
+
* 获取包含认证头的请求配置
|
|
134
|
+
*/
|
|
135
|
+
private getAuthHeaders;
|
|
136
|
+
/**
|
|
137
|
+
* 创建 Python 任务
|
|
138
|
+
*
|
|
139
|
+
* @param request 创建任务请求参数
|
|
140
|
+
* @returns 任务 ID
|
|
141
|
+
*/
|
|
142
|
+
createTask(request: CreateTaskRequest): Promise<string>;
|
|
143
|
+
/**
|
|
144
|
+
* 查询任务状态
|
|
145
|
+
*
|
|
146
|
+
* @param taskId 任务 ID
|
|
147
|
+
* @returns 任务状态信息
|
|
148
|
+
*/
|
|
149
|
+
getTaskStatus(taskId: string): Promise<TaskStatusResponse>;
|
|
150
|
+
/**
|
|
151
|
+
* 取消任务
|
|
152
|
+
*
|
|
153
|
+
* @param taskId 任务 ID
|
|
154
|
+
* @returns 取消结果
|
|
155
|
+
*/
|
|
156
|
+
cancelTask(taskId: string): Promise<CancelTaskResponse>;
|
|
157
|
+
/**
|
|
158
|
+
* 统一错误处理
|
|
159
|
+
*
|
|
160
|
+
* @param operation 操作名称
|
|
161
|
+
* @param error Axios 错误对象
|
|
162
|
+
* @param context 上下文信息
|
|
163
|
+
*/
|
|
164
|
+
private handleError;
|
|
165
|
+
/**
|
|
166
|
+
* 提取错误消息
|
|
167
|
+
*
|
|
168
|
+
* @param error Axios 错误对象
|
|
169
|
+
* @returns 错误消息
|
|
170
|
+
*/
|
|
171
|
+
private extractErrorMessage;
|
|
172
|
+
/**
|
|
173
|
+
* 通用 GET 请求
|
|
174
|
+
*/
|
|
175
|
+
get<T = any>(url: string, config?: any): Promise<T>;
|
|
176
|
+
/**
|
|
177
|
+
* 通用 POST 请求
|
|
178
|
+
*/
|
|
179
|
+
post<T = any>(url: string, data?: any, config?: any): Promise<T>;
|
|
180
|
+
/**
|
|
181
|
+
* 通用 PUT 请求
|
|
182
|
+
*/
|
|
183
|
+
put<T = any>(url: string, data?: any, config?: any): Promise<T>;
|
|
184
|
+
/**
|
|
185
|
+
* 通用 DELETE 请求
|
|
186
|
+
*/
|
|
187
|
+
delete<T = any>(url: string, config?: any): Promise<T>;
|
|
188
|
+
/**
|
|
189
|
+
* 检查 AgentX 服务是否可用
|
|
190
|
+
*
|
|
191
|
+
* @returns 是否可用
|
|
192
|
+
*/
|
|
193
|
+
isHealthy(): Promise<boolean>;
|
|
194
|
+
/**
|
|
195
|
+
* 健康检查(别名方法,兼容旧代码)
|
|
196
|
+
*/
|
|
197
|
+
healthCheck(): Promise<boolean>;
|
|
198
|
+
/**
|
|
199
|
+
* 生成协同过滤推荐
|
|
200
|
+
*
|
|
201
|
+
* @param request - 推荐请求参数
|
|
202
|
+
* @returns 推荐结果
|
|
203
|
+
* @throws 如果 AgentX 服务不可用或返回错误
|
|
204
|
+
*/
|
|
205
|
+
generateCollaborativeRecommendations(request: CollaborativeRecommendationRequest): Promise<CollaborativeRecommendationResponse>;
|
|
206
|
+
/**
|
|
207
|
+
* 生成产品关键词
|
|
208
|
+
*
|
|
209
|
+
* @param request - 关键词生成请求参数
|
|
210
|
+
* @returns 关键词数组
|
|
211
|
+
* @throws 如果 AgentX 服务不可用或返回错误
|
|
212
|
+
*/
|
|
213
|
+
generateProductKeywords(request: GenerateProductKeywordsRequest): Promise<string[]>;
|
|
214
|
+
/**
|
|
215
|
+
* LLM Chat Completion
|
|
216
|
+
*
|
|
217
|
+
* @param request - LLM 请求参数
|
|
218
|
+
* @returns LLM 响应
|
|
219
|
+
* @throws 如果 AgentX 服务不可用或返回错误
|
|
220
|
+
*/
|
|
221
|
+
chatCompletion(request: LLMChatCompletionRequest): Promise<LLMChatCompletionResponse>;
|
|
222
|
+
/**
|
|
223
|
+
* 生成图像
|
|
224
|
+
*
|
|
225
|
+
* @param request - 图像生成请求参数
|
|
226
|
+
* @returns 图像生成响应
|
|
227
|
+
* @throws 如果 AgentX 服务不可用或返回错误
|
|
228
|
+
*/
|
|
229
|
+
generateImage(request: ImageGenerationRequest): Promise<ImageGenerationResponse>;
|
|
230
|
+
/**
|
|
231
|
+
* 编辑图像
|
|
232
|
+
*
|
|
233
|
+
* @param request - 图像编辑请求参数
|
|
234
|
+
* @returns 图像生成响应
|
|
235
|
+
* @throws 如果 AgentX 服务不可用或返回错误
|
|
236
|
+
*/
|
|
237
|
+
editImage(request: ImageEditRequest): Promise<ImageGenerationResponse>;
|
|
238
|
+
/**
|
|
239
|
+
* 创建对话记忆
|
|
240
|
+
*/
|
|
241
|
+
createConversationMemory(request: {
|
|
242
|
+
user_id: string;
|
|
243
|
+
team_id: string;
|
|
244
|
+
session_id: string;
|
|
245
|
+
user_message: string;
|
|
246
|
+
agent_response: string;
|
|
247
|
+
intent?: string;
|
|
248
|
+
importance_score?: number;
|
|
249
|
+
metadata?: Record<string, any>;
|
|
250
|
+
}): Promise<{
|
|
251
|
+
memory_id: string;
|
|
252
|
+
message: string;
|
|
253
|
+
summary: string;
|
|
254
|
+
entities?: string[];
|
|
255
|
+
keywords?: string[];
|
|
256
|
+
indexed: boolean;
|
|
257
|
+
created_at: string;
|
|
258
|
+
}>;
|
|
259
|
+
/**
|
|
260
|
+
* 创建任务记忆
|
|
261
|
+
*/
|
|
262
|
+
createTaskMemory(request: {
|
|
263
|
+
user_id: string;
|
|
264
|
+
team_id: string;
|
|
265
|
+
task_id: string;
|
|
266
|
+
task_name: string;
|
|
267
|
+
task_result: Record<string, any>;
|
|
268
|
+
success: boolean;
|
|
269
|
+
importance_score?: number;
|
|
270
|
+
metadata?: Record<string, any>;
|
|
271
|
+
}): Promise<{
|
|
272
|
+
memory_id: string;
|
|
273
|
+
message: string;
|
|
274
|
+
summary: string;
|
|
275
|
+
entities?: string[];
|
|
276
|
+
keywords?: string[];
|
|
277
|
+
indexed: boolean;
|
|
278
|
+
created_at: string;
|
|
279
|
+
}>;
|
|
280
|
+
/**
|
|
281
|
+
* 创建决策记忆
|
|
282
|
+
*/
|
|
283
|
+
createDecisionMemory(request: {
|
|
284
|
+
user_id: string;
|
|
285
|
+
team_id: string;
|
|
286
|
+
decision_context: string;
|
|
287
|
+
decision_result: Record<string, any>;
|
|
288
|
+
workflow_id?: string;
|
|
289
|
+
importance_score?: number;
|
|
290
|
+
metadata?: Record<string, any>;
|
|
291
|
+
}): Promise<{
|
|
292
|
+
memory_id: string;
|
|
293
|
+
message: string;
|
|
294
|
+
summary: string;
|
|
295
|
+
entities?: string[];
|
|
296
|
+
keywords?: string[];
|
|
297
|
+
indexed: boolean;
|
|
298
|
+
created_at: string;
|
|
299
|
+
}>;
|
|
300
|
+
/**
|
|
301
|
+
* 搜索记忆 (GET)
|
|
302
|
+
*/
|
|
303
|
+
searchMemories(params: {
|
|
304
|
+
q: string;
|
|
305
|
+
user_id: string;
|
|
306
|
+
team_id: string;
|
|
307
|
+
memory_types?: string;
|
|
308
|
+
top_k?: number;
|
|
309
|
+
min_score?: number;
|
|
310
|
+
time_decay?: boolean;
|
|
311
|
+
}): Promise<{
|
|
312
|
+
query: string;
|
|
313
|
+
results_count: number;
|
|
314
|
+
memories: Array<{
|
|
315
|
+
memory_id: string;
|
|
316
|
+
memory_type: string;
|
|
317
|
+
content: string;
|
|
318
|
+
summary: string;
|
|
319
|
+
entities?: string[];
|
|
320
|
+
keywords?: string[];
|
|
321
|
+
similarity_score: number;
|
|
322
|
+
importance_score: number;
|
|
323
|
+
final_score: number;
|
|
324
|
+
access_count: number;
|
|
325
|
+
session_id?: string;
|
|
326
|
+
created_at: string;
|
|
327
|
+
last_accessed_at?: string;
|
|
328
|
+
}>;
|
|
329
|
+
}>;
|
|
330
|
+
/**
|
|
331
|
+
* 搜索记忆 (POST - 复杂查询)
|
|
332
|
+
*/
|
|
333
|
+
searchMemoriesPost(data: {
|
|
334
|
+
user_id: string;
|
|
335
|
+
team_id: string;
|
|
336
|
+
query: string;
|
|
337
|
+
memory_types?: string[];
|
|
338
|
+
session_id?: string;
|
|
339
|
+
top_k?: number;
|
|
340
|
+
min_score?: number;
|
|
341
|
+
time_decay?: boolean;
|
|
342
|
+
filters?: {
|
|
343
|
+
importanceMin?: number;
|
|
344
|
+
importanceMax?: number;
|
|
345
|
+
startDate?: string;
|
|
346
|
+
endDate?: string;
|
|
347
|
+
hasEntities?: string[];
|
|
348
|
+
hasKeywords?: string[];
|
|
349
|
+
};
|
|
350
|
+
}): Promise<{
|
|
351
|
+
query: string;
|
|
352
|
+
results_count: number;
|
|
353
|
+
memories: Array<{
|
|
354
|
+
memory_id: string;
|
|
355
|
+
memory_type: string;
|
|
356
|
+
content: string;
|
|
357
|
+
summary: string;
|
|
358
|
+
entities?: string[];
|
|
359
|
+
keywords?: string[];
|
|
360
|
+
similarity_score: number;
|
|
361
|
+
importance_score: number;
|
|
362
|
+
final_score: number;
|
|
363
|
+
access_count: number;
|
|
364
|
+
session_id?: string;
|
|
365
|
+
created_at: string;
|
|
366
|
+
last_accessed_at?: string;
|
|
367
|
+
}>;
|
|
368
|
+
}>;
|
|
369
|
+
/**
|
|
370
|
+
* 获取记忆详情
|
|
371
|
+
*/
|
|
372
|
+
getMemoryById(memoryId: string): Promise<{
|
|
373
|
+
memory_id: string;
|
|
374
|
+
team_id: string;
|
|
375
|
+
user_id: string;
|
|
376
|
+
memory_type: string;
|
|
377
|
+
content: string;
|
|
378
|
+
summary: string;
|
|
379
|
+
entities?: string[];
|
|
380
|
+
keywords?: string[];
|
|
381
|
+
session_id?: string;
|
|
382
|
+
importance_score: number;
|
|
383
|
+
access_count: number;
|
|
384
|
+
decay_rate: number;
|
|
385
|
+
source: string;
|
|
386
|
+
metadata?: Record<string, any>;
|
|
387
|
+
indexed: boolean;
|
|
388
|
+
created_at: string;
|
|
389
|
+
last_accessed_at?: string;
|
|
390
|
+
}>;
|
|
391
|
+
/**
|
|
392
|
+
* 删除记忆
|
|
393
|
+
*/
|
|
394
|
+
deleteMemory(memoryId: string): Promise<{
|
|
395
|
+
memory_id: string;
|
|
396
|
+
deleted: boolean;
|
|
397
|
+
message: string;
|
|
398
|
+
}>;
|
|
399
|
+
/**
|
|
400
|
+
* 获取记忆列表
|
|
401
|
+
*/
|
|
402
|
+
listMemories(params: {
|
|
403
|
+
user_id: string;
|
|
404
|
+
team_id: string;
|
|
405
|
+
memory_types?: string;
|
|
406
|
+
session_id?: string;
|
|
407
|
+
page?: number;
|
|
408
|
+
page_size?: number;
|
|
409
|
+
sort_by?: string;
|
|
410
|
+
sort_order?: string;
|
|
411
|
+
start_date?: string;
|
|
412
|
+
end_date?: string;
|
|
413
|
+
}): Promise<{
|
|
414
|
+
total: number;
|
|
415
|
+
page: number;
|
|
416
|
+
page_size: number;
|
|
417
|
+
total_pages: number;
|
|
418
|
+
memories: Array<{
|
|
419
|
+
memory_id: string;
|
|
420
|
+
memory_type: string;
|
|
421
|
+
summary: string;
|
|
422
|
+
importance_score: number;
|
|
423
|
+
created_at: string;
|
|
424
|
+
}>;
|
|
425
|
+
}>;
|
|
426
|
+
/**
|
|
427
|
+
* 获取记忆统计
|
|
428
|
+
*/
|
|
429
|
+
getMemoryStats(params: {
|
|
430
|
+
user_id: string;
|
|
431
|
+
team_id: string;
|
|
432
|
+
start_date?: string;
|
|
433
|
+
end_date?: string;
|
|
434
|
+
}): Promise<{
|
|
435
|
+
team_id: string;
|
|
436
|
+
user_id?: string;
|
|
437
|
+
total_memories: number;
|
|
438
|
+
by_type: Record<string, number>;
|
|
439
|
+
avg_importance_score: number;
|
|
440
|
+
totalAccessCount: number;
|
|
441
|
+
dateRange: {
|
|
442
|
+
start: string;
|
|
443
|
+
end: string;
|
|
444
|
+
};
|
|
445
|
+
recentActivity?: Array<{
|
|
446
|
+
date: string;
|
|
447
|
+
newMemories: number;
|
|
448
|
+
totalAccesses: number;
|
|
449
|
+
}>;
|
|
450
|
+
}>;
|
|
451
|
+
/**
|
|
452
|
+
* 获取会话历史
|
|
453
|
+
*/
|
|
454
|
+
getSessionHistory(sessionId: string): Promise<{
|
|
455
|
+
session_id: string;
|
|
456
|
+
user_id: string;
|
|
457
|
+
total_messages: number;
|
|
458
|
+
messages: Array<{
|
|
459
|
+
memory_id: string;
|
|
460
|
+
user_message: string;
|
|
461
|
+
agent_response: string;
|
|
462
|
+
intent?: string;
|
|
463
|
+
created_at: string;
|
|
464
|
+
}>;
|
|
465
|
+
summary?: string;
|
|
466
|
+
created_at: string;
|
|
467
|
+
last_activity_at: string;
|
|
468
|
+
}>;
|
|
469
|
+
/**
|
|
470
|
+
* 推断用户偏好
|
|
471
|
+
*/
|
|
472
|
+
inferPreference(request: {
|
|
473
|
+
user_id: string;
|
|
474
|
+
team_id: string;
|
|
475
|
+
category?: string;
|
|
476
|
+
preference_key: string;
|
|
477
|
+
preference_value: string;
|
|
478
|
+
confidence_score?: number;
|
|
479
|
+
context?: Record<string, any>;
|
|
480
|
+
}): Promise<{
|
|
481
|
+
preference_id: string;
|
|
482
|
+
created: boolean;
|
|
483
|
+
confidence_score: number;
|
|
484
|
+
use_count: number;
|
|
485
|
+
}>;
|
|
486
|
+
/**
|
|
487
|
+
* 获取用户偏好
|
|
488
|
+
*/
|
|
489
|
+
getUserPreferences(params: {
|
|
490
|
+
user_id: string;
|
|
491
|
+
team_id: string;
|
|
492
|
+
category?: string;
|
|
493
|
+
min_confidence?: number;
|
|
494
|
+
}): Promise<{
|
|
495
|
+
user_id: string;
|
|
496
|
+
category?: string;
|
|
497
|
+
preferences: Record<string, string>;
|
|
498
|
+
preferences_details: Array<{
|
|
499
|
+
preference_id: string;
|
|
500
|
+
preference_key: string;
|
|
501
|
+
preference_value: string;
|
|
502
|
+
confidence_score: number;
|
|
503
|
+
explicit: boolean;
|
|
504
|
+
use_count: number;
|
|
505
|
+
last_used_at?: string;
|
|
506
|
+
created_at: string;
|
|
507
|
+
}>;
|
|
508
|
+
}>;
|
|
509
|
+
/**
|
|
510
|
+
* 更新用户偏好
|
|
511
|
+
*/
|
|
512
|
+
updatePreference(preferenceId: string, data: {
|
|
513
|
+
user_id: string;
|
|
514
|
+
team_id: string;
|
|
515
|
+
preference_value?: string;
|
|
516
|
+
confidence_score?: number;
|
|
517
|
+
explicit?: boolean;
|
|
518
|
+
}): Promise<{
|
|
519
|
+
preference_id: string;
|
|
520
|
+
updated: boolean;
|
|
521
|
+
preference_value: string;
|
|
522
|
+
confidence_score: number;
|
|
523
|
+
explicit: boolean;
|
|
524
|
+
}>;
|
|
525
|
+
/**
|
|
526
|
+
* 删除用户偏好
|
|
527
|
+
*/
|
|
528
|
+
deletePreference(preferenceId: string, params: {
|
|
529
|
+
user_id: string;
|
|
530
|
+
team_id: string;
|
|
531
|
+
}): Promise<{
|
|
532
|
+
preference_id: string;
|
|
533
|
+
deleted: boolean;
|
|
534
|
+
}>;
|
|
535
|
+
/**
|
|
536
|
+
* 获取偏好统计
|
|
537
|
+
*/
|
|
538
|
+
getPreferenceStats(params: {
|
|
539
|
+
user_id: string;
|
|
540
|
+
team_id: string;
|
|
541
|
+
}): Promise<{
|
|
542
|
+
user_id: string;
|
|
543
|
+
total_preferences: number;
|
|
544
|
+
by_category: Record<string, number>;
|
|
545
|
+
explicit_preferences: number;
|
|
546
|
+
inferred_preferences: number;
|
|
547
|
+
avg_confidence_score: number;
|
|
548
|
+
most_used?: Array<{
|
|
549
|
+
category: string;
|
|
550
|
+
preference_key: string;
|
|
551
|
+
preference_value: string;
|
|
552
|
+
use_count: number;
|
|
553
|
+
}>;
|
|
554
|
+
}>;
|
|
555
|
+
/**
|
|
556
|
+
* 使用 SSE 监控任务进度
|
|
557
|
+
* @param taskId 任务ID
|
|
558
|
+
* @returns Promise that resolves when task completes
|
|
559
|
+
*/
|
|
560
|
+
monitorTaskWithSSE(taskId: string): Promise<any>;
|
|
561
|
+
/**
|
|
562
|
+
* 轮询任务状态(SSE 失败时的降级方案)
|
|
563
|
+
*/
|
|
564
|
+
private pollTaskStatus;
|
|
565
|
+
/**
|
|
566
|
+
* 睡眠函数
|
|
567
|
+
*/
|
|
568
|
+
private sleep;
|
|
569
|
+
}
|
|
570
|
+
//# sourceMappingURL=agentx-client.service.d.ts.map
|