@aerokit/sdk 12.80.0 → 12.82.0

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 (376) hide show
  1. package/dist/cjs/bpm/deployer.js +1 -1
  2. package/dist/cjs/bpm/index.js +1 -1
  3. package/dist/cjs/bpm/process.js +1 -1
  4. package/dist/cjs/bpm/tasks.js +1 -1
  5. package/dist/cjs/bpm/tracer.js +1 -1
  6. package/dist/cjs/bpm/values.js +1 -1
  7. package/dist/cjs/cache/cache.js +1 -1
  8. package/dist/cjs/cache/index.js +1 -1
  9. package/dist/cjs/cms/cmis.js +1 -1
  10. package/dist/cjs/cms/index.js +1 -1
  11. package/dist/cjs/component/decorators.js +1 -1
  12. package/dist/cjs/component/index.js +1 -1
  13. package/dist/cjs/core/configurations.js +1 -1
  14. package/dist/cjs/core/context.js +1 -1
  15. package/dist/cjs/core/env.js +1 -1
  16. package/dist/cjs/core/globals.js +1 -1
  17. package/dist/cjs/core/index.js +1 -1
  18. package/dist/cjs/db/dao.js +1 -1
  19. package/dist/cjs/db/database.js +1 -1
  20. package/dist/cjs/db/decorators.js +1 -1
  21. package/dist/cjs/db/index.js +1 -1
  22. package/dist/cjs/db/insert.js +1 -1
  23. package/dist/cjs/db/orm.js +1 -1
  24. package/dist/cjs/db/ormstatements.js +1 -1
  25. package/dist/cjs/db/procedure.js +1 -1
  26. package/dist/cjs/db/query.js +1 -1
  27. package/dist/cjs/db/repository.js +1 -1
  28. package/dist/cjs/db/sequence.js +1 -1
  29. package/dist/cjs/db/sql.js +1 -1
  30. package/dist/cjs/db/store.js +1 -1
  31. package/dist/cjs/db/translator.js +1 -1
  32. package/dist/cjs/db/update.js +1 -1
  33. package/dist/cjs/etcd/client.js +1 -1
  34. package/dist/cjs/etcd/index.js +1 -1
  35. package/dist/cjs/extensions/decorators.js +1 -1
  36. package/dist/cjs/extensions/extensions.js +1 -1
  37. package/dist/cjs/extensions/index.js +1 -1
  38. package/dist/cjs/git/client.js +1 -1
  39. package/dist/cjs/git/index.js +1 -1
  40. package/dist/cjs/http/client-async.js +1 -1
  41. package/dist/cjs/http/client.js +1 -1
  42. package/dist/cjs/http/decorators.js +1 -1
  43. package/dist/cjs/http/errors/ForbiddenError.js +1 -1
  44. package/dist/cjs/http/errors/ValidationError.js +1 -1
  45. package/dist/cjs/http/errors.js +1 -1
  46. package/dist/cjs/http/index.js +1 -1
  47. package/dist/cjs/http/request.js +1 -1
  48. package/dist/cjs/http/response.js +1 -1
  49. package/dist/cjs/http/rs/resource-http-controller.js +1 -1
  50. package/dist/cjs/http/rs/resource-mappings.js +1 -1
  51. package/dist/cjs/http/rs/resource-method.js +1 -1
  52. package/dist/cjs/http/rs/resource.js +1 -1
  53. package/dist/cjs/http/rs.js +1 -1
  54. package/dist/cjs/http/session.js +1 -1
  55. package/dist/cjs/http/upload.js +1 -1
  56. package/dist/cjs/http/utils.js +1 -1
  57. package/dist/cjs/indexing/index.js +1 -1
  58. package/dist/cjs/indexing/searcher.js +1 -1
  59. package/dist/cjs/indexing/writer.js +1 -1
  60. package/dist/cjs/integrations/index.js +1 -1
  61. package/dist/cjs/integrations/integrations.js +1 -1
  62. package/dist/cjs/io/bytes.js +1 -1
  63. package/dist/cjs/io/files.js +1 -1
  64. package/dist/cjs/io/image.js +1 -1
  65. package/dist/cjs/io/index.js +1 -1
  66. package/dist/cjs/io/streams.js +1 -1
  67. package/dist/cjs/io/zip.js +1 -1
  68. package/dist/cjs/job/decorators.js +1 -1
  69. package/dist/cjs/job/index.js +1 -1
  70. package/dist/cjs/job/scheduler.js +1 -1
  71. package/dist/cjs/junit/index.js +1 -1
  72. package/dist/cjs/junit/junit.js +1 -1
  73. package/dist/cjs/kafka/consumer.js +1 -1
  74. package/dist/cjs/kafka/index.js +1 -1
  75. package/dist/cjs/kafka/producer.js +1 -1
  76. package/dist/cjs/log/index.js +1 -1
  77. package/dist/cjs/log/logging.js +1 -1
  78. package/dist/cjs/mail/client.js +1 -1
  79. package/dist/cjs/mail/index.js +1 -1
  80. package/dist/cjs/messaging/consumer.js +1 -1
  81. package/dist/cjs/messaging/decorators.js +1 -1
  82. package/dist/cjs/messaging/index.js +1 -1
  83. package/dist/cjs/messaging/producer.js +1 -1
  84. package/dist/cjs/mongodb/client.js +1 -1
  85. package/dist/cjs/mongodb/dao.js +1 -1
  86. package/dist/cjs/mongodb/index.js +1 -1
  87. package/dist/cjs/net/decorators.js +1 -1
  88. package/dist/cjs/net/index.js +1 -1
  89. package/dist/cjs/net/soap.js +1 -1
  90. package/dist/cjs/net/websockets.js +1 -1
  91. package/dist/cjs/pdf/index.js +1 -1
  92. package/dist/cjs/pdf/pdf.js +3 -3
  93. package/dist/cjs/platform/command.js +1 -1
  94. package/dist/cjs/platform/engines.js +1 -1
  95. package/dist/cjs/platform/index.js +1 -1
  96. package/dist/cjs/platform/lifecycle.js +1 -1
  97. package/dist/cjs/platform/os.js +1 -1
  98. package/dist/cjs/platform/problems.js +1 -1
  99. package/dist/cjs/platform/registry.js +1 -1
  100. package/dist/cjs/platform/repository.js +1 -1
  101. package/dist/cjs/platform/workspace.js +1 -1
  102. package/dist/cjs/qldb/index.js +1 -1
  103. package/dist/cjs/qldb/qldb.js +1 -1
  104. package/dist/cjs/rabbitmq/consumer.js +1 -1
  105. package/dist/cjs/rabbitmq/index.js +1 -1
  106. package/dist/cjs/rabbitmq/producer.js +1 -1
  107. package/dist/cjs/redis/client.js +1 -1
  108. package/dist/cjs/redis/index.js +1 -1
  109. package/dist/cjs/security/decorators.js +1 -1
  110. package/dist/cjs/security/index.js +1 -1
  111. package/dist/cjs/security/oauth.js +1 -1
  112. package/dist/cjs/security/user.js +1 -1
  113. package/dist/cjs/template/engines.js +1 -1
  114. package/dist/cjs/template/index.js +1 -1
  115. package/dist/cjs/utils/alphanumeric.js +2 -2
  116. package/dist/cjs/utils/base64.js +1 -1
  117. package/dist/cjs/utils/converter.js +1 -1
  118. package/dist/cjs/utils/digest.js +1 -1
  119. package/dist/cjs/utils/escape.js +1 -1
  120. package/dist/cjs/utils/hex.js +1 -1
  121. package/dist/cjs/utils/index.js +1 -1
  122. package/dist/cjs/utils/jsonpath.js +1 -1
  123. package/dist/cjs/utils/qrcode.js +1 -1
  124. package/dist/cjs/utils/url.js +1 -1
  125. package/dist/cjs/utils/utf8.js +1 -1
  126. package/dist/cjs/utils/uuid.js +1 -1
  127. package/dist/cjs/utils/xml.js +1 -1
  128. package/dist/dts/bpm/deployer.d.ts +35 -3
  129. package/dist/dts/bpm/index.d.ts +14 -0
  130. package/dist/dts/bpm/process.d.ts +28 -3
  131. package/dist/dts/bpm/tasks.d.ts +32 -1
  132. package/dist/dts/bpm/tracer.d.ts +35 -0
  133. package/dist/dts/bpm/values.d.ts +17 -3
  134. package/dist/dts/cache/cache.d.ts +38 -0
  135. package/dist/dts/cache/index.d.ts +10 -0
  136. package/dist/dts/cms/cmis.d.ts +28 -3
  137. package/dist/dts/cms/index.d.ts +10 -0
  138. package/dist/dts/component/decorators.d.ts +35 -5
  139. package/dist/dts/component/index.d.ts +10 -0
  140. package/dist/dts/core/configurations.d.ts +43 -4
  141. package/dist/dts/core/context.d.ts +35 -2
  142. package/dist/dts/core/env.d.ts +29 -2
  143. package/dist/dts/core/globals.d.ts +34 -2
  144. package/dist/dts/core/index.d.ts +13 -0
  145. package/dist/dts/db/database.d.ts +34 -0
  146. package/dist/dts/db/decorators.d.ts +55 -2
  147. package/dist/dts/db/index.d.ts +19 -0
  148. package/dist/dts/db/orm.d.ts +43 -0
  149. package/dist/dts/db/procedure.d.ts +37 -0
  150. package/dist/dts/db/query.d.ts +25 -1
  151. package/dist/dts/db/repository.d.ts +52 -0
  152. package/dist/dts/db/sequence.d.ts +31 -2
  153. package/dist/dts/db/sql.d.ts +33 -0
  154. package/dist/dts/db/store.d.ts +27 -0
  155. package/dist/dts/db/translator.d.ts +34 -1
  156. package/dist/dts/db/update.d.ts +38 -0
  157. package/dist/dts/etcd/client.d.ts +36 -0
  158. package/dist/dts/etcd/index.d.ts +10 -0
  159. package/dist/dts/extensions/decorators.d.ts +28 -0
  160. package/dist/dts/extensions/extensions.d.ts +30 -1
  161. package/dist/dts/extensions/index.d.ts +11 -0
  162. package/dist/dts/git/client.d.ts +28 -0
  163. package/dist/dts/git/index.d.ts +10 -0
  164. package/dist/dts/http/client-async.d.ts +29 -1
  165. package/dist/dts/http/client.d.ts +29 -1
  166. package/dist/dts/http/decorators.d.ts +38 -0
  167. package/dist/dts/http/errors/ForbiddenError.d.ts +6 -2
  168. package/dist/dts/http/errors/ValidationError.d.ts +6 -2
  169. package/dist/dts/http/errors.d.ts +14 -0
  170. package/dist/dts/http/index.d.ts +18 -0
  171. package/dist/dts/http/request.d.ts +30 -3
  172. package/dist/dts/http/response.d.ts +40 -3
  173. package/dist/dts/http/rs/resource-mappings.d.ts +30 -0
  174. package/dist/dts/http/rs.d.ts +38 -0
  175. package/dist/dts/http/session.d.ts +34 -3
  176. package/dist/dts/http/upload.d.ts +27 -2
  177. package/dist/dts/http/utils.d.ts +42 -0
  178. package/dist/dts/indexing/index.d.ts +11 -0
  179. package/dist/dts/indexing/searcher.d.ts +35 -2
  180. package/dist/dts/indexing/writer.d.ts +23 -2
  181. package/dist/dts/integrations/index.d.ts +10 -0
  182. package/dist/dts/integrations/integrations.d.ts +27 -3
  183. package/dist/dts/io/bytes.d.ts +33 -2
  184. package/dist/dts/io/files.d.ts +34 -2
  185. package/dist/dts/io/image.d.ts +27 -2
  186. package/dist/dts/io/index.d.ts +14 -0
  187. package/dist/dts/io/streams.d.ts +40 -0
  188. package/dist/dts/io/zip.d.ts +32 -0
  189. package/dist/dts/job/decorators.d.ts +29 -0
  190. package/dist/dts/job/index.d.ts +11 -0
  191. package/dist/dts/job/scheduler.d.ts +33 -2
  192. package/dist/dts/junit/index.d.ts +10 -0
  193. package/dist/dts/junit/junit.d.ts +31 -0
  194. package/dist/dts/kafka/consumer.d.ts +31 -0
  195. package/dist/dts/kafka/index.d.ts +11 -0
  196. package/dist/dts/kafka/producer.d.ts +31 -0
  197. package/dist/dts/log/index.d.ts +10 -0
  198. package/dist/dts/log/logging.d.ts +32 -0
  199. package/dist/dts/mail/client.d.ts +27 -0
  200. package/dist/dts/mail/index.d.ts +10 -0
  201. package/dist/dts/messaging/consumer.d.ts +29 -2
  202. package/dist/dts/messaging/decorators.d.ts +32 -0
  203. package/dist/dts/messaging/index.d.ts +12 -0
  204. package/dist/dts/messaging/producer.d.ts +27 -2
  205. package/dist/dts/mongodb/client.d.ts +37 -0
  206. package/dist/dts/mongodb/dao.d.ts +53 -0
  207. package/dist/dts/mongodb/index.d.ts +11 -0
  208. package/dist/dts/net/decorators.d.ts +27 -0
  209. package/dist/dts/net/index.d.ts +13 -0
  210. package/dist/dts/net/soap.d.ts +34 -0
  211. package/dist/dts/net/websockets.d.ts +34 -0
  212. package/dist/dts/pdf/index.d.ts +10 -0
  213. package/dist/dts/pdf/pdf.d.ts +41 -2
  214. package/dist/dts/platform/command.d.ts +26 -0
  215. package/dist/dts/platform/engines.d.ts +38 -0
  216. package/dist/dts/platform/index.d.ts +19 -0
  217. package/dist/dts/platform/lifecycle.d.ts +29 -0
  218. package/dist/dts/platform/os.d.ts +30 -0
  219. package/dist/dts/platform/problems.d.ts +36 -0
  220. package/dist/dts/platform/registry.d.ts +39 -0
  221. package/dist/dts/platform/repository.d.ts +40 -0
  222. package/dist/dts/platform/workspace.d.ts +42 -0
  223. package/dist/dts/qldb/index.d.ts +12 -0
  224. package/dist/dts/qldb/qldb.d.ts +14 -0
  225. package/dist/dts/rabbitmq/consumer.d.ts +24 -3
  226. package/dist/dts/rabbitmq/index.d.ts +13 -0
  227. package/dist/dts/rabbitmq/producer.d.ts +20 -3
  228. package/dist/dts/redis/client.d.ts +31 -3
  229. package/dist/dts/redis/index.d.ts +12 -0
  230. package/dist/dts/security/decorators.d.ts +34 -0
  231. package/dist/dts/security/index.d.ts +14 -0
  232. package/dist/dts/security/oauth.d.ts +27 -0
  233. package/dist/dts/security/user.d.ts +39 -0
  234. package/dist/dts/template/engines.d.ts +31 -0
  235. package/dist/dts/template/index.d.ts +12 -0
  236. package/dist/dts/utils/alphanumeric.d.ts +36 -2
  237. package/dist/dts/utils/base64.d.ts +30 -0
  238. package/dist/dts/utils/converter.d.ts +37 -2
  239. package/dist/dts/utils/digest.d.ts +31 -0
  240. package/dist/dts/utils/escape.d.ts +28 -3
  241. package/dist/dts/utils/hex.d.ts +30 -0
  242. package/dist/dts/utils/index.d.ts +23 -0
  243. package/dist/dts/utils/jsonpath.d.ts +43 -0
  244. package/dist/dts/utils/qrcode.d.ts +24 -3
  245. package/dist/dts/utils/url.d.ts +37 -3
  246. package/dist/dts/utils/utf8.d.ts +34 -3
  247. package/dist/dts/utils/uuid.d.ts +28 -2
  248. package/dist/dts/utils/xml.d.ts +31 -2
  249. package/dist/esm/bpm/deployer.mjs +1 -1
  250. package/dist/esm/bpm/index.mjs +1 -1
  251. package/dist/esm/bpm/process.mjs +1 -1
  252. package/dist/esm/bpm/tasks.mjs +1 -1
  253. package/dist/esm/bpm/tracer.mjs +1 -1
  254. package/dist/esm/bpm/values.mjs +1 -1
  255. package/dist/esm/cache/cache.mjs +1 -1
  256. package/dist/esm/cache/index.mjs +1 -1
  257. package/dist/esm/cms/cmis.mjs +1 -1
  258. package/dist/esm/cms/index.mjs +1 -1
  259. package/dist/esm/component/decorators.mjs +1 -1
  260. package/dist/esm/component/index.mjs +1 -1
  261. package/dist/esm/core/configurations.mjs +1 -1
  262. package/dist/esm/core/context.mjs +1 -1
  263. package/dist/esm/core/env.mjs +1 -1
  264. package/dist/esm/core/globals.mjs +1 -1
  265. package/dist/esm/core/index.mjs +1 -1
  266. package/dist/esm/db/dao.mjs +1 -1
  267. package/dist/esm/db/database.mjs +1 -1
  268. package/dist/esm/db/decorators.mjs +1 -1
  269. package/dist/esm/db/index.mjs +1 -1
  270. package/dist/esm/db/insert.mjs +1 -1
  271. package/dist/esm/db/orm.mjs +1 -1
  272. package/dist/esm/db/ormstatements.mjs +1 -1
  273. package/dist/esm/db/procedure.mjs +1 -1
  274. package/dist/esm/db/query.mjs +1 -1
  275. package/dist/esm/db/repository.mjs +1 -1
  276. package/dist/esm/db/sequence.mjs +1 -1
  277. package/dist/esm/db/sql.mjs +1 -1
  278. package/dist/esm/db/store.mjs +1 -1
  279. package/dist/esm/db/translator.mjs +1 -1
  280. package/dist/esm/db/update.mjs +1 -1
  281. package/dist/esm/etcd/client.mjs +1 -1
  282. package/dist/esm/etcd/index.mjs +1 -1
  283. package/dist/esm/extensions/decorators.mjs +1 -1
  284. package/dist/esm/extensions/extensions.mjs +1 -1
  285. package/dist/esm/extensions/index.mjs +1 -1
  286. package/dist/esm/git/client.mjs +1 -1
  287. package/dist/esm/git/index.mjs +1 -1
  288. package/dist/esm/http/client-async.mjs +1 -1
  289. package/dist/esm/http/client.mjs +1 -1
  290. package/dist/esm/http/decorators.mjs +1 -1
  291. package/dist/esm/http/errors/ForbiddenError.mjs +1 -1
  292. package/dist/esm/http/errors/ValidationError.mjs +1 -1
  293. package/dist/esm/http/errors.mjs +1 -1
  294. package/dist/esm/http/index.mjs +1 -1
  295. package/dist/esm/http/request.mjs +1 -1
  296. package/dist/esm/http/response.mjs +1 -1
  297. package/dist/esm/http/rs/resource-http-controller.mjs +1 -1
  298. package/dist/esm/http/rs/resource-mappings.mjs +1 -1
  299. package/dist/esm/http/rs/resource-method.mjs +1 -1
  300. package/dist/esm/http/rs/resource.mjs +1 -1
  301. package/dist/esm/http/rs.mjs +1 -1
  302. package/dist/esm/http/session.mjs +1 -1
  303. package/dist/esm/http/upload.mjs +1 -1
  304. package/dist/esm/http/utils.mjs +1 -1
  305. package/dist/esm/indexing/index.mjs +1 -1
  306. package/dist/esm/indexing/searcher.mjs +1 -1
  307. package/dist/esm/indexing/writer.mjs +1 -1
  308. package/dist/esm/integrations/index.mjs +1 -1
  309. package/dist/esm/integrations/integrations.mjs +1 -1
  310. package/dist/esm/io/bytes.mjs +1 -1
  311. package/dist/esm/io/files.mjs +1 -1
  312. package/dist/esm/io/image.mjs +1 -1
  313. package/dist/esm/io/index.mjs +1 -1
  314. package/dist/esm/io/streams.mjs +1 -1
  315. package/dist/esm/io/zip.mjs +1 -1
  316. package/dist/esm/job/decorators.mjs +1 -1
  317. package/dist/esm/job/index.mjs +1 -1
  318. package/dist/esm/job/scheduler.mjs +1 -1
  319. package/dist/esm/junit/index.mjs +1 -1
  320. package/dist/esm/junit/junit.mjs +1 -1
  321. package/dist/esm/kafka/consumer.mjs +1 -1
  322. package/dist/esm/kafka/index.mjs +1 -1
  323. package/dist/esm/kafka/producer.mjs +1 -1
  324. package/dist/esm/log/index.mjs +1 -1
  325. package/dist/esm/log/logging.mjs +1 -1
  326. package/dist/esm/mail/client.mjs +1 -1
  327. package/dist/esm/mail/index.mjs +1 -1
  328. package/dist/esm/messaging/consumer.mjs +1 -1
  329. package/dist/esm/messaging/decorators.mjs +1 -1
  330. package/dist/esm/messaging/index.mjs +1 -1
  331. package/dist/esm/messaging/producer.mjs +1 -1
  332. package/dist/esm/mongodb/client.mjs +2 -2
  333. package/dist/esm/mongodb/dao.mjs +1 -1
  334. package/dist/esm/mongodb/index.mjs +1 -1
  335. package/dist/esm/net/decorators.mjs +1 -1
  336. package/dist/esm/net/index.mjs +1 -1
  337. package/dist/esm/net/soap.mjs +1 -1
  338. package/dist/esm/net/websockets.mjs +1 -1
  339. package/dist/esm/pdf/index.mjs +1 -1
  340. package/dist/esm/pdf/pdf.mjs +3 -3
  341. package/dist/esm/platform/command.mjs +1 -1
  342. package/dist/esm/platform/engines.mjs +1 -1
  343. package/dist/esm/platform/index.mjs +1 -1
  344. package/dist/esm/platform/lifecycle.mjs +1 -1
  345. package/dist/esm/platform/os.mjs +1 -1
  346. package/dist/esm/platform/problems.mjs +1 -1
  347. package/dist/esm/platform/registry.mjs +1 -1
  348. package/dist/esm/platform/repository.mjs +1 -1
  349. package/dist/esm/platform/workspace.mjs +1 -1
  350. package/dist/esm/qldb/index.mjs +1 -1
  351. package/dist/esm/qldb/qldb.mjs +1 -1
  352. package/dist/esm/rabbitmq/consumer.mjs +1 -1
  353. package/dist/esm/rabbitmq/index.mjs +1 -1
  354. package/dist/esm/rabbitmq/producer.mjs +1 -1
  355. package/dist/esm/redis/client.mjs +1 -1
  356. package/dist/esm/redis/index.mjs +1 -1
  357. package/dist/esm/security/decorators.mjs +1 -1
  358. package/dist/esm/security/index.mjs +1 -1
  359. package/dist/esm/security/oauth.mjs +1 -1
  360. package/dist/esm/security/user.mjs +1 -1
  361. package/dist/esm/template/engines.mjs +1 -1
  362. package/dist/esm/template/index.mjs +1 -1
  363. package/dist/esm/utils/alphanumeric.mjs +2 -2
  364. package/dist/esm/utils/base64.mjs +1 -1
  365. package/dist/esm/utils/converter.mjs +1 -1
  366. package/dist/esm/utils/digest.mjs +1 -1
  367. package/dist/esm/utils/escape.mjs +1 -1
  368. package/dist/esm/utils/hex.mjs +1 -1
  369. package/dist/esm/utils/index.mjs +1 -1
  370. package/dist/esm/utils/jsonpath.mjs +1 -1
  371. package/dist/esm/utils/qrcode.mjs +1 -1
  372. package/dist/esm/utils/url.mjs +1 -1
  373. package/dist/esm/utils/utf8.mjs +1 -1
  374. package/dist/esm/utils/uuid.mjs +1 -1
  375. package/dist/esm/utils/xml.mjs +1 -1
  376. package/package.json +1 -1
