@novu/framework 2.10.1-alpha.1 → 2.10.1-alpha.2

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.
Files changed (40) hide show
  1. package/dist/cjs/{index-naFCU9MB.d.cts → index-gi0_Wcu3.d.cts} +98 -5
  2. package/dist/cjs/index.cjs +52 -52
  3. package/dist/cjs/index.d.cts +1 -1
  4. package/dist/cjs/servers/express.cjs +52 -52
  5. package/dist/cjs/servers/express.d.cts +2 -2
  6. package/dist/cjs/servers/h3.cjs +52 -52
  7. package/dist/cjs/servers/h3.d.cts +2 -2
  8. package/dist/cjs/servers/lambda.cjs +52 -52
  9. package/dist/cjs/servers/lambda.d.cts +2 -2
  10. package/dist/cjs/servers/nest.cjs +52 -52
  11. package/dist/cjs/servers/nest.d.cts +2 -2
  12. package/dist/cjs/servers/next.cjs +52 -52
  13. package/dist/cjs/servers/next.d.cts +2 -2
  14. package/dist/cjs/servers/nuxt.cjs +52 -52
  15. package/dist/cjs/servers/nuxt.d.cts +2 -2
  16. package/dist/cjs/servers/remix.cjs +52 -52
  17. package/dist/cjs/servers/remix.d.cts +2 -2
  18. package/dist/cjs/servers/sveltekit.cjs +52 -52
  19. package/dist/cjs/servers/sveltekit.d.cts +2 -2
  20. package/dist/esm/{chunk-TW2732SM.js → chunk-FURRAVE4.js} +63 -63
  21. package/dist/esm/{index-cfmN-nqZ.d.ts → index-DBjXwxNK.d.ts} +98 -5
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/esm/servers/express.d.ts +2 -2
  25. package/dist/esm/servers/express.js +1 -1
  26. package/dist/esm/servers/h3.d.ts +2 -2
  27. package/dist/esm/servers/h3.js +1 -1
  28. package/dist/esm/servers/lambda.d.ts +2 -2
  29. package/dist/esm/servers/lambda.js +1 -1
  30. package/dist/esm/servers/nest.d.ts +2 -2
  31. package/dist/esm/servers/nest.js +1 -1
  32. package/dist/esm/servers/next.d.ts +2 -2
  33. package/dist/esm/servers/next.js +1 -1
  34. package/dist/esm/servers/nuxt.d.ts +2 -2
  35. package/dist/esm/servers/nuxt.js +1 -1
  36. package/dist/esm/servers/remix.d.ts +2 -2
  37. package/dist/esm/servers/remix.js +1 -1
  38. package/dist/esm/servers/sveltekit.d.ts +2 -2
  39. package/dist/esm/servers/sveltekit.js +1 -1
  40. package/package.json +1 -1
