@artinet/sdk 0.5.18 → 0.6.0-preview.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 (399) hide show
  1. package/README.md +36 -617
  2. package/dist/browser/browser.d.ts +1 -1
  3. package/dist/browser/browser.js +1 -1
  4. package/dist/browser/client/a2a-client.d.ts +19 -18
  5. package/dist/browser/client/a2a-client.js +18 -6
  6. package/dist/browser/config/index.d.ts +158 -0
  7. package/dist/browser/config/index.js +155 -0
  8. package/dist/browser/config/observability.d.ts +119 -0
  9. package/dist/browser/config/observability.js +35 -0
  10. package/dist/browser/services/a2a/helpers/message-builder.d.ts +13 -8
  11. package/dist/browser/services/a2a/helpers/message-builder.js +5 -0
  12. package/dist/browser/transport/rpc/parser.d.ts +2 -2
  13. package/dist/browser/transport/rpc/parser.js +6 -6
  14. package/dist/browser/transport/rpc/rpc-client.d.ts +5 -5
  15. package/dist/browser/transport/rpc/rpc-client.js +6 -6
  16. package/dist/browser/transport/streaming/event-stream.d.ts +3 -3
  17. package/dist/browser/transport/streaming/event-stream.js +11 -10
  18. package/dist/browser/types/a2a/a2a.d.ts +378 -0
  19. package/dist/browser/types/a2a/a2a.js +14 -0
  20. package/dist/browser/types/a2a/builder.d.ts +43 -0
  21. package/dist/browser/types/a2a/index.d.ts +3 -0
  22. package/dist/browser/types/a2a/index.js +2 -0
  23. package/dist/{types/interfaces → browser/types}/client.d.ts +25 -27
  24. package/dist/browser/types/core/core.d.ts +31 -0
  25. package/dist/browser/types/core/index.d.ts +1 -0
  26. package/dist/browser/types/core/index.js +1 -0
  27. package/dist/browser/types/index.d.ts +6 -3
  28. package/dist/browser/types/index.js +6 -3
  29. package/dist/browser/types/mcp/index.d.ts +1 -0
  30. package/dist/browser/types/mcp/index.js +1 -0
  31. package/dist/browser/types/{interfaces/services/mcp/service.d.ts → mcp/mcp.d.ts} +4 -3
  32. package/dist/browser/types/{interfaces/services/a2a/context.js → mcp/mcp.js} +1 -1
  33. package/dist/browser/types/storage.d.ts +21 -0
  34. package/dist/browser/utils/common/constants.d.ts +7 -7
  35. package/dist/browser/utils/common/constants.js +9 -9
  36. package/dist/browser/utils/common/errors.d.ts +18 -18
  37. package/dist/browser/utils/common/errors.js +14 -14
  38. package/dist/browser/utils/common/utils.d.ts +23 -0
  39. package/dist/browser/utils/common/utils.js +32 -0
  40. package/dist/client/a2a-client.d.ts +19 -18
  41. package/dist/client/a2a-client.js +18 -6
  42. package/dist/config/default.d.ts +50 -0
  43. package/dist/config/default.js +62 -0
  44. package/dist/config/index.d.ts +158 -0
  45. package/dist/config/index.js +155 -0
  46. package/dist/config/observability.d.ts +119 -0
  47. package/dist/config/observability.js +35 -0
  48. package/dist/extensions/otel.d.ts +98 -0
  49. package/dist/extensions/otel.js +190 -0
  50. package/dist/extensions/pino.d.ts +44 -0
  51. package/dist/extensions/pino.js +107 -0
  52. package/dist/extensions/winston.d.ts +47 -0
  53. package/dist/extensions/winston.js +114 -0
  54. package/dist/index.d.ts +2 -0
  55. package/dist/index.js +2 -0
  56. package/dist/server/express/errors.js +3 -3
  57. package/dist/server/express/middeware.d.ts +2 -2
  58. package/dist/server/express/middeware.js +11 -4
  59. package/dist/server/express/server.d.ts +9 -56
  60. package/dist/server/express/server.js +21 -28
  61. package/dist/services/a2a/execute.d.ts +6 -0
  62. package/dist/services/a2a/execute.js +25 -0
  63. package/dist/services/a2a/factory/builder.d.ts +21 -80
  64. package/dist/services/a2a/factory/builder.js +20 -15
  65. package/dist/services/a2a/factory/context.d.ts +15 -128
  66. package/dist/services/a2a/factory/context.js +31 -136
  67. package/dist/services/a2a/factory/handler.d.ts +6 -0
  68. package/dist/services/a2a/factory/{method.js → handler.js} +2 -2
  69. package/dist/services/a2a/factory/index.d.ts +1 -2
  70. package/dist/services/a2a/factory/index.js +1 -2
  71. package/dist/services/a2a/factory/service.d.ts +20 -7
  72. package/dist/services/a2a/factory/service.js +4 -4
  73. package/dist/services/a2a/factory/state-machine.d.ts +11 -0
  74. package/dist/services/a2a/factory/state-machine.js +66 -0
  75. package/dist/services/a2a/{state/update → handlers}/artifact.d.ts +4 -4
  76. package/dist/services/a2a/handlers/cancel-task.d.ts +11 -0
  77. package/dist/services/a2a/handlers/cancel-task.js +33 -0
  78. package/dist/services/a2a/handlers/get-task.d.ts +11 -0
  79. package/dist/services/a2a/handlers/get-task.js +13 -0
  80. package/dist/services/a2a/handlers/resubscribe-task.d.ts +11 -0
  81. package/dist/services/a2a/handlers/resubscribe-task.js +56 -0
  82. package/dist/services/a2a/handlers/send-message.d.ts +11 -0
  83. package/dist/services/a2a/handlers/send-message.js +35 -0
  84. package/dist/services/a2a/handlers/stream-message.d.ts +11 -0
  85. package/dist/services/a2a/handlers/stream-message.js +19 -0
  86. package/dist/services/a2a/handlers/update.d.ts +17 -0
  87. package/dist/services/a2a/handlers/update.js +114 -0
  88. package/dist/services/a2a/helpers/agentcard-builder.d.ts +9 -5
  89. package/dist/services/a2a/helpers/agentcard-builder.js +4 -0
  90. package/dist/services/a2a/helpers/content.d.ts +2 -2
  91. package/dist/services/a2a/helpers/content.js +4 -0
  92. package/dist/services/a2a/helpers/history.d.ts +6 -2
  93. package/dist/services/a2a/helpers/history.js +4 -0
  94. package/dist/services/a2a/helpers/index.d.ts +2 -2
  95. package/dist/services/a2a/helpers/index.js +2 -2
  96. package/dist/services/a2a/helpers/message-builder.d.ts +13 -8
  97. package/dist/services/a2a/helpers/message-builder.js +5 -0
  98. package/dist/services/a2a/helpers/part.d.ts +9 -9
  99. package/dist/services/a2a/helpers/references.d.ts +6 -0
  100. package/dist/services/a2a/helpers/references.js +22 -0
  101. package/dist/services/a2a/index.d.ts +9 -5
  102. package/dist/services/a2a/index.js +8 -5
  103. package/dist/services/a2a/managers.d.ts +23 -0
  104. package/dist/services/a2a/managers.js +95 -0
  105. package/dist/services/a2a/messenger.d.ts +35 -0
  106. package/dist/services/{core/managers/command.js → a2a/messenger.js} +27 -31
  107. package/dist/services/a2a/service.d.ts +41 -372
  108. package/dist/services/a2a/service.js +238 -83
  109. package/dist/services/a2a/state-machine.d.ts +18 -0
  110. package/dist/services/a2a/state-machine.js +76 -0
  111. package/dist/services/a2a/streams.d.ts +22 -0
  112. package/dist/services/a2a/streams.js +98 -0
  113. package/dist/services/core/index.d.ts +1 -2
  114. package/dist/services/core/index.js +1 -2
  115. package/dist/services/core/manager.d.ts +15 -0
  116. package/dist/services/core/manager.js +42 -0
  117. package/dist/services/mcp/service.d.ts +11 -15
  118. package/dist/services/mcp/service.js +16 -15
  119. package/dist/transport/index.d.ts +0 -1
  120. package/dist/transport/index.js +1 -1
  121. package/dist/transport/rpc/parser.d.ts +2 -2
  122. package/dist/transport/rpc/parser.js +6 -6
  123. package/dist/transport/rpc/rpc-client.d.ts +5 -5
  124. package/dist/transport/rpc/rpc-client.js +6 -6
  125. package/dist/transport/streaming/event-stream.d.ts +3 -3
  126. package/dist/transport/streaming/event-stream.js +11 -10
  127. package/dist/transport/trpc/a2a/factory/router.d.ts +479 -871
  128. package/dist/transport/trpc/a2a/factory/router.js +2 -2
  129. package/dist/transport/trpc/a2a/routes/info.d.ts +108 -8
  130. package/dist/transport/trpc/a2a/routes/info.js +6 -2
  131. package/dist/transport/trpc/a2a/routes/message/route.d.ts +113 -162
  132. package/dist/transport/trpc/a2a/routes/message/route.js +7 -13
  133. package/dist/transport/trpc/a2a/routes/tasks/route.d.ts +114 -212
  134. package/dist/transport/trpc/a2a/routes/tasks/route.js +16 -19
  135. package/dist/transport/trpc/a2a/trpc.d.ts +9 -253
  136. package/dist/types/a2a/a2a.d.ts +378 -0
  137. package/dist/types/a2a/a2a.js +14 -0
  138. package/dist/types/a2a/builder.d.ts +43 -0
  139. package/dist/types/a2a/index.d.ts +3 -0
  140. package/dist/types/a2a/index.js +2 -0
  141. package/dist/{browser/types/interfaces → types}/client.d.ts +25 -27
  142. package/dist/types/core/core.d.ts +31 -0
  143. package/dist/types/core/index.d.ts +1 -0
  144. package/dist/types/core/index.js +1 -0
  145. package/dist/types/index.d.ts +6 -3
  146. package/dist/types/index.js +6 -3
  147. package/dist/types/mcp/index.d.ts +1 -0
  148. package/dist/types/mcp/index.js +1 -0
  149. package/dist/types/{interfaces/services/mcp/service.d.ts → mcp/mcp.d.ts} +4 -3
  150. package/dist/{browser/types/interfaces/services/a2a/engine.js → types/mcp/mcp.js} +1 -1
  151. package/dist/types/storage.d.ts +21 -0
  152. package/dist/utils/common/constants.d.ts +7 -7
  153. package/dist/utils/common/constants.js +9 -9
  154. package/dist/utils/common/errors.d.ts +18 -18
  155. package/dist/utils/common/errors.js +14 -14
  156. package/dist/utils/common/parse.d.ts +7 -0
  157. package/dist/utils/common/parse.js +14 -0
  158. package/dist/utils/common/schema-validation.d.ts +1 -1
  159. package/dist/utils/common/schema-validation.js +7 -7
  160. package/dist/utils/common/utils.d.ts +23 -0
  161. package/dist/utils/common/utils.js +32 -0
  162. package/dist/utils/common/zAsyncIterable-v3.d.ts +1 -1
  163. package/dist/utils/common/zAsyncIterable-v3.js +2 -1
  164. package/dist/utils/index.d.ts +2 -3
  165. package/dist/utils/index.js +2 -3
  166. package/dist/utils/storage/file.d.ts +8 -17
  167. package/dist/utils/storage/file.js +44 -73
  168. package/package.json +73 -13
  169. package/dist/browser/types/ext.d.ts +0 -13
  170. package/dist/browser/types/ext.js +0 -10
  171. package/dist/browser/types/interfaces/index.d.ts +0 -3
  172. package/dist/browser/types/interfaces/index.js +0 -3
  173. package/dist/browser/types/interfaces/services/a2a/builder.d.ts +0 -37
  174. package/dist/browser/types/interfaces/services/a2a/context.d.ts +0 -162
  175. package/dist/browser/types/interfaces/services/a2a/engine.d.ts +0 -7
  176. package/dist/browser/types/interfaces/services/a2a/index.d.ts +0 -5
  177. package/dist/browser/types/interfaces/services/a2a/index.js +0 -5
  178. package/dist/browser/types/interfaces/services/a2a/legacy.d.ts +0 -93
  179. package/dist/browser/types/interfaces/services/a2a/legacy.js +0 -5
  180. package/dist/browser/types/interfaces/services/a2a/service.d.ts +0 -413
  181. package/dist/browser/types/interfaces/services/a2a/service.js +0 -5
  182. package/dist/browser/types/interfaces/services/core/context/command.d.ts +0 -25
  183. package/dist/browser/types/interfaces/services/core/context/command.js +0 -5
  184. package/dist/browser/types/interfaces/services/core/context/context.d.ts +0 -207
  185. package/dist/browser/types/interfaces/services/core/context/context.js +0 -5
  186. package/dist/browser/types/interfaces/services/core/context/index.d.ts +0 -3
  187. package/dist/browser/types/interfaces/services/core/context/index.js +0 -3
  188. package/dist/browser/types/interfaces/services/core/context/types.d.ts +0 -11
  189. package/dist/browser/types/interfaces/services/core/context/types.js +0 -5
  190. package/dist/browser/types/interfaces/services/core/execution/engine.d.ts +0 -106
  191. package/dist/browser/types/interfaces/services/core/execution/engine.js +0 -5
  192. package/dist/browser/types/interfaces/services/core/execution/environment.d.ts +0 -11
  193. package/dist/browser/types/interfaces/services/core/execution/environment.js +0 -5
  194. package/dist/browser/types/interfaces/services/core/execution/execute.d.ts +0 -7
  195. package/dist/browser/types/interfaces/services/core/execution/execute.js +0 -5
  196. package/dist/browser/types/interfaces/services/core/execution/index.d.ts +0 -3
  197. package/dist/browser/types/interfaces/services/core/execution/index.js +0 -3
  198. package/dist/browser/types/interfaces/services/core/index.d.ts +0 -4
  199. package/dist/browser/types/interfaces/services/core/index.js +0 -4
  200. package/dist/browser/types/interfaces/services/core/managers/cancellation.d.ts +0 -9
  201. package/dist/browser/types/interfaces/services/core/managers/cancellation.js +0 -5
  202. package/dist/browser/types/interfaces/services/core/managers/connection.d.ts +0 -9
  203. package/dist/browser/types/interfaces/services/core/managers/connection.js +0 -5
  204. package/dist/browser/types/interfaces/services/core/managers/context.d.ts +0 -17
  205. package/dist/browser/types/interfaces/services/core/managers/context.js +0 -5
  206. package/dist/browser/types/interfaces/services/core/managers/event.d.ts +0 -328
  207. package/dist/browser/types/interfaces/services/core/managers/event.js +0 -5
  208. package/dist/browser/types/interfaces/services/core/managers/index.d.ts +0 -6
  209. package/dist/browser/types/interfaces/services/core/managers/index.js +0 -6
  210. package/dist/browser/types/interfaces/services/core/managers/stream.d.ts +0 -217
  211. package/dist/browser/types/interfaces/services/core/managers/stream.js +0 -5
  212. package/dist/browser/types/interfaces/services/core/managers/task.d.ts +0 -9
  213. package/dist/browser/types/interfaces/services/core/service.d.ts +0 -115
  214. package/dist/browser/types/interfaces/services/core/service.js +0 -5
  215. package/dist/browser/types/interfaces/services/index.d.ts +0 -4
  216. package/dist/browser/types/interfaces/services/index.js +0 -4
  217. package/dist/browser/types/interfaces/services/mcp/index.d.ts +0 -1
  218. package/dist/browser/types/interfaces/services/mcp/index.js +0 -1
  219. package/dist/browser/types/interfaces/services/mcp/service.js +0 -5
  220. package/dist/browser/types/interfaces/storage.d.ts +0 -8
  221. package/dist/browser/types/schemas/a2a/agent.d.ts +0 -2583
  222. package/dist/browser/types/schemas/a2a/agent.js +0 -323
  223. package/dist/browser/types/schemas/a2a/auth.d.ts +0 -908
  224. package/dist/browser/types/schemas/a2a/auth.js +0 -283
  225. package/dist/browser/types/schemas/a2a/error.d.ts +0 -396
  226. package/dist/browser/types/schemas/a2a/error.js +0 -163
  227. package/dist/browser/types/schemas/a2a/index.d.ts +0 -11
  228. package/dist/browser/types/schemas/a2a/index.js +0 -11
  229. package/dist/browser/types/schemas/a2a/kind.d.ts +0 -11
  230. package/dist/browser/types/schemas/a2a/kind.js +0 -20
  231. package/dist/browser/types/schemas/a2a/message.d.ts +0 -10343
  232. package/dist/browser/types/schemas/a2a/message.js +0 -130
  233. package/dist/browser/types/schemas/a2a/notification.d.ts +0 -1517
  234. package/dist/browser/types/schemas/a2a/notification.js +0 -203
  235. package/dist/browser/types/schemas/a2a/parameters.d.ts +0 -956
  236. package/dist/browser/types/schemas/a2a/parameters.js +0 -241
  237. package/dist/browser/types/schemas/a2a/protocol.d.ts +0 -14363
  238. package/dist/browser/types/schemas/a2a/protocol.js +0 -59
  239. package/dist/browser/types/schemas/a2a/rpc.d.ts +0 -182
  240. package/dist/browser/types/schemas/a2a/rpc.js +0 -126
  241. package/dist/browser/types/schemas/a2a/task.d.ts +0 -5886
  242. package/dist/browser/types/schemas/a2a/task.js +0 -134
  243. package/dist/browser/types/schemas/a2a/transport.d.ts +0 -31
  244. package/dist/browser/types/schemas/a2a/transport.js +0 -28
  245. package/dist/browser/types/schemas/index.d.ts +0 -1
  246. package/dist/browser/types/schemas/index.js +0 -1
  247. package/dist/browser/utils/logging/index.d.ts +0 -2
  248. package/dist/browser/utils/logging/index.js +0 -2
  249. package/dist/browser/utils/logging/log.d.ts +0 -33
  250. package/dist/browser/utils/logging/log.js +0 -75
  251. package/dist/browser/utils/logging/logger.d.ts +0 -18
  252. package/dist/browser/utils/logging/logger.js +0 -18
  253. package/dist/services/a2a/factory/event.d.ts +0 -58
  254. package/dist/services/a2a/factory/event.js +0 -177
  255. package/dist/services/a2a/factory/method.d.ts +0 -6
  256. package/dist/services/a2a/managers/cancellation.d.ts +0 -11
  257. package/dist/services/a2a/managers/cancellation.js +0 -16
  258. package/dist/services/a2a/managers/connection.d.ts +0 -11
  259. package/dist/services/a2a/managers/connection.js +0 -16
  260. package/dist/services/a2a/managers/context.d.ts +0 -11
  261. package/dist/services/a2a/managers/context.js +0 -16
  262. package/dist/services/a2a/managers/index.d.ts +0 -5
  263. package/dist/services/a2a/managers/index.js +0 -5
  264. package/dist/services/a2a/managers/task.d.ts +0 -11
  265. package/dist/services/a2a/managers/task.js +0 -16
  266. package/dist/services/a2a/methods/cancel-task.d.ts +0 -7
  267. package/dist/services/a2a/methods/cancel-task.js +0 -43
  268. package/dist/services/a2a/methods/get-task.d.ts +0 -112
  269. package/dist/services/a2a/methods/get-task.js +0 -16
  270. package/dist/services/a2a/methods/resubscribe-task.d.ts +0 -7
  271. package/dist/services/a2a/methods/resubscribe-task.js +0 -80
  272. package/dist/services/a2a/methods/send-message.d.ts +0 -7
  273. package/dist/services/a2a/methods/send-message.js +0 -36
  274. package/dist/services/a2a/methods/stream-message.d.ts +0 -8
  275. package/dist/services/a2a/methods/stream-message.js +0 -21
  276. package/dist/services/a2a/state/index.d.ts +0 -3
  277. package/dist/services/a2a/state/index.js +0 -3
  278. package/dist/services/a2a/state/load.d.ts +0 -14
  279. package/dist/services/a2a/state/load.js +0 -71
  280. package/dist/services/a2a/state/process.d.ts +0 -7
  281. package/dist/services/a2a/state/process.js +0 -13
  282. package/dist/services/a2a/state/update/index.d.ts +0 -2
  283. package/dist/services/a2a/state/update/index.js +0 -2
  284. package/dist/services/a2a/state/update/update.d.ts +0 -23
  285. package/dist/services/a2a/state/update/update.js +0 -123
  286. package/dist/services/core/execution/execute.d.ts +0 -6
  287. package/dist/services/core/execution/execute.js +0 -25
  288. package/dist/services/core/execution/index.d.ts +0 -1
  289. package/dist/services/core/execution/index.js +0 -1
  290. package/dist/services/core/managers/command.d.ts +0 -39
  291. package/dist/services/core/managers/event.d.ts +0 -18
  292. package/dist/services/core/managers/event.js +0 -56
  293. package/dist/services/core/managers/index.d.ts +0 -3
  294. package/dist/services/core/managers/index.js +0 -3
  295. package/dist/services/core/managers/stream.d.ts +0 -20
  296. package/dist/services/core/managers/stream.js +0 -77
  297. package/dist/types/ext.d.ts +0 -13
  298. package/dist/types/ext.js +0 -10
  299. package/dist/types/interfaces/index.d.ts +0 -3
  300. package/dist/types/interfaces/index.js +0 -3
  301. package/dist/types/interfaces/services/a2a/builder.d.ts +0 -37
  302. package/dist/types/interfaces/services/a2a/context.d.ts +0 -162
  303. package/dist/types/interfaces/services/a2a/context.js +0 -5
  304. package/dist/types/interfaces/services/a2a/engine.d.ts +0 -7
  305. package/dist/types/interfaces/services/a2a/engine.js +0 -5
  306. package/dist/types/interfaces/services/a2a/index.d.ts +0 -5
  307. package/dist/types/interfaces/services/a2a/index.js +0 -5
  308. package/dist/types/interfaces/services/a2a/legacy.d.ts +0 -93
  309. package/dist/types/interfaces/services/a2a/legacy.js +0 -5
  310. package/dist/types/interfaces/services/a2a/service.d.ts +0 -413
  311. package/dist/types/interfaces/services/a2a/service.js +0 -5
  312. package/dist/types/interfaces/services/core/context/command.d.ts +0 -25
  313. package/dist/types/interfaces/services/core/context/command.js +0 -5
  314. package/dist/types/interfaces/services/core/context/context.d.ts +0 -207
  315. package/dist/types/interfaces/services/core/context/context.js +0 -5
  316. package/dist/types/interfaces/services/core/context/index.d.ts +0 -3
  317. package/dist/types/interfaces/services/core/context/index.js +0 -3
  318. package/dist/types/interfaces/services/core/context/types.d.ts +0 -11
  319. package/dist/types/interfaces/services/core/context/types.js +0 -5
  320. package/dist/types/interfaces/services/core/execution/engine.d.ts +0 -106
  321. package/dist/types/interfaces/services/core/execution/engine.js +0 -5
  322. package/dist/types/interfaces/services/core/execution/environment.d.ts +0 -11
  323. package/dist/types/interfaces/services/core/execution/environment.js +0 -5
  324. package/dist/types/interfaces/services/core/execution/execute.d.ts +0 -7
  325. package/dist/types/interfaces/services/core/execution/execute.js +0 -5
  326. package/dist/types/interfaces/services/core/execution/index.d.ts +0 -3
  327. package/dist/types/interfaces/services/core/execution/index.js +0 -3
  328. package/dist/types/interfaces/services/core/index.d.ts +0 -4
  329. package/dist/types/interfaces/services/core/index.js +0 -4
  330. package/dist/types/interfaces/services/core/managers/cancellation.d.ts +0 -9
  331. package/dist/types/interfaces/services/core/managers/cancellation.js +0 -5
  332. package/dist/types/interfaces/services/core/managers/connection.d.ts +0 -9
  333. package/dist/types/interfaces/services/core/managers/connection.js +0 -5
  334. package/dist/types/interfaces/services/core/managers/context.d.ts +0 -17
  335. package/dist/types/interfaces/services/core/managers/context.js +0 -5
  336. package/dist/types/interfaces/services/core/managers/event.d.ts +0 -328
  337. package/dist/types/interfaces/services/core/managers/event.js +0 -5
  338. package/dist/types/interfaces/services/core/managers/index.d.ts +0 -6
  339. package/dist/types/interfaces/services/core/managers/index.js +0 -6
  340. package/dist/types/interfaces/services/core/managers/stream.d.ts +0 -217
  341. package/dist/types/interfaces/services/core/managers/stream.js +0 -5
  342. package/dist/types/interfaces/services/core/managers/task.d.ts +0 -9
  343. package/dist/types/interfaces/services/core/service.d.ts +0 -115
  344. package/dist/types/interfaces/services/core/service.js +0 -5
  345. package/dist/types/interfaces/services/index.d.ts +0 -4
  346. package/dist/types/interfaces/services/index.js +0 -4
  347. package/dist/types/interfaces/services/mcp/index.d.ts +0 -1
  348. package/dist/types/interfaces/services/mcp/index.js +0 -1
  349. package/dist/types/interfaces/services/mcp/service.js +0 -5
  350. package/dist/types/interfaces/storage.d.ts +0 -8
  351. package/dist/types/schemas/a2a/agent.d.ts +0 -2583
  352. package/dist/types/schemas/a2a/agent.js +0 -323
  353. package/dist/types/schemas/a2a/auth.d.ts +0 -908
  354. package/dist/types/schemas/a2a/auth.js +0 -283
  355. package/dist/types/schemas/a2a/error.d.ts +0 -396
  356. package/dist/types/schemas/a2a/error.js +0 -163
  357. package/dist/types/schemas/a2a/index.d.ts +0 -11
  358. package/dist/types/schemas/a2a/index.js +0 -11
  359. package/dist/types/schemas/a2a/kind.d.ts +0 -11
  360. package/dist/types/schemas/a2a/kind.js +0 -20
  361. package/dist/types/schemas/a2a/message.d.ts +0 -10343
  362. package/dist/types/schemas/a2a/message.js +0 -130
  363. package/dist/types/schemas/a2a/notification.d.ts +0 -1517
  364. package/dist/types/schemas/a2a/notification.js +0 -203
  365. package/dist/types/schemas/a2a/parameters.d.ts +0 -956
  366. package/dist/types/schemas/a2a/parameters.js +0 -241
  367. package/dist/types/schemas/a2a/protocol.d.ts +0 -14363
  368. package/dist/types/schemas/a2a/protocol.js +0 -59
  369. package/dist/types/schemas/a2a/rpc.d.ts +0 -182
  370. package/dist/types/schemas/a2a/rpc.js +0 -126
  371. package/dist/types/schemas/a2a/task.d.ts +0 -5886
  372. package/dist/types/schemas/a2a/task.js +0 -134
  373. package/dist/types/schemas/a2a/transport.d.ts +0 -31
  374. package/dist/types/schemas/a2a/transport.js +0 -28
  375. package/dist/types/schemas/index.d.ts +0 -1
  376. package/dist/types/schemas/index.js +0 -1
  377. package/dist/utils/logging/index.d.ts +0 -2
  378. package/dist/utils/logging/index.js +0 -2
  379. package/dist/utils/logging/log.d.ts +0 -33
  380. package/dist/utils/logging/log.js +0 -75
  381. package/dist/utils/logging/logger.d.ts +0 -18
  382. package/dist/utils/logging/logger.js +0 -18
  383. package/dist/utils/storage/memory.d.ts +0 -25
  384. package/dist/utils/storage/memory.js +0 -47
  385. /package/dist/browser/types/{interfaces/services/a2a → a2a}/builder.js +0 -0
  386. /package/dist/browser/types/{interfaces/client.js → client.js} +0 -0
  387. /package/dist/browser/types/{interfaces/services/core/managers/task.js → core/core.js} +0 -0
  388. /package/dist/browser/types/{interfaces/services/protocol.d.ts → protocol.d.ts} +0 -0
  389. /package/dist/browser/types/{interfaces/services/protocol.js → protocol.js} +0 -0
  390. /package/dist/browser/types/{interfaces/storage.js → storage.js} +0 -0
  391. /package/dist/services/a2a/{state/update → handlers}/artifact.js +0 -0
  392. /package/dist/services/a2a/{methods → handlers}/index.d.ts +0 -0
  393. /package/dist/services/a2a/{methods → handlers}/index.js +0 -0
  394. /package/dist/types/{interfaces/services/a2a → a2a}/builder.js +0 -0
  395. /package/dist/types/{interfaces/client.js → client.js} +0 -0
  396. /package/dist/types/{interfaces/services/core/managers/task.js → core/core.js} +0 -0
  397. /package/dist/types/{interfaces/services/protocol.d.ts → protocol.d.ts} +0 -0
  398. /package/dist/types/{interfaces/services/protocol.js → protocol.js} +0 -0
  399. /package/dist/types/{interfaces/storage.js → storage.js} +0 -0
