@abyss-project/reflex 5.11.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (208) hide show
  1. package/dist/api/index.d.ts +4 -0
  2. package/dist/api/index.js +4 -0
  3. package/dist/api/index.js.map +1 -1
  4. package/dist/api/service-completion-webhook.api.d.ts +3 -0
  5. package/dist/api/service-completion-webhook.api.js +10 -0
  6. package/dist/api/service-completion-webhook.api.js.map +1 -0
  7. package/dist/api/service-consumer.api.d.ts +7 -0
  8. package/dist/api/service-consumer.api.js +19 -0
  9. package/dist/api/service-consumer.api.js.map +1 -0
  10. package/dist/api/service-discord.api.d.ts +1 -2
  11. package/dist/api/service-discord.api.js +1 -3
  12. package/dist/api/service-discord.api.js.map +1 -1
  13. package/dist/api/service-limits.api.d.ts +3 -0
  14. package/dist/api/service-limits.api.js +10 -0
  15. package/dist/api/service-limits.api.js.map +1 -0
  16. package/dist/api/service-openapi.api.d.ts +2 -0
  17. package/dist/api/service-openapi.api.js +7 -0
  18. package/dist/api/service-openapi.api.js.map +1 -0
  19. package/dist/api/service-route.api.js.map +1 -1
  20. package/dist/index.d.ts +23 -1
  21. package/dist/index.js +23 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/types/enum/completion-delivery-status.enum.d.ts +5 -0
  24. package/dist/types/enum/completion-delivery-status.enum.js +10 -0
  25. package/dist/types/enum/completion-delivery-status.enum.js.map +1 -0
  26. package/dist/types/enum/index.d.ts +2 -0
  27. package/dist/types/enum/index.js +2 -0
  28. package/dist/types/enum/index.js.map +1 -1
  29. package/dist/types/enum/reflex-error-code.enum.d.ts +8 -1
  30. package/dist/types/enum/reflex-error-code.enum.js +7 -0
  31. package/dist/types/enum/reflex-error-code.enum.js.map +1 -1
  32. package/dist/types/enum/run-status.enum.d.ts +2 -1
  33. package/dist/types/enum/run-status.enum.js +1 -0
  34. package/dist/types/enum/run-status.enum.js.map +1 -1
  35. package/dist/types/enum/scheduled-run-failure-code.enum.d.ts +2 -1
  36. package/dist/types/enum/scheduled-run-failure-code.enum.js +1 -0
  37. package/dist/types/enum/scheduled-run-failure-code.enum.js.map +1 -1
  38. package/dist/types/enum/service-block-reason.enum.d.ts +4 -0
  39. package/dist/types/enum/service-block-reason.enum.js +9 -0
  40. package/dist/types/enum/service-block-reason.enum.js.map +1 -0
  41. package/dist/types/interface/api/requests/function-run.request.d.ts +1 -0
  42. package/dist/types/interface/api/requests/function-test.request.d.ts +1 -0
  43. package/dist/types/interface/api/requests/index.d.ts +4 -0
  44. package/dist/types/interface/api/requests/index.js +4 -0
  45. package/dist/types/interface/api/requests/index.js.map +1 -1
  46. package/dist/types/interface/api/requests/service-completion-webhook.request.d.ts +9 -0
  47. package/dist/types/interface/api/requests/service-completion-webhook.request.js +3 -0
  48. package/dist/types/interface/api/requests/service-completion-webhook.request.js.map +1 -0
  49. package/dist/types/interface/api/requests/service-consumer.request.d.ts +41 -0
  50. package/dist/types/interface/api/requests/service-consumer.request.js +3 -0
  51. package/dist/types/interface/api/requests/service-consumer.request.js.map +1 -0
  52. package/dist/types/interface/api/requests/service-discord.request.d.ts +1 -14
  53. package/dist/types/interface/api/requests/service-limits.request.d.ts +18 -0
  54. package/dist/types/interface/api/requests/service-limits.request.js +3 -0
  55. package/dist/types/interface/api/requests/service-limits.request.js.map +1 -0
  56. package/dist/types/interface/api/requests/service-openapi.request.d.ts +8 -0
  57. package/dist/types/interface/api/requests/service-openapi.request.js +3 -0
  58. package/dist/types/interface/api/requests/service-openapi.request.js.map +1 -0
  59. package/dist/types/interface/api/requests/service-route.request.d.ts +3 -0
  60. package/dist/types/interface/api/responses/function-settings.response.d.ts +3 -1
  61. package/dist/types/interface/api/responses/function-test.response.d.ts +3 -1
  62. package/dist/types/interface/api/responses/index.d.ts +4 -0
  63. package/dist/types/interface/api/responses/index.js +4 -0
  64. package/dist/types/interface/api/responses/index.js.map +1 -1
  65. package/dist/types/interface/api/responses/service-completion-webhook.response.d.ts +8 -0
  66. package/dist/types/interface/api/responses/service-completion-webhook.response.js +3 -0
  67. package/dist/types/interface/api/responses/service-completion-webhook.response.js.map +1 -0
  68. package/dist/types/interface/api/responses/service-consumer.response.d.ts +25 -0
  69. package/dist/types/interface/api/responses/service-consumer.response.js +3 -0
  70. package/dist/types/interface/api/responses/service-consumer.response.js.map +1 -0
  71. package/dist/types/interface/api/responses/service-discord.response.d.ts +1 -9
  72. package/dist/types/interface/api/responses/service-limits.response.d.ts +10 -0
  73. package/dist/types/interface/api/responses/service-limits.response.js +3 -0
  74. package/dist/types/interface/api/responses/service-limits.response.js.map +1 -0
  75. package/dist/types/interface/api/responses/service-openapi.response.d.ts +5 -0
  76. package/dist/types/interface/api/responses/service-openapi.response.js +3 -0
  77. package/dist/types/interface/api/responses/service-openapi.response.js.map +1 -0
  78. package/dist/types/interface/api/responses/service-version.response.d.ts +1 -0
  79. package/dist/types/interface/models/index.d.ts +4 -0
  80. package/dist/types/interface/models/index.js +4 -0
  81. package/dist/types/interface/models/index.js.map +1 -1
  82. package/dist/types/interface/models/reflex-bot-limits.model.d.ts +0 -25
  83. package/dist/types/interface/models/reflex-bot-limits.model.js +8 -7
  84. package/dist/types/interface/models/reflex-bot-limits.model.js.map +1 -1
  85. package/dist/types/interface/models/reflex-completion-webhook.model.d.ts +48 -0
  86. package/dist/types/interface/models/reflex-completion-webhook.model.js +12 -0
  87. package/dist/types/interface/models/reflex-completion-webhook.model.js.map +1 -0
  88. package/dist/types/interface/models/reflex-consumer.model.d.ts +30 -0
  89. package/dist/types/interface/models/reflex-consumer.model.js +11 -0
  90. package/dist/types/interface/models/reflex-consumer.model.js.map +1 -0
  91. package/dist/types/interface/models/reflex-execution-settings.model.d.ts +1 -0
  92. package/dist/types/interface/models/reflex-execution-settings.model.js +1 -0
  93. package/dist/types/interface/models/reflex-execution-settings.model.js.map +1 -1
  94. package/dist/types/interface/models/reflex-route-contract.model.d.ts +22 -0
  95. package/dist/types/interface/models/reflex-route-contract.model.js +13 -0
  96. package/dist/types/interface/models/reflex-route-contract.model.js.map +1 -0
  97. package/dist/types/interface/models/reflex-route.model.d.ts +2 -0
  98. package/dist/types/interface/models/reflex-run.model.d.ts +21 -0
  99. package/dist/types/interface/models/reflex-run.model.js.map +1 -1
  100. package/dist/types/interface/models/reflex-service-limits.model.d.ts +41 -0
  101. package/dist/types/interface/models/reflex-service-limits.model.js +13 -0
  102. package/dist/types/interface/models/reflex-service-limits.model.js.map +1 -0
  103. package/dist/types/interface/models/reflex-service-version.model.d.ts +2 -0
  104. package/package.json +15 -10
  105. package/src/api/function-access.api.ts +87 -87
  106. package/src/api/function-template.api.test.ts +72 -72
  107. package/src/api/function-template.api.ts +52 -52
  108. package/src/api/function-version.api.ts +66 -66
  109. package/src/api/function.api.test.ts +2 -1
  110. package/src/api/index.ts +4 -0
  111. package/src/api/service-completion-webhook.api.test.ts +87 -0
  112. package/src/api/service-completion-webhook.api.ts +37 -0
  113. package/src/api/service-consumer.api.test.ts +104 -0
  114. package/src/api/service-consumer.api.ts +88 -0
  115. package/src/api/service-discord.api.test.ts +178 -197
  116. package/src/api/service-discord.api.ts +222 -241
  117. package/src/api/service-limits.api.test.ts +100 -0
  118. package/src/api/service-limits.api.ts +37 -0
  119. package/src/api/service-openapi.api.test.ts +52 -0
  120. package/src/api/service-openapi.api.ts +21 -0
  121. package/src/api/service-route.api.ts +74 -72
  122. package/src/index.test.ts +104 -87
  123. package/src/index.ts +46 -3
  124. package/src/types/enum/access-request-status.enum.ts +11 -11
  125. package/src/types/enum/completion-delivery-status.enum.ts +9 -0
  126. package/src/types/enum/index.ts +2 -0
  127. package/src/types/enum/reflex-error-code.enum.ts +73 -43
  128. package/src/types/enum/run-status.enum.ts +16 -11
  129. package/src/types/enum/scheduled-run-failure-code.enum.ts +14 -12
  130. package/src/types/enum/service-block-reason.enum.ts +13 -0
  131. package/src/types/interface/api/requests/alert-rule.request.ts +53 -53
  132. package/src/types/interface/api/requests/application-insights.request.ts +18 -18
  133. package/src/types/interface/api/requests/application-run-settings.request.ts +11 -11
  134. package/src/types/interface/api/requests/function-access.request.ts +51 -51
  135. package/src/types/interface/api/requests/function-run.request.ts +2 -0
  136. package/src/types/interface/api/requests/function-settings.request.ts +34 -34
  137. package/src/types/interface/api/requests/function-template.request.ts +29 -29
  138. package/src/types/interface/api/requests/function-test.request.ts +5 -0
  139. package/src/types/interface/api/requests/function-version.request.ts +38 -38
  140. package/src/types/interface/api/requests/function.request.ts +36 -36
  141. package/src/types/interface/api/requests/index.ts +4 -0
  142. package/src/types/interface/api/requests/route-stats.request.ts +22 -22
  143. package/src/types/interface/api/requests/service-completion-webhook.request.ts +11 -0
  144. package/src/types/interface/api/requests/service-configuration.request.ts +4 -4
  145. package/src/types/interface/api/requests/service-consumer.request.ts +51 -0
  146. package/src/types/interface/api/requests/service-deployment.request.ts +49 -49
  147. package/src/types/interface/api/requests/service-discord-event.request.ts +68 -68
  148. package/src/types/interface/api/requests/service-discord.request.ts +1 -25
  149. package/src/types/interface/api/requests/service-insights.request.ts +31 -31
  150. package/src/types/interface/api/requests/service-limits.request.ts +28 -0
  151. package/src/types/interface/api/requests/service-openapi.request.ts +10 -0
  152. package/src/types/interface/api/requests/service-route.request.ts +8 -0
  153. package/src/types/interface/api/requests/service-task.request.ts +80 -80
  154. package/src/types/interface/api/requests/service-version.request.ts +24 -24
  155. package/src/types/interface/api/requests/service.request.ts +46 -46
  156. package/src/types/interface/api/responses/alert-rule.response.ts +24 -24
  157. package/src/types/interface/api/responses/application-insights.response.ts +11 -11
  158. package/src/types/interface/api/responses/application-run-settings.response.ts +8 -8
  159. package/src/types/interface/api/responses/function-access.response.ts +45 -45
  160. package/src/types/interface/api/responses/function-run.response.ts +18 -18
  161. package/src/types/interface/api/responses/function-settings.response.ts +8 -0
  162. package/src/types/interface/api/responses/function-template.response.ts +21 -21
  163. package/src/types/interface/api/responses/function-test.response.ts +8 -1
  164. package/src/types/interface/api/responses/function-version.response.ts +42 -42
  165. package/src/types/interface/api/responses/function.response.ts +25 -25
  166. package/src/types/interface/api/responses/index.ts +4 -0
  167. package/src/types/interface/api/responses/route-stats.response.ts +15 -15
  168. package/src/types/interface/api/responses/service-completion-webhook.response.ts +13 -0
  169. package/src/types/interface/api/responses/service-configuration.response.ts +8 -8
  170. package/src/types/interface/api/responses/service-consumer.response.ts +33 -0
  171. package/src/types/interface/api/responses/service-deployment.response.ts +32 -32
  172. package/src/types/interface/api/responses/service-discord-event.response.ts +24 -24
  173. package/src/types/interface/api/responses/service-discord.response.ts +4 -16
  174. package/src/types/interface/api/responses/service-insights.response.ts +11 -11
  175. package/src/types/interface/api/responses/service-limits.response.ts +13 -0
  176. package/src/types/interface/api/responses/service-openapi.response.ts +7 -0
  177. package/src/types/interface/api/responses/service-route.response.ts +3 -3
  178. package/src/types/interface/api/responses/service-task.response.ts +57 -57
  179. package/src/types/interface/api/responses/service-version.response.ts +112 -106
  180. package/src/types/interface/api/responses/service.response.ts +31 -31
  181. package/src/types/interface/models/index.ts +4 -0
  182. package/src/types/interface/models/reflex-access-grant.model.ts +14 -14
  183. package/src/types/interface/models/reflex-access-request.model.ts +15 -15
  184. package/src/types/interface/models/reflex-alert-rule.model.ts +56 -56
  185. package/src/types/interface/models/reflex-bot-limits.model.ts +12 -51
  186. package/src/types/interface/models/reflex-completion-webhook.model.ts +85 -0
  187. package/src/types/interface/models/reflex-consumer.model.ts +50 -0
  188. package/src/types/interface/models/reflex-definition.model.ts +31 -31
  189. package/src/types/interface/models/reflex-discord-event-log.model.ts +58 -58
  190. package/src/types/interface/models/reflex-discord-event.model.ts +79 -79
  191. package/src/types/interface/models/reflex-discord.model.ts +196 -196
  192. package/src/types/interface/models/reflex-execution-settings.model.ts +7 -0
  193. package/src/types/interface/models/reflex-function-template.model.ts +18 -18
  194. package/src/types/interface/models/reflex-function-version.model.ts +19 -19
  195. package/src/types/interface/models/reflex-function.model.ts +30 -30
  196. package/src/types/interface/models/reflex-insights.model.ts +215 -215
  197. package/src/types/interface/models/reflex-price-list.model.ts +20 -20
  198. package/src/types/interface/models/reflex-route-contract.model.ts +46 -0
  199. package/src/types/interface/models/reflex-route.model.ts +5 -1
  200. package/src/types/interface/models/reflex-run-settings.model.ts +28 -28
  201. package/src/types/interface/models/reflex-run.model.ts +47 -3
  202. package/src/types/interface/models/reflex-service-configuration.model.ts +22 -22
  203. package/src/types/interface/models/reflex-service-deployment.model.ts +46 -46
  204. package/src/types/interface/models/reflex-service-limits.model.ts +73 -0
  205. package/src/types/interface/models/reflex-service-version.model.ts +3 -0
  206. package/src/types/interface/models/reflex-service.model.ts +45 -45
  207. package/src/types/interface/models/reflex-step-stats.model.ts +35 -35
  208. package/src/types/interface/models/reflex-task.model.ts +97 -97