@@ -1,20 +1,34 @@
1
- import { ChatElement } from 'chat';
1
+ import { ChatElement, CardElement } from 'chat';
2
2
  import { 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-zMcfbkrA.js';
3
3
  import { g as Awaitable } from './subscriber.types-B0sKq6v3.js';
4
4
  import { S as Schema, a as FromSchema, F as FromSchemaUnvalidated } from './base.schema.types-BApIn9jr.js';
5
5
  import './step-resolver.js';
6
6
 
7
+ declare enum AgentEventEnum {
8
+ ON_MESSAGE = "onMessage",
9
+ ON_ACTION = "onAction",
10
+ ON_RESOLVE = "onResolve",
11
+ ON_REACTION = "onReaction"
12
+ }
7
13
  interface AgentMessageAuthor {
8
14
  userId: string;
9
15
  fullName: string;
10
16
  userName: string;
11
17
  isBot: boolean | 'unknown';
12
18
  }
19
+ interface AgentAttachment {
20
+ type: string;
21
+ url?: string;
22
+ name?: string;
23
+ mimeType?: string;
24
+ size?: number;
25
+ }
13
26
  interface AgentMessage {
14
27
  text: string;
15
28
  platformMessageId: string;
16
29
  author: AgentMessageAuthor;
17
30
  timestamp: string;
31
+ attachments?: AgentAttachment[];
18
32
  }
19
33
  interface AgentConversation {
20
34
  identifier: string;
@@ -38,6 +52,7 @@ interface AgentHistoryEntry {
38
52
  role: string;
39
53
  type: string;
40
54
  content: string;
55
+ richContent?: Record<string, unknown>;
41
56
  senderName?: string;
42
57
  signalData?: {
43
58
  type: string;
@@ -59,7 +74,7 @@ interface FileRef {
59
74
  url?: string;
60
75
  }
61
76
  /**
62
- * Content accepted by ctx.reply() and ctx.update().
77
+ * Content accepted by ctx.reply() and handle.edit().
63
78
  *
64
79
  * - `string` — plain text
65
80
  * - `{ markdown, files? }` — markdown-formatted text, optionally with file attachments
@@ -70,6 +85,13 @@ type MessageContent = string | {
70
85
  markdown: string;
71
86
  files?: FileRef[];
72
87
  } | ChatElement;
88
+ /** Normalized content shape sent over HTTP to the reply endpoint. */
89
+ interface ReplyContent {
90
+ text?: string;
91
+ markdown?: string;
92
+ card?: CardElement;
93
+ files?: FileRef[];
94
+ }
73
95
  interface AgentAction {
74
96
  actionId: string;
75
97
  value?: string;
@@ -82,6 +104,19 @@ interface AgentReaction {
82
104
  added: boolean;
83
105
  message: AgentMessage | null;
84
106
  }
107
+ /**
108
+ * Handle to a message posted via ctx.reply(). Mirrors the chat SDK's `SentMessage`
109
+ * primitive: edits apply in-place on the platform (same platform message, content changes)
110
+ * and never post a new message.
111
+ */
112
+ interface ReplyHandle {
113
+ /** Platform-native message id (e.g. Slack ts, Teams activityId). */
114
+ readonly messageId: string;
115
+ /** Platform-native thread id this message lives in. */
116
+ readonly platformThreadId: string;
117
+ /** Edit this message in place with new content. Returns the same handle for chaining. */
118
+ edit(content: MessageContent): Promise<ReplyHandle>;
119
+ }
85
120
  interface AgentContext {
86
121
  readonly event: string;
87
122
  readonly action: AgentAction | null;
@@ -92,8 +127,16 @@ interface AgentContext {
92
127
  readonly history: AgentHistoryEntry[];
93
128
  readonly platform: string;
94
129
  readonly platformContext: AgentPlatformContext;
95
- reply(content: MessageContent): Promise<void>;
96
- update(content: MessageContent): Promise<void>;
130
+ /**
131
+ * Post a message to the conversation and return a handle to it.
132
+ * Use the handle to edit the message in place later — no second post.
133
+ *
134
+ * @example
135
+ * const msg = await ctx.reply('Thinking…');
136
+ * // ... do work ...
137
+ * await msg.edit('Here is the answer');
138
+ */
139
+ reply(content: MessageContent): Promise<ReplyHandle>;
97
140
  resolve(summary?: string): void;
98
141
  metadata: {
99
142
  set(key: string, value: unknown): void;
@@ -113,6 +156,56 @@ interface Agent {
113
156
  id: string;
114
157
  handlers: AgentHandlers;
115
158
  }
159
+ interface AgentBridgeRequest {
160
+ version: number;
161
+ timestamp: string;
162
+ deliveryId: string;
163
+ event: string;
164
+ agentId: string;
165
+ replyUrl: string;
166
+ conversationId: string;
167
+ integrationIdentifier: string;
168
+ action: AgentAction | null;
169
+ message: AgentMessage | null;
170
+ reaction: AgentReaction | null;
171
+ conversation: AgentConversation;
172
+ subscriber: AgentSubscriber | null;
173
+ history: AgentHistoryEntry[];
174
+ platform: string;
175
+ platformContext: AgentPlatformContext;
176
+ }
177
+ type MetadataSignal = {
178
+ type: 'metadata';
179
+ key: string;
180
+ value: unknown;
181
+ };
182
+ type TriggerSignal = {
183
+ type: 'trigger';
184
+ workflowId: string;
185
+ to?: string;
186
+ payload?: Record<string, unknown>;
187
+ };
188
+ type Signal = MetadataSignal | TriggerSignal;
189
+ /** In-place edit of a previously posted agent message. Identified by platform message id. */
190
+ interface EditPayload {
191
+ messageId: string;
192
+ content: ReplyContent;
193
+ }
194
+ interface AgentReplyPayload {
195
+ conversationId: string;
196
+ integrationIdentifier: string;
197
+ reply?: ReplyContent;
198
+ edit?: EditPayload;
199
+ resolve?: {
200
+ summary?: string;
201
+ };
202
+ signals?: Signal[];
203
+ }
204
+ /** Shape returned by /agents/:id/reply when a reply or edit was delivered. */
205
+ interface SentMessageInfo {
206
+ messageId: string;
207
+ platformThreadId: string;
208
+ }
116
209
 
117
210
  /**
118
211
  * Define a new conversational agent.
@@ -265,4 +358,4 @@ declare class NovuRequestHandler<Input extends any[] = any[], Output = any> {
265
358
  */
266
359
  declare function workflow<T_PayloadSchema extends Schema, T_ControlSchema extends Schema, T_EnvSchema extends Schema, T_PayloadValidated extends Record<string, unknown> = FromSchema<T_PayloadSchema>, T_PayloadUnvalidated extends Record<string, unknown> = FromSchemaUnvalidated<T_PayloadSchema>, T_Controls extends Record<string, unknown> = FromSchema<T_ControlSchema>, T_Env extends Record<string, unknown> = FromSchema<T_EnvSchema>>(workflowId: string, execute: Execute<T_PayloadValidated, T_Controls, T_Env>, workflowOptions?: WorkflowOptions<T_PayloadSchema, T_ControlSchema, T_EnvSchema>): Workflow<T_PayloadUnvalidated>;
267
360
 
268
- export { type Agent as A, Client as C, type FileRef as F, type INovuRequestHandlerOptions as I, type MessageContent as M, NovuRequestHandler as N, type ServeHandlerOptions as S, type AgentContext as a, type AgentHandlers as b, type AgentReaction as c, agent as d, workflow as w };
361
+ export { type Agent as A, Client as C, type EditPayload as E, type FileRef as F, type INovuRequestHandlerOptions as I, type MessageContent as M, NovuRequestHandler as N, type ReplyContent as R, type ServeHandlerOptions as S, type TriggerSignal as T, type AgentAction as a, type AgentAttachment as b, type AgentBridgeRequest as c, type AgentContext as d, type AgentConversation as e, AgentEventEnum as f, type AgentHandlers as g, type AgentHistoryEntry as h, type AgentMessage as i, type AgentMessageAuthor as j, type AgentPlatformContext as k, type AgentReaction as l, type AgentReplyPayload as m, type AgentSubscriber as n, type MetadataSignal as o, type ReplyHandle as p, type SentMessageInfo as q, type Signal as r, agent as s, workflow as w };
@@ -1,4 +1,4 @@
1
- export { A as Agent, a as AgentContext, b as AgentHandlers, c as AgentReaction, C as Client, F as FileRef, M as MessageContent, N as NovuRequestHandler, S as ServeHandlerOptions, d as agent, w as workflow } from './index-cfmN-nqZ.js';
1
+ export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentEventEnum, g as AgentHandlers, h as AgentHistoryEntry, i as AgentMessage, j as AgentMessageAuthor, k as AgentPlatformContext, l as AgentReaction, m as AgentReplyPayload, n as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, o as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, p as ReplyHandle, q as SentMessageInfo, S as ServeHandlerOptions, r as Signal, T as TriggerSignal, s as agent, w as workflow } from './index-DBjXwxNK.js';
2
2
  export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from './health-check.types-zMcfbkrA.js';
3
3
  export { Actions, Button, Card, CardChild, CardElement, CardLink, CardText, Divider, Select, SelectOption, TextInput } from 'chat';
4
4
  export { AnyStepResolver, ChatStepResolver, EmailStepResolver, InAppStepResolver, PushStepResolver, SmsStepResolver, StepResolverContext, step } from './step-resolver.js';
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- import{b,c,d,e,f,g,h,i,j,k,l,m,n as p}from"./chunk-TW2732SM.js";import"./chunk-T2VIX2ZH.js";import{a as q}from"./chunk-2M25EATE.js";import"./chunk-U3IL7QCI.js";import{O as o}from"./chunk-6GCCKYZC.js";import{a as n}from"./chunk-CBLKARLC.js";import{f as a}from"./chunk-EWC7I6UD.js";import"./chunk-52LSX2V5.js";export{c as Actions,d as Button,e as Card,f as CardLink,g as CardText,b as Client,a as CronExpression,h as Divider,m as NovuRequestHandler,i as Select,j as SelectOption,o as SeverityLevelEnum,k as TextInput,l as agent,n as providerSchemas,q as step,p as workflow};
1
+ import{b,c,d,e,f,g,h,i,j,k,l,m,n,o as q}from"./chunk-FURRAVE4.js";import"./chunk-T2VIX2ZH.js";import{a as r}from"./chunk-2M25EATE.js";import"./chunk-U3IL7QCI.js";import{O as p}from"./chunk-6GCCKYZC.js";import{a as o}from"./chunk-CBLKARLC.js";import{f as a}from"./chunk-EWC7I6UD.js";import"./chunk-52LSX2V5.js";export{c as Actions,m as AgentEventEnum,d as Button,e as Card,f as CardLink,g as CardText,b as Client,a as CronExpression,h as Divider,n as NovuRequestHandler,i as Select,j as SelectOption,p as SeverityLevelEnum,k as TextInput,l as agent,o as providerSchemas,r as step,q as workflow};
@@ -1,5 +1,5 @@
1
- import { S as ServeHandlerOptions } from '../index-cfmN-nqZ.js';
2
- export { A as Agent, a as AgentContext, b as AgentHandlers, c as AgentReaction, C as Client, F as FileRef, M as MessageContent, N as NovuRequestHandler, d as agent, w as workflow } from '../index-cfmN-nqZ.js';
1
+ import { S as ServeHandlerOptions } from '../index-DBjXwxNK.js';
2
+ export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentEventEnum, g as AgentHandlers, h as AgentHistoryEntry, i as AgentMessage, j as AgentMessageAuthor, k as AgentPlatformContext, l as AgentReaction, m as AgentReplyPayload, n as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, o as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, p as ReplyHandle, q as SentMessageInfo, r as Signal, T as TriggerSignal, s as agent, w as workflow } from '../index-DBjXwxNK.js';
3
3
  export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-zMcfbkrA.js';
4
4
  export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-B0sKq6v3.js';
5
5
  import { S as SupportedFrameworkName } from '../server.types-BRWsA1CA.js';
@@ -1 +1 @@
1
- import{b as h,c,d as m,e as f,f as H,g as v,h as w,i as E,j as S,k as x,l as A,m as a,n as V}from"../chunk-TW2732SM.js";import"../chunk-T2VIX2ZH.js";import{a as b}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as R}from"../chunk-6GCCKYZC.js";import{a as N}from"../chunk-CBLKARLC.js";import{f as y}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var l="express",$=p=>new a({frameworkName:l,...p,handler:(t,o)=>({body:()=>t.body,headers:e=>{let r=t.headers[e];return Array.isArray(r)?r[0]:r},method:()=>t.method||"GET",url:()=>{let e=t.headers.host||"",r=e!=null&&e.includes("://")?"":`${t.protocol||"https"}://`;return new URL(t.originalUrl||t.url||"",`${r}${e||""}`)},queryString:e=>{let r=t.query[e];return Array.isArray(r)?r[0]:r},transformResponse:({body:e,headers:r,status:s})=>(Object.entries(r).forEach(([n,d])=>{o.setHeader(n,d)}),o.status(s).send(e))})}).createHandler();export{c as Actions,m as Button,f as Card,H as CardLink,v as CardText,h as Client,y as CronExpression,w as Divider,a as NovuRequestHandler,E as Select,S as SelectOption,R as SeverityLevelEnum,x as TextInput,A as agent,l as frameworkName,N as providerSchemas,$ as serve,b as step,V as workflow};
1
+ import{b as h,c,d as m,e as f,f as H,g as v,h as w,i as E,j as S,k as x,l as A,m as N,n as a,o as b}from"../chunk-FURRAVE4.js";import"../chunk-T2VIX2ZH.js";import{a as k}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as V}from"../chunk-6GCCKYZC.js";import{a as R}from"../chunk-CBLKARLC.js";import{f as y}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var l="express",i=p=>new a({frameworkName:l,...p,handler:(t,o)=>({body:()=>t.body,headers:e=>{let r=t.headers[e];return Array.isArray(r)?r[0]:r},method:()=>t.method||"GET",url:()=>{let e=t.headers.host||"",r=e!=null&&e.includes("://")?"":`${t.protocol||"https"}://`;return new URL(t.originalUrl||t.url||"",`${r}${e||""}`)},queryString:e=>{let r=t.query[e];return Array.isArray(r)?r[0]:r},transformResponse:({body:e,headers:r,status:s})=>(Object.entries(r).forEach(([n,d])=>{o.setHeader(n,d)}),o.status(s).send(e))})}).createHandler();export{c as Actions,N as AgentEventEnum,m as Button,f as Card,H as CardLink,v as CardText,h as Client,y as CronExpression,w as Divider,a as NovuRequestHandler,E as Select,S as SelectOption,V as SeverityLevelEnum,x as TextInput,A as agent,l as frameworkName,R as providerSchemas,i as serve,k as step,b as workflow};
@@ -1,7 +1,7 @@
1
1
  import * as h3 from 'h3';
2
2
  import { H3Event } from 'h3';
3
- import { S as ServeHandlerOptions } from '../index-cfmN-nqZ.js';
4
- export { A as Agent, a as AgentContext, b as AgentHandlers, c as AgentReaction, C as Client, F as FileRef, M as MessageContent, N as NovuRequestHandler, d as agent, w as workflow } from '../index-cfmN-nqZ.js';
3
+ import { S as ServeHandlerOptions } from '../index-DBjXwxNK.js';
4
+ export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentEventEnum, g as AgentHandlers, h as AgentHistoryEntry, i as AgentMessage, j as AgentMessageAuthor, k as AgentPlatformContext, l as AgentReaction, m as AgentReplyPayload, n as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, o as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, p as ReplyHandle, q as SentMessageInfo, r as Signal, T as TriggerSignal, s as agent, w as workflow } from '../index-DBjXwxNK.js';
5
5
  export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-zMcfbkrA.js';
6
6
  export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-B0sKq6v3.js';
7
7
  import { S as SupportedFrameworkName } from '../server.types-BRWsA1CA.js';
@@ -1 +1 @@
1
- import{b as y,c as H,d as S,e as i,f,g,h as N,i as w,j as c,k as E,l as k,m as t,n as b}from"../chunk-TW2732SM.js";import"../chunk-T2VIX2ZH.js";import{a as q}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O}from"../chunk-6GCCKYZC.js";import{a as x}from"../chunk-CBLKARLC.js";import{f as l}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";import{getHeader as o,getQuery as a,readBody as p,send as n,setHeaders as m}from"h3";var h="h3",B=d=>new t({frameworkName:h,...d,handler:r=>({body:()=>p(r),headers:e=>o(r,e),method:()=>r.method,url:()=>new URL(String(r.path),`${process.env.NODE_ENV==="development"?"http":"https"}://${String(o(r,"host"))}`),queryString:e=>String(a(r)[e]),transformResponse:e=>{let{res:s}=r.node;return s.statusCode=e.status,m(r,e.headers),n(r,e.body)}})}).createHandler();export{H as Actions,S as Button,i as Card,f as CardLink,g as CardText,y as Client,l as CronExpression,N as Divider,t as NovuRequestHandler,w as Select,c as SelectOption,O as SeverityLevelEnum,E as TextInput,k as agent,h as frameworkName,x as providerSchemas,B as serve,q as step,b as workflow};
1
+ import{b as y,c as H,d as S,e as i,f,g,h as N,i as w,j as c,k as E,l as k,m as x,n as t,o as q}from"../chunk-FURRAVE4.js";import"../chunk-T2VIX2ZH.js";import{a as F}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as b}from"../chunk-6GCCKYZC.js";import{a as O}from"../chunk-CBLKARLC.js";import{f as l}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";import{getHeader as o,getQuery as a,readBody as p,send as n,setHeaders as m}from"h3";var h="h3",C=d=>new t({frameworkName:h,...d,handler:r=>({body:()=>p(r),headers:e=>o(r,e),method:()=>r.method,url:()=>new URL(String(r.path),`${process.env.NODE_ENV==="development"?"http":"https"}://${String(o(r,"host"))}`),queryString:e=>String(a(r)[e]),transformResponse:e=>{let{res:s}=r.node;return s.statusCode=e.status,m(r,e.headers),n(r,e.body)}})}).createHandler();export{H as Actions,x as AgentEventEnum,S as Button,i as Card,f as CardLink,g as CardText,y as Client,l as CronExpression,N as Divider,t as NovuRequestHandler,w as Select,c as SelectOption,b as SeverityLevelEnum,E as TextInput,k as agent,h as frameworkName,O as providerSchemas,C as serve,F as step,q as workflow};
@@ -1,7 +1,7 @@
1
1
  import * as aws_lambda from 'aws-lambda';
2
2
  import { APIGatewayProxyEventV2, APIGatewayProxyResult } from 'aws-lambda';
3
- import { S as ServeHandlerOptions } from '../index-cfmN-nqZ.js';
4
- export { A as Agent, a as AgentContext, b as AgentHandlers, c as AgentReaction, C as Client, F as FileRef, M as MessageContent, N as NovuRequestHandler, d as agent, w as workflow } from '../index-cfmN-nqZ.js';
3
+ import { S as ServeHandlerOptions } from '../index-DBjXwxNK.js';
4
+ export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentEventEnum, g as AgentHandlers, h as AgentHistoryEntry, i as AgentMessage, j as AgentMessageAuthor, k as AgentPlatformContext, l as AgentReaction, m as AgentReplyPayload, n as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, o as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, p as ReplyHandle, q as SentMessageInfo, r as Signal, T as TriggerSignal, s as agent, w as workflow } from '../index-DBjXwxNK.js';
5
5
  export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-zMcfbkrA.js';