@@ -1,908 +0,0 @@
1
- /**
2
- * Copyright 2025 The Artinet Project
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import { z } from "zod";
6
- /**
7
- * @description Type of a security scheme.
8
- */
9
- export declare const SecuritySchemeTypeSchema: z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>;
10
- export declare const SecuritySchemeType: z.Values<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>;
11
- export type SecuritySchemeType = z.infer<typeof SecuritySchemeTypeSchema>;
12
- /**
13
- * @description Base properties shared by all security schemes.
14
- */
15
- export declare const SecuritySchemeBaseSchema: z.ZodObject<{
16
- /**
17
- * @required Type of the security scheme.
18
- */
19
- type: z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>;
20
- /**
21
- * @optional Description of this security scheme.
22
- */
23
- description: z.ZodOptional<z.ZodString>;
24
- }, "strip", z.ZodTypeAny, {
25
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
26
- description?: string | undefined;
27
- }, {
28
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
29
- description?: string | undefined;
30
- }>;
31
- export type SecuritySchemeBase = z.infer<typeof SecuritySchemeBaseSchema>;
32
- /**
33
- * @description Defines a security scheme using an API key.
34
- */
35
- export declare const APIKeySecuritySchemeSchema: z.ZodObject<{
36
- description: z.ZodOptional<z.ZodString>;
37
- } & {
38
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "apiKey", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
39
- in: z.ZodEnum<["query", "header", "cookie"]>;
40
- name: z.ZodString;
41
- }, "strip", z.ZodTypeAny, {
42
- name: string;
43
- type: "apiKey";
44
- in: "header" | "query" | "cookie";
45
- description?: string | undefined;
46
- }, {
47
- name: string;
48
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
49
- in: "header" | "query" | "cookie";
50
- description?: string | undefined;
51
- }>;
52
- export type APIKeySecurityScheme = z.infer<typeof APIKeySecuritySchemeSchema>;
53
- /**
54
- * @description HTTP Authentication security scheme.
55
- */
56
- export declare const HTTPAuthSecuritySchemeSchema: z.ZodObject<{
57
- description: z.ZodOptional<z.ZodString>;
58
- } & {
59
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "http", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
60
- scheme: z.ZodString;
61
- bearerFormat: z.ZodOptional<z.ZodString>;
62
- }, "strip", z.ZodTypeAny, {
63
- type: "http";
64
- scheme: string;
65
- description?: string | undefined;
66
- bearerFormat?: string | undefined;
67
- }, {
68
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
69
- scheme: string;
70
- description?: string | undefined;
71
- bearerFormat?: string | undefined;
72
- }>;
73
- export type HTTPAuthSecurityScheme = z.infer<typeof HTTPAuthSecuritySchemeSchema>;
74
- /**
75
- * @description Configuration details for a supported Authorization Code OAuth Flow
76
- */
77
- export declare const AuthorizationCodeOAuthFlowSchema: z.ZodObject<{
78
- /**
79
- * @required The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2
80
- * standard requires the use of TLS
81
- */
82
- authorizationUrl: z.ZodString;
83
- /**
84
- * @required The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
85
- * requires the use of TLS.
86
- */
87
- tokenUrl: z.ZodString;
88
- /**
89
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
90
- * standard requires the use of TLS.
91
- */
92
- refreshUrl: z.ZodOptional<z.ZodString>;
93
- /**
94
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
95
- * description for it. The map MAY be empty.
96
- */
97
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
98
- }, "strip", z.ZodTypeAny, {
99
- authorizationUrl: string;
100
- tokenUrl: string;
101
- scopes: Record<string, string>;
102
- refreshUrl?: string | undefined;
103
- }, {
104
- authorizationUrl: string;
105
- tokenUrl: string;
106
- scopes: Record<string, string>;
107
- refreshUrl?: string | undefined;
108
- }>;
109
- export type AuthorizationCodeOAuthFlow = z.infer<typeof AuthorizationCodeOAuthFlowSchema>;
110
- /**
111
- * @description Configuration details for a supported Client Credentials OAuth Flow
112
- */
113
- export declare const ClientCredentialsOAuthFlowSchema: z.ZodObject<{
114
- /**
115
- * @required The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
116
- * requires the use of TLS.
117
- */
118
- tokenUrl: z.ZodString;
119
- /**
120
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
121
- * standard requires the use of TLS.
122
- */
123
- refreshUrl: z.ZodOptional<z.ZodString>;
124
- /**
125
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
126
- * description for it. The map MAY be empty.
127
- */
128
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
129
- }, "strip", z.ZodTypeAny, {
130
- tokenUrl: string;
131
- scopes: Record<string, string>;
132
- refreshUrl?: string | undefined;
133
- }, {
134
- tokenUrl: string;
135
- scopes: Record<string, string>;
136
- refreshUrl?: string | undefined;
137
- }>;
138
- export type ClientCredentialsOAuthFlow = z.infer<typeof ClientCredentialsOAuthFlowSchema>;
139
- /**
140
- * @description Configuration details for a supported Implicit OAuth Flow
141
- */
142
- export declare const ImplicitOAuthFlowSchema: z.ZodObject<{
143
- /**
144
- * @required The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2
145
- * standard requires the use of TLS
146
- */
147
- authorizationUrl: z.ZodString;
148
- /**
149
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
150
- * standard requires the use of TLS.
151
- */
152
- refreshUrl: z.ZodOptional<z.ZodString>;
153
- /**
154
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
155
- * description for it. The map MAY be empty.
156
- */
157
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
158
- }, "strip", z.ZodTypeAny, {
159
- authorizationUrl: string;
160
- scopes: Record<string, string>;
161
- refreshUrl?: string | undefined;
162
- }, {
163
- authorizationUrl: string;
164
- scopes: Record<string, string>;
165
- refreshUrl?: string | undefined;
166
- }>;
167
- export type ImplicitOAuthFlow = z.infer<typeof ImplicitOAuthFlowSchema>;
168
- /**
169
- * @description Configuration details for a supported Password OAuth Flow
170
- */
171
- export declare const PasswordOAuthFlowSchema: z.ZodObject<{
172
- /**
173
- * @required The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
174
- * requires the use of TLS.
175
- */
176
- tokenUrl: z.ZodString;
177
- /**
178
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
179
- * standard requires the use of TLS.
180
- */
181
- refreshUrl: z.ZodOptional<z.ZodString>;
182
- /**
183
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
184
- * description for it. The map MAY be empty.
185
- */
186
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
187
- }, "strip", z.ZodTypeAny, {
188
- tokenUrl: string;
189
- scopes: Record<string, string>;
190
- refreshUrl?: string | undefined;
191
- }, {
192
- tokenUrl: string;
193
- scopes: Record<string, string>;
194
- refreshUrl?: string | undefined;
195
- }>;
196
- export type PasswordOAuthFlow = z.infer<typeof PasswordOAuthFlowSchema>;
197
- /**
198
- * @description The configuration of supported OAuth Flows
199
- */
200
- export declare const OAuthFlowsSchema: z.ZodObject<{
201
- /**
202
- * @optional Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0.
203
- */
204
- authorizationCode: z.ZodOptional<z.ZodObject<{
205
- /**
206
- * @required The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2
207
- * standard requires the use of TLS
208
- */
209
- authorizationUrl: z.ZodString;
210
- /**
211
- * @required The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
212
- * requires the use of TLS.
213
- */
214
- tokenUrl: z.ZodString;
215
- /**
216
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
217
- * standard requires the use of TLS.
218
- */
219
- refreshUrl: z.ZodOptional<z.ZodString>;
220
- /**
221
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
222
- * description for it. The map MAY be empty.
223
- */
224
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
225
- }, "strip", z.ZodTypeAny, {
226
- authorizationUrl: string;
227
- tokenUrl: string;
228
- scopes: Record<string, string>;
229
- refreshUrl?: string | undefined;
230
- }, {
231
- authorizationUrl: string;
232
- tokenUrl: string;
233
- scopes: Record<string, string>;
234
- refreshUrl?: string | undefined;
235
- }>>;
236
- /**
237
- * @optional Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0
238
- */
239
- clientCredentials: z.ZodOptional<z.ZodObject<{
240
- /**
241
- * @required The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
242
- * requires the use of TLS.
243
- */
244
- tokenUrl: z.ZodString;
245
- /**
246
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
247
- * standard requires the use of TLS.
248
- */
249
- refreshUrl: z.ZodOptional<z.ZodString>;
250
- /**
251
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
252
- * description for it. The map MAY be empty.
253
- */
254
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
255
- }, "strip", z.ZodTypeAny, {
256
- tokenUrl: string;
257
- scopes: Record<string, string>;
258
- refreshUrl?: string | undefined;
259
- }, {
260
- tokenUrl: string;
261
- scopes: Record<string, string>;
262
- refreshUrl?: string | undefined;
263
- }>>;
264
- /**
265
- * @optional Configuration for the OAuth Implicit flow
266
- */
267
- implicit: z.ZodOptional<z.ZodObject<{
268
- /**
269
- * @required The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2
270
- * standard requires the use of TLS
271
- */
272
- authorizationUrl: z.ZodString;
273
- /**
274
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
275
- * standard requires the use of TLS.
276
- */
277
- refreshUrl: z.ZodOptional<z.ZodString>;
278
- /**
279
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
280
- * description for it. The map MAY be empty.
281
- */
282
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
283
- }, "strip", z.ZodTypeAny, {
284
- authorizationUrl: string;
285
- scopes: Record<string, string>;
286
- refreshUrl?: string | undefined;
287
- }, {
288
- authorizationUrl: string;
289
- scopes: Record<string, string>;
290
- refreshUrl?: string | undefined;
291
- }>>;
292
- /**
293
- * @optional Configuration for the OAuth Resource Owner Password flow
294
- */
295
- password: z.ZodOptional<z.ZodObject<{
296
- /**
297
- * @required The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
298
- * requires the use of TLS.
299
- */
300
- tokenUrl: z.ZodString;
301
- /**
302
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
303
- * standard requires the use of TLS.
304
- */
305
- refreshUrl: z.ZodOptional<z.ZodString>;
306
- /**
307
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
308
- * description for it. The map MAY be empty.
309
- */
310
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
311
- }, "strip", z.ZodTypeAny, {
312
- tokenUrl: string;
313
- scopes: Record<string, string>;
314
- refreshUrl?: string | undefined;
315
- }, {
316
- tokenUrl: string;
317
- scopes: Record<string, string>;
318
- refreshUrl?: string | undefined;
319
- }>>;
320
- }, "strip", z.ZodTypeAny, {
321
- authorizationCode?: {
322
- authorizationUrl: string;
323
- tokenUrl: string;
324
- scopes: Record<string, string>;
325
- refreshUrl?: string | undefined;
326
- } | undefined;
327
- clientCredentials?: {
328
- tokenUrl: string;
329
- scopes: Record<string, string>;
330
- refreshUrl?: string | undefined;
331
- } | undefined;
332
- implicit?: {
333
- authorizationUrl: string;
334
- scopes: Record<string, string>;
335
- refreshUrl?: string | undefined;
336
- } | undefined;
337
- password?: {
338
- tokenUrl: string;
339
- scopes: Record<string, string>;
340
- refreshUrl?: string | undefined;
341
- } | undefined;
342
- }, {
343
- authorizationCode?: {
344
- authorizationUrl: string;
345
- tokenUrl: string;
346
- scopes: Record<string, string>;
347
- refreshUrl?: string | undefined;
348
- } | undefined;
349
- clientCredentials?: {
350
- tokenUrl: string;
351
- scopes: Record<string, string>;
352
- refreshUrl?: string | undefined;
353
- } | undefined;
354
- implicit?: {
355
- authorizationUrl: string;
356
- scopes: Record<string, string>;
357
- refreshUrl?: string | undefined;
358
- } | undefined;
359
- password?: {
360
- tokenUrl: string;
361
- scopes: Record<string, string>;
362
- refreshUrl?: string | undefined;
363
- } | undefined;
364
- }>;
365
- export type OAuthFlows = z.infer<typeof OAuthFlowsSchema>;
366
- /**
367
- * @description OAuth2 security scheme configuration.
368
- */
369
- export declare const OAuth2SecuritySchemeSchema: z.ZodObject<{
370
- description: z.ZodOptional<z.ZodString>;
371
- } & {
372
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "oauth2", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
373
- flows: z.ZodObject<{
374
- /**
375
- * @optional Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0.
376
- */
377
- authorizationCode: z.ZodOptional<z.ZodObject<{
378
- /**
379
- * @required The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2
380
- * standard requires the use of TLS
381
- */
382
- authorizationUrl: z.ZodString;
383
- /**
384
- * @required The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
385
- * requires the use of TLS.
386
- */
387
- tokenUrl: z.ZodString;
388
- /**
389
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
390
- * standard requires the use of TLS.
391
- */
392
- refreshUrl: z.ZodOptional<z.ZodString>;
393
- /**
394
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
395
- * description for it. The map MAY be empty.
396
- */
397
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
398
- }, "strip", z.ZodTypeAny, {
399
- authorizationUrl: string;
400
- tokenUrl: string;
401
- scopes: Record<string, string>;
402
- refreshUrl?: string | undefined;
403
- }, {
404
- authorizationUrl: string;
405
- tokenUrl: string;
406
- scopes: Record<string, string>;
407
- refreshUrl?: string | undefined;
408
- }>>;
409
- /**
410
- * @optional Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0
411
- */
412
- clientCredentials: z.ZodOptional<z.ZodObject<{
413
- /**
414
- * @required The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
415
- * requires the use of TLS.
416
- */
417
- tokenUrl: z.ZodString;
418
- /**
419
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
420
- * standard requires the use of TLS.
421
- */
422
- refreshUrl: z.ZodOptional<z.ZodString>;
423
- /**
424
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
425
- * description for it. The map MAY be empty.
426
- */
427
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
428
- }, "strip", z.ZodTypeAny, {
429
- tokenUrl: string;
430
- scopes: Record<string, string>;
431
- refreshUrl?: string | undefined;
432
- }, {
433
- tokenUrl: string;
434
- scopes: Record<string, string>;
435
- refreshUrl?: string | undefined;
436
- }>>;
437
- /**
438
- * @optional Configuration for the OAuth Implicit flow
439
- */
440
- implicit: z.ZodOptional<z.ZodObject<{
441
- /**
442
- * @required The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2
443
- * standard requires the use of TLS
444
- */
445
- authorizationUrl: z.ZodString;
446
- /**
447
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
448
- * standard requires the use of TLS.
449
- */
450
- refreshUrl: z.ZodOptional<z.ZodString>;
451
- /**
452
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
453
- * description for it. The map MAY be empty.
454
- */
455
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
456
- }, "strip", z.ZodTypeAny, {
457
- authorizationUrl: string;
458
- scopes: Record<string, string>;
459
- refreshUrl?: string | undefined;
460
- }, {
461
- authorizationUrl: string;
462
- scopes: Record<string, string>;
463
- refreshUrl?: string | undefined;
464
- }>>;
465
- /**
466
- * @optional Configuration for the OAuth Resource Owner Password flow
467
- */
468
- password: z.ZodOptional<z.ZodObject<{
469
- /**
470
- * @required The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
471
- * requires the use of TLS.
472
- */
473
- tokenUrl: z.ZodString;
474
- /**
475
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
476
- * standard requires the use of TLS.
477
- */
478
- refreshUrl: z.ZodOptional<z.ZodString>;
479
- /**
480
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
481
- * description for it. The map MAY be empty.
482
- */
483
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
484
- }, "strip", z.ZodTypeAny, {
485
- tokenUrl: string;
486
- scopes: Record<string, string>;
487
- refreshUrl?: string | undefined;
488
- }, {
489
- tokenUrl: string;
490
- scopes: Record<string, string>;
491
- refreshUrl?: string | undefined;
492
- }>>;
493
- }, "strip", z.ZodTypeAny, {
494
- authorizationCode?: {
495
- authorizationUrl: string;
496
- tokenUrl: string;
497
- scopes: Record<string, string>;
498
- refreshUrl?: string | undefined;
499
- } | undefined;
500
- clientCredentials?: {
501
- tokenUrl: string;
502
- scopes: Record<string, string>;
503
- refreshUrl?: string | undefined;
504
- } | undefined;
505
- implicit?: {
506
- authorizationUrl: string;
507
- scopes: Record<string, string>;
508
- refreshUrl?: string | undefined;
509
- } | undefined;
510
- password?: {
511
- tokenUrl: string;
512
- scopes: Record<string, string>;
513
- refreshUrl?: string | undefined;
514
- } | undefined;
515
- }, {
516
- authorizationCode?: {
517
- authorizationUrl: string;
518
- tokenUrl: string;
519
- scopes: Record<string, string>;
520
- refreshUrl?: string | undefined;
521
- } | undefined;
522
- clientCredentials?: {
523
- tokenUrl: string;
524
- scopes: Record<string, string>;
525
- refreshUrl?: string | undefined;
526
- } | undefined;
527
- implicit?: {
528
- authorizationUrl: string;
529
- scopes: Record<string, string>;
530
- refreshUrl?: string | undefined;
531
- } | undefined;
532
- password?: {
533
- tokenUrl: string;
534
- scopes: Record<string, string>;
535
- refreshUrl?: string | undefined;
536
- } | undefined;
537
- }>;
538
- oauth2MetadataUrl: z.ZodOptional<z.ZodString>;
539
- }, "strip", z.ZodTypeAny, {
540
- type: "oauth2";
541
- flows: {
542
- authorizationCode?: {
543
- authorizationUrl: string;
544
- tokenUrl: string;
545
- scopes: Record<string, string>;
546
- refreshUrl?: string | undefined;
547
- } | undefined;
548
- clientCredentials?: {
549
- tokenUrl: string;
550
- scopes: Record<string, string>;
551
- refreshUrl?: string | undefined;
552
- } | undefined;
553
- implicit?: {
554
- authorizationUrl: string;
555
- scopes: Record<string, string>;
556
- refreshUrl?: string | undefined;
557
- } | undefined;
558
- password?: {
559
- tokenUrl: string;
560
- scopes: Record<string, string>;
561
- refreshUrl?: string | undefined;
562
- } | undefined;
563
- };
564
- description?: string | undefined;
565
- oauth2MetadataUrl?: string | undefined;
566
- }, {
567
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
568
- flows: {
569
- authorizationCode?: {
570
- authorizationUrl: string;
571
- tokenUrl: string;
572
- scopes: Record<string, string>;
573
- refreshUrl?: string | undefined;
574
- } | undefined;
575
- clientCredentials?: {
576
- tokenUrl: string;
577
- scopes: Record<string, string>;
578
- refreshUrl?: string | undefined;
579
- } | undefined;
580
- implicit?: {
581
- authorizationUrl: string;
582
- scopes: Record<string, string>;
583
- refreshUrl?: string | undefined;
584
- } | undefined;
585
- password?: {
586
- tokenUrl: string;
587
- scopes: Record<string, string>;
588
- refreshUrl?: string | undefined;
589
- } | undefined;
590
- };
591
- description?: string | undefined;
592
- oauth2MetadataUrl?: string | undefined;
593
- }>;
594
- export type OAuth2SecurityScheme = z.infer<typeof OAuth2SecuritySchemeSchema>;
595
- /**
596
- * @description OpenID Connect security scheme.
597
- */
598
- export declare const OpenIdConnectSecuritySchemeSchema: z.ZodObject<{
599
- description: z.ZodOptional<z.ZodString>;
600
- } & {
601
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "openIdConnect", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
602
- openIdConnectUrl: z.ZodString;
603
- }, "strip", z.ZodTypeAny, {
604
- type: "openIdConnect";
605
- openIdConnectUrl: string;
606
- description?: string | undefined;
607
- }, {
608
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
609
- openIdConnectUrl: string;
610
- description?: string | undefined;
611
- }>;
612
- export type OpenIdConnectSecurityScheme = z.infer<typeof OpenIdConnectSecuritySchemeSchema>;
613
- /**
614
- * @description Mutual TLS (mTLS) security scheme.
615
- */
616
- export declare const MutualTLSSecuritySchemeSchema: z.ZodObject<{
617
- description: z.ZodOptional<z.ZodString>;
618
- } & {
619
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "mutualTLS", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
620
- }, "strip", z.ZodTypeAny, {
621
- type: "mutualTLS";
622
- description?: string | undefined;
623
- }, {
624
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
625
- description?: string | undefined;
626
- }>;
627
- export type MutualTLSSecurityScheme = z.infer<typeof MutualTLSSecuritySchemeSchema>;
628
- export declare const SecuritySchemeSchema: z.ZodUnion<[z.ZodObject<{
629
- description: z.ZodOptional<z.ZodString>;
630
- } & {
631
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "apiKey", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
632
- in: z.ZodEnum<["query", "header", "cookie"]>;
633
- name: z.ZodString;
634
- }, "strip", z.ZodTypeAny, {
635
- name: string;
636
- type: "apiKey";
637
- in: "header" | "query" | "cookie";
638
- description?: string | undefined;
639
- }, {
640
- name: string;
641
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
642
- in: "header" | "query" | "cookie";
643
- description?: string | undefined;
644
- }>, z.ZodObject<{
645
- description: z.ZodOptional<z.ZodString>;
646
- } & {
647
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "http", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
648
- scheme: z.ZodString;
649
- bearerFormat: z.ZodOptional<z.ZodString>;
650
- }, "strip", z.ZodTypeAny, {
651
- type: "http";
652
- scheme: string;
653
- description?: string | undefined;
654
- bearerFormat?: string | undefined;
655
- }, {
656
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
657
- scheme: string;
658
- description?: string | undefined;
659
- bearerFormat?: string | undefined;
660
- }>, z.ZodObject<{
661
- description: z.ZodOptional<z.ZodString>;
662
- } & {
663
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "oauth2", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
664
- flows: z.ZodObject<{
665
- /**
666
- * @optional Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0.
667
- */
668
- authorizationCode: z.ZodOptional<z.ZodObject<{
669
- /**
670
- * @required The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2
671
- * standard requires the use of TLS
672
- */
673
- authorizationUrl: z.ZodString;
674
- /**
675
- * @required The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
676
- * requires the use of TLS.
677
- */
678
- tokenUrl: z.ZodString;
679
- /**
680
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
681
- * standard requires the use of TLS.
682
- */
683
- refreshUrl: z.ZodOptional<z.ZodString>;
684
- /**
685
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
686
- * description for it. The map MAY be empty.
687
- */
688
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
689
- }, "strip", z.ZodTypeAny, {
690
- authorizationUrl: string;
691
- tokenUrl: string;
692
- scopes: Record<string, string>;
693
- refreshUrl?: string | undefined;
694
- }, {
695
- authorizationUrl: string;
696
- tokenUrl: string;
697
- scopes: Record<string, string>;
698
- refreshUrl?: string | undefined;
699
- }>>;
700
- /**
701
- * @optional Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0
702
- */
703
- clientCredentials: z.ZodOptional<z.ZodObject<{
704
- /**
705
- * @required The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
706
- * requires the use of TLS.
707
- */
708
- tokenUrl: z.ZodString;
709
- /**
710
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
711
- * standard requires the use of TLS.
712
- */
713
- refreshUrl: z.ZodOptional<z.ZodString>;
714
- /**
715
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
716
- * description for it. The map MAY be empty.
717
- */
718
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
719
- }, "strip", z.ZodTypeAny, {
720
- tokenUrl: string;
721
- scopes: Record<string, string>;
722
- refreshUrl?: string | undefined;
723
- }, {
724
- tokenUrl: string;
725
- scopes: Record<string, string>;
726
- refreshUrl?: string | undefined;
727
- }>>;
728
- /**
729
- * @optional Configuration for the OAuth Implicit flow
730
- */
731
- implicit: z.ZodOptional<z.ZodObject<{
732
- /**
733
- * @required The authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2
734
- * standard requires the use of TLS
735
- */
736
- authorizationUrl: z.ZodString;
737
- /**
738
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
739
- * standard requires the use of TLS.
740
- */
741
- refreshUrl: z.ZodOptional<z.ZodString>;
742
- /**
743
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
744
- * description for it. The map MAY be empty.
745
- */
746
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
747
- }, "strip", z.ZodTypeAny, {
748
- authorizationUrl: string;
749
- scopes: Record<string, string>;
750
- refreshUrl?: string | undefined;
751
- }, {
752
- authorizationUrl: string;
753
- scopes: Record<string, string>;
754
- refreshUrl?: string | undefined;
755
- }>>;
756
- /**
757
- * @optional Configuration for the OAuth Resource Owner Password flow
758
- */
759
- password: z.ZodOptional<z.ZodObject<{
760
- /**
761
- * @required The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard
762
- * requires the use of TLS.
763
- */
764
- tokenUrl: z.ZodString;
765
- /**
766
- * @optional The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2
767
- * standard requires the use of TLS.
768
- */
769
- refreshUrl: z.ZodOptional<z.ZodString>;
770
- /**
771
- * @required The available scopes for the OAuth2 security scheme. A map between the scope name and a short
772
- * description for it. The map MAY be empty.
773
- */
774
- scopes: z.ZodRecord<z.ZodString, z.ZodString>;
775
- }, "strip", z.ZodTypeAny, {
776
- tokenUrl: string;
777
- scopes: Record<string, string>;
778
- refreshUrl?: string | undefined;
779
- }, {
780
- tokenUrl: string;
781
- scopes: Record<string, string>;
782
- refreshUrl?: string | undefined;
783
- }>>;
784
- }, "strip", z.ZodTypeAny, {
785
- authorizationCode?: {
786
- authorizationUrl: string;
787
- tokenUrl: string;
788
- scopes: Record<string, string>;
789
- refreshUrl?: string | undefined;
790
- } | undefined;
791
- clientCredentials?: {
792
- tokenUrl: string;
793
- scopes: Record<string, string>;
794
- refreshUrl?: string | undefined;
795
- } | undefined;
796
- implicit?: {
797
- authorizationUrl: string;
798
- scopes: Record<string, string>;
799
- refreshUrl?: string | undefined;
800
- } | undefined;
801
- password?: {
802
- tokenUrl: string;
803
- scopes: Record<string, string>;
804
- refreshUrl?: string | undefined;
805
- } | undefined;
806
- }, {
807
- authorizationCode?: {
808
- authorizationUrl: string;
809
- tokenUrl: string;
810
- scopes: Record<string, string>;
811
- refreshUrl?: string | undefined;
812
- } | undefined;
813
- clientCredentials?: {
814
- tokenUrl: string;
815
- scopes: Record<string, string>;
816
- refreshUrl?: string | undefined;
817
- } | undefined;
818
- implicit?: {
819
- authorizationUrl: string;
820
- scopes: Record<string, string>;
821
- refreshUrl?: string | undefined;
822
- } | undefined;
823
- password?: {
824
- tokenUrl: string;
825
- scopes: Record<string, string>;
826
- refreshUrl?: string | undefined;
827
- } | undefined;
828
- }>;
829
- oauth2MetadataUrl: z.ZodOptional<z.ZodString>;
830
- }, "strip", z.ZodTypeAny, {
831
- type: "oauth2";
832
- flows: {
833
- authorizationCode?: {
834
- authorizationUrl: string;
835
- tokenUrl: string;
836
- scopes: Record<string, string>;
837
- refreshUrl?: string | undefined;
838
- } | undefined;
839
- clientCredentials?: {
840
- tokenUrl: string;
841
- scopes: Record<string, string>;
842
- refreshUrl?: string | undefined;
843
- } | undefined;
844
- implicit?: {
845
- authorizationUrl: string;
846
- scopes: Record<string, string>;
847
- refreshUrl?: string | undefined;
848
- } | undefined;
849
- password?: {
850
- tokenUrl: string;
851
- scopes: Record<string, string>;
852
- refreshUrl?: string | undefined;
853
- } | undefined;
854
- };
855
- description?: string | undefined;
856
- oauth2MetadataUrl?: string | undefined;
857
- }, {
858
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
859
- flows: {
860
- authorizationCode?: {
861
- authorizationUrl: string;
862
- tokenUrl: string;
863
- scopes: Record<string, string>;
864
- refreshUrl?: string | undefined;
865
- } | undefined;
866
- clientCredentials?: {
867
- tokenUrl: string;
868
- scopes: Record<string, string>;
869
- refreshUrl?: string | undefined;
870
- } | undefined;
871
- implicit?: {
872
- authorizationUrl: string;
873
- scopes: Record<string, string>;
874
- refreshUrl?: string | undefined;
875
- } | undefined;
876
- password?: {
877
- tokenUrl: string;
878
- scopes: Record<string, string>;
879
- refreshUrl?: string | undefined;
880
- } | undefined;
881
- };
882
- description?: string | undefined;
883
- oauth2MetadataUrl?: string | undefined;
884
- }>, z.ZodObject<{
885
- description: z.ZodOptional<z.ZodString>;
886
- } & {
887
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "openIdConnect", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
888
- openIdConnectUrl: z.ZodString;
889
- }, "strip", z.ZodTypeAny, {
890
- type: "openIdConnect";
891
- openIdConnectUrl: string;
892
- description?: string | undefined;
893
- }, {
894
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
895
- openIdConnectUrl: string;
896
- description?: string | undefined;
897
- }>, z.ZodObject<{
898
- description: z.ZodOptional<z.ZodString>;
899
- } & {
900
- type: z.ZodEffects<z.ZodEnum<["apiKey", "http", "mutualTLS", "oauth2", "openIdConnect"]>, "mutualTLS", "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect">;
901
- }, "strip", z.ZodTypeAny, {
902
- type: "mutualTLS";
903
- description?: string | undefined;
904
- }, {
905
- type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
906
- description?: string | undefined;
907
- }>]>;
908
- export type SecurityScheme = z.infer<typeof SecuritySchemeSchema>;