@@ -1,6 +1,34 @@
1
1
  /**
2
- * Provides a JavaScript/TypeScript wrapper (Facade) for making asynchronous HTTP requests.
2
+ * @module http/client-async
3
+ * @package @aerokit/sdk/http
4
+ * @name HttpAsyncClient
5
+ * @overview
3
6
  *
7
+ * The HttpAsyncClient class provides a JavaScript/TypeScript wrapper (Facade) for making asynchronous HTTP requests using the underlying Java HTTP client. It allows developers to perform non-blocking HTTP operations by defining success, error, and cancel callbacks as strings of executable JavaScript code. The class supports all standard HTTP methods (GET, POST, PUT, PATCH, DELETE, HEAD, TRACE) and accepts a comprehensive set of request options that mirror the capabilities of the Java client.
8
+ *
9
+ * ### Key Features:
10
+ * - **Asynchronous Execution**: All HTTP methods return immediately, with callbacks executed upon completion.
11
+ * - **Comprehensive Request Options**: Supports a wide range of configuration options for fine-tuning HTTP requests.
12
+ * - **Callback Flexibility**: Callbacks are defined as strings of JavaScript code, allowing for dynamic execution in the JVM environment.
13
+ *
14
+ * ### Use Cases:
15
+ * - **Non-blocking API Calls**: Ideal for scenarios where you want to perform HTTP requests without blocking the main execution thread.
16
+ * - **Complex Request Configurations**: Suitable for advanced use cases that require detailed request configurations and handling.
17
+ *
18
+ * ### Example Usage:
19
+ * ```ts
20
+ * import { HttpAsyncClient } from "@aerokit/sdk/http";
21
+ *
22
+ * const client = HttpAsyncClient.getInstance();
23
+ *
24
+ * client.getAsync("https://api.example.com/data", {
25
+ * success: "function(response) { console.log('Success:', response); }",
26
+ * error: "function(error) { console.error('Error:', error); }"
27
+ * }, {
28
+ * headers: [{ name: 'Authorization', value: 'Bearer token' }],
29
+ * params: [{ name: 'query', value: 'search term' }]
30
+ * });
31
+ * ```
4
32
  */
