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

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 (316) hide show
  1. package/ai-docs/instructions/service-code-format/01-service-structure.md +1 -1
  2. package/ai-docs/instructions/service-code-format/05-dictionaries.md +1 -1
  3. package/ai-docs/instructions/service-code-format/11-output-model.md +2 -5
  4. package/ai-docs/instructions/service-code-format/13-runtime-contracts.md +2 -3
  5. package/ai-docs/instructions/service-code-format/README.md +2 -2
  6. package/dist/cli.js +335 -926
  7. package/dist/cli.js.map +4 -4
  8. package/dist/index.js +368 -956
  9. package/dist/index.js.map +4 -4
  10. package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/context/execution-context.d.ts +2 -2
  11. package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/extension.d.ts +3 -3
  12. package/dist/types/flow-extension-runner/src/global.d.ts +6 -18
  13. package/dist/types/flow-extension-runner/src/index.d.ts +39 -13
  14. package/dist/types/flow-extension-runner/src/{v2/model → model}/field-mapper.d.ts +1 -1
  15. package/dist/types/flow-extension-runner/src/{v2/model → model}/model-types.d.ts +11 -1
  16. package/dist/types/flow-extension-runner/src/{v2/model → model}/params-model.d.ts +1 -1
  17. package/dist/types/flow-extension-runner/src/{v2/params → params}/config-params.d.ts +1 -1
  18. package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/params/schema/messages.d.ts +1 -1
  19. package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/params/schema/normalize.d.ts +1 -1
  20. package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/parse.d.ts +1 -1
  21. package/dist/types/flow-extension-runner/src/{v2/params → params}/types.d.ts +1 -1
  22. package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/registry.d.ts +2 -0
  23. package/dist/types/flow-extension-runner/src/{v2/types.d.ts → types.d.ts} +1 -1
  24. package/dist/types/packages/cli/src/operations/deploy/discover-services.d.ts +2 -4
  25. package/dist/types/shared/src/constants/activity-log.d.ts +248 -2
  26. package/dist/types/shared/src/constants/error-codes.d.ts +6 -0
  27. package/dist/types/shared/src/constants/index.d.ts +1 -0
  28. package/dist/types/shared/src/constants/notification-types.d.ts +309 -0
  29. package/dist/types/shared/src/constants/panic-mode.d.ts +17 -0
  30. package/dist/types/shared/src/constants/shared-extensions.d.ts +10 -0
  31. package/dist/types/shared/src/errors/index.d.ts +1 -0
  32. package/dist/types/shared/src/errors/secrets.d.ts +16 -0
  33. package/dist/types/shared/src/scheme/access-keys/dto.d.ts +35 -13
  34. package/dist/types/shared/src/scheme/api-keys/dto.d.ts +29 -4
  35. package/dist/types/shared/src/scheme/flowrunner/custom-elements.d.ts +0 -16
  36. package/dist/types/shared/src/scheme/flowrunner/index.d.ts +1 -0
  37. package/dist/types/shared/src/scheme/flowrunner/java.dto.d.ts +26 -0
  38. package/dist/types/shared/src/scheme/flowrunner/workspace-dashboard.dto.d.ts +207 -0
  39. package/dist/types/shared/src/scheme/integration-connection/dto.d.ts +22 -0
  40. package/dist/types/shared/src/scheme/notifications/dto.d.ts +10 -0
  41. package/dist/types/shared/src/scheme/notifications/rest.d.ts +20 -0
  42. package/dist/types/shared/src/scheme/remote-mcp-server/dto.d.ts +153 -29
  43. package/dist/types/shared/src/scheme/shared-extensions/base.d.ts +0 -4
  44. package/dist/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +0 -24
  45. package/dist/types/shared/src/scheme/shared-extensions/extension.d.ts +0 -18
  46. package/dist/types/shared/src/scheme/shared-extensions/flow-extensions.d.ts +0 -3
  47. package/dist/types/shared/src/scheme/shared-extensions/index.d.ts +1 -0
  48. package/dist/types/shared/src/scheme/shared-extensions/list.d.ts +0 -28
  49. package/dist/types/shared/src/scheme/shared-extensions/methods.d.ts +0 -1
  50. package/dist/types/shared/src/scheme/shared-extensions/resolve.d.ts +0 -12
  51. package/dist/types/shared/src/scheme/shared-extensions/search.d.ts +0 -8
  52. package/dist/types/shared/src/scheme/shared-extensions/usage-stats.d.ts +189 -0
  53. package/package.json +1 -4
  54. package/project-files/sandbox/files-mock.js +3 -5
  55. package/project-files/sandbox/service.js +10 -11
  56. package/runtime/index.js +178 -863
  57. package/runtime/index.js.map +4 -4
  58. package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/context/execution-context.d.ts +2 -2
  59. package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/extension.d.ts +3 -3
  60. package/runtime/types/flow-extension-runner/src/global.d.ts +6 -18
  61. package/runtime/types/flow-extension-runner/src/index.d.ts +39 -13
  62. package/runtime/types/flow-extension-runner/src/{v2/model → model}/field-mapper.d.ts +1 -1
  63. package/runtime/types/flow-extension-runner/src/{v2/model → model}/model-types.d.ts +11 -1
  64. package/runtime/types/flow-extension-runner/src/{v2/model → model}/params-model.d.ts +1 -1
  65. package/runtime/types/flow-extension-runner/src/{v2/params → params}/config-params.d.ts +1 -1
  66. package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/params/schema/messages.d.ts +1 -1
  67. package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/params/schema/normalize.d.ts +1 -1
  68. package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/parse.d.ts +1 -1
  69. package/runtime/types/flow-extension-runner/src/{v2/params → params}/types.d.ts +1 -1
  70. package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/registry.d.ts +2 -0
  71. package/runtime/types/flow-extension-runner/src/{v2/types.d.ts → types.d.ts} +1 -1
  72. package/runtime/types/packages/cli/src/runtime/index.d.ts +6 -5
  73. package/dist/types/flow-extension-runner/src/common/config.d.ts +0 -12
  74. package/dist/types/flow-extension-runner/src/common/context.d.ts +0 -6
  75. package/dist/types/flow-extension-runner/src/common/types.d.ts +0 -11
  76. package/dist/types/flow-extension-runner/src/v1/config.d.ts +0 -3
  77. package/dist/types/flow-extension-runner/src/v1/constants.d.ts +0 -4
  78. package/dist/types/flow-extension-runner/src/v1/index.d.ts +0 -11
  79. package/dist/types/flow-extension-runner/src/v1/namespace.d.ts +0 -9
  80. package/dist/types/flow-extension-runner/src/v1/service.d.ts +0 -29
  81. package/dist/types/flow-extension-runner/src/v1/types.d.ts +0 -13
  82. package/dist/types/flow-extension-runner/src/v2/index.d.ts +0 -39
  83. package/dist/types/jsdoc-parser/src/custom-type-defs/files.d.ts +0 -2
  84. package/dist/types/jsdoc-parser/src/index.d.ts +0 -2
  85. package/dist/types/jsdoc-parser/src/lib.d.ts +0 -42
  86. package/dist/types/jsdoc-parser/src/types.d.ts +0 -2
  87. package/runtime/types/flow-extension-runner/src/common/config.d.ts +0 -12
  88. package/runtime/types/flow-extension-runner/src/common/context.d.ts +0 -6
  89. package/runtime/types/flow-extension-runner/src/common/types.d.ts +0 -11
  90. package/runtime/types/flow-extension-runner/src/v1/config.d.ts +0 -3
  91. package/runtime/types/flow-extension-runner/src/v1/constants.d.ts +0 -4
  92. package/runtime/types/flow-extension-runner/src/v1/index.d.ts +0 -11
  93. package/runtime/types/flow-extension-runner/src/v1/namespace.d.ts +0 -9
  94. package/runtime/types/flow-extension-runner/src/v1/service.d.ts +0 -29
  95. package/runtime/types/flow-extension-runner/src/v1/types.d.ts +0 -13
  96. package/runtime/types/flow-extension-runner/src/v2/index.d.ts +0 -39
  97. package/runtime/types/jsdoc-parser/src/custom-type-defs/files.d.ts +0 -2
  98. package/runtime/types/jsdoc-parser/src/index.d.ts +0 -2
  99. package/runtime/types/jsdoc-parser/src/lib.d.ts +0 -42
  100. package/runtime/types/jsdoc-parser/src/types.d.ts +0 -2
  101. package/runtime/types/shared/src/constants/activity-log.d.ts +0 -1573
  102. package/runtime/types/shared/src/constants/ai-agent-tools.d.ts +0 -20
  103. package/runtime/types/shared/src/constants/ai.d.ts +0 -11
  104. package/runtime/types/shared/src/constants/api-keys.d.ts +0 -1
  105. package/runtime/types/shared/src/constants/app.d.ts +0 -57
  106. package/runtime/types/shared/src/constants/billing.d.ts +0 -16
  107. package/runtime/types/shared/src/constants/compliances.d.ts +0 -3
  108. package/runtime/types/shared/src/constants/data-types.d.ts +0 -26
  109. package/runtime/types/shared/src/constants/docs.d.ts +0 -6
  110. package/runtime/types/shared/src/constants/error-codes.d.ts +0 -20
  111. package/runtime/types/shared/src/constants/flow.d.ts +0 -12
  112. package/runtime/types/shared/src/constants/index.d.ts +0 -18
  113. package/runtime/types/shared/src/constants/knowledge-base.d.ts +0 -15
  114. package/runtime/types/shared/src/constants/notification-types.d.ts +0 -1234
  115. package/runtime/types/shared/src/constants/notifications.d.ts +0 -10
  116. package/runtime/types/shared/src/constants/oauth-connection-error.d.ts +0 -3
  117. package/runtime/types/shared/src/constants/patterns.d.ts +0 -28
  118. package/runtime/types/shared/src/constants/retry-policy.d.ts +0 -30
  119. package/runtime/types/shared/src/constants/severity.d.ts +0 -9
  120. package/runtime/types/shared/src/constants/shared-extensions-search.d.ts +0 -6
  121. package/runtime/types/shared/src/constants/shared-extensions.d.ts +0 -56
  122. package/runtime/types/shared/src/constants/zod.d.ts +0 -2
  123. package/runtime/types/shared/src/errors/api.d.ts +0 -15
  124. package/runtime/types/shared/src/errors/base.d.ts +0 -38
  125. package/runtime/types/shared/src/errors/common.d.ts +0 -39
  126. package/runtime/types/shared/src/errors/index.d.ts +0 -14
  127. package/runtime/types/shared/src/errors/k8s.d.ts +0 -14
  128. package/runtime/types/shared/src/errors/message.d.ts +0 -48
  129. package/runtime/types/shared/src/errors/oauth-connection.d.ts +0 -4
  130. package/runtime/types/shared/src/errors/open-search.d.ts +0 -4
  131. package/runtime/types/shared/src/errors/s3.d.ts +0 -11
  132. package/runtime/types/shared/src/extensions/zod.d.ts +0 -25
  133. package/runtime/types/shared/src/scheme/access-keys/dto.d.ts +0 -101
  134. package/runtime/types/shared/src/scheme/access-keys/index.d.ts +0 -2
  135. package/runtime/types/shared/src/scheme/account/dto.d.ts +0 -63
  136. package/runtime/types/shared/src/scheme/account/index.d.ts +0 -1
  137. package/runtime/types/shared/src/scheme/activity-log-base.d.ts +0 -35
  138. package/runtime/types/shared/src/scheme/ai-agent-tools/dto.d.ts +0 -69
  139. package/runtime/types/shared/src/scheme/ai-agent-tools/index.d.ts +0 -2
  140. package/runtime/types/shared/src/scheme/ai-agent-tools/parameters.d.ts +0 -7
  141. package/runtime/types/shared/src/scheme/ai-router/dto.d.ts +0 -23
  142. package/runtime/types/shared/src/scheme/ai-router/index.d.ts +0 -2
  143. package/runtime/types/shared/src/scheme/api-keys/dto.d.ts +0 -28
  144. package/runtime/types/shared/src/scheme/api-keys/index.d.ts +0 -2
  145. package/runtime/types/shared/src/scheme/app/index.d.ts +0 -1
  146. package/runtime/types/shared/src/scheme/app/java.dto.d.ts +0 -6
  147. package/runtime/types/shared/src/scheme/billing/index.d.ts +0 -1
  148. package/runtime/types/shared/src/scheme/billing/java.dto.d.ts +0 -181
  149. package/runtime/types/shared/src/scheme/crm/billing.d.ts +0 -149
  150. package/runtime/types/shared/src/scheme/crm/dto.d.ts +0 -218
  151. package/runtime/types/shared/src/scheme/crm/index.d.ts +0 -3
  152. package/runtime/types/shared/src/scheme/data-types/index.d.ts +0 -1
  153. package/runtime/types/shared/src/scheme/data-types/java.dto.d.ts +0 -22
  154. package/runtime/types/shared/src/scheme/dynamic-forms/dto.d.ts +0 -30
  155. package/runtime/types/shared/src/scheme/dynamic-forms/index.d.ts +0 -2
  156. package/runtime/types/shared/src/scheme/extensions/index.d.ts +0 -1
  157. package/runtime/types/shared/src/scheme/extensions/params-to-zod.d.ts +0 -14
  158. package/runtime/types/shared/src/scheme/flowrunner/custom-elements.d.ts +0 -383
  159. package/runtime/types/shared/src/scheme/flowrunner/index.d.ts +0 -3
  160. package/runtime/types/shared/src/scheme/flowrunner/java.dto.d.ts +0 -655
  161. package/runtime/types/shared/src/scheme/index.d.ts +0 -21
  162. package/runtime/types/shared/src/scheme/integration-connection/dto.d.ts +0 -135
  163. package/runtime/types/shared/src/scheme/integration-connection/index.d.ts +0 -2
  164. package/runtime/types/shared/src/scheme/knowledge-base/dto.d.ts +0 -776
  165. package/runtime/types/shared/src/scheme/knowledge-base/index.d.ts +0 -2
  166. package/runtime/types/shared/src/scheme/mcp-oauth/dto.d.ts +0 -9
  167. package/runtime/types/shared/src/scheme/mcp-oauth/index.d.ts +0 -2
  168. package/runtime/types/shared/src/scheme/notifications/dto.d.ts +0 -118
  169. package/runtime/types/shared/src/scheme/notifications/index.d.ts +0 -3
  170. package/runtime/types/shared/src/scheme/notifications/rest.d.ts +0 -162
  171. package/runtime/types/shared/src/scheme/onboarding/dto.d.ts +0 -29
  172. package/runtime/types/shared/src/scheme/onboarding/index.d.ts +0 -1
  173. package/runtime/types/shared/src/scheme/properties/account.d.ts +0 -3
  174. package/runtime/types/shared/src/scheme/properties/app.d.ts +0 -5
  175. package/runtime/types/shared/src/scheme/properties/billing.d.ts +0 -12
  176. package/runtime/types/shared/src/scheme/properties/common.d.ts +0 -2
  177. package/runtime/types/shared/src/scheme/properties/db.d.ts +0 -8
  178. package/runtime/types/shared/src/scheme/properties/flow-extensions.d.ts +0 -7
  179. package/runtime/types/shared/src/scheme/properties/index.d.ts +0 -7
  180. package/runtime/types/shared/src/scheme/remote-mcp-server/dto.d.ts +0 -278
  181. package/runtime/types/shared/src/scheme/remote-mcp-server/index.d.ts +0 -2
  182. package/runtime/types/shared/src/scheme/shared-extensions/base.d.ts +0 -62
  183. package/runtime/types/shared/src/scheme/shared-extensions/config.d.ts +0 -96
  184. package/runtime/types/shared/src/scheme/shared-extensions/custom-extensions.d.ts +0 -631
  185. package/runtime/types/shared/src/scheme/shared-extensions/extension.d.ts +0 -411
  186. package/runtime/types/shared/src/scheme/shared-extensions/flow-extensions.d.ts +0 -64
  187. package/runtime/types/shared/src/scheme/shared-extensions/index.d.ts +0 -17
  188. package/runtime/types/shared/src/scheme/shared-extensions/light.d.ts +0 -38
  189. package/runtime/types/shared/src/scheme/shared-extensions/list.d.ts +0 -250
  190. package/runtime/types/shared/src/scheme/shared-extensions/logs.d.ts +0 -21
  191. package/runtime/types/shared/src/scheme/shared-extensions/methods.d.ts +0 -112
  192. package/runtime/types/shared/src/scheme/shared-extensions/params-schema.d.ts +0 -48
  193. package/runtime/types/shared/src/scheme/shared-extensions/popular-pool.d.ts +0 -11
  194. package/runtime/types/shared/src/scheme/shared-extensions/resolve.d.ts +0 -373
  195. package/runtime/types/shared/src/scheme/shared-extensions/rest.d.ts +0 -9
  196. package/runtime/types/shared/src/scheme/shared-extensions/search.d.ts +0 -189
  197. package/runtime/types/shared/src/scheme/shared-extensions/service-identity.d.ts +0 -10
  198. package/runtime/types/shared/src/scheme/shared-extensions/service-info.d.ts +0 -16
  199. package/runtime/types/shared/src/scheme/shared-extensions/workspace-stack.d.ts +0 -44
  200. package/runtime/types/shared/src/scheme/workspace/dto.d.ts +0 -40
  201. package/runtime/types/shared/src/scheme/workspace/index.d.ts +0 -1
  202. package/runtime/types/shared/src/utils/object.d.ts +0 -8
  203. package/runtime/types/shared/src/utils/uuid.d.ts +0 -5
  204. package/runtime/types/shared/src/utils/versions.d.ts +0 -4
  205. package/dist/types/flow-extension-runner/src/{v2/actions → actions}/action-method.d.ts +0 -0
  206. package/dist/types/flow-extension-runner/src/{common/context-files.d.ts → context/files.d.ts} +0 -0
  207. package/dist/types/flow-extension-runner/src/{v2/context → context}/logger.d.ts +0 -0
  208. package/dist/types/flow-extension-runner/src/{v2/context → context}/method-input.d.ts +0 -0
  209. package/dist/types/flow-extension-runner/src/{v2/context → context}/proxies.d.ts +0 -0
  210. package/dist/types/flow-extension-runner/src/{v2/create-extension.d.ts → create-extension.d.ts} +0 -0
  211. package/dist/types/flow-extension-runner/src/{v2/crypto.d.ts → crypto.d.ts} +0 -0
  212. package/dist/types/flow-extension-runner/src/{v2/dictionaries → dictionaries}/dictionary-method.d.ts +0 -0
  213. package/dist/types/flow-extension-runner/src/{v2/dictionaries → dictionaries}/payload-schema.d.ts +0 -0
  214. package/dist/types/flow-extension-runner/src/{v2/loaders → loaders}/loader-method.d.ts +0 -0
  215. package/dist/types/flow-extension-runner/src/{v2/loaders → loaders}/loader-owner.d.ts +0 -0
  216. package/dist/types/flow-extension-runner/src/{v2/loaders → loaders}/payload-schema.d.ts +0 -0
  217. package/dist/types/flow-extension-runner/src/{v2/method.d.ts → method.d.ts} +0 -0
  218. package/dist/types/flow-extension-runner/src/{v2/model → model}/method-model.d.ts +0 -0
  219. package/dist/types/flow-extension-runner/src/{v2/oauth → oauth}/method-names.d.ts +0 -0
  220. package/dist/types/flow-extension-runner/src/{v2/oauth → oauth}/oauth2.d.ts +0 -0
  221. package/dist/types/flow-extension-runner/src/{v2/oauth → oauth}/system-params.d.ts +0 -0
  222. package/dist/types/flow-extension-runner/src/{v2/oauth → oauth}/types.d.ts +0 -0
  223. package/dist/types/flow-extension-runner/src/{common/constants.d.ts → params/config-types.d.ts} +0 -0
  224. package/{runtime/types/flow-extension-runner/src/v2 → dist/types/flow-extension-runner/src}/params/files-options.d.ts +4 -4
  225. /package/dist/types/flow-extension-runner/src/{v2/params → params}/index.d.ts +0 -0
  226. /package/dist/types/flow-extension-runner/src/{v2/params → params}/json/checks.d.ts +0 -0
  227. /package/dist/types/flow-extension-runner/src/{v2/params → params}/json/decode.d.ts +0 -0
  228. /package/dist/types/flow-extension-runner/src/{v2/params → params}/json/encode.d.ts +0 -0
  229. /package/dist/types/flow-extension-runner/src/{v2/params → params}/json/types.d.ts +0 -0
  230. /package/dist/types/flow-extension-runner/src/{v2/params → params}/json/values.d.ts +0 -0
  231. /package/dist/types/flow-extension-runner/src/{v2/params → params}/method-params.d.ts +0 -0
  232. /package/dist/types/flow-extension-runner/src/{v2/params → params}/params.d.ts +0 -0
  233. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/assert-object-schema.d.ts +0 -0
  234. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/assert-supported-schema.d.ts +0 -0
  235. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/coerce.d.ts +0 -0
  236. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/date-format.d.ts +0 -0
  237. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/dates.d.ts +0 -0
  238. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/defaults.d.ts +0 -0
  239. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/dictionary-binding.d.ts +0 -0
  240. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/field-plan.d.ts +0 -0
  241. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/introspect.d.ts +0 -0
  242. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/labels.d.ts +0 -0
  243. /package/dist/types/flow-extension-runner/src/{v2/params → params}/schema/notices.d.ts +0 -0
  244. /package/dist/types/flow-extension-runner/src/{v2/params → params}/widget-types.d.ts +0 -0
  245. /package/dist/types/flow-extension-runner/src/{v2/params → params}/zod.d.ts +0 -0
  246. /package/dist/types/flow-extension-runner/src/{v2/path.d.ts → path.d.ts} +0 -0
  247. /package/dist/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/mechanisms.d.ts +0 -0
  248. /package/dist/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/method-names.d.ts +0 -0
  249. /package/dist/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/polling-triggers.d.ts +0 -0
  250. /package/dist/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/system-params.d.ts +0 -0
  251. /package/dist/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/trigger-method.d.ts +0 -0
  252. /package/dist/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/types.d.ts +0 -0
  253. /package/dist/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/method-names.d.ts +0 -0
  254. /package/dist/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/realtime-setup.d.ts +0 -0
  255. /package/dist/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/system-params.d.ts +0 -0
  256. /package/dist/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/trigger-method.d.ts +0 -0
  257. /package/dist/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/types.d.ts +0 -0
  258. /package/dist/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/verify.d.ts +0 -0
  259. /package/dist/types/flow-extension-runner/src/{v2/result.d.ts → result.d.ts} +0 -0
  260. /package/dist/types/flow-extension-runner/src/{v2/system-method.d.ts → system-method.d.ts} +0 -0
  261. /package/runtime/types/flow-extension-runner/src/{v2/actions → actions}/action-method.d.ts +0 -0
  262. /package/runtime/types/flow-extension-runner/src/{common/context-files.d.ts → context/files.d.ts} +0 -0
  263. /package/runtime/types/flow-extension-runner/src/{v2/context → context}/logger.d.ts +0 -0
  264. /package/runtime/types/flow-extension-runner/src/{v2/context → context}/method-input.d.ts +0 -0
  265. /package/runtime/types/flow-extension-runner/src/{v2/context → context}/proxies.d.ts +0 -0
  266. /package/runtime/types/flow-extension-runner/src/{v2/create-extension.d.ts → create-extension.d.ts} +0 -0
  267. /package/runtime/types/flow-extension-runner/src/{v2/crypto.d.ts → crypto.d.ts} +0 -0
  268. /package/runtime/types/flow-extension-runner/src/{v2/dictionaries → dictionaries}/dictionary-method.d.ts +0 -0
  269. /package/runtime/types/flow-extension-runner/src/{v2/dictionaries → dictionaries}/payload-schema.d.ts +0 -0
  270. /package/runtime/types/flow-extension-runner/src/{v2/loaders → loaders}/loader-method.d.ts +0 -0
  271. /package/runtime/types/flow-extension-runner/src/{v2/loaders → loaders}/loader-owner.d.ts +0 -0
  272. /package/runtime/types/flow-extension-runner/src/{v2/loaders → loaders}/payload-schema.d.ts +0 -0
  273. /package/runtime/types/flow-extension-runner/src/{v2/method.d.ts → method.d.ts} +0 -0
  274. /package/runtime/types/flow-extension-runner/src/{v2/model → model}/method-model.d.ts +0 -0
  275. /package/runtime/types/flow-extension-runner/src/{v2/oauth → oauth}/method-names.d.ts +0 -0
  276. /package/runtime/types/flow-extension-runner/src/{v2/oauth → oauth}/oauth2.d.ts +0 -0
  277. /package/runtime/types/flow-extension-runner/src/{v2/oauth → oauth}/system-params.d.ts +0 -0
  278. /package/runtime/types/flow-extension-runner/src/{v2/oauth → oauth}/types.d.ts +0 -0
  279. /package/runtime/types/flow-extension-runner/src/{common/constants.d.ts → params/config-types.d.ts} +0 -0
  280. /package/{dist/types/flow-extension-runner/src/v2 → runtime/types/flow-extension-runner/src}/params/files-options.d.ts +0 -0
  281. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/index.d.ts +0 -0
  282. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/json/checks.d.ts +0 -0
  283. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/json/decode.d.ts +0 -0
  284. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/json/encode.d.ts +0 -0
  285. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/json/types.d.ts +0 -0
  286. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/json/values.d.ts +0 -0
  287. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/method-params.d.ts +0 -0
  288. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/params.d.ts +0 -0
  289. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/assert-object-schema.d.ts +0 -0
  290. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/assert-supported-schema.d.ts +0 -0
  291. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/coerce.d.ts +0 -0
  292. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/date-format.d.ts +0 -0
  293. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/dates.d.ts +0 -0
  294. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/defaults.d.ts +0 -0
  295. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/dictionary-binding.d.ts +0 -0
  296. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/field-plan.d.ts +0 -0
  297. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/introspect.d.ts +0 -0
  298. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/labels.d.ts +0 -0
  299. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/schema/notices.d.ts +0 -0
  300. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/widget-types.d.ts +0 -0
  301. /package/runtime/types/flow-extension-runner/src/{v2/params → params}/zod.d.ts +0 -0
  302. /package/runtime/types/flow-extension-runner/src/{v2/path.d.ts → path.d.ts} +0 -0
  303. /package/runtime/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/mechanisms.d.ts +0 -0
  304. /package/runtime/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/method-names.d.ts +0 -0
  305. /package/runtime/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/polling-triggers.d.ts +0 -0
  306. /package/runtime/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/system-params.d.ts +0 -0
  307. /package/runtime/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/trigger-method.d.ts +0 -0
  308. /package/runtime/types/flow-extension-runner/src/{v2/polling-triggers → polling-triggers}/types.d.ts +0 -0
  309. /package/runtime/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/method-names.d.ts +0 -0
  310. /package/runtime/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/realtime-setup.d.ts +0 -0
  311. /package/runtime/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/system-params.d.ts +0 -0
  312. /package/runtime/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/trigger-method.d.ts +0 -0
  313. /package/runtime/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/types.d.ts +0 -0
  314. /package/runtime/types/flow-extension-runner/src/{v2/realtime-triggers → realtime-triggers}/verify.d.ts +0 -0
  315. /package/runtime/types/flow-extension-runner/src/{v2/result.d.ts → result.d.ts} +0 -0
  316. /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';
