@abyss-project/reflex 5.6.0 → 5.7.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 (99) 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-discord-event.model.d.ts +1 -1
  5. package/dist/types/interface/models/reflex-discord-event.model.js +1 -1
  6. package/dist/types/interface/models/reflex-discord-event.model.js.map +1 -1
  7. package/jest.config.ts +11 -11
  8. package/package.json +1 -1
  9. package/src/api/function-access.api.ts +36 -36
  10. package/src/api/function-run.api.ts +38 -38
  11. package/src/api/function-settings.api.ts +59 -59
  12. package/src/api/function-test.api.ts +34 -34
  13. package/src/api/function-version.api.ts +48 -48
  14. package/src/api/function.api.test.ts +249 -249
  15. package/src/api/function.api.ts +62 -62
  16. package/src/api/health.api.ts +10 -10
  17. package/src/api/service-configuration.api.ts +16 -16
  18. package/src/api/service-deployment.api.ts +79 -79
  19. package/src/api/service-route.api.ts +72 -72
  20. package/src/api/service-task.api.test.ts +140 -140
  21. package/src/api/service-task.api.ts +141 -141
  22. package/src/api/service-version.api.ts +54 -54
  23. package/src/api/service.api.test.ts +215 -215
  24. package/src/api/service.api.ts +55 -55
  25. package/src/types/enum/access-grant-status.enum.ts +12 -12
  26. package/src/types/enum/access-kind.enum.ts +7 -7
  27. package/src/types/enum/configuration-read-as.enum.ts +5 -5
  28. package/src/types/enum/discord-activity-type.enum.ts +9 -9
  29. package/src/types/enum/discord-component-kind.enum.ts +7 -7
  30. package/src/types/enum/discord-gateway-state.enum.ts +11 -11
  31. package/src/types/enum/discord-option-type.enum.ts +12 -12
  32. package/src/types/enum/discord-presence-status.enum.ts +8 -8
  33. package/src/types/enum/discord-sync-status.enum.ts +6 -6
  34. package/src/types/enum/discord-token-state.enum.ts +11 -11
  35. package/src/types/enum/execution-mode.enum.ts +9 -9
  36. package/src/types/enum/execution-profile.enum.ts +20 -20
  37. package/src/types/enum/execution-settings-source.enum.ts +9 -9
  38. package/src/types/enum/health-status.enum.ts +4 -4
  39. package/src/types/enum/route-method.enum.ts +9 -9
  40. package/src/types/enum/run-log-level.enum.ts +6 -6
  41. package/src/types/enum/run-mode.enum.ts +11 -11
  42. package/src/types/enum/run-status.enum.ts +11 -11
  43. package/src/types/enum/run-step-status.enum.ts +7 -7
  44. package/src/types/enum/schedule-sync-status.enum.ts +6 -6
  45. package/src/types/enum/scheduled-run-origin.enum.ts +5 -5
  46. package/src/types/enum/scheduled-run-status.enum.ts +17 -17
  47. package/src/types/enum/service-deployment-action.enum.ts +11 -11
  48. package/src/types/enum/service-deployment-status.enum.ts +5 -5
  49. package/src/types/enum/service-type.enum.ts +9 -9
  50. package/src/types/enum/service-version-change-kind.enum.ts +6 -6
  51. package/src/types/enum/trace-effect-type.enum.ts +12 -12
  52. package/src/types/enum/trigger-access-mode.enum.ts +12 -12
  53. package/src/types/enum/vault-value-source.enum.ts +12 -12
  54. package/src/types/enum/vault-visibility.enum.ts +5 -5
  55. package/src/types/index.ts +2 -2
  56. package/src/types/interface/api/index.ts +3 -3
  57. package/src/types/interface/api/requests/function-access.request.ts +25 -25
  58. package/src/types/interface/api/requests/function-run.request.ts +30 -30
  59. package/src/types/interface/api/requests/function-settings.request.ts +27 -27
  60. package/src/types/interface/api/requests/function-test.request.ts +39 -39
  61. package/src/types/interface/api/requests/function-version.request.ts +20 -20
  62. package/src/types/interface/api/requests/function.request.ts +36 -36
  63. package/src/types/interface/api/requests/service-configuration.request.ts +4 -4
  64. package/src/types/interface/api/requests/service-deployment.request.ts +49 -49
  65. package/src/types/interface/api/requests/service-route.request.ts +44 -44
  66. package/src/types/interface/api/requests/service-task.request.ts +80 -80
  67. package/src/types/interface/api/requests/service-version.request.ts +24 -24
  68. package/src/types/interface/api/requests/service.request.ts +46 -46
  69. package/src/types/interface/api/response.ts +4 -4
  70. package/src/types/interface/api/responses/function-access.response.ts +17 -17
  71. package/src/types/interface/api/responses/function-run.response.ts +18 -18
  72. package/src/types/interface/api/responses/function-settings.response.ts +36 -36
  73. package/src/types/interface/api/responses/function-test.response.ts +12 -12
  74. package/src/types/interface/api/responses/function-version.response.ts +31 -31
  75. package/src/types/interface/api/responses/function.response.ts +25 -25
  76. package/src/types/interface/api/responses/service-configuration.response.ts +8 -8
  77. package/src/types/interface/api/responses/service-deployment.response.ts +32 -32
  78. package/src/types/interface/api/responses/service-route.response.ts +31 -31
  79. package/src/types/interface/api/responses/service-task.response.ts +57 -57
  80. package/src/types/interface/api/responses/service.response.ts +31 -31
  81. package/src/types/interface/health.response.ts +7 -7
  82. package/src/types/interface/index.ts +3 -3
  83. package/src/types/interface/models/reflex-access-grant.model.ts +14 -14
  84. package/src/types/interface/models/reflex-definition.model.ts +31 -31
  85. package/src/types/interface/models/reflex-discord-event.model.ts +7 -6
  86. package/src/types/interface/models/reflex-discord.model.ts +146 -146
  87. package/src/types/interface/models/reflex-execution-settings.model.ts +50 -50
  88. package/src/types/interface/models/reflex-function-version.model.ts +14 -14
  89. package/src/types/interface/models/reflex-function.model.ts +16 -16
  90. package/src/types/interface/models/reflex-price-list.model.ts +20 -20
  91. package/src/types/interface/models/reflex-route.model.ts +19 -19
  92. package/src/types/interface/models/reflex-run.model.ts +4 -1
  93. package/src/types/interface/models/reflex-service-configuration.model.ts +22 -22
  94. package/src/types/interface/models/reflex-service-deployment.model.ts +46 -46
  95. package/src/types/interface/models/reflex-service.model.ts +45 -45
  96. package/src/types/interface/models/reflex-step-stats.model.ts +35 -35
  97. package/src/types/interface/models/reflex-task.model.ts +97 -97
  98. package/tsconfig.check.json +15 -15
  99. package/tsconfig.json +35 -35