6
6
  import { a as Either } from '../subscriber.types-B0sKq6v3.js';
7
7
  export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-B0sKq6v3.js';
@@ -1 +1 @@
1
- import{b as u,c as P,d as h,e as i,f as w,g as l,h as f,i as x,j as c,k as E,l as I,m as n,n as S}from"../chunk-TW2732SM.js";import"../chunk-T2VIX2ZH.js";import{a as b}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as G}from"../chunk-6GCCKYZC.js";import{a as A}from"../chunk-CBLKARLC.js";import{f as m}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var p="lambda",g=y=>new n({frameworkName:p,...y,handler:r=>{let s=(e=>e.version==="2.0")(r);return{url:()=>{let e=s?r.requestContext.http.path:r.path,t=r.headers["x-forwarded-proto"]||"https",a=new URL(e,`${t}://${r.headers.host||r.headers.Host||""}`);for(let o in r.queryStringParameters)o&&a.searchParams.set(o,r.queryStringParameters[o]);return a},body:()=>{let e="{}";return r.body&&(e=r.isBase64Encoded?Buffer.from(r.body,"base64").toString():r.body),JSON.parse(e)},headers:e=>r.headers[e],queryString:e=>{var t;return(t=r.queryStringParameters)==null?void 0:t[e]},transformResponse:({body:e,status:t,headers:a})=>Promise.resolve({body:e,statusCode:t,headers:a}),method:()=>s?r.requestContext.http.method:r.httpMethod}}}).createHandler();export{P as Actions,h as Button,i as Card,w as CardLink,l as CardText,u as Client,m as CronExpression,f as Divider,n as NovuRequestHandler,x as Select,c as SelectOption,G as SeverityLevelEnum,E as TextInput,I as agent,p as frameworkName,A as providerSchemas,g as serve,b as step,S as workflow};
1
+ import{b as u,c as P,d as h,e as i,f as w,g as l,h as f,i as x,j as c,k as E,l as I,m as A,n,o as b}from"../chunk-FURRAVE4.js";import"../chunk-T2VIX2ZH.js";import{a as q}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as S}from"../chunk-6GCCKYZC.js";import{a as G}from"../chunk-CBLKARLC.js";import{f as m}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var p="lambda",V=y=>new n({frameworkName:p,...y,handler:r=>{let s=(e=>e.version==="2.0")(r);return{url:()=>{let e=s?r.requestContext.http.path:r.path,t=r.headers["x-forwarded-proto"]||"https",a=new URL(e,`${t}://${r.headers.host||r.headers.Host||""}`);for(let o in r.queryStringParameters)o&&a.searchParams.set(o,r.queryStringParameters[o]);return a},body:()=>{let e="{}";return r.body&&(e=r.isBase64Encoded?Buffer.from(r.body,"base64").toString():r.body),JSON.parse(e)},headers:e=>r.headers[e],queryString:e=>{var t;return(t=r.queryStringParameters)==null?void 0:t[e]},transformResponse:({body:e,status:t,headers:a})=>Promise.resolve({body:e,statusCode:t,headers:a}),method:()=>s?r.requestContext.http.method:r.httpMethod}}}).createHandler();export{P as Actions,A as AgentEventEnum,h as Button,i as Card,w as CardLink,l as CardText,u as Client,m as CronExpression,f as Divider,n as NovuRequestHandler,x as Select,c as SelectOption,S as SeverityLevelEnum,E as TextInput,I as agent,p as frameworkName,G as providerSchemas,V as serve,q as step,b as workflow};
@@ -1,5 +1,5 @@
1
- import { I as INovuRequestHandlerOptions, N as NovuRequestHandler, S as ServeHandlerOptions, C as Client, A as Agent } from '../index-cfmN-nqZ.js';
2
- export { a as AgentContext, b as AgentHandlers, c as AgentReaction, F as FileRef, M as MessageContent, d as agent, w as workflow } from '../index-cfmN-nqZ.js';
1
+ import { I as INovuRequestHandlerOptions, N as NovuRequestHandler, S as ServeHandlerOptions, C as Client, A as Agent } from '../index-DBjXwxNK.js';
2
+ export { a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentEventEnum, g as AgentHandlers, h as AgentHistoryEntry, i as AgentMessage, j as AgentMessageAuthor, k as AgentPlatformContext, l as AgentReaction, m as AgentReplyPayload, n as AgentSubscriber, E as EditPayload, F as FileRef, M as MessageContent, o as MetadataSignal, R as ReplyContent, p as ReplyHandle, q as SentMessageInfo, r as Signal, T as TriggerSignal, s as agent, w as workflow } from '../index-DBjXwxNK.js';
3
3
  import { W as Workflow } from '../health-check.types-zMcfbkrA.js';
