@abyss-project/reflex 6.0.3 → 6.0.5

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 (154) hide show
  1. package/.eslintrc.js +32 -32
  2. package/.prettierrc +5 -5
  3. package/README.md +15 -15
  4. package/dist/types/interface/models/reflex-completion-webhook.model.d.ts +9 -0
  5. package/dist/types/interface/models/reflex-completion-webhook.model.js +10 -1
  6. package/dist/types/interface/models/reflex-completion-webhook.model.js.map +1 -1
  7. package/dist/types/interface/models/reflex-service-limits.model.d.ts +5 -2
  8. package/jest.config.ts +11 -11
  9. package/package.json +1 -1
  10. package/src/api/alert-rule.api.test.ts +72 -72
  11. package/src/api/alert-rule.api.ts +57 -57
  12. package/src/api/application-insights.api.test.ts +42 -42
  13. package/src/api/application-insights.api.ts +38 -38
  14. package/src/api/application-run-settings.api.test.ts +51 -51
  15. package/src/api/application-run-settings.api.ts +30 -30
  16. package/src/api/function-access.api.ts +87 -87
  17. package/src/api/function-insights.api.test.ts +27 -27
  18. package/src/api/function-insights.api.ts +18 -18
  19. package/src/api/function-run.api.ts +38 -38
  20. package/src/api/function-settings.api.ts +74 -74
  21. package/src/api/function-template.api.test.ts +72 -72
  22. package/src/api/function-template.api.ts +52 -52
  23. package/src/api/function-test.api.ts +34 -34
  24. package/src/api/function-version.api.ts +66 -66
  25. package/src/api/function.api.ts +62 -62
  26. package/src/api/health.api.ts +10 -10
  27. package/src/api/route-stats.api.test.ts +45 -45
  28. package/src/api/route-stats.api.ts +36 -36
  29. package/src/api/service-completion-webhook.api.test.ts +10 -0
  30. package/src/api/service-configuration.api.ts +16 -16
  31. package/src/api/service-deployment.api.ts +79 -79
  32. package/src/api/service-discord-event.api.test.ts +106 -106
  33. package/src/api/service-discord-event.api.ts +78 -78
  34. package/src/api/service-insights.api.test.ts +36 -36
  35. package/src/api/service-insights.api.ts +42 -42
  36. package/src/api/service-task.api.test.ts +140 -140
  37. package/src/api/service-task.api.ts +141 -141
  38. package/src/api/service-version.api.ts +54 -54
  39. package/src/api/service.api.test.ts +215 -215
  40. package/src/api/service.api.ts +55 -55
  41. package/src/discord/discord-event-filter-cases.ts +261 -261
  42. package/src/discord/discord-event-filters.test.ts +91 -91
  43. package/src/discord/discord-event-filters.ts +95 -95
  44. package/src/discord/discord-event-intents.test.ts +112 -112
  45. package/src/discord/discord-event-intents.ts +55 -55
  46. package/src/discord/index.ts +3 -3
  47. package/src/insights/index.ts +1 -1
  48. package/src/insights/percentiles.test.ts +75 -75
  49. package/src/insights/percentiles.ts +37 -37
  50. package/src/types/enum/access-grant-status.enum.ts +12 -12
  51. package/src/types/enum/access-kind.enum.ts +7 -7
  52. package/src/types/enum/access-request-status.enum.ts +11 -11
  53. package/src/types/enum/bot-event-block-reason.enum.ts +7 -7
  54. package/src/types/enum/configuration-read-as.enum.ts +5 -5
  55. package/src/types/enum/discord-activity-type.enum.ts +9 -9
  56. package/src/types/enum/discord-channel-type.enum.ts +11 -11
  57. package/src/types/enum/discord-component-kind.enum.ts +7 -7
  58. package/src/types/enum/discord-event-drop-reason.enum.ts +13 -13
  59. package/src/types/enum/discord-event-filter-name.enum.ts +11 -11
  60. package/src/types/enum/discord-event-status.enum.ts +13 -13
  61. package/src/types/enum/discord-event-type.enum.ts +7 -7
  62. package/src/types/enum/discord-gateway-failure-code.enum.ts +11 -11
  63. package/src/types/enum/discord-gateway-state.enum.ts +11 -11
  64. package/src/types/enum/discord-host-action.enum.ts +35 -35
  65. package/src/types/enum/discord-locale.enum.ts +35 -35
  66. package/src/types/enum/discord-option-type.enum.ts +12 -12
  67. package/src/types/enum/discord-presence-status.enum.ts +8 -8
  68. package/src/types/enum/discord-sync-status.enum.ts +6 -6
  69. package/src/types/enum/discord-token-state.enum.ts +11 -11
  70. package/src/types/enum/execution-mode.enum.ts +9 -9
  71. package/src/types/enum/execution-profile.enum.ts +20 -20
  72. package/src/types/enum/execution-settings-source.enum.ts +9 -9
  73. package/src/types/enum/health-status.enum.ts +4 -4
  74. package/src/types/enum/insights-period.enum.ts +8 -8
  75. package/src/types/enum/log-cap-mode.enum.ts +6 -6
  76. package/src/types/enum/log-drop-cause.enum.ts +8 -8
  77. package/src/types/enum/reflex-alert-metric.enum.ts +5 -5
  78. package/src/types/enum/reflex-alert-notification-state.enum.ts +6 -6
  79. package/src/types/enum/reflex-alert-scope.enum.ts +6 -6
  80. package/src/types/enum/route-method.enum.ts +9 -9
  81. package/src/types/enum/run-log-level.enum.ts +6 -6
  82. package/src/types/enum/run-mode.enum.ts +11 -11
  83. package/src/types/enum/run-step-status.enum.ts +7 -7
  84. package/src/types/enum/schedule-sync-status.enum.ts +6 -6
  85. package/src/types/enum/scheduled-run-origin.enum.ts +5 -5
  86. package/src/types/enum/scheduled-run-status.enum.ts +17 -17
  87. package/src/types/enum/service-deployment-action.enum.ts +11 -11
  88. package/src/types/enum/service-deployment-status.enum.ts +5 -5
  89. package/src/types/enum/service-type.enum.ts +9 -9
  90. package/src/types/enum/service-version-change-kind.enum.ts +6 -6
  91. package/src/types/enum/trace-effect-type.enum.ts +12 -12
  92. package/src/types/enum/trigger-access-mode.enum.ts +12 -12
  93. package/src/types/enum/trigger-kind.enum.ts +8 -8
  94. package/src/types/enum/vault-value-source.enum.ts +12 -12
  95. package/src/types/enum/vault-visibility.enum.ts +5 -5
  96. package/src/types/index.ts +2 -2
  97. package/src/types/interface/api/index.ts +3 -3
  98. package/src/types/interface/api/requests/alert-rule.request.ts +53 -53
  99. package/src/types/interface/api/requests/application-insights.request.ts +18 -18
  100. package/src/types/interface/api/requests/application-run-settings.request.ts +11 -11
  101. package/src/types/interface/api/requests/function-access.request.ts +51 -51
  102. package/src/types/interface/api/requests/function-settings.request.ts +34 -34
  103. package/src/types/interface/api/requests/function-template.request.ts +29 -29
  104. package/src/types/interface/api/requests/function-version.request.ts +38 -38
  105. package/src/types/interface/api/requests/function.request.ts +36 -36
  106. package/src/types/interface/api/requests/route-stats.request.ts +22 -22
  107. package/src/types/interface/api/requests/service-configuration.request.ts +4 -4
  108. package/src/types/interface/api/requests/service-deployment.request.ts +49 -49
  109. package/src/types/interface/api/requests/service-discord-event.request.ts +68 -68
  110. package/src/types/interface/api/requests/service-insights.request.ts +31 -31
  111. package/src/types/interface/api/requests/service-task.request.ts +80 -80
  112. package/src/types/interface/api/requests/service-version.request.ts +24 -24
  113. package/src/types/interface/api/requests/service.request.ts +46 -46
  114. package/src/types/interface/api/response.ts +4 -4
  115. package/src/types/interface/api/responses/alert-rule.response.ts +24 -24
  116. package/src/types/interface/api/responses/application-insights.response.ts +11 -11
  117. package/src/types/interface/api/responses/application-run-settings.response.ts +8 -8
  118. package/src/types/interface/api/responses/function-access.response.ts +45 -45
  119. package/src/types/interface/api/responses/function-run.response.ts +18 -18
  120. package/src/types/interface/api/responses/function-template.response.ts +21 -21
  121. package/src/types/interface/api/responses/function-version.response.ts +42 -42
  122. package/src/types/interface/api/responses/function.response.ts +25 -25
  123. package/src/types/interface/api/responses/route-stats.response.ts +15 -15
  124. package/src/types/interface/api/responses/service-configuration.response.ts +8 -8
  125. package/src/types/interface/api/responses/service-deployment.response.ts +32 -32
  126. package/src/types/interface/api/responses/service-discord-event.response.ts +24 -24
  127. package/src/types/interface/api/responses/service-insights.response.ts +11 -11
  128. package/src/types/interface/api/responses/service-task.response.ts +57 -57
  129. package/src/types/interface/api/responses/service-version.response.ts +112 -112
  130. package/src/types/interface/api/responses/service.response.ts +31 -31
  131. package/src/types/interface/health.response.ts +7 -7
  132. package/src/types/interface/index.ts +3 -3
  133. package/src/types/interface/models/reflex-access-grant.model.ts +14 -14
  134. package/src/types/interface/models/reflex-access-request.model.ts +15 -15
  135. package/src/types/interface/models/reflex-alert-rule.model.ts +56 -56
  136. package/src/types/interface/models/reflex-completion-webhook.model.ts +26 -0
  137. package/src/types/interface/models/reflex-definition.model.ts +31 -31
  138. package/src/types/interface/models/reflex-discord-event-log.model.ts +58 -58
  139. package/src/types/interface/models/reflex-discord-event.model.ts +79 -79
  140. package/src/types/interface/models/reflex-discord.model.ts +196 -196
  141. package/src/types/interface/models/reflex-function-template.model.ts +18 -18
  142. package/src/types/interface/models/reflex-function-version.model.ts +19 -19
  143. package/src/types/interface/models/reflex-function.model.ts +30 -30
  144. package/src/types/interface/models/reflex-insights.model.ts +215 -215
  145. package/src/types/interface/models/reflex-price-list.model.ts +20 -20
  146. package/src/types/interface/models/reflex-run-settings.model.ts +28 -28
  147. package/src/types/interface/models/reflex-service-configuration.model.ts +22 -22
  148. package/src/types/interface/models/reflex-service-deployment.model.ts +46 -46
  149. package/src/types/interface/models/reflex-service-limits.model.ts +17 -8
  150. package/src/types/interface/models/reflex-service.model.ts +45 -45
  151. package/src/types/interface/models/reflex-step-stats.model.ts +35 -35
  152. package/src/types/interface/models/reflex-task.model.ts +97 -97
  153. package/tsconfig.check.json +15 -15
  154. package/tsconfig.json +35 -35
