@abyss-project/reflex 5.12.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) hide show
  1. package/.eslintrc.js +32 -32
  2. package/.prettierrc +5 -5
  3. package/README.md +15 -15
  4. package/dist/api/index.d.ts +4 -0
  5. package/dist/api/index.js +4 -0
  6. package/dist/api/index.js.map +1 -1
  7. package/dist/api/service-completion-webhook.api.d.ts +3 -0
  8. package/dist/api/service-completion-webhook.api.js +10 -0
  9. package/dist/api/service-completion-webhook.api.js.map +1 -0
  10. package/dist/api/service-consumer.api.d.ts +7 -0
  11. package/dist/api/service-consumer.api.js +19 -0
  12. package/dist/api/service-consumer.api.js.map +1 -0
  13. package/dist/api/service-discord.api.d.ts +1 -2
  14. package/dist/api/service-discord.api.js +1 -3
  15. package/dist/api/service-discord.api.js.map +1 -1
  16. package/dist/api/service-limits.api.d.ts +3 -0
  17. package/dist/api/service-limits.api.js +10 -0
  18. package/dist/api/service-limits.api.js.map +1 -0
  19. package/dist/api/service-openapi.api.d.ts +2 -0
  20. package/dist/api/service-openapi.api.js +7 -0
  21. package/dist/api/service-openapi.api.js.map +1 -0
  22. package/dist/api/service-route.api.js.map +1 -1
  23. package/dist/index.d.ts +23 -1
  24. package/dist/index.js +23 -1
  25. package/dist/index.js.map +1 -1
  26. package/dist/types/enum/completion-delivery-status.enum.d.ts +5 -0
  27. package/dist/types/enum/completion-delivery-status.enum.js +10 -0
  28. package/dist/types/enum/completion-delivery-status.enum.js.map +1 -0
  29. package/dist/types/enum/index.d.ts +2 -0
  30. package/dist/types/enum/index.js +2 -0
  31. package/dist/types/enum/index.js.map +1 -1
  32. package/dist/types/enum/reflex-error-code.enum.d.ts +8 -1
  33. package/dist/types/enum/reflex-error-code.enum.js +7 -0
  34. package/dist/types/enum/reflex-error-code.enum.js.map +1 -1
  35. package/dist/types/enum/run-status.enum.d.ts +2 -1
  36. package/dist/types/enum/run-status.enum.js +1 -0
  37. package/dist/types/enum/run-status.enum.js.map +1 -1
  38. package/dist/types/enum/scheduled-run-failure-code.enum.d.ts +2 -1
  39. package/dist/types/enum/scheduled-run-failure-code.enum.js +1 -0
  40. package/dist/types/enum/scheduled-run-failure-code.enum.js.map +1 -1
  41. package/dist/types/enum/service-block-reason.enum.d.ts +4 -0
  42. package/dist/types/enum/service-block-reason.enum.js +9 -0
  43. package/dist/types/enum/service-block-reason.enum.js.map +1 -0
  44. package/dist/types/interface/api/requests/function-run.request.d.ts +1 -0
  45. package/dist/types/interface/api/requests/function-test.request.d.ts +1 -0
  46. package/dist/types/interface/api/requests/index.d.ts +4 -0
  47. package/dist/types/interface/api/requests/index.js +4 -0
  48. package/dist/types/interface/api/requests/index.js.map +1 -1
  49. package/dist/types/interface/api/requests/service-completion-webhook.request.d.ts +9 -0
  50. package/dist/types/interface/api/requests/service-completion-webhook.request.js +3 -0
  51. package/dist/types/interface/api/requests/service-completion-webhook.request.js.map +1 -0
  52. package/dist/types/interface/api/requests/service-consumer.request.d.ts +41 -0
  53. package/dist/types/interface/api/requests/service-consumer.request.js +3 -0
  54. package/dist/types/interface/api/requests/service-consumer.request.js.map +1 -0
  55. package/dist/types/interface/api/requests/service-discord.request.d.ts +1 -14
  56. package/dist/types/interface/api/requests/service-limits.request.d.ts +18 -0
  57. package/dist/types/interface/api/requests/service-limits.request.js +3 -0
  58. package/dist/types/interface/api/requests/service-limits.request.js.map +1 -0
  59. package/dist/types/interface/api/requests/service-openapi.request.d.ts +8 -0
  60. package/dist/types/interface/api/requests/service-openapi.request.js +3 -0
  61. package/dist/types/interface/api/requests/service-openapi.request.js.map +1 -0
  62. package/dist/types/interface/api/requests/service-route.request.d.ts +3 -0
  63. package/dist/types/interface/api/responses/function-settings.response.d.ts +3 -1
  64. package/dist/types/interface/api/responses/function-test.response.d.ts +3 -1
  65. package/dist/types/interface/api/responses/index.d.ts +4 -0
  66. package/dist/types/interface/api/responses/index.js +4 -0
  67. package/dist/types/interface/api/responses/index.js.map +1 -1
  68. package/dist/types/interface/api/responses/service-completion-webhook.response.d.ts +8 -0
  69. package/dist/types/interface/api/responses/service-completion-webhook.response.js +3 -0
  70. package/dist/types/interface/api/responses/service-completion-webhook.response.js.map +1 -0
  71. package/dist/types/interface/api/responses/service-consumer.response.d.ts +25 -0
  72. package/dist/types/interface/api/responses/service-consumer.response.js +3 -0
  73. package/dist/types/interface/api/responses/service-consumer.response.js.map +1 -0
  74. package/dist/types/interface/api/responses/service-discord.response.d.ts +1 -9
  75. package/dist/types/interface/api/responses/service-limits.response.d.ts +10 -0
  76. package/dist/types/interface/api/responses/service-limits.response.js +3 -0
  77. package/dist/types/interface/api/responses/service-limits.response.js.map +1 -0
  78. package/dist/types/interface/api/responses/service-openapi.response.d.ts +5 -0
  79. package/dist/types/interface/api/responses/service-openapi.response.js +3 -0
  80. package/dist/types/interface/api/responses/service-openapi.response.js.map +1 -0
  81. package/dist/types/interface/models/index.d.ts +4 -0
  82. package/dist/types/interface/models/index.js +4 -0
  83. package/dist/types/interface/models/index.js.map +1 -1
  84. package/dist/types/interface/models/reflex-bot-limits.model.d.ts +0 -25
  85. package/dist/types/interface/models/reflex-bot-limits.model.js +8 -7
  86. package/dist/types/interface/models/reflex-bot-limits.model.js.map +1 -1
  87. package/dist/types/interface/models/reflex-completion-webhook.model.d.ts +48 -0
  88. package/dist/types/interface/models/reflex-completion-webhook.model.js +12 -0
  89. package/dist/types/interface/models/reflex-completion-webhook.model.js.map +1 -0
  90. package/dist/types/interface/models/reflex-consumer.model.d.ts +30 -0
  91. package/dist/types/interface/models/reflex-consumer.model.js +11 -0
  92. package/dist/types/interface/models/reflex-consumer.model.js.map +1 -0
  93. package/dist/types/interface/models/reflex-execution-settings.model.d.ts +1 -0
  94. package/dist/types/interface/models/reflex-execution-settings.model.js +1 -0
  95. package/dist/types/interface/models/reflex-execution-settings.model.js.map +1 -1
  96. package/dist/types/interface/models/reflex-route-contract.model.d.ts +22 -0
  97. package/dist/types/interface/models/reflex-route-contract.model.js +13 -0
  98. package/dist/types/interface/models/reflex-route-contract.model.js.map +1 -0
  99. package/dist/types/interface/models/reflex-route.model.d.ts +2 -0
  100. package/dist/types/interface/models/reflex-run.model.d.ts +22 -0
  101. package/dist/types/interface/models/reflex-run.model.js.map +1 -1
  102. package/dist/types/interface/models/reflex-service-limits.model.d.ts +41 -0
  103. package/dist/types/interface/models/reflex-service-limits.model.js +13 -0
  104. package/dist/types/interface/models/reflex-service-limits.model.js.map +1 -0
  105. package/dist/types/interface/models/reflex-service-version.model.d.ts +2 -0
  106. package/jest.config.ts +11 -11
  107. package/package.json +1 -1
  108. package/src/api/alert-rule.api.test.ts +72 -72
  109. package/src/api/alert-rule.api.ts +57 -57
  110. package/src/api/application-insights.api.test.ts +42 -42
  111. package/src/api/application-insights.api.ts +38 -38
  112. package/src/api/application-run-settings.api.test.ts +51 -51
  113. package/src/api/application-run-settings.api.ts +30 -30
  114. package/src/api/function-access.api.ts +87 -87
  115. package/src/api/function-insights.api.test.ts +27 -27
  116. package/src/api/function-insights.api.ts +18 -18
  117. package/src/api/function-run.api.ts +38 -38
  118. package/src/api/function-settings.api.ts +74 -74
  119. package/src/api/function-template.api.test.ts +72 -72
  120. package/src/api/function-template.api.ts +52 -52
  121. package/src/api/function-test.api.ts +34 -34
  122. package/src/api/function-version.api.ts +66 -66
  123. package/src/api/function.api.test.ts +2 -1
  124. package/src/api/function.api.ts +62 -62
  125. package/src/api/health.api.ts +10 -10
  126. package/src/api/index.ts +4 -0
  127. package/src/api/route-stats.api.test.ts +45 -45
  128. package/src/api/route-stats.api.ts +36 -36
  129. package/src/api/service-completion-webhook.api.test.ts +87 -0
  130. package/src/api/service-completion-webhook.api.ts +37 -0
  131. package/src/api/service-configuration.api.ts +16 -16
  132. package/src/api/service-consumer.api.test.ts +104 -0
  133. package/src/api/service-consumer.api.ts +88 -0
  134. package/src/api/service-deployment.api.ts +79 -79
  135. package/src/api/service-discord-event.api.test.ts +106 -106
  136. package/src/api/service-discord-event.api.ts +78 -78
  137. package/src/api/service-discord.api.test.ts +0 -19
  138. package/src/api/service-discord.api.ts +0 -19
  139. package/src/api/service-insights.api.test.ts +36 -36
  140. package/src/api/service-insights.api.ts +42 -42
  141. package/src/api/service-limits.api.test.ts +100 -0
  142. package/src/api/service-limits.api.ts +37 -0
  143. package/src/api/service-openapi.api.test.ts +52 -0
  144. package/src/api/service-openapi.api.ts +21 -0
  145. package/src/api/service-route.api.ts +8 -6
  146. package/src/api/service-task.api.test.ts +140 -140
  147. package/src/api/service-task.api.ts +141 -141
  148. package/src/api/service-version.api.ts +54 -54
  149. package/src/api/service.api.test.ts +215 -215
  150. package/src/api/service.api.ts +55 -55
  151. package/src/discord/discord-event-filter-cases.ts +261 -261
  152. package/src/discord/discord-event-filters.test.ts +91 -91
  153. package/src/discord/discord-event-filters.ts +95 -95
  154. package/src/discord/discord-event-intents.test.ts +112 -112
  155. package/src/discord/discord-event-intents.ts +55 -55
  156. package/src/discord/index.ts +3 -3
  157. package/src/index.test.ts +18 -1
  158. package/src/index.ts +46 -3
  159. package/src/insights/index.ts +1 -1
  160. package/src/insights/percentiles.test.ts +75 -75
  161. package/src/insights/percentiles.ts +37 -37
  162. package/src/types/enum/access-grant-status.enum.ts +12 -12
  163. package/src/types/enum/access-kind.enum.ts +7 -7
  164. package/src/types/enum/access-request-status.enum.ts +11 -11
  165. package/src/types/enum/bot-event-block-reason.enum.ts +7 -7
  166. package/src/types/enum/completion-delivery-status.enum.ts +9 -0
  167. package/src/types/enum/configuration-read-as.enum.ts +5 -5
  168. package/src/types/enum/discord-activity-type.enum.ts +9 -9
  169. package/src/types/enum/discord-channel-type.enum.ts +11 -11
  170. package/src/types/enum/discord-component-kind.enum.ts +7 -7
  171. package/src/types/enum/discord-event-drop-reason.enum.ts +13 -13
  172. package/src/types/enum/discord-event-filter-name.enum.ts +11 -11
  173. package/src/types/enum/discord-event-status.enum.ts +13 -13
  174. package/src/types/enum/discord-event-type.enum.ts +7 -7
  175. package/src/types/enum/discord-gateway-failure-code.enum.ts +11 -11
  176. package/src/types/enum/discord-gateway-state.enum.ts +11 -11
  177. package/src/types/enum/discord-host-action.enum.ts +35 -35
  178. package/src/types/enum/discord-locale.enum.ts +35 -35
  179. package/src/types/enum/discord-option-type.enum.ts +12 -12
  180. package/src/types/enum/discord-presence-status.enum.ts +8 -8
  181. package/src/types/enum/discord-sync-status.enum.ts +6 -6
  182. package/src/types/enum/discord-token-state.enum.ts +11 -11
  183. package/src/types/enum/execution-mode.enum.ts +9 -9
  184. package/src/types/enum/execution-profile.enum.ts +20 -20
  185. package/src/types/enum/execution-settings-source.enum.ts +9 -9
  186. package/src/types/enum/health-status.enum.ts +4 -4
  187. package/src/types/enum/index.ts +2 -0
  188. package/src/types/enum/insights-period.enum.ts +8 -8
  189. package/src/types/enum/log-cap-mode.enum.ts +6 -6
  190. package/src/types/enum/log-drop-cause.enum.ts +8 -8
  191. package/src/types/enum/reflex-alert-metric.enum.ts +5 -5
  192. package/src/types/enum/reflex-alert-notification-state.enum.ts +6 -6
  193. package/src/types/enum/reflex-alert-scope.enum.ts +6 -6
  194. package/src/types/enum/reflex-error-code.enum.ts +31 -1
  195. package/src/types/enum/route-method.enum.ts +9 -9
  196. package/src/types/enum/run-log-level.enum.ts +6 -6
  197. package/src/types/enum/run-mode.enum.ts +11 -11
  198. package/src/types/enum/run-status.enum.ts +5 -0
  199. package/src/types/enum/run-step-status.enum.ts +7 -7
  200. package/src/types/enum/schedule-sync-status.enum.ts +6 -6
  201. package/src/types/enum/scheduled-run-failure-code.enum.ts +3 -1
  202. package/src/types/enum/scheduled-run-origin.enum.ts +5 -5
  203. package/src/types/enum/scheduled-run-status.enum.ts +17 -17
  204. package/src/types/enum/service-block-reason.enum.ts +13 -0
  205. package/src/types/enum/service-deployment-action.enum.ts +11 -11
  206. package/src/types/enum/service-deployment-status.enum.ts +5 -5
  207. package/src/types/enum/service-type.enum.ts +9 -9
  208. package/src/types/enum/service-version-change-kind.enum.ts +6 -6
  209. package/src/types/enum/trace-effect-type.enum.ts +12 -12
  210. package/src/types/enum/trigger-access-mode.enum.ts +12 -12
  211. package/src/types/enum/trigger-kind.enum.ts +8 -8
  212. package/src/types/enum/vault-value-source.enum.ts +12 -12
  213. package/src/types/enum/vault-visibility.enum.ts +5 -5
  214. package/src/types/index.ts +2 -2
  215. package/src/types/interface/api/index.ts +3 -3
  216. package/src/types/interface/api/requests/alert-rule.request.ts +53 -53
  217. package/src/types/interface/api/requests/application-insights.request.ts +18 -18
  218. package/src/types/interface/api/requests/application-run-settings.request.ts +11 -11
  219. package/src/types/interface/api/requests/function-access.request.ts +51 -51
  220. package/src/types/interface/api/requests/function-run.request.ts +2 -0
  221. package/src/types/interface/api/requests/function-settings.request.ts +34 -34
  222. package/src/types/interface/api/requests/function-template.request.ts +29 -29
  223. package/src/types/interface/api/requests/function-test.request.ts +5 -0
  224. package/src/types/interface/api/requests/function-version.request.ts +38 -38
  225. package/src/types/interface/api/requests/function.request.ts +36 -36
  226. package/src/types/interface/api/requests/index.ts +4 -0
  227. package/src/types/interface/api/requests/route-stats.request.ts +22 -22
  228. package/src/types/interface/api/requests/service-completion-webhook.request.ts +11 -0
  229. package/src/types/interface/api/requests/service-configuration.request.ts +4 -4
  230. package/src/types/interface/api/requests/service-consumer.request.ts +51 -0
  231. package/src/types/interface/api/requests/service-deployment.request.ts +49 -49
  232. package/src/types/interface/api/requests/service-discord-event.request.ts +68 -68
  233. package/src/types/interface/api/requests/service-discord.request.ts +1 -25
  234. package/src/types/interface/api/requests/service-insights.request.ts +31 -31
  235. package/src/types/interface/api/requests/service-limits.request.ts +28 -0
  236. package/src/types/interface/api/requests/service-openapi.request.ts +10 -0
  237. package/src/types/interface/api/requests/service-route.request.ts +8 -0
  238. package/src/types/interface/api/requests/service-task.request.ts +80 -80
  239. package/src/types/interface/api/requests/service-version.request.ts +24 -24
  240. package/src/types/interface/api/requests/service.request.ts +46 -46
  241. package/src/types/interface/api/response.ts +4 -4
  242. package/src/types/interface/api/responses/alert-rule.response.ts +24 -24
  243. package/src/types/interface/api/responses/application-insights.response.ts +11 -11
  244. package/src/types/interface/api/responses/application-run-settings.response.ts +8 -8
  245. package/src/types/interface/api/responses/function-access.response.ts +45 -45
  246. package/src/types/interface/api/responses/function-run.response.ts +18 -18
  247. package/src/types/interface/api/responses/function-settings.response.ts +8 -0
  248. package/src/types/interface/api/responses/function-template.response.ts +21 -21
  249. package/src/types/interface/api/responses/function-test.response.ts +8 -1
  250. package/src/types/interface/api/responses/function-version.response.ts +42 -42
  251. package/src/types/interface/api/responses/function.response.ts +25 -25
  252. package/src/types/interface/api/responses/index.ts +4 -0
  253. package/src/types/interface/api/responses/route-stats.response.ts +15 -15
  254. package/src/types/interface/api/responses/service-completion-webhook.response.ts +13 -0
  255. package/src/types/interface/api/responses/service-configuration.response.ts +8 -8
  256. package/src/types/interface/api/responses/service-consumer.response.ts +33 -0
  257. package/src/types/interface/api/responses/service-deployment.response.ts +32 -32
  258. package/src/types/interface/api/responses/service-discord-event.response.ts +24 -24
  259. package/src/types/interface/api/responses/service-discord.response.ts +4 -16
  260. package/src/types/interface/api/responses/service-insights.response.ts +11 -11
  261. package/src/types/interface/api/responses/service-limits.response.ts +13 -0
  262. package/src/types/interface/api/responses/service-openapi.response.ts +7 -0
  263. package/src/types/interface/api/responses/service-route.response.ts +3 -3
  264. package/src/types/interface/api/responses/service-task.response.ts +57 -57
  265. package/src/types/interface/api/responses/service-version.response.ts +112 -112
  266. package/src/types/interface/api/responses/service.response.ts +31 -31
  267. package/src/types/interface/health.response.ts +7 -7
  268. package/src/types/interface/index.ts +3 -3
  269. package/src/types/interface/models/index.ts +4 -0
  270. package/src/types/interface/models/reflex-access-grant.model.ts +14 -14
  271. package/src/types/interface/models/reflex-access-request.model.ts +15 -15
  272. package/src/types/interface/models/reflex-alert-rule.model.ts +56 -56
  273. package/src/types/interface/models/reflex-bot-limits.model.ts +12 -51
  274. package/src/types/interface/models/reflex-completion-webhook.model.ts +85 -0
  275. package/src/types/interface/models/reflex-consumer.model.ts +50 -0
  276. package/src/types/interface/models/reflex-definition.model.ts +31 -31
  277. package/src/types/interface/models/reflex-discord-event-log.model.ts +58 -58
  278. package/src/types/interface/models/reflex-discord-event.model.ts +79 -79
  279. package/src/types/interface/models/reflex-discord.model.ts +196 -196
  280. package/src/types/interface/models/reflex-execution-settings.model.ts +7 -0
  281. package/src/types/interface/models/reflex-function-template.model.ts +18 -18
  282. package/src/types/interface/models/reflex-function-version.model.ts +19 -19
  283. package/src/types/interface/models/reflex-function.model.ts +30 -30
  284. package/src/types/interface/models/reflex-insights.model.ts +215 -215
  285. package/src/types/interface/models/reflex-price-list.model.ts +20 -20
  286. package/src/types/interface/models/reflex-route-contract.model.ts +46 -0
  287. package/src/types/interface/models/reflex-route.model.ts +5 -1
  288. package/src/types/interface/models/reflex-run-settings.model.ts +28 -28
  289. package/src/types/interface/models/reflex-run.model.ts +49 -3
  290. package/src/types/interface/models/reflex-service-configuration.model.ts +22 -22
  291. package/src/types/interface/models/reflex-service-deployment.model.ts +46 -46
  292. package/src/types/interface/models/reflex-service-limits.model.ts +73 -0
  293. package/src/types/interface/models/reflex-service-version.model.ts +3 -0
  294. package/src/types/interface/models/reflex-service.model.ts +45 -45
  295. package/src/types/interface/models/reflex-step-stats.model.ts +35 -35
  296. package/src/types/interface/models/reflex-task.model.ts +97 -97
  297. package/tsconfig.check.json +15 -15
  298. package/tsconfig.json +35 -35
