@iii-dev/helpers 0.19.4-alpha.3 → 0.19.4-alpha.4
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.
|
@@ -15,12 +15,12 @@ type AuthInput = {
|
|
|
15
15
|
* middleware.
|
|
16
16
|
*/
|
|
17
17
|
type AuthResult = {
|
|
18
|
-
/** Additional function IDs to allow beyond the `expose_functions` config. */allowed_functions
|
|
19
|
-
forbidden_functions
|
|
20
|
-
allowed_trigger_types?: string[]; /** Whether the worker may register new trigger types. */
|
|
21
|
-
allow_trigger_type_registration
|
|
22
|
-
allow_function_registration?: boolean; /** Arbitrary context forwarded to the middleware function on every invocation. */
|
|
23
|
-
context
|
|
18
|
+
/** Additional function IDs to allow beyond the `expose_functions` config. Defaults to `[]` if omitted. */allowed_functions?: string[]; /** Function IDs to deny even if they match `expose_functions`. Takes precedence over allowed. Defaults to `[]` if omitted. */
|
|
19
|
+
forbidden_functions?: string[]; /** Trigger type IDs the worker may register triggers for. When omitted, all types are allowed. */
|
|
20
|
+
allowed_trigger_types?: string[]; /** Whether the worker may register new trigger types. Defaults to `false` if omitted. */
|
|
21
|
+
allow_trigger_type_registration?: boolean; /** Whether the worker may register new functions. Defaults to `true` if omitted. */
|
|
22
|
+
allow_function_registration?: boolean; /** Arbitrary context forwarded to the middleware function on every invocation. Defaults to `{}` if omitted. */
|
|
23
|
+
context?: Record<string, unknown>; /** Optional prefix applied to all function IDs registered by this worker. */
|
|
24
24
|
function_registration_prefix?: string;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
@@ -15,12 +15,12 @@ type AuthInput = {
|
|
|
15
15
|
* middleware.
|
|
16
16
|
*/
|
|
17
17
|
type AuthResult = {
|
|
18
|
-
/** Additional function IDs to allow beyond the `expose_functions` config. */allowed_functions
|
|
19
|
-
forbidden_functions
|
|
20
|
-
allowed_trigger_types?: string[]; /** Whether the worker may register new trigger types. */
|
|
21
|
-
allow_trigger_type_registration
|
|
22
|
-
allow_function_registration?: boolean; /** Arbitrary context forwarded to the middleware function on every invocation. */
|
|
23
|
-
context
|
|
18
|
+
/** Additional function IDs to allow beyond the `expose_functions` config. Defaults to `[]` if omitted. */allowed_functions?: string[]; /** Function IDs to deny even if they match `expose_functions`. Takes precedence over allowed. Defaults to `[]` if omitted. */
|
|
19
|
+
forbidden_functions?: string[]; /** Trigger type IDs the worker may register triggers for. When omitted, all types are allowed. */
|
|
20
|
+
allowed_trigger_types?: string[]; /** Whether the worker may register new trigger types. Defaults to `false` if omitted. */
|
|
21
|
+
allow_trigger_type_registration?: boolean; /** Whether the worker may register new functions. Defaults to `true` if omitted. */
|
|
22
|
+
allow_function_registration?: boolean; /** Arbitrary context forwarded to the middleware function on every invocation. Defaults to `{}` if omitted. */
|
|
23
|
+
context?: Record<string, unknown>; /** Optional prefix applied to all function IDs registered by this worker. */
|
|
24
24
|
function_registration_prefix?: string;
|
|
25
25
|
};
|
|
26
26
|
/**
|