@@ -1,36 +1,36 @@
1
- import type { IReflexDefinition } from '../../models';
2
-
3
- export interface IListFunctionParams {
4
- applicationId: string;
5
- }
6
-
7
- export interface ICreateFunctionParams {
8
- applicationId: string;
9
- }
10
- export interface ICreateFunctionBody {
11
- /** A Service of the application, which the function joins. */
12
- serviceId: string;
13
- /** Unique within the application, 1 to 100 characters. */
14
- name: string;
15
- /** Absent: a function without access or step, to fill in. */
16
- definition?: IReflexDefinition;
17
- }
18
-
19
- export interface IGetFunctionParams {
20
- applicationId: string;
21
- functionId: string;
22
- }
23
-
24
- export interface IUpdateFunctionParams {
25
- applicationId: string;
26
- functionId: string;
27
- }
28
- export interface IUpdateFunctionBody {
29
- name?: string;
30
- definition?: IReflexDefinition;
31
- }
32
-
33
- export interface IDeleteFunctionParams {
34
- applicationId: string;
35
- functionId: string;
36
- }
1
+ import type { IReflexDefinition } from '../../models';
2
+
3
+ export interface IListFunctionParams {
4
+ applicationId: string;
5
+ }
6
+
7
+ export interface ICreateFunctionParams {
8
+ applicationId: string;
9
+ }
10
+ export interface ICreateFunctionBody {
11
+ /** A Service of the application, which the function joins. */
12
+ serviceId: string;
13
+ /** Unique within the application, 1 to 100 characters. */
14
+ name: string;
15
+ /** Absent: a function without access or step, to fill in. */
16
+ definition?: IReflexDefinition;
17
+ }
18
+
19
+ export interface IGetFunctionParams {
20
+ applicationId: string;
21
+ functionId: string;
22
+ }
23
+
24
+ export interface IUpdateFunctionParams {
25
+ applicationId: string;
26
+ functionId: string;
27
+ }
28
+ export interface IUpdateFunctionBody {
29
+ name?: string;
30
+ definition?: IReflexDefinition;
31
+ }
32
+
33
+ export interface IDeleteFunctionParams {
34
+ applicationId: string;
35
+ functionId: string;
36
+ }
@@ -1,22 +1,22 @@
1
- import type { InsightsPeriod } from '../../../enum';
2
-
3
- export interface IGetServiceRouteStatsParams {
4
- applicationId: string;
5
- serviceId: string;
6
- }
7
- export interface IGetServiceRouteStatsQuery {
8
- /** The environment of the application (abyss-main's id). */
9
- environmentId: string;
10
- period: InsightsPeriod;
11
- }
12
-
13
- export interface IGetRouteInsightsParams {
14
- applicationId: string;
15
- serviceId: string;
16
- routeId: string;
17
- }
18
- export interface IGetRouteInsightsQuery {
19
- /** The environment of the application (abyss-main's id). */
20
- environmentId: string;
21
- period: InsightsPeriod;
22
- }
1
+ import type { InsightsPeriod } from '../../../enum';
2
+
3
+ export interface IGetServiceRouteStatsParams {
4
+ applicationId: string;
5
+ serviceId: string;
6
+ }
7
+ export interface IGetServiceRouteStatsQuery {
8
+ /** The environment of the application (abyss-main's id). */
9
+ environmentId: string;
10
+ period: InsightsPeriod;
11
+ }
12
+
13
+ export interface IGetRouteInsightsParams {
14
+ applicationId: string;
15
+ serviceId: string;
16
+ routeId: string;
17
+ }
18
+ export interface IGetRouteInsightsQuery {
19
+ /** The environment of the application (abyss-main's id). */
20
+ environmentId: string;
21
+ period: InsightsPeriod;
22
+ }
@@ -1,4 +1,4 @@
1
- export interface IListServiceConfigurationParams {
2
- applicationId: string;
3
- serviceId: string;
4
- }
1
+ export interface IListServiceConfigurationParams {
2
+ applicationId: string;
3
+ serviceId: string;
4
+ }
@@ -1,49 +1,49 @@
1
- export interface IListServiceDeploymentParams {
2
- applicationId: string;
3
- serviceId: string;
4
- }
5
- export interface IListServiceDeploymentQuery {
6
- /** Only the history of this environment; every environment when absent. */
7
- environmentId?: string;
8
- /** 1 to 100, 50 by default. */
9
- limit?: number;
10
- /** Gestures skipped, newest first; 0 by default. */
11
- offset?: number;
12
- }
13
-
14
- export interface IGoLiveServiceParams {
15
- applicationId: string;
16
- serviceId: string;
17
- }
18
- /** A production environment needs REFLEX_PUBLISH_PRODUCTION, any other REFLEX_PUBLISH. */
19
- export interface IGoLiveServiceBody {
20
- /** An environment of the application (abyss-main's id). */
21
- environmentId: string;
22
- serviceVersionId: string;
23
- }
24
-
25
- export interface IRollbackServiceParams {
26
- applicationId: string;
27
- serviceId: string;
28
- }
29
- export interface IRollbackServiceBody {
30
- environmentId: string;
31
- /** A deployment of this environment, from the history: its version is put back in service. */
32
- deploymentId: string;
33
- }
34
-
35
- export interface IPauseServiceParams {
36
- applicationId: string;
37
- serviceId: string;
38
- }
39
- export interface IPauseServiceBody {
40
- environmentId: string;
41
- }
42
-
43
- export interface IResumeServiceParams {
44
- applicationId: string;
45
- serviceId: string;
46
- }
47
- export interface IResumeServiceBody {
48
- environmentId: string;
49
- }
1
+ export interface IListServiceDeploymentParams {
2
+ applicationId: string;
3
+ serviceId: string;
4
+ }
5
+ export interface IListServiceDeploymentQuery {
6
+ /** Only the history of this environment; every environment when absent. */
7
+ environmentId?: string;
8
+ /** 1 to 100, 50 by default. */
9
+ limit?: number;
10
+ /** Gestures skipped, newest first; 0 by default. */
11
+ offset?: number;
12
+ }
13
+
14
+ export interface IGoLiveServiceParams {
15
+ applicationId: string;
16
+ serviceId: string;
17
+ }
18
+ /** A production environment needs REFLEX_PUBLISH_PRODUCTION, any other REFLEX_PUBLISH. */
19
+ export interface IGoLiveServiceBody {
20
+ /** An environment of the application (abyss-main's id). */
21
+ environmentId: string;
22
+ serviceVersionId: string;
23
+ }
24
+
25
+ export interface IRollbackServiceParams {
26
+ applicationId: string;
27
+ serviceId: string;
28
+ }
29
+ export interface IRollbackServiceBody {
30
+ environmentId: string;
31
+ /** A deployment of this environment, from the history: its version is put back in service. */
32
+ deploymentId: string;
33
+ }
34
+
35
+ export interface IPauseServiceParams {
36
+ applicationId: string;
37
+ serviceId: string;
38
+ }
39
+ export interface IPauseServiceBody {
40
+ environmentId: string;
41
+ }
42
+
43
+ export interface IResumeServiceParams {
44
+ applicationId: string;
45
+ serviceId: string;
46
+ }
47
+ export interface IResumeServiceBody {
48
+ environmentId: string;
49
+ }
@@ -1,68 +1,68 @@
1
- import type { DiscordEventDropReason, DiscordEventStatus, DiscordEventType } from '../../../enum';
2
- import type { IReflexDiscordEventFilters } from '../../models';
3
-
4
- export interface IListServiceDiscordEventParams {
5
- applicationId: string;
6
- serviceId: string;
7
- }
8
-
9
- export interface ICreateServiceDiscordEventParams {
10
- applicationId: string;
11
- serviceId: string;
12
- }
13
- export interface ICreateServiceDiscordEventBody {
14
- /** `^[-_a-z0-9]{1,32}$`, unique within the Service. */
15
- name: string;
16
- eventType: DiscordEventType;
17
- /** A function of the same Service. */
18
- functionId: string;
19
- /** Empty by default: no filter. */
20
- filters?: IReflexDiscordEventFilters;
21
- /** `true` by default. */
22
- ordered?: boolean;
23
- /** `false` by default, `MESSAGE_CREATE` only; asks for the MESSAGE_CONTENT intent. */
24
- includeContent?: boolean;
25
- }
26
-
27
- export interface IUpdateServiceDiscordEventParams {
28
- applicationId: string;
29
- serviceId: string;
30
- eventId: string;
31
- }
32
- export interface IUpdateServiceDiscordEventBody {
33
- name?: string;
34
- eventType?: DiscordEventType;
35
- functionId?: string;
36
- filters?: IReflexDiscordEventFilters;
37
- ordered?: boolean;
38
- includeContent?: boolean;
39
- }
40
-
41
- export interface IDeleteServiceDiscordEventParams {
42
- applicationId: string;
43
- serviceId: string;
44
- eventId: string;
45
- }
46
-
47
- export interface IListServiceDiscordEventLogParams {
48
- applicationId: string;
49
- serviceId: string;
50
- }
51
- export interface IListServiceDiscordEventLogQuery {
52
- /** The environment of the application (abyss-main's id). */
53
- environmentId: string;
54
- /** Only the retained events in this status; drops the dropped ones from the page. */
55
- status?: DiscordEventStatus;
56
- /** Only the dropped events for this reason; drops the retained ones from the page. */
57
- reason?: DiscordEventDropReason;
58
- type?: DiscordEventType;
59
- triggerId?: string;
60
- /** ISO 8601, included. */
61
- from?: string;
62
- /** ISO 8601, excluded. */
63
- to?: string;
64
- /** The `nextCursor` of the previous page. */
65
- cursor?: string;
66
- /** 1 to 100, 50 by default. */
67
- limit?: number;
68
- }
1
+ import type { DiscordEventDropReason, DiscordEventStatus, DiscordEventType } from '../../../enum';
2
+ import type { IReflexDiscordEventFilters } from '../../models';
3
+
4
+ export interface IListServiceDiscordEventParams {
5
+ applicationId: string;
6
+ serviceId: string;
7
+ }
8
+
9
+ export interface ICreateServiceDiscordEventParams {
10
+ applicationId: string;
11
+ serviceId: string;
12
+ }
13
+ export interface ICreateServiceDiscordEventBody {
14
+ /** `^[-_a-z0-9]{1,32}$`, unique within the Service. */
15
+ name: string;
16
+ eventType: DiscordEventType;
17
+ /** A function of the same Service. */
18
+ functionId: string;
19
+ /** Empty by default: no filter. */
20
+ filters?: IReflexDiscordEventFilters;
21
+ /** `true` by default. */
22
+ ordered?: boolean;
23
+ /** `false` by default, `MESSAGE_CREATE` only; asks for the MESSAGE_CONTENT intent. */
24
+ includeContent?: boolean;
25
+ }
26
+
27
+ export interface IUpdateServiceDiscordEventParams {
28
+ applicationId: string;
29
+ serviceId: string;
30
+ eventId: string;
31
+ }
32
+ export interface IUpdateServiceDiscordEventBody {
33
+ name?: string;
34
+ eventType?: DiscordEventType;
35
+ functionId?: string;
36
+ filters?: IReflexDiscordEventFilters;
37
+ ordered?: boolean;
38
+ includeContent?: boolean;
39
+ }
40
+
41
+ export interface IDeleteServiceDiscordEventParams {
42
+ applicationId: string;
43
+ serviceId: string;
44
+ eventId: string;
45
+ }
46
+
47
+ export interface IListServiceDiscordEventLogParams {
48
+ applicationId: string;
49
+ serviceId: string;
50
+ }
51
+ export interface IListServiceDiscordEventLogQuery {
52
+ /** The environment of the application (abyss-main's id). */
53
+ environmentId: string;
54
+ /** Only the retained events in this status; drops the dropped ones from the page. */
55
+ status?: DiscordEventStatus;
56
+ /** Only the dropped events for this reason; drops the retained ones from the page. */
57
+ reason?: DiscordEventDropReason;
58
+ type?: DiscordEventType;
59
+ triggerId?: string;
60
+ /** ISO 8601, included. */
61
+ from?: string;
62
+ /** ISO 8601, excluded. */
63
+ to?: string;
64
+ /** The `nextCursor` of the previous page. */
65
+ cursor?: string;
66
+ /** 1 to 100, 50 by default. */
67
+ limit?: number;
68
+ }
@@ -1,31 +1,31 @@
1
- import type { InsightsPeriod } from '../../../enum';
2
-
3
- export interface IGetServiceInsightsParams {
4
- applicationId: string;
5
- serviceId: string;
6
- }
7
- export interface IGetServiceInsightsQuery {
8
- /** The environment of the application (abyss-main's id). */
9
- environmentId: string;
10
- period: InsightsPeriod;
11
- }
12
-
13
- export interface IGetServiceEventInsightsParams {
14
- applicationId: string;
15
- serviceId: string;
16
- }
17
- export interface IGetServiceEventInsightsQuery {
18
- /** The environment of the application (abyss-main's id). */
19
- environmentId: string;
20
- period: InsightsPeriod;
21
- }
22
-
23
- export interface IGetFunctionInsightsParams {
24
- applicationId: string;
25
- functionId: string;
26
- }
27
- export interface IGetFunctionInsightsQuery {
28
- /** The environment of the application (abyss-main's id). */
29
- environmentId: string;
30
- period: InsightsPeriod;
31
- }
1
+ import type { InsightsPeriod } from '../../../enum';
2
+
3
+ export interface IGetServiceInsightsParams {
4
+ applicationId: string;
5
+ serviceId: string;
6
+ }
7
+ export interface IGetServiceInsightsQuery {
8
+ /** The environment of the application (abyss-main's id). */
9
+ environmentId: string;
10
+ period: InsightsPeriod;
11
+ }
12
+
13
+ export interface IGetServiceEventInsightsParams {
14
+ applicationId: string;
15
+ serviceId: string;
16
+ }
17
+ export interface IGetServiceEventInsightsQuery {
18
+ /** The environment of the application (abyss-main's id). */
19
+ environmentId: string;
20
+ period: InsightsPeriod;
21
+ }
22
+
23
+ export interface IGetFunctionInsightsParams {
24
+ applicationId: string;
25
+ functionId: string;
26
+ }
27
+ export interface IGetFunctionInsightsQuery {
28
+ /** The environment of the application (abyss-main's id). */
29
+ environmentId: string;
30
+ period: InsightsPeriod;
31
+ }
@@ -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
+ }