@@ -1,13 +1,13 @@
1
- /** Why a Discord event the Gateway received was not kept for execution. */
2
- export enum DiscordEventDropReason {
3
- /** A filter of the trigger rejected it (see `DiscordEventFilterName`). */
4
- FILTERED = 'FILTERED',
5
- /** The bot went past its events per minute. */
6
- RATE = 'RATE',
7
- /** The monthly spend cap of the bot is reached. */
8
- MONTHLY_CAP = 'MONTHLY_CAP',
9
- /** The credits of the organization are spent and the bot has no overage. */
10
- CREDITS_EXHAUSTED = 'CREDITS_EXHAUSTED',
11
- /** It waited in the inbox past the tolerance. */
12
- EXPIRED = 'EXPIRED',
13
- }
1
+ /** Why a Discord event the Gateway received was not kept for execution. */
2
+ export enum DiscordEventDropReason {
3
+ /** A filter of the trigger rejected it (see `DiscordEventFilterName`). */
4
+ FILTERED = 'FILTERED',
5
+ /** The bot went past its events per minute. */
6
+ RATE = 'RATE',
7
+ /** The monthly spend cap of the bot is reached. */
8
+ MONTHLY_CAP = 'MONTHLY_CAP',
9
+ /** The credits of the organization are spent and the bot has no overage. */
10
+ CREDITS_EXHAUSTED = 'CREDITS_EXHAUSTED',
11
+ /** It waited in the inbox past the tolerance. */
12
+ EXPIRED = 'EXPIRED',
13
+ }
@@ -1,11 +1,11 @@
1
- /** A filter of a Discord event trigger; the value is its key in `IReflexDiscordEventFilters` (and the name reported when it rejects an event), except `guildOnly`. */
2
- export enum DiscordEventFilterName {
3
- GUILD_IDS = 'guildIds',
4
- CHANNEL_IDS = 'channelIds',
5
- ROLE_IDS = 'roleIds',
6
- CONTENT_PREFIX = 'contentPrefix',
7
- IGNORE_BOTS = 'ignoreBots',
8
- IGNORE_SELF = 'ignoreSelf',
9
- /** Not a setting: events outside a server (direct messages) are always ignored. */
10
- GUILD_ONLY = 'guildOnly',
11
- }
1
+ /** A filter of a Discord event trigger; the value is its key in `IReflexDiscordEventFilters` (and the name reported when it rejects an event), except `guildOnly`. */
2
+ export enum DiscordEventFilterName {
3
+ GUILD_IDS = 'guildIds',
4
+ CHANNEL_IDS = 'channelIds',
5
+ ROLE_IDS = 'roleIds',
6
+ CONTENT_PREFIX = 'contentPrefix',
7
+ IGNORE_BOTS = 'ignoreBots',
8
+ IGNORE_SELF = 'ignoreSelf',
9
+ /** Not a setting: events outside a server (direct messages) are always ignored. */
10
+ GUILD_ONLY = 'guildOnly',
11
+ }
@@ -1,13 +1,13 @@
1
- /** Where a retained Discord event is in the inbox of the execution plane. */
2
- export enum DiscordEventStatus {
3
- /** Waiting to be taken by an edge. */
4
- PENDING = 'PENDING',
5
- /** Taken by an edge, running. */
6
- CLAIMED = 'CLAIMED',
7
- /** The function ran to its end. */
8
- DONE = 'DONE',
9
- /** The function failed, or the trigger left the version in service: never retried. */
10
- FAILED = 'FAILED',
11
- /** Not taken within the tolerance: never run, never billed. */
12
- EXPIRED = 'EXPIRED',
13
- }
1
+ /** Where a retained Discord event is in the inbox of the execution plane. */
2
+ export enum DiscordEventStatus {
3
+ /** Waiting to be taken by an edge. */
4
+ PENDING = 'PENDING',
5
+ /** Taken by an edge, running. */
6
+ CLAIMED = 'CLAIMED',
7
+ /** The function ran to its end. */
8
+ DONE = 'DONE',
9
+ /** The function failed, or the trigger left the version in service: never retried. */
10
+ FAILED = 'FAILED',
11
+ /** Not taken within the tolerance: never run, never billed. */
12
+ EXPIRED = 'EXPIRED',
13
+ }
@@ -1,7 +1,7 @@
1
- /** A Discord Gateway event a function of a bot Service can be triggered by. */
2
- export enum DiscordEventType {
3
- GUILD_MEMBER_ADD = 'GUILD_MEMBER_ADD',
4
- GUILD_MEMBER_REMOVE = 'GUILD_MEMBER_REMOVE',
5
- MESSAGE_CREATE = 'MESSAGE_CREATE',
6
- MESSAGE_REACTION_ADD = 'MESSAGE_REACTION_ADD',
7
- }
1
+ /** A Discord Gateway event a function of a bot Service can be triggered by. */
2
+ export enum DiscordEventType {
3
+ GUILD_MEMBER_ADD = 'GUILD_MEMBER_ADD',
4
+ GUILD_MEMBER_REMOVE = 'GUILD_MEMBER_REMOVE',
5
+ MESSAGE_CREATE = 'MESSAGE_CREATE',
6
+ MESSAGE_REACTION_ADD = 'MESSAGE_REACTION_ADD',
7
+ }
@@ -1,11 +1,11 @@
1
- /** Why a Gateway connection is `FAILED`. */
2
- export enum DiscordGatewayFailureCode {
3
- /** Discord rejected the token (close code 4004). */
4
- TOKEN_REJECTED = 'TOKEN_REJECTED',
5
- /** The bot spent its identifications of the UTC day. */
6
- IDENTIFY_BUDGET = 'IDENTIFY_BUDGET',
7
- /** Discord refused the connection (close codes 4010 to 4013: invalid shard, sharding required, invalid API version, invalid intents). */
8
- DISCORD_REFUSED = 'DISCORD_REFUSED',
9
- /** Discord refused the intents the version in service asks for (close code 4014): a privileged intent is not enabled in the Discord portal. */
10
- INTENTS_DISALLOWED = 'INTENTS_DISALLOWED',
11
- }
1
+ /** Why a Gateway connection is `FAILED`. */
2
+ export enum DiscordGatewayFailureCode {
3
+ /** Discord rejected the token (close code 4004). */
4
+ TOKEN_REJECTED = 'TOKEN_REJECTED',
5
+ /** The bot spent its identifications of the UTC day. */
6
+ IDENTIFY_BUDGET = 'IDENTIFY_BUDGET',
7
+ /** Discord refused the connection (close codes 4010 to 4013: invalid shard, sharding required, invalid API version, invalid intents). */
8
+ DISCORD_REFUSED = 'DISCORD_REFUSED',
9
+ /** Discord refused the intents the version in service asks for (close code 4014): a privileged intent is not enabled in the Discord portal. */
10
+ INTENTS_DISALLOWED = 'INTENTS_DISALLOWED',
11
+ }
@@ -1,11 +1,11 @@
1
- /** The state of the Gateway connection that keeps a Discord bot online in one environment. */
2
- export enum DiscordGatewayState {
3
- /** Connecting, identifying or resuming. */
4
- CONNECTING = 'CONNECTING',
5
- /** Connected: the bot is online. */
6
- CONNECTED = 'CONNECTED',
7
- /** No connection: the bot is paused or out of service, or the connection is between two owners. */
8
- DISCONNECTED = 'DISCONNECTED',
9
- /** The connection cannot be kept; `DiscordGatewayFailureCode` says why. */
10
- FAILED = 'FAILED',
11
- }
1
+ /** The state of the Gateway connection that keeps a Discord bot online in one environment. */
2
+ export enum DiscordGatewayState {
3
+ /** Connecting, identifying or resuming. */
4
+ CONNECTING = 'CONNECTING',
5
+ /** Connected: the bot is online. */
6
+ CONNECTED = 'CONNECTED',
7
+ /** No connection: the bot is paused or out of service, or the connection is between two owners. */
8
+ DISCONNECTED = 'DISCONNECTED',
9
+ /** The connection cannot be kept; `DiscordGatewayFailureCode` says why. */
10
+ FAILED = 'FAILED',
11
+ }
@@ -1,35 +1,35 @@
1
- /**
2
- * The `discord.*` actions a function of a Discord bot Service can declare in its accesses. Same values
3
- * as the runtime's `DiscordCapability`, which a parity test keeps equal: the Access screen lists them all.
4
- */
5
- export enum DiscordHostAction {
6
- REPLY = 'discord.reply',
7
- UPDATE = 'discord.update',
8
- SHOW_MODAL = 'discord.showModal',
9
- FOLLOW_UP = 'discord.followUp',
10
- SEND_MESSAGE = 'discord.sendMessage',
11
- EDIT_MESSAGE = 'discord.editMessage',
12
- DELETE_MESSAGE = 'discord.deleteMessage',
13
- ADD_ROLE = 'discord.addRole',
14
- REMOVE_ROLE = 'discord.removeRole',
15
- SEND_DIRECT_MESSAGE = 'discord.sendDirectMessage',
16
- GET_MEMBER = 'discord.getMember',
17
- GET_GUILD_ROLES = 'discord.getGuildRoles',
18
- GET_CHANNEL = 'discord.getChannel',
19
- GET_GUILD = 'discord.getGuild',
20
- KICK_MEMBER = 'discord.kickMember',
21
- BAN_MEMBER = 'discord.banMember',
22
- UNBAN_MEMBER = 'discord.unbanMember',
23
- TIMEOUT_MEMBER = 'discord.timeoutMember',
24
- BULK_DELETE_MESSAGES = 'discord.bulkDeleteMessages',
25
- ADD_REACTION = 'discord.addReaction',
26
- REMOVE_REACTION = 'discord.removeReaction',
27
- CREATE_CHANNEL = 'discord.createChannel',
28
- DELETE_CHANNEL = 'discord.deleteChannel',
29
- SET_CHANNEL_PERMISSION = 'discord.setChannelPermission',
30
- REMOVE_CHANNEL_PERMISSION = 'discord.removeChannelPermission',
31
- CREATE_ROLE = 'discord.createRole',
32
- DELETE_ROLE = 'discord.deleteRole',
33
- CREATE_THREAD = 'discord.createThread',
34
- END_POLL = 'discord.endPoll',
35
- }
1
+ /**
2
+ * The `discord.*` actions a function of a Discord bot Service can declare in its accesses. Same values
3
+ * as the runtime's `DiscordCapability`, which a parity test keeps equal: the Access screen lists them all.
4
+ */
5
+ export enum DiscordHostAction {
6
+ REPLY = 'discord.reply',
7
+ UPDATE = 'discord.update',
8
+ SHOW_MODAL = 'discord.showModal',
9
+ FOLLOW_UP = 'discord.followUp',
10
+ SEND_MESSAGE = 'discord.sendMessage',
11
+ EDIT_MESSAGE = 'discord.editMessage',
12
+ DELETE_MESSAGE = 'discord.deleteMessage',
13
+ ADD_ROLE = 'discord.addRole',
14
+ REMOVE_ROLE = 'discord.removeRole',
15
+ SEND_DIRECT_MESSAGE = 'discord.sendDirectMessage',
16
+ GET_MEMBER = 'discord.getMember',
17
+ GET_GUILD_ROLES = 'discord.getGuildRoles',
18
+ GET_CHANNEL = 'discord.getChannel',
19
+ GET_GUILD = 'discord.getGuild',
20
+ KICK_MEMBER = 'discord.kickMember',
21
+ BAN_MEMBER = 'discord.banMember',
22
+ UNBAN_MEMBER = 'discord.unbanMember',
23
+ TIMEOUT_MEMBER = 'discord.timeoutMember',
24
+ BULK_DELETE_MESSAGES = 'discord.bulkDeleteMessages',
25
+ ADD_REACTION = 'discord.addReaction',
26
+ REMOVE_REACTION = 'discord.removeReaction',
27
+ CREATE_CHANNEL = 'discord.createChannel',
28
+ DELETE_CHANNEL = 'discord.deleteChannel',
29
+ SET_CHANNEL_PERMISSION = 'discord.setChannelPermission',
30
+ REMOVE_CHANNEL_PERMISSION = 'discord.removeChannelPermission',
31
+ CREATE_ROLE = 'discord.createRole',
32
+ DELETE_ROLE = 'discord.deleteRole',
33
+ CREATE_THREAD = 'discord.createThread',
34
+ END_POLL = 'discord.endPoll',
35
+ }
@@ -1,35 +1,35 @@
1
- /** The locales Discord translates a command, an option or a choice into (Discord's own codes). */
2
- export enum DiscordLocale {
3
- ID = 'id',
4
- DA = 'da',
5
- DE = 'de',
6
- EN_GB = 'en-GB',
7
- EN_US = 'en-US',
8
- ES_ES = 'es-ES',
9
- ES_419 = 'es-419',
10
- FR = 'fr',
11
- HR = 'hr',
12
- IT = 'it',
13
- LT = 'lt',
14
- HU = 'hu',
15
- NL = 'nl',
16
- NO = 'no',
17
- PL = 'pl',
18
- PT_BR = 'pt-BR',
19
- RO = 'ro',
20
- FI = 'fi',
21
- SV_SE = 'sv-SE',
22
- VI = 'vi',
23
- TR = 'tr',
24
- CS = 'cs',
25
- EL = 'el',
26
- BG = 'bg',
27
- RU = 'ru',
28
- UK = 'uk',
29
- HI = 'hi',
30
- TH = 'th',
31
- ZH_CN = 'zh-CN',
32
- JA = 'ja',
33
- ZH_TW = 'zh-TW',
34
- KO = 'ko',
35
- }
1
+ /** The locales Discord translates a command, an option or a choice into (Discord's own codes). */
2
+ export enum DiscordLocale {
3
+ ID = 'id',
4
+ DA = 'da',
5
+ DE = 'de',
6
+ EN_GB = 'en-GB',
7
+ EN_US = 'en-US',
8
+ ES_ES = 'es-ES',
9
+ ES_419 = 'es-419',
10
+ FR = 'fr',
11
+ HR = 'hr',
12
+ IT = 'it',
13
+ LT = 'lt',
14
+ HU = 'hu',
15
+ NL = 'nl',
16
+ NO = 'no',
17
+ PL = 'pl',
18
+ PT_BR = 'pt-BR',
19
+ RO = 'ro',
20
+ FI = 'fi',
21
+ SV_SE = 'sv-SE',
22
+ VI = 'vi',
23
+ TR = 'tr',
24
+ CS = 'cs',
25
+ EL = 'el',
26
+ BG = 'bg',
27
+ RU = 'ru',
28
+ UK = 'uk',
29
+ HI = 'hi',
30
+ TH = 'th',
31
+ ZH_CN = 'zh-CN',
32
+ JA = 'ja',
33
+ ZH_TW = 'zh-TW',
34
+ KO = 'ko',
35
+ }
@@ -1,12 +1,12 @@
1
- /** Type of an option of a Discord command (same names as the options Discord documents). */
2
- export enum DiscordOptionType {
3
- STRING = 'STRING',
4
- INTEGER = 'INTEGER',
5
- NUMBER = 'NUMBER',
6
- BOOLEAN = 'BOOLEAN',
7
- USER = 'USER',
8
- CHANNEL = 'CHANNEL',
9
- ROLE = 'ROLE',
10
- MENTIONABLE = 'MENTIONABLE',
11
- ATTACHMENT = 'ATTACHMENT',
12
- }
1
+ /** Type of an option of a Discord command (same names as the options Discord documents). */
2
+ export enum DiscordOptionType {
3
+ STRING = 'STRING',
4
+ INTEGER = 'INTEGER',
5
+ NUMBER = 'NUMBER',
6
+ BOOLEAN = 'BOOLEAN',
7
+ USER = 'USER',
8
+ CHANNEL = 'CHANNEL',
9
+ ROLE = 'ROLE',
10
+ MENTIONABLE = 'MENTIONABLE',
11
+ ATTACHMENT = 'ATTACHMENT',
12
+ }
@@ -1,8 +1,8 @@
1
- /** The status a Discord bot shows while connected to the Gateway. */
2
- export enum DiscordPresenceStatus {
3
- ONLINE = 'ONLINE',
4
- /** Away. */
5
- IDLE = 'IDLE',
6
- /** Do not disturb. */
7
- DND = 'DND',
8
- }
1
+ /** The status a Discord bot shows while connected to the Gateway. */
2
+ export enum DiscordPresenceStatus {
3
+ ONLINE = 'ONLINE',
4
+ /** Away. */
5
+ IDLE = 'IDLE',
6
+ /** Do not disturb. */
7
+ DND = 'DND',
8
+ }
@@ -1,6 +1,6 @@
1
- /** State of the push of the interactions address and the commands to Discord, per environment. */
2
- export enum DiscordSyncStatus {
3
- PENDING = 'PENDING',
4
- SYNCED = 'SYNCED',
5
- FAILED = 'FAILED',
6
- }
1
+ /** State of the push of the interactions address and the commands to Discord, per environment. */
2
+ export enum DiscordSyncStatus {
3
+ PENDING = 'PENDING',
4
+ SYNCED = 'SYNCED',
5
+ FAILED = 'FAILED',
6
+ }
@@ -1,11 +1,11 @@
1
- /** What Reflex knows of the bot token of an environment. */
2
- export enum DiscordTokenState {
3
- /** Discord accepted the token at the last check. */
4
- VALID = 'VALID',
5
- /** Discord answered 401 to the token. */
6
- REJECTED = 'REJECTED',
7
- /** The Vault entry has no value in this environment. */
8
- MISSING = 'MISSING',
9
- /** The token has not been checked yet. */
10
- UNCHECKED = 'UNCHECKED',
11
- }
1
+ /** What Reflex knows of the bot token of an environment. */
2
+ export enum DiscordTokenState {
3
+ /** Discord accepted the token at the last check. */
4
+ VALID = 'VALID',
5
+ /** Discord answered 401 to the token. */
6
+ REJECTED = 'REJECTED',
7
+ /** The Vault entry has no value in this environment. */
8
+ MISSING = 'MISSING',
9
+ /** The token has not been checked yet. */
10
+ UNCHECKED = 'UNCHECKED',
11
+ }
@@ -1,9 +1,9 @@
1
- /**
2
- * How a route answers its caller.
3
- * - SYNC: the caller waits for the Respond step, or gets 504 past the response timeout.
4
- * - ASYNC: the caller gets `202 {executionId}` before the execution starts, and reads its state.
5
- */
6
- export enum ExecutionMode {
7
- SYNC = 'SYNC',
8
- ASYNC = 'ASYNC',
9
- }
1
+ /**
2
+ * How a route answers its caller.
3
+ * - SYNC: the caller waits for the Respond step, or gets 504 past the response timeout.
4
+ * - ASYNC: the caller gets `202 {executionId}` before the execution starts, and reads its state.
5
+ */
6
+ export enum ExecutionMode {
7
+ SYNC = 'SYNC',
8
+ ASYNC = 'ASYNC',
9
+ }
@@ -1,20 +1,20 @@
1
- /**
2
- * Memory of the isolate an execution runs in (ADR-0244). The CPU part of the cost grows with the
3
- * profile: S x1, M x1.05, L x1.10, XL x1.20, XXL x1.35.
4
- */
5
- export enum ExecutionProfile {
6
- S = 'S',
7
- M = 'M',
8
- L = 'L',
9
- XL = 'XL',
10
- XXL = 'XXL',
11
- }
12
-
13
- /** Memory limit of each profile, in MB (1 GB = 1024 MB). */
14
- export const EXECUTION_PROFILE_MEMORY_MB: Readonly<Record<ExecutionProfile, number>> = {
15
- [ExecutionProfile.S]: 128,
16
- [ExecutionProfile.M]: 256,
17
- [ExecutionProfile.L]: 512,
18
- [ExecutionProfile.XL]: 1024,
19
- [ExecutionProfile.XXL]: 2048,
20
- };
1
+ /**
2
+ * Memory of the isolate an execution runs in (ADR-0244). The CPU part of the cost grows with the
3
+ * profile: S x1, M x1.05, L x1.10, XL x1.20, XXL x1.35.
4
+ */
5
+ export enum ExecutionProfile {
6
+ S = 'S',
7
+ M = 'M',
8
+ L = 'L',
9
+ XL = 'XL',
10
+ XXL = 'XXL',
11
+ }
12
+
13
+ /** Memory limit of each profile, in MB (1 GB = 1024 MB). */
14
+ export const EXECUTION_PROFILE_MEMORY_MB: Readonly<Record<ExecutionProfile, number>> = {
15
+ [ExecutionProfile.S]: 128,
16
+ [ExecutionProfile.M]: 256,
17
+ [ExecutionProfile.L]: 512,
18
+ [ExecutionProfile.XL]: 1024,
19
+ [ExecutionProfile.XXL]: 2048,
20
+ };
@@ -1,9 +1,9 @@
1
- /** Where the effective settings of an environment come from. */
2
- export enum ExecutionSettingsSource {
3
- /** The override of this environment. */
4
- ENVIRONMENT = 'ENVIRONMENT',
5
- /** The default of the function, for every environment without an override. */
6
- DEFAULT = 'DEFAULT',
7
- /** Nothing is set: the built-in defaults. */
8
- BUILT_IN = 'BUILT_IN',
9
- }
1
+ /** Where the effective settings of an environment come from. */
2
+ export enum ExecutionSettingsSource {
3
+ /** The override of this environment. */
4
+ ENVIRONMENT = 'ENVIRONMENT',
5
+ /** The default of the function, for every environment without an override. */
6
+ DEFAULT = 'DEFAULT',
7
+ /** Nothing is set: the built-in defaults. */
8
+ BUILT_IN = 'BUILT_IN',
9
+ }
@@ -1,4 +1,4 @@
1
- export enum HealthStatus {
2
- UP = 'up',
3
- DOWN = 'down',
4
- }
1
+ export enum HealthStatus {
2
+ UP = 'up',
3
+ DOWN = 'down',
4
+ }
@@ -47,3 +47,5 @@ export * from './reflex-alert-scope.enum';
47
47
  export * from './reflex-alert-metric.enum';