@@ -7,9 +7,7 @@ export interface DiscoveredService {
7
7
  serviceInfo: SharedExtensionDefinition['serviceInfo'];
8
8
  methodsMap: SharedExtensionDefinition['methodsMap'];
9
9
  configDescriptions: SharedExtensionConfigItem[];
10
- /** Which authoring format the entry point turned out to be — the deploy carries it so the console can branch. */
11
- runnerVersion: SharedExtensionDefinition['runnerVersion'];
12
- /** v2 only: the declared config schema, encoded. `null` for a JSDoc-parsed service. */
10
+ /** The declared config schema, encoded. */
13
11
  configSchema: SharedExtensionDefinition['configSchema'];
14
12
  }
15
13
  export interface DiscoveryResult {
@@ -22,5 +20,5 @@ export interface DiscoveryResult {
22
20
  */
23
21
  skipped: SkippedService[];
24
22
  }
25
- /** Scan `services/*` under the project root and build each service's definition, v2 declarative or v1 JSDoc. */
23
+ /** Scan `services/*` under the project root and build each service's definition from its `createExtension` call. */
26
24
  export declare function discoverServices(projectRoot?: string): DiscoveryResult;
@@ -1,5 +1,6 @@
1
1
  import { z, type ZodSchema } from 'zod';
2
2
  import { type AllNotificationType } from './notification-types';
3
+ import { panicNotificationData } from './panic-mode';
3
4
  import { type SeverityType } from './severity';
4
5
  /**
5
6
  * Which activity log a given operation belongs to. Present on every operation
@@ -98,7 +99,18 @@ export declare enum ActivityLogOperation {
98
99
  WS_SSO_CONFIG_SAVED = "WS_SSO_CONFIG_SAVED",
99
100
  WS_SSO_CONFIG_DELETED = "WS_SSO_CONFIG_DELETED",
100
101
  WS_SSO_RELINK_PERMITTED = "WS_SSO_RELINK_PERMITTED",
102
+ WS_SSO_SIGNING_KEY_CHANGED = "WS_SSO_SIGNING_KEY_CHANGED",
101
103
  WS_ACCESS_KEY_ROTATED = "WS_ACCESS_KEY_ROTATED",
104
+ WS_EXTERNAL_INVOCATION_SUSPENDED = "WS_EXTERNAL_INVOCATION_SUSPENDED",
105
+ WS_EXTERNAL_INVOCATION_RESUMED = "WS_EXTERNAL_INVOCATION_RESUMED",
106
+ WS_ACCESS_KEY_REVOKED = "WS_ACCESS_KEY_REVOKED",
107
+ WS_ACCESS_KEY_REACTIVATED = "WS_ACCESS_KEY_REACTIVATED",
108
+ WS_ACCESS_KEY_SECRET_REVEALED = "WS_ACCESS_KEY_SECRET_REVEALED",
109
+ WS_ACCESS_KEY_REVOKED_KEY_USED = "WS_ACCESS_KEY_REVOKED_KEY_USED",
110
+ WS_ACCESS_KEY_TRANSPORT_DENIED = "WS_ACCESS_KEY_TRANSPORT_DENIED",
111
+ WS_ACCESS_KEY_FLOW_ALLOWLIST_DENIED = "WS_ACCESS_KEY_FLOW_ALLOWLIST_DENIED",
112
+ WS_ACCESS_KEY_ADDRESS_ALLOWLIST_DENIED = "WS_ACCESS_KEY_ADDRESS_ALLOWLIST_DENIED",
113
+ WS_ACCESS_KEY_VOLUME_SPIKED = "WS_ACCESS_KEY_VOLUME_SPIKED",
102
114
  WS_ACCOUNT_PERMISSIONS_CHANGED = "WS_ACCOUNT_PERMISSIONS_CHANGED",
103
115
  WS_OWNERSHIP_TRANSFER_STARTED = "WS_OWNERSHIP_TRANSFER_STARTED",
104
116
  WS_OWNERSHIP_TRANSFER_COMPLETED = "WS_OWNERSHIP_TRANSFER_COMPLETED",
@@ -140,9 +152,13 @@ export declare enum ActivityLogOperation {
140
152
  ACC_ACTIVATED_BY_SSO = "ACC_ACTIVATED_BY_SSO",
141
153
  ACC_SSO_RELINK_PERMITTED = "ACC_SSO_RELINK_PERMITTED",
142
154
  ACC_SSO_SIGN_IN_LINKS_REQUESTED = "ACC_SSO_SIGN_IN_LINKS_REQUESTED",
155
+ ACC_SSO_SIGN_IN_CODE_ISSUED = "ACC_SSO_SIGN_IN_CODE_ISSUED",
156
+ ACC_SSO_SIGNING_KEY_CHANGED = "ACC_SSO_SIGNING_KEY_CHANGED",
143
157
  ACC_LOGIN_OTP_ISSUED = "ACC_LOGIN_OTP_ISSUED",
144
158
  ACC_EMAIL_CONFIRMATION_REQUESTED = "ACC_EMAIL_CONFIRMATION_REQUESTED",
145
159
  ACC_PAYMENT_CONFIRMATION_REQUIRED = "ACC_PAYMENT_CONFIRMATION_REQUIRED",
160
+ ACC_EMAIL_CHANGE_CONFIRMATION_REQUESTED = "ACC_EMAIL_CHANGE_CONFIRMATION_REQUESTED",
161
+ ACC_EMAIL_CHANGED = "ACC_EMAIL_CHANGED",
146
162
  ACC_WORKSPACE_DELETED = "ACC_WORKSPACE_DELETED",
147
163
  ACC_PASSWORD_CHANGED = "ACC_PASSWORD_CHANGED",
148
164
  ACC_PROFILE_UPDATED = "ACC_PROFILE_UPDATED"
@@ -158,6 +174,12 @@ export interface ActivityLogOperationConfig {
158
174
  requirePerformerId?: boolean;
159
175
  detailsSchema?: ZodSchema;
160
176
  notify?: ActivityLogNotifyRule;
177
+ /**
178
+ * Deliver only through the `notify` email — do not persist a history row and do not broadcast. For a
179
+ * transactional secret (a sign-in confirmation code) that must never be readable in any activity log.
180
+ * The notification it fires should itself be `emailOnly`. Honoured by the account activity service.
181
+ */
182
+ transient?: boolean;
161
183
  }
