@abyss-project/reflex 2.0.0 → 4.0.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/dist/api/function-version.api.d.ts +1 -2
- package/dist/api/function-version.api.js +1 -3
- package/dist/api/function-version.api.js.map +1 -1
- package/dist/api/index.d.ts +5 -2
- package/dist/api/index.js +5 -2
- package/dist/api/index.js.map +1 -1
- package/dist/api/service-configuration.api.d.ts +2 -0
- package/dist/api/service-configuration.api.js +7 -0
- package/dist/api/service-configuration.api.js.map +1 -0
- package/dist/api/service-deployment.api.d.ts +6 -0
- package/dist/api/service-deployment.api.js +19 -0
- package/dist/api/service-deployment.api.js.map +1 -0
- package/dist/api/service-route.api.d.ts +6 -0
- package/dist/api/service-route.api.js +16 -0
- package/dist/api/service-route.api.js.map +1 -0
- package/dist/api/service-version.api.d.ts +4 -0
- package/dist/api/service-version.api.js +12 -0
- package/dist/api/service-version.api.js.map +1 -0
- package/dist/api/service.api.d.ts +6 -0
- package/dist/api/service.api.js +17 -0
- package/dist/api/service.api.js.map +1 -0
- package/dist/index.d.ts +34 -14
- package/dist/index.js +34 -14
- package/dist/index.js.map +1 -1
- package/dist/types/enum/configuration-read-as.enum.d.ts +4 -0
- package/dist/types/enum/configuration-read-as.enum.js +9 -0
- package/dist/types/enum/configuration-read-as.enum.js.map +1 -0
- package/dist/types/enum/index.d.ts +8 -1
- package/dist/types/enum/index.js +8 -1
- package/dist/types/enum/index.js.map +1 -1
- package/dist/types/enum/reflex-error-code.enum.d.ts +5 -2
- package/dist/types/enum/reflex-error-code.enum.js +4 -1
- package/dist/types/enum/reflex-error-code.enum.js.map +1 -1
- package/dist/types/enum/route-method.enum.d.ts +8 -0
- package/dist/types/enum/route-method.enum.js +13 -0
- package/dist/types/enum/route-method.enum.js.map +1 -0
- package/dist/types/enum/service-deployment-action.enum.d.ts +6 -0
- package/dist/types/enum/service-deployment-action.enum.js +11 -0
- package/dist/types/enum/service-deployment-action.enum.js.map +1 -0
- package/dist/types/enum/service-deployment-status.enum.d.ts +4 -0
- package/dist/types/enum/service-deployment-status.enum.js +9 -0
- package/dist/types/enum/service-deployment-status.enum.js.map +1 -0
- package/dist/types/enum/service-type.enum.d.ts +4 -0
- package/dist/types/enum/service-type.enum.js +9 -0
- package/dist/types/enum/service-type.enum.js.map +1 -0
- package/dist/types/enum/service-version-change-kind.enum.d.ts +5 -0
- package/dist/types/enum/service-version-change-kind.enum.js +10 -0
- package/dist/types/enum/service-version-change-kind.enum.js.map +1 -0
- package/dist/types/enum/vault-value-source.enum.d.ts +6 -0
- package/dist/types/enum/vault-value-source.enum.js +11 -0
- package/dist/types/enum/vault-value-source.enum.js.map +1 -0
- package/dist/types/enum/vault-visibility.enum.d.ts +4 -0
- package/dist/types/enum/vault-visibility.enum.js +9 -0
- package/dist/types/enum/vault-visibility.enum.js.map +1 -0
- package/dist/types/interface/api/requests/function-version.request.d.ts +0 -4
- package/dist/types/interface/api/requests/function.request.d.ts +1 -0
- package/dist/types/interface/api/requests/index.d.ts +5 -2
- package/dist/types/interface/api/requests/index.js +5 -2
- package/dist/types/interface/api/requests/index.js.map +1 -1
- package/dist/types/interface/api/requests/service-configuration.request.d.ts +4 -0
- package/dist/types/interface/api/requests/service-configuration.request.js +3 -0
- package/dist/types/interface/api/requests/service-configuration.request.js.map +1 -0
- package/dist/types/interface/api/requests/service-deployment.request.d.ts +39 -0
- package/dist/types/interface/api/requests/{function-promotion.request.js → service-deployment.request.js} +1 -1
- package/dist/types/interface/api/requests/service-deployment.request.js.map +1 -0
- package/dist/types/interface/api/requests/service-route.request.d.ts +36 -0
- package/dist/types/interface/api/requests/{function-trigger.request.js → service-route.request.js} +1 -1
- package/dist/types/interface/api/requests/service-route.request.js.map +1 -0
- package/dist/types/interface/api/requests/service-version.request.d.ts +16 -0
- package/dist/types/interface/api/{responses/function-trigger.response.js → requests/service-version.request.js} +1 -1
- package/dist/types/interface/api/requests/service-version.request.js.map +1 -0
- package/dist/types/interface/api/requests/service.request.d.ts +30 -0
- package/dist/types/interface/{models/reflex-trigger.model.js → api/requests/service.request.js} +1 -1
- package/dist/types/interface/api/requests/service.request.js.map +1 -0
- package/dist/types/interface/api/responses/function-version.response.d.ts +0 -4
- package/dist/types/interface/api/responses/index.d.ts +5 -2
- package/dist/types/interface/api/responses/index.js +5 -2
- package/dist/types/interface/api/responses/index.js.map +1 -1
- package/dist/types/interface/api/responses/service-configuration.response.d.ts +6 -0
- package/dist/types/interface/api/responses/service-configuration.response.js +3 -0
- package/dist/types/interface/api/responses/service-configuration.response.js.map +1 -0
- package/dist/types/interface/api/responses/service-deployment.response.d.ts +24 -0
- package/dist/types/interface/api/responses/{function-promotion.response.js → service-deployment.response.js} +1 -1
- package/dist/types/interface/api/responses/service-deployment.response.js.map +1 -0
- package/dist/types/interface/api/responses/service-route.response.d.ts +23 -0
- package/dist/types/interface/api/responses/service-route.response.js +3 -0
- package/dist/types/interface/api/responses/service-route.response.js.map +1 -0
- package/dist/types/interface/api/responses/service-version.response.d.ts +23 -0
- package/dist/types/interface/api/responses/service-version.response.js +3 -0
- package/dist/types/interface/api/responses/service-version.response.js.map +1 -0
- package/dist/types/interface/api/responses/service.response.d.ts +23 -0
- package/dist/types/interface/api/responses/service.response.js +3 -0
- package/dist/types/interface/api/responses/service.response.js.map +1 -0
- package/dist/types/interface/models/index.d.ts +5 -2
- package/dist/types/interface/models/index.js +5 -2
- package/dist/types/interface/models/index.js.map +1 -1
- package/dist/types/interface/models/reflex-function.model.d.ts +1 -0
- package/dist/types/interface/models/reflex-route.model.d.ts +12 -0
- package/dist/types/interface/models/reflex-route.model.js +3 -0
- package/dist/types/interface/models/reflex-route.model.js.map +1 -0
- package/dist/types/interface/models/reflex-run.model.d.ts +1 -1
- package/dist/types/interface/models/reflex-service-configuration.model.d.ts +9 -0
- package/dist/types/interface/models/reflex-service-configuration.model.js +3 -0
- package/dist/types/interface/models/reflex-service-configuration.model.js.map +1 -0
- package/dist/types/interface/models/reflex-service-deployment.model.d.ts +20 -0
- package/dist/types/interface/models/reflex-service-deployment.model.js +3 -0
- package/dist/types/interface/models/reflex-service-deployment.model.js.map +1 -0
- package/dist/types/interface/models/reflex-service-version.model.d.ts +30 -0
- package/dist/types/interface/models/reflex-service-version.model.js +3 -0
- package/dist/types/interface/models/reflex-service-version.model.js.map +1 -0
- package/dist/types/interface/models/reflex-service.model.d.ts +31 -0
- package/dist/types/interface/models/reflex-service.model.js +13 -0
- package/dist/types/interface/models/reflex-service.model.js.map +1 -0
- package/package.json +1 -1
- package/src/api/function-run.api.ts +1 -1
- package/src/api/function-test.api.ts +34 -34
- package/src/api/function-version.api.ts +4 -12
- package/src/api/function.api.test.ts +249 -311
- package/src/api/index.ts +12 -9
- package/src/api/service-configuration.api.ts +16 -0
- package/src/api/service-deployment.api.ts +79 -0
- package/src/api/service-route.api.ts +72 -0
- package/src/api/service-version.api.ts +39 -0
- package/src/api/service.api.test.ts +209 -0
- package/src/api/service.api.ts +55 -0
- package/src/index.ts +64 -26
- package/src/types/enum/configuration-read-as.enum.ts +5 -0
- package/src/types/enum/execution-mode.enum.ts +1 -1
- package/src/types/enum/index.ts +21 -14
- package/src/types/enum/reflex-error-code.enum.ts +25 -19
- package/src/types/enum/route-method.enum.ts +9 -0
- package/src/types/enum/service-deployment-action.enum.ts +11 -0
- package/src/types/enum/service-deployment-status.enum.ts +5 -0
- package/src/types/enum/service-type.enum.ts +7 -0
- package/src/types/enum/service-version-change-kind.enum.ts +6 -0
- package/src/types/enum/trigger-access-mode.enum.ts +1 -1
- package/src/types/enum/vault-value-source.enum.ts +12 -0
- package/src/types/enum/vault-visibility.enum.ts +5 -0
- package/src/types/interface/api/requests/function-run.request.ts +1 -1
- package/src/types/interface/api/requests/function-settings.request.ts +27 -27
- package/src/types/interface/api/requests/function-test.request.ts +24 -24
- package/src/types/interface/api/requests/function-version.request.ts +20 -25
- package/src/types/interface/api/requests/function.request.ts +2 -0
- package/src/types/interface/api/requests/index.ts +11 -8
- package/src/types/interface/api/requests/service-configuration.request.ts +4 -0
- package/src/types/interface/api/requests/service-deployment.request.ts +49 -0
- package/src/types/interface/api/requests/service-route.request.ts +44 -0
- package/src/types/interface/api/requests/service-version.request.ts +19 -0
- package/src/types/interface/api/requests/service.request.ts +39 -0
- package/src/types/interface/api/responses/function-settings.response.ts +36 -36
- package/src/types/interface/api/responses/function-version.response.ts +0 -5
- package/src/types/interface/api/responses/index.ts +11 -8
- package/src/types/interface/api/responses/service-configuration.response.ts +8 -0
- package/src/types/interface/api/responses/service-deployment.response.ts +32 -0
- package/src/types/interface/api/responses/service-route.response.ts +31 -0
- package/src/types/interface/api/responses/service-version.response.ts +33 -0
- package/src/types/interface/api/responses/service.response.ts +31 -0
- package/src/types/interface/models/index.ts +13 -10
- package/src/types/interface/models/reflex-execution-settings.model.ts +50 -50
- package/src/types/interface/models/reflex-function.model.ts +2 -0
- package/src/types/interface/models/reflex-route.model.ts +19 -0
- package/src/types/interface/models/reflex-run.model.ts +164 -164
- package/src/types/interface/models/reflex-service-configuration.model.ts +22 -0
- package/src/types/interface/models/reflex-service-deployment.model.ts +29 -0
- package/src/types/interface/models/reflex-service-version.model.ts +43 -0
- package/src/types/interface/models/reflex-service.model.ts +43 -0
- package/dist/api/function-promotion.api.d.ts +0 -4
- package/dist/api/function-promotion.api.js +0 -12
- package/dist/api/function-promotion.api.js.map +0 -1
- package/dist/api/function-trigger.api.d.ts +0 -5
- package/dist/api/function-trigger.api.js +0 -14
- package/dist/api/function-trigger.api.js.map +0 -1
- package/dist/types/enum/trigger-type.enum.d.ts +0 -3
- package/dist/types/enum/trigger-type.enum.js +0 -8
- package/dist/types/enum/trigger-type.enum.js.map +0 -1
- package/dist/types/interface/api/requests/function-promotion.request.d.ts +0 -20
- package/dist/types/interface/api/requests/function-promotion.request.js.map +0 -1
- package/dist/types/interface/api/requests/function-trigger.request.d.ts +0 -23
- package/dist/types/interface/api/requests/function-trigger.request.js.map +0 -1
- package/dist/types/interface/api/responses/function-promotion.response.d.ts +0 -14
- package/dist/types/interface/api/responses/function-promotion.response.js.map +0 -1
- package/dist/types/interface/api/responses/function-trigger.response.d.ts +0 -18
- package/dist/types/interface/api/responses/function-trigger.response.js.map +0 -1
- package/dist/types/interface/models/reflex-environment-pointer.model.d.ts +0 -13
- package/dist/types/interface/models/reflex-environment-pointer.model.js +0 -3
- package/dist/types/interface/models/reflex-environment-pointer.model.js.map +0 -1
- package/dist/types/interface/models/reflex-trigger.model.d.ts +0 -13
- package/dist/types/interface/models/reflex-trigger.model.js.map +0 -1
- package/src/api/function-promotion.api.ts +0 -42
- package/src/api/function-trigger.api.ts +0 -52
- package/src/types/enum/trigger-type.enum.ts +0 -4
- package/src/types/interface/api/requests/function-promotion.request.ts +0 -25
- package/src/types/interface/api/requests/function-trigger.request.ts +0 -28
- package/src/types/interface/api/responses/function-promotion.response.ts +0 -18
- package/src/types/interface/api/responses/function-trigger.response.ts +0 -24
- package/src/types/interface/models/reflex-environment-pointer.model.ts +0 -18
- package/src/types/interface/models/reflex-trigger.model.ts +0 -17
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { RouteMethod, TriggerAccessMode } from '../../enum';
|
|
2
|
+
import type { IReflexServiceCors } from './reflex-service.model';
|
|
3
|
+
|
|
4
|
+
/** A route as a version of the Service froze it. */
|
|
5
|
+
export interface IReflexServiceVersionRoute {
|
|
6
|
+
routeId: string;
|
|
7
|
+
method: RouteMethod;
|
|
8
|
+
path: string;
|
|
9
|
+
functionId: string;
|
|
10
|
+
accessMode: TriggerAccessMode;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** The version of a member function a version of the Service runs. */
|
|
14
|
+
export interface IReflexServiceVersionFunction {
|
|
15
|
+
functionId: string;
|
|
16
|
+
functionVersionId: string;
|
|
17
|
+
functionVersionNumber: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* What a version of the Service freezes. Routes sorted by path then method, functions by id: the same
|
|
22
|
+
* Service always gives the same snapshot, and the same `hash`.
|
|
23
|
+
*/
|
|
24
|
+
export interface IReflexServiceVersionSnapshot {
|
|
25
|
+
routes: IReflexServiceVersionRoute[];
|
|
26
|
+
functions: IReflexServiceVersionFunction[];
|
|
27
|
+
cors: IReflexServiceCors;
|
|
28
|
+
rateLimitPerIpPerMinute: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface IReflexServiceVersion {
|
|
32
|
+
id: string;
|
|
33
|
+
serviceId: string;
|
|
34
|
+
/** 1, 2, 3...: counted per Service. */
|
|
35
|
+
number: number;
|
|
36
|
+
/** 500 characters at most. */
|
|
37
|
+
message: string | null;
|
|
38
|
+
snapshot: IReflexServiceVersionSnapshot;
|
|
39
|
+
/** SHA-256 of the snapshot as canonical JSON (keys sorted), lowercase hex. */
|
|
40
|
+
hash: string;
|
|
41
|
+
publishedByUserId: string;
|
|
42
|
+
publishedAt: Date;
|
|
43
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ServiceType } from '../../enum';
|
|
2
|
+
|
|
3
|
+
/** Bounds of a Service, its routes and versions; the API and its database apply the same ones. */
|
|
4
|
+
export const REFLEX_SERVICE_LIMITS = {
|
|
5
|
+
/** `^[a-z0-9][a-z0-9-]{0,39}$`: the third segment of the address, immutable. */
|
|
6
|
+
slugPattern: /^[a-z0-9][a-z0-9-]{0,39}$/,
|
|
7
|
+
nameMaxLength: 100,
|
|
8
|
+
corsAllowedOriginsMax: 20,
|
|
9
|
+
rateLimitPerIpPerMinute: { min: 1, max: 6000, default: 60 },
|
|
10
|
+
/** Segments of `[a-z0-9._~-]` or `:param`, joined by `/`, without leading or trailing slash. */
|
|
11
|
+
routePathMaxSegments: 20,
|
|
12
|
+
routePathMaxLength: 255,
|
|
13
|
+
versionMessageMaxLength: 500,
|
|
14
|
+
} as const;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Origins a browser may call the Service from. Each is `https://host` or `https://*.domain`; `*` (any
|
|
18
|
+
* origin) is refused when a route of the Service is not PUBLIC.
|
|
19
|
+
*/
|
|
20
|
+
export interface IReflexServiceCors {
|
|
21
|
+
allowedOrigins: string[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** A group of functions versioned, put in service and paused as one, in an application. */
|
|
25
|
+
export interface IReflexService {
|
|
26
|
+
id: string;
|
|
27
|
+
applicationId: string;
|
|
28
|
+
/** First segment of the address, `app-<8 hex>`, fixed for the application. */
|
|
29
|
+
applicationSlug: string;
|
|
30
|
+
/** Unique within the application. */
|
|
31
|
+
name: string;
|
|
32
|
+
/** Unique within the application, immutable: `/<application>/<environment>/<slug>/<route path>`. */
|
|
33
|
+
slug: string;
|
|
34
|
+
type: ServiceType;
|
|
35
|
+
/** Draft: frozen by the next version. */
|
|
36
|
+
cors: IReflexServiceCors;
|
|
37
|
+
/** Draft: frozen by the next version. Calls per minute and per client IP, in each environment. */
|
|
38
|
+
rateLimitPerIpPerMinute: number;
|
|
39
|
+
createdByUserId: string;
|
|
40
|
+
updatedByUserId: string;
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
updatedAt: Date;
|
|
43
|
+
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { IListFunctionPromotionParams, IListFunctionPromotionResponse, IPromoteFunctionBody, IPromoteFunctionParams, IPromoteFunctionResponse, IRollbackFunctionBody, IRollbackFunctionParams, IRollbackFunctionResponse } from '../types';
|
|
2
|
-
export declare const listFunctionPromotion: (params: IListFunctionPromotionParams) => Promise<IListFunctionPromotionResponse>;
|
|
3
|
-
export declare const promoteFunction: (params: IPromoteFunctionParams, body: IPromoteFunctionBody) => Promise<IPromoteFunctionResponse>;
|
|
4
|
-
export declare const rollbackFunction: (params: IRollbackFunctionParams, body: IRollbackFunctionBody) => Promise<IRollbackFunctionResponse>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rollbackFunction = exports.promoteFunction = exports.listFunctionPromotion = void 0;
|
|
4
|
-
const __1 = require("..");
|
|
5
|
-
const promotionUrl = (params) => `api/function/${params.applicationId}/${params.functionId}/promotion`;
|
|
6
|
-
const listFunctionPromotion = async (params) => (await __1.AbyssReflexCore.axios.get(promotionUrl(params))).data;
|
|
7
|
-
exports.listFunctionPromotion = listFunctionPromotion;
|
|
8
|
-
const promoteFunction = async (params, body) => (await __1.AbyssReflexCore.axios.post(promotionUrl(params), body)).data;
|
|
9
|
-
exports.promoteFunction = promoteFunction;
|
|
10
|
-
const rollbackFunction = async (params, body) => (await __1.AbyssReflexCore.axios.post(`${promotionUrl(params)}/rollback`, body)).data;
|
|
11
|
-
exports.rollbackFunction = rollbackFunction;
|
|
12
|
-
//# sourceMappingURL=function-promotion.api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"function-promotion.api.js","sourceRoot":"","sources":["../../src/api/function-promotion.api.ts"],"names":[],"mappings":";;;AAAA,0BAAqC;AAYrC,MAAM,YAAY,GAAG,CAAC,MAAqD,EAAU,EAAE,CACrF,gBAAgB,MAAM,CAAC,aAAa,IAAI,MAAM,CAAC,UAAU,YAAY,CAAC;AAGjE,MAAM,qBAAqB,GAAG,KAAK,EACxC,MAAoC,EACK,EAAE,CAC3C,CAAC,MAAM,mBAAe,CAAC,KAAK,CAAC,GAAG,CAAiC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAHlF,QAAA,qBAAqB,yBAG6D;AAMxF,MAAM,eAAe,GAAG,KAAK,EAClC,MAA8B,EAC9B,IAA0B,EACS,EAAE,CACrC,CAAC,MAAM,mBAAe,CAAC,KAAK,CAAC,IAAI,CAA2B,YAAY,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AAJnF,QAAA,eAAe,mBAIoE;AAGzF,MAAM,gBAAgB,GAAG,KAAK,EACnC,MAA+B,EAC/B,IAA2B,EACS,EAAE,CACtC,CACE,MAAM,mBAAe,CAAC,KAAK,CAAC,IAAI,CAC9B,GAAG,YAAY,CAAC,MAAM,CAAC,WAAW,EAClC,IAAI,CACL,CACF,CAAC,IAAI,CAAC;AATI,QAAA,gBAAgB,oBASpB"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ICreateFunctionTriggerBody, ICreateFunctionTriggerParams, ICreateFunctionTriggerResponse, IDeleteFunctionTriggerParams, IDeleteFunctionTriggerResponse, IListFunctionTriggerParams, IListFunctionTriggerResponse, IRotateFunctionTriggerParams, IRotateFunctionTriggerResponse } from '../types';
|
|
2
|
-
export declare const listFunctionTrigger: (params: IListFunctionTriggerParams) => Promise<IListFunctionTriggerResponse>;
|
|
3
|
-
export declare const createFunctionTrigger: (params: ICreateFunctionTriggerParams, body: ICreateFunctionTriggerBody) => Promise<ICreateFunctionTriggerResponse>;
|
|
4
|
-
export declare const rotateFunctionTrigger: (params: IRotateFunctionTriggerParams) => Promise<IRotateFunctionTriggerResponse>;
|
|
5
|
-
export declare const deleteFunctionTrigger: (params: IDeleteFunctionTriggerParams) => Promise<IDeleteFunctionTriggerResponse>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteFunctionTrigger = exports.rotateFunctionTrigger = exports.createFunctionTrigger = exports.listFunctionTrigger = void 0;
|
|
4
|
-
const __1 = require("..");
|
|
5
|
-
const triggerUrl = (params) => `api/function/${params.applicationId}/${params.functionId}/trigger`;
|
|
6
|
-
const listFunctionTrigger = async (params) => (await __1.AbyssReflexCore.axios.get(triggerUrl(params))).data;
|
|
7
|
-
exports.listFunctionTrigger = listFunctionTrigger;
|
|
8
|
-
const createFunctionTrigger = async (params, body) => (await __1.AbyssReflexCore.axios.post(triggerUrl(params), body)).data;
|
|
9
|
-
exports.createFunctionTrigger = createFunctionTrigger;
|
|
10
|
-
const rotateFunctionTrigger = async (params) => (await __1.AbyssReflexCore.axios.post(`${triggerUrl(params)}/${params.triggerId}/rotate`, {})).data;
|
|
11
|
-
exports.rotateFunctionTrigger = rotateFunctionTrigger;
|
|
12
|
-
const deleteFunctionTrigger = async (params) => (await __1.AbyssReflexCore.axios.delete(`${triggerUrl(params)}/${params.triggerId}`)).data;
|
|
13
|
-
exports.deleteFunctionTrigger = deleteFunctionTrigger;
|
|
14
|
-
//# sourceMappingURL=function-trigger.api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"function-trigger.api.js","sourceRoot":"","sources":["../../src/api/function-trigger.api.ts"],"names":[],"mappings":";;;AAAA,0BAAqC;AAarC,MAAM,UAAU,GAAG,CAAC,MAAqD,EAAU,EAAE,CACnF,gBAAgB,MAAM,CAAC,aAAa,IAAI,MAAM,CAAC,UAAU,UAAU,CAAC;AAG/D,MAAM,mBAAmB,GAAG,KAAK,EACtC,MAAkC,EACK,EAAE,CACzC,CAAC,MAAM,mBAAe,CAAC,KAAK,CAAC,GAAG,CAA+B,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAH9E,QAAA,mBAAmB,uBAG2D;AAMpF,MAAM,qBAAqB,GAAG,KAAK,EACxC,MAAoC,EACpC,IAAgC,EACS,EAAE,CAC3C,CAAC,MAAM,mBAAe,CAAC,KAAK,CAAC,IAAI,CAAiC,UAAU,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AAJvF,QAAA,qBAAqB,yBAIkE;AAG7F,MAAM,qBAAqB,GAAG,KAAK,EACxC,MAAoC,EACK,EAAE,CAC3C,CACE,MAAM,mBAAe,CAAC,KAAK,CAAC,IAAI,CAC9B,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,SAAS,SAAS,EAClD,EAAE,CACH,CACF,CAAC,IAAI,CAAC;AARI,QAAA,qBAAqB,yBAQzB;AAGF,MAAM,qBAAqB,GAAG,KAAK,EACxC,MAAoC,EACK,EAAE,CAC3C,CACE,MAAM,mBAAe,CAAC,KAAK,CAAC,MAAM,CAChC,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,SAAS,EAAE,CAC5C,CACF,CAAC,IAAI,CAAC;AAPI,QAAA,qBAAqB,yBAOzB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TriggerType = void 0;
|
|
4
|
-
var TriggerType;
|
|
5
|
-
(function (TriggerType) {
|
|
6
|
-
TriggerType["HTTP"] = "HTTP";
|
|
7
|
-
})(TriggerType || (exports.TriggerType = TriggerType = {}));
|
|
8
|
-
//# sourceMappingURL=trigger-type.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trigger-type.enum.js","sourceRoot":"","sources":["../../../src/types/enum/trigger-type.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,WAEX;AAFD,WAAY,WAAW;IACrB,4BAAa,CAAA;AACf,CAAC,EAFW,WAAW,2BAAX,WAAW,QAEtB"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export interface IListFunctionPromotionParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
functionId: string;
|
|
4
|
-
}
|
|
5
|
-
export interface IPromoteFunctionParams {
|
|
6
|
-
applicationId: string;
|
|
7
|
-
functionId: string;
|
|
8
|
-
}
|
|
9
|
-
export interface IPromoteFunctionBody {
|
|
10
|
-
versionId: string;
|
|
11
|
-
environmentId: string;
|
|
12
|
-
}
|
|
13
|
-
export interface IRollbackFunctionParams {
|
|
14
|
-
applicationId: string;
|
|
15
|
-
functionId: string;
|
|
16
|
-
}
|
|
17
|
-
export interface IRollbackFunctionBody {
|
|
18
|
-
environmentId: string;
|
|
19
|
-
versionId?: string;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"function-promotion.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/function-promotion.request.ts"],"names":[],"mappings":""}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { TriggerAccessMode } from '../../../enum';
|
|
2
|
-
export interface IListFunctionTriggerParams {
|
|
3
|
-
applicationId: string;
|
|
4
|
-
functionId: string;
|
|
5
|
-
}
|
|
6
|
-
export interface ICreateFunctionTriggerParams {
|
|
7
|
-
applicationId: string;
|
|
8
|
-
functionId: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ICreateFunctionTriggerBody {
|
|
11
|
-
path: string;
|
|
12
|
-
accessMode: TriggerAccessMode;
|
|
13
|
-
}
|
|
14
|
-
export interface IRotateFunctionTriggerParams {
|
|
15
|
-
applicationId: string;
|
|
16
|
-
functionId: string;
|
|
17
|
-
triggerId: string;
|
|
18
|
-
}
|
|
19
|
-
export interface IDeleteFunctionTriggerParams {
|
|
20
|
-
applicationId: string;
|
|
21
|
-
functionId: string;
|
|
22
|
-
triggerId: string;
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"function-trigger.request.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/requests/function-trigger.request.ts"],"names":[],"mappings":""}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { IReflexEnvironmentPointer } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
export interface IListFunctionPromotionData {
|
|
4
|
-
pointers: IReflexEnvironmentPointer[];
|
|
5
|
-
}
|
|
6
|
-
export type IListFunctionPromotionResponse = IResponse<IListFunctionPromotionData>;
|
|
7
|
-
export interface IPromoteFunctionData {
|
|
8
|
-
pointer: IReflexEnvironmentPointer;
|
|
9
|
-
}
|
|
10
|
-
export type IPromoteFunctionResponse = IResponse<IPromoteFunctionData>;
|
|
11
|
-
export interface IRollbackFunctionData {
|
|
12
|
-
pointer: IReflexEnvironmentPointer;
|
|
13
|
-
}
|
|
14
|
-
export type IRollbackFunctionResponse = IResponse<IRollbackFunctionData>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"function-promotion.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/function-promotion.response.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { IReflexTrigger } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
export interface IListFunctionTriggerData {
|
|
4
|
-
triggers: IReflexTrigger[];
|
|
5
|
-
}
|
|
6
|
-
export type IListFunctionTriggerResponse = IResponse<IListFunctionTriggerData>;
|
|
7
|
-
export interface ICreateFunctionTriggerData {
|
|
8
|
-
trigger: IReflexTrigger;
|
|
9
|
-
secret: string | null;
|
|
10
|
-
}
|
|
11
|
-
export type ICreateFunctionTriggerResponse = IResponse<ICreateFunctionTriggerData>;
|
|
12
|
-
export interface IRotateFunctionTriggerData {
|
|
13
|
-
trigger: IReflexTrigger;
|
|
14
|
-
secret: string;
|
|
15
|
-
}
|
|
16
|
-
export type IRotateFunctionTriggerResponse = IResponse<IRotateFunctionTriggerData>;
|
|
17
|
-
export type IDeleteFunctionTriggerData = Record<string, never>;
|
|
18
|
-
export type IDeleteFunctionTriggerResponse = IResponse<IDeleteFunctionTriggerData>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"function-trigger.response.js","sourceRoot":"","sources":["../../../../../src/types/interface/api/responses/function-trigger.response.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { IReflexAccessDeclaration } from './reflex-definition.model';
|
|
2
|
-
export interface IReflexEnvironmentPointer {
|
|
3
|
-
id: string;
|
|
4
|
-
functionId: string;
|
|
5
|
-
environmentId: string;
|
|
6
|
-
environmentSlug: string;
|
|
7
|
-
versionId: string;
|
|
8
|
-
versionNumber: number;
|
|
9
|
-
grants: IReflexAccessDeclaration[];
|
|
10
|
-
isCurrent: boolean;
|
|
11
|
-
promotedByUserId: string;
|
|
12
|
-
promotedAt: Date;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reflex-environment-pointer.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-environment-pointer.model.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { TriggerAccessMode, TriggerType } from '../../enum';
|
|
2
|
-
export interface IReflexTrigger {
|
|
3
|
-
id: string;
|
|
4
|
-
functionId: string;
|
|
5
|
-
applicationId: string;
|
|
6
|
-
applicationSlug: string;
|
|
7
|
-
type: TriggerType;
|
|
8
|
-
path: string;
|
|
9
|
-
accessMode: TriggerAccessMode;
|
|
10
|
-
createdByUserId: string;
|
|
11
|
-
createdAt: Date;
|
|
12
|
-
updatedAt: Date;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reflex-trigger.model.js","sourceRoot":"","sources":["../../../../src/types/interface/models/reflex-trigger.model.ts"],"names":[],"mappings":""}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { AbyssReflexCore } from '..';
|
|
2
|
-
import type {
|
|
3
|
-
IListFunctionPromotionParams,
|
|
4
|
-
IListFunctionPromotionResponse,
|
|
5
|
-
IPromoteFunctionBody,
|
|
6
|
-
IPromoteFunctionParams,
|
|
7
|
-
IPromoteFunctionResponse,
|
|
8
|
-
IRollbackFunctionBody,
|
|
9
|
-
IRollbackFunctionParams,
|
|
10
|
-
IRollbackFunctionResponse,
|
|
11
|
-
} from '../types';
|
|
12
|
-
|
|
13
|
-
const promotionUrl = (params: { applicationId: string; functionId: string }): string =>
|
|
14
|
-
`api/function/${params.applicationId}/${params.functionId}/promotion`;
|
|
15
|
-
|
|
16
|
-
/** `GET .../promotion`: where each version runs, and the history a rollback reads. Needs REFLEX_READ. */
|
|
17
|
-
export const listFunctionPromotion = async (
|
|
18
|
-
params: IListFunctionPromotionParams,
|
|
19
|
-
): Promise<IListFunctionPromotionResponse> =>
|
|
20
|
-
(await AbyssReflexCore.axios.get<IListFunctionPromotionResponse>(promotionUrl(params))).data;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* `POST .../promotion`: runs a version in an environment of the application (copies it, its accesses and its secrets to
|
|
24
|
-
* the execution plane). Needs REFLEX_PUBLISH, and REFLEX_PUBLISH_PRODUCTION for a PRODUCTION environment.
|
|
25
|
-
*/
|
|
26
|
-
export const promoteFunction = async (
|
|
27
|
-
params: IPromoteFunctionParams,
|
|
28
|
-
body: IPromoteFunctionBody,
|
|
29
|
-
): Promise<IPromoteFunctionResponse> =>
|
|
30
|
-
(await AbyssReflexCore.axios.post<IPromoteFunctionResponse>(promotionUrl(params), body)).data;
|
|
31
|
-
|
|
32
|
-
/** `POST .../promotion/rollback`: moves the environment back to a version it ran before. Same rights as a promotion. */
|
|
33
|
-
export const rollbackFunction = async (
|
|
34
|
-
params: IRollbackFunctionParams,
|
|
35
|
-
body: IRollbackFunctionBody,
|
|
36
|
-
): Promise<IRollbackFunctionResponse> =>
|
|
37
|
-
(
|
|
38
|
-
await AbyssReflexCore.axios.post<IRollbackFunctionResponse>(
|
|
39
|
-
`${promotionUrl(params)}/rollback`,
|
|
40
|
-
body,
|
|
41
|
-
)
|
|
42
|
-
).data;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { AbyssReflexCore } from '..';
|
|
2
|
-
import type {
|
|
3
|
-
ICreateFunctionTriggerBody,
|
|
4
|
-
ICreateFunctionTriggerParams,
|
|
5
|
-
ICreateFunctionTriggerResponse,
|
|
6
|
-
IDeleteFunctionTriggerParams,
|
|
7
|
-
IDeleteFunctionTriggerResponse,
|
|
8
|
-
IListFunctionTriggerParams,
|
|
9
|
-
IListFunctionTriggerResponse,
|
|
10
|
-
IRotateFunctionTriggerParams,
|
|
11
|
-
IRotateFunctionTriggerResponse,
|
|
12
|
-
} from '../types';
|
|
13
|
-
|
|
14
|
-
const triggerUrl = (params: { applicationId: string; functionId: string }): string =>
|
|
15
|
-
`api/function/${params.applicationId}/${params.functionId}/trigger`;
|
|
16
|
-
|
|
17
|
-
/** `GET .../trigger`: the HTTP triggers of the function. Needs REFLEX_READ. */
|
|
18
|
-
export const listFunctionTrigger = async (
|
|
19
|
-
params: IListFunctionTriggerParams,
|
|
20
|
-
): Promise<IListFunctionTriggerResponse> =>
|
|
21
|
-
(await AbyssReflexCore.axios.get<IListFunctionTriggerResponse>(triggerUrl(params))).data;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* `POST .../trigger`: adds an HTTP trigger. The key or the signing secret comes back ONCE in `secret`.
|
|
25
|
-
* Needs REFLEX_FUNCTION_UPDATE.
|
|
26
|
-
*/
|
|
27
|
-
export const createFunctionTrigger = async (
|
|
28
|
-
params: ICreateFunctionTriggerParams,
|
|
29
|
-
body: ICreateFunctionTriggerBody,
|
|
30
|
-
): Promise<ICreateFunctionTriggerResponse> =>
|
|
31
|
-
(await AbyssReflexCore.axios.post<ICreateFunctionTriggerResponse>(triggerUrl(params), body)).data;
|
|
32
|
-
|
|
33
|
-
/** `POST .../trigger/:triggerId/rotate`: a new key or signing secret, shown ONCE; the old one stops at once. */
|
|
34
|
-
export const rotateFunctionTrigger = async (
|
|
35
|
-
params: IRotateFunctionTriggerParams,
|
|
36
|
-
): Promise<IRotateFunctionTriggerResponse> =>
|
|
37
|
-
(
|
|
38
|
-
await AbyssReflexCore.axios.post<IRotateFunctionTriggerResponse>(
|
|
39
|
-
`${triggerUrl(params)}/${params.triggerId}/rotate`,
|
|
40
|
-
{},
|
|
41
|
-
)
|
|
42
|
-
).data;
|
|
43
|
-
|
|
44
|
-
/** `DELETE .../trigger/:triggerId`: the address answers `404` from then on. Needs REFLEX_FUNCTION_UPDATE. */
|
|
45
|
-
export const deleteFunctionTrigger = async (
|
|
46
|
-
params: IDeleteFunctionTriggerParams,
|
|
47
|
-
): Promise<IDeleteFunctionTriggerResponse> =>
|
|
48
|
-
(
|
|
49
|
-
await AbyssReflexCore.axios.delete<IDeleteFunctionTriggerResponse>(
|
|
50
|
-
`${triggerUrl(params)}/${params.triggerId}`,
|
|
51
|
-
)
|
|
52
|
-
).data;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export interface IListFunctionPromotionParams {
|
|
2
|
-
applicationId: string;
|
|
3
|
-
functionId: string;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export interface IPromoteFunctionParams {
|
|
7
|
-
applicationId: string;
|
|
8
|
-
functionId: string;
|
|
9
|
-
}
|
|
10
|
-
/** A PRODUCTION environment needs REFLEX_PUBLISH_PRODUCTION on top of REFLEX_PUBLISH. */
|
|
11
|
-
export interface IPromoteFunctionBody {
|
|
12
|
-
versionId: string;
|
|
13
|
-
/** An environment of the application (abyss-main's id). */
|
|
14
|
-
environmentId: string;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface IRollbackFunctionParams {
|
|
18
|
-
applicationId: string;
|
|
19
|
-
functionId: string;
|
|
20
|
-
}
|
|
21
|
-
export interface IRollbackFunctionBody {
|
|
22
|
-
environmentId: string;
|
|
23
|
-
/** A version promoted before in this environment. Absent: the one promoted just before the current one. */
|
|
24
|
-
versionId?: string;
|
|
25
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { TriggerAccessMode } from '../../../enum';
|
|
2
|
-
|
|
3
|
-
export interface IListFunctionTriggerParams {
|
|
4
|
-
applicationId: string;
|
|
5
|
-
functionId: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface ICreateFunctionTriggerParams {
|
|
9
|
-
applicationId: string;
|
|
10
|
-
functionId: string;
|
|
11
|
-
}
|
|
12
|
-
export interface ICreateFunctionTriggerBody {
|
|
13
|
-
/** Segments of `[A-Za-z0-9._~-]` joined by `/`; unique within the application. */
|
|
14
|
-
path: string;
|
|
15
|
-
accessMode: TriggerAccessMode;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface IRotateFunctionTriggerParams {
|
|
19
|
-
applicationId: string;
|
|
20
|
-
functionId: string;
|
|
21
|
-
triggerId: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface IDeleteFunctionTriggerParams {
|
|
25
|
-
applicationId: string;
|
|
26
|
-
functionId: string;
|
|
27
|
-
triggerId: string;
|
|
28
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { IReflexEnvironmentPointer } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export interface IListFunctionPromotionData {
|
|
5
|
-
/** The 200 most recent promotions, newest first; the current ones have `isCurrent`. */
|
|
6
|
-
pointers: IReflexEnvironmentPointer[];
|
|
7
|
-
}
|
|
8
|
-
export type IListFunctionPromotionResponse = IResponse<IListFunctionPromotionData>;
|
|
9
|
-
|
|
10
|
-
export interface IPromoteFunctionData {
|
|
11
|
-
pointer: IReflexEnvironmentPointer;
|
|
12
|
-
}
|
|
13
|
-
export type IPromoteFunctionResponse = IResponse<IPromoteFunctionData>;
|
|
14
|
-
|
|
15
|
-
export interface IRollbackFunctionData {
|
|
16
|
-
pointer: IReflexEnvironmentPointer;
|
|
17
|
-
}
|
|
18
|
-
export type IRollbackFunctionResponse = IResponse<IRollbackFunctionData>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { IReflexTrigger } from '../../models';
|
|
2
|
-
import type { IResponse } from '../response';
|
|
3
|
-
|
|
4
|
-
export interface IListFunctionTriggerData {
|
|
5
|
-
triggers: IReflexTrigger[];
|
|
6
|
-
}
|
|
7
|
-
export type IListFunctionTriggerResponse = IResponse<IListFunctionTriggerData>;
|
|
8
|
-
|
|
9
|
-
export interface ICreateFunctionTriggerData {
|
|
10
|
-
trigger: IReflexTrigger;
|
|
11
|
-
/** The API key (API_KEY) or the signing secret (SIGNATURE), in clear, ONCE. `null` for PUBLIC. */
|
|
12
|
-
secret: string | null;
|
|
13
|
-
}
|
|
14
|
-
export type ICreateFunctionTriggerResponse = IResponse<ICreateFunctionTriggerData>;
|
|
15
|
-
|
|
16
|
-
export interface IRotateFunctionTriggerData {
|
|
17
|
-
trigger: IReflexTrigger;
|
|
18
|
-
/** The new key or signing secret, in clear, ONCE; the previous one stops working at once. */
|
|
19
|
-
secret: string;
|
|
20
|
-
}
|
|
21
|
-
export type IRotateFunctionTriggerResponse = IResponse<IRotateFunctionTriggerData>;
|
|
22
|
-
|
|
23
|
-
export type IDeleteFunctionTriggerData = Record<string, never>;
|
|
24
|
-
export type IDeleteFunctionTriggerResponse = IResponse<IDeleteFunctionTriggerData>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { IReflexAccessDeclaration } from './reflex-definition.model';
|
|
2
|
-
|
|
3
|
-
/** One promotion of a version into an environment of the application. The `isCurrent` one is what runs. */
|
|
4
|
-
export interface IReflexEnvironmentPointer {
|
|
5
|
-
id: string;
|
|
6
|
-
functionId: string;
|
|
7
|
-
/** The environment of the application (abyss-main's id). */
|
|
8
|
-
environmentId: string;
|
|
9
|
-
/** The name of that environment, which the trigger's address carries. */
|
|
10
|
-
environmentSlug: string;
|
|
11
|
-
versionId: string;
|
|
12
|
-
versionNumber: number;
|
|
13
|
-
/** The accesses that were granted when the version was promoted. */
|
|
14
|
-
grants: IReflexAccessDeclaration[];
|
|
15
|
-
isCurrent: boolean;
|
|
16
|
-
promotedByUserId: string;
|
|
17
|
-
promotedAt: Date;
|
|
18
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { TriggerAccessMode, TriggerType } from '../../enum';
|
|
2
|
-
|
|
3
|
-
/** Never carries the key or the signing secret: they are shown once, when created or rotated. */
|
|
4
|
-
export interface IReflexTrigger {
|
|
5
|
-
id: string;
|
|
6
|
-
functionId: string;
|
|
7
|
-
applicationId: string;
|
|
8
|
-
/** The application's slug, first segment of the address (`/<applicationSlug>/<environmentSlug>/<path>`). */
|
|
9
|
-
applicationSlug: string;
|
|
10
|
-
type: TriggerType;
|
|
11
|
-
/** Segments of `[A-Za-z0-9._~-]` joined by `/`, without leading or trailing slash. */
|
|
12
|
-
path: string;
|
|
13
|
-
accessMode: TriggerAccessMode;
|
|
14
|
-
createdByUserId: string;
|
|
15
|
-
createdAt: Date;
|
|
16
|
-
updatedAt: Date;
|
|
17
|
-
}
|