48
48
  export * from './reflex-alert-notification-state.enum';
49
49
  export * from './access-request-status.enum';
50
+ export * from './service-block-reason.enum';
51
+ export * from './completion-delivery-status.enum';
@@ -1,8 +1,8 @@
1
- /** The period a dashboard covers; the value is what the query string carries. */
2
- export enum InsightsPeriod {
3
- HOUR_1 = '1h',
4
- HOURS_24 = '24h',
5
- DAYS_7 = '7d',
6
- DAYS_30 = '30d',
7
- DAYS_90 = '90d',
8
- }
1
+ /** The period a dashboard covers; the value is what the query string carries. */
2
+ export enum InsightsPeriod {
3
+ HOUR_1 = '1h',
4
+ HOURS_24 = '24h',
5
+ DAYS_7 = '7d',
6
+ DAYS_30 = '30d',
7
+ DAYS_90 = '90d',
8
+ }
@@ -1,6 +1,6 @@
1
- /** How a function caps the log lines it keeps per run: follow its application, no cap, or its own cap. */
2
- export enum LogCapMode {
3
- INHERIT = 'INHERIT',
4
- NONE = 'NONE',
5
- LIMIT = 'LIMIT',
6
- }
1
+ /** How a function caps the log lines it keeps per run: follow its application, no cap, or its own cap. */
2
+ export enum LogCapMode {
3
+ INHERIT = 'INHERIT',
4
+ NONE = 'NONE',
5
+ LIMIT = 'LIMIT',
6
+ }
@@ -1,8 +1,8 @@
1
- /**
2
- * Why a run kept fewer log lines than it wrote: the cap in force for the run (the function's own, or its
3
- * application's), or the technical bound every run has (10 000 lines, 4 MiB).
4
- */
5
- export enum LogDropCause {
6
- CAP = 'CAP',
7
- TECHNICAL = 'TECHNICAL',
8
- }
1
+ /**
2
+ * Why a run kept fewer log lines than it wrote: the cap in force for the run (the function's own, or its
3
+ * application's), or the technical bound every run has (10 000 lines, 4 MiB).
4
+ */
5
+ export enum LogDropCause {
6
+ CAP = 'CAP',
7
+ TECHNICAL = 'TECHNICAL',
8
+ }
@@ -1,5 +1,5 @@
1
- /** What an alert rule measures over its window: the error rate in percent, or the 95th percentile of the duration in ms. */
2
- export enum ReflexAlertMetric {
3
- ERROR_RATE = 'ERROR_RATE',
4
- LATENCY_P95 = 'LATENCY_P95',
5
- }
1
+ /** What an alert rule measures over its window: the error rate in percent, or the 95th percentile of the duration in ms. */
2
+ export enum ReflexAlertMetric {
3
+ ERROR_RATE = 'ERROR_RATE',
4
+ LATENCY_P95 = 'LATENCY_P95',
5
+ }
@@ -1,6 +1,6 @@
1
- /** What became of the last incident report of an alert rule. */
2
- export enum ReflexAlertNotificationState {
3
- SENT = 'SENT',
4
- MONITOR_NOT_ACTIVATED = 'MONITOR_NOT_ACTIVATED',
5
- FAILED = 'FAILED',
6
- }
1
+ /** What became of the last incident report of an alert rule. */
2
+ export enum ReflexAlertNotificationState {
3
+ SENT = 'SENT',
4
+ MONITOR_NOT_ACTIVATED = 'MONITOR_NOT_ACTIVATED',
5
+ FAILED = 'FAILED',
6
+ }
@@ -1,6 +1,6 @@
1
- /** What an alert rule watches: a whole Service, one route of a Service, or one function. */
2
- export enum ReflexAlertScope {
3
- SERVICE = 'SERVICE',
4
- ROUTE = 'ROUTE',
5
- FUNCTION = 'FUNCTION',
6
- }
1
+ /** What an alert rule watches: a whole Service, one route of a Service, or one function. */
2
+ export enum ReflexAlertScope {
3
+ SERVICE = 'SERVICE',
4
+ ROUTE = 'ROUTE',
5
+ FUNCTION = 'FUNCTION',
6
+ }
@@ -34,10 +34,40 @@ export enum ReflexErrorCode {
34
34
  DISCORD_COMPONENT_PREFIX_CONFLICT = 'DISCORD_COMPONENT_PREFIX_CONFLICT',
35
35
  /** 400: the field does not exist for this type of Service (CORS or rate limit on a Discord bot). */
36
36
  SERVICE_TYPE_FIELD_REFUSED = 'SERVICE_TYPE_FIELD_REFUSED',
37
- /** 400: a route path cannot start with `_abyss`, the segment the edge keeps for its own addresses (ticks of the cron tasks). */
37
+ /**
38
+ * 400: a route path cannot start with `_`: the edge keeps those paths for its own addresses (`_abyss` for the ticks
39
+ * of the cron tasks, `_executions` for the state of an async execution).
40
+ */
38
41
  ROUTE_SEGMENT_RESERVED = 'ROUTE_SEGMENT_RESERVED',
39
42
  /** 409: the bot bills credit overage but the organization does not allow overage of the credits metric. */
40
43
  CREDIT_OVERAGE_NOT_ALLOWED = 'CREDIT_OVERAGE_NOT_ALLOWED',
41
44
  /** 409: the lots asked for do not fit in the event rate reserve of the organization (the sum of its allocations would go past it). */
42
45
  BOT_EVENT_RESERVE_EXCEEDED = 'BOT_EVENT_RESERVE_EXCEEDED',
46
+ /**
47
+ * 422 (edge): the body or the query of the request does not match the contract of the route; `error.errors` holds
48
+ * at most `REFLEX_CONTRACT_LIMITS.maxErrors` faults (`IReflexContractError`). Nothing ran, nothing is billed.
49
+ */
50
+ REQUEST_INVALID = 'REQUEST_INVALID',
51
+ /**
52
+ * 503 (edge): the credits of the organization are spent and the Service has no overage in this environment;
53
+ * `Retry-After` points at the first day of the next month (UTC). Nothing ran, nothing is billed.
54
+ */
55
+ CREDITS_EXHAUSTED = 'CREDITS_EXHAUSTED',
56
+ /**
57
+ * 503 (edge): the monthly spend cap of the Service in this environment is reached; `Retry-After` points at the
58
+ * first day of the next month (UTC), and raising the cap lifts the stop at the next computation. Nothing ran,
59
+ * nothing is billed.
60
+ */
61
+ BUDGET_REACHED = 'BUDGET_REACHED',
62
+ /** 400: the contract of a route is not a valid one; `error.details` holds each fault (`IReflexContractError`). */
63
+ CONTRACT_INVALID = 'CONTRACT_INVALID',
64
+ /** 409: the Service already has `REFLEX_CONSUMER_LIMITS.perService` consumers. */
65
+ CONSUMER_LIMIT_REACHED = 'CONSUMER_LIMIT_REACHED',
66
+ /** 409: the consumer already has `REFLEX_CONSUMER_LIMITS.activeKeysPerConsumer` keys that are not revoked. */
67
+ CONSUMER_KEY_LIMIT_REACHED = 'CONSUMER_KEY_LIMIT_REACHED',
68
+ /**
69
+ * 400: the completion webhook URL is refused: not `https`, a private or internal address, or a name that resolves
70
+ * to one or does not resolve.
71
+ */
72
+ COMPLETION_WEBHOOK_URL_REFUSED = 'COMPLETION_WEBHOOK_URL_REFUSED',
43
73
  }