162
184
  export declare const ActivityLogOperationsConfigs: {
163
185
  WS_DYNAMIC_FORM_CREATED: {
@@ -768,9 +790,16 @@ export declare const ActivityLogOperationsConfigs: {
768
790
  category: ActivityLogCategory.WORKSPACE_MANAGE;
769
791
  title: string;
770
792
  summary: string;
771
- detailsSchema: z.ZodObject<{}, z.core.$strict>;
793
+ detailsSchema: z.ZodObject<{
794
+ elements: z.ZodOptional<z.ZodArray<z.ZodEnum<{
795
+ readonly API_ACCESS: "apiAccess";
796
+ readonly CONSOLE_ACCESS: "consoleAccess";
797
+ readonly ACCOUNT_SESSIONS: "accountSessions";
798
+ }>>>;
799
+ }, z.core.$strict>;
772
800
  notify: {
773
801
  type: "PANIC_MODE_ENABLED";
802
+ mapData: typeof panicNotificationData;
774
803
  };
775
804
  };
776
805
  WS_PANIC_MODE_DISABLED: {
@@ -779,9 +808,16 @@ export declare const ActivityLogOperationsConfigs: {
779
808
  category: ActivityLogCategory.WORKSPACE_MANAGE;
780
809
  title: string;
781
810
  summary: string;
782
- detailsSchema: z.ZodObject<{}, z.core.$strict>;
811
+ detailsSchema: z.ZodObject<{
812
+ elements: z.ZodOptional<z.ZodArray<z.ZodEnum<{
813
+ readonly API_ACCESS: "apiAccess";
814
+ readonly CONSOLE_ACCESS: "consoleAccess";
815
+ readonly ACCOUNT_SESSIONS: "accountSessions";
816
+ }>>>;
817
+ }, z.core.$strict>;
783
818
  notify: {
784
819
  type: "PANIC_MODE_DISABLED";
820
+ mapData: typeof panicNotificationData;
785
821
  };
786
822
  };
787
823
  WS_HIPAA_COMPLIANCE_ENABLED: {
@@ -826,6 +862,26 @@ export declare const ActivityLogOperationsConfigs: {
826
862
  accountId: z.ZodOptional<z.ZodString>;
827
863
  }, z.core.$strip>;
828
864
  };
865
+ WS_SSO_SIGNING_KEY_CHANGED: {
866
+ scope: ActivityLogScope.WORKSPACE;
867
+ severity: "warning";
868
+ category: ActivityLogCategory.WORKSPACE_MANAGE;
869
+ title: ({ accountName, signingCertificates }: Record<string, unknown>) => string;
870
+ summary: string;
871
+ detailsSchema: z.ZodObject<{
872
+ accountId: z.ZodString;
873
+ accountName: z.ZodOptional<z.ZodString>;
874
+ signingKeyFingerprint: z.ZodString;
875
+ signingCertificates: z.ZodArray<z.ZodObject<{
876
+ sha256: z.ZodString;
877
+ sha1: z.ZodString;
878
+ }, z.core.$strip>>;
879
+ }, z.core.$strip>;
880
+ notify: {
881
+ type: "WORKSPACE_SSO_SIGNING_KEY_CHANGED";
882
+ recipient: "workspaceOwner";
883
+ };
884
+ };
829
885
  WS_ACCESS_KEY_ROTATED: {
830
886
  scope: ActivityLogScope.WORKSPACE;
831
887
  severity: "critical";
@@ -839,6 +895,133 @@ export declare const ActivityLogOperationsConfigs: {
839
895
  type: "ACCESS_KEY_ROTATED";
840
896
  };
841
897
  };
898
+ WS_EXTERNAL_INVOCATION_SUSPENDED: {
899
+ scope: ActivityLogScope.WORKSPACE;
900
+ severity: "warning";
901
+ category: ActivityLogCategory.API_KEYS;
902
+ title: () => string;
903
+ summary: string;
904
+ requirePerformerId: true;
905
+ };
906
+ WS_EXTERNAL_INVOCATION_RESUMED: {
907
+ scope: ActivityLogScope.WORKSPACE;
908
+ severity: "info";
909
+ category: ActivityLogCategory.API_KEYS;
910
+ title: () => string;
911
+ summary: string;
912
+ requirePerformerId: true;
913
+ };
914
+ WS_ACCESS_KEY_REVOKED: {
915
+ scope: ActivityLogScope.WORKSPACE;
916
+ severity: "warning";
917
+ category: ActivityLogCategory.API_KEYS;
918
+ title: ({ accessKeyName }: Record<string, unknown>) => string;
919
+ summary: string;
920
+ requirePerformerId: true;
921
+ detailsSchema: z.ZodObject<{
922
+ accessKeyId: z.ZodString;
923
+ }, z.core.$strict>;
924
+ };
925
+ WS_ACCESS_KEY_REACTIVATED: {
926
+ scope: ActivityLogScope.WORKSPACE;
927
+ severity: "info";
928
+ category: ActivityLogCategory.API_KEYS;
929
+ title: ({ accessKeyName }: Record<string, unknown>) => string;
930
+ summary: string;
931
+ requirePerformerId: true;
932
+ detailsSchema: z.ZodObject<{
933
+ accessKeyId: z.ZodString;
934
+ }, z.core.$strict>;
935
+ };
936
+ WS_ACCESS_KEY_SECRET_REVEALED: {
937
+ scope: ActivityLogScope.WORKSPACE;
938
+ severity: "info";
939
+ category: ActivityLogCategory.API_KEYS;
940
+ title: ({ accessKeyName }: Record<string, unknown>) => string;
941
+ summary: string;
942
+ requirePerformerId: true;
943
+ detailsSchema: z.ZodObject<{
944
+ accessKeyId: z.ZodString;
945
+ }, z.core.$strict>;
946
+ };
947
+ WS_ACCESS_KEY_REVOKED_KEY_USED: {
948
+ scope: ActivityLogScope.WORKSPACE;
949
+ severity: "critical";
950
+ category: ActivityLogCategory.API_KEYS;
951
+ title: ({ accessKeyName }: Record<string, unknown>) => string;
952
+ summary: string;
953
+ detailsSchema: z.ZodObject<{
954
+ accessKeyId: z.ZodString;
955
+ accessKeyName: z.ZodString;
956
+ }, z.core.$strict>;
957
+ notify: {
958
+ type: "ACCESS_KEY_REVOKED_KEY_USED";
959
+ recipient: "workspaceOwner";
960
+ };
961
+ };
962
+ WS_ACCESS_KEY_TRANSPORT_DENIED: {
963
+ scope: ActivityLogScope.WORKSPACE;
964
+ severity: "warning";
965
+ category: ActivityLogCategory.API_KEYS;
966
+ title: ({ accessKeyName, transport }: Record<string, unknown>) => string;
967
+ summary: string;
968
+ detailsSchema: z.ZodObject<{
969
+ accessKeyId: z.ZodString;
970
+ accessKeyName: z.ZodString;
971
+ transport: z.ZodString;
972
+ }, z.core.$strict>;
973
+ notify: {
974
+ type: "ACCESS_KEY_TRANSPORT_DENIED";
975
+ };
976
+ };
977
+ WS_ACCESS_KEY_FLOW_ALLOWLIST_DENIED: {
978
+ scope: ActivityLogScope.WORKSPACE;
979
+ severity: "warning";
980
+ category: ActivityLogCategory.API_KEYS;
981
+ title: ({ accessKeyName }: Record<string, unknown>) => string;
982
+ summary: string;
983
+ detailsSchema: z.ZodObject<{
984
+ accessKeyId: z.ZodString;
985
+ accessKeyName: z.ZodString;
986
+ flowIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
987
+ }, z.core.$strict>;
988
+ notify: {
989
+ type: "ACCESS_KEY_FLOW_ALLOWLIST_DENIED";
990
+ };
991
+ };
992
+ WS_ACCESS_KEY_ADDRESS_ALLOWLIST_DENIED: {
993
+ scope: ActivityLogScope.WORKSPACE;
994
+ severity: "critical";
995
+ category: ActivityLogCategory.API_KEYS;
996
+ title: ({ accessKeyName, address }: Record<string, unknown>) => string;
997
+ summary: string;
998
+ detailsSchema: z.ZodObject<{
999
+ accessKeyId: z.ZodString;
1000
+ accessKeyName: z.ZodString;
1001
+ address: z.ZodString;
1002
+ }, z.core.$strict>;
1003
+ notify: {
1004
+ type: "ACCESS_KEY_ADDRESS_ALLOWLIST_DENIED";
1005
+ recipient: "workspaceOwner";
1006
+ };
1007
+ };
1008
+ WS_ACCESS_KEY_VOLUME_SPIKED: {
1009
+ scope: ActivityLogScope.WORKSPACE;
1010
+ severity: "warning";
1011
+ category: ActivityLogCategory.API_KEYS;
1012
+ title: ({ accessKeyName }: Record<string, unknown>) => string;
1013
+ summary: string;
1014
+ detailsSchema: z.ZodObject<{
1015
+ accessKeyId: z.ZodString;
1016
+ accessKeyName: z.ZodString;
1017
+ todayExecutions: z.ZodNumber;
1018
+ baselineExecutions: z.ZodNumber;
1019
+ windowInDays: z.ZodNumber;
1020
+ }, z.core.$strict>;
1021
+ notify: {
1022
+ type: "ACCESS_KEY_VOLUME_SPIKED";
1023
+ };
1024
+ };
842
1025
  WS_ACCOUNT_PERMISSIONS_CHANGED: {
843
1026
  scope: ActivityLogScope.WORKSPACE;
844
1027
  severity: "info";
@@ -1409,6 +1592,41 @@ export declare const ActivityLogOperationsConfigs: {
1409
1592
  type: "SSO_SIGN_IN_LINKS_REQUESTED";
1410
1593
  };
1411
1594
  };
1595
+ ACC_SSO_SIGN_IN_CODE_ISSUED: {
1596
+ scope: ActivityLogScope.ACCOUNT;
1597
+ severity: "info";
1598
+ category: ActivityLogCategory.ACCOUNT;
1599
+ title: string;
1600
+ summary: string;
1601
+ detailsSchema: z.ZodObject<{
1602
+ workspaceId: z.ZodString;
1603
+ workspaceName: z.ZodOptional<z.ZodString>;
1604
+ code: z.ZodString;
1605
+ }, z.core.$strip>;
1606
+ transient: true;
1607
+ notify: {
1608
+ type: "SSO_SIGN_IN_CODE_ISSUED";
1609
+ };
1610
+ };
1611
+ ACC_SSO_SIGNING_KEY_CHANGED: {
1612
+ scope: ActivityLogScope.ACCOUNT;
1613
+ severity: "warning";
1614
+ category: ActivityLogCategory.ACCOUNT;
1615
+ title: ({ workspaceName }: Record<string, unknown>) => string;
1616
+ summary: string;
1617
+ detailsSchema: z.ZodObject<{
1618
+ workspaceId: z.ZodString;
1619
+ workspaceName: z.ZodOptional<z.ZodString>;
1620
+ signingKeyFingerprint: z.ZodString;
1621
+ signingCertificates: z.ZodArray<z.ZodObject<{
1622
+ sha256: z.ZodString;
1623
+ sha1: z.ZodString;
1624
+ }, z.core.$strip>>;
1625
+ }, z.core.$strip>;
1626
+ notify: {
1627
+ type: "SSO_SIGNING_KEY_CHANGED";
1628
+ };
1629
+ };
1412
1630
  ACC_LOGIN_OTP_ISSUED: {
1413
1631
  scope: ActivityLogScope.ACCOUNT;
1414
1632
  severity: "info";
@@ -1435,6 +1653,34 @@ export declare const ActivityLogOperationsConfigs: {
1435
1653
  type: "ACCOUNT_REGISTRATION_CONFIRMATION";
1436
1654
  };
1437
1655
  };
1656
+ ACC_EMAIL_CHANGE_CONFIRMATION_REQUESTED: {
1657
+ scope: ActivityLogScope.ACCOUNT;
1658
+ severity: "warning";
1659
+ category: ActivityLogCategory.ACCOUNT;
1660
+ title: string;
1661
+ summary: string;
1662
+ detailsSchema: z.ZodObject<{
1663
+ newEmail: z.ZodString;
1664
+ code: z.ZodString;
1665
+ }, z.core.$strip>;
1666
+ notify: {
1667
+ type: "EMAIL_CHANGE_CONFIRMATION_REQUESTED";
1668
+ };
1669
+ };
1670
+ ACC_EMAIL_CHANGED: {
1671
+ scope: ActivityLogScope.ACCOUNT;
1672
+ severity: "critical";
1673
+ category: ActivityLogCategory.ACCOUNT;
1674
+ title: string;
1675
+ summary: string;
1676
+ detailsSchema: z.ZodObject<{
1677
+ previousEmail: z.ZodString;
1678
+ newEmail: z.ZodString;
1679
+ }, z.core.$strip>;
1680
+ notify: {
1681
+ type: "EMAIL_CHANGED";
1682
+ };
1683
+ };
1438
1684
  ACC_PAYMENT_CONFIRMATION_REQUIRED: {
1439
1685
  scope: ActivityLogScope.ACCOUNT;
1440
1686
  severity: "warning";
@@ -18,3 +18,9 @@ export declare enum CommonErrorTypes {
18
18
  export declare enum OAuthConnectionErrorTypes {
19
19
  OAUTH_CONNECTION_RECONNECT_REQUIRED = "OAUTH_CONNECTION_RECONNECT_REQUIRED"
20
20
  }
21
+ export declare enum SecretErrorTypes {
22
+ SECRET_DECRYPTION_FAILED = "SECRET_DECRYPTION_FAILED",
23
+ SECRETS_KEYSET_NOT_LOADED = "SECRETS_KEYSET_NOT_LOADED",
24
+ SECRETS_KEYSET_NOT_CONFIGURED = "SECRETS_KEYSET_NOT_CONFIGURED",
25
+ SECRETS_KEYSET_INVALID = "SECRETS_KEYSET_INVALID"
26
+ }
@@ -11,6 +11,7 @@ export * from './knowledge-base';
11
11
  export * from './notification-types';
12
12
  export * from './notifications';
13
13
  export * from './oauth-connection-error';
14
+ export * from './panic-mode';
14
15
  export * from './patterns';
15
16
  export * from './retry-policy';
16
17
  export * from './severity';