@@ -1,80 +1,80 @@
1
- export interface IListServiceTaskParams {
2
- applicationId: string;
3
- serviceId: string;
4
- }
5
-
6
- export interface ICreateServiceTaskParams {
7
- applicationId: string;
8
- serviceId: string;
9
- }
10
- export interface ICreateServiceTaskBody {
11
- /** `^[-_a-z0-9]{1,32}$`, unique within the Service. */
12
- name: string;
13
- /** A function of the same Service. */
14
- functionId: string;
15
- /** A cron of 5 fields, at most one tick a minute; null (default) for a task only delayed runs start. */
16
- schedule?: string | null;
17
- /** IANA time zone the cron is read in; `Etc/UTC` by default. */
18
- timezone?: string;
19
- }
20
-
21
- export interface IUpdateServiceTaskParams {
22
- applicationId: string;
23
- serviceId: string;
24
- taskId: string;
25
- }
26
- export interface IUpdateServiceTaskBody {
27
- name?: string;
28
- functionId?: string;
29
- schedule?: string | null;
30
- timezone?: string;
31
- }
32
-
33
- export interface IDeleteServiceTaskParams {
34
- applicationId: string;
35
- serviceId: string;
36
- taskId: string;
37
- }
38
-
39
- export interface ITestRunServiceTaskParams {
40
- applicationId: string;
41
- serviceId: string;
42
- taskId: string;
43
- }
44
- export interface ITestRunServiceTaskBody {
45
- /** The environment of the application the test run takes place in (abyss-main's id). */
46
- environmentId: string;
47
- }
48
-
49
- export interface IListServiceDelayedRunParams {
50
- applicationId: string;
51
- serviceId: string;
52
- environmentId: string;
53
- }
54
-
55
- export interface ICancelServiceDelayedRunParams {
56
- applicationId: string;
57
- serviceId: string;
58
- environmentId: string;
59
- delayedRunId: string;
60
- }
61
-
62
- export interface IRetryServiceScheduleSyncParams {
63
- applicationId: string;
64
- serviceId: string;
65
- environmentId: string;
66
- }
67
-
68
- export interface IListServiceTaskScheduledRunParams {
69
- applicationId: string;
70
- serviceId: string;
71
- taskId: string;
72
- /** The environment of the application whose runs are read (abyss-main's id). */
73
- environmentId: string;
74
- }
75
- export interface IListServiceTaskScheduledRunQuery {
76
- /** 1 to `REFLEX_TASK_LIMITS.scheduledRunPageMax` (50), 50 by default. */
77
- limit?: number;
78
- /** Runs skipped, newest first; 0 by default. */
79
- offset?: number;
80
- }
1
+ export interface IListServiceTaskParams {
2
+ applicationId: string;
3
+ serviceId: string;
4
+ }
5
+
6
+ export interface ICreateServiceTaskParams {
7
+ applicationId: string;
8
+ serviceId: string;
9
+ }
10
+ export interface ICreateServiceTaskBody {
11
+ /** `^[-_a-z0-9]{1,32}$`, unique within the Service. */
12
+ name: string;
13
+ /** A function of the same Service. */
14
+ functionId: string;
15
+ /** A cron of 5 fields, at most one tick a minute; null (default) for a task only delayed runs start. */
16
+ schedule?: string | null;
17
+ /** IANA time zone the cron is read in; `Etc/UTC` by default. */
18
+ timezone?: string;
19
+ }
20
+
21
+ export interface IUpdateServiceTaskParams {
22
+ applicationId: string;
23
+ serviceId: string;
24
+ taskId: string;
25
+ }
26
+ export interface IUpdateServiceTaskBody {
27
+ name?: string;
28
+ functionId?: string;
29
+ schedule?: string | null;
30
+ timezone?: string;
31
+ }
32
+
33
+ export interface IDeleteServiceTaskParams {
34
+ applicationId: string;
35
+ serviceId: string;
36
+ taskId: string;
37
+ }
38
+
39
+ export interface ITestRunServiceTaskParams {
40
+ applicationId: string;
41
+ serviceId: string;
42
+ taskId: string;
43
+ }
44
+ export interface ITestRunServiceTaskBody {
45
+ /** The environment of the application the test run takes place in (abyss-main's id). */
46
+ environmentId: string;
47
+ }
48
+
49
+ export interface IListServiceDelayedRunParams {
50
+ applicationId: string;
51
+ serviceId: string;
52
+ environmentId: string;
53
+ }
54
+
55
+ export interface ICancelServiceDelayedRunParams {
56
+ applicationId: string;
57
+ serviceId: string;
58
+ environmentId: string;
59
+ delayedRunId: string;
60
+ }
61
+
62
+ export interface IRetryServiceScheduleSyncParams {
63
+ applicationId: string;
64
+ serviceId: string;
65
+ environmentId: string;
66
+ }
67
+
68
+ export interface IListServiceTaskScheduledRunParams {
69
+ applicationId: string;
70
+ serviceId: string;
71
+ taskId: string;
72
+ /** The environment of the application whose runs are read (abyss-main's id). */
73
+ environmentId: string;
74
+ }
75
+ export interface IListServiceTaskScheduledRunQuery {
76
+ /** 1 to `REFLEX_TASK_LIMITS.scheduledRunPageMax` (50), 50 by default. */
77
+ limit?: number;
78
+ /** Runs skipped, newest first; 0 by default. */
79
+ offset?: number;
80
+ }
@@ -1,24 +1,24 @@
1
- export interface IListServiceVersionParams {
2
- applicationId: string;
3
- serviceId: string;
4
- }
5
-
6
- export interface ICreateServiceVersionParams {
7
- applicationId: string;
8
- serviceId: string;
9
- }
10
- export interface ICreateServiceVersionBody {
11
- /** 500 characters at most. */
12
- message?: string;
13
- }
14
-
15
- export interface IGetServiceVersionDraftStatusParams {
16
- applicationId: string;
17
- serviceId: string;
18
- }
19
-
20
- export interface IGetServiceVersionParams {
21
- applicationId: string;
22
- serviceId: string;
23
- versionId: string;
24
- }
1
+ export interface IListServiceVersionParams {
2
+ applicationId: string;
3
+ serviceId: string;
4
+ }
5
+
6
+ export interface ICreateServiceVersionParams {
7
+ applicationId: string;
8
+ serviceId: string;
9
+ }
10
+ export interface ICreateServiceVersionBody {
11
+ /** 500 characters at most. */
12
+ message?: string;
13
+ }
14
+
15
+ export interface IGetServiceVersionDraftStatusParams {
16
+ applicationId: string;
17
+ serviceId: string;
18
+ }
19
+
20
+ export interface IGetServiceVersionParams {
21
+ applicationId: string;
22
+ serviceId: string;
23
+ versionId: string;
24
+ }
@@ -1,46 +1,46 @@
1
- import type { ServiceType } from '../../../enum';
2
- import type { IReflexServiceCors } from '../../models';
3
-
4
- export interface IListServiceParams {
5
- applicationId: string;
6
- }
7
-
8
- export interface ICreateServiceParams {
9
- applicationId: string;
10
- }
11
- export interface ICreateServiceBody {
12
- /** Unique within the application, 1 to 100 characters. */
13
- name: string;
14
- /** `^[a-z0-9][a-z0-9-]{0,39}$`, unique within the application, immutable. */
15
- slug: string;
16
- type: ServiceType;
17
- /** Not for a `DISCORD_BOT` Service: `400 SERVICE_TYPE_FIELD_REFUSED`. */
18
- cors?: IReflexServiceCors;
19
- /** 1 to 6000. Not for a `DISCORD_BOT` Service: `400 SERVICE_TYPE_FIELD_REFUSED`. */
20
- rateLimitPerIpPerMinute?: number;
21
- }
22
-
23
- export interface IGetServiceParams {
24
- applicationId: string;
25
- serviceId: string;
26
- }
27
-
28
- export interface IUpdateServiceParams {
29
- applicationId: string;
30
- serviceId: string;
31
- }
32
- /**
33
- * Changes the draft: the next version freezes `cors` and `rateLimitPerIpPerMinute`. Neither exists for a
34
- * `DISCORD_BOT` Service (`400 SERVICE_TYPE_FIELD_REFUSED`).
35
- */
36
- export interface IUpdateServiceBody {
37
- name?: string;
38
- cors?: IReflexServiceCors;
39
- /** 1 to 6000. */
40
- rateLimitPerIpPerMinute?: number;
41
- }
42
-
43
- export interface IDeleteServiceParams {
44
- applicationId: string;
45
- serviceId: string;
46
- }
1
+ import type { ServiceType } from '../../../enum';
2
+ import type { IReflexServiceCors } from '../../models';
3
+
4
+ export interface IListServiceParams {
5
+ applicationId: string;
6
+ }
7
+
8
+ export interface ICreateServiceParams {
9
+ applicationId: string;
10
+ }
11
+ export interface ICreateServiceBody {
12
+ /** Unique within the application, 1 to 100 characters. */
13
+ name: string;
14
+ /** `^[a-z0-9][a-z0-9-]{0,39}$`, unique within the application, immutable. */
15
+ slug: string;
16
+ type: ServiceType;
17
+ /** Not for a `DISCORD_BOT` Service: `400 SERVICE_TYPE_FIELD_REFUSED`. */
18
+ cors?: IReflexServiceCors;
19
+ /** 1 to 6000. Not for a `DISCORD_BOT` Service: `400 SERVICE_TYPE_FIELD_REFUSED`. */
20
+ rateLimitPerIpPerMinute?: number;
21
+ }
22
+
23
+ export interface IGetServiceParams {
24
+ applicationId: string;
25
+ serviceId: string;
26
+ }
27
+
28
+ export interface IUpdateServiceParams {
29
+ applicationId: string;
30
+ serviceId: string;
31
+ }
32
+ /**
33
+ * Changes the draft: the next version freezes `cors` and `rateLimitPerIpPerMinute`. Neither exists for a
34
+ * `DISCORD_BOT` Service (`400 SERVICE_TYPE_FIELD_REFUSED`).
35
+ */
36
+ export interface IUpdateServiceBody {
37
+ name?: string;
38
+ cors?: IReflexServiceCors;
39
+ /** 1 to 6000. */
40
+ rateLimitPerIpPerMinute?: number;
41
+ }
42
+
43
+ export interface IDeleteServiceParams {
44
+ applicationId: string;
45
+ serviceId: string;
46
+ }
@@ -1,24 +1,24 @@
1
- import type { IReflexAlertRule, IReflexAlertRuleState } from '../../models';
2
- import type { IResponse } from '../response';
3
-
4
- /** A rule and what its last evaluation found; `state` is null until the first evaluation. */
5
- export interface IReflexAlertRuleWithState {
6
- rule: IReflexAlertRule;
7
- state: IReflexAlertRuleState | null;
8
- }
9
-
10
- export interface IListAlertRuleData {
11
- rules: IReflexAlertRuleWithState[];
12
- /** Rules enabled in the application, against `REFLEX_ALERT_RULE_LIMITS.maxActivePerApplication`. */
13
- activeCount: number;
14
- }
15
- export type IListAlertRuleResponse = IResponse<IListAlertRuleData>;
16
-
17
- export type ICreateAlertRuleData = IReflexAlertRuleWithState;
18
- export type ICreateAlertRuleResponse = IResponse<ICreateAlertRuleData>;
19
-
20
- export type IUpdateAlertRuleData = IReflexAlertRuleWithState;
21
- export type IUpdateAlertRuleResponse = IResponse<IUpdateAlertRuleData>;
22
-
23
- export type IDeleteAlertRuleData = Record<string, never>;
24
- export type IDeleteAlertRuleResponse = IResponse<IDeleteAlertRuleData>;
1
+ import type { IReflexAlertRule, IReflexAlertRuleState } from '../../models';
2
+ import type { IResponse } from '../response';
3
+
4
+ /** A rule and what its last evaluation found; `state` is null until the first evaluation. */
5
+ export interface IReflexAlertRuleWithState {
6
+ rule: IReflexAlertRule;
7
+ state: IReflexAlertRuleState | null;
8
+ }
9
+
10
+ export interface IListAlertRuleData {
11
+ rules: IReflexAlertRuleWithState[];
12
+ /** Rules enabled in the application, against `REFLEX_ALERT_RULE_LIMITS.maxActivePerApplication`. */
13
+ activeCount: number;
14
+ }
15
+ export type IListAlertRuleResponse = IResponse<IListAlertRuleData>;
16
+
17
+ export type ICreateAlertRuleData = IReflexAlertRuleWithState;
18
+ export type ICreateAlertRuleResponse = IResponse<ICreateAlertRuleData>;
19
+
20
+ export type IUpdateAlertRuleData = IReflexAlertRuleWithState;
21
+ export type IUpdateAlertRuleResponse = IResponse<IUpdateAlertRuleData>;
22
+
23
+ export type IDeleteAlertRuleData = Record<string, never>;
24
+ export type IDeleteAlertRuleResponse = IResponse<IDeleteAlertRuleData>;
@@ -1,11 +1,11 @@
1
- import type { IReflexApplicationInsights, IReflexCalendarDay } from '../../models';
2
- import type { IResponse } from '../response';
3
-
4
- export type IGetApplicationInsightsData = IReflexApplicationInsights;
5
- export type IGetApplicationInsightsResponse = IResponse<IGetApplicationInsightsData>;
6
-
7
- export interface IGetApplicationCalendarData {
8
- /** The last 365 days, oldest first, a day without run included. */
9
- days: IReflexCalendarDay[];
10
- }
11
- export type IGetApplicationCalendarResponse = IResponse<IGetApplicationCalendarData>;
1
+ import type { IReflexApplicationInsights, IReflexCalendarDay } from '../../models';
2
+ import type { IResponse } from '../response';
3
+
4
+ export type IGetApplicationInsightsData = IReflexApplicationInsights;
5
+ export type IGetApplicationInsightsResponse = IResponse<IGetApplicationInsightsData>;
6
+
7
+ export interface IGetApplicationCalendarData {
8
+ /** The last 365 days, oldest first, a day without run included. */
9
+ days: IReflexCalendarDay[];
10
+ }
11
+ export type IGetApplicationCalendarResponse = IResponse<IGetApplicationCalendarData>;
@@ -1,8 +1,8 @@
1
- import type { IReflexApplicationRunSettings } from '../../models';
2
- import type { IResponse } from '../response';
3
-
4
- export type IGetApplicationRunSettingsData = IReflexApplicationRunSettings;
5
- export type IGetApplicationRunSettingsResponse = IResponse<IGetApplicationRunSettingsData>;
6
-
7
- export type ISetApplicationRunSettingsData = IReflexApplicationRunSettings;
8
- export type ISetApplicationRunSettingsResponse = IResponse<ISetApplicationRunSettingsData>;
1
+ import type { IReflexApplicationRunSettings } from '../../models';
2
+ import type { IResponse } from '../response';
3
+
4
+ export type IGetApplicationRunSettingsData = IReflexApplicationRunSettings;
5
+ export type IGetApplicationRunSettingsResponse = IResponse<IGetApplicationRunSettingsData>;
6
+
7
+ export type ISetApplicationRunSettingsData = IReflexApplicationRunSettings;
8
+ export type ISetApplicationRunSettingsResponse = IResponse<ISetApplicationRunSettingsData>;
@@ -1,45 +1,45 @@
1
- import type { IReflexAccessGrant, IReflexAccessRequest } from '../../models';
2
- import type { IResponse } from '../response';
3
-
4
- export interface IListFunctionAccessData {
5
- grants: IReflexAccessGrant[];
6
- /** The requests of the function, every status, newest first. */
7
- requests: IReflexAccessRequest[];
8
- /** The declaration keys of the saved draft the caller may grant. */
9
- grantable: string[];
10
- }
11
- export type IListFunctionAccessResponse = IResponse<IListFunctionAccessData>;
12
-
13
- export interface IGrantFunctionAccessData {
14
- grant: IReflexAccessGrant;
15
- }
16
- export type IGrantFunctionAccessResponse = IResponse<IGrantFunctionAccessData>;
17
-
18
- export interface IRevokeFunctionAccessData {
19
- grant: IReflexAccessGrant;
20
- }
21
- export type IRevokeFunctionAccessResponse = IResponse<IRevokeFunctionAccessData>;
22
-
23
- export interface IGrantAllFunctionAccessData {
24
- /** What the caller could grant, now granted. */
25
- granted: IReflexAccessGrant[];
26
- /** The pending requests for the rest (an existing pending request is reused). */
27
- requested: IReflexAccessRequest[];
28
- }
29
- export type IGrantAllFunctionAccessResponse = IResponse<IGrantAllFunctionAccessData>;
30
-
31
- export interface IRequestFunctionAccessData {
32
- request: IReflexAccessRequest;
33
- }
34
- export type IRequestFunctionAccessResponse = IResponse<IRequestFunctionAccessData>;
35
-
36
- export interface IGrantFunctionAccessRequestData {
37
- request: IReflexAccessRequest;
38
- grant: IReflexAccessGrant;
39
- }
40
- export type IGrantFunctionAccessRequestResponse = IResponse<IGrantFunctionAccessRequestData>;
41
-
42
- export interface IDismissFunctionAccessRequestData {
43
- request: IReflexAccessRequest;
44
- }
45
- export type IDismissFunctionAccessRequestResponse = IResponse<IDismissFunctionAccessRequestData>;
1
+ import type { IReflexAccessGrant, IReflexAccessRequest } from '../../models';
2
+ import type { IResponse } from '../response';
3
+
4
+ export interface IListFunctionAccessData {
5
+ grants: IReflexAccessGrant[];
6
+ /** The requests of the function, every status, newest first. */
7
+ requests: IReflexAccessRequest[];
8
+ /** The declaration keys of the saved draft the caller may grant. */
9
+ grantable: string[];
10
+ }
11
+ export type IListFunctionAccessResponse = IResponse<IListFunctionAccessData>;
12
+
13
+ export interface IGrantFunctionAccessData {
14
+ grant: IReflexAccessGrant;
15
+ }
16
+ export type IGrantFunctionAccessResponse = IResponse<IGrantFunctionAccessData>;
17
+
18
+ export interface IRevokeFunctionAccessData {
19
+ grant: IReflexAccessGrant;
20
+ }
21
+ export type IRevokeFunctionAccessResponse = IResponse<IRevokeFunctionAccessData>;
22
+
23
+ export interface IGrantAllFunctionAccessData {
24
+ /** What the caller could grant, now granted. */
25
+ granted: IReflexAccessGrant[];
26
+ /** The pending requests for the rest (an existing pending request is reused). */
27
+ requested: IReflexAccessRequest[];
28
+ }
29
+ export type IGrantAllFunctionAccessResponse = IResponse<IGrantAllFunctionAccessData>;
30
+
31
+ export interface IRequestFunctionAccessData {
32
+ request: IReflexAccessRequest;
33
+ }
34
+ export type IRequestFunctionAccessResponse = IResponse<IRequestFunctionAccessData>;
35
+
36
+ export interface IGrantFunctionAccessRequestData {
37
+ request: IReflexAccessRequest;
38
+ grant: IReflexAccessGrant;
39
+ }
40
+ export type IGrantFunctionAccessRequestResponse = IResponse<IGrantFunctionAccessRequestData>;
41
+
42
+ export interface IDismissFunctionAccessRequestData {
43
+ request: IReflexAccessRequest;
44
+ }
45
+ export type IDismissFunctionAccessRequestResponse = IResponse<IDismissFunctionAccessRequestData>;
@@ -1,18 +1,18 @@
1
- import type { IReflexExecutionState, IReflexRun, IReflexRunDetail } from '../../models';
2
- import type { IResponse } from '../response';
3
-
4
- export interface IListFunctionRunData {
5
- /** Newest first. */
6
- runs: IReflexRun[];
7
- }
8
- export type IListFunctionRunResponse = IResponse<IListFunctionRunData>;
9
-
10
- export interface IGetFunctionRunData {
11
- run: IReflexRunDetail;
12
- }
13
- export type IGetFunctionRunResponse = IResponse<IGetFunctionRunData>;
14
-
15
- export interface IGetFunctionRunStateData {
16
- state: IReflexExecutionState;
17
- }
18
- export type IGetFunctionRunStateResponse = IResponse<IGetFunctionRunStateData>;
1
+ import type { IReflexExecutionState, IReflexRun, IReflexRunDetail } from '../../models';
2
+ import type { IResponse } from '../response';
3
+
4
+ export interface IListFunctionRunData {
5
+ /** Newest first. */
6
+ runs: IReflexRun[];
7
+ }
8
+ export type IListFunctionRunResponse = IResponse<IListFunctionRunData>;
9
+
10
+ export interface IGetFunctionRunData {
11
+ run: IReflexRunDetail;
12
+ }
13
+ export type IGetFunctionRunResponse = IResponse<IGetFunctionRunData>;
14
+
15
+ export interface IGetFunctionRunStateData {
16
+ state: IReflexExecutionState;
17
+ }
18
+ export type IGetFunctionRunStateResponse = IResponse<IGetFunctionRunStateData>;
@@ -3,6 +3,7 @@ import type {
3
3
  IReflexExecutionSettings,
4
4
  IReflexExecutionSettingsValues,
5
5
  IReflexFunctionLogCap,
6
+ IReflexIssuedCompletionSecret,
6
7
  IReflexPriceList,
7
8
  } from '../../models';