4
4
  export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum } from '../health-check.types-zMcfbkrA.js';
5
5
  export { Actions, Button, Card, CardChild, CardElement, CardLink, CardText, Divider, Select, SelectOption, TextInput } from 'chat';
@@ -1 +1 @@
1
- import{b as g,c as G,d as U,e as j,f as C,g as D,h as F,i as k,j as B,k as L,l as $,m as y,n as J}from"../chunk-TW2732SM.js";import"../chunk-T2VIX2ZH.js";import{a as Q}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as z}from"../chunk-6GCCKYZC.js";import{a as K}from"../chunk-CBLKARLC.js";import{f as V}from"../chunk-EWC7I6UD.js";import{d as a,e as n}from"../chunk-52LSX2V5.js";import{Inject as R,Injectable as E}from"@nestjs/common";import{ConfigurableModuleBuilder as x}from"@nestjs/common";var{ConfigurableModuleClass:d,MODULE_OPTIONS_TOKEN:m,OPTIONS_TYPE:X,ASYNC_OPTIONS_TYPE:Z}=new x().setClassMethodName("register").setFactoryMethodName("createNovuModuleOptions").setExtras(l=>({...l,isGlobal:!0})).build();var P="REGISTER_API_PATH";import{Injectable as I}from"@nestjs/common";var i=class{handler(e,r){return{body:()=>e.body,headers:t=>{let p=e.headers[t.toLowerCase()];return Array.isArray(p)?p[0]:p},method:()=>e.method||"GET",queryString:t=>{let p=e.query[t];return Array.isArray(p)?p[0]:p},url:()=>{let t=e.headers.host||"",p=t!=null&&t.includes("://")?"":`${e.protocol||"https"}://`;return new URL(e.originalUrl||e.url||"",`${p}${t||""}`)},transformResponse:({body:t,headers:p,status:T})=>(Object.entries(p).forEach(([N,S])=>{r.setHeader(N,S)}),r.status(T).send(t))}}};i=a([I()],i);var _="nest",u=class{constructor(e,r){this.options=e;this.novuHandler=r;this.novuRequestHandler=new y({frameworkName:_,...this.options,handler:this.novuHandler.handler})}async handleRequest(e,r){await this.novuRequestHandler.createHandler()(e,r)}};u=a([E(),n(0,R(m)),n(1,R(i))],u);import{Controller as A,Get as H,Inject as q,Options as b,Post as w,Req as f,Res as O}from"@nestjs/common";var s=class{constructor(e){this.novuService=e}async handleGet(e,r){await this.novuService.handleRequest(e,r)}async handlePost(e,r){await this.novuService.handleRequest(e,r)}async handleOptions(e,r){await this.novuService.handleRequest(e,r)}};a([H(),n(0,f()),n(1,O())],s.prototype,"handleGet",1),a([w(),n(0,f()),n(1,O())],s.prototype,"handlePost",1),a([b(),n(0,f()),n(1,O())],s.prototype,"handleOptions",1),s=a([A(),n(0,q(u))],s);import{Module as Y}from"@nestjs/common";import{PATH_METADATA as M}from"@nestjs/common/constants";var h={provide:P,useFactory:l=>{if(!l.apiPath)throw new Error("`apiPath` must be provided to set the controller path");Reflect.defineMetadata(M,l.apiPath,s)},inject:[m]};function v(l,e=[]){return e.reduce((r,o)=>o(r),l)}var c=class extends d{static register(e,r){var t;let o=d.register(e);return o.controllers=[v(s,e.controllerDecorators||[])],(t=o.providers)==null||t.push(h,u,i,...r||[]),o.exports=[u,i],o}static registerAsync(e,r){var t;let o=d.registerAsync(e);return o.controllers=[s],(t=o.providers)==null||t.push(h,u,i,...r||[]),o.exports=[u,i],o}};c=a([Y({})],c);export{G as Actions,U as Button,j as Card,C as CardLink,D as CardText,g as Client,V as CronExpression,F as Divider,m as NOVU_OPTIONS,u as NovuClient,s as NovuController,i as NovuHandler,c as NovuModule,y as NovuRequestHandler,P as REGISTER_API_PATH,k as Select,B as SelectOption,z as SeverityLevelEnum,L as TextInput,$ as agent,_ as frameworkName,K as providerSchemas,h as registerApiPath,Q as step,J as workflow};
1
+ import{b as g,c as G,d as U,e as j,f as C,g as D,h as F,i as k,j as B,k as L,l as $,m as K,n as y,o as Q}from"../chunk-FURRAVE4.js";import"../chunk-T2VIX2ZH.js";import{a as W}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as J}from"../chunk-6GCCKYZC.js";import{a as z}from"../chunk-CBLKARLC.js";import{f as V}from"../chunk-EWC7I6UD.js";import{d as a,e as n}from"../chunk-52LSX2V5.js";import{Inject as R,Injectable as E}from"@nestjs/common";import{ConfigurableModuleBuilder as x}from"@nestjs/common";var{ConfigurableModuleClass:d,MODULE_OPTIONS_TOKEN:m,OPTIONS_TYPE:Z,ASYNC_OPTIONS_TYPE:ee}=new x().setClassMethodName("register").setFactoryMethodName("createNovuModuleOptions").setExtras(l=>({...l,isGlobal:!0})).build();var P="REGISTER_API_PATH";import{Injectable as I}from"@nestjs/common";var i=class{handler(e,r){return{body:()=>e.body,headers:t=>{let p=e.headers[t.toLowerCase()];return Array.isArray(p)?p[0]:p},method:()=>e.method||"GET",queryString:t=>{let p=e.query[t];return Array.isArray(p)?p[0]:p},url:()=>{let t=e.headers.host||"",p=t!=null&&t.includes("://")?"":`${e.protocol||"https"}://`;return new URL(e.originalUrl||e.url||"",`${p}${t||""}`)},transformResponse:({body:t,headers:p,status:T})=>(Object.entries(p).forEach(([N,S])=>{r.setHeader(N,S)}),r.status(T).send(t))}}};i=a([I()],i);var _="nest",u=class{constructor(e,r){this.options=e;this.novuHandler=r;this.novuRequestHandler=new y({frameworkName:_,...this.options,handler:this.novuHandler.handler})}async handleRequest(e,r){await this.novuRequestHandler.createHandler()(e,r)}};u=a([E(),n(0,R(m)),n(1,R(i))],u);import{Controller as A,Get as H,Inject as q,Options as b,Post as w,Req as f,Res as O}from"@nestjs/common";var s=class{constructor(e){this.novuService=e}async handleGet(e,r){await this.novuService.handleRequest(e,r)}async handlePost(e,r){await this.novuService.handleRequest(e,r)}async handleOptions(e,r){await this.novuService.handleRequest(e,r)}};a([H(),n(0,f()),n(1,O())],s.prototype,"handleGet",1),a([w(),n(0,f()),n(1,O())],s.prototype,"handlePost",1),a([b(),n(0,f()),n(1,O())],s.prototype,"handleOptions",1),s=a([A(),n(0,q(u))],s);import{Module as Y}from"@nestjs/common";import{PATH_METADATA as M}from"@nestjs/common/constants";var h={provide:P,useFactory:l=>{if(!l.apiPath)throw new Error("`apiPath` must be provided to set the controller path");Reflect.defineMetadata(M,l.apiPath,s)},inject:[m]};function v(l,e=[]){return e.reduce((r,o)=>o(r),l)}var c=class extends d{static register(e,r){var t;let o=d.register(e);return o.controllers=[v(s,e.controllerDecorators||[])],(t=o.providers)==null||t.push(h,u,i,...r||[]),o.exports=[u,i],o}static registerAsync(e,r){var t;let o=d.registerAsync(e);return o.controllers=[s],(t=o.providers)==null||t.push(h,u,i,...r||[]),o.exports=[u,i],o}};c=a([Y({})],c);export{G as Actions,K as AgentEventEnum,U as Button,j as Card,C as CardLink,D as CardText,g as Client,V as CronExpression,F as Divider,m as NOVU_OPTIONS,u as NovuClient,s as NovuController,i as NovuHandler,c as NovuModule,y as NovuRequestHandler,P as REGISTER_API_PATH,k as Select,B as SelectOption,J as SeverityLevelEnum,L as TextInput,$ as agent,_ as frameworkName,z as providerSchemas,h as registerApiPath,W as step,Q as workflow};
@@ -1,6 +1,6 @@
1
1
  import { NextRequest } from 'next/server';
