@abyss-project/reflex 6.0.4 → 6.1.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 (161) hide show
  1. package/dist/api/function-run.api.d.ts +2 -1
  2. package/dist/api/function-run.api.js +3 -1
  3. package/dist/api/function-run.api.js.map +1 -1
  4. package/dist/api/function-settings.api.d.ts +3 -1
  5. package/dist/api/function-settings.api.js +7 -1
  6. package/dist/api/function-settings.api.js.map +1 -1
  7. package/dist/index.d.ts +5 -0
  8. package/dist/index.js +5 -0
  9. package/dist/index.js.map +1 -1
  10. package/dist/types/enum/reflex-error-code.enum.d.ts +2 -1
  11. package/dist/types/enum/reflex-error-code.enum.js +1 -0
  12. package/dist/types/enum/reflex-error-code.enum.js.map +1 -1
  13. package/dist/types/interface/api/requests/application-run-settings.request.d.ts +1 -0
  14. package/dist/types/interface/api/requests/function-run.request.d.ts +8 -0
  15. package/dist/types/interface/api/requests/function-settings.request.d.ts +12 -0
  16. package/dist/types/interface/api/requests/service.request.d.ts +1 -0
  17. package/dist/types/interface/api/responses/function-run.response.d.ts +4 -0
  18. package/dist/types/interface/api/responses/function-settings.response.d.ts +5 -1
  19. package/dist/types/interface/models/index.d.ts +2 -0
  20. package/dist/types/interface/models/index.js +2 -0
  21. package/dist/types/interface/models/index.js.map +1 -1
  22. package/dist/types/interface/models/reflex-run-retention.model.d.ts +13 -0
  23. package/dist/types/interface/models/reflex-run-retention.model.js +8 -0
  24. package/dist/types/interface/models/reflex-run-retention.model.js.map +1 -0
  25. package/dist/types/interface/models/reflex-run-settings.model.d.ts +4 -0
  26. package/dist/types/interface/models/reflex-run.model.d.ts +5 -0
  27. package/dist/types/interface/models/reflex-service-deployment.model.d.ts +2 -2
  28. package/dist/types/interface/models/reflex-service-limits.model.d.ts +5 -2
  29. package/dist/types/interface/models/reflex-service.model.d.ts +1 -0
  30. package/dist/types/interface/models/reflex-storage-surplus.model.d.ts +11 -0
  31. package/dist/types/interface/models/reflex-storage-surplus.model.js +3 -0
  32. package/dist/types/interface/models/reflex-storage-surplus.model.js.map +1 -0
  33. package/package.json +10 -15
  34. package/src/api/application-run-settings.api.test.ts +62 -51
  35. package/src/api/function-run.api.ts +53 -38
  36. package/src/api/function-settings.api.ts +96 -74
  37. package/src/api/function.api.test.ts +55 -0
  38. package/src/api/index.ts +26 -26
  39. package/src/api/service-completion-webhook.api.test.ts +97 -97
  40. package/src/api/service-completion-webhook.api.ts +39 -39
  41. package/src/api/service-consumer.api.test.ts +104 -104
  42. package/src/api/service-consumer.api.ts +90 -90
  43. package/src/api/service-discord.api.test.ts +178 -178
  44. package/src/api/service-discord.api.ts +222 -222
  45. package/src/api/service-limits.api.test.ts +100 -100
  46. package/src/api/service-limits.api.ts +37 -37
  47. package/src/api/service-openapi.api.test.ts +52 -52
  48. package/src/api/service-openapi.api.ts +21 -21
  49. package/src/api/service-route.api.ts +74 -74
  50. package/src/api/service.api.test.ts +220 -215
  51. package/src/index.test.ts +104 -104
  52. package/src/index.ts +12 -0
  53. package/src/types/enum/access-grant-status.enum.ts +12 -12
  54. package/src/types/enum/access-kind.enum.ts +7 -7
  55. package/src/types/enum/access-request-status.enum.ts +11 -11
  56. package/src/types/enum/bot-event-block-reason.enum.ts +7 -7
  57. package/src/types/enum/configuration-read-as.enum.ts +5 -5
  58. package/src/types/enum/discord-activity-type.enum.ts +9 -9
  59. package/src/types/enum/discord-channel-type.enum.ts +11 -11
  60. package/src/types/enum/discord-component-kind.enum.ts +7 -7
  61. package/src/types/enum/discord-event-drop-reason.enum.ts +13 -13
  62. package/src/types/enum/discord-event-filter-name.enum.ts +11 -11
  63. package/src/types/enum/discord-event-status.enum.ts +13 -13
  64. package/src/types/enum/discord-event-type.enum.ts +7 -7
  65. package/src/types/enum/discord-gateway-failure-code.enum.ts +11 -11
  66. package/src/types/enum/discord-gateway-state.enum.ts +11 -11
  67. package/src/types/enum/discord-host-action.enum.ts +35 -35
  68. package/src/types/enum/discord-locale.enum.ts +35 -35
  69. package/src/types/enum/discord-option-type.enum.ts +12 -12
  70. package/src/types/enum/discord-presence-status.enum.ts +8 -8
  71. package/src/types/enum/discord-sync-status.enum.ts +6 -6
  72. package/src/types/enum/discord-token-state.enum.ts +11 -11
  73. package/src/types/enum/execution-mode.enum.ts +9 -9
  74. package/src/types/enum/execution-profile.enum.ts +20 -20
  75. package/src/types/enum/execution-settings-source.enum.ts +9 -9
  76. package/src/types/enum/health-status.enum.ts +4 -4
  77. package/src/types/enum/insights-period.enum.ts +8 -8
  78. package/src/types/enum/log-cap-mode.enum.ts +6 -6
  79. package/src/types/enum/log-drop-cause.enum.ts +8 -8
  80. package/src/types/enum/reflex-alert-metric.enum.ts +5 -5
  81. package/src/types/enum/reflex-alert-notification-state.enum.ts +6 -6
  82. package/src/types/enum/reflex-alert-scope.enum.ts +6 -6
  83. package/src/types/enum/reflex-error-code.enum.ts +5 -0
  84. package/src/types/enum/route-method.enum.ts +9 -9
  85. package/src/types/enum/run-log-level.enum.ts +6 -6
  86. package/src/types/enum/run-mode.enum.ts +11 -11
  87. package/src/types/enum/run-step-status.enum.ts +7 -7
  88. package/src/types/enum/schedule-sync-status.enum.ts +6 -6
  89. package/src/types/enum/scheduled-run-origin.enum.ts +5 -5
  90. package/src/types/enum/scheduled-run-status.enum.ts +17 -17
  91. package/src/types/enum/service-deployment-action.enum.ts +11 -11
  92. package/src/types/enum/service-deployment-status.enum.ts +5 -5
  93. package/src/types/enum/service-type.enum.ts +9 -9
  94. package/src/types/enum/service-version-change-kind.enum.ts +6 -6
  95. package/src/types/enum/trace-effect-type.enum.ts +12 -12
  96. package/src/types/enum/trigger-access-mode.enum.ts +12 -12
  97. package/src/types/enum/trigger-kind.enum.ts +8 -8
  98. package/src/types/enum/vault-value-source.enum.ts +12 -12
  99. package/src/types/enum/vault-visibility.enum.ts +5 -5
  100. package/src/types/index.ts +2 -2
  101. package/src/types/interface/api/index.ts +3 -3
  102. package/src/types/interface/api/requests/alert-rule.request.ts +53 -53
  103. package/src/types/interface/api/requests/application-insights.request.ts +18 -18
  104. package/src/types/interface/api/requests/application-run-settings.request.ts +13 -11
  105. package/src/types/interface/api/requests/function-access.request.ts +51 -51
  106. package/src/types/interface/api/requests/function-run.request.ts +10 -0
  107. package/src/types/interface/api/requests/function-settings.request.ts +50 -34
  108. package/src/types/interface/api/requests/function-template.request.ts +29 -29
  109. package/src/types/interface/api/requests/function-version.request.ts +38 -38
  110. package/src/types/interface/api/requests/function.request.ts +36 -36
  111. package/src/types/interface/api/requests/route-stats.request.ts +22 -22
  112. package/src/types/interface/api/requests/service-configuration.request.ts +4 -4
  113. package/src/types/interface/api/requests/service-deployment.request.ts +49 -49
  114. package/src/types/interface/api/requests/service-discord-event.request.ts +68 -68
  115. package/src/types/interface/api/requests/service-insights.request.ts +31 -31
  116. package/src/types/interface/api/requests/service-task.request.ts +80 -80
  117. package/src/types/interface/api/requests/service-version.request.ts +24 -24
  118. package/src/types/interface/api/requests/service.request.ts +48 -46
  119. package/src/types/interface/api/response.ts +4 -4
  120. package/src/types/interface/api/responses/alert-rule.response.ts +24 -24
  121. package/src/types/interface/api/responses/application-insights.response.ts +11 -11
  122. package/src/types/interface/api/responses/application-run-settings.response.ts +8 -8
  123. package/src/types/interface/api/responses/function-access.response.ts +45 -45
  124. package/src/types/interface/api/responses/function-run.response.ts +23 -18
  125. package/src/types/interface/api/responses/function-settings.response.ts +7 -0
  126. package/src/types/interface/api/responses/function-template.response.ts +21 -21
  127. package/src/types/interface/api/responses/function-version.response.ts +42 -42
  128. package/src/types/interface/api/responses/function.response.ts +25 -25
  129. package/src/types/interface/api/responses/route-stats.response.ts +15 -15
  130. package/src/types/interface/api/responses/service-configuration.response.ts +8 -8
  131. package/src/types/interface/api/responses/service-deployment.response.ts +32 -32
  132. package/src/types/interface/api/responses/service-discord-event.response.ts +24 -24
  133. package/src/types/interface/api/responses/service-insights.response.ts +11 -11
  134. package/src/types/interface/api/responses/service-task.response.ts +57 -57
  135. package/src/types/interface/api/responses/service-version.response.ts +112 -112
  136. package/src/types/interface/api/responses/service.response.ts +31 -31
  137. package/src/types/interface/health.response.ts +7 -7
  138. package/src/types/interface/index.ts +3 -3
  139. package/src/types/interface/models/index.ts +2 -0
  140. package/src/types/interface/models/reflex-access-grant.model.ts +14 -14
  141. package/src/types/interface/models/reflex-access-request.model.ts +15 -15
  142. package/src/types/interface/models/reflex-alert-rule.model.ts +56 -56
  143. package/src/types/interface/models/reflex-definition.model.ts +31 -31
  144. package/src/types/interface/models/reflex-discord-event-log.model.ts +58 -58
  145. package/src/types/interface/models/reflex-discord-event.model.ts +79 -79
  146. package/src/types/interface/models/reflex-discord.model.ts +196 -196
  147. package/src/types/interface/models/reflex-function-template.model.ts +18 -18
  148. package/src/types/interface/models/reflex-function-version.model.ts +19 -19
  149. package/src/types/interface/models/reflex-function.model.ts +30 -30
  150. package/src/types/interface/models/reflex-insights.model.ts +215 -215
  151. package/src/types/interface/models/reflex-price-list.model.ts +20 -20
  152. package/src/types/interface/models/reflex-run-retention.model.ts +24 -0
  153. package/src/types/interface/models/reflex-run-settings.model.ts +39 -28
  154. package/src/types/interface/models/reflex-run.model.ts +10 -0
  155. package/src/types/interface/models/reflex-service-configuration.model.ts +22 -22
  156. package/src/types/interface/models/reflex-service-deployment.model.ts +48 -46
  157. package/src/types/interface/models/reflex-service-limits.model.ts +17 -8
  158. package/src/types/interface/models/reflex-service.model.ts +47 -45
  159. package/src/types/interface/models/reflex-step-stats.model.ts +35 -35
  160. package/src/types/interface/models/reflex-storage-surplus.model.ts +23 -0
  161. package/src/types/interface/models/reflex-task.model.ts +97 -97
