@novu/framework 2.10.1-alpha.7 → 2.11.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/cjs/{health-check.types-S8oS3AQZ.d.cts → health-check.types-uaDLF5bo.d.cts} +3 -2
- package/dist/cjs/{index-DtCBrkhW.d.cts → index-D-SLxj--.d.cts} +28 -2
- package/dist/cjs/index.cjs +82 -82
- package/dist/cjs/index.d.cts +3 -3
- package/dist/cjs/internal/index.cjs +1 -1
- package/dist/cjs/internal/index.d.cts +3 -3
- package/dist/cjs/jsx-dev-runtime.cjs +1 -1
- package/dist/cjs/jsx-runtime.cjs +1 -1
- package/dist/cjs/servers/express.cjs +90 -90
- package/dist/cjs/servers/express.d.cts +4 -4
- package/dist/cjs/servers/h3.cjs +86 -86
- package/dist/cjs/servers/h3.d.cts +4 -4
- package/dist/cjs/servers/lambda.cjs +86 -86
- package/dist/cjs/servers/lambda.d.cts +5 -5
- package/dist/cjs/servers/nest.cjs +90 -90
- package/dist/cjs/servers/nest.d.cts +6 -6
- package/dist/cjs/servers/next.cjs +86 -86
- package/dist/cjs/servers/next.d.cts +4 -4
- package/dist/cjs/servers/nuxt.cjs +86 -86
- package/dist/cjs/servers/nuxt.d.cts +4 -4
- package/dist/cjs/servers/remix.cjs +86 -86
- package/dist/cjs/servers/remix.d.cts +4 -4
- package/dist/cjs/servers/sveltekit.cjs +86 -86
- package/dist/cjs/servers/sveltekit.d.cts +4 -4
- package/dist/cjs/step-resolver.cjs +1 -1
- package/dist/cjs/step-resolver.d.cts +2 -2
- package/dist/cjs/{subscriber.types-DgRgSKMw.d.cts → subscriber.types-PRaHFLJu.d.cts} +8 -0
- package/dist/esm/{chunk-U3IL7QCI.js → chunk-DKQLYSZS.js} +1 -1
- package/dist/esm/chunk-FRWG7YTE.js +1 -0
- package/dist/esm/{chunk-T2VIX2ZH.js → chunk-K7PM3FEJ.js} +11 -11
- package/dist/esm/chunk-LJUUDK2J.js +130 -0
- package/dist/esm/{chunk-6GCCKYZC.js → chunk-N4PZBM53.js} +1 -1
- package/dist/esm/{chunk-CBLKARLC.js → chunk-QTWEINJ4.js} +1 -1
- package/dist/esm/{health-check.types-C5lg4csi.d.ts → health-check.types-XZwesagD.d.ts} +3 -2
- package/dist/esm/{index-CAMe0gXf.d.ts → index-dylq0Kmx.d.ts} +28 -2
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +1 -1
- package/dist/esm/internal/index.d.ts +3 -3
- package/dist/esm/internal/index.js +1 -1
- package/dist/esm/jsx-dev-runtime.js +1 -1
- package/dist/esm/jsx-runtime.js +1 -1
- package/dist/esm/servers/express.d.ts +4 -4
- package/dist/esm/servers/express.js +1 -1
- package/dist/esm/servers/h3.d.ts +4 -4
- package/dist/esm/servers/h3.js +1 -1
- package/dist/esm/servers/lambda.d.ts +5 -5
- package/dist/esm/servers/lambda.js +1 -1
- package/dist/esm/servers/nest.d.ts +6 -6
- package/dist/esm/servers/nest.js +1 -1
- package/dist/esm/servers/next.d.ts +4 -4
- package/dist/esm/servers/next.js +1 -1
- package/dist/esm/servers/nuxt.d.ts +4 -4
- package/dist/esm/servers/nuxt.js +1 -1
- package/dist/esm/servers/remix.d.ts +4 -4
- package/dist/esm/servers/remix.js +1 -1
- package/dist/esm/servers/sveltekit.d.ts +4 -4
- package/dist/esm/servers/sveltekit.js +1 -1
- package/dist/esm/step-resolver.d.ts +2 -2
- package/dist/esm/step-resolver.js +1 -1
- package/dist/esm/{subscriber.types-CbMgjzR-.d.ts → subscriber.types-CC7F0JO_.d.ts} +8 -0
- package/dist/esm/validators.js +1 -1
- package/package.json +5 -5
- package/dist/esm/chunk-E6L6ATIB.js +0 -130
- package/dist/esm/chunk-EWC7I6UD.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as ContextPayload, c as ConditionalPartial, P as PickRequiredKeys, d as Step, e as Prettify, S as Subscriber, E as EnvironmentSystemVariables, C as ContextResolved, D as DeepPartial$1, f as ChannelStepEnum, A as ActionStepEnum, g as Awaitable, W as WithPassthrough, h as StepOptions } from './subscriber.types-
|
|
1
|
+
import { b as ContextPayload, c as ConditionalPartial, P as PickRequiredKeys, d as Step, e as Prettify, S as Subscriber, E as EnvironmentSystemVariables, C as ContextResolved, D as DeepPartial$1, f as ChannelStepEnum, A as ActionStepEnum, g as Awaitable, W as WithPassthrough, h as StepOptions } from './subscriber.types-PRaHFLJu.cjs';
|
|
2
2
|
import { S as Schema, J as JsonSchema } from './base.schema.types-BApIn9jr.cjs';
|
|
3
3
|
|
|
4
4
|
declare enum ChannelTypeEnum {
|
|
@@ -66,7 +66,8 @@ declare enum ChatProviderIdEnum {
|
|
|
66
66
|
GetStream = "getstream",
|
|
67
67
|
RocketChat = "rocket-chat",
|
|
68
68
|
WhatsAppBusiness = "whatsapp-business",
|
|
69
|
-
ChatWebhook = "chat-webhook"
|
|
69
|
+
ChatWebhook = "chat-webhook",
|
|
70
|
+
Telegram = "telegram"
|
|
70
71
|
}
|
|
71
72
|
declare enum PushProviderIdEnum {
|
|
72
73
|
FCM = "fcm",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChatElement, Emoji, CardElement } from 'chat';
|
|
2
|
-
import { T as TriggerRecipientsPayload, C as ClientOptions, W as Workflow, H as HealthCheck, e as DiscoverOutput, i as Event, n as ExecuteOutput, d as CodeResult, j as EventTriggerParams, m as Execute, t as WorkflowOptions } from './health-check.types-
|
|
3
|
-
import { g as Awaitable } from './subscriber.types-
|
|
2
|
+
import { T as TriggerRecipientsPayload, C as ClientOptions, W as Workflow, H as HealthCheck, e as DiscoverOutput, i as Event, n as ExecuteOutput, d as CodeResult, j as EventTriggerParams, m as Execute, t as WorkflowOptions } from './health-check.types-uaDLF5bo.cjs';
|
|
3
|
+
import { g as Awaitable } from './subscriber.types-PRaHFLJu.cjs';
|
|
4
4
|
import { S as Schema, a as FromSchema, F as FromSchemaUnvalidated } from './base.schema.types-BApIn9jr.cjs';
|
|
5
5
|
import './step-resolver.cjs';
|
|
6
6
|
|
|
@@ -85,6 +85,27 @@ interface AgentHistoryEntry {
|
|
|
85
85
|
};
|
|
86
86
|
createdAt: string;
|
|
87
87
|
}
|
|
88
|
+
/** Resolved inbound email domain metadata (present when `platform === 'email'`). */
|
|
89
|
+
interface AgentEmailDomainContext {
|
|
90
|
+
id: string;
|
|
91
|
+
name: string;
|
|
92
|
+
data?: Record<string, string>;
|
|
93
|
+
}
|
|
94
|
+
/** Resolved inbound email route metadata (present when `platform === 'email'`). */
|
|
95
|
+
interface AgentEmailRouteContext {
|
|
96
|
+
address: string;
|
|
97
|
+
data?: Record<string, string>;
|
|
98
|
+
}
|
|
99
|
+
/** Resolved inbound email envelope (present when `platform === 'email'`). */
|
|
100
|
+
interface AgentEmailContext {
|
|
101
|
+
domain?: AgentEmailDomainContext;
|
|
102
|
+
route?: AgentEmailRouteContext;
|
|
103
|
+
/**
|
|
104
|
+
* Platform-native Message-ID of the message that started this email thread.
|
|
105
|
+
* Equals the current message ID on the first message of a thread.
|
|
106
|
+
*/
|
|
107
|
+
rootMessageId?: string;
|
|
108
|
+
}
|
|
88
109
|
/** Platform-specific identifiers for the thread and channel. */
|
|
89
110
|
interface AgentPlatformContext {
|
|
90
111
|
/** Platform-native thread ID (e.g. Slack thread `ts`, Teams conversation ID). */
|
|
@@ -93,6 +114,10 @@ interface AgentPlatformContext {
|
|
|
93
114
|
channelId: string;
|
|
94
115
|
/** Whether the message arrived in a direct message rather than a shared channel. */
|
|
95
116
|
isDM: boolean;
|
|
117
|
+
/** Platform-native raw message payload from the chat SDK adapter (e.g. email `NovuEmailRawMessage`). */
|
|
118
|
+
message?: unknown;
|
|
119
|
+
/** Resolved inbound email routing metadata extracted from the raw payload. */
|
|
120
|
+
email?: AgentEmailContext;
|
|
96
121
|
}
|
|
97
122
|
interface FileRef {
|
|
98
123
|
filename: string;
|
|
@@ -118,6 +143,7 @@ interface FileRef {
|
|
|
118
143
|
* - `ChatElement` — interactive card built with Card(), Button(), etc.
|
|
119
144
|
*
|
|
120
145
|
* For file attachments, pass a `files` array as the second argument to reply()/edit().
|
|
146
|
+
* Cards and files can be combined on platforms that support it (e.g. WhatsApp sends media then the card).
|
|
121
147
|
*/
|
|
122
148
|
type MessageContent = string | ChatElement;
|
|
123
149
|
/** Normalized content shape sent over HTTP to the reply endpoint. */
|