2
- import { S as ServeHandlerOptions } from '../index-cfmN-nqZ.js';
3
- export { A as Agent, a as AgentContext, b as AgentHandlers, c as AgentReaction, C as Client, F as FileRef, M as MessageContent, N as NovuRequestHandler, d as agent, w as workflow } from '../index-cfmN-nqZ.js';
2
+ import { S as ServeHandlerOptions } from '../index-DBjXwxNK.js';
3
+ export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentEventEnum, g as AgentHandlers, h as AgentHistoryEntry, i as AgentMessage, j as AgentMessageAuthor, k as AgentPlatformContext, l as AgentReaction, m as AgentReplyPayload, n as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, o as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, p as ReplyHandle, q as SentMessageInfo, r as Signal, T as TriggerSignal, s as agent, w as workflow } from '../index-DBjXwxNK.js';
4
4
  export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-zMcfbkrA.js';
5
5
  export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-B0sKq6v3.js';
6
6
  import { S as SupportedFrameworkName } from '../server.types-BRWsA1CA.js';
@@ -1 +1 @@
1
- import{a as l,b as x,c as q,d as S,e as T,f as w,g as P,h as A,i as E,j as b,k as v,l as g,m as c,n as k}from"../chunk-TW2732SM.js";import"../chunk-T2VIX2ZH.js";import{a as G}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as j}from"../chunk-6GCCKYZC.js";import{a as F}from"../chunk-CBLKARLC.js";import{f as O}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var m="next",N=o=>typeof o=="object"&&o!==null&&typeof o.setHeader=="function"&&typeof o.status=="function"&&typeof o.send=="function",L=o=>{let p=new c({frameworkName:m,...o,handler:(h,R,d)=>{let n=R,i=e=>{let t=typeof n.headers.get=="function"?n.headers.get(e):n.headers[e];return Array.isArray(t)?t[0]:t};return{body:()=>typeof n.json=="function"?n.json():n.body,headers:i,method:()=>h||n.method||"",queryString:(e,t)=>{var a;let r=((a=n.query)==null?void 0:a[e])||t.searchParams.get(e);return Array.isArray(r)?r[0]:r},url:()=>{let e;try{e=new URL(n.url)}catch{}if(e){let s=i("host");if(s){let u=new URL(s.includes("://")?s:`${e.protocol}//${s}`);e.protocol=u.protocol,e.host=u.host,e.port=u.port,e.username=u.username,e.password=u.password}return e}let t="https",r=i("host")||"";try{(process.env.NODE_ENV==="development"||process.env.NODE_ENV==="dev")&&(t="http")}catch{}return new URL(n.url,`${t}://${r}`)},transformResponse:({body:e,headers:t,status:r})=>{if(N(d)){Object.entries(t).forEach(([s,u])=>{d.setHeader(s,u)}),d.status(r).send(e);return}let a=l();return new a(e,{status:r,headers:t})}}}}).createHandler(),f=p.bind(null,void 0);return Object.defineProperties(f,{GET:{value:p.bind(null,"GET")},POST:{value:p.bind(null,"POST")},OPTIONS:{value:p.bind(null,"OPTIONS")}})};export{q as Actions,S as Button,T as Card,w as CardLink,P as CardText,x as Client,O as CronExpression,A as Divider,c as NovuRequestHandler,E as Select,b as SelectOption,j as SeverityLevelEnum,v as TextInput,g as agent,m as frameworkName,F as providerSchemas,L as serve,G as step,k as workflow};
1
+ import{a as l,b as x,c as q,d as S,e as T,f as w,g as P,h as A,i as E,j as b,k as v,l as g,m as F,n as c,o as G}from"../chunk-FURRAVE4.js";import"../chunk-T2VIX2ZH.js";import{a as I}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as k}from"../chunk-6GCCKYZC.js";import{a as j}from"../chunk-CBLKARLC.js";import{f as O}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var m="next",N=o=>typeof o=="object"&&o!==null&&typeof o.setHeader=="function"&&typeof o.status=="function"&&typeof o.send=="function",$=o=>{let p=new c({frameworkName:m,...o,handler:(h,R,d)=>{let n=R,i=e=>{let t=typeof n.headers.get=="function"?n.headers.get(e):n.headers[e];return Array.isArray(t)?t[0]:t};return{body:()=>typeof n.json=="function"?n.json():n.body,headers:i,method:()=>h||n.method||"",queryString:(e,t)=>{var a;let r=((a=n.query)==null?void 0:a[e])||t.searchParams.get(e);return Array.isArray(r)?r[0]:r},url:()=>{let e;try{e=new URL(n.url)}catch{}if(e){let s=i("host");if(s){let u=new URL(s.includes("://")?s:`${e.protocol}//${s}`);e.protocol=u.protocol,e.host=u.host,e.port=u.port,e.username=u.username,e.password=u.password}return e}let t="https",r=i("host")||"";try{(process.env.NODE_ENV==="development"||process.env.NODE_ENV==="dev")&&(t="http")}catch{}return new URL(n.url,`${t}://${r}`)},transformResponse:({body:e,headers:t,status:r})=>{if(N(d)){Object.entries(t).forEach(([s,u])=>{d.setHeader(s,u)}),d.status(r).send(e);return}let a=l();return new a(e,{status:r,headers:t})}}}}).createHandler(),f=p.bind(null,void 0);return Object.defineProperties(f,{GET:{value:p.bind(null,"GET")},POST:{value:p.bind(null,"POST")},OPTIONS:{value:p.bind(null,"OPTIONS")}})};export{q as Actions,F as AgentEventEnum,S as Button,T as Card,w as CardLink,P as CardText,x as Client,O as CronExpression,A as Divider,c as NovuRequestHandler,E as Select,b as SelectOption,k as SeverityLevelEnum,v as TextInput,g as agent,m as frameworkName,j as providerSchemas,$ as serve,I as step,G as workflow};
@@ -1,7 +1,7 @@
1
1
  import * as h3 from 'h3';
