@flowrunner/cli 0.1.19-dev.1 → 0.1.19-dev.3

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 (334) hide show
  1. package/ai-docs/instructions/service-code-format/01-service-structure.md +1 -1
  2. package/ai-docs/instructions/service-code-format/02-zod-types.md +6 -5
  3. package/ai-docs/instructions/service-code-format/05-dictionaries.md +1 -1
  4. package/ai-docs/instructions/service-code-format/11-output-model.md +2 -5
  5. package/ai-docs/instructions/service-code-format/13-runtime-contracts.md +2 -3
  6. package/ai-docs/instructions/service-code-format/17-client-certificates.md +4 -5
  7. package/ai-docs/instructions/service-code-format/README.md +2 -2
  8. package/dist/cli.js +322 -896
  9. package/dist/cli.js.map +4 -4
  10. package/dist/index.js +340 -908
  11. package/dist/index.js.map +4 -4
  12. package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/context/execution-context.d.ts +2 -2
  13. package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/extension.d.ts +3 -3
  14. package/dist/types/flow-extension-runner/src/global.d.ts +6 -18
  15. package/dist/types/flow-extension-runner/src/index.d.ts +39 -13
  16. package/dist/types/flow-extension-runner/src/{v2/model → model}/field-mapper.d.ts +1 -1
  17. package/dist/types/flow-extension-runner/src/{v2/model → model}/model-types.d.ts +11 -1
  18. package/dist/types/flow-extension-runner/src/{v2/model → model}/params-model.d.ts +1 -1
  19. package/dist/types/flow-extension-runner/src/{v2/params → params}/config-params.d.ts +1 -1
  20. package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/params/schema/messages.d.ts +1 -1
  21. package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/params/schema/normalize.d.ts +1 -1
  22. package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/parse.d.ts +1 -1
  23. package/dist/types/flow-extension-runner/src/{v2/params → params}/types.d.ts +1 -1
  24. package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/registry.d.ts +2 -0
  25. package/dist/types/flow-extension-runner/src/{v2/types.d.ts → types.d.ts} +1 -1
  26. package/dist/types/packages/cli/src/constants/testing.d.ts +13 -6
  27. package/dist/types/packages/cli/src/operations/deploy/discover-services.d.ts +2 -4
  28. package/dist/types/shared/src/constants/activity-log.d.ts +248 -2
  29. package/dist/types/shared/src/constants/error-codes.d.ts +20 -0
  30. package/dist/types/shared/src/constants/flow-catalog.d.ts +54 -0
  31. package/dist/types/shared/src/constants/index.d.ts +2 -0
  32. package/dist/types/shared/src/constants/notification-types.d.ts +309 -0
  33. package/dist/types/shared/src/constants/panic-mode.d.ts +17 -0
  34. package/dist/types/shared/src/constants/shared-extensions.d.ts +10 -0
  35. package/dist/types/shared/src/errors/flow-catalog.d.ts +37 -0
  36. package/dist/types/shared/src/errors/index.d.ts +2 -0
  37. package/dist/types/shared/src/errors/secrets.d.ts +16 -0
  38. package/dist/types/shared/src/scheme/access-keys/dto.d.ts +35 -13
  39. package/dist/types/shared/src/scheme/api-keys/dto.d.ts +29 -4
  40. package/dist/types/shared/src/scheme/flow-catalog/analysis.d.ts +190 -0
  41. package/dist/types/shared/src/scheme/flow-catalog/index.d.ts +6 -0
  42. package/dist/types/shared/src/scheme/flow-catalog/pack.d.ts +144 -0
  43. package/dist/types/shared/src/scheme/flow-catalog/requests.d.ts +664 -0
  44. package/dist/types/shared/src/scheme/flow-catalog/summary.d.ts +69 -0
  45. package/dist/types/shared/src/scheme/flow-catalog/version.d.ts +132 -0
  46. package/dist/types/shared/src/scheme/flowrunner/custom-elements.d.ts +0 -16
  47. package/dist/types/shared/src/scheme/flowrunner/index.d.ts +1 -0
  48. package/dist/types/shared/src/scheme/flowrunner/java.dto.d.ts +102 -0
  49. package/dist/types/shared/src/scheme/flowrunner/workspace-dashboard.dto.d.ts +207 -0
  50. package/dist/types/shared/src/scheme/index.d.ts +1 -0
  51. package/dist/types/shared/src/scheme/integration-connection/dto.d.ts +22 -0
  52. package/dist/types/shared/src/scheme/knowledge-base/dto.d.ts +12 -12
  53. package/dist/types/shared/src/scheme/notifications/dto.d.ts +10 -0
  54. package/dist/types/shared/src/scheme/notifications/rest.d.ts +20 -0
  55. package/dist/types/shared/src/scheme/properties/index.d.ts +1 -0
  56. package/dist/types/shared/src/scheme/properties/secret.d.ts +12 -0
  57. package/dist/types/shared/src/scheme/remote-mcp-server/dto.d.ts +142 -29
  58. package/dist/types/shared/src/scheme/shared-extensions/base.d.ts +0 -4
  59. package/dist/types/shared/src/scheme/shared-extensions/config.d.ts +20 -2
  60. package/dist/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +0 -24
  61. package/dist/types/shared/src/scheme/shared-extensions/extension.d.ts +0 -18
  62. package/dist/types/shared/src/scheme/shared-extensions/flow-extensions.d.ts +0 -3
  63. package/dist/types/shared/src/scheme/shared-extensions/index.d.ts +1 -0
  64. package/dist/types/shared/src/scheme/shared-extensions/list.d.ts +0 -28
  65. package/dist/types/shared/src/scheme/shared-extensions/methods.d.ts +0 -1
  66. package/dist/types/shared/src/scheme/shared-extensions/resolve.d.ts +0 -12
  67. package/dist/types/shared/src/scheme/shared-extensions/rest.d.ts +1 -0
  68. package/dist/types/shared/src/scheme/shared-extensions/search.d.ts +0 -8
  69. package/dist/types/shared/src/scheme/shared-extensions/usage-stats.d.ts +189 -0
  70. package/package.json +1 -7
  71. package/project-files/sandbox/files-mock.js +3 -5
  72. package/project-files/sandbox/nock-mock.js +61 -5
  73. package/project-files/sandbox/service.js +10 -11
  74. package/runtime/index.js +178 -863
  75. package/runtime/index.js.map +4 -4
  76. package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/context/execution-context.d.ts +2 -2
  77. package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/extension.d.ts +3 -3
  78. package/runtime/types/flow-extension-runner/src/global.d.ts +6 -18
  79. package/runtime/types/flow-extension-runner/src/index.d.ts +39 -13
  80. package/runtime/types/flow-extension-runner/src/{v2/model → model}/field-mapper.d.ts +1 -1
  81. package/runtime/types/flow-extension-runner/src/{v2/model → model}/model-types.d.ts +11 -1
  82. package/runtime/types/flow-extension-runner/src/{v2/model → model}/params-model.d.ts +1 -1
  83. package/runtime/types/flow-extension-runner/src/{v2/params → params}/config-params.d.ts +1 -1
  84. package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/params/schema/messages.d.ts +1 -1
  85. package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/params/schema/normalize.d.ts +1 -1
  86. package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/parse.d.ts +1 -1
  87. package/runtime/types/flow-extension-runner/src/{v2/params → params}/types.d.ts +1 -1
  88. package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/registry.d.ts +2 -0
  89. package/runtime/types/flow-extension-runner/src/{v2/types.d.ts → types.d.ts} +1 -1
  90. package/runtime/types/packages/cli/src/runtime/index.d.ts +6 -5
  91. package/dist/types/flow-extension-runner/src/common/config.d.ts +0 -12
  92. package/dist/types/flow-extension-runner/src/common/context.d.ts +0 -6
  93. package/dist/types/flow-extension-runner/src/common/types.d.ts +0 -11
  94. package/dist/types/flow-extension-runner/src/v1/config.d.ts +0 -3
  95. package/dist/types/flow-extension-runner/src/v1/constants.d.ts +0 -4
  96. package/dist/types/flow-extension-runner/src/v1/index.d.ts +0 -11
  97. package/dist/types/flow-extension-runner/src/v1/namespace.d.ts +0 -9
  98. package/dist/types/flow-extension-runner/src/v1/service.d.ts +0 -29
  99. package/dist/types/flow-extension-runner/src/v1/types.d.ts +0 -13
  100. package/dist/types/flow-extension-runner/src/v2/index.d.ts +0 -39
  101. package/dist/types/jsdoc-parser/src/custom-type-defs/files.d.ts +0 -2
  102. package/dist/types/jsdoc-parser/src/index.d.ts +0 -2
  103. package/dist/types/jsdoc-parser/src/lib.d.ts +0 -42
  104. package/dist/types/jsdoc-parser/src/types.d.ts +0 -2
  105. package/runtime/types/flow-extension-runner/src/common/config.d.ts +0 -12
  106. package/runtime/types/flow-extension-runner/src/common/context.d.ts +0 -6
  107. package/runtime/types/flow-extension-runner/src/common/types.d.ts +0 -11
  108. package/runtime/types/flow-extension-runner/src/v1/config.d.ts +0 -3
  109. package/runtime/types/flow-extension-runner/src/v1/constants.d.ts +0 -4
  110. package/runtime/types/flow-extension-runner/src/v1/index.d.ts +0 -11
  111. package/runtime/types/flow-extension-runner/src/v1/namespace.d.ts +0 -9
  112. package/runtime/types/flow-extension-runner/src/v1/service.d.ts +0 -29
  113. package/runtime/types/flow-extension-runner/src/v1/types.d.ts +0 -13
  114. package/runtime/types/flow-extension-runner/src/v2/index.d.ts +0 -39
  115. package/runtime/types/jsdoc-parser/src/custom-type-defs/files.d.ts +0 -2
  116. package/runtime/types/jsdoc-parser/src/index.d.ts +0 -2
  117. package/runtime/types/jsdoc-parser/src/lib.d.ts +0 -42
  118. package/runtime/types/jsdoc-parser/src/types.d.ts +0 -2
  119. package/runtime/types/shared/src/constants/activity-log.d.ts +0 -1573
  120. package/runtime/types/shared/src/constants/ai-agent-tools.d.ts +0 -20
  121. package/runtime/types/shared/src/constants/ai.d.ts +0 -11
  122. package/runtime/types/shared/src/constants/api-keys.d.ts +0 -1
  123. package/runtime/types/shared/src/constants/app.d.ts +0 -57
  124. package/runtime/types/shared/src/constants/billing.d.ts +0 -16
  125. package/runtime/types/shared/src/constants/compliances.d.ts +0 -3
  126. package/runtime/types/shared/src/constants/data-types.d.ts +0 -26
  127. package/runtime/types/shared/src/constants/docs.d.ts +0 -6
  128. package/runtime/types/shared/src/constants/error-codes.d.ts +0 -20
  129. package/runtime/types/shared/src/constants/flow.d.ts +0 -12
  130. package/runtime/types/shared/src/constants/index.d.ts +0 -18
  131. package/runtime/types/shared/src/constants/knowledge-base.d.ts +0 -15
  132. package/runtime/types/shared/src/constants/notification-types.d.ts +0 -1234
  133. package/runtime/types/shared/src/constants/notifications.d.ts +0 -10
  134. package/runtime/types/shared/src/constants/oauth-connection-error.d.ts +0 -3
  135. package/runtime/types/shared/src/constants/patterns.d.ts +0 -28
  136. package/runtime/types/shared/src/constants/retry-policy.d.ts +0 -30
  137. package/runtime/types/shared/src/constants/severity.d.ts +0 -9
  138. package/runtime/types/shared/src/constants/shared-extensions-search.d.ts +0 -6
  139. package/runtime/types/shared/src/constants/shared-extensions.d.ts +0 -56
  140. package/runtime/types/shared/src/constants/zod.d.ts +0 -2
  141. package/runtime/types/shared/src/errors/api.d.ts +0 -15
  142. package/runtime/types/shared/src/errors/base.d.ts +0 -38
  143. package/runtime/types/shared/src/errors/common.d.ts +0 -39
  144. package/runtime/types/shared/src/errors/index.d.ts +0 -14
  145. package/runtime/types/shared/src/errors/k8s.d.ts +0 -14
  146. package/runtime/types/shared/src/errors/message.d.ts +0 -48
  147. package/runtime/types/shared/src/errors/oauth-connection.d.ts +0 -4
  148. package/runtime/types/shared/src/errors/open-search.d.ts +0 -4
  149. package/runtime/types/shared/src/errors/s3.d.ts +0 -11
  150. package/runtime/types/shared/src/extensions/zod.d.ts +0 -25
  151. package/runtime/types/shared/src/scheme/access-keys/dto.d.ts +0 -101
  152. package/runtime/types/shared/src/scheme/access-keys/index.d.ts +0 -2
  153. package/runtime/types/shared/src/scheme/account/dto.d.ts +0 -63
  154. package/runtime/types/shared/src/scheme/account/index.d.ts +0 -1
  155. package/runtime/types/shared/src/scheme/activity-log-base.d.ts +0 -35
  156. package/runtime/types/shared/src/scheme/ai-agent-tools/dto.d.ts +0 -69
  157. package/runtime/types/shared/src/scheme/ai-agent-tools/index.d.ts +0 -2
  158. package/runtime/types/shared/src/scheme/ai-agent-tools/parameters.d.ts +0 -7
  159. package/runtime/types/shared/src/scheme/ai-router/dto.d.ts +0 -23
  160. package/runtime/types/shared/src/scheme/ai-router/index.d.ts +0 -2
  161. package/runtime/types/shared/src/scheme/api-keys/dto.d.ts +0 -28
  162. package/runtime/types/shared/src/scheme/api-keys/index.d.ts +0 -2
  163. package/runtime/types/shared/src/scheme/app/index.d.ts +0 -1
  164. package/runtime/types/shared/src/scheme/app/java.dto.d.ts +0 -6
  165. package/runtime/types/shared/src/scheme/billing/index.d.ts +0 -1
  166. package/runtime/types/shared/src/scheme/billing/java.dto.d.ts +0 -181
  167. package/runtime/types/shared/src/scheme/crm/billing.d.ts +0 -149
  168. package/runtime/types/shared/src/scheme/crm/dto.d.ts +0 -218
  169. package/runtime/types/shared/src/scheme/crm/index.d.ts +0 -3
  170. package/runtime/types/shared/src/scheme/data-types/index.d.ts +0 -1
  171. package/runtime/types/shared/src/scheme/data-types/java.dto.d.ts +0 -22
  172. package/runtime/types/shared/src/scheme/dynamic-forms/dto.d.ts +0 -30
  173. package/runtime/types/shared/src/scheme/dynamic-forms/index.d.ts +0 -2
  174. package/runtime/types/shared/src/scheme/extensions/index.d.ts +0 -1
  175. package/runtime/types/shared/src/scheme/extensions/params-to-zod.d.ts +0 -14
  176. package/runtime/types/shared/src/scheme/flowrunner/custom-elements.d.ts +0 -383
  177. package/runtime/types/shared/src/scheme/flowrunner/index.d.ts +0 -3
  178. package/runtime/types/shared/src/scheme/flowrunner/java.dto.d.ts +0 -655
  179. package/runtime/types/shared/src/scheme/index.d.ts +0 -21
  180. package/runtime/types/shared/src/scheme/integration-connection/dto.d.ts +0 -135
  181. package/runtime/types/shared/src/scheme/integration-connection/index.d.ts +0 -2
  182. package/runtime/types/shared/src/scheme/knowledge-base/dto.d.ts +0 -776
  183. package/runtime/types/shared/src/scheme/knowledge-base/index.d.ts +0 -2
  184. package/runtime/types/shared/src/scheme/mcp-oauth/dto.d.ts +0 -9
  185. package/runtime/types/shared/src/scheme/mcp-oauth/index.d.ts +0 -2
  186. package/runtime/types/shared/src/scheme/notifications/dto.d.ts +0 -118
  187. package/runtime/types/shared/src/scheme/notifications/index.d.ts +0 -3
  188. package/runtime/types/shared/src/scheme/notifications/rest.d.ts +0 -162
  189. package/runtime/types/shared/src/scheme/onboarding/dto.d.ts +0 -29
  190. package/runtime/types/shared/src/scheme/onboarding/index.d.ts +0 -1
  191. package/runtime/types/shared/src/scheme/properties/account.d.ts +0 -3
  192. package/runtime/types/shared/src/scheme/properties/app.d.ts +0 -5
  193. package/runtime/types/shared/src/scheme/properties/billing.d.ts +0 -12
  194. package/runtime/types/shared/src/scheme/properties/common.d.ts +0 -2
  195. package/runtime/types/shared/src/scheme/properties/db.d.ts +0 -8
  196. package/runtime/types/shared/src/scheme/properties/flow-extensions.d.ts +0 -7
  197. package/runtime/types/shared/src/scheme/properties/index.d.ts +0 -7
  198. package/runtime/types/shared/src/scheme/remote-mcp-server/dto.d.ts +0 -278
  199. package/runtime/types/shared/src/scheme/remote-mcp-server/index.d.ts +0 -2
  200. package/runtime/types/shared/src/scheme/shared-extensions/base.d.ts +0 -62
  201. package/runtime/types/shared/src/scheme/shared-extensions/config.d.ts +0 -96
  202. package/runtime/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +0 -631
  203. package/runtime/types/shared/src/scheme/shared-extensions/extension.d.ts +0 -411
  204. package/runtime/types/shared/src/scheme/shared-extensions/flow-extensions.d.ts +0 -64
  205. package/runtime/types/shared/src/scheme/shared-extensions/index.d.ts +0 -17
  206. package/runtime/types/shared/src/scheme/shared-extensions/light.d.ts +0 -38
  207. package/runtime/types/shared/src/scheme/shared-extensions/list.d.ts +0 -250
  208. package/runtime/types/shared/src/scheme/shared-extensions/logs.d.ts +0 -21
  209. package/runtime/types/shared/src/scheme/shared-extensions/methods.d.ts +0 -112
  210. package/runtime/types/shared/src/scheme/shared-extensions/params-schema.d.ts +0 -48
  211. package/runtime/types/shared/src/scheme/shared-extensions/popular-pool.d.ts +0 -11
  212. package/runtime/types/shared/src/scheme/shared-extensions/resolve.d.ts +0 -373
  213. package/runtime/types/shared/src/scheme/shared-extensions/rest.d.ts +0 -9
  214. package/runtime/types/shared/src/scheme/shared-extensions/search.d.ts +0 -189
  215. package/runtime/types/shared/src/scheme/shared-extensions/service-identity.d.ts +0 -10
  216. package/runtime/types/shared/src/scheme/shared-extensions/service-info.d.ts +0 -16
  217. package/runtime/types/shared/src/scheme/shared-extensions/workspace-stack.d.ts +0 -44
  218. package/runtime/types/shared/src/scheme/workspace/dto.d.ts +0 -40
  219. package/runtime/types/shared/src/scheme/workspace/index.d.ts +0 -1
  220. package/runtime/types/shared/src/utils/object.d.ts +0 -8
  221. package/runtime/types/shared/src/utils/uuid.d.ts +0 -5
  222. package/runtime/types/shared/src/utils/versions.d.ts +0 -4
  223. package/dist/types/flow-extension-runner/src/{v2/actions → actions}/action-method.d.ts +0 -0
  224. package/dist/types/flow-extension-runner/src/{common/context-files.d.ts → context/files.d.ts} +0 -0
  225. package/dist/types/flow-extension-runner/src/{v2/context → context}/logger.d.ts +0 -0
  226. package/dist/types/flow-extension-runner/src/{v2/context → context}/method-input.d.ts +0 -0
  227. package/dist/types/flow-extension-runner/src/{v2/context → context}/proxies.d.ts +0 -0
  228. package/dist/types/flow-extension-runner/src/{v2/create-extension.d.ts → create-extension.d.ts} +0 -0
  229. package/dist/types/flow-extension-runner/src/{v2/crypto.d.ts → crypto.d.ts} +0 -0
  230. package/dist/types/flow-extension-runner/src/{v2/dictionaries → dictionaries}/dictionary-method.d.ts +0 -0
  231. package/dist/types/flow-extension-runner/src/{v2/dictionaries → dictionaries}/payload-schema.d.ts +0 -0
  232. package/dist/types/flow-extension-runner/src/{v2/loaders → loaders}/loader-method.d.ts +0 -0
  233. package/dist/types/flow-extension-runner/src/{v2/loaders → loaders}/loader-owner.d.ts +0 -0
  234. package/dist/types/flow-extension-runner/src/{v2/loaders → loaders}/payload-schema.d.ts +0 -0
  235. package/dist/types/flow-extension-runner/src/{v2/method.d.ts → method.d.ts} +0 -0
  236. package/dist/types/flow-extension-runner/src/{v2/model → model}/method-model.d.ts +0 -0
  237. package/dist/types/flow-extension-runner/src/{v2/oauth → oauth}/method-names.d.ts +0 -0
  238. package/dist/types/flow-extension-runner/src/{v2/oauth → oauth}/oauth2.d.ts +0 -0
  239. package/dist/types/flow-extension-runner/src/{v2/oauth → oauth}/system-params.d.ts +0 -0
  240. package/dist/types/flow-extension-runner/src/{v2/oauth → oauth}/types.d.ts +0 -0
  241. package/dist/types/flow-extension-runner/src/{common/constants.d.ts → params/config-types.d.ts} +0 -0
  242. package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/params/files-options.d.ts +4 -4
  243. /package/dist/types/flow-extension-runner/src/{v2/params → params}/index.d.ts +0 -0
  244. /package/dist/types/flow-extension-runner/src/{v2/params → params}/json/checks.d.ts +0 -0
  245. /package/dist/types/flow-extension-runner/src/{v2/params → params}/json/decode.d.ts +0 -0
  246. /package/dist/types/flow-extension-runner/src/{v2/params → params}/json/encode.d.ts +0 -0
  247. /package/dist/types/flow-extension-runner/src/{v2/params → params}/json/types.d.ts +0 -0
  248. /package/dist/types/flow-extension-runner/src/{v2/params → params}/json/values.d.ts +0 -0
  249. /package/dist/types/flow-extension-runner/src/{v2/params → params}/method-params.d.ts +0 -0
  250. /package/dist/types/flow-extension-runner/src/{v2/params → params}/params.d.ts +0 -0
  251. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/assert-object-schema.d.ts +0 -0
  252. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/assert-supported-schema.d.ts +0 -0
  253. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/coerce.d.ts +0 -0
  254. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/date-format.d.ts +0 -0
  255. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/dates.d.ts +0 -0
  256. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/defaults.d.ts +0 -0
  257. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/dictionary-binding.d.ts +0 -0
  258. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/field-plan.d.ts +0 -0
  259. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/introspect.d.ts +0 -0
  260. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/labels.d.ts +0 -0
  261. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/notices.d.ts +0 -0
  262. /package/dist/types/flow-extension-runner/src/{v2/params → params}/widget-types.d.ts +0 -0
  263. /package/dist/types/flow-extension-runner/src/{v2/params → params}/zod.d.ts +0 -0
  264. /package/dist/types/flow-extension-runner/src/{v2/path.d.ts → path.d.ts} +0 -0
  265. /package/dist/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/mechanisms.d.ts +0 -0
  266. /package/dist/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/method-names.d.ts +0 -0
  267. /package/dist/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/polling-triggers.d.ts +0 -0
  268. /package/dist/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/system-params.d.ts +0 -0
  269. /package/dist/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/trigger-method.d.ts +0 -0
  270. /package/dist/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/types.d.ts +0 -0
  271. /package/dist/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/method-names.d.ts +0 -0
  272. /package/dist/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/realtime-setup.d.ts +0 -0
  273. /package/dist/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/system-params.d.ts +0 -0
  274. /package/dist/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/trigger-method.d.ts +0 -0
  275. /package/dist/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/types.d.ts +0 -0
  276. /package/dist/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/verify.d.ts +0 -0
  277. /package/dist/types/flow-extension-runner/src/{v2/result.d.ts → result.d.ts} +0 -0
  278. /package/dist/types/flow-extension-runner/src/{v2/system-method.d.ts → system-method.d.ts} +0 -0
  279. /package/runtime/types/flow-extension-runner/src/{v2/actions → actions}/action-method.d.ts +0 -0
  280. /package/runtime/types/flow-extension-runner/src/{common/context-files.d.ts → context/files.d.ts} +0 -0
  281. /package/runtime/types/flow-extension-runner/src/{v2/context → context}/logger.d.ts +0 -0
  282. /package/runtime/types/flow-extension-runner/src/{v2/context → context}/method-input.d.ts +0 -0
  283. /package/runtime/types/flow-extension-runner/src/{v2/context → context}/proxies.d.ts +0 -0
  284. /package/runtime/types/flow-extension-runner/src/{v2/create-extension.d.ts → create-extension.d.ts} +0 -0
  285. /package/runtime/types/flow-extension-runner/src/{v2/crypto.d.ts → crypto.d.ts} +0 -0
  286. /package/runtime/types/flow-extension-runner/src/{v2/dictionaries → dictionaries}/dictionary-method.d.ts +0 -0
  287. /package/runtime/types/flow-extension-runner/src/{v2/dictionaries → dictionaries}/payload-schema.d.ts +0 -0
  288. /package/runtime/types/flow-extension-runner/src/{v2/loaders → loaders}/loader-method.d.ts +0 -0
  289. /package/runtime/types/flow-extension-runner/src/{v2/loaders → loaders}/loader-owner.d.ts +0 -0
  290. /package/runtime/types/flow-extension-runner/src/{v2/loaders → loaders}/payload-schema.d.ts +0 -0
  291. /package/runtime/types/flow-extension-runner/src/{v2/method.d.ts → method.d.ts} +0 -0
  292. /package/runtime/types/flow-extension-runner/src/{v2/model → model}/method-model.d.ts +0 -0
  293. /package/runtime/types/flow-extension-runner/src/{v2/oauth → oauth}/method-names.d.ts +0 -0
  294. /package/runtime/types/flow-extension-runner/src/{v2/oauth → oauth}/oauth2.d.ts +0 -0
  295. /package/runtime/types/flow-extension-runner/src/{v2/oauth → oauth}/system-params.d.ts +0 -0
  296. /package/runtime/types/flow-extension-runner/src/{v2/oauth → oauth}/types.d.ts +0 -0
  297. /package/runtime/types/flow-extension-runner/src/{common/constants.d.ts → params/config-types.d.ts} +0 -0
  298. /package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/params/files-options.d.ts +0 -0
  299. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/index.d.ts +0 -0
  300. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/json/checks.d.ts +0 -0
  301. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/json/decode.d.ts +0 -0
  302. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/json/encode.d.ts +0 -0
  303. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/json/types.d.ts +0 -0
  304. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/json/values.d.ts +0 -0
  305. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/method-params.d.ts +0 -0
  306. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/params.d.ts +0 -0
  307. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/assert-object-schema.d.ts +0 -0
  308. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/assert-supported-schema.d.ts +0 -0
  309. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/coerce.d.ts +0 -0
  310. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/date-format.d.ts +0 -0
  311. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/dates.d.ts +0 -0
  312. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/defaults.d.ts +0 -0
  313. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/dictionary-binding.d.ts +0 -0
  314. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/field-plan.d.ts +0 -0
  315. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/introspect.d.ts +0 -0
  316. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/labels.d.ts +0 -0
  317. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/notices.d.ts +0 -0
  318. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/widget-types.d.ts +0 -0
  319. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/zod.d.ts +0 -0
  320. /package/runtime/types/flow-extension-runner/src/{v2/path.d.ts → path.d.ts} +0 -0
  321. /package/runtime/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/mechanisms.d.ts +0 -0
  322. /package/runtime/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/method-names.d.ts +0 -0
  323. /package/runtime/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/polling-triggers.d.ts +0 -0
  324. /package/runtime/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/system-params.d.ts +0 -0
  325. /package/runtime/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/trigger-method.d.ts +0 -0
  326. /package/runtime/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/types.d.ts +0 -0
  327. /package/runtime/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/method-names.d.ts +0 -0
  328. /package/runtime/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/realtime-setup.d.ts +0 -0
  329. /package/runtime/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/system-params.d.ts +0 -0
  330. /package/runtime/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/trigger-method.d.ts +0 -0
  331. /package/runtime/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/types.d.ts +0 -0
  332. /package/runtime/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/verify.d.ts +0 -0
  333. /package/runtime/types/flow-extension-runner/src/{v2/result.d.ts → result.d.ts} +0 -0
  334. /package/runtime/types/flow-extension-runner/src/{v2/system-method.d.ts → system-method.d.ts} +0 -0