@@ -1,9 +1,9 @@
1
- /** The HTTP method a route answers. `ANY` answers every method; a `FUNCTIONS` Service only has `ANY` routes. */
2
- export enum RouteMethod {
3
- GET = 'GET',
4
- POST = 'POST',
5
- PUT = 'PUT',
6
- PATCH = 'PATCH',
7
- DELETE = 'DELETE',
8
- ANY = 'ANY',
9
- }
1
+ /** The HTTP method a route answers. `ANY` answers every method; a `FUNCTIONS` Service only has `ANY` routes. */
2
+ export enum RouteMethod {
3
+ GET = 'GET',
4
+ POST = 'POST',
5
+ PUT = 'PUT',
6
+ PATCH = 'PATCH',
7
+ DELETE = 'DELETE',
8
+ ANY = 'ANY',
9
+ }
@@ -1,6 +1,6 @@
1
- /** The level of a log line an execution wrote (LOG step, `abyss.log.*`, `console.*`). */
2
- export enum RunLogLevel {
3
- INFO = 'info',
4
- WARN = 'warn',
5
- ERROR = 'error',
6
- }
1
+ /** The level of a log line an execution wrote (LOG step, `abyss.log.*`, `console.*`). */
2
+ export enum RunLogLevel {
3
+ INFO = 'info',
4
+ WARN = 'warn',
5
+ ERROR = 'error',
6
+ }