2
2
  import { H3Event } from 'h3';
3
- import { S as ServeHandlerOptions } from '../index-cfmN-nqZ.js';
4
- export { A as Agent, a as AgentContext, b as AgentHandlers, c as AgentReaction, C as Client, F as FileRef, M as MessageContent, N as NovuRequestHandler, d as agent, w as workflow } from '../index-cfmN-nqZ.js';
3
+ import { S as ServeHandlerOptions } from '../index-DBjXwxNK.js';
4
+ export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentEventEnum, g as AgentHandlers, h as AgentHistoryEntry, i as AgentMessage, j as AgentMessageAuthor, k as AgentPlatformContext, l as AgentReaction, m as AgentReplyPayload, n as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, o as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, p as ReplyHandle, q as SentMessageInfo, r as Signal, T as TriggerSignal, s as agent, w as workflow } from '../index-DBjXwxNK.js';
5
5
  export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-zMcfbkrA.js';
6
6
  export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-B0sKq6v3.js';
7
7
  import { S as SupportedFrameworkName } from '../server.types-BRWsA1CA.js';
@@ -1 +1 @@
1
- import{b as H,c as S,d as i,e as y,f,g,h as N,i as w,j as c,k as x,l as E,m as t,n as b}from"../chunk-TW2732SM.js";import"../chunk-T2VIX2ZH.js";import{a as q}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O}from"../chunk-6GCCKYZC.js";import{a as k}from"../chunk-CBLKARLC.js";import{f as l}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";import{getHeader as o,getQuery as a,readBody as n,send as p,setHeaders as m}from"h3";var u="nuxt",C=d=>new t({frameworkName:u,...d,handler:r=>({queryString:e=>String(a(r)[e]),body:()=>n(r),headers:e=>o(r,e),url:()=>new URL(String(r.path),`${process.env.NODE_ENV==="development"?"http":"https"}://${String(o(r,"host"))}`),method:()=>r.method,transformResponse:e=>{let{res:s}=r.node;return s.statusCode=e.status,m(r,e.headers),p(r,e.body)}})}).createHandler();export{S as Actions,i as Button,y as Card,f as CardLink,g as CardText,H as Client,l as CronExpression,N as Divider,t as NovuRequestHandler,w as Select,c as SelectOption,O as SeverityLevelEnum,x as TextInput,E as agent,u as frameworkName,k as providerSchemas,C as serve,q as step,b as workflow};
1
+ import{b as H,c as S,d as i,e as y,f,g,h as N,i as w,j as c,k as x,l as E,m as k,n as t,o as q}from"../chunk-FURRAVE4.js";import"../chunk-T2VIX2ZH.js";import{a as F}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as b}from"../chunk-6GCCKYZC.js";import{a as O}from"../chunk-CBLKARLC.js";import{f as l}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";import{getHeader as o,getQuery as a,readBody as n,send as p,setHeaders as m}from"h3";var u="nuxt",D=d=>new t({frameworkName:u,...d,handler:r=>({queryString:e=>String(a(r)[e]),body:()=>n(r),headers:e=>o(r,e),url:()=>new URL(String(r.path),`${process.env.NODE_ENV==="development"?"http":"https"}://${String(o(r,"host"))}`),method:()=>r.method,transformResponse:e=>{let{res:s}=r.node;return s.statusCode=e.status,m(r,e.headers),p(r,e.body)}})}).createHandler();export{S as Actions,k as AgentEventEnum,i as Button,y as Card,f as CardLink,g as CardText,H as Client,l as CronExpression,N as Divider,t as NovuRequestHandler,w as Select,c as SelectOption,b as SeverityLevelEnum,x as TextInput,E as agent,u as frameworkName,O as providerSchemas,D as serve,F as step,q as workflow};
@@ -1,5 +1,5 @@
1
- import { S as ServeHandlerOptions } from '../index-cfmN-nqZ.js';
2
- export { A as Agent, a as AgentContext, b as AgentHandlers, c as AgentReaction, C as Client, F as FileRef, M as MessageContent, N as NovuRequestHandler, d as agent, w as workflow } from '../index-cfmN-nqZ.js';
1
+ import { S as ServeHandlerOptions } from '../index-DBjXwxNK.js';
2
+ export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentEventEnum, g as AgentHandlers, h as AgentHistoryEntry, i as AgentMessage, j as AgentMessageAuthor, k as AgentPlatformContext, l as AgentReaction, m as AgentReplyPayload, n as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, o as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, p as ReplyHandle, q as SentMessageInfo, r as Signal, T as TriggerSignal, s as agent, w as workflow } from '../index-DBjXwxNK.js';
3
3
  export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-zMcfbkrA.js';
