@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.
Files changed (497) hide show
  1. package/dist/index.d.ts +20 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +36 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/internal/agentx/agentx-client.module.d.ts +10 -0
  6. package/dist/internal/agentx/agentx-client.module.d.ts.map +1 -0
  7. package/dist/internal/agentx/agentx-client.module.js +38 -0
  8. package/dist/internal/agentx/agentx-client.module.js.map +1 -0
  9. package/dist/internal/agentx/agentx-client.service.d.ts +570 -0
  10. package/dist/internal/agentx/agentx-client.service.d.ts.map +1 -0
  11. package/dist/internal/agentx/agentx-client.service.js +912 -0
  12. package/dist/internal/agentx/agentx-client.service.js.map +1 -0
  13. package/dist/internal/agentx/agentx-file-client.service.d.ts +48 -0
  14. package/dist/internal/agentx/agentx-file-client.service.d.ts.map +1 -0
  15. package/dist/internal/agentx/agentx-file-client.service.js +276 -0
  16. package/dist/internal/agentx/agentx-file-client.service.js.map +1 -0
  17. package/dist/internal/agentx/index.d.ts +9 -0
  18. package/dist/internal/agentx/index.d.ts.map +1 -0
  19. package/dist/internal/agentx/index.js +27 -0
  20. package/dist/internal/agentx/index.js.map +1 -0
  21. package/dist/internal/agentx/interfaces/file.interface.d.ts +21 -0
  22. package/dist/internal/agentx/interfaces/file.interface.d.ts.map +1 -0
  23. package/dist/internal/agentx/interfaces/file.interface.js +22 -0
  24. package/dist/internal/agentx/interfaces/file.interface.js.map +1 -0
  25. package/dist/internal/agentx/interfaces/task.interface.d.ts +74 -0
  26. package/dist/internal/agentx/interfaces/task.interface.d.ts.map +1 -0
  27. package/dist/internal/agentx/interfaces/task.interface.js +16 -0
  28. package/dist/internal/agentx/interfaces/task.interface.js.map +1 -0
  29. package/dist/internal/ai/index.d.ts +3 -0
  30. package/dist/internal/ai/index.d.ts.map +1 -0
  31. package/dist/internal/ai/index.js +19 -0
  32. package/dist/internal/ai/index.js.map +1 -0
  33. package/dist/internal/ai/risk-detection.client.d.ts +74 -0
  34. package/dist/internal/ai/risk-detection.client.d.ts.map +1 -0
  35. package/dist/internal/ai/risk-detection.client.js +224 -0
  36. package/dist/internal/ai/risk-detection.client.js.map +1 -0
  37. package/dist/internal/ai/risk-detection.module.d.ts +3 -0
  38. package/dist/internal/ai/risk-detection.module.d.ts.map +1 -0
  39. package/dist/internal/ai/risk-detection.module.js +35 -0
  40. package/dist/internal/ai/risk-detection.module.js.map +1 -0
  41. package/dist/internal/ai-provider/ai-provider.client.d.ts +81 -0
  42. package/dist/internal/ai-provider/ai-provider.client.d.ts.map +1 -0
  43. package/dist/internal/ai-provider/ai-provider.client.js +435 -0
  44. package/dist/internal/ai-provider/ai-provider.client.js.map +1 -0
  45. package/dist/internal/ai-provider/ai-provider.module.d.ts +3 -0
  46. package/dist/internal/ai-provider/ai-provider.module.d.ts.map +1 -0
  47. package/dist/internal/ai-provider/ai-provider.module.js +28 -0
  48. package/dist/internal/ai-provider/ai-provider.module.js.map +1 -0
  49. package/dist/internal/ai-provider/index.d.ts +4 -0
  50. package/dist/internal/ai-provider/index.d.ts.map +1 -0
  51. package/dist/internal/ai-provider/index.js +8 -0
  52. package/dist/internal/ai-provider/index.js.map +1 -0
  53. package/dist/internal/channel-verify/channel-verify.client.d.ts +31 -0
  54. package/dist/internal/channel-verify/channel-verify.client.d.ts.map +1 -0
  55. package/dist/internal/channel-verify/channel-verify.client.js +150 -0
  56. package/dist/internal/channel-verify/channel-verify.client.js.map +1 -0
  57. package/dist/internal/channel-verify/index.d.ts +5 -0
  58. package/dist/internal/channel-verify/index.d.ts.map +1 -0
  59. package/dist/internal/channel-verify/index.js +26 -0
  60. package/dist/internal/channel-verify/index.js.map +1 -0
  61. package/dist/internal/complexity-classifier/complexity-classifier.module.d.ts +3 -0
  62. package/dist/internal/complexity-classifier/complexity-classifier.module.d.ts.map +1 -0
  63. package/dist/internal/complexity-classifier/complexity-classifier.module.js +30 -0
  64. package/dist/internal/complexity-classifier/complexity-classifier.module.js.map +1 -0
  65. package/dist/internal/complexity-classifier/complexity-classifier.service.d.ts +57 -0
  66. package/dist/internal/complexity-classifier/complexity-classifier.service.d.ts.map +1 -0
  67. package/dist/internal/complexity-classifier/complexity-classifier.service.js +285 -0
  68. package/dist/internal/complexity-classifier/complexity-classifier.service.js.map +1 -0
  69. package/dist/internal/complexity-classifier/complexity-classifier.types.d.ts +78 -0
  70. package/dist/internal/complexity-classifier/complexity-classifier.types.d.ts.map +1 -0
  71. package/dist/internal/complexity-classifier/complexity-classifier.types.js +20 -0
  72. package/dist/internal/complexity-classifier/complexity-classifier.types.js.map +1 -0
  73. package/dist/internal/complexity-classifier/index.d.ts +7 -0
  74. package/dist/internal/complexity-classifier/index.d.ts.map +1 -0
  75. package/dist/internal/complexity-classifier/index.js +25 -0
  76. package/dist/internal/complexity-classifier/index.js.map +1 -0
  77. package/dist/internal/crypt/crypt-client.service.spec.d.ts +2 -0
  78. package/dist/internal/crypt/crypt-client.service.spec.d.ts.map +1 -0
  79. package/dist/internal/crypt/crypt-client.service.spec.js +17 -0
  80. package/dist/internal/crypt/crypt-client.service.spec.js.map +1 -0
  81. package/dist/internal/crypt/crypt.client.d.ts +10 -0
  82. package/dist/internal/crypt/crypt.client.d.ts.map +1 -0
  83. package/dist/internal/crypt/crypt.client.js +78 -0
  84. package/dist/internal/crypt/crypt.client.js.map +1 -0
  85. package/dist/internal/crypt/crypt.module.d.ts +3 -0
  86. package/dist/internal/crypt/crypt.module.d.ts.map +1 -0
  87. package/dist/internal/crypt/crypt.module.js +23 -0
  88. package/dist/internal/crypt/crypt.module.js.map +1 -0
  89. package/dist/internal/crypt/index.d.ts +3 -0
  90. package/dist/internal/crypt/index.d.ts.map +1 -0
  91. package/dist/internal/crypt/index.js +19 -0
  92. package/dist/internal/crypt/index.js.map +1 -0
  93. package/dist/internal/email/dto/email.dto.d.ts +62 -0
  94. package/dist/internal/email/dto/email.dto.d.ts.map +1 -0
  95. package/dist/internal/email/dto/email.dto.js +50 -0
  96. package/dist/internal/email/dto/email.dto.js.map +1 -0
  97. package/dist/internal/email/index.d.ts +10 -0
  98. package/dist/internal/email/index.d.ts.map +1 -0
  99. package/dist/internal/email/index.js +29 -0
  100. package/dist/internal/email/index.js.map +1 -0
  101. package/dist/internal/email/sendcloud.client.d.ts +103 -0
  102. package/dist/internal/email/sendcloud.client.d.ts.map +1 -0
  103. package/dist/internal/email/sendcloud.client.js +336 -0
  104. package/dist/internal/email/sendcloud.client.js.map +1 -0
  105. package/dist/internal/exchange-rate/exchange-rate.client.d.ts +49 -0
  106. package/dist/internal/exchange-rate/exchange-rate.client.d.ts.map +1 -0
  107. package/dist/internal/exchange-rate/exchange-rate.client.js +166 -0
  108. package/dist/internal/exchange-rate/exchange-rate.client.js.map +1 -0
  109. package/dist/internal/exchange-rate/exchange-rate.module.d.ts +3 -0
  110. package/dist/internal/exchange-rate/exchange-rate.module.d.ts.map +1 -0
  111. package/dist/internal/exchange-rate/exchange-rate.module.js +23 -0
  112. package/dist/internal/exchange-rate/exchange-rate.module.js.map +1 -0
  113. package/dist/internal/exchange-rate/index.d.ts +3 -0
  114. package/dist/internal/exchange-rate/index.d.ts.map +1 -0
  115. package/dist/internal/exchange-rate/index.js +19 -0
  116. package/dist/internal/exchange-rate/index.js.map +1 -0
  117. package/dist/internal/file-cdn/dto/file-cdn.dto.d.ts +78 -0
  118. package/dist/internal/file-cdn/dto/file-cdn.dto.d.ts.map +1 -0
  119. package/dist/internal/file-cdn/dto/file-cdn.dto.js +70 -0
  120. package/dist/internal/file-cdn/dto/file-cdn.dto.js.map +1 -0
  121. package/dist/internal/file-cdn/file-cdn-client.service.spec.d.ts +2 -0
  122. package/dist/internal/file-cdn/file-cdn-client.service.spec.d.ts.map +1 -0
  123. package/dist/internal/file-cdn/file-cdn-client.service.spec.js +17 -0
  124. package/dist/internal/file-cdn/file-cdn-client.service.spec.js.map +1 -0
  125. package/dist/internal/file-cdn/file-cdn.client.d.ts +283 -0
  126. package/dist/internal/file-cdn/file-cdn.client.d.ts.map +1 -0
  127. package/dist/internal/file-cdn/file-cdn.client.js +526 -0
  128. package/dist/internal/file-cdn/file-cdn.client.js.map +1 -0
  129. package/dist/internal/file-cdn/file-cdn.module.d.ts +3 -0
  130. package/dist/internal/file-cdn/file-cdn.module.d.ts.map +1 -0
  131. package/dist/internal/file-cdn/file-cdn.module.js +32 -0
  132. package/dist/internal/file-cdn/file-cdn.module.js.map +1 -0
  133. package/dist/internal/file-cdn/index.d.ts +35 -0
  134. package/dist/internal/file-cdn/index.d.ts.map +1 -0
  135. package/dist/internal/file-cdn/index.js +54 -0
  136. package/dist/internal/file-cdn/index.js.map +1 -0
  137. package/dist/internal/file-storage/config/file.config.d.ts +12 -0
  138. package/dist/internal/file-storage/config/file.config.d.ts.map +1 -0
  139. package/dist/internal/file-storage/config/file.config.js +15 -0
  140. package/dist/internal/file-storage/config/file.config.js.map +1 -0
  141. package/dist/internal/file-storage/dto/file.dto.d.ts +163 -0
  142. package/dist/internal/file-storage/dto/file.dto.d.ts.map +1 -0
  143. package/dist/internal/file-storage/dto/file.dto.js +98 -0
  144. package/dist/internal/file-storage/dto/file.dto.js.map +1 -0
  145. package/dist/internal/file-storage/file-gcs.client.d.ts +33 -0
  146. package/dist/internal/file-storage/file-gcs.client.d.ts.map +1 -0
  147. package/dist/internal/file-storage/file-gcs.client.js +118 -0
  148. package/dist/internal/file-storage/file-gcs.client.js.map +1 -0
  149. package/dist/internal/file-storage/file-qiniu.client.d.ts +199 -0
  150. package/dist/internal/file-storage/file-qiniu.client.d.ts.map +1 -0
  151. package/dist/internal/file-storage/file-qiniu.client.js +526 -0
  152. package/dist/internal/file-storage/file-qiniu.client.js.map +1 -0
  153. package/dist/internal/file-storage/file-s3.client.d.ts +158 -0
  154. package/dist/internal/file-storage/file-s3.client.d.ts.map +1 -0
  155. package/dist/internal/file-storage/file-s3.client.js +865 -0
  156. package/dist/internal/file-storage/file-s3.client.js.map +1 -0
  157. package/dist/internal/file-storage/file-storage.interface.d.ts +38 -0
  158. package/dist/internal/file-storage/file-storage.interface.d.ts.map +1 -0
  159. package/dist/internal/file-storage/file-storage.interface.js +3 -0
  160. package/dist/internal/file-storage/file-storage.interface.js.map +1 -0
  161. package/dist/internal/file-storage/file-tos.client.d.ts +109 -0
  162. package/dist/internal/file-storage/file-tos.client.d.ts.map +1 -0
  163. package/dist/internal/file-storage/file-tos.client.js +630 -0
  164. package/dist/internal/file-storage/file-tos.client.js.map +1 -0
  165. package/dist/internal/file-storage/file-us3.client.d.ts +30 -0
  166. package/dist/internal/file-storage/file-us3.client.d.ts.map +1 -0
  167. package/dist/internal/file-storage/file-us3.client.js +129 -0
  168. package/dist/internal/file-storage/file-us3.client.js.map +1 -0
  169. package/dist/internal/file-storage/index.d.ts +15 -0
  170. package/dist/internal/file-storage/index.d.ts.map +1 -0
  171. package/dist/internal/file-storage/index.js +37 -0
  172. package/dist/internal/file-storage/index.js.map +1 -0
  173. package/dist/internal/health-check/health-check.client.d.ts +37 -0
  174. package/dist/internal/health-check/health-check.client.d.ts.map +1 -0
  175. package/dist/internal/health-check/health-check.client.js +142 -0
  176. package/dist/internal/health-check/health-check.client.js.map +1 -0
  177. package/dist/internal/health-check/health-check.module.d.ts +3 -0
  178. package/dist/internal/health-check/health-check.module.d.ts.map +1 -0
  179. package/dist/internal/health-check/health-check.module.js +33 -0
  180. package/dist/internal/health-check/health-check.module.js.map +1 -0
  181. package/dist/internal/health-check/index.d.ts +6 -0
  182. package/dist/internal/health-check/index.d.ts.map +1 -0
  183. package/dist/internal/health-check/index.js +11 -0
  184. package/dist/internal/health-check/index.js.map +1 -0
  185. package/dist/internal/ip-info/dto/ip-info.dto.d.ts +16 -0
  186. package/dist/internal/ip-info/dto/ip-info.dto.d.ts.map +1 -0
  187. package/dist/internal/ip-info/dto/ip-info.dto.js +3 -0
  188. package/dist/internal/ip-info/dto/ip-info.dto.js.map +1 -0
  189. package/dist/internal/ip-info/index.d.ts +4 -0
  190. package/dist/internal/ip-info/index.d.ts.map +1 -0
  191. package/dist/internal/ip-info/index.js +20 -0
  192. package/dist/internal/ip-info/index.js.map +1 -0
  193. package/dist/internal/ip-info/ip-info.client.d.ts +16 -0
  194. package/dist/internal/ip-info/ip-info.client.d.ts.map +1 -0
  195. package/dist/internal/ip-info/ip-info.client.js +77 -0
  196. package/dist/internal/ip-info/ip-info.client.js.map +1 -0
  197. package/dist/internal/ip-info/ip-info.module.d.ts +3 -0
  198. package/dist/internal/ip-info/ip-info.module.d.ts.map +1 -0
  199. package/dist/internal/ip-info/ip-info.module.js +28 -0
  200. package/dist/internal/ip-info/ip-info.module.js.map +1 -0
  201. package/dist/internal/mlflow/mlflow.client.d.ts +44 -0
  202. package/dist/internal/mlflow/mlflow.client.d.ts.map +1 -0
  203. package/dist/internal/mlflow/mlflow.client.js +184 -0
  204. package/dist/internal/mlflow/mlflow.client.js.map +1 -0
  205. package/dist/internal/mlflow/mlflow.module.d.ts +3 -0
  206. package/dist/internal/mlflow/mlflow.module.d.ts.map +1 -0
  207. package/dist/internal/mlflow/mlflow.module.js +23 -0
  208. package/dist/internal/mlflow/mlflow.module.js.map +1 -0
  209. package/dist/internal/model-research-proxy/anthropic-proxy-research.client.d.ts +52 -0
  210. package/dist/internal/model-research-proxy/anthropic-proxy-research.client.d.ts.map +1 -0
  211. package/dist/internal/model-research-proxy/anthropic-proxy-research.client.js +174 -0
  212. package/dist/internal/model-research-proxy/anthropic-proxy-research.client.js.map +1 -0
  213. package/dist/internal/model-research-proxy/anthropic-proxy-research.client.spec.d.ts +2 -0
  214. package/dist/internal/model-research-proxy/anthropic-proxy-research.client.spec.d.ts.map +1 -0
  215. package/dist/internal/model-research-proxy/anthropic-proxy-research.client.spec.js +145 -0
  216. package/dist/internal/model-research-proxy/anthropic-proxy-research.client.spec.js.map +1 -0
  217. package/dist/internal/model-research-proxy/anthropic-proxy-research.module.d.ts +3 -0
  218. package/dist/internal/model-research-proxy/anthropic-proxy-research.module.d.ts.map +1 -0
  219. package/dist/internal/model-research-proxy/anthropic-proxy-research.module.js +30 -0
  220. package/dist/internal/model-research-proxy/anthropic-proxy-research.module.js.map +1 -0
  221. package/dist/internal/model-research-proxy/index.d.ts +6 -0
  222. package/dist/internal/model-research-proxy/index.d.ts.map +1 -0
  223. package/dist/internal/model-research-proxy/index.js +24 -0
  224. package/dist/internal/model-research-proxy/index.js.map +1 -0
  225. package/dist/internal/model-verify/index.d.ts +4 -0
  226. package/dist/internal/model-verify/index.d.ts.map +1 -0
  227. package/dist/internal/model-verify/index.js +26 -0
  228. package/dist/internal/model-verify/index.js.map +1 -0
  229. package/dist/internal/model-verify/model-verify.client.d.ts +77 -0
  230. package/dist/internal/model-verify/model-verify.client.d.ts.map +1 -0
  231. package/dist/internal/model-verify/model-verify.client.js +324 -0
  232. package/dist/internal/model-verify/model-verify.client.js.map +1 -0
  233. package/dist/internal/ocr/dto/ocr.dto.d.ts +76 -0
  234. package/dist/internal/ocr/dto/ocr.dto.d.ts.map +1 -0
  235. package/dist/internal/ocr/dto/ocr.dto.js +48 -0
  236. package/dist/internal/ocr/dto/ocr.dto.js.map +1 -0
  237. package/dist/internal/ocr/index.d.ts +4 -0
  238. package/dist/internal/ocr/index.d.ts.map +1 -0
  239. package/dist/internal/ocr/index.js +20 -0
  240. package/dist/internal/ocr/index.js.map +1 -0
  241. package/dist/internal/ocr/ocr.client.d.ts +39 -0
  242. package/dist/internal/ocr/ocr.client.d.ts.map +1 -0
  243. package/dist/internal/ocr/ocr.client.js +112 -0
  244. package/dist/internal/ocr/ocr.client.js.map +1 -0
  245. package/dist/internal/ocr/ocr.module.d.ts +3 -0
  246. package/dist/internal/ocr/ocr.module.d.ts.map +1 -0
  247. package/dist/internal/ocr/ocr.module.js +28 -0
  248. package/dist/internal/ocr/ocr.module.js.map +1 -0
  249. package/dist/internal/openai/index.d.ts +3 -0
  250. package/dist/internal/openai/index.d.ts.map +1 -0
  251. package/dist/internal/openai/index.js +19 -0
  252. package/dist/internal/openai/index.js.map +1 -0
  253. package/dist/internal/openai/openai.client.d.ts +36 -0
  254. package/dist/internal/openai/openai.client.d.ts.map +1 -0
  255. package/dist/internal/openai/openai.client.js +112 -0
  256. package/dist/internal/openai/openai.client.js.map +1 -0
  257. package/dist/internal/openai/openai.module.d.ts +3 -0
  258. package/dist/internal/openai/openai.module.d.ts.map +1 -0
  259. package/dist/internal/openai/openai.module.js +30 -0
  260. package/dist/internal/openai/openai.module.js.map +1 -0
  261. package/dist/internal/openclaw/docker-exec.service.d.ts +132 -0
  262. package/dist/internal/openclaw/docker-exec.service.d.ts.map +1 -0
  263. package/dist/internal/openclaw/docker-exec.service.js +544 -0
  264. package/dist/internal/openclaw/docker-exec.service.js.map +1 -0
  265. package/dist/internal/openclaw/index.d.ts +14 -0
  266. package/dist/internal/openclaw/index.d.ts.map +1 -0
  267. package/dist/internal/openclaw/index.js +32 -0
  268. package/dist/internal/openclaw/index.js.map +1 -0
  269. package/dist/internal/openclaw/openclaw-agent-coordination.client.d.ts +73 -0
  270. package/dist/internal/openclaw/openclaw-agent-coordination.client.d.ts.map +1 -0
  271. package/dist/internal/openclaw/openclaw-agent-coordination.client.js +249 -0
  272. package/dist/internal/openclaw/openclaw-agent-coordination.client.js.map +1 -0
  273. package/dist/internal/openclaw/openclaw-context-status.client.d.ts +66 -0
  274. package/dist/internal/openclaw/openclaw-context-status.client.d.ts.map +1 -0
  275. package/dist/internal/openclaw/openclaw-context-status.client.js +164 -0
  276. package/dist/internal/openclaw/openclaw-context-status.client.js.map +1 -0
  277. package/dist/internal/openclaw/openclaw-cron.client.d.ts +61 -0
  278. package/dist/internal/openclaw/openclaw-cron.client.d.ts.map +1 -0
  279. package/dist/internal/openclaw/openclaw-cron.client.js +416 -0
  280. package/dist/internal/openclaw/openclaw-cron.client.js.map +1 -0
  281. package/dist/internal/openclaw/openclaw-gateway.client.d.ts +41 -0
  282. package/dist/internal/openclaw/openclaw-gateway.client.d.ts.map +1 -0
  283. package/dist/internal/openclaw/openclaw-gateway.client.js +175 -0
  284. package/dist/internal/openclaw/openclaw-gateway.client.js.map +1 -0
  285. package/dist/internal/openclaw/openclaw-skill-sync.client.d.ts +222 -0
  286. package/dist/internal/openclaw/openclaw-skill-sync.client.d.ts.map +1 -0
  287. package/dist/internal/openclaw/openclaw-skill-sync.client.js +720 -0
  288. package/dist/internal/openclaw/openclaw-skill-sync.client.js.map +1 -0
  289. package/dist/internal/openclaw/openclaw.client.d.ts +602 -0
  290. package/dist/internal/openclaw/openclaw.client.d.ts.map +1 -0
  291. package/dist/internal/openclaw/openclaw.client.js +3062 -0
  292. package/dist/internal/openclaw/openclaw.client.js.map +1 -0
  293. package/dist/internal/openclaw/openclaw.module.d.ts +3 -0
  294. package/dist/internal/openclaw/openclaw.module.d.ts.map +1 -0
  295. package/dist/internal/openclaw/openclaw.module.js +62 -0
  296. package/dist/internal/openclaw/openclaw.module.js.map +1 -0
  297. package/dist/internal/openclaw/skill-translation.service.d.ts +39 -0
  298. package/dist/internal/openclaw/skill-translation.service.d.ts.map +1 -0
  299. package/dist/internal/openclaw/skill-translation.service.js +217 -0
  300. package/dist/internal/openclaw/skill-translation.service.js.map +1 -0
  301. package/dist/internal/openclaw/types/cron.types.d.ts +112 -0
  302. package/dist/internal/openclaw/types/cron.types.d.ts.map +1 -0
  303. package/dist/internal/openclaw/types/cron.types.js +9 -0
  304. package/dist/internal/openclaw/types/cron.types.js.map +1 -0
  305. package/dist/internal/openspeech/index.d.ts +35 -0
  306. package/dist/internal/openspeech/index.d.ts.map +1 -0
  307. package/dist/internal/openspeech/index.js +56 -0
  308. package/dist/internal/openspeech/index.js.map +1 -0
  309. package/dist/internal/openspeech/openspeech.client.d.ts +304 -0
  310. package/dist/internal/openspeech/openspeech.client.d.ts.map +1 -0
  311. package/dist/internal/openspeech/openspeech.client.js +405 -0
  312. package/dist/internal/openspeech/openspeech.client.js.map +1 -0
  313. package/dist/internal/openspeech/openspeech.factory.d.ts +247 -0
  314. package/dist/internal/openspeech/openspeech.factory.d.ts.map +1 -0
  315. package/dist/internal/openspeech/openspeech.factory.js +406 -0
  316. package/dist/internal/openspeech/openspeech.factory.js.map +1 -0
  317. package/dist/internal/openspeech/openspeech.module.d.ts +45 -0
  318. package/dist/internal/openspeech/openspeech.module.d.ts.map +1 -0
  319. package/dist/internal/openspeech/openspeech.module.js +68 -0
  320. package/dist/internal/openspeech/openspeech.module.js.map +1 -0
  321. package/dist/internal/openspeech/providers/aliyun.provider.d.ts +125 -0
  322. package/dist/internal/openspeech/providers/aliyun.provider.d.ts.map +1 -0
  323. package/dist/internal/openspeech/providers/aliyun.provider.js +274 -0
  324. package/dist/internal/openspeech/providers/aliyun.provider.js.map +1 -0
  325. package/dist/internal/openspeech/providers/base.provider.d.ts +98 -0
  326. package/dist/internal/openspeech/providers/base.provider.d.ts.map +1 -0
  327. package/dist/internal/openspeech/providers/base.provider.js +87 -0
  328. package/dist/internal/openspeech/providers/base.provider.js.map +1 -0
  329. package/dist/internal/openspeech/providers/index.d.ts +10 -0
  330. package/dist/internal/openspeech/providers/index.d.ts.map +1 -0
  331. package/dist/internal/openspeech/providers/index.js +26 -0
  332. package/dist/internal/openspeech/providers/index.js.map +1 -0
  333. package/dist/internal/openspeech/providers/volcengine-streaming.provider.d.ts +291 -0
  334. package/dist/internal/openspeech/providers/volcengine-streaming.provider.d.ts.map +1 -0
  335. package/dist/internal/openspeech/providers/volcengine-streaming.provider.js +1358 -0
  336. package/dist/internal/openspeech/providers/volcengine-streaming.provider.js.map +1 -0
  337. package/dist/internal/openspeech/providers/volcengine.provider.d.ts +144 -0
  338. package/dist/internal/openspeech/providers/volcengine.provider.d.ts.map +1 -0
  339. package/dist/internal/openspeech/providers/volcengine.provider.js +337 -0
  340. package/dist/internal/openspeech/providers/volcengine.provider.js.map +1 -0
  341. package/dist/internal/openspeech/types.d.ts +408 -0
  342. package/dist/internal/openspeech/types.d.ts.map +1 -0
  343. package/dist/internal/openspeech/types.js +11 -0
  344. package/dist/internal/openspeech/types.js.map +1 -0
  345. package/dist/internal/provider-verify/index.d.ts +6 -0
  346. package/dist/internal/provider-verify/index.d.ts.map +1 -0
  347. package/dist/internal/provider-verify/index.js +24 -0
  348. package/dist/internal/provider-verify/index.js.map +1 -0
  349. package/dist/internal/provider-verify/provider-verify.client.d.ts +55 -0
  350. package/dist/internal/provider-verify/provider-verify.client.d.ts.map +1 -0
  351. package/dist/internal/provider-verify/provider-verify.client.js +284 -0
  352. package/dist/internal/provider-verify/provider-verify.client.js.map +1 -0
  353. package/dist/internal/provider-verify/provider-verify.module.d.ts +3 -0
  354. package/dist/internal/provider-verify/provider-verify.module.d.ts.map +1 -0
  355. package/dist/internal/provider-verify/provider-verify.module.js +28 -0
  356. package/dist/internal/provider-verify/provider-verify.module.js.map +1 -0
  357. package/dist/internal/routing-llm/index.d.ts +7 -0
  358. package/dist/internal/routing-llm/index.d.ts.map +1 -0
  359. package/dist/internal/routing-llm/index.js +25 -0
  360. package/dist/internal/routing-llm/index.js.map +1 -0
  361. package/dist/internal/routing-llm/interfaces/routing-llm.interface.d.ts +88 -0
  362. package/dist/internal/routing-llm/interfaces/routing-llm.interface.d.ts.map +1 -0
  363. package/dist/internal/routing-llm/interfaces/routing-llm.interface.js +64 -0
  364. package/dist/internal/routing-llm/interfaces/routing-llm.interface.js.map +1 -0
  365. package/dist/internal/routing-llm/routing-llm.client.d.ts +32 -0
  366. package/dist/internal/routing-llm/routing-llm.client.d.ts.map +1 -0
  367. package/dist/internal/routing-llm/routing-llm.client.js +275 -0
  368. package/dist/internal/routing-llm/routing-llm.client.js.map +1 -0
  369. package/dist/internal/routing-llm/routing-llm.module.d.ts +3 -0
  370. package/dist/internal/routing-llm/routing-llm.module.d.ts.map +1 -0
  371. package/dist/internal/routing-llm/routing-llm.module.js +28 -0
  372. package/dist/internal/routing-llm/routing-llm.module.js.map +1 -0
  373. package/dist/internal/sms/dto/sms.dto.d.ts +156 -0
  374. package/dist/internal/sms/dto/sms.dto.d.ts.map +1 -0
  375. package/dist/internal/sms/dto/sms.dto.js +78 -0
  376. package/dist/internal/sms/dto/sms.dto.js.map +1 -0
  377. package/dist/internal/sms/index.d.ts +14 -0
  378. package/dist/internal/sms/index.d.ts.map +1 -0
  379. package/dist/internal/sms/index.js +37 -0
  380. package/dist/internal/sms/index.js.map +1 -0
  381. package/dist/internal/sms/sms-aliyun.client.d.ts +19 -0
  382. package/dist/internal/sms/sms-aliyun.client.d.ts.map +1 -0
  383. package/dist/internal/sms/sms-aliyun.client.js +74 -0
  384. package/dist/internal/sms/sms-aliyun.client.js.map +1 -0
  385. package/dist/internal/sms/sms-http.client.d.ts +21 -0
  386. package/dist/internal/sms/sms-http.client.d.ts.map +1 -0
  387. package/dist/internal/sms/sms-http.client.js +76 -0
  388. package/dist/internal/sms/sms-http.client.js.map +1 -0
  389. package/dist/internal/sms/sms-tencent.client.d.ts +18 -0
  390. package/dist/internal/sms/sms-tencent.client.d.ts.map +1 -0
  391. package/dist/internal/sms/sms-tencent.client.js +76 -0
  392. package/dist/internal/sms/sms-tencent.client.js.map +1 -0
  393. package/dist/internal/sms/sms-volcengine.client.d.ts +29 -0
  394. package/dist/internal/sms/sms-volcengine.client.d.ts.map +1 -0
  395. package/dist/internal/sms/sms-volcengine.client.js +124 -0
  396. package/dist/internal/sms/sms-volcengine.client.js.map +1 -0
  397. package/dist/internal/sms/sms-zxjc.client.d.ts +18 -0
  398. package/dist/internal/sms/sms-zxjc.client.d.ts.map +1 -0
  399. package/dist/internal/sms/sms-zxjc.client.js +40 -0
  400. package/dist/internal/sms/sms-zxjc.client.js.map +1 -0
  401. package/dist/internal/sse/index.d.ts +3 -0
  402. package/dist/internal/sse/index.d.ts.map +1 -0
  403. package/dist/internal/sse/index.js +19 -0
  404. package/dist/internal/sse/index.js.map +1 -0
  405. package/dist/internal/sse/sse-client.service.spec.d.ts +2 -0
  406. package/dist/internal/sse/sse-client.service.spec.d.ts.map +1 -0
  407. package/dist/internal/sse/sse-client.service.spec.js +17 -0
  408. package/dist/internal/sse/sse-client.service.spec.js.map +1 -0
  409. package/dist/internal/sse/sse.client.d.ts +63 -0
  410. package/dist/internal/sse/sse.client.d.ts.map +1 -0
  411. package/dist/internal/sse/sse.client.js +304 -0
  412. package/dist/internal/sse/sse.client.js.map +1 -0
  413. package/dist/internal/sse/sse.module.d.ts +3 -0
  414. package/dist/internal/sse/sse.module.d.ts.map +1 -0
  415. package/dist/internal/sse/sse.module.js +30 -0
  416. package/dist/internal/sse/sse.module.js.map +1 -0
  417. package/dist/internal/third-party-sse/index.d.ts +3 -0
  418. package/dist/internal/third-party-sse/index.d.ts.map +1 -0
  419. package/dist/internal/third-party-sse/index.js +19 -0
  420. package/dist/internal/third-party-sse/index.js.map +1 -0
  421. package/dist/internal/third-party-sse/third-party-sse.client.d.ts +14 -0
  422. package/dist/internal/third-party-sse/third-party-sse.client.d.ts.map +1 -0
  423. package/dist/internal/third-party-sse/third-party-sse.client.js +63 -0
  424. package/dist/internal/third-party-sse/third-party-sse.client.js.map +1 -0
  425. package/dist/internal/third-party-sse/third-party-sse.module.d.ts +3 -0
  426. package/dist/internal/third-party-sse/third-party-sse.module.d.ts.map +1 -0
  427. package/dist/internal/third-party-sse/third-party-sse.module.js +23 -0
  428. package/dist/internal/third-party-sse/third-party-sse.module.js.map +1 -0
  429. package/dist/internal/third-party-sse/third-party-sse.service.spec.d.ts +2 -0
  430. package/dist/internal/third-party-sse/third-party-sse.service.spec.d.ts.map +1 -0
  431. package/dist/internal/third-party-sse/third-party-sse.service.spec.js +17 -0
  432. package/dist/internal/third-party-sse/third-party-sse.service.spec.js.map +1 -0
  433. package/dist/internal/verify/index.d.ts +3 -0
  434. package/dist/internal/verify/index.d.ts.map +1 -0
  435. package/dist/internal/verify/index.js +19 -0
  436. package/dist/internal/verify/index.js.map +1 -0
  437. package/dist/internal/verify/verify.client.d.ts +12 -0
  438. package/dist/internal/verify/verify.client.d.ts.map +1 -0
  439. package/dist/internal/verify/verify.client.js +57 -0
  440. package/dist/internal/verify/verify.client.js.map +1 -0
  441. package/dist/internal/verify/verify.module.d.ts +3 -0
  442. package/dist/internal/verify/verify.module.d.ts.map +1 -0
  443. package/dist/internal/verify/verify.module.js +23 -0
  444. package/dist/internal/verify/verify.module.js.map +1 -0
  445. package/dist/internal/volcengine-tts/dto/tts.dto.d.ts +52 -0
  446. package/dist/internal/volcengine-tts/dto/tts.dto.d.ts.map +1 -0
  447. package/dist/internal/volcengine-tts/dto/tts.dto.js +59 -0
  448. package/dist/internal/volcengine-tts/dto/tts.dto.js.map +1 -0
  449. package/dist/internal/volcengine-tts/index.d.ts +4 -0
  450. package/dist/internal/volcengine-tts/index.d.ts.map +1 -0
  451. package/dist/internal/volcengine-tts/index.js +20 -0
  452. package/dist/internal/volcengine-tts/index.js.map +1 -0
  453. package/dist/internal/volcengine-tts/volcengine-tts.client.d.ts +104 -0
  454. package/dist/internal/volcengine-tts/volcengine-tts.client.d.ts.map +1 -0
  455. package/dist/internal/volcengine-tts/volcengine-tts.client.js +690 -0
  456. package/dist/internal/volcengine-tts/volcengine-tts.client.js.map +1 -0
  457. package/dist/internal/volcengine-tts/volcengine-tts.module.d.ts +3 -0
  458. package/dist/internal/volcengine-tts/volcengine-tts.module.d.ts.map +1 -0
  459. package/dist/internal/volcengine-tts/volcengine-tts.module.js +34 -0
  460. package/dist/internal/volcengine-tts/volcengine-tts.module.js.map +1 -0
  461. package/dist/internal/wechat/index.d.ts +3 -0
  462. package/dist/internal/wechat/index.d.ts.map +1 -0
  463. package/dist/internal/wechat/index.js +19 -0
  464. package/dist/internal/wechat/index.js.map +1 -0
  465. package/dist/internal/wechat/wechat-client.service.spec.d.ts +2 -0
  466. package/dist/internal/wechat/wechat-client.service.spec.d.ts.map +1 -0
  467. package/dist/internal/wechat/wechat-client.service.spec.js +17 -0
  468. package/dist/internal/wechat/wechat-client.service.spec.js.map +1 -0
  469. package/dist/internal/wechat/wechat.client.d.ts +3 -0
  470. package/dist/internal/wechat/wechat.client.d.ts.map +1 -0
  471. package/dist/internal/wechat/wechat.client.js +17 -0
  472. package/dist/internal/wechat/wechat.client.js.map +1 -0
  473. package/dist/internal/wechat/wechat.module.d.ts +3 -0
  474. package/dist/internal/wechat/wechat.module.d.ts.map +1 -0
  475. package/dist/internal/wechat/wechat.module.js +21 -0
  476. package/dist/internal/wechat/wechat.module.js.map +1 -0
  477. package/dist/plugin/decorators/inject-client.decorator.d.ts +40 -0
  478. package/dist/plugin/decorators/inject-client.decorator.d.ts.map +1 -0
  479. package/dist/plugin/decorators/inject-client.decorator.js +63 -0
  480. package/dist/plugin/decorators/inject-client.decorator.js.map +1 -0
  481. package/dist/plugin/index.d.ts +14 -0
  482. package/dist/plugin/index.d.ts.map +1 -0
  483. package/dist/plugin/index.js +34 -0
  484. package/dist/plugin/index.js.map +1 -0
  485. package/dist/plugin/interceptors/http-logging.interceptor.d.ts +51 -0
  486. package/dist/plugin/interceptors/http-logging.interceptor.d.ts.map +1 -0
  487. package/dist/plugin/interceptors/http-logging.interceptor.js +84 -0
  488. package/dist/plugin/interceptors/http-logging.interceptor.js.map +1 -0
  489. package/dist/plugin/interfaces/client.interface.d.ts +80 -0
  490. package/dist/plugin/interfaces/client.interface.d.ts.map +1 -0
  491. package/dist/plugin/interfaces/client.interface.js +8 -0
  492. package/dist/plugin/interfaces/client.interface.js.map +1 -0
  493. package/dist/plugin/utils/retry.util.d.ts +49 -0
  494. package/dist/plugin/utils/retry.util.d.ts.map +1 -0
  495. package/dist/plugin/utils/retry.util.js +110 -0
  496. package/dist/plugin/utils/retry.util.js.map +1 -0
  497. package/package.json +55 -0