5
33
  /** Defines a single HTTP header, used for both request and response. */
6
34
  export interface HttpClientHeader {
@@ -1,6 +1,34 @@
1
1
  /**
2
- * Provides a JavaScript/TypeScript wrapper (Facade) for making synchronous HTTP requests.
2
+ * @module http/client
3
+ * @package @aerokit/sdk/http
4
+ * @name HttpClient
5
+ * @overview
3
6
  *
7
+ * The HttpClient class provides a JavaScript/TypeScript wrapper (Facade) for making synchronous HTTP requests. It abstracts the underlying Java implementation and exposes a simple API for performing HTTP operations such as GET, POST, PUT, PATCH, DELETE, HEAD, and TRACE. The class allows developers to configure various aspects of the HTTP request, including headers, query parameters, request body content, timeouts, and more.
8
+ *
9
+ * ### Key Features:
10
+ * - **Synchronous Requests**: All methods execute synchronously, blocking until a response is received.
11
+ * - **Comprehensive Configuration**: Supports a wide range of options for customizing the HTTP request.
12
+ * - **Structured Response**: Returns a structured response object containing status, headers, and body content.
13
+ *
14
+ * ### Use Cases:
15
+ * - **API Consumption**: Ideal for scenarios where you need to consume external APIs and require a simple interface for making HTTP requests.
16
+ * - **Testing and Scripting**: Useful in testing scenarios or scripts where synchronous execution is acceptable and simplicity is desired.
17
+ *
18
+ * ### Example Usage:
19
+ * ```ts
20
+ * import { HttpClient } from "@aerokit/sdk/http";
21
+ *
22
+ * const response = HttpClient.get("https://api.example.com/data", {
23
+ * headers: [{ name: "Authorization", value: "Bearer token" }],
24
+ * params: [{ name: "query", value: "search term" }],
25
+ * timeout: 5000
26
+ * });
27
+ *
28
+ * console.log(response.statusCode); // e.g., 200
29
+ * console.log(response.text); // Response body as text
30
+ * console.log(response.headers); // Array of response headers
31
+ * ```
4
32
  */
5
33
  /**
6
34
  * Defines a single HTTP header, used for both request and response.
@@ -1,3 +1,41 @@
1
+ /**
2
+ * @module http/decorators
3
+ * @package @aerokit/sdk/http
4
+ * @name Decorators
5
+ * @overview
6
+ *
7
+ * This module provides a set of decorators for defining HTTP controllers and their associated routes in a declarative manner. The decorators allow developers to annotate classes and methods to specify how they should handle HTTP requests, making it easier to create RESTful APIs with clear and concise code.
8
+ *
9
+ * ### Key Features:
10
+ * - **Controller Decorator**: The `@Controller` decorator is used to mark a class as an HTTP controller, which can contain multiple route handlers.
11
+ * - **HTTP Method Decorators**: Decorators such as `@Get`, `@Post`, `@Put`, `@Patch`, `@Delete`, `@Head`, and `@Options` are used to define the HTTP method and path for each route handler method within the controller.
12
+ * - **Documentation Decorator**: The `@Documentation` decorator allows developers to add documentation to their controllers or methods, which can be useful for generating API documentation.
13
+ *
14
+ * ### Use Cases:
15
+ * - **API Development**: These decorators are primarily used in the development of RESTful APIs, allowing developers to define their endpoints and handlers in a clear and structured way.
16
+ * - **Code Organization**: By using decorators, developers can keep their code organized and maintainable, separating the routing logic from the business logic within their controllers.
17
+ *
18
+ * ### Example Usage:
19
+ * ```ts
20
+ * import { Controller, Get, Post, Documentation } from "@aerokit/sdk/http";
21
+ *
22
+ * @Controller
23
+ * @Documentation("UserController handles user-related operations.")
24
+ * class UserController {
25
+ * @Get("/users/{id}")
26
+ * @Documentation("Retrieves a user by ID.")
27
+ * getUserById(id: string) {
28
+ * // Logic to retrieve user by ID
29
+ * }
30
+ *
31
+ * @Post("/users")
32
+ * @Documentation("Creates a new user.")
33
+ * createUser(userData: any) {
34
+ * // Logic to create a new user
35
+ * }
36
+ * }
37
+ * ```
38
+ */
1
39
  export declare function Controller(ctr: {
2
40
  new (): any;
3
41
  }, _context?: ClassDecoratorContext): void;
@@ -1,6 +1,10 @@
1
1
  /**
2
- * Custom error class representing a 403 Forbidden status, indicating
3
- * that the user does not have permission to access the requested resource.
2
+ * @module http/errors/ForbiddenError
3
+ * @package @aerokit/sdk/http
4
+ * @name ForbiddenError
5
+ * @overview
6
+ *
7
+ * This module defines the `ForbiddenError` class, a custom error type that represents a 403 Forbidden HTTP status. This error is typically thrown when a user attempts to access a resource or perform an action for which they do not have the necessary permissions. The `ForbiddenError` class extends the built-in `Error` class and provides a default error message, while also allowing for custom messages to be specified when instantiated.
4
8
  */
5
9
  export declare class ForbiddenError extends Error {
6
10
  /**
@@ -1,6 +1,10 @@
1
1
  /**
2
- * Custom error class used for representing failures due to invalid input
3
- * or data that violates domain-specific validation rules.
2
+ * @module http/errors/ValidationError
3
+ * @package @aerokit/sdk/http
4
+ * @name ValidationError
5
+ * @overview
6
+ *
7
+ * This module defines the `ValidationError` class, a custom error type that represents failures due to invalid input or data that violates domain-specific validation rules. The `ValidationError` class extends the built-in `Error` class and provides a default error message, while also allowing for custom messages to be specified when instantiated. This error is typically thrown when user input fails to meet certain criteria or when data does not conform to expected formats, helping developers to handle validation issues in a consistent manner across their applications.
4
8
  */
5
9
  export declare class ValidationError extends Error {
6
10
  /**
@@ -1,2 +1,16 @@
1
+ /**
2
+ * @module http/errors
3
+ * @package @aerokit/sdk/http
4
+ * @name Errors
5
+ * @overview
6
+ *
7
+ * This module provides HTTP-specific error classes for the Aerokit SDK.
8
+ * It includes custom error types for handling common HTTP response scenarios
9
+ * like forbidden access and validation failures.
10
+ *
11
+ * The main components of this module are:
12
+ * - ForbiddenError: Represents a 403 Forbidden HTTP error.
13
+ * - ValidationError: Represents validation-related errors in HTTP requests.
14
+ */
1
15
  export { ForbiddenError } from "./errors/ForbiddenError";
2
16
  export { ValidationError } from "./errors/ValidationError";
@@ -1,3 +1,21 @@
1
+ /**
2
+ * @module http/index
3
+ * @package @aerokit/sdk/http
4
+ * @overview
5
+ *
6
+ * This module provides functionalities for making HTTP requests within the Aerokit SDK. It includes classes and methods for sending HTTP requests, handling responses, managing sessions, and configuring HTTP clients.
7
+ *
8
+ * The main components of this module are:
9
+ * - HttpClient: Represents an HTTP client for sending requests and receiving responses.
10
+ * - Request: Represents an HTTP request with methods for setting headers, body, and other parameters.
11
+ * - Response: Represents an HTTP response with methods for accessing status, headers, and body content.
12
+ * - Session: Provides session management for maintaining state across multiple HTTP requests.
13
+ * - Upload: Provides functionalities for handling file uploads in HTTP requests.
14
+ * - Errors: Contains classes for handling various HTTP-related errors and exceptions.
15
+ * - Utils: Provides utility functions for working with HTTP requests and responses.
16
+ * - AsyncClient: Represents an asynchronous HTTP client for sending requests and receiving responses in a non-blocking manner.
17
+ * - Decorators: Provides decorators for defining HTTP endpoints and their properties in a declarative manner.
18
+ */
1
19
  export * as asyncClient from "./client-async";
2
20
  export * from "./client";
3
21
  export { HttpClient as client } from "./client";
@@ -1,8 +1,35 @@
1
1
  /**
2
- * The Request API under the HTTP module is responsible for
3
- * managing standard HTTP request parameters, headers, cookies,
4
- * and request metadata provided to server-side scripting services.
2
+ * @module http/request
3
+ * @package @aerokit/sdk/http
4
+ * @name Request
5
+ * @overview
5
6
  *
7
+ * The Request class provides a comprehensive API for accessing HTTP request data and metadata within server-side scripting services. It abstracts the underlying HTTP request details and exposes a rich set of static methods to retrieve information such as headers, query parameters, cookies, authentication details, and the request body in various formats (text, JSON, binary).
8
+ *
9
+ * ### Key Features:
10
+ * - **Comprehensive Request Data Access**: Provides methods to access all aspects of the HTTP request, including headers, parameters, cookies, and body content.
11
+ * - **Convenient Body Parsing**: Offers built-in methods to retrieve the request body as text or parse it as JSON, simplifying common use cases.
12
+ * - **Security Information**: Allows checking user roles and authentication types directly from the request context.
13
+ *
14
+ * ### Use Cases:
15
+ * - **API Development**: Used in RESTful API endpoints to access incoming request data and make decisions based on headers, parameters, or authentication status.
16
+ * - **Middleware Logic**: Can be used in middleware functions to inspect requests before they reach the main handler logic.
17
+ *
18
+ * ### Example Usage:
19
+ * ```ts
20
+ * import { Request } from "@aerokit/sdk/http";
21
+ *
22
+ * function handleRequest() {
23
+ * if (Request.isValid()) {
24
+ * const method = Request.getMethod();
25
+ * const user = Request.getRemoteUser();
26
+ * const body = Request.json();
27
+ * // Process the request based on method, user, and body content
28
+ * } else {
29
+ * // Handle invalid request context
30
+ * }
31
+ * }
32
+ * ```
6
33
  */
7
34
  import { InputStream } from "@aerokit/sdk/io/streams";
8
35
  import { Cookie } from "./response";
@@ -1,7 +1,44 @@
1
1
  /**
2
- * Provides a static façade (`Response` class) for managing the HTTP response.
3
- * This class wraps a native Java HTTP response object, offering methods for setting
4
- * status codes, headers, cookies, and writing content (text, JSON, or binary).
2
+ * @module http/response
3
+ * @package @aerokit/sdk/http
4
+ * @name Response
5
+ * @overview
6
+ *
7
+ * The `Response` class provides a static façade for managing the HTTP response in a server context. It wraps a native Java HTTP response object, offering methods for setting status codes, headers, cookies, and writing content (text, JSON, or binary) to the response body. The class also includes constants for standard HTTP status codes and a mapping of these codes to their reason phrases as defined in RFC 7231.
8
+ *
9
+ * ### Key Features:
10
+ * - **HTTP Status Codes**: Provides constants for all standard HTTP status codes, making it easier to set response statuses without memorizing numeric values.
11
+ * - **Content Writing**: Methods for writing text, JSON, or binary data to the response body, with proper handling of character encoding.
12
+ * - **Header Management**: Methods for setting and adding headers, as well as checking for existing headers.
13
+ * - **Cookie Management**: A method for adding cookies to the response, with support for cookie attributes.
14
+ * - **Response Control**: Methods for flushing and closing the response output stream, sending redirects and errors, and resetting the response.
15
+ *
16
+ * ### Use Cases:
17
+ * - **API Development**: Used in HTTP controllers to construct responses to client requests in a structured and consistent manner.
18
+ * - **Web Application Development**: Useful in any server-side code that needs to send HTTP responses, such as rendering HTML pages or serving files.
19
+ *
20
+ * ### Example Usage:
21
+ * ```ts
22
+ * import { Response } from "@aerokit/sdk/http";
23
+ *
24
+ * // Sending a JSON response with a 200 OK status
25
+ * Response.setStatus(Response.OK);
26
+ * Response.json({ message: "Hello, world!" });
27
+ *
28
+ * // Sending a plain text response with a custom header
29
+ * Response.setHeader("X-Custom-Header", "CustomValue");
30
+ * Response.print("This is a plain text response.");
31
+ *
32
+ * // Adding a cookie to the response
33
+ * Response.addCookie({
34
+ * name: "sessionId",
35
+ * value: "abc123",
36
+ * attributes: {
37
+ * maxAge: "3600",
38
+ * path: "/"
39
+ * }
40
+ * });
41
+ * ```
5
42
  */
6
43
  import { OutputStream } from "@aerokit/sdk/io/streams";
7
44
  /**
@@ -1,3 +1,33 @@
1
+ /**
2
+ * @module http/rs/mappings
3
+ * @package @aerokit/sdk/http
4
+ * @name ResourceMappings
5
+ * @overview
6
+ *
7
+ * The ResourceMappings class is a core component of the HTTP controller module, responsible for managing the mappings between URL path templates and their corresponding resource handler specifications. It serves as the configuration store for the HttpController, allowing developers to define and manage their API resources in a structured manner.
8
+ *
9
+ * ### Key Features:
10
+ * - **Resource Management**: Allows defining resources with specific URL path templates and their associated handlers.
11
+ *
12
+ * ### Use Cases:
13
+ * - **API Configuration**: Developers can use ResourceMappings to configure their API endpoints, specifying the paths and the logic that should handle requests to those paths.
14
+ *
15
+ * ### Example Usage:
16
+ * ```ts
17
+ * import { ResourceMappings } from "@aerokit/sdk/http";
18
+ *
19
+ * const resourceMappings = new ResourceMappings({
20
+ * "users/{id}": {
21
+ * get: (req, res) => { ... },
22
+ * post: (req, res) => { ... }
23
+ * },
24
+ * "products/{id}": {
25
+ * get: (req, res) => { ... },
26
+ * post: (req, res) => { ... }
27
+ * }
28
+ * });
29
+ * ```
30
+ */
1
31
  import { Resource } from "./resource";
2
32
  /**
3
33
  * The ResourceMappings class abstracts the mappings between resource URL path templates
@@ -1,3 +1,41 @@
1
+ /**
2
+ * @module http/rs
3
+ * @package @aerokit/sdk/http
4
+ * @name RestService
5
+ * @overview
6
+ *
7
+ * This module provides REST service utilities for the Aerokit SDK.
8
+ * It includes decorators and classes for building HTTP controllers,
9
+ * defining resource methods, and managing RESTful endpoints.
10
+ *
11
+ * The main components of this module are:
12
+ * - service: Service decorator for HTTP services.
13
+ * - HttpController: Base class for HTTP controllers.
14
+ * - ResourceMethod: Enum or decorator for HTTP methods (GET, POST, etc.).
15
+ * - ResourceMappings: Utilities for mapping resources to endpoints.
16
+ * - Resource: Decorator for defining REST resources.
17
+ *
18
+ * ### Example Usage:
19
+ * ```ts
20
+ * import { Controller, Get, Post, Documentation } from "@aerokit/sdk/http";
21
+ *
22
+ * @Controller
23
+ * @Documentation("UserController handles user-related operations.")
24
+ * class UserController {
25
+ * @Get("/users/{id}")
26
+ * @Documentation("Retrieves a user by ID.")
27
+ * getUserById(id: string) {
28
+ * // Logic to retrieve user by ID
29
+ * }
30
+ *
31
+ * @Post("/users")
32
+ * @Documentation("Creates a new user.")
33
+ * createUser(userData: any) {
34
+ * // Logic to create a new user
35
+ * }
36
+ * }
37
+ * ```
38
+ */
1
39
  export { service, HttpController } from "./rs/resource-http-controller";
2
40
  export { ResourceMethod } from "./rs/resource-method";
3
41
  export { ResourceMappings } from "./rs/resource-mappings";
@@ -1,7 +1,38 @@
1
1
  /**
2
- * Provides a static façade (`Session` class) for accessing and manipulating
3
- * the HTTP session associated with the current request. This module is often used
4
- * to store user-specific data during their interaction with the application.
2
+ * @module http/session
3
+ * @package @aerokit/sdk/http
4
+ * @name Session
5
+ * @overview
6
+ *
7
+ * The Session module provides a static façade (`Session` class) for accessing and manipulating the HTTP session associated with the current request. This module is often used to store user-specific data during their interaction with the application, such as authentication status, user preferences, or temporary data that should persist across multiple requests within the same session.
8
+ *
9
+ * ### Key Features:
10
+ * - **Session Management**: Provides methods to check session validity, retrieve and set attributes, manage session lifetime, and invalidate sessions.
11
+ * - **Attribute Handling**: Allows storing and retrieving named attributes in the session, which can be used to maintain user state across requests.
12
+ * - **Session Metadata**: Offers access to session metadata such as creation time, last accessed time, and session ID.
13
+ *
14
+ * ### Use Cases:
15
+ * - **User Authentication**: Storing user authentication status or tokens in the session to maintain login state across requests.
16
+ * - **User Preferences**: Keeping user-specific settings or preferences that should persist during the session.
17
+ * - **Temporary Data Storage**: Holding temporary data that is relevant for the duration of the user's interaction with the application but does not need to be stored permanently.
18
+ *
19
+ * ### Example Usage:
20
+ * ```ts
21
+ * import { Session } from "@aerokit/sdk/http";
22
+ *
23
+ * // Check if the session is valid
24
+ * if (Session.isValid()) {
25
+ * // Set a user attribute in the session
26
+ * Session.setAttribute("userId", "12345");
27
+ * // Retrieve the user attribute from the session
28
+ * const userId = Session.getAttribute("userId");
29
+ * // Get session metadata
30
+ * const creationTime = Session.getCreationTime();
31
+ * const lastAccessedTime = Session.getLastAccessedTime();
32
+ * // Invalidate the session when done
33
+ * Session.invalidate();
34
+ * }
35
+ * ```
5
36
  */
6
37
  /**
7
38
  * The static Session class provides methods to interact with the current user session
@@ -1,6 +1,31 @@
1
1
  /**
2
- * Provides a static façade (`Upload` class) for checking and parsing
3
- * multipart/form-data HTTP requests, typically used for file uploads.
2
+ * @module http/upload
3
+ * @package @aerokit/sdk/http
4
+ * @name Upload
5
+ * @overview
6
+ *
7
+ * The Upload module provides a static façade (`Upload` class) for checking and parsing multipart/form-data HTTP requests, which are commonly used for file uploads. This module allows developers to easily determine if an incoming request contains multipart content and to parse that content into manageable file items, abstracting away the complexities of handling multipart requests directly.
8
+ *
9
+ * ### Key Features:
10
+ * - **Multipart Detection**: The `isMultipartContent` method allows developers to quickly check if the incoming request is of the multipart/form-data type.
11
+ * - **Request Parsing**: The `parseRequest` method processes the multipart content and provides a structured representation of the uploaded files and form fields through the `FileItems` class.
12
+ *
13
+ * ### Use Cases:
14
+ * - **File Upload Handling**: This module is essential for handling file uploads in web applications, allowing developers to access uploaded files and their metadata easily.
15
+ * - **Form Data Processing**: In addition to file uploads, this module can also handle regular form fields that are part of a multipart request, making it versatile for various form processing scenarios.
16
+ *
17
+ * ### Example Usage:
18
+ * ```ts
19
+ * import { Upload } from "@aerokit/sdk/http";
20
+ *
21
+ * if (Upload.isMultipartContent()) {
22
+ * const fileItems = Upload.parseRequest();
23
+ * for (let i = 0; i < fileItems.size(); i++) {
24
+ * const fileItem = fileItems.get(i);
25
+ * console.log(`Uploaded file: ${fileItem.getName()}, size: ${fileItem.getSize()} bytes`);
26
+ * }
27
+ * }
28
+ * ```
4
29
  */
5
30
  import { InputStream } from "@aerokit/sdk/io/streams";
6
31
  /**
@@ -1,3 +1,45 @@
1
+ /**
2
+ * @module http/utils
3
+ * @package @aerokit/sdk/http
4
+ * @name HttpUtils
5
+ * @overview
6
+ *
7
+ * The HttpUtils class provides a collection of static utility methods for sending standardized HTTP responses in a consistent format. These methods abstract away the details of setting response status codes, content types, and formatting response bodies as JSON, allowing developers to easily send common success and error responses with minimal code.
8
+ *
9
+ * ### Key Features:
10
+ * - **Standardized Responses**: Provides methods for sending common HTTP responses such as 200 OK, 201 Created, 204 No Content, 400 Bad Request, 403 Forbidden, 404 Not Found, and 500 Internal Server Error.
11
+ * - **JSON Formatting**: Automatically formats response bodies as JSON, ensuring a consistent response structure across the application.
12
+ *
13
+ * ### Use Cases:
14
+ * - **API Development**: These utilities are essential for API development, allowing developers to quickly send appropriate responses based on the outcome of request processing.
15
+ * - **Error Handling**: Simplifies error handling by providing methods to send standardized error responses with descriptive messages.
16
+ *
17
+ * ### Example Usage:
18
+ * ```ts
19
+ * import { HttpUtils } from "@aerokit/sdk/http";
20
+ *
21
+ * // Sending a successful response with data
22
+ * HttpUtils.sendResponseOk({ id: "123", name: "Example" });
23
+ *
24
+ * // Sending a created response after creating a resource
25
+ * HttpUtils.sendResponseCreated({ id: "123", name: "New Resource" });
26
+ *
27
+ * // Sending a no content response after deleting a resource
28
+ * HttpUtils.sendResponseNoContent();
29
+ *
30
+ * // Sending a bad request error response
31
+ * HttpUtils.sendResponseBadRequest("Invalid input data");
32
+ *
33
+ * // Sending a forbidden error response
34
+ * HttpUtils.sendForbiddenRequest("You do not have permission to access this resource");
35
+ *
36
+ * // Sending a not found error response
37
+ * HttpUtils.sendResponseNotFound("Resource not found");
38
+ *
39
+ * // Sending an internal server error response
40
+ * HttpUtils.sendInternalServerError("An unexpected error occurred");
41
+ * ```
42
+ */
1
43
  /**
2
44
  * Provides convenient static methods for sending standard HTTP responses.
3
45
  * All responses are automatically formatted as 'application/json'.
@@ -1,3 +1,14 @@
1
+ /**
2
+ * @module indexing/index
3
+ * @package @aerokit/sdk/indexing
4
+ * @overview
5
+ *
6
+ * This module provides functionalities for indexing and search within the Aerokit SDK. It includes classes and methods for creating and managing search indexes, performing search queries, and writing data to indexes.
7
+ *
8
+ * The main components of this module are:
9
+ * - Searcher: Represents a searcher for performing search queries on an index and retrieving results.
10
+ * - Writer: Represents a writer for adding, updating, and deleting documents in an index.
11
+ */
1
12
  export * from "./searcher";
2
13
  export { Searcher as searcher } from "./searcher";
3
14
  export * from "./writer";
@@ -1,6 +1,39 @@
1
1
  /**
2
- * Provides a static façade (`Searcher` class) for performing
3
- * term-based and time-based queries against a native indexing service.
2
+ * @module indexing/searcher
3
+ * @package @aerokit/sdk/indexing
4
+ * @name Searcher
5
+ * @overview
6
+ *
7
+ * The Searcher class provides a static façade for performing term-based and time-based queries against a native indexing service. It allows developers to execute keyword searches and filter indexed entries based on their indexing timestamps, facilitating efficient retrieval of relevant data from the index.
8
+ *
9
+ * ### Key Features:
10
+ * - **Keyword Search**: The `search` method enables searching for entries in a specified index using keywords or search phrases.
11
+ * - **Time-Based Queries**: The `before`, `after`, and `between` methods allow filtering indexed entries based on their indexing timestamps, enabling retrieval of entries indexed before, after, or within a specific date range.
12
+ *
13
+ * ### Use Cases:
14
+ * - **Data Retrieval**: Developers can use the Searcher class to retrieve relevant data from an index based on keywords or time criteria, which is essential for applications that rely on indexed data for search functionality.
15
+ * - **Index Management**: The time-based query methods can be useful for managing and maintaining the index by identifying entries that may need to be updated or removed based on their age.
16
+ *
17
+ * ### Example Usage:
18
+ * ```ts
19
+ * import { Searcher } from "@aerokit/sdk/indexing";
20
+ *
21
+ * // Perform a keyword search in the 'documents' index
22
+ * const results = Searcher.search('documents', 'example search term');
23
+ * console.log(results);
24
+ *
25
+ * // Find entries indexed before a specific date
26
+ * const oldEntries = Searcher.before('documents', new Date('2023-01-01'));
27
+ * console.log(oldEntries);
28
+ *
29
+ * // Find entries indexed after a specific date
30
+ * const recentEntries = Searcher.after('documents', new Date('2023-06-01'));
31
+ * console.log(recentEntries);
32
+ *
33
+ * // Find entries indexed between two dates
34
+ * const entriesInRange = Searcher.between('documents', new Date('2023-01-01'), new Date('2023-06-01'));
35
+ * console.log(entriesInRange);
36
+ * ```
4
37
  */
5
38
  /**
6
39
  * The Searcher class provides methods for querying a specific index
@@ -1,6 +1,27 @@
1
1
  /**
2
- * Provides a static façade (`Writer` class) for adding new documents
3
- * or content to the native indexing service.
2
+ * @module indexing/writer
3
+ * @package @aerokit/sdk/indexing
4
+ * @name Writer
5
+ * @overview
6
+ *
7
+ * The Writer class provides a static façade for adding new documents or content to the native indexing service. It allows developers to index documents with full-text content, a last modification timestamp, and optional metadata, facilitating efficient organization and retrieval of indexed data.
8
+ *
9
+ * ### Key Features:
10
+ * - **Document Indexing**: The `add` method enables adding new documents to a specified index with relevant content and metadata.
11
+ * - **Metadata Support**: Allows associating additional key-value metadata with indexed documents, which can be useful for filtering and searching.
12
+ * - **Timestamp Management**: Supports specifying the last modification time of the document, which can be used for time-based queries and index maintenance.
13
+ *
14
+ * ### Use Cases:
15
+ * - **Content Management**: Developers can use the Writer class to index various types of content (e.g., articles, products, user profiles) to make them searchable within the application.
16
+ * - **Search Optimization**: By providing rich metadata and accurate timestamps, developers can enhance the search experience and relevance of results retrieved from the index.
17
+ *
18
+ * ### Example Usage:
19
+ * ```ts
20
+ * import { Writer } from "@aerokit/sdk/indexing";
21
+ *
22
+ * // Index a new document with metadata
23
+ * Writer.add('documents', '/path/to/document.txt', 'This is the full text content of the document.', new Date(), { author: 'John Doe', category: 'example' });
24
+ * ```
4
25
  */
5
26
  /**
6
27
  * The Writer class provides a static method for indexing documents, allowing
@@ -1,2 +1,12 @@
1
+ /**
2
+ * @module integrations/index
3
+ * @package @aerokit/sdk/integrations
4
+ * @overview
5
+ *
6
+ * This module provides functionalities for integrations within the Aerokit SDK. It includes classes and methods for managing integrations with external systems, such as databases, messaging systems, and third-party APIs.
7
+ *
8
+ * The main components of this module are:
9
+ * - Integrations: Represents a registry for managing integrations and provides methods to register and retrieve integrations.
10
+ */
1
11
  export * from "./integrations";
2
12
  export { Integrations as integrations } from "./integrations";
@@ -1,7 +1,31 @@
1
1
  /**
2
- * Provides a static façade for interacting with Apache Camel routes
3
- * within the execution environment. This allows JavaScript code to synchronously
4
- * invoke integration routes and access the current message context.
2
+ * @module integrations/integrations
3
+ * @package @aerokit/sdk/integrations
4
+ * @name Integrations
5
+ * @overview
6
+ *
7
+ * The Integrations class provides utility methods for triggering and interacting with predefined Apache Camel integration routes. It allows JavaScript code to synchronously invoke Camel routes by their unique identifiers, passing in a payload, headers, and exchange properties. Additionally, it provides access to the current message being processed within the integration context, enabling developers to read and modify message content and metadata during route execution.
8
+ *
9
+ * ### Key Features:
10
+ * - **Route Invocation**: The `invokeRoute` method allows developers to execute a specific Camel route by its ID, providing the necessary input data and context for the route to process.
11
+ * - **Message Access**: The `getInvokingRouteMessage` method provides access to the current message being processed in the integration context, allowing for dynamic interaction with the message's body, headers, and exchange properties.
12
+ *
13
+ * ### Use Cases:
14
+ * - **Integration Testing**: Developers can use the `invokeRoute` method to test individual Camel routes in isolation by providing controlled inputs and examining the outputs.
15
+ * - **Dynamic Message Manipulation**: By accessing the current message through `getInvokingRouteMessage`, developers can implement dynamic logic within their routes, such as modifying headers or altering the message body based on certain conditions.
16
+ *
17
+ * ### Example Usage:
18
+ * ```ts
19
+ * import { Integrations } from "@aerokit/sdk/integrations";
20
+ *
21
+ * // Invoke a Camel route with specific payload, headers, and exchange properties
22
+ * const result = Integrations.invokeRoute('myRouteId', { key: 'value' }, { header1: 'value1' }, { property1: 'value1' });
23
+ * console.log(result);
24
+ *
25
+ * // Access the current message within a route endpoint
26
+ * const currentMessage = Integrations.getInvokingRouteMessage();
27
+ * console.log(currentMessage.getBody());
28
+ * ```
5
29
  */
6
30
  declare const CamelMessage: any;
7
31
  /**