@@ -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,4 +1,4 @@
1
- /** Every success of the API wraps its payload in `data`. */
2
- export interface IResponse<T> {
3
- data: T;
4
- }
1
+ /** Every success of the API wraps its payload in `data`. */
2
+ export interface IResponse<T> {
3
+ data: T;
4
+ }
@@ -1,17 +1,17 @@
1
- import type { IReflexAccessGrant } from '../../models';
2
- import type { IResponse } from '../response';
3
-
4
- export interface IListFunctionAccessData {
5
- grants: IReflexAccessGrant[];
6
- }
7
- export type IListFunctionAccessResponse = IResponse<IListFunctionAccessData>;
8
-
9
- export interface IGrantFunctionAccessData {
10
- grant: IReflexAccessGrant;
11
- }
12
- export type IGrantFunctionAccessResponse = IResponse<IGrantFunctionAccessData>;
13
-
14
- export interface IRevokeFunctionAccessData {
15
- grant: IReflexAccessGrant;
16
- }
17
- export type IRevokeFunctionAccessResponse = IResponse<IRevokeFunctionAccessData>;
1
+ import type { IReflexAccessGrant } from '../../models';
2
+ import type { IResponse } from '../response';
3
+
4
+ export interface IListFunctionAccessData {
5
+ grants: IReflexAccessGrant[];
6
+ }
7
+ export type IListFunctionAccessResponse = IResponse<IListFunctionAccessData>;
8
+
9
+ export interface IGrantFunctionAccessData {
10
+ grant: IReflexAccessGrant;
11
+ }
12
+ export type IGrantFunctionAccessResponse = IResponse<IGrantFunctionAccessData>;
13
+
14
+ export interface IRevokeFunctionAccessData {
15
+ grant: IReflexAccessGrant;
16
+ }
17
+ export type IRevokeFunctionAccessResponse = IResponse<IRevokeFunctionAccessData>;
@@ -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>;
@@ -1,36 +1,36 @@
1
- import type {
2
- IReflexEffectiveExecutionSettings,
3
- IReflexExecutionSettings,
4
- IReflexExecutionSettingsValues,
5
- IReflexPriceList,
6
- } from '../../models';
7
- import type { IResponse } from '../response';
8
-
9
- export interface IGetFunctionSettingsData {
10
- /** The default of the function; null when none is set. */
11
- default: IReflexExecutionSettings | null;
12
- /** The override of each environment that has one. */
13
- environments: IReflexExecutionSettings[];
14
- /** What each environment of the application runs with. */
15
- effective: IReflexEffectiveExecutionSettings[];
16
- /** What applies when neither the environment nor the function sets anything. */
17
- builtIn: IReflexExecutionSettingsValues;
18
- /** The price list an execution is billed with, to estimate the cost of a setting. */
19
- priceList: IReflexPriceList;
20
- }
21
- export type IGetFunctionSettingsResponse = IResponse<IGetFunctionSettingsData>;
22
-
23
- export interface ISetFunctionDefaultSettingsData {
24
- settings: IReflexExecutionSettings;
25
- }
26
- export type ISetFunctionDefaultSettingsResponse = IResponse<ISetFunctionDefaultSettingsData>;
27
-
28
- export interface ISetFunctionEnvironmentSettingsData {
29
- settings: IReflexExecutionSettings;
30
- }
31
- export type ISetFunctionEnvironmentSettingsResponse =
32
- IResponse<ISetFunctionEnvironmentSettingsData>;
33
-
34
- export type IRemoveFunctionEnvironmentSettingsData = Record<string, never>;
35
- export type IRemoveFunctionEnvironmentSettingsResponse =
36
- IResponse<IRemoveFunctionEnvironmentSettingsData>;
1
+ import type {
2
+ IReflexEffectiveExecutionSettings,
3
+ IReflexExecutionSettings,
4
+ IReflexExecutionSettingsValues,
5
+ IReflexPriceList,
6
+ } from '../../models';
7
+ import type { IResponse } from '../response';
8
+
9
+ export interface IGetFunctionSettingsData {
10
+ /** The default of the function; null when none is set. */
11
+ default: IReflexExecutionSettings | null;
12
+ /** The override of each environment that has one. */
13
+ environments: IReflexExecutionSettings[];
14
+ /** What each environment of the application runs with. */
15
+ effective: IReflexEffectiveExecutionSettings[];
16
+ /** What applies when neither the environment nor the function sets anything. */
17
+ builtIn: IReflexExecutionSettingsValues;
18
+ /** The price list an execution is billed with, to estimate the cost of a setting. */
19
+ priceList: IReflexPriceList;
20
+ }
21
+ export type IGetFunctionSettingsResponse = IResponse<IGetFunctionSettingsData>;
22
+
23
+ export interface ISetFunctionDefaultSettingsData {
24
+ settings: IReflexExecutionSettings;
25
+ }
26
+ export type ISetFunctionDefaultSettingsResponse = IResponse<ISetFunctionDefaultSettingsData>;
27
+
28
+ export interface ISetFunctionEnvironmentSettingsData {
29
+ settings: IReflexExecutionSettings;
30
+ }
31
+ export type ISetFunctionEnvironmentSettingsResponse =
32
+ IResponse<ISetFunctionEnvironmentSettingsData>;
33
+
34
+ export type IRemoveFunctionEnvironmentSettingsData = Record<string, never>;
35
+ export type IRemoveFunctionEnvironmentSettingsResponse =
36
+ IResponse<IRemoveFunctionEnvironmentSettingsData>;
@@ -1,12 +1,12 @@
1
- import type { IReflexRun } from '../../models';
2
- import type { IResponse } from '../response';
3
-
4
- export interface ISimulateFunctionData {
5
- run: IReflexRun;
6
- }
7
- export type ISimulateFunctionResponse = IResponse<ISimulateFunctionData>;
8
-
9
- export interface IDryRunFunctionData {
10
- run: IReflexRun;
11
- }
12
- export type IDryRunFunctionResponse = IResponse<IDryRunFunctionData>;
1
+ import type { IReflexRun } from '../../models';
2
+ import type { IResponse } from '../response';
3
+
4
+ export interface ISimulateFunctionData {
5
+ run: IReflexRun;
6
+ }
7
+ export type ISimulateFunctionResponse = IResponse<ISimulateFunctionData>;
8
+
9
+ export interface IDryRunFunctionData {
10
+ run: IReflexRun;
11
+ }
12
+ export type IDryRunFunctionResponse = IResponse<IDryRunFunctionData>;
@@ -1,31 +1,31 @@
1
- import type {
2
- IReflexFunctionVersion,
3
- IReflexRunningVersionHeapPeaks,
4
- IReflexStepStats,
5
- } from '../../models';
6
- import type { IResponse } from '../response';
7
-
8
- export interface IListFunctionVersionData {
9
- versions: IReflexFunctionVersion[];
10
- }
11
- export type IListFunctionVersionResponse = IResponse<IListFunctionVersionData>;
12
-
13
- export interface IGetFunctionVersionData {
14
- version: IReflexFunctionVersion;
15
- }
16
- export type IGetFunctionVersionResponse = IResponse<IGetFunctionVersionData>;
17
-
18
- export interface IGetFunctionVersionStepStatsData {
19
- versionId: string;
20
- /** The environment asked for; null for every environment. */
21
- environmentId: string | null;
22
- /** The window the statistics cover: the retention of the live runs. */
23
- windowDays: number;
24
- /** Executions of the version in the window, interrupted and running ones left out. */
25
- executions: number;
26
- /** One entry per step that ran, most costly first. */
27
- steps: IReflexStepStats[];
28
- /** The p99 heap peak per step of the version running in `environmentId`; null without an environment or when nothing runs there. */
29
- runningVersion: IReflexRunningVersionHeapPeaks | null;
30
- }
31
- export type IGetFunctionVersionStepStatsResponse = IResponse<IGetFunctionVersionStepStatsData>;
1
+ import type {
2
+ IReflexFunctionVersion,
3
+ IReflexRunningVersionHeapPeaks,
4
+ IReflexStepStats,
5
+ } from '../../models';
6
+ import type { IResponse } from '../response';
7
+
8
+ export interface IListFunctionVersionData {
9
+ versions: IReflexFunctionVersion[];
10
+ }
11
+ export type IListFunctionVersionResponse = IResponse<IListFunctionVersionData>;
12
+
13
+ export interface IGetFunctionVersionData {
14
+ version: IReflexFunctionVersion;
15
+ }
16
+ export type IGetFunctionVersionResponse = IResponse<IGetFunctionVersionData>;
17
+
18
+ export interface IGetFunctionVersionStepStatsData {
19
+ versionId: string;
20
+ /** The environment asked for; null for every environment. */
21
+ environmentId: string | null;
22
+ /** The window the statistics cover: the retention of the live runs. */
23
+ windowDays: number;
24
+ /** Executions of the version in the window, interrupted and running ones left out. */
25
+ executions: number;
26
+ /** One entry per step that ran, most costly first. */
27
+ steps: IReflexStepStats[];
28
+ /** The p99 heap peak per step of the version running in `environmentId`; null without an environment or when nothing runs there. */
29
+ runningVersion: IReflexRunningVersionHeapPeaks | null;
30
+ }
31
+ export type IGetFunctionVersionStepStatsResponse = IResponse<IGetFunctionVersionStepStatsData>;
@@ -1,25 +1,25 @@
1
- import type { IReflexFunction } from '../../models';
2
- import type { IResponse } from '../response';
3
-
4
- export interface IListFunctionData {
5
- functions: IReflexFunction[];
6
- }
7
- export type IListFunctionResponse = IResponse<IListFunctionData>;
8
-
9
- export interface ICreateFunctionData {
10
- function: IReflexFunction;
11
- }
12
- export type ICreateFunctionResponse = IResponse<ICreateFunctionData>;
13
-
14
- export interface IGetFunctionData {
15
- function: IReflexFunction;
16
- }
17
- export type IGetFunctionResponse = IResponse<IGetFunctionData>;
18
-
19
- export interface IUpdateFunctionData {
20
- function: IReflexFunction;
21
- }
22
- export type IUpdateFunctionResponse = IResponse<IUpdateFunctionData>;
23
-
24
- export type IDeleteFunctionData = Record<string, never>;
25
- export type IDeleteFunctionResponse = IResponse<IDeleteFunctionData>;
1
+ import type { IReflexFunction } from '../../models';
2
+ import type { IResponse } from '../response';
3
+
4
+ export interface IListFunctionData {
5
+ functions: IReflexFunction[];
6
+ }
7
+ export type IListFunctionResponse = IResponse<IListFunctionData>;
8
+
9
+ export interface ICreateFunctionData {
10
+ function: IReflexFunction;
11
+ }
12
+ export type ICreateFunctionResponse = IResponse<ICreateFunctionData>;
13
+
14
+ export interface IGetFunctionData {
15
+ function: IReflexFunction;
16
+ }
17
+ export type IGetFunctionResponse = IResponse<IGetFunctionData>;
18
+
19
+ export interface IUpdateFunctionData {
20
+ function: IReflexFunction;
21
+ }
22
+ export type IUpdateFunctionResponse = IResponse<IUpdateFunctionData>;
23
+
24
+ export type IDeleteFunctionData = Record<string, never>;
25
+ export type IDeleteFunctionResponse = IResponse<IDeleteFunctionData>;
@@ -1,8 +1,8 @@
1
- import type { IReflexServiceConfigurationEntry } from '../../models';
2
- import type { IResponse } from '../response';
3
-
4
- export interface IListServiceConfigurationData {
5
- /** One entry per key and way of reading it, by key then `readAs`. */
6
- configuration: IReflexServiceConfigurationEntry[];
7
- }
8
- export type IListServiceConfigurationResponse = IResponse<IListServiceConfigurationData>;
1
+ import type { IReflexServiceConfigurationEntry } from '../../models';
2
+ import type { IResponse } from '../response';
3
+
4
+ export interface IListServiceConfigurationData {
5
+ /** One entry per key and way of reading it, by key then `readAs`. */
6
+ configuration: IReflexServiceConfigurationEntry[];
7
+ }
8
+ export type IListServiceConfigurationResponse = IResponse<IListServiceConfigurationData>;
@@ -1,32 +1,32 @@
1
- import type { IReflexServiceDeployment } from '../../models';
2
- import type { IResponse } from '../response';
3
-
4
- export interface IListServiceDeploymentData {
5
- /** The current deployment of each environment. */
6
- current: IReflexServiceDeployment[];
7
- /** Every gesture, newest first, one page of it. */
8
- history: IReflexServiceDeployment[];
9
- /** Gestures in the history, every page. */
10
- total: number;
11
- }
12
- export type IListServiceDeploymentResponse = IResponse<IListServiceDeploymentData>;
13
-
14
- export interface IGoLiveServiceData {
15
- deployment: IReflexServiceDeployment;
16
- }
17
- export type IGoLiveServiceResponse = IResponse<IGoLiveServiceData>;
18
-
19
- export interface IRollbackServiceData {
20
- deployment: IReflexServiceDeployment;
21
- }
22
- export type IRollbackServiceResponse = IResponse<IRollbackServiceData>;
23
-
24
- export interface IPauseServiceData {
25
- deployment: IReflexServiceDeployment;
26
- }
27
- export type IPauseServiceResponse = IResponse<IPauseServiceData>;
28
-
29
- export interface IResumeServiceData {
30
- deployment: IReflexServiceDeployment;
31
- }
32
- export type IResumeServiceResponse = IResponse<IResumeServiceData>;
1
+ import type { IReflexServiceDeployment } from '../../models';
2
+ import type { IResponse } from '../response';
3
+
4
+ export interface IListServiceDeploymentData {
5
+ /** The current deployment of each environment. */
6
+ current: IReflexServiceDeployment[];
7
+ /** Every gesture, newest first, one page of it. */
8
+ history: IReflexServiceDeployment[];
9
+ /** Gestures in the history, every page. */
10
+ total: number;
11
+ }
12
+ export type IListServiceDeploymentResponse = IResponse<IListServiceDeploymentData>;
13
+
14
+ export interface IGoLiveServiceData {
15
+ deployment: IReflexServiceDeployment;
16
+ }
17
+ export type IGoLiveServiceResponse = IResponse<IGoLiveServiceData>;
18
+
19
+ export interface IRollbackServiceData {
20
+ deployment: IReflexServiceDeployment;
21
+ }
22
+ export type IRollbackServiceResponse = IResponse<IRollbackServiceData>;
23
+
24
+ export interface IPauseServiceData {
25
+ deployment: IReflexServiceDeployment;
26
+ }
27
+ export type IPauseServiceResponse = IResponse<IPauseServiceData>;
28
+
29
+ export interface IResumeServiceData {
30
+ deployment: IReflexServiceDeployment;
31
+ }
32
+ export type IResumeServiceResponse = IResponse<IResumeServiceData>;
@@ -1,31 +1,31 @@
1
- import type { IReflexRoute } from '../../models';
2
- import type { IResponse } from '../response';
3
-
4
- export interface IListServiceRouteData {
5
- routes: IReflexRoute[];
6
- }
7
- export type IListServiceRouteResponse = IResponse<IListServiceRouteData>;
8
-
9
- export interface ICreateServiceRouteData {
10
- route: IReflexRoute;
11
- /** The API key (API_KEY) or the signing secret (SIGNATURE), in clear, ONCE. `null` for PUBLIC. */
12
- secret: string | null;
13
- }
14
- export type ICreateServiceRouteResponse = IResponse<ICreateServiceRouteData>;
15
-
16
- export interface IUpdateServiceRouteData {
17
- route: IReflexRoute;
18
- /** A new key or signing secret, in clear, ONCE, when the change of `accessMode` needs one; `null` otherwise. */
19
- secret: string | null;
20
- }
21
- export type IUpdateServiceRouteResponse = IResponse<IUpdateServiceRouteData>;
22
-
23
- export type IDeleteServiceRouteData = Record<string, never>;
24
- export type IDeleteServiceRouteResponse = IResponse<IDeleteServiceRouteData>;
25
-
26
- export interface IRotateServiceRouteData {
27
- route: IReflexRoute;
28
- /** The new key or signing secret, in clear, ONCE; the previous one stops working at once. */
29
- secret: string;
30
- }
31
- export type IRotateServiceRouteResponse = IResponse<IRotateServiceRouteData>;
1
+ import type { IReflexRoute } from '../../models';
2
+ import type { IResponse } from '../response';
3
+
4
+ export interface IListServiceRouteData {
5
+ routes: IReflexRoute[];
6
+ }
7
+ export type IListServiceRouteResponse = IResponse<IListServiceRouteData>;
8
+
9
+ export interface ICreateServiceRouteData {
10
+ route: IReflexRoute;
11
+ /** The API key (API_KEY) or the signing secret (SIGNATURE), in clear, ONCE. `null` for PUBLIC. */
12
+ secret: string | null;
13
+ }
14
+ export type ICreateServiceRouteResponse = IResponse<ICreateServiceRouteData>;
15
+
16
+ export interface IUpdateServiceRouteData {
17
+ route: IReflexRoute;
18
+ /** A new key or signing secret, in clear, ONCE, when the change of `accessMode` needs one; `null` otherwise. */
19
+ secret: string | null;
20
+ }
21
+ export type IUpdateServiceRouteResponse = IResponse<IUpdateServiceRouteData>;
22
+
23
+ export type IDeleteServiceRouteData = Record<string, never>;
24
+ export type IDeleteServiceRouteResponse = IResponse<IDeleteServiceRouteData>;
25
+
26
+ export interface IRotateServiceRouteData {
27
+ route: IReflexRoute;
28
+ /** The new key or signing secret, in clear, ONCE; the previous one stops working at once. */
29
+ secret: string;
30
+ }
31
+ export type IRotateServiceRouteResponse = IResponse<IRotateServiceRouteData>;
@@ -1,57 +1,57 @@
1
- import type {
2
- IReflexDelayedRun,
3
- IReflexRun,
4
- IReflexScheduledRun,
5
- IReflexServiceDeployment,
6
- IReflexTask,
7
- } from '../../models';
8
- import type { IResponse } from '../response';
9
-
10
- export interface IListServiceTaskData {
11
- /** By name. */
12
- tasks: IReflexTask[];
13
- }
14
- export type IListServiceTaskResponse = IResponse<IListServiceTaskData>;
15
-
16
- export interface ICreateServiceTaskData {
17
- task: IReflexTask;
18
- }
19
- export type ICreateServiceTaskResponse = IResponse<ICreateServiceTaskData>;
20
-
21
- export interface IUpdateServiceTaskData {
22
- task: IReflexTask;
23
- }
24
- export type IUpdateServiceTaskResponse = IResponse<IUpdateServiceTaskData>;
25
-
26
- export type IDeleteServiceTaskData = Record<string, never>;
27
- export type IDeleteServiceTaskResponse = IResponse<IDeleteServiceTaskData>;
28
-
29
- export interface ITestRunServiceTaskData {
30
- run: IReflexRun;
31
- }
32
- export type ITestRunServiceTaskResponse = IResponse<ITestRunServiceTaskData>;
33
-
34
- export interface IListServiceDelayedRunData {
35
- /** The first 100 pending delayed runs of the environment, soonest due first. */
36
- delayedRuns: IReflexDelayedRun[];
37
- /** Pending delayed runs of the environment, all of them. */
38
- total: number;
39
- }
40
- export type IListServiceDelayedRunResponse = IResponse<IListServiceDelayedRunData>;
41
-
42
- export type ICancelServiceDelayedRunData = Record<string, never>;
43
- export type ICancelServiceDelayedRunResponse = IResponse<ICancelServiceDelayedRunData>;
44
-
45
- export interface IRetryServiceScheduleSyncData {
46
- /** The current deployment of the environment, with the new state of the synchronization. */
47
- deployment: IReflexServiceDeployment;
48
- }
49
- export type IRetryServiceScheduleSyncResponse = IResponse<IRetryServiceScheduleSyncData>;
50
-
51
- export interface IListServiceTaskScheduledRunData {
52
- /** The runs of the task in the environment, every status, newest due first, paged by `limit`/`offset`. */
53
- scheduledRuns: IReflexScheduledRun[];
54
- /** Runs of the task in the environment, all of them (kept 7 days after their end). */
55
- total: number;
56
- }
57
- export type IListServiceTaskScheduledRunResponse = IResponse<IListServiceTaskScheduledRunData>;
1
+ import type {
2
+ IReflexDelayedRun,
3
+ IReflexRun,
4
+ IReflexScheduledRun,
5
+ IReflexServiceDeployment,
6
+ IReflexTask,
7
+ } from '../../models';
8
+ import type { IResponse } from '../response';
9
+
10
+ export interface IListServiceTaskData {
11
+ /** By name. */
12
+ tasks: IReflexTask[];
13
+ }
14
+ export type IListServiceTaskResponse = IResponse<IListServiceTaskData>;
15
+
16
+ export interface ICreateServiceTaskData {
17
+ task: IReflexTask;
18
+ }
19
+ export type ICreateServiceTaskResponse = IResponse<ICreateServiceTaskData>;
20
+
21
+ export interface IUpdateServiceTaskData {
22
+ task: IReflexTask;
23
+ }
24
+ export type IUpdateServiceTaskResponse = IResponse<IUpdateServiceTaskData>;
25
+
26
+ export type IDeleteServiceTaskData = Record<string, never>;
27
+ export type IDeleteServiceTaskResponse = IResponse<IDeleteServiceTaskData>;
28
+
29
+ export interface ITestRunServiceTaskData {
30
+ run: IReflexRun;
31
+ }
32
+ export type ITestRunServiceTaskResponse = IResponse<ITestRunServiceTaskData>;
33
+
34
+ export interface IListServiceDelayedRunData {
35
+ /** The first 100 pending delayed runs of the environment, soonest due first. */
36
+ delayedRuns: IReflexDelayedRun[];
37
+ /** Pending delayed runs of the environment, all of them. */
38
+ total: number;
39
+ }
40
+ export type IListServiceDelayedRunResponse = IResponse<IListServiceDelayedRunData>;
41
+
42
+ export type ICancelServiceDelayedRunData = Record<string, never>;
43
+ export type ICancelServiceDelayedRunResponse = IResponse<ICancelServiceDelayedRunData>;
44
+
45
+ export interface IRetryServiceScheduleSyncData {
46
+ /** The current deployment of the environment, with the new state of the synchronization. */
47
+ deployment: IReflexServiceDeployment;
48
+ }
49
+ export type IRetryServiceScheduleSyncResponse = IResponse<IRetryServiceScheduleSyncData>;
50
+
51
+ export interface IListServiceTaskScheduledRunData {
52
+ /** The runs of the task in the environment, every status, newest due first, paged by `limit`/`offset`. */
53
+ scheduledRuns: IReflexScheduledRun[];
54
+ /** Runs of the task in the environment, all of them (kept 7 days after their end). */
55
+ total: number;
56
+ }
57
+ export type IListServiceTaskScheduledRunResponse = IResponse<IListServiceTaskScheduledRunData>;