@@ -1,51 +1,51 @@
1
- import type { IReflexAccessDeclaration } from '../../models';
2
-
3
- export interface IListFunctionAccessParams {
4
- applicationId: string;
5
- functionId: string;
6
- }
7
-
8
- export interface IGrantFunctionAccessParams {
9
- applicationId: string;
10
- functionId: string;
11
- }
12
- /**
13
- * The declaration must be one the draft makes. The member who grants must hold the right the access
14
- * needs: REFLEX_FUNCTION_UPDATE for hosts, STORAGE_STORE_READ (`store.get`) or STORAGE_STORE_UPDATE
15
- * (`store.set`, `store.increment`) for the Store, SECRET_READ on the project for `secret.get`.
16
- */
17
- export interface IGrantFunctionAccessBody {
18
- declaration: IReflexAccessDeclaration;
19
- }
20
-
21
- export interface IRevokeFunctionAccessParams {
22
- applicationId: string;
23
- functionId: string;
24
- grantId: string;
25
- }
26
-
27
- export interface IGrantAllFunctionAccessParams {
28
- applicationId: string;
29
- functionId: string;
30
- }
31
-
32
- export interface IRequestFunctionAccessParams {
33
- applicationId: string;
34
- functionId: string;
35
- }
36
- /** The declaration must be one the saved draft makes (`409 ACCESS_NOT_DECLARED` otherwise). */
37
- export interface IRequestFunctionAccessBody {
38
- declaration: IReflexAccessDeclaration;
39
- }
40
-
41
- export interface IGrantFunctionAccessRequestParams {
42
- applicationId: string;
43
- functionId: string;
44
- requestId: string;
45
- }
46
-
47
- export interface IDismissFunctionAccessRequestParams {
48
- applicationId: string;
49
- functionId: string;
50
- requestId: string;
51
- }
1
+ import type { IReflexAccessDeclaration } from '../../models';
2
+
3
+ export interface IListFunctionAccessParams {
4
+ applicationId: string;
5
+ functionId: string;
6
+ }
7
+
8
+ export interface IGrantFunctionAccessParams {
9
+ applicationId: string;
10
+ functionId: string;
11
+ }
12
+ /**
13
+ * The declaration must be one the draft makes. The member who grants must hold the right the access
14
+ * needs: REFLEX_FUNCTION_UPDATE for hosts, STORAGE_STORE_READ (`store.get`) or STORAGE_STORE_UPDATE
15
+ * (`store.set`, `store.increment`) for the Store, SECRET_READ on the project for `secret.get`.
16
+ */
17
+ export interface IGrantFunctionAccessBody {
18
+ declaration: IReflexAccessDeclaration;
19
+ }
20
+
21
+ export interface IRevokeFunctionAccessParams {
22
+ applicationId: string;
23
+ functionId: string;
24
+ grantId: string;
25
+ }
26
+
27
+ export interface IGrantAllFunctionAccessParams {
28
+ applicationId: string;
29
+ functionId: string;
30
+ }
31
+
32
+ export interface IRequestFunctionAccessParams {
33
+ applicationId: string;
34
+ functionId: string;
35
+ }
36
+ /** The declaration must be one the saved draft makes (`409 ACCESS_NOT_DECLARED` otherwise). */
37
+ export interface IRequestFunctionAccessBody {
38
+ declaration: IReflexAccessDeclaration;
39
+ }
40
+
41
+ export interface IGrantFunctionAccessRequestParams {
42
+ applicationId: string;
43
+ functionId: string;
44
+ requestId: string;
45
+ }
46
+
47
+ export interface IDismissFunctionAccessRequestParams {
48
+ applicationId: string;
49
+ functionId: string;
50
+ requestId: string;
51
+ }
@@ -30,3 +30,13 @@ export interface IGetFunctionRunStateParams {
30
30
  /** The `executionId` an async route answered with: the id of the live run. */
31
31
  runId: string;
32
32
  }
