@abyss-project/reflex 6.3.0 → 6.5.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.
- package/.eslintrc.js +32 -32
- package/README.md +15 -15
- package/dist/api/code-environment.api.d.ts +2 -0
- package/dist/api/code-environment.api.js +7 -0
- package/dist/api/code-environment.api.js.map +1 -0
- package/dist/api/function-run.api.d.ts +2 -1
- package/dist/api/function-run.api.js +3 -1
- package/dist/api/function-run.api.js.map +1 -1
- package/dist/api/function-settings.api.d.ts +3 -1
- package/dist/api/function-settings.api.js +7 -1
- package/dist/api/function-settings.api.js.map +1 -1
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +3 -0
- package/dist/api/index.js.map +1 -1
- package/dist/api/service-template.api.d.ts +2 -0
- package/dist/api/service-template.api.js +7 -0
- package/dist/api/service-template.api.js.map +1 -0
- package/dist/api/storage-surplus.admin.api.d.ts +5 -0
- package/dist/api/storage-surplus.admin.api.js +17 -0
- package/dist/api/storage-surplus.admin.api.js.map +1 -0
- package/dist/code/index.d.ts +1 -0
- package/dist/code/index.js +18 -0
- package/dist/code/index.js.map +1 -0
- package/dist/code/reflex-code-declarations.d.ts +1 -0
- package/dist/code/reflex-code-declarations.js +644 -0
- package/dist/code/reflex-code-declarations.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +28 -1
- package/dist/index.js.map +1 -1
- package/dist/types/enum/index.d.ts +4 -0
- package/dist/types/enum/index.js +4 -0
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/reflex-code-diagnostic-category.enum.d.ts +6 -0
- package/dist/types/enum/reflex-code-diagnostic-category.enum.js +11 -0
- package/dist/types/enum/reflex-code-diagnostic-category.enum.js.map +1 -0
- package/dist/types/enum/reflex-error-code.enum.d.ts +5 -1
- package/dist/types/enum/reflex-error-code.enum.js +4 -0
- package/dist/types/enum/reflex-error-code.enum.js.map +1 -1
- package/dist/types/enum/service-template-follow-up-kind.enum.d.ts +10 -0
- package/dist/types/enum/service-template-follow-up-kind.enum.js +15 -0
- package/dist/types/enum/service-template-follow-up-kind.enum.js.map +1 -0
- package/dist/types/enum/service-template-id.enum.d.ts +10 -0
- package/dist/types/enum/service-template-id.enum.js +15 -0
- package/dist/types/enum/service-template-id.enum.js.map +1 -0
- package/dist/types/enum/service-template-parameter-kind.enum.d.ts +4 -0
- package/dist/types/enum/service-template-parameter-kind.enum.js +9 -0
- package/dist/types/enum/service-template-parameter-kind.enum.js.map +1 -0
- package/dist/types/enum/trigger-access-mode.enum.d.ts +2 -1
- package/dist/types/enum/trigger-access-mode.enum.js +1 -0
- package/dist/types/enum/trigger-access-mode.enum.js.map +1 -1
- package/dist/types/interface/api/requests/application-run-settings.request.d.ts +1 -0
- package/dist/types/interface/api/requests/code-environment.request.d.ts +3 -0
- package/dist/types/interface/api/requests/code-environment.request.js +3 -0
- package/dist/types/interface/api/requests/code-environment.request.js.map +1 -0
- package/dist/types/interface/api/requests/function-run.request.d.ts +8 -0
- package/dist/types/interface/api/requests/function-settings.request.d.ts +12 -0
- package/dist/types/interface/api/requests/index.d.ts +3 -0
- package/dist/types/interface/api/requests/index.js +3 -0
- package/dist/types/interface/api/requests/index.js.map +1 -1
- package/dist/types/interface/api/requests/service-template.request.d.ts +3 -0
- package/dist/types/interface/api/requests/service-template.request.js +3 -0
- package/dist/types/interface/api/requests/service-template.request.js.map +1 -0
- package/dist/types/interface/api/requests/service.request.d.ts +3 -1
- package/dist/types/interface/api/requests/storage-surplus.admin.request.d.ts +8 -0
- package/dist/types/interface/api/requests/storage-surplus.admin.request.js +3 -0
- package/dist/types/interface/api/requests/storage-surplus.admin.request.js.map +1 -0
- package/dist/types/interface/api/responses/code-environment.response.d.ts +6 -0
- package/dist/types/interface/api/responses/code-environment.response.js +3 -0
- package/dist/types/interface/api/responses/code-environment.response.js.map +1 -0
- package/dist/types/interface/api/responses/function-run.response.d.ts +4 -0
- package/dist/types/interface/api/responses/function-settings.response.d.ts +5 -1
- package/dist/types/interface/api/responses/index.d.ts +3 -0
- package/dist/types/interface/api/responses/index.js +3 -0
- package/dist/types/interface/api/responses/index.js.map +1 -1
- package/dist/types/interface/api/responses/service-template.response.d.ts +6 -0
- package/dist/types/interface/api/responses/service-template.response.js +3 -0
- package/dist/types/interface/api/responses/service-template.response.js.map +1 -0
- package/dist/types/interface/api/responses/storage-surplus.admin.response.d.ts +8 -0
- package/dist/types/interface/api/responses/storage-surplus.admin.response.js +3 -0
- package/dist/types/interface/api/responses/storage-surplus.admin.response.js.map +1 -0
- package/dist/types/interface/models/index.d.ts +5 -0
- package/dist/types/interface/models/index.js +5 -0
- package/dist/types/interface/models/index.js.map +1 -1
- package/dist/types/interface/models/reflex-code-diagnostic.model.d.ts +10 -0
- package/dist/types/interface/models/reflex-code-diagnostic.model.js +5 -0
- package/dist/types/interface/models/reflex-code-diagnostic.model.js.map +1 -0
- package/dist/types/interface/models/reflex-code-environment.model.d.ts +9 -0
- package/dist/types/interface/models/reflex-code-environment.model.js +3 -0
- package/dist/types/interface/models/reflex-code-environment.model.js.map +1 -0
- package/dist/types/interface/models/reflex-run-retention.model.d.ts +13 -0
- package/dist/types/interface/models/reflex-run-retention.model.js +8 -0
- package/dist/types/interface/models/reflex-run-retention.model.js.map +1 -0
- package/dist/types/interface/models/reflex-run-settings.model.d.ts +4 -0
- package/dist/types/interface/models/reflex-run.model.d.ts +5 -0
- package/dist/types/interface/models/reflex-service-deployment.model.d.ts +2 -2
- package/dist/types/interface/models/reflex-service-template.model.d.ts +33 -0
- package/dist/types/interface/models/reflex-service-template.model.js +3 -0
- package/dist/types/interface/models/reflex-service-template.model.js.map +1 -0
- package/dist/types/interface/models/reflex-service.model.d.ts +1 -0
- package/dist/types/interface/models/reflex-storage-surplus.model.d.ts +11 -0
- package/dist/types/interface/models/reflex-storage-surplus.model.js +3 -0
- package/dist/types/interface/models/reflex-storage-surplus.model.js.map +1 -0
- package/jest.config.ts +11 -11
- package/package.json +1 -1
- package/src/api/alert-rule.api.test.ts +72 -72
- package/src/api/alert-rule.api.ts +57 -57
- package/src/api/application-insights.api.test.ts +42 -42
- package/src/api/application-insights.api.ts +38 -38
- package/src/api/application-run-settings.api.test.ts +62 -51
- package/src/api/application-run-settings.api.ts +30 -30
- package/src/api/code-environment.api.ts +15 -0
- package/src/api/function-access.api.ts +87 -87
- package/src/api/function-insights.api.test.ts +27 -27
- package/src/api/function-insights.api.ts +18 -18
- package/src/api/function-run.api.ts +53 -38
- package/src/api/function-settings.api.ts +96 -74
- package/src/api/function-template.api.test.ts +72 -72
- package/src/api/function-template.api.ts +52 -52
- package/src/api/function-test.api.ts +34 -34
- package/src/api/function-version.api.ts +66 -66
- package/src/api/function.api.test.ts +346 -291
- package/src/api/function.api.ts +62 -62
- package/src/api/health.api.ts +10 -10
- package/src/api/index.ts +29 -26
- package/src/api/route-stats.api.test.ts +45 -45
- package/src/api/route-stats.api.ts +36 -36
- package/src/api/service-completion-webhook.api.test.ts +97 -97
- package/src/api/service-completion-webhook.api.ts +39 -39
- package/src/api/service-configuration.api.ts +16 -16
- package/src/api/service-consumer.api.test.ts +104 -104
- package/src/api/service-consumer.api.ts +90 -90
- package/src/api/service-deployment.api.ts +79 -79
- package/src/api/service-discord-event.api.test.ts +106 -106
- package/src/api/service-discord-event.api.ts +78 -78
- package/src/api/service-discord.api.test.ts +178 -178
- package/src/api/service-discord.api.ts +222 -222
- package/src/api/service-insights.api.test.ts +36 -36
- package/src/api/service-insights.api.ts +42 -42
- package/src/api/service-limits.api.test.ts +100 -100
- package/src/api/service-limits.api.ts +37 -37
- package/src/api/service-openapi.api.test.ts +52 -52
- package/src/api/service-openapi.api.ts +21 -21
- package/src/api/service-route.api.ts +2 -2
- package/src/api/service-task.api.test.ts +140 -140
- package/src/api/service-task.api.ts +141 -141
- package/src/api/service-template.api.test.ts +41 -0
- package/src/api/service-template.api.ts +12 -0
- package/src/api/service-version.api.ts +54 -54
- package/src/api/service.api.test.ts +220 -215
- package/src/api/service.api.ts +55 -55
- package/src/api/storage-surplus.admin.api.test.ts +66 -0
- package/src/api/storage-surplus.admin.api.ts +45 -0
- package/src/code/index.ts +1 -0
- package/src/code/reflex-code-declarations.ts +646 -0
- package/src/discord/discord-event-filter-cases.ts +261 -261
- package/src/discord/discord-event-filters.test.ts +91 -91
- package/src/discord/discord-event-filters.ts +95 -95
- package/src/discord/discord-event-intents.test.ts +112 -112
- package/src/discord/discord-event-intents.ts +55 -55
- package/src/discord/index.ts +3 -3
- package/src/index.test.ts +104 -104
- package/src/index.ts +497 -438
- package/src/insights/index.ts +1 -1
- package/src/insights/percentiles.test.ts +75 -75
- package/src/insights/percentiles.ts +37 -37
- package/src/types/enum/access-grant-status.enum.ts +12 -12
- package/src/types/enum/access-kind.enum.ts +7 -7
- package/src/types/enum/access-request-status.enum.ts +11 -11
- package/src/types/enum/bot-event-block-reason.enum.ts +7 -7
- package/src/types/enum/completion-delivery-status.enum.ts +9 -9
- package/src/types/enum/configuration-read-as.enum.ts +5 -5
- package/src/types/enum/discord-activity-type.enum.ts +9 -9
- package/src/types/enum/discord-channel-type.enum.ts +11 -11
- package/src/types/enum/discord-component-kind.enum.ts +7 -7
- package/src/types/enum/discord-event-drop-reason.enum.ts +13 -13
- package/src/types/enum/discord-event-filter-name.enum.ts +11 -11
- package/src/types/enum/discord-event-status.enum.ts +13 -13
- package/src/types/enum/discord-event-type.enum.ts +7 -7
- package/src/types/enum/discord-gateway-failure-code.enum.ts +11 -11
- package/src/types/enum/discord-gateway-state.enum.ts +11 -11
- package/src/types/enum/discord-host-action.enum.ts +37 -37
- package/src/types/enum/discord-locale.enum.ts +35 -35
- package/src/types/enum/discord-option-type.enum.ts +12 -12
- package/src/types/enum/discord-presence-status.enum.ts +8 -8
- package/src/types/enum/discord-sync-status.enum.ts +6 -6
- package/src/types/enum/discord-token-state.enum.ts +11 -11
- package/src/types/enum/execution-mode.enum.ts +9 -9
- package/src/types/enum/execution-profile.enum.ts +20 -20
- package/src/types/enum/execution-settings-source.enum.ts +9 -9
- package/src/types/enum/health-status.enum.ts +4 -4
- package/src/types/enum/index.ts +55 -51
- package/src/types/enum/insights-period.enum.ts +8 -8
- package/src/types/enum/log-cap-mode.enum.ts +6 -6
- package/src/types/enum/log-drop-cause.enum.ts +8 -8
- package/src/types/enum/reflex-alert-metric.enum.ts +5 -5
- package/src/types/enum/reflex-alert-notification-state.enum.ts +6 -6
- package/src/types/enum/reflex-alert-scope.enum.ts +6 -6
- package/src/types/enum/reflex-code-diagnostic-category.enum.ts +11 -0
- package/src/types/enum/reflex-error-code.enum.ts +93 -72
- package/src/types/enum/route-method.enum.ts +9 -9
- package/src/types/enum/run-log-level.enum.ts +6 -6
- package/src/types/enum/run-mode.enum.ts +11 -11
- package/src/types/enum/run-status.enum.ts +16 -16
- package/src/types/enum/run-step-status.enum.ts +7 -7
- package/src/types/enum/schedule-sync-status.enum.ts +6 -6
- package/src/types/enum/scheduled-run-failure-code.enum.ts +14 -14
- package/src/types/enum/scheduled-run-origin.enum.ts +5 -5
- package/src/types/enum/scheduled-run-status.enum.ts +17 -17
- package/src/types/enum/service-block-reason.enum.ts +13 -13
- package/src/types/enum/service-deployment-action.enum.ts +11 -11
- package/src/types/enum/service-deployment-status.enum.ts +5 -5
- package/src/types/enum/service-template-follow-up-kind.enum.ts +19 -0
- package/src/types/enum/service-template-id.enum.ts +19 -0
- package/src/types/enum/service-template-parameter-kind.enum.ts +7 -0
- package/src/types/enum/service-type.enum.ts +9 -9
- package/src/types/enum/service-version-change-kind.enum.ts +6 -6
- package/src/types/enum/trace-effect-type.enum.ts +12 -12
- package/src/types/enum/trigger-access-mode.enum.ts +4 -0
- package/src/types/enum/trigger-kind.enum.ts +8 -8
- package/src/types/enum/vault-value-source.enum.ts +12 -12
- package/src/types/enum/vault-visibility.enum.ts +5 -5
- package/src/types/index.ts +2 -2
- package/src/types/interface/api/index.ts +3 -3
- package/src/types/interface/api/requests/alert-rule.request.ts +53 -53
- package/src/types/interface/api/requests/application-insights.request.ts +18 -18
- package/src/types/interface/api/requests/application-run-settings.request.ts +13 -11
- package/src/types/interface/api/requests/code-environment.request.ts +3 -0
- package/src/types/interface/api/requests/function-access.request.ts +51 -51
- package/src/types/interface/api/requests/function-run.request.ts +42 -32
- package/src/types/interface/api/requests/function-settings.request.ts +50 -34
- package/src/types/interface/api/requests/function-template.request.ts +29 -29
- package/src/types/interface/api/requests/function-test.request.ts +44 -44
- package/src/types/interface/api/requests/function-version.request.ts +38 -38
- package/src/types/interface/api/requests/function.request.ts +36 -36
- package/src/types/interface/api/requests/index.ts +27 -24
- package/src/types/interface/api/requests/route-stats.request.ts +22 -22
- package/src/types/interface/api/requests/service-completion-webhook.request.ts +11 -11
- package/src/types/interface/api/requests/service-configuration.request.ts +4 -4
- package/src/types/interface/api/requests/service-consumer.request.ts +51 -51
- package/src/types/interface/api/requests/service-deployment.request.ts +49 -49
- package/src/types/interface/api/requests/service-discord-event.request.ts +68 -68
- package/src/types/interface/api/requests/service-discord.request.ts +155 -155
- package/src/types/interface/api/requests/service-insights.request.ts +31 -31
- package/src/types/interface/api/requests/service-limits.request.ts +28 -28
- package/src/types/interface/api/requests/service-openapi.request.ts +10 -10
- package/src/types/interface/api/requests/service-route.request.ts +52 -52
- package/src/types/interface/api/requests/service-task.request.ts +80 -80
- package/src/types/interface/api/requests/service-template.request.ts +3 -0
- package/src/types/interface/api/requests/service-version.request.ts +24 -24
- package/src/types/interface/api/requests/service.request.ts +54 -46
- package/src/types/interface/api/requests/storage-surplus.admin.request.ts +12 -0
- package/src/types/interface/api/response.ts +4 -4
- package/src/types/interface/api/responses/alert-rule.response.ts +24 -24
- package/src/types/interface/api/responses/application-insights.response.ts +11 -11
- package/src/types/interface/api/responses/application-run-settings.response.ts +8 -8
- package/src/types/interface/api/responses/code-environment.response.ts +7 -0
- package/src/types/interface/api/responses/function-access.response.ts +45 -45
- package/src/types/interface/api/responses/function-run.response.ts +23 -18
- package/src/types/interface/api/responses/function-settings.response.ts +57 -50
- package/src/types/interface/api/responses/function-template.response.ts +21 -21
- package/src/types/interface/api/responses/function-test.response.ts +19 -19
- package/src/types/interface/api/responses/function-version.response.ts +42 -42
- package/src/types/interface/api/responses/function.response.ts +25 -25
- package/src/types/interface/api/responses/index.ts +27 -24
- package/src/types/interface/api/responses/route-stats.response.ts +15 -15
- package/src/types/interface/api/responses/service-completion-webhook.response.ts +13 -13
- package/src/types/interface/api/responses/service-configuration.response.ts +8 -8
- package/src/types/interface/api/responses/service-consumer.response.ts +33 -33
- package/src/types/interface/api/responses/service-deployment.response.ts +32 -32
- package/src/types/interface/api/responses/service-discord-event.response.ts +24 -24
- package/src/types/interface/api/responses/service-discord.response.ts +110 -110
- package/src/types/interface/api/responses/service-insights.response.ts +11 -11
- package/src/types/interface/api/responses/service-limits.response.ts +13 -13
- package/src/types/interface/api/responses/service-openapi.response.ts +7 -7
- package/src/types/interface/api/responses/service-route.response.ts +2 -2
- package/src/types/interface/api/responses/service-task.response.ts +57 -57
- package/src/types/interface/api/responses/service-template.response.ts +8 -0
- package/src/types/interface/api/responses/service-version.response.ts +112 -112
- package/src/types/interface/api/responses/service.response.ts +31 -31
- package/src/types/interface/api/responses/storage-surplus.admin.response.ts +10 -0
- package/src/types/interface/health.response.ts +7 -7
- package/src/types/interface/index.ts +3 -3
- package/src/types/interface/models/index.ts +32 -27
- package/src/types/interface/models/reflex-access-grant.model.ts +14 -14
- package/src/types/interface/models/reflex-access-request.model.ts +15 -15
- package/src/types/interface/models/reflex-alert-rule.model.ts +56 -56
- package/src/types/interface/models/reflex-bot-limits.model.ts +53 -53
- package/src/types/interface/models/reflex-code-diagnostic.model.ts +15 -0
- package/src/types/interface/models/reflex-code-environment.model.ts +17 -0
- package/src/types/interface/models/reflex-completion-webhook.model.ts +111 -111
- package/src/types/interface/models/reflex-consumer.model.ts +50 -50
- package/src/types/interface/models/reflex-definition.model.ts +31 -31
- package/src/types/interface/models/reflex-discord-event-log.model.ts +58 -58
- package/src/types/interface/models/reflex-discord-event.model.ts +79 -79
- package/src/types/interface/models/reflex-discord.model.ts +208 -208
- package/src/types/interface/models/reflex-execution-settings.model.ts +57 -57
- package/src/types/interface/models/reflex-function-template.model.ts +18 -18
- package/src/types/interface/models/reflex-function-version.model.ts +19 -19
- package/src/types/interface/models/reflex-function.model.ts +30 -30
- package/src/types/interface/models/reflex-insights.model.ts +215 -215
- package/src/types/interface/models/reflex-price-list.model.ts +22 -22
- package/src/types/interface/models/reflex-route-contract.model.ts +46 -46
- package/src/types/interface/models/reflex-route.model.ts +23 -23
- package/src/types/interface/models/reflex-run-retention.model.ts +24 -0
- package/src/types/interface/models/reflex-run-settings.model.ts +39 -28
- package/src/types/interface/models/reflex-run.model.ts +309 -299
- package/src/types/interface/models/reflex-service-configuration.model.ts +22 -22
- package/src/types/interface/models/reflex-service-deployment.model.ts +48 -46
- package/src/types/interface/models/reflex-service-limits.model.ts +92 -92
- package/src/types/interface/models/reflex-service-template.model.ts +55 -0
- package/src/types/interface/models/reflex-service-version.model.ts +64 -64
- package/src/types/interface/models/reflex-service.model.ts +47 -45
- package/src/types/interface/models/reflex-step-stats.model.ts +35 -35
- package/src/types/interface/models/reflex-storage-surplus.model.ts +23 -0
- package/src/types/interface/models/reflex-task.model.ts +97 -97
- package/tsconfig.check.json +15 -15
- package/tsconfig.json +35 -35
|
@@ -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
|
+
}
|
|
@@ -1,32 +1,42 @@
|
|
|
1
|
-
import type { RunMode } from '../../../enum';
|
|
2
|
-
|
|
3
|
-
export interface IListFunctionRunParams {
|
|
4
|
-
applicationId: string;
|
|
5
|
-
functionId: string;
|
|
6
|
-
}
|
|
7
|
-
export interface IListFunctionRunQuery {
|
|
8
|
-
mode?: RunMode;
|
|
9
|
-
/** 1 to 100, 50 by default. */
|
|
10
|
-
limit?: number;
|
|
11
|
-
/** Runs skipped, newest first; 0 by default. */
|
|
12
|
-
offset?: number;
|
|
13
|
-
/** Only the live runs this task started (a tick of its cron or a delayed run); test runs have no task. */
|
|
14
|
-
taskId?: string;
|
|
15
|
-
/** Only the runs of this environment of the application (abyss-main's id). */
|
|
16
|
-
environmentId?: string;
|
|
17
|
-
/** Only the live runs this consumer of the Service called; test runs have no consumer. */
|
|
18
|
-
consumerId?: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface IGetFunctionRunParams {
|
|
22
|
-
applicationId: string;
|
|
23
|
-
functionId: string;
|
|
24
|
-
runId: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface IGetFunctionRunStateParams {
|
|
28
|
-
applicationId: string;
|
|
29
|
-
functionId: string;
|
|
30
|
-
/** The `executionId` an async route answered with: the id of the live run. */
|
|
31
|
-
runId: string;
|
|
32
|
-
}
|
|
1
|
+
import type { RunMode } from '../../../enum';
|
|
2
|
+
|
|
3
|
+
export interface IListFunctionRunParams {
|
|
4
|
+
applicationId: string;
|
|
5
|
+
functionId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IListFunctionRunQuery {
|
|
8
|
+
mode?: RunMode;
|
|
9
|
+
/** 1 to 100, 50 by default. */
|
|
10
|
+
limit?: number;
|
|
11
|
+
/** Runs skipped, newest first; 0 by default. */
|
|
12
|
+
offset?: number;
|
|
13
|
+
/** Only the live runs this task started (a tick of its cron or a delayed run); test runs have no task. */
|
|
14
|
+
taskId?: string;
|
|
15
|
+
/** Only the runs of this environment of the application (abyss-main's id). */
|
|
16
|
+
environmentId?: string;
|
|
17
|
+
/** Only the live runs this consumer of the Service called; test runs have no consumer. */
|
|
18
|
+
consumerId?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface IGetFunctionRunParams {
|
|
22
|
+
applicationId: string;
|
|
23
|
+
functionId: string;
|
|
24
|
+
runId: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface IGetFunctionRunStateParams {
|
|
28
|
+
applicationId: string;
|
|
29
|
+
functionId: string;
|
|
30
|
+
/** The `executionId` an async route answered with: the id of the live run. */
|
|
31
|
+
runId: string;
|
|
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,44 +1,44 @@
|
|
|
1
|
-
export interface IFunctionTestParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
functionId: string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
/** The answer an HTTP step gets in a test; nothing is sent. Defaults to `200` with no body. */
|
|
7
|
-
export interface IReflexHttpStub {
|
|
8
|
-
status: number;
|
|
9
|
-
headers?: Record<string, string>;
|
|
10
|
-
body?: unknown;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* The answer a `discord.*` call of a step gets in a test; nothing reaches Discord. Without a stub the
|
|
15
|
-
* call gets a simulated answer of the shape the edge returns (`{ id }` of a message, a member, a channel...).
|
|
16
|
-
*/
|
|
17
|
-
export interface IReflexDiscordStub {
|
|
18
|
-
/** What the call returns: `null` for `getMember` reads as a user who is not a member. */
|
|
19
|
-
response: unknown;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface ISimulateFunctionBody {
|
|
23
|
-
/**
|
|
24
|
-
* The environment of the application the run takes place in (abyss-main's id): a dry run reads its
|
|
25
|
-
* Store, the run is measured with its effective settings and recorded with it.
|
|
26
|
-
*/
|
|
27
|
-
environmentId: string;
|
|
28
|
-
/**
|
|
29
|
-
* The event the function receives, as the edge builds it: `{method, path, query, headers, body}`, or the
|
|
30
|
-
* input of a run of a task (`ScheduledRunInput` of `@abyss-project/runtime`, `kind` SCHEDULE or DELAYED),
|
|
31
|
-
* which no interaction started: `discord.reply`, `update`, `showModal` and `followUp` then reject with `NO_INTERACTION`.
|
|
32
|
-
*/
|
|
33
|
-
input?: unknown;
|
|
34
|
-
/** Simulated responses of HTTP steps, by step id. */
|
|
35
|
-
httpStubs?: Record<string, IReflexHttpStub>;
|
|
36
|
-
/** Answers of the `discord.*` calls of a step, by step id (a Discord bot Service only). */
|
|
37
|
-
discordStubs?: Record<string, IReflexDiscordStub>;
|
|
38
|
-
/**
|
|
39
|
-
* A route of the Service that starts the function: its contract validates `input` first
|
|
40
|
-
* (`422 REQUEST_INVALID` with `errors`), and the response is checked against it (`contractWarnings`).
|
|
41
|
-
*/
|
|
42
|
-
routeId?: string;
|
|
43
|
-
}
|
|
44
|
-
export type IDryRunFunctionBody = ISimulateFunctionBody;
|
|
1
|
+
export interface IFunctionTestParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
functionId: string;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
/** The answer an HTTP step gets in a test; nothing is sent. Defaults to `200` with no body. */
|
|
7
|
+
export interface IReflexHttpStub {
|
|
8
|
+
status: number;
|
|
9
|
+
headers?: Record<string, string>;
|
|
10
|
+
body?: unknown;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The answer a `discord.*` call of a step gets in a test; nothing reaches Discord. Without a stub the
|
|
15
|
+
* call gets a simulated answer of the shape the edge returns (`{ id }` of a message, a member, a channel...).
|
|
16
|
+
*/
|
|
17
|
+
export interface IReflexDiscordStub {
|
|
18
|
+
/** What the call returns: `null` for `getMember` reads as a user who is not a member. */
|
|
19
|
+
response: unknown;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface ISimulateFunctionBody {
|
|
23
|
+
/**
|
|
24
|
+
* The environment of the application the run takes place in (abyss-main's id): a dry run reads its
|
|
25
|
+
* Store, the run is measured with its effective settings and recorded with it.
|
|
26
|
+
*/
|
|
27
|
+
environmentId: string;
|
|
28
|
+
/**
|
|
29
|
+
* The event the function receives, as the edge builds it: `{method, path, query, headers, body}`, or the
|
|
30
|
+
* input of a run of a task (`ScheduledRunInput` of `@abyss-project/runtime`, `kind` SCHEDULE or DELAYED),
|
|
31
|
+
* which no interaction started: `discord.reply`, `update`, `showModal` and `followUp` then reject with `NO_INTERACTION`.
|
|
32
|
+
*/
|
|
33
|
+
input?: unknown;
|
|
34
|
+
/** Simulated responses of HTTP steps, by step id. */
|
|
35
|
+
httpStubs?: Record<string, IReflexHttpStub>;
|
|
36
|
+
/** Answers of the `discord.*` calls of a step, by step id (a Discord bot Service only). */
|
|
37
|
+
discordStubs?: Record<string, IReflexDiscordStub>;
|
|
38
|
+
/**
|
|
39
|
+
* A route of the Service that starts the function: its contract validates `input` first
|
|
40
|
+
* (`422 REQUEST_INVALID` with `errors`), and the response is checked against it (`contractWarnings`).
|
|
41
|
+
*/
|
|
42
|
+
routeId?: string;
|
|
43
|
+
}
|
|
44
|
+
export type IDryRunFunctionBody = ISimulateFunctionBody;
|
|
@@ -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,24 +1,27 @@
|
|
|
1
|
-
export * from './function.request';
|
|
2
|
-
export * from './function-access.request';
|
|
3
|
-
export * from './function-test.request';
|
|
4
|
-
export * from './function-version.request';
|
|
5
|
-
export * from './function-run.request';
|
|
6
|
-
export * from './function-settings.request';
|
|
7
|
-
export * from './service.request';
|
|
8
|
-
export * from './service-route.request';
|
|
9
|
-
export * from './service-version.request';
|
|
10
|
-
export * from './service-deployment.request';
|
|
11
|
-
export * from './service-configuration.request';
|
|
12
|
-
export * from './service-discord.request';
|
|
13
|
-
export * from './service-task.request';
|
|
14
|
-
export * from './service-discord-event.request';
|
|
15
|
-
export * from './service-insights.request';
|
|
16
|
-
export * from './application-run-settings.request';
|
|
17
|
-
export * from './application-insights.request';
|
|
18
|
-
export * from './alert-rule.request';
|
|
19
|
-
export * from './route-stats.request';
|
|
20
|
-
export * from './function-template.request';
|
|
21
|
-
export * from './service-consumer.request';
|
|
22
|
-
export * from './service-openapi.request';
|
|
23
|
-
export * from './service-limits.request';
|
|
24
|
-
export * from './service-completion-webhook.request';
|
|
1
|
+
export * from './function.request';
|
|
2
|
+
export * from './function-access.request';
|
|
3
|
+
export * from './function-test.request';
|
|
4
|
+
export * from './function-version.request';
|
|
5
|
+
export * from './function-run.request';
|
|
6
|
+
export * from './function-settings.request';
|
|
7
|
+
export * from './service.request';
|
|
8
|
+
export * from './service-route.request';
|
|
9
|
+
export * from './service-version.request';
|
|
10
|
+
export * from './service-deployment.request';
|
|
11
|
+
export * from './service-configuration.request';
|
|
12
|
+
export * from './service-discord.request';
|
|
13
|
+
export * from './service-task.request';
|
|
14
|
+
export * from './service-discord-event.request';
|
|
15
|
+
export * from './service-insights.request';
|
|
16
|
+
export * from './application-run-settings.request';
|
|
17
|
+
export * from './application-insights.request';
|
|
18
|
+
export * from './alert-rule.request';
|
|
19
|
+
export * from './route-stats.request';
|
|
20
|
+
export * from './function-template.request';
|
|
21
|
+
export * from './service-consumer.request';
|
|
22
|
+
export * from './service-openapi.request';
|
|
23
|
+
export * from './service-limits.request';
|
|
24
|
+
export * from './service-completion-webhook.request';
|
|
25
|
+
export * from './service-template.request';
|
|
26
|
+
export * from './code-environment.request';
|
|
27
|
+
export * from './storage-surplus.admin.request';
|
|
@@ -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
|
+
}
|