@novu/framework 0.24.3-alpha.11 → 0.24.3-alpha.12
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/express.d.ts +1 -1
- package/dist/express.js +9 -9
- package/dist/h3.d.ts +1 -1
- package/dist/h3.js +9 -9
- package/dist/{handler-y6PZIhGI.d.ts → handler-PIXNhv7t.d.ts} +9 -6
- package/dist/index.d.ts +3 -3
- package/dist/index.js +14 -14
- package/dist/next.d.ts +1 -1
- package/dist/next.js +9 -9
- package/dist/nuxt.d.ts +1 -1
- package/dist/nuxt.js +9 -9
- package/dist/remix.d.ts +1 -1
- package/dist/remix.js +13 -13
- package/dist/sveltekit.d.ts +1 -1
- package/dist/sveltekit.js +13 -13
- package/package.json +2 -2
|
@@ -8,20 +8,23 @@ type CodeResult = {
|
|
|
8
8
|
|
|
9
9
|
type ClientOptions = {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* @deprecated use `secretKey` instead
|
|
12
|
+
*/
|
|
13
|
+
apiKey?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Specify your Novu secret key, to secure the Bridge Endpoint, and Novu API communication.
|
|
12
16
|
* Novu communicates securely with your endpoint using a signed HMAC header,
|
|
13
17
|
* ensuring that only trusted requests from Novu are actioned by your Bridge API.
|
|
14
|
-
* The
|
|
18
|
+
* The secret key is used to sign the HMAC header.
|
|
15
19
|
*/
|
|
16
|
-
|
|
20
|
+
secretKey?: string;
|
|
17
21
|
/**
|
|
18
22
|
* Explicitly use HMAC signature verification.
|
|
19
23
|
* Setting this to `false` will enable Novu to communicate with your Bridge API
|
|
20
24
|
* without requiring a valid HMAC signature.
|
|
21
25
|
* This is useful for local development and testing.
|
|
22
26
|
*
|
|
23
|
-
*
|
|
24
|
-
* to ensure that only trusted requests from Novu are actioned by your Bridge API.
|
|
27
|
+
* In production you must specify an `secretKey` and set this to `true`.
|
|
25
28
|
*
|
|
26
29
|
* Defaults to true.
|
|
27
30
|
*/
|
|
@@ -3170,7 +3173,7 @@ type HealthCheck = {
|
|
|
3170
3173
|
declare class Client {
|
|
3171
3174
|
private discoveredWorkflows;
|
|
3172
3175
|
private templateEngine;
|
|
3173
|
-
|
|
3176
|
+
secretKey?: string;
|
|
3174
3177
|
version: string;
|
|
3175
3178
|
strictAuthentication: boolean;
|
|
3176
3179
|
constructor(options?: ClientOptions);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as Schema, J as JsonSchema, F as FromSchema, E as Execute, W as WorkflowOptions, D as DiscoverWorkflowOutput } from './handler-
|
|
2
|
-
export { A as ActionStep, Y as ActionStepEnum, R as Awaitable, p as ChannelStep, X as ChannelStepEnum, v as ChatOutput, w as ChatResult, C as Client, c as ClientOptions, b as CodeResult, o as CustomStep, y as DelayOutput, z as DelayResult, K as DigestOutput, L as DigestResult, g as DiscoverOutput, e as DiscoverProviderOutput, f as DiscoverStepOutput, Q as Either, q as EmailOutput, r as EmailResult, h as Event, U as ExecuteInput, k as ExecuteOutput, j as ExecuteOutputMetadata, H as HealthCheck, I as InAppOutput, x as InAppResult, n as JobStatusEnum, N as NovuRequestHandler, P as PushOutput, u as PushResult, a as ServeHandlerOptions, V as Skip, s as SmsOutput, t as SmsResult, i as State, M as Step, m as StepOptions, d as StepType, O as Subscriber, l as SupportedFrameworkName, T as TriggerEvent, B as digestRegularOutput, G as digestTimedOutput } from './handler-
|
|
1
|
+
import { S as Schema, J as JsonSchema, F as FromSchema, E as Execute, W as WorkflowOptions, D as DiscoverWorkflowOutput } from './handler-PIXNhv7t.js';
|
|
2
|
+
export { A as ActionStep, Y as ActionStepEnum, R as Awaitable, p as ChannelStep, X as ChannelStepEnum, v as ChatOutput, w as ChatResult, C as Client, c as ClientOptions, b as CodeResult, o as CustomStep, y as DelayOutput, z as DelayResult, K as DigestOutput, L as DigestResult, g as DiscoverOutput, e as DiscoverProviderOutput, f as DiscoverStepOutput, Q as Either, q as EmailOutput, r as EmailResult, h as Event, U as ExecuteInput, k as ExecuteOutput, j as ExecuteOutputMetadata, H as HealthCheck, I as InAppOutput, x as InAppResult, n as JobStatusEnum, N as NovuRequestHandler, P as PushOutput, u as PushResult, a as ServeHandlerOptions, V as Skip, s as SmsOutput, t as SmsResult, i as State, M as Step, m as StepOptions, d as StepType, O as Subscriber, l as SupportedFrameworkName, T as TriggerEvent, B as digestRegularOutput, G as digestTimedOutput } from './handler-PIXNhv7t.js';
|
|
3
3
|
import { ValidateFunction as ValidateFunction$1 } from 'ajv';
|
|
4
4
|
import { ParseReturnType } from 'zod';
|
|
5
5
|
import 'json-schema-to-ts';
|
|
@@ -41,7 +41,7 @@ declare enum ErrorCodeEnum {
|
|
|
41
41
|
EXECUTION_STATE_CONTROL_INVALID_ERROR = "ExecutionStateControlInvalidError",
|
|
42
42
|
METHOD_NOT_ALLOWED_ERROR = "MethodNotAllowedError",
|
|
43
43
|
INVALID_ACTION_ERROR = "InvalidActionError",
|
|
44
|
-
|
|
44
|
+
MISSING_SECRET_KEY_ERROR = "MissingSecretKeyError",
|
|
45
45
|
SIGNATURE_MISMATCH_ERROR = "SignatureMismatchError",
|
|
46
46
|
SIGNATURE_NOT_FOUND_ERROR = "SignatureNotFoundError",
|
|
47
47
|
SIGNATURE_INVALID_ERROR = "SignatureInvalidError",
|