@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,155 +1,155 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
DiscordActivityType,
|
|
3
|
-
DiscordComponentKind,
|
|
4
|
-
DiscordPresenceStatus,
|
|
5
|
-
} from '../../../enum';
|
|
6
|
-
import type { IReflexDiscordCommandOption, ReflexDiscordLocalizations } from '../../models';
|
|
7
|
-
|
|
8
|
-
export interface IListServiceDiscordCommandParams {
|
|
9
|
-
applicationId: string;
|
|
10
|
-
serviceId: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface ICreateServiceDiscordCommandParams {
|
|
14
|
-
applicationId: string;
|
|
15
|
-
serviceId: string;
|
|
16
|
-
}
|
|
17
|
-
export interface ICreateServiceDiscordCommandBody {
|
|
18
|
-
/** `^[-_a-z0-9]{1,32}$`, unique within the Service. */
|
|
19
|
-
name: string;
|
|
20
|
-
/** 1 to 100 characters. */
|
|
21
|
-
description: string;
|
|
22
|
-
/** 25 at most, required options first; empty by default. */
|
|
23
|
-
options?: IReflexDiscordCommandOption[];
|
|
24
|
-
/** A function of the same Service. */
|
|
25
|
-
functionId: string;
|
|
26
|
-
/** Discord permission bits as a decimal string; null (default) for everyone. */
|
|
27
|
-
defaultMemberPermissions?: string | null;
|
|
28
|
-
/** `true` by default. */
|
|
29
|
-
allowedInDirectMessages?: boolean;
|
|
30
|
-
/** Null (default) for none. */
|
|
31
|
-
nameLocalizations?: ReflexDiscordLocalizations | null;
|
|
32
|
-
descriptionLocalizations?: ReflexDiscordLocalizations | null;
|
|
33
|
-
/** `false` by default. */
|
|
34
|
-
userInstallable?: boolean;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface IUpdateServiceDiscordCommandParams {
|
|
38
|
-
applicationId: string;
|
|
39
|
-
serviceId: string;
|
|
40
|
-
commandId: string;
|
|
41
|
-
}
|
|
42
|
-
export interface IUpdateServiceDiscordCommandBody {
|
|
43
|
-
name?: string;
|
|
44
|
-
description?: string;
|
|
45
|
-
options?: IReflexDiscordCommandOption[];
|
|
46
|
-
functionId?: string;
|
|
47
|
-
defaultMemberPermissions?: string | null;
|
|
48
|
-
allowedInDirectMessages?: boolean;
|
|
49
|
-
nameLocalizations?: ReflexDiscordLocalizations | null;
|
|
50
|
-
descriptionLocalizations?: ReflexDiscordLocalizations | null;
|
|
51
|
-
userInstallable?: boolean;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export interface IDeleteServiceDiscordCommandParams {
|
|
55
|
-
applicationId: string;
|
|
56
|
-
serviceId: string;
|
|
57
|
-
commandId: string;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface IListServiceDiscordComponentParams {
|
|
61
|
-
applicationId: string;
|
|
62
|
-
serviceId: string;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface ICreateServiceDiscordComponentParams {
|
|
66
|
-
applicationId: string;
|
|
67
|
-
serviceId: string;
|
|
68
|
-
}
|
|
69
|
-
export interface ICreateServiceDiscordComponentBody {
|
|
70
|
-
/** `^[a-z0-9_-]{1,40}$`; no prefix of the Service equals, starts or is started by another one. */
|
|
71
|
-
customIdPrefix: string;
|
|
72
|
-
kind: DiscordComponentKind;
|
|
73
|
-
/** A function of the same Service. */
|
|
74
|
-
functionId: string;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export interface IUpdateServiceDiscordComponentParams {
|
|
78
|
-
applicationId: string;
|
|
79
|
-
serviceId: string;
|
|
80
|
-
componentId: string;
|
|
81
|
-
}
|
|
82
|
-
export interface IUpdateServiceDiscordComponentBody {
|
|
83
|
-
customIdPrefix?: string;
|
|
84
|
-
kind?: DiscordComponentKind;
|
|
85
|
-
functionId?: string;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export interface IDeleteServiceDiscordComponentParams {
|
|
89
|
-
applicationId: string;
|
|
90
|
-
serviceId: string;
|
|
91
|
-
componentId: string;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export interface IGetServiceDiscordConnectionParams {
|
|
95
|
-
applicationId: string;
|
|
96
|
-
serviceId: string;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export interface ISetServiceDiscordTokenSecretParams {
|
|
100
|
-
applicationId: string;
|
|
101
|
-
serviceId: string;
|
|
102
|
-
}
|
|
103
|
-
export interface ISetServiceDiscordTokenSecretBody {
|
|
104
|
-
/** The Vault entry (a secret of the project) that holds the bot token, one value per environment. */
|
|
105
|
-
discordTokenSecretId: string;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export interface ISetServiceDiscordEnvironmentParams {
|
|
109
|
-
applicationId: string;
|
|
110
|
-
serviceId: string;
|
|
111
|
-
environmentId: string;
|
|
112
|
-
}
|
|
113
|
-
export interface ISetServiceDiscordEnvironmentBody {
|
|
114
|
-
/** Discord server (snowflake) the commands are pushed to outside production; null removes it. */
|
|
115
|
-
testGuildId?: string | null;
|
|
116
|
-
/** Discord permission bits as a decimal string, put in the invitation link. */
|
|
117
|
-
invitePermissions: string;
|
|
118
|
-
/** What the bot shows while connected. */
|
|
119
|
-
presenceStatus?: DiscordPresenceStatus;
|
|
120
|
-
/** The kind of activity; null removes it. */
|
|
121
|
-
activityType?: DiscordActivityType | null;
|
|
122
|
-
/** 1 to 128 characters, required with an `activityType`, null without. */
|
|
123
|
-
activityText?: string | null;
|
|
124
|
-
/**
|
|
125
|
-
* Largest file the bot receives or sends, in bytes, 1 to `REFLEX_DISCORD_LIMITS.attachmentMaxBytesBound`; omitted,
|
|
126
|
-
* the current size is kept (the default until one is set), unlike the other fields of this body, which an
|
|
127
|
-
* omission resets: a screen sends it only when it changed it.
|
|
128
|
-
*/
|
|
129
|
-
maxAttachmentBytes?: number;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export interface ICheckServiceDiscordConnectionParams {
|
|
133
|
-
applicationId: string;
|
|
134
|
-
serviceId: string;
|
|
135
|
-
environmentId: string;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export interface IRetryServiceDiscordSyncParams {
|
|
139
|
-
applicationId: string;
|
|
140
|
-
serviceId: string;
|
|
141
|
-
environmentId: string;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export interface ISetServiceDiscordAllocationParams {
|
|
145
|
-
applicationId: string;
|
|
146
|
-
serviceId: string;
|
|
147
|
-
environmentId: string;
|
|
148
|
-
}
|
|
149
|
-
export interface ISetServiceDiscordAllocationBody {
|
|
150
|
-
/**
|
|
151
|
-
* Lots of 500 events per minute of the reserve of the organization this bot holds in this environment,
|
|
152
|
-
* from 0 to `rate.lotsMax`; 0 releases them. The sum over the organization cannot go past its reserve.
|
|
153
|
-
*/
|
|
154
|
-
lots: number;
|
|
155
|
-
}
|
|
1
|
+
import type {
|
|
2
|
+
DiscordActivityType,
|
|
3
|
+
DiscordComponentKind,
|
|
4
|
+
DiscordPresenceStatus,
|
|
5
|
+
} from '../../../enum';
|
|
6
|
+
import type { IReflexDiscordCommandOption, ReflexDiscordLocalizations } from '../../models';
|
|
7
|
+
|
|
8
|
+
export interface IListServiceDiscordCommandParams {
|
|
9
|
+
applicationId: string;
|
|
10
|
+
serviceId: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ICreateServiceDiscordCommandParams {
|
|
14
|
+
applicationId: string;
|
|
15
|
+
serviceId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ICreateServiceDiscordCommandBody {
|
|
18
|
+
/** `^[-_a-z0-9]{1,32}$`, unique within the Service. */
|
|
19
|
+
name: string;
|
|
20
|
+
/** 1 to 100 characters. */
|
|
21
|
+
description: string;
|
|
22
|
+
/** 25 at most, required options first; empty by default. */
|
|
23
|
+
options?: IReflexDiscordCommandOption[];
|
|
24
|
+
/** A function of the same Service. */
|
|
25
|
+
functionId: string;
|
|
26
|
+
/** Discord permission bits as a decimal string; null (default) for everyone. */
|
|
27
|
+
defaultMemberPermissions?: string | null;
|
|
28
|
+
/** `true` by default. */
|
|
29
|
+
allowedInDirectMessages?: boolean;
|
|
30
|
+
/** Null (default) for none. */
|
|
31
|
+
nameLocalizations?: ReflexDiscordLocalizations | null;
|
|
32
|
+
descriptionLocalizations?: ReflexDiscordLocalizations | null;
|
|
33
|
+
/** `false` by default. */
|
|
34
|
+
userInstallable?: boolean;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface IUpdateServiceDiscordCommandParams {
|
|
38
|
+
applicationId: string;
|
|
39
|
+
serviceId: string;
|
|
40
|
+
commandId: string;
|
|
41
|
+
}
|
|
42
|
+
export interface IUpdateServiceDiscordCommandBody {
|
|
43
|
+
name?: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
options?: IReflexDiscordCommandOption[];
|
|
46
|
+
functionId?: string;
|
|
47
|
+
defaultMemberPermissions?: string | null;
|
|
48
|
+
allowedInDirectMessages?: boolean;
|
|
49
|
+
nameLocalizations?: ReflexDiscordLocalizations | null;
|
|
50
|
+
descriptionLocalizations?: ReflexDiscordLocalizations | null;
|
|
51
|
+
userInstallable?: boolean;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface IDeleteServiceDiscordCommandParams {
|
|
55
|
+
applicationId: string;
|
|
56
|
+
serviceId: string;
|
|
57
|
+
commandId: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface IListServiceDiscordComponentParams {
|
|
61
|
+
applicationId: string;
|
|
62
|
+
serviceId: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface ICreateServiceDiscordComponentParams {
|
|
66
|
+
applicationId: string;
|
|
67
|
+
serviceId: string;
|
|
68
|
+
}
|
|
69
|
+
export interface ICreateServiceDiscordComponentBody {
|
|
70
|
+
/** `^[a-z0-9_-]{1,40}$`; no prefix of the Service equals, starts or is started by another one. */
|
|
71
|
+
customIdPrefix: string;
|
|
72
|
+
kind: DiscordComponentKind;
|
|
73
|
+
/** A function of the same Service. */
|
|
74
|
+
functionId: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface IUpdateServiceDiscordComponentParams {
|
|
78
|
+
applicationId: string;
|
|
79
|
+
serviceId: string;
|
|
80
|
+
componentId: string;
|
|
81
|
+
}
|
|
82
|
+
export interface IUpdateServiceDiscordComponentBody {
|
|
83
|
+
customIdPrefix?: string;
|
|
84
|
+
kind?: DiscordComponentKind;
|
|
85
|
+
functionId?: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface IDeleteServiceDiscordComponentParams {
|
|
89
|
+
applicationId: string;
|
|
90
|
+
serviceId: string;
|
|
91
|
+
componentId: string;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export interface IGetServiceDiscordConnectionParams {
|
|
95
|
+
applicationId: string;
|
|
96
|
+
serviceId: string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface ISetServiceDiscordTokenSecretParams {
|
|
100
|
+
applicationId: string;
|
|
101
|
+
serviceId: string;
|
|
102
|
+
}
|
|
103
|
+
export interface ISetServiceDiscordTokenSecretBody {
|
|
104
|
+
/** The Vault entry (a secret of the project) that holds the bot token, one value per environment. */
|
|
105
|
+
discordTokenSecretId: string;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface ISetServiceDiscordEnvironmentParams {
|
|
109
|
+
applicationId: string;
|
|
110
|
+
serviceId: string;
|
|
111
|
+
environmentId: string;
|
|
112
|
+
}
|
|
113
|
+
export interface ISetServiceDiscordEnvironmentBody {
|
|
114
|
+
/** Discord server (snowflake) the commands are pushed to outside production; null removes it. */
|
|
115
|
+
testGuildId?: string | null;
|
|
116
|
+
/** Discord permission bits as a decimal string, put in the invitation link. */
|
|
117
|
+
invitePermissions: string;
|
|
118
|
+
/** What the bot shows while connected. */
|
|
119
|
+
presenceStatus?: DiscordPresenceStatus;
|
|
120
|
+
/** The kind of activity; null removes it. */
|
|
121
|
+
activityType?: DiscordActivityType | null;
|
|
122
|
+
/** 1 to 128 characters, required with an `activityType`, null without. */
|
|
123
|
+
activityText?: string | null;
|
|
124
|
+
/**
|
|
125
|
+
* Largest file the bot receives or sends, in bytes, 1 to `REFLEX_DISCORD_LIMITS.attachmentMaxBytesBound`; omitted,
|
|
126
|
+
* the current size is kept (the default until one is set), unlike the other fields of this body, which an
|
|
127
|
+
* omission resets: a screen sends it only when it changed it.
|
|
128
|
+
*/
|
|
129
|
+
maxAttachmentBytes?: number;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface ICheckServiceDiscordConnectionParams {
|
|
133
|
+
applicationId: string;
|
|
134
|
+
serviceId: string;
|
|
135
|
+
environmentId: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export interface IRetryServiceDiscordSyncParams {
|
|
139
|
+
applicationId: string;
|
|
140
|
+
serviceId: string;
|
|
141
|
+
environmentId: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export interface ISetServiceDiscordAllocationParams {
|
|
145
|
+
applicationId: string;
|
|
146
|
+
serviceId: string;
|
|
147
|
+
environmentId: string;
|
|
148
|
+
}
|
|
149
|
+
export interface ISetServiceDiscordAllocationBody {
|
|
150
|
+
/**
|
|
151
|
+
* Lots of 500 events per minute of the reserve of the organization this bot holds in this environment,
|
|
152
|
+
* from 0 to `rate.lotsMax`; 0 releases them. The sum over the organization cannot go past its reserve.
|
|
153
|
+
*/
|
|
154
|
+
lots: number;
|
|
155
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import type { InsightsPeriod } from '../../../enum';
|
|
2
|
-
|
|
3
|
-
export interface IGetServiceInsightsParams {
|
|
4
|
-
applicationId: string;
|
|
5
|
-
serviceId: string;
|
|
6
|
-
}
|
|
7
|
-
export interface IGetServiceInsightsQuery {
|
|
8
|
-
/** The environment of the application (abyss-main's id). */
|
|
9
|
-
environmentId: string;
|
|
10
|
-
period: InsightsPeriod;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface IGetServiceEventInsightsParams {
|
|
14
|
-
applicationId: string;
|
|
15
|
-
serviceId: string;
|
|
16
|
-
}
|
|
17
|
-
export interface IGetServiceEventInsightsQuery {
|
|
18
|
-
/** The environment of the application (abyss-main's id). */
|
|
19
|
-
environmentId: string;
|
|
20
|
-
period: InsightsPeriod;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface IGetFunctionInsightsParams {
|
|
24
|
-
applicationId: string;
|
|
25
|
-
functionId: string;
|
|
26
|
-
}
|
|
27
|
-
export interface IGetFunctionInsightsQuery {
|
|
28
|
-
/** The environment of the application (abyss-main's id). */
|
|
29
|
-
environmentId: string;
|
|
30
|
-
period: InsightsPeriod;
|
|
31
|
-
}
|
|
1
|
+
import type { InsightsPeriod } from '../../../enum';
|
|
2
|
+
|
|
3
|
+
export interface IGetServiceInsightsParams {
|
|
4
|
+
applicationId: string;
|
|
5
|
+
serviceId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IGetServiceInsightsQuery {
|
|
8
|
+
/** The environment of the application (abyss-main's id). */
|
|
9
|
+
environmentId: string;
|
|
10
|
+
period: InsightsPeriod;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface IGetServiceEventInsightsParams {
|
|
14
|
+
applicationId: string;
|
|
15
|
+
serviceId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IGetServiceEventInsightsQuery {
|
|
18
|
+
/** The environment of the application (abyss-main's id). */
|
|
19
|
+
environmentId: string;
|
|
20
|
+
period: InsightsPeriod;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface IGetFunctionInsightsParams {
|
|
24
|
+
applicationId: string;
|
|
25
|
+
functionId: string;
|
|
26
|
+
}
|
|
27
|
+
export interface IGetFunctionInsightsQuery {
|
|
28
|
+
/** The environment of the application (abyss-main's id). */
|
|
29
|
+
environmentId: string;
|
|
30
|
+
period: InsightsPeriod;
|
|
31
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import type { IReflexServiceAlertSettings } from '../../models';
|
|
2
|
-
|
|
3
|
-
export interface IListServiceLimitsParams {
|
|
4
|
-
applicationId: string;
|
|
5
|
-
serviceId: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface ISetServiceLimitsParams {
|
|
9
|
-
applicationId: string;
|
|
10
|
-
serviceId: string;
|
|
11
|
-
/** An environment of the application (abyss-main's id). */
|
|
12
|
-
environmentId: string;
|
|
13
|
-
}
|
|
14
|
-
/** A key left out keeps its current value. */
|
|
15
|
-
export interface ISetServiceLimitsBody {
|
|
16
|
-
/**
|
|
17
|
-
* Bills the credits of the month past those of the organization. Refused (`409 CREDIT_OVERAGE_NOT_ALLOWED`)
|
|
18
|
-
* when the organization does not allow overage of the credits.
|
|
19
|
-
*/
|
|
20
|
-
creditOverageEnabled?: boolean;
|
|
21
|
-
/** Monthly spend cap of the Service, in cents (`REFLEX_SERVICE_SPEND_LIMITS`). */
|
|
22
|
-
monthlySpendCapCents?: number;
|
|
23
|
-
alerts?: {
|
|
24
|
-
monthlySpendCap?: Partial<IReflexServiceAlertSettings>;
|
|
25
|
-
/** A bot only: `400 SERVICE_TYPE_FIELD_REFUSED` for any other type of Service. */
|
|
26
|
-
rate?: Partial<IReflexServiceAlertSettings>;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
1
|
+
import type { IReflexServiceAlertSettings } from '../../models';
|
|
2
|
+
|
|
3
|
+
export interface IListServiceLimitsParams {
|
|
4
|
+
applicationId: string;
|
|
5
|
+
serviceId: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface ISetServiceLimitsParams {
|
|
9
|
+
applicationId: string;
|
|
10
|
+
serviceId: string;
|
|
11
|
+
/** An environment of the application (abyss-main's id). */
|
|
12
|
+
environmentId: string;
|
|
13
|
+
}
|
|
14
|
+
/** A key left out keeps its current value. */
|
|
15
|
+
export interface ISetServiceLimitsBody {
|
|
16
|
+
/**
|
|
17
|
+
* Bills the credits of the month past those of the organization. Refused (`409 CREDIT_OVERAGE_NOT_ALLOWED`)
|
|
18
|
+
* when the organization does not allow overage of the credits.
|
|
19
|
+
*/
|
|
20
|
+
creditOverageEnabled?: boolean;
|
|
21
|
+
/** Monthly spend cap of the Service, in cents (`REFLEX_SERVICE_SPEND_LIMITS`). */
|
|
22
|
+
monthlySpendCapCents?: number;
|
|
23
|
+
alerts?: {
|
|
24
|
+
monthlySpendCap?: Partial<IReflexServiceAlertSettings>;
|
|
25
|
+
/** A bot only: `400 SERVICE_TYPE_FIELD_REFUSED` for any other type of Service. */
|
|
26
|
+
rate?: Partial<IReflexServiceAlertSettings>;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface IGetServiceOpenApiParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
serviceId: string;
|
|
4
|
-
}
|
|
5
|
-
export interface IGetServiceOpenApiQuery {
|
|
6
|
-
/** The environment whose edge address goes in `servers` (abyss-main's id). */
|
|
7
|
-
environmentId: string;
|
|
8
|
-
/** A version of the Service; absent for the draft. */
|
|
9
|
-
versionId?: string;
|
|
10
|
-
}
|
|
1
|
+
export interface IGetServiceOpenApiParams {
|
|
2
|
+
applicationId: string;
|
|
3
|
+
serviceId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IGetServiceOpenApiQuery {
|
|
6
|
+
/** The environment whose edge address goes in `servers` (abyss-main's id). */
|
|
7
|
+
environmentId: string;
|
|
8
|
+
/** A version of the Service; absent for the draft. */
|
|
9
|
+
versionId?: string;
|
|
10
|
+
}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import type { RouteMethod, TriggerAccessMode } from '../../../enum';
|
|
2
|
-
import type { IReflexRouteContract } from '../../models';
|
|
3
|
-
|
|
4
|
-
export interface IListServiceRouteParams {
|
|
5
|
-
applicationId: string;
|
|
6
|
-
serviceId: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface ICreateServiceRouteParams {
|
|
10
|
-
applicationId: string;
|
|
11
|
-
serviceId: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ICreateServiceRouteBody {
|
|
14
|
-
/** `ANY` only in a `FUNCTIONS` Service. */
|
|
15
|
-
method: RouteMethod;
|
|
16
|
-
/** Segments of `[a-z0-9._~-]` or `:param` joined by `/`, 20 at most; must not hide another route. */
|
|
17
|
-
path: string;
|
|
18
|
-
/** A function of the same Service. */
|
|
19
|
-
functionId: string;
|
|
20
|
-
accessMode: TriggerAccessMode;
|
|
21
|
-
/**
|
|
22
|
-
* What the route accepts and answers (`REFLEX_CONTRACT_LIMITS`); `400 CONTRACT_INVALID` with each fault. Null or
|
|
23
|
-
* absent for none.
|
|
24
|
-
*/
|
|
25
|
-
contract?: IReflexRouteContract | null;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface IUpdateServiceRouteParams {
|
|
29
|
-
applicationId: string;
|
|
30
|
-
serviceId: string;
|
|
31
|
-
routeId: string;
|
|
32
|
-
}
|
|
33
|
-
export interface IUpdateServiceRouteBody {
|
|
34
|
-
method?: RouteMethod;
|
|
35
|
-
path?: string;
|
|
36
|
-
functionId?: string;
|
|
37
|
-
accessMode?: TriggerAccessMode;
|
|
38
|
-
/** Null removes the contract; absent keeps it. */
|
|
39
|
-
contract?: IReflexRouteContract | null;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface IDeleteServiceRouteParams {
|
|
43
|
-
applicationId: string;
|
|
44
|
-
serviceId: string;
|
|
45
|
-
routeId: string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export interface IRotateServiceRouteParams {
|
|
49
|
-
applicationId: string;
|
|
50
|
-
serviceId: string;
|
|
51
|
-
routeId: string;
|
|
52
|
-
}
|
|
1
|
+
import type { RouteMethod, TriggerAccessMode } from '../../../enum';
|
|
2
|
+
import type { IReflexRouteContract } from '../../models';
|
|
3
|
+
|
|
4
|
+
export interface IListServiceRouteParams {
|
|
5
|
+
applicationId: string;
|
|
6
|
+
serviceId: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface ICreateServiceRouteParams {
|
|
10
|
+
applicationId: string;
|
|
11
|
+
serviceId: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ICreateServiceRouteBody {
|
|
14
|
+
/** `ANY` only in a `FUNCTIONS` Service. */
|
|
15
|
+
method: RouteMethod;
|
|
16
|
+
/** Segments of `[a-z0-9._~-]` or `:param` joined by `/`, 20 at most; must not hide another route. */
|
|
17
|
+
path: string;
|
|
18
|
+
/** A function of the same Service. */
|
|
19
|
+
functionId: string;
|
|
20
|
+
accessMode: TriggerAccessMode;
|
|
21
|
+
/**
|
|
22
|
+
* What the route accepts and answers (`REFLEX_CONTRACT_LIMITS`); `400 CONTRACT_INVALID` with each fault. Null or
|
|
23
|
+
* absent for none.
|
|
24
|
+
*/
|
|
25
|
+
contract?: IReflexRouteContract | null;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface IUpdateServiceRouteParams {
|
|
29
|
+
applicationId: string;
|
|
30
|
+
serviceId: string;
|
|
31
|
+
routeId: string;
|
|
32
|
+
}
|
|
33
|
+
export interface IUpdateServiceRouteBody {
|
|
34
|
+
method?: RouteMethod;
|
|
35
|
+
path?: string;
|
|
36
|
+
functionId?: string;
|
|
37
|
+
accessMode?: TriggerAccessMode;
|
|
38
|
+
/** Null removes the contract; absent keeps it. */
|
|
39
|
+
contract?: IReflexRouteContract | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface IDeleteServiceRouteParams {
|
|
43
|
+
applicationId: string;
|
|
44
|
+
serviceId: string;
|
|
45
|
+
routeId: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface IRotateServiceRouteParams {
|
|
49
|
+
applicationId: string;
|
|
50
|
+
serviceId: string;
|
|
51
|
+
routeId: string;
|
|
52
|
+
}
|