4
4
  export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-B0sKq6v3.js';
5
5
  import { S as SupportedFrameworkName } from '../server.types-BRWsA1CA.js';
@@ -1 +1 @@
1
- import{a as t,b as h,c as l,d as R,e as c,f as i,g as w,h as f,i as x,j as k,k as v,l as H,m as o,n as g}from"../chunk-TW2732SM.js";import"../chunk-T2VIX2ZH.js";import{a as y}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as S}from"../chunk-6GCCKYZC.js";import{a as N}from"../chunk-CBLKARLC.js";import{f as u}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var m="remix",O=s=>new o({frameworkName:m,...s,handler:({request:e})=>({body:()=>e.json(),headers:r=>e.headers.get(r),method:()=>e.method,url:()=>new URL(e.url,`https://${e.headers.get("host")||""}`),transformResponse:({body:r,status:n,headers:p})=>{let a=t();return new a(r,{status:n,headers:p})}})}).createHandler();export{l as Actions,R as Button,c as Card,i as CardLink,w as CardText,h as Client,u as CronExpression,f as Divider,o as NovuRequestHandler,x as Select,k as SelectOption,S as SeverityLevelEnum,v as TextInput,H as agent,m as frameworkName,N as providerSchemas,O as serve,y as step,g as workflow};
1
+ import{a as t,b as h,c as l,d as R,e as c,f as i,g as w,h as f,i as x,j as k,k as v,l as H,m as N,n as o,o as y}from"../chunk-FURRAVE4.js";import"../chunk-T2VIX2ZH.js";import{a as q}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as g}from"../chunk-6GCCKYZC.js";import{a as S}from"../chunk-CBLKARLC.js";import{f as u}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var m="remix",b=s=>new o({frameworkName:m,...s,handler:({request:e})=>({body:()=>e.json(),headers:r=>e.headers.get(r),method:()=>e.method,url:()=>new URL(e.url,`https://${e.headers.get("host")||""}`),transformResponse:({body:r,status:n,headers:p})=>{let a=t();return new a(r,{status:n,headers:p})}})}).createHandler();export{l as Actions,N as AgentEventEnum,R as Button,c as Card,i as CardLink,w as CardText,h as Client,u as CronExpression,f as Divider,o as NovuRequestHandler,x as Select,k as SelectOption,g as SeverityLevelEnum,v as TextInput,H as agent,m as frameworkName,S as providerSchemas,b as serve,q as step,y as workflow};
@@ -1,6 +1,6 @@
1
1
  import { RequestEvent } from '@sveltejs/kit';