33
+
34
+ export interface ISetFunctionRunFavoriteParams {
35
+ applicationId: string;
36
+ functionId: string;
37
+ runId: string;
38
+ }
39
+ export interface ISetFunctionRunFavoriteBody {
40
+ /** A favorite run is never purged. */
41
+ isFavorite: boolean;
42
+ }
@@ -1,34 +1,50 @@
1
- import type { IReflexExecutionSettingsValues, IReflexFunctionLogCap } from '../../models';
2
-
3
- export interface IGetFunctionSettingsParams {
4
- applicationId: string;
5
- functionId: string;
6
- }
7
-
8
- export interface ISetFunctionDefaultSettingsParams {
9
- applicationId: string;
10
- functionId: string;
11
- }
12
- /** Every value is required: a row of settings is whole. */
13
- export type ISetFunctionDefaultSettingsBody = IReflexExecutionSettingsValues;
14
-
15
- export interface ISetFunctionEnvironmentSettingsParams {
16
- applicationId: string;
17
- functionId: string;
18
- /** An environment of the application (abyss-main's id). */
19
- environmentId: string;
20
- }
21
- export type ISetFunctionEnvironmentSettingsBody = IReflexExecutionSettingsValues;
22
-
23
- export interface IRemoveFunctionEnvironmentSettingsParams {
24
- applicationId: string;
25
- functionId: string;
26
- environmentId: string;
27
- }
28
-
29
- export interface ISetFunctionLogCapParams {
30
- applicationId: string;
31
- functionId: string;
32
- }
33
- /** `lines` is required, 1 to 10 000, when `mode` is LIMIT, and forbidden otherwise. */
34
- export type ISetFunctionLogCapBody = IReflexFunctionLogCap;
1
+ import type { IReflexExecutionSettingsValues, IReflexFunctionLogCap } from '../../models';
2
+
3
+ export interface IGetFunctionSettingsParams {
4
+ applicationId: string;
5
+ functionId: string;
6
+ }
7
+
8
+ export interface ISetFunctionDefaultSettingsParams {
9
+ applicationId: string;
10
+ functionId: string;
11
+ }
12
+ /** Every value is required: a row of settings is whole. */
13
+ export type ISetFunctionDefaultSettingsBody = IReflexExecutionSettingsValues;
14
+
15
+ export interface ISetFunctionEnvironmentSettingsParams {
16
+ applicationId: string;
17
+ functionId: string;
18
+ /** An environment of the application (abyss-main's id). */
19
+ environmentId: string;
20
+ }
21
+ export type ISetFunctionEnvironmentSettingsBody = IReflexExecutionSettingsValues;
22
+
23
+ export interface IRemoveFunctionEnvironmentSettingsParams {
24
+ applicationId: string;
25
+ functionId: string;
26
+ environmentId: string;
27
+ }
28
+
29
+ export interface ISetFunctionLogCapParams {
30
+ applicationId: string;
31
+ functionId: string;
32
+ }
33
+ /** `lines` is required, 1 to 10 000, when `mode` is LIMIT, and forbidden otherwise. */
34
+ export type ISetFunctionLogCapBody = IReflexFunctionLogCap;
35
+
36
+ export interface IGetFunctionRunRetentionParams {
37
+ applicationId: string;
38
+ functionId: string;
39
+ }
40
+
41
+ export interface ISetFunctionRunRetentionParams {
42
+ applicationId: string;
43
+ functionId: string;
44
+ }
45
+ export interface ISetFunctionRunRetentionBody {
46
+ /** One of `REFLEX_RUN_RETENTION_TIER_DAYS`; null to follow the application. Left alone when absent. */
47
+ runRetentionDays?: number | null;
48
+ /** `REFLEX_VERSIONS_KEPT.min` to `REFLEX_VERSIONS_KEPT.max`. Left alone when absent. */
49
+ versionsKept?: number;
50
+ }
@@ -1,29 +1,29 @@
1
- export interface IListFunctionTemplateParams {
2
- applicationId: string;
3
- }
4
-
5
- export interface ICreateFunctionTemplateParams {
6
- applicationId: string;
7
- }
8
- export interface ICreateFunctionTemplateBody {
9
- /** Unique within the application, 1 to 100 characters. */
10
- name: string;
11
- /** 500 characters at most. */
12
- description?: string;
13
- /** The function whose saved draft becomes the template. */
14
- functionId: string;
15
- }
16
-
17
- export interface IUpdateFunctionTemplateParams {
18
- applicationId: string;
19
- templateId: string;
20
- }
21
- export interface IUpdateFunctionTemplateBody {
22
- name?: string;
23
- description?: string;
24
- }
25
-
26
- export interface IDeleteFunctionTemplateParams {
27
- applicationId: string;
28
- templateId: string;
29
- }
1
+ export interface IListFunctionTemplateParams {
2
+ applicationId: string;
3
+ }
4
+
5
+ export interface ICreateFunctionTemplateParams {
6
+ applicationId: string;
7
+ }
8
+ export interface ICreateFunctionTemplateBody {
9
+ /** Unique within the application, 1 to 100 characters. */
10
+ name: string;
11
+ /** 500 characters at most. */
12
+ description?: string;
13
+ /** The function whose saved draft becomes the template. */
14
+ functionId: string;
15
+ }
16
+
17
+ export interface IUpdateFunctionTemplateParams {
18
+ applicationId: string;
19
+ templateId: string;
20
+ }
21
+ export interface IUpdateFunctionTemplateBody {
22
+ name?: string;
23
+ description?: string;
24
+ }
25
+
26
+ export interface IDeleteFunctionTemplateParams {
27
+ applicationId: string;
28
+ templateId: string;
29
+ }
@@ -1,38 +1,38 @@
1
- export interface IListFunctionVersionParams {
2
- applicationId: string;
3
- functionId: string;
4
- }
5
- export interface IListFunctionVersionQuery {
6
- /** 1 by default. */
7
- page?: number;
8
- /** 1 to 50. */
9
- limit?: number;
10
- /** Only the version of this number. */
11
- number?: number;
12
- /** Only the versions published by this user. */
13
- publishedByUserId?: string;
14
- /** true: only versions a Service version put in service; false: only the others. */
15
- deployed?: boolean;
16
- }
17
-
18
- export interface IGetFunctionVersionParams {
19
- applicationId: string;
20
- functionId: string;
21
- versionId: string;
22
- }
23
-
24
- export interface IGetFunctionVersionStepStatsParams {
25
- applicationId: string;
26
- functionId: string;
27
- versionId: string;
28
- }
29
- export interface IGetFunctionVersionStepStatsQuery {
30
- /** Only the executions of this environment; every environment when absent. */
31
- environmentId?: string;
32
- }
33
-
34
- export interface IOpenFunctionVersionParams {
35
- applicationId: string;
36
- functionId: string;
37
- versionId: string;
38
- }
1
+ export interface IListFunctionVersionParams {
2
+ applicationId: string;
3
+ functionId: string;
4
+ }
5
+ export interface IListFunctionVersionQuery {
6
+ /** 1 by default. */
7
+ page?: number;
8
+ /** 1 to 50. */
9
+ limit?: number;
10
+ /** Only the version of this number. */
11
+ number?: number;
12
+ /** Only the versions published by this user. */
13
+ publishedByUserId?: string;
14
+ /** true: only versions a Service version put in service; false: only the others. */
15
+ deployed?: boolean;
16
+ }
17
+
18
+ export interface IGetFunctionVersionParams {
19
+ applicationId: string;
20
+ functionId: string;
21
+ versionId: string;
22
+ }
23
+
24
+ export interface IGetFunctionVersionStepStatsParams {
25
+ applicationId: string;
26
+ functionId: string;
27
+ versionId: string;
28
+ }
29
+ export interface IGetFunctionVersionStepStatsQuery {
30
+ /** Only the executions of this environment; every environment when absent. */
31
+ environmentId?: string;
32
+ }
33
+
34
+ export interface IOpenFunctionVersionParams {
35
+ applicationId: string;
36
+ functionId: string;
37
+ versionId: string;
38
+ }
@@ -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
+ }