@@ -1,8 +1,8 @@
1
- import type { ServiceConfigsValues } from '../../common/constants';
2
- import { type FilesApi, type FileScopes } from '../../common/context-files';
3
1
  import type { Extension } from '../extension';
4
2
  import type { OAuthBag } from '../oauth/types';
3
+ import type { ServiceConfigsValues } from '../params/config-types';
5
4
  import type { HandlerBag, Logger } from '../types';
5
+ import { type FilesApi, type FileScopes } from './files';
6
6
  export interface ExecutionContextOptions {
7
7
  configs?: ServiceConfigsValues;
8
8
  accessToken?: string;
@@ -1,6 +1,6 @@
1
- import type { ConfigItem } from '../common/types';
2
1
  import { ExecutionContext, type ExecutionContextOptions } from './context/execution-context';
3
2
  import type { ExtensionMethod } from './method';
3
+ import type { ConfigItem } from './model/model-types';
4
4
  import type { SharedExtensionDefinition, SharedExtensionServiceInfo } from './model/model-types';
5
5
  import { OAuth2 } from './oauth/oauth2';
6
6
  import type { OAuth2Props } from './oauth/types';
@@ -40,8 +40,8 @@ export declare class Extension {
40
40
  toConfigItems(): ConfigItem[];
41
41
  toServiceInfo(): SharedExtensionServiceInfo;
42
42
  /**
43
- * The published model — the v2 analogue of jsdoc-parser's `parseJsDocToServiceJson`, and the same
44
- * `{ serviceInfo, methodsMap }` shape the console consumes for a v1 service.
43
+ * The published model — the `{ serviceInfo, methodsMap }` shape the console consumes, the same one the
44
+ * removed v1 JSDoc parser produced.
45
45
  *
46
46
  * Every method describes itself, so this is one pass with no per-kind branches: what a service publishes
47
47
  * is exactly what it registered.
@@ -1,31 +1,19 @@
1
1
  import type BLRequest from 'backendless-request'
2
2
 
3
- import type { ServiceConfigItemTypes } from './common/constants'
4
- import type { ServiceClassType } from './v1/constants'
5
- import type { ConfigItemSource } from './v1/types'
6
- import type { createExtension } from './v2/create-extension'
7
- import type { FlowrunnerCrypto } from './v2/crypto'
8
- import type { ExtendedZod } from './v2/params'
9
- import type { getExtension } from './v2/registry'
3
+ import type { createExtension } from './create-extension'
4
+ import type { FlowrunnerCrypto } from './crypto'
5
+ import type { ExtendedZod } from './params'
6
+ import type { getExtension } from './registry'
10
7
 
11
- // The single `Flowrunner` runtime installed on the global scope by ../namespace.ts. Shared by v1 and v2:
8
+ // The single `Flowrunner` runtime installed on the global scope by ./namespace.ts:
12
9
  // - `Request` — HTTP client used by service code (`Flowrunner.Request.get(...)`).
13
- // - `z` / `createExtension` / `getExtension` — the v2 authoring surface (services do `const z = Flowrunner.z`).
14
- // - `ServerCode` — the v1-only registration seam, set for the duration of a v1 require (see v1/namespace.ts).
10
+ // - `z` / `createExtension` / `getExtension` — the authoring surface (services do `const z = Flowrunner.z`).
15
11
  export interface FlowrunnerRuntime {
16
12
  Request: typeof BLRequest
17
13
  z: ExtendedZod
18
14
  crypto: FlowrunnerCrypto
19
15
  createExtension: typeof createExtension
20
16
  getExtension: typeof getExtension
21
- ServerCode: FlowrunnerServerCode | null
22
- }
23
-
24
- export interface FlowrunnerServerCode {
25
- addService(ServiceClass: ServiceClassType, sourceConfigItems?: ConfigItemSource[]): void
26
- ConfigItems: {
27
- TYPES: typeof ServiceConfigItemTypes
28
- }
29
17
  }
30
18
 
31
19
  declare global {
@@ -1,15 +1,41 @@
1
1
  import './namespace';
2
- import * as v1 from './v1';
3
- import { createFlowrunnerSandboxV1 } from './v1/namespace';
4
- import * as v2 from './v2';
2
+ import { type FilesApi, type FlowrunnerContextFilesOptions } from './context/files';
3
+ import type { ConfigItem, SharedExtensionDefinition } from './model/model-types';
4
+ import { type ServiceConfigsValues } from './params/config-types';
5
+ import type { Logger } from './types';
5
6
  export * from './errors';
6
- export type { RunServiceMethodData } from './v2';
7
- export type { FlowrunnerContextOptions } from './common/context';
8
- export type { DeleteOptions, DeleteResult, FileInfo, FilesApi, GetOptions, ListOptions, ListResult, UploadFileOptions, UploadResult, UsageResult, } from './common/context-files';
9
- export { FileScope } from './common/context-files';
10
- export type ExtensionVersion = 'v1' | 'v2';
11
- export { createFlowrunnerSandboxV1, };
12
- export declare function detectVersion(serviceId: string, serviceEntryPointPath: string): ExtensionVersion;
13
- export declare function getServiceConfigs(serviceId: string, serviceEntryPointPath: string): ReturnType<typeof v1.getServiceConfigs>;
14
- export declare function runServiceMethod(data: v2.RunServiceMethodData): Promise<unknown>;
15
- export declare function buildServiceDefinition(serviceId: string, serviceEntryPointPath: string): v2.SharedExtensionDefinition | null;
7
+ export type { ConfigItem } from './model/model-types';
8
+ export type { SharedExtensionDefinition } from './model/model-types';
9
+ export type FlowrunnerContextOptions = FlowrunnerContextFilesOptions;
10
+ export type { DeleteOptions, DeleteResult, FileInfo, FilesApi, GetOptions, ListOptions, ListResult, UploadFileOptions, UploadResult, UsageResult, } from './context/files';
11
+ export { FileScope } from './context/files';
12
+ export { ExecutionContext } from './context/execution-context';
13
+ export { Extension } from './extension';
14
+ export { getAllExtensions, getExtension, resetRegistry } from './registry';
15
+ export type { PollingInvocation, PollingResult } from './polling-triggers/types';
16
+ export type { RealtimeInvocation } from './realtime-triggers/types';
17
+ export type { HandlerBag, Logger } from './types';
18
+ export interface RunServiceMethodData {
19
+ serviceId: string;
20
+ serviceEntryPointPath: string;
21
+ configs?: ServiceConfigsValues;
22
+ methodName: string;
23
+ methodData?: Record<string, unknown>;
24
+ logger?: Logger;
25
+ retrieveNewS3Token: (runtimeKey: string) => Promise<{
26
+ filesS3Token: string;
27
+ }>;
28
+ createFiles?: (options: FlowrunnerContextOptions) => FilesApi;
29
+ executionContext: {
30
+ runtimeKey: string;
31
+ accessToken: string;
32
+ appId: string;
33
+ apiKey: string;
34
+ serverURL: string;
35
+ flowId: string;
36
+ executionId: string;
37
+ };
38
+ }
39
+ export declare function getServiceConfigs(serviceId: string, serviceEntryPointPath: string): ConfigItem[];
40
+ export declare function buildServiceDefinition(serviceId: string, serviceEntryPointPath: string): SharedExtensionDefinition | null;
41
+ export declare function runServiceMethod(data: RunServiceMethodData): Promise<unknown>;
@@ -1,6 +1,6 @@
1
- import type { ConfigItem } from '../../common/types';
2
1
  import { DictionaryScope } from '../params/schema/dictionary-binding';
3
2
  import { type AnyZod } from '../params/schema/introspect';
3
+ import type { ConfigItem } from './model-types';
4
4
  import type { SharedExtensionMetaInfoArg, SharedExtensionParam } from './model-types';
5
5
  export interface FieldToParamOptions {
6
6
  nested?: boolean;
@@ -1,4 +1,5 @@
1
1
  import type { ParamsSchemaJSON } from '../params';
2
+ import type { ServiceConfigItemType } from '../params/config-types';
2
3
  export interface SharedExtensionParam {
3
4
  name: string;
4
5
  required: boolean;
@@ -66,8 +67,17 @@ export interface SharedExtensionServiceInfo {
66
67
  requireOAuth?: boolean | null;
67
68
  }
68
69
  export interface SharedExtensionDefinition {
69
- runnerVersion: 'v1' | 'v2';
70
70
  methodsMap: Record<string, SharedExtensionMethod>;
71
71
  serviceInfo: SharedExtensionServiceInfo;
72
72
  configSchema?: ParamsSchemaJSON | null;
73
73
  }
74
+ export interface ConfigItem {
75
+ name: string;
76
+ type: ServiceConfigItemType;
77
+ shared: boolean;
78
+ required: boolean;
79
+ description: string;
80
+ label: string;
81
+ defaultValue?: unknown;
82
+ options: string[];
83
+ }
@@ -1,5 +1,5 @@
1
- import type { ConfigItem } from '../../common/types';
2
1
  import { type ConfigParams, DictionaryScope, type MethodParams, type Params } from '../params';
2
+ import type { ConfigItem } from './model-types';
3
3
  import type { SharedExtensionMetaInfoArg, SharedExtensionParam } from './model-types';
4
4
  export declare function toBodyParams(params: MethodParams): SharedExtensionParam[];
5
5
  export declare function toArgs(params: MethodParams): Record<string, SharedExtensionMetaInfoArg>;
@@ -1,4 +1,4 @@
1
- import type { ServiceConfigsValues } from '../../common/constants';
1
+ import type { ServiceConfigsValues } from './config-types';
2
2
  import { Params } from './params';
3
3
  import type { SchemaSource } from './types';
4
4
  export declare class ConfigParams extends Params {
@@ -1,4 +1,4 @@
1
- import type { ValidationIssue } from '../../../errors';
1
+ import type { ValidationIssue } from '../../errors';
2
2
  import type { ZodIssue } from '../types';
3
3
  import type { FieldPlan } from './field-plan';
4
4
  export declare const requiredMessage: (plan: FieldPlan) => string;
@@ -1,4 +1,4 @@
1
- import type { ValidationIssue } from '../../../errors';
1
+ import type { ValidationIssue } from '../../errors';
2
2
  import type { FieldPlan } from './field-plan';
3
3
  export interface FieldResult {
4
4
  value?: unknown;
@@ -1,4 +1,4 @@
1
- import type { ValidationIssue } from '../../../errors';
1
+ import type { ValidationIssue } from '../../errors';
2
2
  import type { ZodIssue, ZodSchema } from '../types';
3
3
  export type FailFn = (issues: ValidationIssue[]) => never;
4
4
  export declare function toIssues(error: {
@@ -1,4 +1,4 @@
1
- import type { ValidationIssue } from '../../errors';
1
+ import type { ValidationIssue } from '../errors';
2
2
  export interface ZodIssue {
3
3
  path?: readonly PropertyKey[];
4
4
  message?: string;
@@ -12,6 +12,8 @@ export declare class ExtensionRegistry {
12
12
  * which imports it.
13
13
  */
14
14
  load(id: string, entryPointPath: string): Extension;
15
+ /** As `load`, but `undefined` instead of throwing when the module registers no extension under `id`. */
16
+ tryLoad(id: string, entryPointPath: string): Extension | undefined;
15
17
  reset(): void;
16
18
  }
17
19
  export declare const registry: ExtensionRegistry;
@@ -1,5 +1,5 @@
1
1
  import type { z } from 'zod';
2
- import type { FilesApi, FileScopes } from '../common/context-files';
2
+ import type { FilesApi, FileScopes } from './context/files';
3
3
  import type { Extension } from './extension';
4
4
  import type { OAuth2Props, OAuthBag } from './oauth/types';
5
5
  import type { DictionaryRef } from './params';
@@ -1,5 +1,6 @@
1
- export type { ExtensionVersion, RunServiceMethodData } from '../../../../flow-extension-runner/src/index';
2
- export { buildServiceDefinition, detectVersion, getServiceConfigs, runServiceMethod, } from '../../../../flow-extension-runner/src/index';
3
- export { resetRegistry } from '../../../../flow-extension-runner/src/v2/index';
4
- export type { ConfigItem, SharedExtensionDefinition } from '../../../../flow-extension-runner/src/v2/index';
5
- export { parseJsDocToServiceJson } from '../../../../jsdoc-parser/src/index';
1
+ export type { RunServiceMethodData } from '../../../../flow-extension-runner/src/index';
2
+ export { buildServiceDefinition, getServiceConfigs, runServiceMethod, } from '../../../../flow-extension-runner/src/index';
3
+ export { resetRegistry } from '../../../../flow-extension-runner/src/index';
4
+ /** @deprecated Every service is the declarative format; always `'v2'`. Re-copy the harness to drop the call. */
5
+ export declare function detectVersion(_serviceId: string, _serviceEntryPointPath: string): 'v2';
6
+ export type { ConfigItem, SharedExtensionDefinition } from '../../../../flow-extension-runner/src/index';
@@ -1,12 +0,0 @@
1
- import { type ServiceConfigsValues } from './constants';
2
- import type { ConfigItem } from './types';
3
- /**
4
- * Resolve the effective config values for a service instance: for each declared item take its value from the
5
- * single `configs` bag, deserialize it with the type adapter, and fall back to the item's default when empty.
6
- *
7
- * ONE bag on purpose. `shared` is a UI directive — it decides who fills a value in and in which dialog — so
8
- * it has no business steering resolution. A service installed as a custom extension has no shared tier at
9
- * all: the customer fills in every item in one dialog. Whoever runs a *shared* extension merges the two
10
- * tiers before calling in; everyone else passes the single bag they already have.
11
- */
12
- export declare function prepareServiceConfig(configItems: ConfigItem[], configs?: ServiceConfigsValues): ServiceConfigsValues;
@@ -1,6 +0,0 @@
1
- import { FlowrunnerContextFiles, type FlowrunnerContextFilesOptions } from './context-files';
2
- export type FlowrunnerContextOptions = FlowrunnerContextFilesOptions;
3
- export declare class FlowrunnerContext {
4
- Files: FlowrunnerContextFiles;
5
- constructor(options: FlowrunnerContextOptions);
6
- }
@@ -1,11 +0,0 @@
1
- import { type ServiceConfigItemType } from './constants';
2
- export interface ConfigItem {
3
- name: string;
4
- type: ServiceConfigItemType;
5
- shared: boolean;
6
- required: boolean;
7
- description: string;
8
- label: string;
9
- defaultValue?: unknown;
10
- options: string[];
11
- }
@@ -1,3 +0,0 @@
1
- import type { ConfigItem } from '../common/types';
2
- import type { ConfigItemSource } from './types';
3
- export declare function normalizeConfigItems(sourceConfigItems?: ConfigItemSource[]): ConfigItem[];
@@ -1,4 +0,0 @@
1
- export type MethodRequestArgumentsMap = Record<string, unknown>;
2
- export type MethodRequestArgumentsList = unknown[];
3
- export declare const OAUTH_ACCESS_TOKEN_HEADER = "oauth-access-token";
4
- export type ServiceClassType = new (...args: unknown[]) => object;
@@ -1,11 +0,0 @@
1
- export { prepareServiceConfig } from '../common/config';
2
- export type { ServiceConfigItemType, ServiceConfigsValues } from '../common/constants';
3
- export { ServiceConfigItemTypes } from '../common/constants';
4
- export { FlowrunnerContext, type FlowrunnerContextOptions } from '../common/context';
5
- export { FileScope, FlowrunnerContextFiles } from '../common/context-files';
6
- export type { ConfigItem } from '../common/types';
7
- export { normalizeConfigItems } from './config';
8
- export type { MethodRequestArgumentsList, MethodRequestArgumentsMap, ServiceClassType } from './constants';
9
- export { OAUTH_ACCESS_TOKEN_HEADER } from './constants';
10
- export { getServiceConfigs, runServiceMethod } from './service';
11
- export type { ConfigItemSource } from './types';
@@ -1,9 +0,0 @@
1
- import '../namespace';
2
- import type { ConfigItem } from '../common/types';
3
- import { type ServiceClassType } from './constants';
4
- interface RegisteredService {
5
- ServiceClass: ServiceClassType;
6
- configItems: ConfigItem[];
7
- }
8
- export declare function createFlowrunnerSandboxV1(serviceId: string, cb: () => void): RegisteredService | undefined;
9
- export {};
@@ -1,29 +0,0 @@
1
- import { type ServiceConfigsValues } from '../common/constants';
2
- import { type FlowrunnerContextOptions } from '../common/context';
3
- import type { FilesApi } from '../common/context-files';
4
- import type { ConfigItem } from '../common/types';
5
- import { type MethodRequestArgumentsList, type MethodRequestArgumentsMap } from './constants';
6
- export declare function getServiceConfigs(serviceId: string, serviceEntryPointPath: string): ConfigItem[];
7
- type RunServiceMethodData = {
8
- serviceId: string;
9
- serviceEntryPointPath: string;
10
- configs?: ServiceConfigsValues;
11
- methodName: string;
12
- methodData?: MethodRequestArgumentsMap;
13
- methodArgs?: MethodRequestArgumentsList;
14
- retrieveNewS3Token: (runtimeKey: string) => Promise<{
15
- filesS3Token: string;
16
- }>;
17
- createFiles?: (options: FlowrunnerContextOptions) => FilesApi;
18
- executionContext: {
19
- runtimeKey: string;
20
- accessToken: string;
21
- appId: string;
22
- apiKey: string;
23
- serverURL: string;
24
- flowId: string;
25
- executionId: string;
26
- };
27
- };
28
- export declare function runServiceMethod(data: RunServiceMethodData): Promise<unknown>;
29
- export {};
@@ -1,13 +0,0 @@
1
- import { type ServiceConfigItemType } from '../common/constants';
2
- export interface ConfigItemSource {
3
- name: string;
4
- type?: ServiceConfigItemType;
5
- shared?: boolean;
6
- required?: boolean;
7
- description?: string | null;
8
- hint?: string | null;
9
- label?: string;
10
- displayName?: string;
11
- defaultValue?: unknown;
12
- options?: string[];
13
- }
@@ -1,39 +0,0 @@
1
- import { type ServiceConfigsValues } from '../common/constants';
2
- import { type FlowrunnerContextOptions } from '../common/context';
3
- import type { FilesApi } from '../common/context-files';
4
- import type { ConfigItem } from '../common/types';
5
- import type { SharedExtensionDefinition } from './model/model-types';
6
- import type { Logger } from './types';
7
- export type { ConfigItem } from '../common/types';
8
- export type { SharedExtensionDefinition } from './model/model-types';
9
- export { ExecutionContext } from './context/execution-context';
10
- export { Extension } from './extension';
11
- export { getAllExtensions, getExtension, resetRegistry } from './registry';
12
- export type { PollingInvocation, PollingResult } from './polling-triggers/types';
13
- export type { RealtimeInvocation } from './realtime-triggers/types';
14
- export type { HandlerBag, Logger } from './types';
15
- export interface RunServiceMethodData {
16
- serviceId: string;
17
- serviceEntryPointPath: string;
18
- configs?: ServiceConfigsValues;
19
- methodName: string;
20
- methodData?: Record<string, unknown>;
21
- methodArgs?: unknown[];
22
- logger?: Logger;
23
- retrieveNewS3Token: (runtimeKey: string) => Promise<{
24
- filesS3Token: string;
25
- }>;
26
- createFiles?: (options: FlowrunnerContextOptions) => FilesApi;
27
- executionContext: {
28
- runtimeKey: string;
29
- accessToken: string;
30
- appId: string;
31
- apiKey: string;
32
- serverURL: string;
33
- flowId: string;
34
- executionId: string;
35
- };
36
- }
37
- export declare function getServiceConfigs(serviceId: string, serviceEntryPointPath: string): ConfigItem[];
38
- export declare function buildServiceDefinition(serviceId: string, serviceEntryPointPath: string): SharedExtensionDefinition;
39
- export declare function runServiceMethod(data: RunServiceMethodData): Promise<unknown>;
@@ -1,2 +0,0 @@
1
- import type { TypedefsMap } from '../types';
2
- export declare const filesTypeDefs: TypedefsMap;
@@ -1,2 +0,0 @@
1
- import { type SharedExtensionDefinition } from '../../shared/src/scheme/index';
2
- export declare function parseJsDocToServiceJson(entryPoint: string): SharedExtensionDefinition;
@@ -1,42 +0,0 @@
1
- export interface DocletTag {
2
- originalTitle: string;
3
- value?: string;
4
- text?: string;
5
- }
6
- interface DocletParam {
7
- name: string;
8
- type?: {
9
- names?: string[];
10
- };
11
- optional?: boolean;
12
- description?: string;
13
- }
14
- interface DocletProperty {
15
- name: string;
16
- type?: {
17
- names?: string[];
18
- };
19
- optional?: boolean;
20
- description?: string;
21
- }
22
- export interface Doclet {
23
- kind: string;
24
- name: string;
25
- memberof?: string;
26
- scope?: string;
27
- description?: string;
28
- tags?: DocletTag[];
29
- params?: DocletParam[];
30
- properties?: DocletProperty[];
31
- returns?: {
32
- type?: {
33
- names?: string[];
34
- };
35
- }[];
36
- access?: string;
37
- }
38
- /**
39
- * Parse a JS file using jsdoc programmatically and return the doclets array.
40
- */
41
- export declare function parseJSDoc(filePath: string): Doclet[];
42
- export {};
@@ -1,2 +0,0 @@
1
- import { type SharedExtensionMethodParam } from '../../shared/src/scheme/index';
2
- export type TypedefsMap = Record<string, SharedExtensionMethodParam[]>;
@@ -1,12 +0,0 @@
1
- import { type ServiceConfigsValues } from './constants';
2
- import type { ConfigItem } from './types';
3
- /**
4
- * Resolve the effective config values for a service instance: for each declared item take its value from the
5
- * single `configs` bag, deserialize it with the type adapter, and fall back to the item's default when empty.
6
- *
7
- * ONE bag on purpose. `shared` is a UI directive — it decides who fills a value in and in which dialog — so
8
- * it has no business steering resolution. A service installed as a custom extension has no shared tier at
9
- * all: the customer fills in every item in one dialog. Whoever runs a *shared* extension merges the two
10
- * tiers before calling in; everyone else passes the single bag they already have.
11
- */
12
- export declare function prepareServiceConfig(configItems: ConfigItem[], configs?: ServiceConfigsValues): ServiceConfigsValues;
@@ -1,6 +0,0 @@
1
- import { FlowrunnerContextFiles, type FlowrunnerContextFilesOptions } from './context-files';
2
- export type FlowrunnerContextOptions = FlowrunnerContextFilesOptions;
3
- export declare class FlowrunnerContext {
4
- Files: FlowrunnerContextFiles;
5
- constructor(options: FlowrunnerContextOptions);
6
- }
@@ -1,11 +0,0 @@
1
- import { type ServiceConfigItemType } from './constants';
2
- export interface ConfigItem {
3
- name: string;
4
- type: ServiceConfigItemType;
5
- shared: boolean;
6
- required: boolean;
7
- description: string;
8
- label: string;
9
- defaultValue?: unknown;
10
- options: string[];
11
- }
@@ -1,3 +0,0 @@
1
- import type { ConfigItem } from '../common/types';
2
- import type { ConfigItemSource } from './types';
3
- export declare function normalizeConfigItems(sourceConfigItems?: ConfigItemSource[]): ConfigItem[];
@@ -1,4 +0,0 @@
1
- export type MethodRequestArgumentsMap = Record<string, unknown>;
2
- export type MethodRequestArgumentsList = unknown[];
3
- export declare const OAUTH_ACCESS_TOKEN_HEADER = "oauth-access-token";
4
- export type ServiceClassType = new (...args: unknown[]) => object;
@@ -1,11 +0,0 @@
1
- export { prepareServiceConfig } from '../common/config';
2
- export type { ServiceConfigItemType, ServiceConfigsValues } from '../common/constants';
3
- export { ServiceConfigItemTypes } from '../common/constants';
4
- export { FlowrunnerContext, type FlowrunnerContextOptions } from '../common/context';
5
- export { FileScope, FlowrunnerContextFiles } from '../common/context-files';
6
- export type { ConfigItem } from '../common/types';
7
- export { normalizeConfigItems } from './config';
8
- export type { MethodRequestArgumentsList, MethodRequestArgumentsMap, ServiceClassType } from './constants';
9
- export { OAUTH_ACCESS_TOKEN_HEADER } from './constants';
10
- export { getServiceConfigs, runServiceMethod } from './service';
11
- export type { ConfigItemSource } from './types';
@@ -1,9 +0,0 @@
1
- import '../namespace';
2
- import type { ConfigItem } from '../common/types';
3
- import { type ServiceClassType } from './constants';
4
- interface RegisteredService {
5
- ServiceClass: ServiceClassType;
6
- configItems: ConfigItem[];
7
- }
8
- export declare function createFlowrunnerSandboxV1(serviceId: string, cb: () => void): RegisteredService | undefined;
9
- export {};
@@ -1,29 +0,0 @@
1
- import { type ServiceConfigsValues } from '../common/constants';
2
- import { type FlowrunnerContextOptions } from '../common/context';
3
- import type { FilesApi } from '../common/context-files';
4
- import type { ConfigItem } from '../common/types';
5
- import { type MethodRequestArgumentsList, type MethodRequestArgumentsMap } from './constants';
6
- export declare function getServiceConfigs(serviceId: string, serviceEntryPointPath: string): ConfigItem[];
7
- type RunServiceMethodData = {
8
- serviceId: string;
9
- serviceEntryPointPath: string;
10
- configs?: ServiceConfigsValues;
11
- methodName: string;
12
- methodData?: MethodRequestArgumentsMap;
13
- methodArgs?: MethodRequestArgumentsList;
14
- retrieveNewS3Token: (runtimeKey: string) => Promise<{
15
- filesS3Token: string;
16
- }>;
17
- createFiles?: (options: FlowrunnerContextOptions) => FilesApi;
18
- executionContext: {
19
- runtimeKey: string;
20
- accessToken: string;
21
- appId: string;
22
- apiKey: string;
23
- serverURL: string;
24
- flowId: string;
25
- executionId: string;
26
- };
27
- };
28
- export declare function runServiceMethod(data: RunServiceMethodData): Promise<unknown>;
29
- export {};
@@ -1,13 +0,0 @@
1
- import { type ServiceConfigItemType } from '../common/constants';
2
- export interface ConfigItemSource {
3
- name: string;
4
- type?: ServiceConfigItemType;
5
- shared?: boolean;
6
- required?: boolean;
7
- description?: string | null;
8
- hint?: string | null;
9
- label?: string;
10
- displayName?: string;
11
- defaultValue?: unknown;
12
- options?: string[];
13
- }
@@ -1,39 +0,0 @@
1
- import { type ServiceConfigsValues } from '../common/constants';
2
- import { type FlowrunnerContextOptions } from '../common/context';
3
- import type { FilesApi } from '../common/context-files';
4
- import type { ConfigItem } from '../common/types';
5
- import type { SharedExtensionDefinition } from './model/model-types';
6
- import type { Logger } from './types';
7
- export type { ConfigItem } from '../common/types';
8
- export type { SharedExtensionDefinition } from './model/model-types';
9
- export { ExecutionContext } from './context/execution-context';
10
- export { Extension } from './extension';
11
- export { getAllExtensions, getExtension, resetRegistry } from './registry';
12
- export type { PollingInvocation, PollingResult } from './polling-triggers/types';
13
- export type { RealtimeInvocation } from './realtime-triggers/types';
14
- export type { HandlerBag, Logger } from './types';
15
- export interface RunServiceMethodData {
16
- serviceId: string;
17
- serviceEntryPointPath: string;
18
- configs?: ServiceConfigsValues;
19
- methodName: string;
20
- methodData?: Record<string, unknown>;
21
- methodArgs?: unknown[];
22
- logger?: Logger;
23
- retrieveNewS3Token: (runtimeKey: string) => Promise<{
24
- filesS3Token: string;
25
- }>;
26
- createFiles?: (options: FlowrunnerContextOptions) => FilesApi;
27
- executionContext: {
28
- runtimeKey: string;
29
- accessToken: string;
30
- appId: string;
31
- apiKey: string;
32
- serverURL: string;
33
- flowId: string;
34
- executionId: string;
35
- };
36
- }
37
- export declare function getServiceConfigs(serviceId: string, serviceEntryPointPath: string): ConfigItem[];
38
- export declare function buildServiceDefinition(serviceId: string, serviceEntryPointPath: string): SharedExtensionDefinition;
39
- export declare function runServiceMethod(data: RunServiceMethodData): Promise<unknown>;
@@ -1,2 +0,0 @@
1
- import type { TypedefsMap } from '../types';
2
- export declare const filesTypeDefs: TypedefsMap;
@@ -1,2 +0,0 @@
1
- import { type SharedExtensionDefinition } from '../../shared/src/scheme/index';
2
- export declare function parseJsDocToServiceJson(entryPoint: string): SharedExtensionDefinition;