2
- import { S as ServeHandlerOptions } from '../index-cfmN-nqZ.js';
3
- export { A as Agent, a as AgentContext, b as AgentHandlers, c as AgentReaction, C as Client, F as FileRef, M as MessageContent, N as NovuRequestHandler, d as agent, w as workflow } from '../index-cfmN-nqZ.js';
2
+ import { S as ServeHandlerOptions } from '../index-DBjXwxNK.js';
3
+ export { A as Agent, a as AgentAction, b as AgentAttachment, c as AgentBridgeRequest, d as AgentContext, e as AgentConversation, f as AgentEventEnum, g as AgentHandlers, h as AgentHistoryEntry, i as AgentMessage, j as AgentMessageAuthor, k as AgentPlatformContext, l as AgentReaction, m as AgentReplyPayload, n as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, o as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, p as ReplyHandle, q as SentMessageInfo, r as Signal, T as TriggerSignal, s as agent, w as workflow } from '../index-DBjXwxNK.js';
4
4
  export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-zMcfbkrA.js';
5
5
  export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-B0sKq6v3.js';
6
6
  import { S as SupportedFrameworkName } from '../server.types-BRWsA1CA.js';
@@ -1 +1 @@
1
- import{a as r,b as E,c as P,d as R,e as T,f as S,g as c,h as f,i as h,j as N,k as q,l as F,m as s,n as y}from"../chunk-TW2732SM.js";import"../chunk-T2VIX2ZH.js";import{a as G}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as w}from"../chunk-6GCCKYZC.js";import{a as b}from"../chunk-CBLKARLC.js";import{f as v}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var m="sveltekit",H=o=>{let t=new s({frameworkName:m,...o,handler:(u,e)=>({method:()=>u||e.request.method||"",body:()=>e.request.json(),headers:n=>e.request.headers.get(n),url:()=>{let n=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="dev"?"http":"https";return new URL(e.request.url,`${n}://${e.request.headers.get("host")||""}`)},transformResponse:({body:n,headers:d,status:a})=>{let l=r();return new l(n,{status:a,headers:d})}})}).createHandler(),p=t.bind(null,void 0);return Object.defineProperties(p,{GET:{value:t.bind(null,"GET")},POST:{value:t.bind(null,"POST")},OPTIONS:{value:t.bind(null,"OPTIONS")}})};export{P as Actions,R as Button,T as Card,S as CardLink,c as CardText,E as Client,v as CronExpression,f as Divider,s as NovuRequestHandler,h as Select,N as SelectOption,w as SeverityLevelEnum,q as TextInput,F as agent,m as frameworkName,b as providerSchemas,H as serve,G as step,y as workflow};
1
+ import{a as r,b as E,c as P,d as R,e as T,f as S,g as c,h as f,i as h,j as N,k as q,l as F,m as b,n as s,o as G}from"../chunk-FURRAVE4.js";import"../chunk-T2VIX2ZH.js";import{a as I}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as y}from"../chunk-6GCCKYZC.js";import{a as w}from"../chunk-CBLKARLC.js";import{f as v}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var m="sveltekit",g=o=>{let t=new s({frameworkName:m,...o,handler:(u,e)=>({method:()=>u||e.request.method||"",body:()=>e.request.json(),headers:n=>e.request.headers.get(n),url:()=>{let n=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="dev"?"http":"https";return new URL(e.request.url,`${n}://${e.request.headers.get("host")||""}`)},transformResponse:({body:n,headers:d,status:a})=>{let l=r();return new l(n,{status:a,headers:d})}})}).createHandler(),p=t.bind(null,void 0);return Object.defineProperties(p,{GET:{value:t.bind(null,"GET")},POST:{value:t.bind(null,"POST")},OPTIONS:{value:t.bind(null,"OPTIONS")}})};export{P as Actions,b as AgentEventEnum,R as Button,T as Card,S as CardLink,c as CardText,E as Client,v as CronExpression,f as Divider,s as NovuRequestHandler,h as Select,N as SelectOption,y as SeverityLevelEnum,q as TextInput,F as agent,m as frameworkName,w as providerSchemas,g as serve,I as step,G as workflow};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novu/framework",
3
- "version": "2.10.1-alpha.1",
3
+ "version": "2.10.1-alpha.2",
4
4
  "description": "The Code-First Notifications Workflow SDK.",
5
5
  "main": "./dist/cjs/index.cjs",
6
6
  "types": "./dist/cjs/index.d.cts",