8
9
  import type { IResponse } from '../response';
@@ -25,11 +26,18 @@ export type IGetFunctionSettingsResponse = IResponse<IGetFunctionSettingsData>;
25
26
 
26
27
  export interface ISetFunctionDefaultSettingsData {
27
28
  settings: IReflexExecutionSettings;
29
+ /**
30
+ * The signing secrets of the completion webhook this change created (the first URL set in an environment of
31
+ * the Service), in clear, ONCE; absent when none was created.
32
+ */
33
+ issuedCompletionSecrets?: IReflexIssuedCompletionSecret[];
28
34
  }
29
35
  export type ISetFunctionDefaultSettingsResponse = IResponse<ISetFunctionDefaultSettingsData>;
30
36
 
31
37
  export interface ISetFunctionEnvironmentSettingsData {
32
38
  settings: IReflexExecutionSettings;
39
+ /** As for the default settings. */
40
+ issuedCompletionSecrets?: IReflexIssuedCompletionSecret[];
33
41
  }
34
42
  export type ISetFunctionEnvironmentSettingsResponse =
35
43
  IResponse<ISetFunctionEnvironmentSettingsData>;
@@ -1,21 +1,21 @@
1
- import type { IReflexFunctionTemplate } from '../../models';
2
- import type { IResponse } from '../response';
3
-
4
- export interface IListFunctionTemplateData {
5
- /** Sorted by name. */
6
- templates: IReflexFunctionTemplate[];
7
- }
8
- export type IListFunctionTemplateResponse = IResponse<IListFunctionTemplateData>;
9
-
10
- export interface ICreateFunctionTemplateData {
11
- template: IReflexFunctionTemplate;
12
- }
13
- export type ICreateFunctionTemplateResponse = IResponse<ICreateFunctionTemplateData>;
14
-
15
- export interface IUpdateFunctionTemplateData {
16
- template: IReflexFunctionTemplate;
17
- }
18
- export type IUpdateFunctionTemplateResponse = IResponse<IUpdateFunctionTemplateData>;
19
-
20
- export type IDeleteFunctionTemplateData = Record<string, never>;
21
- export type IDeleteFunctionTemplateResponse = IResponse<IDeleteFunctionTemplateData>;
1
+ import type { IReflexFunctionTemplate } from '../../models';
2
+ import type { IResponse } from '../response';
3
+
4
+ export interface IListFunctionTemplateData {
5
+ /** Sorted by name. */
6
+ templates: IReflexFunctionTemplate[];
7
+ }
8
+ export type IListFunctionTemplateResponse = IResponse<IListFunctionTemplateData>;
9
+
10
+ export interface ICreateFunctionTemplateData {
11
+ template: IReflexFunctionTemplate;
12
+ }
13
+ export type ICreateFunctionTemplateResponse = IResponse<ICreateFunctionTemplateData>;
14
+
15
+ export interface IUpdateFunctionTemplateData {
16
+ template: IReflexFunctionTemplate;
17
+ }
18
+ export type IUpdateFunctionTemplateResponse = IResponse<IUpdateFunctionTemplateData>;
19
+
20
+ export type IDeleteFunctionTemplateData = Record<string, never>;
21
+ export type IDeleteFunctionTemplateResponse = IResponse<IDeleteFunctionTemplateData>;
@@ -1,12 +1,19 @@
1
- import type { IReflexRun } from '../../models';
1
+ import type { IReflexContractError, IReflexRun } from '../../models';
2
2
  import type { IResponse } from '../response';
3
3
 
4
4
  export interface ISimulateFunctionData {
5
5
  run: IReflexRun;
6
+ /**
7
+ * Where the response is out of the contract of the route named by `routeId`; empty without `routeId`, without
8
+ * contract, or when the response matches it.
9
+ */
10
+ contractWarnings: IReflexContractError[];
6
11
  }
7
12
  export type ISimulateFunctionResponse = IResponse<ISimulateFunctionData>;
8
13
 
9
14
  export interface IDryRunFunctionData {
10
15
  run: IReflexRun;
16
+ /** As for a simulation. */
17
+ contractWarnings: IReflexContractError[];
11
18
  }
12
19
  export type IDryRunFunctionResponse = IResponse<IDryRunFunctionData>;