@@ -0,0 +1,526 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.FileQiniuClient = void 0;
40
+ const qiniu = __importStar(require("qiniu"));
41
+ const rxjs_1 = require("rxjs");
42
+ const file_config_1 = __importDefault(require("./config/file.config"));
43
+ const infra_utils_1 = require("@dofe/infra-utils");
44
+ const infra_contracts_1 = require("@dofe/infra-contracts");
45
+ const infra_common_1 = require("@dofe/infra-common");
46
+ const infra_utils_2 = require("@dofe/infra-utils");
47
+ const infra_utils_3 = require("@dofe/infra-utils");
48
+ /**
49
+ * Qiniu File Storage Client
50
+ *
51
+ * 职责:仅负责与七牛云存储 API 通信
52
+ * - 不访问数据库
53
+ * - 不包含业务逻辑
54
+ */
55
+ class FileQiniuClient {
56
+ mac;
57
+ qiniuConfig;
58
+ bucketManager;
59
+ operManager;
60
+ cdnManager;
61
+ logger;
62
+ config;
63
+ storageConfig;
64
+ appConfig;
65
+ redis;
66
+ httpService;
67
+ /**
68
+ * 构造函数,用于创建AppFile类的实例
69
+ *
70
+ */
71
+ constructor(config, storageConfig, appConfig, redis, httpService, logger) {
72
+ this.config = config;
73
+ this.storageConfig = storageConfig;
74
+ this.appConfig = appConfig;
75
+ this.redis = redis;
76
+ this.httpService = httpService;
77
+ this.logger = logger;
78
+ // 创建凭证对象
79
+ this.mac = new qiniu.auth.digest.Mac(this.storageConfig.accessKey, this.storageConfig.secretKey);
80
+ // qiniu.zone.Zone_z1
81
+ this.qiniuConfig = new qiniu.conf.Config();
82
+ this.qiniuConfig.zone = this.getQiniuZone();
83
+ // 初始化 BucketManager
84
+ this.bucketManager = new qiniu.rs.BucketManager(this.mac, this.qiniuConfig);
85
+ this.operManager = new qiniu.fop.OperationManager(this.mac, this.qiniuConfig);
86
+ this.cdnManager = new qiniu.cdn.CdnManager(this.mac);
87
+ }
88
+ /**
89
+ * 上传凭证生成函数
90
+ *
91
+ * @param scope 空间名,可选参数,默认为配置中的 bucket
92
+ * @param options PutPolicyOptions 对象,可选参数,用于设置上传凭证的回调等选项,默认为配置中的 webhook 和 callbackBody 等信息
93
+ * @returns 返回生成的上传凭证字符串
94
+ */
95
+ async uploadTokenWithCallback(callbackAuthKey, scope, options, neeSpiltPart) {
96
+ const defaultOptions = {
97
+ callbackUrl: infra_utils_3.environmentUtil.generateEnvironmentUrls().api +
98
+ '/' +
99
+ this.config.webhook +
100
+ callbackAuthKey,
101
+ callbackBody: '{"key":"$(key)","hash":"$(etag)","fsize":$(fsize),"bucket":"$(bucket)","mimeType":"$(mimeType)","type":${type},"endUser":"${endUser}","status":${status},"md5":"${md5}","parts":${parts},"imageInfo":$(imageInfo),"exif":$(exif),"avinfo":$(avinfo),"ext":"$(ext)","thumbImg":"$(thumbImg)"}',
102
+ // '{"key":"$(key)","hash":"$(etag)","bucket":"$(bucket)","fsize":$(fsize)}',
103
+ callbackBodyType: 'application/json',
104
+ };
105
+ const finalScope = this.getBucketString(scope);
106
+ const finalOptions = Object.assign({}, defaultOptions, options);
107
+ const putPolicy = new qiniu.rs.PutPolicy({
108
+ scope: finalScope,
109
+ ...finalOptions,
110
+ });
111
+ const uploadToken = putPolicy.uploadToken(this.mac);
112
+ // if (neeSpiltPart) {
113
+ // await this.initiateMultipartUpload(fileKey, uploadToken)
114
+ // }
115
+ return uploadToken;
116
+ }
117
+ async uploadToken(scope, options) {
118
+ const finalScope = this.getBucketString(scope);
119
+ const putPolicy = new qiniu.rs.PutPolicy({
120
+ scope: finalScope,
121
+ });
122
+ const uploadToken = await putPolicy.uploadToken(this.mac);
123
+ return uploadToken;
124
+ }
125
+ async setFileContentDisposition(fileKey, bucket) { }
126
+ /**
127
+ * 文件数据上传器
128
+ *
129
+ * @param fileData 文件数据流
130
+ * @param key 文件在七牛云上的存储键名
131
+ * @param bucket 文件存储的七牛云存储空间名称,默认为类内配置的存储空间
132
+ * @returns 返回上传成功的文件键名
133
+ * @throws 当上传失败时,抛出 ApiException 异常
134
+ */
135
+ async fileDataUploader(base64Data, key, qbucket) {
136
+ const finalBucket = this.getBucketString(qbucket);
137
+ const buffer = Buffer.from(base64Data.replace(/^data:image\/\w+;base64,/, ''), 'base64');
138
+ const formUploader = new qiniu.form_up.FormUploader(this.qiniuConfig);
139
+ const putExtra = new qiniu.form_up.PutExtra();
140
+ const uploadToken = await this.uploadToken(finalBucket);
141
+ const { resp } = await formUploader.put(uploadToken, key, buffer, putExtra);
142
+ if (resp.statusCode === 200) {
143
+ return;
144
+ }
145
+ throw (0, infra_common_1.apiError)(infra_contracts_1.CommonErrorCode.QiniuUploaderError);
146
+ }
147
+ async getPrivateDownloadUrl(fileKey, expire, internal, bucket) {
148
+ // 如果未传入deadline,则默认为当前时间1小时后过期
149
+ expire = expire || 15;
150
+ // 如果提供了 bucket,需要获取对应 bucket 的配置
151
+ const finalConfig = bucket && bucket !== this.config.bucket
152
+ ? await this.getBucketConfig(bucket)
153
+ : this.config;
154
+ const privateBucketDomain = finalConfig.domain;
155
+ if (!privateBucketDomain) {
156
+ throw new Error('Bucket domain is not configured');
157
+ }
158
+ // 可以通过配置config对象来自定义一些请求选项,例如zone等
159
+ // const bucketManager = new qiniu.rs.BucketManager(this.mac, this.qiniuConfig);
160
+ const expireAt = Date.now() + expire * 1000;
161
+ const privateDownloadUrl = await this.bucketManager.privateDownloadUrl(privateBucketDomain, fileKey, expireAt);
162
+ return privateDownloadUrl;
163
+ }
164
+ /**
165
+ * 获取指定 bucket 的配置(辅助方法)
166
+ * 注意:七牛云服务通常一个实例对应一个 bucket,此方法用于兼容接口
167
+ */
168
+ async getBucketConfig(bucket) {
169
+ // 七牛云通常一个实例对应一个 bucket,如果 bucket 不同,返回当前配置
170
+ // 实际使用时应该根据 bucket 创建对应的服务实例
171
+ this.logger.warn('Qiniu service: bucket parameter ignored, using default config', {
172
+ requestedBucket: bucket,
173
+ defaultBucket: this.config.bucket,
174
+ });
175
+ return this.config;
176
+ }
177
+ /**
178
+ * 上传文件到七牛云
179
+ *
180
+ * @param filePath 文件的本地路径
181
+ * @param key 文件在七牛云上的存储键名
182
+ * @param bucket 文件存储的七牛云存储空间名称,默认为类内配置的存储空间
183
+ * @returns 返回上传成功的文件键名
184
+ * @throws 当上传失败时,抛出 ApiException 异常
185
+ */
186
+ async uploadFile(filePath, key, bucket) {
187
+ const formUploader = new qiniu.form_up.FormUploader(this.qiniuConfig);
188
+ const putExtra = new qiniu.form_up.PutExtra();
189
+ const uploadToken = await this.uploadToken(bucket);
190
+ new Promise((resolve, reject) => {
191
+ formUploader.putFile(uploadToken, key, filePath, putExtra, (err, body, info) => {
192
+ if (err) {
193
+ this.logger.error('uploadFile error', err);
194
+ return reject((0, infra_common_1.apiError)(infra_contracts_1.CommonErrorCode.QiniuUploaderError));
195
+ }
196
+ if (info.statusCode === 200) {
197
+ resolve(body.key);
198
+ }
199
+ else {
200
+ this.logger.error('uploadFile failed', info);
201
+ reject((0, infra_common_1.apiError)(infra_contracts_1.CommonErrorCode.QiniuUploaderError));
202
+ }
203
+ });
204
+ });
205
+ }
206
+ async getFileInfo(fileKey, bucket) {
207
+ const finalBucket = this.getBucketString(bucket);
208
+ return await this.bucketManager.stat(finalBucket, fileKey);
209
+ }
210
+ async changeFileMime(fileKey, newMime, bucket) {
211
+ const finalBucket = this.getBucketString(bucket);
212
+ return await this.bucketManager.changeMime(finalBucket, fileKey, newMime);
213
+ }
214
+ async changeFileHeaders(fileKey, headers, bucket) {
215
+ const finalBucket = this.getBucketString(bucket);
216
+ return await this.bucketManager.changeHeaders(finalBucket, fileKey, headers);
217
+ }
218
+ // newType = 0 表示普通存储,
219
+ // 1 表示低频存储
220
+ // 2 表示归档存储
221
+ // 3 表示深度归档存储
222
+ // 4 表示归档直读存储
223
+ async changeType(fileKey, newType, bucket) {
224
+ const finalBucket = this.getBucketString(bucket);
225
+ return await this.bucketManager.changeType(finalBucket, fileKey, newType);
226
+ }
227
+ async moveFile(fileKey, bucket, destBucket, destKey, options) {
228
+ const oldBucket = this.getBucketString(bucket);
229
+ const newBucket = this.getBucketString(bucket);
230
+ return await this.bucketManager.move(oldBucket, fileKey, newBucket, destKey || fileKey, options ?? null);
231
+ }
232
+ async copyFile(fileKey, bucket, destBucket, destKey, options) {
233
+ const oldBucket = this.getBucketString(bucket);
234
+ const newBucket = this.getBucketString(bucket);
235
+ return await this.bucketManager.copy(oldBucket, fileKey, newBucket, destKey || fileKey, options ?? null);
236
+ }
237
+ async deleteFile(fileKey, bucket) {
238
+ const finalBucket = this.getBucketString(bucket);
239
+ const { resp } = await this.bucketManager.delete(finalBucket, fileKey);
240
+ if (!resp || resp.statusCode !== 200) {
241
+ this.logger.warn('deleteFile fail', { fileKey, bucket });
242
+ return false;
243
+ }
244
+ this.logger.warn('deleteFile success', { resp });
245
+ return true;
246
+ }
247
+ /**
248
+ * 列出指定前缀的文件列表
249
+ *
250
+ * @param prefix 文件名前缀,默认为空字符串
251
+ * @param limit 最多返回的文件数量,默认为1000
252
+ * @param delimiter 用于限制目录层次的分隔符,默认为空字符串
253
+ * @param bucket 存储桶名称,默认为当前实例的存储桶
254
+ * @param options 其他可选参数
255
+ * @returns 返回一个Promise,解析后得到包含文件名的字符串数组
256
+ * @throws 当请求失败时,抛出ApiException异常
257
+ */
258
+ async listFilesPrefix(prefix, limit, delimiter, bucket, options) {
259
+ const finalBucket = this.getBucketString(bucket);
260
+ options = options || {};
261
+ const safePrefix = infra_utils_2.folderUtil.ensurePrefixEndsWithSlash(prefix || '');
262
+ options = {
263
+ ...options,
264
+ prefix: safePrefix,
265
+ delimiter,
266
+ limit: limit || 1000,
267
+ };
268
+ const { data, resp } = await this.bucketManager.listPrefix(finalBucket, options);
269
+ if (!resp || resp.statusCode !== 200) {
270
+ throw (0, infra_common_1.apiError)(infra_contracts_1.CommonErrorCode.BatchDeleteFolderFail);
271
+ }
272
+ const files = data.items.map((item) => item.key);
273
+ return files;
274
+ }
275
+ /**
276
+ * 从指定URL获取资源并存储到七牛云存储的指定Bucket中
277
+ *
278
+ * @param resUrl 资源URL
279
+ * @param fileKey 文件在Bucket中的键名
280
+ * @param bucket 存储Bucket的名称,默认为当前实例配置的Bucket
281
+ * @returns 返回一个Promise,解析为FetchObjectResult类型的七牛云HTTP响应包装对象
282
+ */
283
+ async fetchToBucket(resUrl, fileKey, bucket) {
284
+ const finalBucket = this.getBucketString(bucket);
285
+ const { data, resp } = await this.bucketManager.fetch(resUrl, finalBucket, fileKey);
286
+ if (!resp || resp.statusCode !== 200) {
287
+ throw (0, infra_common_1.apiError)(infra_contracts_1.CommonErrorCode.BatchDeleteFolderFail);
288
+ }
289
+ this.logger.info('fetchToBucket Qiniu success', data);
290
+ return data;
291
+ }
292
+ // 更新镜像空间中存储的文件内容
293
+ /**
294
+ * 更新镜像副本
295
+ * @see https://developer.qiniu.com/kodo/api/1293/prefetch
296
+ *
297
+ * @param bucket 空间名称
298
+ * @param key 文件名称
299
+ */
300
+ async prefetch(fileKey, bucket) {
301
+ const finalBucket = this.getBucketString(bucket);
302
+ return await this.bucketManager.prefetch(finalBucket, fileKey);
303
+ }
304
+ /**
305
+ * 批量文件管理请求,支持stat,chgm,chtype,delete,copy,move
306
+ * @param operations
307
+ *
308
+ * --- 批量获取文件信息:qiniu.rs.statOp
309
+ * const statOperations = [
310
+ * qiniu.rs.statOp(srcBucket, 'qiniu1.mp4'),
311
+ * ];
312
+ * --- 批量修改文件类型:qiniu.rs.changeMimeOp
313
+ * const chgmOperations = [
314
+ * qiniu.rs.changeMimeOp(srcBucket, 'qiniu1.mp4', 'video/x-mp4'),
315
+ * ];
316
+ * --- 批量删除文件:qiniu.rs.deleteOp
317
+ * const deleteOperations = [
318
+ * qiniu.rs.deleteOp(srcBucket, 'qiniu1.mp4'),
319
+ * ];
320
+ * --- 批量复制文件:qiniu.rs.copyOp
321
+ * const copyOperations = [
322
+ * qiniu.rs.copyOp(srcBucket, srcKey, destBucket, 'qiniu1.mp4'),
323
+ * ];
324
+ * --- 批量移动或重命名文件:qiniu.rs.moveOp
325
+ * const moveOperations = [
326
+ * qiniu.rs.moveOp(srcBucket, 'qiniu1.mp4', destBucket, 'qiniu1_move.mp4'),
327
+ * ];
328
+ * --- 批量更新文件的有效期: qiniu.rs.deleteAfterDaysOp
329
+ * const deleteAfterDaysOperations = [
330
+ * qiniu.rs.deleteAfterDaysOp(srcBucket, 'qiniu1.mp4', 10),
331
+ * ];
332
+ * --- 批量更新文件存储类型: qiniu.rs.changeTypeOp
333
+ * newType:0 表示普通存储;1 表示低频存储;2 表示归档存储;3 表示深度归档存储;4 表示归档直读存储
334
+ * const changeTypeOperations = [
335
+ * qiniu.rs.changeTypeOp(srcBucket, 'qiniu1.mp4', 1),
336
+ * ];
337
+ */
338
+ async batch(operations) {
339
+ return await this.bucketManager.batch(operations);
340
+ }
341
+ async batchDeleteFiles(fileKeys, bucket) {
342
+ const finalBucket = this.getBucketString(bucket);
343
+ return await this.batch([
344
+ ...fileKeys.map((key) => {
345
+ return qiniu.rs.deleteOp(finalBucket, key);
346
+ }),
347
+ ]);
348
+ }
349
+ /**
350
+ * @returns 返回操作管理对象
351
+ * 发送持久化数据处理请求
352
+ * @param bucket 空间名称
353
+ * @param key 文件名称
354
+ * @param fops 处理指令集合
355
+ * @param pipeline 处理队列名称
356
+ * @param options
357
+ * @param callback
358
+ * @use pfop(bucket: string, key: string, fops: string[], pipeline: string, options: PfopOptions | null, callback: callback): void;
359
+ *
360
+ * 查询持久化数据处理进度
361
+ * @param persistentId pfop操作返回的持久化处理ID
362
+ * @param callback
363
+ *
364
+ * prefop(persistentId: string, callback: callback): void;
365
+ */
366
+ getOperManager() {
367
+ return this.operManager;
368
+ }
369
+ getCdnManager() {
370
+ return this.cdnManager;
371
+ }
372
+ getConfig() {
373
+ return this.config;
374
+ }
375
+ async getPresignedUrl(bucket, uploadId, key, partNumber) {
376
+ return '';
377
+ }
378
+ async getMultipartUploadId(fileKey, bucket) {
379
+ const finalBucket = this.getBucketString(bucket);
380
+ const host = file_config_1.default.qiniu.uploadUrl;
381
+ const encodedObjectName = fileKey
382
+ ? infra_utils_1.urlencodeUtil.urlsafeBase64Encode(fileKey)
383
+ : '~';
384
+ const uploadToken = this.uploadToken(bucket, {
385
+ scope: finalBucket,
386
+ });
387
+ const headers = {
388
+ Authorization: 'UpToken ' + uploadToken,
389
+ 'Content-Type': 'application/json',
390
+ };
391
+ const requestUrl = host +
392
+ '/buckets/' +
393
+ finalBucket +
394
+ '/objects/' +
395
+ encodedObjectName +
396
+ '/uploads';
397
+ const ret = await (0, rxjs_1.firstValueFrom)(this.httpService.post(requestUrl, {}, { headers }));
398
+ // if (ret.statusCode !== 200) {
399
+ // throw new ApiException('onitiateMultipartUploadError')
400
+ // }
401
+ return ret.data.uploadId;
402
+ }
403
+ getBucketString(bucket) {
404
+ const defaultBucket = this.config.bucket;
405
+ const finalBucket = bucket ?? defaultBucket;
406
+ return finalBucket;
407
+ }
408
+ getQiniuZone() {
409
+ const qiniuZones = {
410
+ z0: qiniu.zone.Zone_z0,
411
+ cn_east_2: qiniu.zone.Zone_cn_east_2,
412
+ z1: qiniu.zone.Zone_z1,
413
+ z2: qiniu.zone.Zone_z2,
414
+ na0: qiniu.zone.Zone_na0,
415
+ as0: qiniu.zone.Zone_as0,
416
+ };
417
+ return qiniuZones[this.config.region] || qiniu.zone.Zone_z0;
418
+ }
419
+ async listBuckets() { }
420
+ async fileDownloader(source) {
421
+ throw new Error('Not implemented');
422
+ }
423
+ async fileUploader(buffer, destination) { }
424
+ async completeMultipartUpload(uploadId, key, parts, bucket) { }
425
+ callbackValidate(requestURI, reqBody, callbackAuth) {
426
+ return qiniu.util.isQiniuCallback(this.mac, requestURI, reqBody, callbackAuth);
427
+ }
428
+ async makeZipWithKeys(files, zipName, bucket) {
429
+ const finalBucket = this.getBucketString(bucket);
430
+ const names = [];
431
+ const content = files
432
+ .map(async (file) => {
433
+ // 拼接原始url
434
+ // 链接加密并进行Base64编码,别名去除前缀目录。
435
+ const { name, key } = file.fileKey;
436
+ names.push(name);
437
+ const url = await this.getPrivateDownloadUrl(key, undefined, undefined, finalBucket);
438
+ const safeUrl = `/url/${infra_utils_1.urlencodeUtil.urlsafeBase64Encode(url)}` +
439
+ `/alias/${infra_utils_1.urlencodeUtil.urlsafeBase64Encode(name)}`;
440
+ return safeUrl;
441
+ })
442
+ .join('\n');
443
+ const formUploader = new qiniu.form_up.FormUploader(this.qiniuConfig);
444
+ const putExtra = new qiniu.form_up.PutExtra();
445
+ const key = `${Date.now()}-${~~(Math.random() * 1000)}.txt`;
446
+ const uploaderToken = await this.uploadToken();
447
+ const { data, resp } = await formUploader.put(uploaderToken, key, content, putExtra);
448
+ if (resp.statusCode == 200) {
449
+ const { key: dataKey } = data;
450
+ // 执行压缩 ,设置压缩资源的在OSS上的保存路径
451
+ const zipKey = infra_utils_1.urlencodeUtil.urlsafeBase64Encode(`${finalBucket}:temp_package/${Date.now()}/${zipName}.zip`);
452
+ const fops = `mkzip/4/encoding/${infra_utils_1.urlencodeUtil.urlsafeBase64Encode('gbk')}|saveas/${zipKey}`;
453
+ // const operManager = new qiniu.fop.OperationManager(
454
+ // this.mac,
455
+ // this.qiniuConfig,
456
+ // )
457
+ const pipeline = ''; // 使用公共队列
458
+ // 下行。不知用处
459
+ const options = { force: false };
460
+ const persistentId = await this.pfopFops(dataKey, fops, pipeline, options, finalBucket);
461
+ // 这里只返回任务id,转由客户端发请求查询
462
+ return persistentId;
463
+ }
464
+ else {
465
+ throw (0, infra_common_1.apiError)(infra_contracts_1.CommonErrorCode.QiniuZipDownloadError);
466
+ }
467
+ }
468
+ /**
469
+ * 执行pfop的fops操作
470
+ *
471
+ * @param key 文件对象在存储桶中的键(文件名)
472
+ * @param fops 操作的fops数组
473
+ * @param pipeline 使用的管道名称
474
+ * @param options 额外的请求选项
475
+ * @param bucket 指定的存储桶名称,默认为当前实例的存储桶
476
+ * @returns 返回Promise,解析为字符串类型的任务ID
477
+ * @throws 如果执行过程中出现错误,则抛出异常
478
+ */
479
+ async pfopFops(key, fops, pipeline, options, bucket) {
480
+ const finalBucket = this.getBucketString(bucket);
481
+ return new Promise((res, rej) => {
482
+ this.operManager.pfop(finalBucket, key, [fops], pipeline, options, (err, data, resp) => {
483
+ if (err) {
484
+ rej(err);
485
+ return;
486
+ }
487
+ if (resp.statusCode == 200 && data) {
488
+ // 这里只返回任务id,转由客户端发请求查询
489
+ res(data.persistentId);
490
+ }
491
+ else {
492
+ this.logger.error('Qiniu pfop failed', { statusCode: resp.statusCode, data });
493
+ rej(new Error('Qiniu pfop failed'));
494
+ }
495
+ });
496
+ });
497
+ }
498
+ /**
499
+ * 查询Fop任务完成状态
500
+ * @param {string} persistentId
501
+ * @returns
502
+ */
503
+ async queryFopStatus(persistentId) {
504
+ return new Promise((res, rej) => {
505
+ this.operManager.prefop(persistentId, (err, data, resp) => {
506
+ if (err) {
507
+ this.logger.error('Qiniu queryFopStatus error', err);
508
+ rej((0, infra_common_1.apiError)(infra_contracts_1.CommonErrorCode.QiniuQueryFopStatusError));
509
+ return;
510
+ }
511
+ if (resp.statusCode == 200 && data && data.items && data.items.length > 0) {
512
+ const item = data.items[0];
513
+ // const { code, key } = item
514
+ // res({ code, key })
515
+ res(item);
516
+ }
517
+ else {
518
+ this.logger.error('Qiniu queryFopStatus failed', { statusCode: resp.statusCode, data });
519
+ rej(new Error('Qiniu queryFopStatus failed'));
520
+ }
521
+ });
522
+ });
523
+ }
524
+ }
525
+ exports.FileQiniuClient = FileQiniuClient;
526
+ //# sourceMappingURL=file-qiniu.client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-qiniu.client.js","sourceRoot":"","sources":["../../../src/internal/file-storage/file-qiniu.client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,6CAA+B;AAE/B,+BAAsC;AAEtC,uEAAmD;AACnD,mDAAkD;AAClD,2DAAwD;AACxD,qDAA8C;AAI9C,mDAA+C;AAE/C,mDAAoD;AAEpD;;;;;;GAMG;AACH,MAAa,eAAe;IAClB,GAAG,CAAwB;IAC3B,WAAW,CAAoB;IAC/B,aAAa,CAAyB;IACtC,WAAW,CAA6B;IACxC,UAAU,CAAuB;IACjC,MAAM,CAAS;IAEvB,MAAM,CAAsB;IAC5B,aAAa,CAA2B;IACxC,SAAS,CAAY;IACrB,KAAK,CAAe;IACV,WAAW,CAAc;IAEnC;;;OAGG;IACH,YACE,MAA2B,EAC3B,aAAuC,EACvC,SAAoB,EACpB,KAAmB,EACnB,WAAwB,EACxB,MAAc;QAEd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,SAAS;QACT,IA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