@novu/framework 2.10.1-alpha.5 → 2.10.1-alpha.6
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/{index-B4t9LyOV.d.cts → index-BAY1Gj4h.d.cts} +139 -10
- package/dist/cjs/index.cjs +47 -47
- package/dist/cjs/index.d.cts +1 -1
- package/dist/cjs/servers/express.cjs +24 -24
- package/dist/cjs/servers/express.d.cts +2 -2
- package/dist/cjs/servers/h3.cjs +30 -30
- package/dist/cjs/servers/h3.d.cts +2 -2
- package/dist/cjs/servers/lambda.cjs +24 -24
- package/dist/cjs/servers/lambda.d.cts +2 -2
- package/dist/cjs/servers/nest.cjs +47 -47
- package/dist/cjs/servers/nest.d.cts +2 -2
- package/dist/cjs/servers/next.cjs +24 -24
- package/dist/cjs/servers/next.d.cts +2 -2
- package/dist/cjs/servers/nuxt.cjs +30 -30
- package/dist/cjs/servers/nuxt.d.cts +2 -2
- package/dist/cjs/servers/remix.cjs +24 -24
- package/dist/cjs/servers/remix.d.cts +2 -2
- package/dist/cjs/servers/sveltekit.cjs +40 -40
- package/dist/cjs/servers/sveltekit.d.cts +2 -2
- package/dist/esm/{chunk-TJFK73XZ.js → chunk-H2XIPY7V.js} +21 -21
- package/dist/esm/{index-BCzJp-zE.d.ts → index-DiFdSsia.d.ts} +139 -10
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/servers/express.d.ts +2 -2
- package/dist/esm/servers/express.js +1 -1
- package/dist/esm/servers/h3.d.ts +2 -2
- package/dist/esm/servers/h3.js +1 -1
- package/dist/esm/servers/lambda.d.ts +2 -2
- package/dist/esm/servers/lambda.js +1 -1
- package/dist/esm/servers/nest.d.ts +2 -2
- package/dist/esm/servers/nest.js +1 -1
- package/dist/esm/servers/next.d.ts +2 -2
- package/dist/esm/servers/next.js +1 -1
- package/dist/esm/servers/nuxt.d.ts +2 -2
- package/dist/esm/servers/nuxt.js +1 -1
- package/dist/esm/servers/remix.d.ts +2 -2
- package/dist/esm/servers/remix.js +1 -1
- package/dist/esm/servers/sveltekit.d.ts +2 -2
- package/dist/esm/servers/sveltekit.js +1 -1
- package/package.json +1 -1
|
@@ -10,12 +10,14 @@ declare enum AgentEventEnum {
|
|
|
10
10
|
ON_RESOLVE = "onResolve",
|
|
11
11
|
ON_REACTION = "onReaction"
|
|
12
12
|
}
|
|
13
|
+
/** Identity of the user or bot that authored a message. */
|
|
13
14
|
interface AgentMessageAuthor {
|
|
14
15
|
userId: string;
|
|
15
16
|
fullName: string;
|
|
16
17
|
userName: string;
|
|
17
18
|
isBot: boolean | 'unknown';
|
|
18
19
|
}
|
|
20
|
+
/** A file or media attachment included with a message. */
|
|
19
21
|
interface AgentAttachment {
|
|
20
22
|
type: string;
|
|
21
23
|
url?: string;
|
|
@@ -23,22 +25,35 @@ interface AgentAttachment {
|
|
|
23
25
|
mimeType?: string;
|
|
24
26
|
size?: number;
|
|
25
27
|
}
|
|
28
|
+
/** An incoming message from the user in the current conversation. */
|
|
26
29
|
interface AgentMessage {
|
|
30
|
+
/** Plain-text content of the message. */
|
|
27
31
|
text: string;
|
|
32
|
+
/** Platform-native message ID (e.g. Slack `ts`, Teams `activityId`). */
|
|
28
33
|
platformMessageId: string;
|
|
29
34
|
author: AgentMessageAuthor;
|
|
30
35
|
timestamp: string;
|
|
31
36
|
attachments?: AgentAttachment[];
|
|
32
37
|
}
|
|
38
|
+
/** Live state of the current conversation thread. */
|
|
33
39
|
interface AgentConversation {
|
|
40
|
+
/** Stable identifier for this conversation. */
|
|
34
41
|
identifier: string;
|
|
42
|
+
/** Lifecycle status (e.g. `'open'`, `'resolved'`). */
|
|
35
43
|
status: string;
|
|
44
|
+
/**
|
|
45
|
+
* Key/value store for this conversation.
|
|
46
|
+
* Values are written via `ctx.metadata.set()` and readable on subsequent messages.
|
|
47
|
+
*/
|
|
36
48
|
metadata: Record<string, unknown>;
|
|
49
|
+
/** Number of messages exchanged so far; starts at 1 for the first message. */
|
|
37
50
|
messageCount: number;
|
|
38
51
|
createdAt: string;
|
|
39
52
|
lastActivityAt: string;
|
|
40
53
|
}
|
|
54
|
+
/** The Novu subscriber who initiated or is participating in the conversation. */
|
|
41
55
|
interface AgentSubscriber {
|
|
56
|
+
/** Stable Novu subscriber ID. */
|
|
42
57
|
subscriberId: string;
|
|
43
58
|
firstName?: string;
|
|
44
59
|
lastName?: string;
|
|
@@ -46,23 +61,37 @@ interface AgentSubscriber {
|
|
|
46
61
|
phone?: string;
|
|
47
62
|
avatar?: string;
|
|
48
63
|
locale?: string;
|
|
64
|
+
/** Arbitrary custom data attached to the subscriber in Novu. */
|
|
49
65
|
data?: Record<string, unknown>;
|
|
50
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* A single entry in the conversation history.
|
|
69
|
+
* `ctx.history` is an ordered array of these entries — map them to your LLM's
|
|
70
|
+
* message format before making a model call.
|
|
71
|
+
*/
|
|
51
72
|
interface AgentHistoryEntry {
|
|
73
|
+
/** Message role: `'user'`, `'assistant'`, or `'system'`. */
|
|
52
74
|
role: string;
|
|
75
|
+
/** Content type: `'text'`, `'card'`, etc. */
|
|
53
76
|
type: string;
|
|
77
|
+
/** Plain-text representation of the message content. */
|
|
54
78
|
content: string;
|
|
55
79
|
richContent?: Record<string, unknown>;
|
|
56
80
|
senderName?: string;
|
|
81
|
+
/** Present on system entries that carry a Novu signal (e.g. metadata updates). */
|
|
57
82
|
signalData?: {
|
|
58
83
|
type: string;
|
|
59
84
|
payload?: Record<string, unknown>;
|
|
60
85
|
};
|
|
61
86
|
createdAt: string;
|
|
62
87
|
}
|
|
88
|
+
/** Platform-specific identifiers for the thread and channel. */
|
|
63
89
|
interface AgentPlatformContext {
|
|
90
|
+
/** Platform-native thread ID (e.g. Slack thread `ts`, Teams conversation ID). */
|
|
64
91
|
threadId: string;
|
|
92
|
+
/** Platform-native channel or chat ID. */
|
|
65
93
|
channelId: string;
|
|
94
|
+
/** Whether the message arrived in a direct message rather than a shared channel. */
|
|
66
95
|
isDM: boolean;
|
|
67
96
|
}
|
|
68
97
|
interface FileRef {
|
|
@@ -97,16 +126,25 @@ interface ReplyContent {
|
|
|
97
126
|
card?: CardElement;
|
|
98
127
|
files?: FileRef[];
|
|
99
128
|
}
|
|
129
|
+
/** Data carried by a button click or other interactive action. */
|
|
100
130
|
interface AgentAction {
|
|
131
|
+
/** The `id` prop of the clicked `<Button>` or action element. */
|
|
101
132
|
actionId: string;
|
|
133
|
+
/** The `value` prop of the clicked element, if set. */
|
|
102
134
|
value?: string;
|
|
135
|
+
/** Platform-native message ID of the message containing the clicked button/action. */
|
|
136
|
+
sourceMessageId?: string;
|
|
103
137
|
}
|
|
138
|
+
/** An emoji reaction added to or removed from a message. */
|
|
104
139
|
interface AgentReaction {
|
|
140
|
+
/** Platform-native ID of the message that was reacted to. */
|
|
105
141
|
messageId: string;
|
|
106
142
|
emoji: {
|
|
107
143
|
name: string;
|
|
108
144
|
};
|
|
145
|
+
/** `true` when the reaction was added, `false` when it was removed. */
|
|
109
146
|
added: boolean;
|
|
147
|
+
/** The message that was reacted to, if available. */
|
|
110
148
|
message: AgentMessage | null;
|
|
111
149
|
}
|
|
112
150
|
/**
|
|
@@ -124,15 +162,23 @@ interface ReplyHandle {
|
|
|
124
162
|
files?: FileRef[];
|
|
125
163
|
}): Promise<ReplyHandle>;
|
|
126
164
|
}
|
|
127
|
-
interface
|
|
128
|
-
|
|
129
|
-
readonly action: AgentAction | null;
|
|
130
|
-
readonly message: AgentMessage | null;
|
|
131
|
-
readonly reaction: AgentReaction | null;
|
|
165
|
+
interface AgentContextBase {
|
|
166
|
+
/** Live state of the current conversation, including persisted metadata. */
|
|
132
167
|
readonly conversation: AgentConversation;
|
|
168
|
+
/**
|
|
169
|
+
* The Novu subscriber who sent the message, or `null` if Novu could not
|
|
170
|
+
* resolve a subscriber for this conversation.
|
|
171
|
+
*/
|
|
133
172
|
readonly subscriber: AgentSubscriber | null;
|
|
173
|
+
/**
|
|
174
|
+
* Full conversation history as an ordered array of entries.
|
|
175
|
+
* Map to your LLM's message format before making a model call:
|
|
176
|
+
* `ctx.history.map(h => ({ role: h.role, content: h.content }))`
|
|
177
|
+
*/
|
|
134
178
|
readonly history: AgentHistoryEntry[];
|
|
179
|
+
/** Platform identifier (e.g. `'slack'`, `'msteams'`, `'in-app'`). */
|
|
135
180
|
readonly platform: string;
|
|
181
|
+
/** Platform-specific thread and channel identifiers. */
|
|
136
182
|
readonly platformContext: AgentPlatformContext;
|
|
137
183
|
/**
|
|
138
184
|
* Post a message to the conversation and return a handle to it.
|
|
@@ -150,9 +196,26 @@ interface AgentContext {
|
|
|
150
196
|
reply(content: MessageContent, options?: {
|
|
151
197
|
files?: FileRef[];
|
|
152
198
|
}): Promise<ReplyHandle>;
|
|
199
|
+
/**
|
|
200
|
+
* Mark the conversation as resolved. Optionally provide a summary for the resolution record.
|
|
201
|
+
* Triggers the `onResolve` handler if one is registered.
|
|
202
|
+
*/
|
|
153
203
|
resolve(summary?: string): void;
|
|
204
|
+
/**
|
|
205
|
+
* Persistent key/value store for this conversation.
|
|
206
|
+
*
|
|
207
|
+
* - `get(key)` — read a value from the current metadata state
|
|
208
|
+
* - `set(key, value)` — write a value (flushed with the next reply or on handler completion)
|
|
209
|
+
* - `delete(key)` — remove a key
|
|
210
|
+
* - `clear()` — reset metadata to `{}`
|
|
211
|
+
* - `current` — readonly snapshot of the current state
|
|
212
|
+
*/
|
|
154
213
|
metadata: {
|
|
214
|
+
get(key: string): unknown;
|
|
155
215
|
set(key: string, value: unknown): void;
|
|
216
|
+
delete(key: string): void;
|
|
217
|
+
clear(): void;
|
|
218
|
+
readonly current: Readonly<Record<string, unknown>>;
|
|
156
219
|
};
|
|
157
220
|
/**
|
|
158
221
|
* Trigger a Novu workflow from within this agent handler.
|
|
@@ -192,11 +255,69 @@ interface AgentContext {
|
|
|
192
255
|
*/
|
|
193
256
|
addReaction(messageId: string, emojiName: Emoji): void;
|
|
194
257
|
}
|
|
258
|
+
/** Context passed to the `onMessage` handler. */
|
|
259
|
+
interface AgentMessageContext extends AgentContextBase {
|
|
260
|
+
readonly event: 'onMessage';
|
|
261
|
+
/** The incoming message that triggered this handler. */
|
|
262
|
+
readonly message: AgentMessage;
|
|
263
|
+
}
|
|
264
|
+
/** Context passed to the `onAction` handler. */
|
|
265
|
+
interface AgentActionContext extends AgentContextBase {
|
|
266
|
+
readonly event: 'onAction';
|
|
267
|
+
/** The button click or interactive action that triggered this handler. */
|
|
268
|
+
readonly action: AgentAction;
|
|
269
|
+
}
|
|
270
|
+
/** Context passed to the `onReaction` handler. */
|
|
271
|
+
interface AgentReactionContext extends AgentContextBase {
|
|
272
|
+
readonly event: 'onReaction';
|
|
273
|
+
/** The emoji reaction that triggered this handler. */
|
|
274
|
+
readonly reaction: AgentReaction;
|
|
275
|
+
}
|
|
276
|
+
/** Context passed to the `onResolve` handler. */
|
|
277
|
+
interface AgentResolveContext extends AgentContextBase {
|
|
278
|
+
readonly event: 'onResolve';
|
|
279
|
+
}
|
|
280
|
+
type AgentContext = AgentMessageContext | AgentActionContext | AgentReactionContext | AgentResolveContext;
|
|
281
|
+
/** Event handlers for a conversational agent. */
|
|
195
282
|
interface AgentHandlers {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
283
|
+
/**
|
|
284
|
+
* Fires on every text message the user sends.
|
|
285
|
+
* `message` is the incoming message. `ctx` provides conversation history, subscriber,
|
|
286
|
+
* metadata, and reply/trigger methods.
|
|
287
|
+
* Return a string or JSX card to reply, or call `ctx.reply()` directly
|
|
288
|
+
* for more control (e.g. editing a message in place).
|
|
289
|
+
*/
|
|
290
|
+
onMessage: (payload: {
|
|
291
|
+
message: AgentMessage;
|
|
292
|
+
ctx: AgentMessageContext;
|
|
293
|
+
}) => Awaitable<MessageContent | void>;
|
|
294
|
+
/**
|
|
295
|
+
* Fires when the user adds or removes an emoji reaction to a message.
|
|
296
|
+
* `reaction` carries the emoji and whether it was added or removed.
|
|
297
|
+
* Return a string or card to post a reply, or return nothing to silently acknowledge.
|
|
298
|
+
*/
|
|
299
|
+
onReaction?: (payload: {
|
|
300
|
+
reaction: AgentReaction;
|
|
301
|
+
ctx: AgentReactionContext;
|
|
302
|
+
}) => Awaitable<MessageContent | void>;
|
|
303
|
+
/**
|
|
304
|
+
* Fires when the user clicks a `<Button>` or other interactive element.
|
|
305
|
+
* `actionId` is the `id` prop of the clicked element; `value` is its `value` prop.
|
|
306
|
+
* Return a string or card to reply, or return nothing to silently acknowledge the click.
|
|
307
|
+
*/
|
|
308
|
+
onAction?: (payload: {
|
|
309
|
+
actionId: string;
|
|
310
|
+
value?: string;
|
|
311
|
+
ctx: AgentActionContext;
|
|
312
|
+
}) => Awaitable<MessageContent | void>;
|
|
313
|
+
/**
|
|
314
|
+
* Fires after `ctx.resolve()` is called and the conversation is marked resolved.
|
|
315
|
+
* Use for post-resolution side-effects (e.g. triggering a follow-up workflow).
|
|
316
|
+
* Access subscriber and conversation via `ctx.subscriber` and `ctx.conversation`.
|
|
317
|
+
*/
|
|
318
|
+
onResolve?: (payload: {
|
|
319
|
+
ctx: AgentResolveContext;
|
|
320
|
+
}) => Awaitable<MessageContent | void>;
|
|
200
321
|
}
|
|
201
322
|
interface Agent {
|
|
202
323
|
id: string;
|
|
@@ -222,8 +343,16 @@ interface AgentBridgeRequest {
|
|
|
222
343
|
}
|
|
223
344
|
type MetadataSignal = {
|
|
224
345
|
type: 'metadata';
|
|
346
|
+
action: 'set';
|
|
225
347
|
key: string;
|
|
226
348
|
value: unknown;
|
|
349
|
+
} | {
|
|
350
|
+
type: 'metadata';
|
|
351
|
+
action: 'delete';
|
|
352
|
+
key: string;
|
|
353
|
+
} | {
|
|
354
|
+
type: 'metadata';
|
|
355
|
+
action: 'clear';
|
|
227
356
|
};
|
|
228
357
|
/**
|
|
229
358
|
* Queued by `ctx.trigger()` — instructs Novu to fire a workflow from inside an agent handler.
|
|
@@ -448,4 +577,4 @@ declare class NovuRequestHandler<Input extends any[] = any[], Output = any> {
|
|
|
448
577
|
*/
|
|
449
578
|
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>;
|
|
450
579
|
|
|
451
|
-
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
|
|
580
|
+
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 AgentActionContext as b, type AgentAttachment as c, type AgentBridgeRequest as d, type AgentContext as e, type AgentConversation as f, AgentDeliveryError as g, AgentEventEnum as h, type AgentHandlers as i, type AgentHistoryEntry as j, type AgentMessage as k, type AgentMessageAuthor as l, type AgentMessageContext as m, type AgentPlatformContext as n, type AgentReaction as o, type AgentReactionContext as p, type AgentReplyPayload as q, type AgentResolveContext as r, type AgentSubscriber as s, type MetadataSignal as t, type ReplyHandle as u, type SentMessageInfo as v, type Signal as w, agent as x, workflow as y };
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Agent, a as AgentAction, b as
|
|
1
|
+
export { A as Agent, a as AgentAction, b as AgentActionContext, c as AgentAttachment, d as AgentBridgeRequest, e as AgentContext, f as AgentConversation, g as AgentDeliveryError, h as AgentEventEnum, i as AgentHandlers, j as AgentHistoryEntry, k as AgentMessage, l as AgentMessageAuthor, m as AgentMessageContext, n as AgentPlatformContext, o as AgentReaction, p as AgentReactionContext, q as AgentReplyPayload, r as AgentResolveContext, s as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, t as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, u as ReplyHandle, v as SentMessageInfo, S as ServeHandlerOptions, w as Signal, T as TriggerSignal, x as agent, y as workflow } from './index-DiFdSsia.js';
|
|
2
2
|
export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from './health-check.types-C5lg4csi.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,o,p as r}from"./chunk-
|
|
1
|
+
import{b,c,d,e,f,g,h,i,j,k,l,m,n,o,p as r}from"./chunk-H2XIPY7V.js";import"./chunk-T2VIX2ZH.js";import{a as s}from"./chunk-2M25EATE.js";import"./chunk-U3IL7QCI.js";import{O as q}from"./chunk-6GCCKYZC.js";import{a as p}from"./chunk-CBLKARLC.js";import{f as a}from"./chunk-EWC7I6UD.js";import"./chunk-52LSX2V5.js";export{c as Actions,l as AgentDeliveryError,n as AgentEventEnum,d as Button,e as Card,f as CardLink,g as CardText,b as Client,a as CronExpression,h as Divider,o as NovuRequestHandler,i as Select,j as SelectOption,q as SeverityLevelEnum,k as TextInput,m as agent,p as providerSchemas,s as step,r as workflow};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as ServeHandlerOptions } from '../index-
|
|
2
|
-
export { A as Agent, a as AgentAction, b as
|
|
1
|
+
import { S as ServeHandlerOptions } from '../index-DiFdSsia.js';
|
|
2
|
+
export { A as Agent, a as AgentAction, b as AgentActionContext, c as AgentAttachment, d as AgentBridgeRequest, e as AgentContext, f as AgentConversation, g as AgentDeliveryError, h as AgentEventEnum, i as AgentHandlers, j as AgentHistoryEntry, k as AgentMessage, l as AgentMessageAuthor, m as AgentMessageContext, n as AgentPlatformContext, o as AgentReaction, p as AgentReactionContext, q as AgentReplyPayload, r as AgentResolveContext, s as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, t as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, u as ReplyHandle, v as SentMessageInfo, w as Signal, T as TriggerSignal, x as agent, y as workflow } from '../index-DiFdSsia.js';
|
|
3
3
|
export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-C5lg4csi.js';
|
|
4
4
|
export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-CbMgjzR-.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 N,n as R,o as a,p as k}from"../chunk-
|
|
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 R,o as a,p as k}from"../chunk-H2XIPY7V.js";import"../chunk-T2VIX2ZH.js";import{a as O}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as b}from"../chunk-6GCCKYZC.js";import{a as V}from"../chunk-CBLKARLC.js";import{f as y}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var l="express",F=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,A as AgentDeliveryError,R 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,b as SeverityLevelEnum,x as TextInput,N as agent,l as frameworkName,V as providerSchemas,F as serve,O as step,k as workflow};
|
package/dist/esm/servers/h3.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as h3 from 'h3';
|
|
2
2
|
import { H3Event } from 'h3';
|
|
3
|
-
import { S as ServeHandlerOptions } from '../index-
|
|
4
|
-
export { A as Agent, a as AgentAction, b as
|
|
3
|
+
import { S as ServeHandlerOptions } from '../index-DiFdSsia.js';
|
|
4
|
+
export { A as Agent, a as AgentAction, b as AgentActionContext, c as AgentAttachment, d as AgentBridgeRequest, e as AgentContext, f as AgentConversation, g as AgentDeliveryError, h as AgentEventEnum, i as AgentHandlers, j as AgentHistoryEntry, k as AgentMessage, l as AgentMessageAuthor, m as AgentMessageContext, n as AgentPlatformContext, o as AgentReaction, p as AgentReactionContext, q as AgentReplyPayload, r as AgentResolveContext, s as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, t as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, u as ReplyHandle, v as SentMessageInfo, w as Signal, T as TriggerSignal, x as agent, y as workflow } from '../index-DiFdSsia.js';
|
|
5
5
|
export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-C5lg4csi.js';
|
|
6
6
|
export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-CbMgjzR-.js';
|
|
7
7
|
import { S as SupportedFrameworkName } from '../server.types-BRWsA1CA.js';
|
package/dist/esm/servers/h3.js
CHANGED
|
@@ -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 x,n as O,o as t,p as F}from"../chunk-
|
|
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 O,o as t,p as F}from"../chunk-H2XIPY7V.js";import"../chunk-T2VIX2ZH.js";import{a as $}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as q}from"../chunk-6GCCKYZC.js";import{a as b}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",D=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,k as AgentDeliveryError,O 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,q as SeverityLevelEnum,E as TextInput,x as agent,h as frameworkName,b as providerSchemas,D as serve,$ as step,F 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-
|
|
4
|
-
export { A as Agent, a as AgentAction, b as
|
|
3
|
+
import { S as ServeHandlerOptions } from '../index-DiFdSsia.js';
|
|
4
|
+
export { A as Agent, a as AgentAction, b as AgentActionContext, c as AgentAttachment, d as AgentBridgeRequest, e as AgentContext, f as AgentConversation, g as AgentDeliveryError, h as AgentEventEnum, i as AgentHandlers, j as AgentHistoryEntry, k as AgentMessage, l as AgentMessageAuthor, m as AgentMessageContext, n as AgentPlatformContext, o as AgentReaction, p as AgentReactionContext, q as AgentReplyPayload, r as AgentResolveContext, s as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, t as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, u as ReplyHandle, v as SentMessageInfo, w as Signal, T as TriggerSignal, x as agent, y as workflow } from '../index-DiFdSsia.js';
|
|
5
5
|
export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-C5lg4csi.js';
|
|
6
6
|
import { a as Either } from '../subscriber.types-CbMgjzR-.js';
|
|
7
7
|
export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-CbMgjzR-.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 A,n as G,o as n,p as q}from"../chunk-
|
|
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 as G,o as n,p as q}from"../chunk-H2XIPY7V.js";import"../chunk-T2VIX2ZH.js";import{a as g}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as b}from"../chunk-6GCCKYZC.js";import{a as S}from"../chunk-CBLKARLC.js";import{f as m}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var p="lambda",H=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,I as AgentDeliveryError,G 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,b as SeverityLevelEnum,E as TextInput,A as agent,p as frameworkName,S as providerSchemas,H as serve,g as step,q 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-
|
|
2
|
-
export { a as AgentAction, b as
|
|
1
|
+
import { I as INovuRequestHandlerOptions, N as NovuRequestHandler, S as ServeHandlerOptions, C as Client, A as Agent } from '../index-DiFdSsia.js';
|
|
2
|
+
export { a as AgentAction, b as AgentActionContext, c as AgentAttachment, d as AgentBridgeRequest, e as AgentContext, f as AgentConversation, g as AgentDeliveryError, h as AgentEventEnum, i as AgentHandlers, j as AgentHistoryEntry, k as AgentMessage, l as AgentMessageAuthor, m as AgentMessageContext, n as AgentPlatformContext, o as AgentReaction, p as AgentReactionContext, q as AgentReplyPayload, r as AgentResolveContext, s as AgentSubscriber, E as EditPayload, F as FileRef, M as MessageContent, t as MetadataSignal, R as ReplyContent, u as ReplyHandle, v as SentMessageInfo, w as Signal, T as TriggerSignal, x as agent, y as workflow } from '../index-DiFdSsia.js';
|
|
3
3
|
import { W as Workflow } from '../health-check.types-C5lg4csi.js';
|
|
4
4
|
export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum } from '../health-check.types-C5lg4csi.js';
|
|
5
5
|
export { Actions, Button, Card, CardChild, CardElement, CardLink, CardText, Divider, Select, SelectOption, TextInput } from 'chat';
|
package/dist/esm/servers/nest.js
CHANGED
|
@@ -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 K,n as z,o as y,p as W}from"../chunk-
|
|
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 z,o as y,p as W}from"../chunk-H2XIPY7V.js";import"../chunk-T2VIX2ZH.js";import{a as X}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as Q}from"../chunk-6GCCKYZC.js";import{a as J}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:ee,ASYNC_OPTIONS_TYPE:re}=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,$ as AgentDeliveryError,z 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,Q as SeverityLevelEnum,L as TextInput,K as agent,_ as frameworkName,J as providerSchemas,h as registerApiPath,X as step,W as workflow};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NextRequest } from 'next/server';
|
|
2
|
-
import { S as ServeHandlerOptions } from '../index-
|
|
3
|
-
export { A as Agent, a as AgentAction, b as
|
|
2
|
+
import { S as ServeHandlerOptions } from '../index-DiFdSsia.js';
|
|
3
|
+
export { A as Agent, a as AgentAction, b as AgentActionContext, c as AgentAttachment, d as AgentBridgeRequest, e as AgentContext, f as AgentConversation, g as AgentDeliveryError, h as AgentEventEnum, i as AgentHandlers, j as AgentHistoryEntry, k as AgentMessage, l as AgentMessageAuthor, m as AgentMessageContext, n as AgentPlatformContext, o as AgentReaction, p as AgentReactionContext, q as AgentReplyPayload, r as AgentResolveContext, s as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, t as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, u as ReplyHandle, v as SentMessageInfo, w as Signal, T as TriggerSignal, x as agent, y as workflow } from '../index-DiFdSsia.js';
|
|
4
4
|
export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-C5lg4csi.js';
|
|
5
5
|
export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-CbMgjzR-.js';
|
|
6
6
|
import { S as SupportedFrameworkName } from '../server.types-BRWsA1CA.js';
|
package/dist/esm/servers/next.js
CHANGED
|
@@ -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 F,n as j,o as c,p as I}from"../chunk-
|
|
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 j,o as c,p as I}from"../chunk-H2XIPY7V.js";import"../chunk-T2VIX2ZH.js";import{a as U}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as G}from"../chunk-6GCCKYZC.js";import{a as k}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",D=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,g as AgentDeliveryError,j 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,G as SeverityLevelEnum,v as TextInput,F as agent,m as frameworkName,k as providerSchemas,D as serve,U as step,I 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-
|
|
4
|
-
export { A as Agent, a as AgentAction, b as
|
|
3
|
+
import { S as ServeHandlerOptions } from '../index-DiFdSsia.js';
|
|
4
|
+
export { A as Agent, a as AgentAction, b as AgentActionContext, c as AgentAttachment, d as AgentBridgeRequest, e as AgentContext, f as AgentConversation, g as AgentDeliveryError, h as AgentEventEnum, i as AgentHandlers, j as AgentHistoryEntry, k as AgentMessage, l as AgentMessageAuthor, m as AgentMessageContext, n as AgentPlatformContext, o as AgentReaction, p as AgentReactionContext, q as AgentReplyPayload, r as AgentResolveContext, s as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, t as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, u as ReplyHandle, v as SentMessageInfo, w as Signal, T as TriggerSignal, x as agent, y as workflow } from '../index-DiFdSsia.js';
|
|
5
5
|
export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-C5lg4csi.js';
|
|
6
6
|
export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-CbMgjzR-.js';
|
|
7
7
|
import { S as SupportedFrameworkName } from '../server.types-BRWsA1CA.js';
|
package/dist/esm/servers/nuxt.js
CHANGED
|
@@ -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 k,n as O,o as t,p as F}from"../chunk-
|
|
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 O,o as t,p as F}from"../chunk-H2XIPY7V.js";import"../chunk-T2VIX2ZH.js";import{a as $}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as q}from"../chunk-6GCCKYZC.js";import{a as b}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",L=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,E as AgentDeliveryError,O 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,q as SeverityLevelEnum,x as TextInput,k as agent,u as frameworkName,b as providerSchemas,L as serve,$ as step,F as workflow};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as ServeHandlerOptions } from '../index-
|
|
2
|
-
export { A as Agent, a as AgentAction, b as
|
|
1
|
+
import { S as ServeHandlerOptions } from '../index-DiFdSsia.js';
|
|
2
|
+
export { A as Agent, a as AgentAction, b as AgentActionContext, c as AgentAttachment, d as AgentBridgeRequest, e as AgentContext, f as AgentConversation, g as AgentDeliveryError, h as AgentEventEnum, i as AgentHandlers, j as AgentHistoryEntry, k as AgentMessage, l as AgentMessageAuthor, m as AgentMessageContext, n as AgentPlatformContext, o as AgentReaction, p as AgentReactionContext, q as AgentReplyPayload, r as AgentResolveContext, s as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, t as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, u as ReplyHandle, v as SentMessageInfo, w as Signal, T as TriggerSignal, x as agent, y as workflow } from '../index-DiFdSsia.js';
|
|
3
3
|
export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-C5lg4csi.js';
|
|
4
4
|
export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-CbMgjzR-.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 N,n as S,o,p as q}from"../chunk-
|
|
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 S,o,p as q}from"../chunk-H2XIPY7V.js";import"../chunk-T2VIX2ZH.js";import{a as F}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as y}from"../chunk-6GCCKYZC.js";import{a as g}from"../chunk-CBLKARLC.js";import{f as u}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var m="remix",j=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,H as AgentDeliveryError,S 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,y as SeverityLevelEnum,v as TextInput,N as agent,m as frameworkName,g as providerSchemas,j as serve,F as step,q as workflow};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RequestEvent } from '@sveltejs/kit';
|
|
2
|
-
import { S as ServeHandlerOptions } from '../index-
|
|
3
|
-
export { A as Agent, a as AgentAction, b as
|
|
2
|
+
import { S as ServeHandlerOptions } from '../index-DiFdSsia.js';
|
|
3
|
+
export { A as Agent, a as AgentAction, b as AgentActionContext, c as AgentAttachment, d as AgentBridgeRequest, e as AgentContext, f as AgentConversation, g as AgentDeliveryError, h as AgentEventEnum, i as AgentHandlers, j as AgentHistoryEntry, k as AgentMessage, l as AgentMessageAuthor, m as AgentMessageContext, n as AgentPlatformContext, o as AgentReaction, p as AgentReactionContext, q as AgentReplyPayload, r as AgentResolveContext, s as AgentSubscriber, C as Client, E as EditPayload, F as FileRef, M as MessageContent, t as MetadataSignal, N as NovuRequestHandler, R as ReplyContent, u as ReplyHandle, v as SentMessageInfo, w as Signal, T as TriggerSignal, x as agent, y as workflow } from '../index-DiFdSsia.js';
|
|
4
4
|
export { C as ClientOptions, a as CronExpression, E as ExecuteInput, S as SeverityLevelEnum, W as Workflow } from '../health-check.types-C5lg4csi.js';
|
|
5
5
|
export { C as ContextResolved, E as EnvironmentSystemVariables, S as Subscriber, p as providerSchemas } from '../subscriber.types-CbMgjzR-.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 b,n as w,o as s,p as I}from"../chunk-
|
|
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 w,o as s,p as I}from"../chunk-H2XIPY7V.js";import"../chunk-T2VIX2ZH.js";import{a as k}from"../chunk-2M25EATE.js";import"../chunk-U3IL7QCI.js";import{O as G}from"../chunk-6GCCKYZC.js";import{a as y}from"../chunk-CBLKARLC.js";import{f as v}from"../chunk-EWC7I6UD.js";import"../chunk-52LSX2V5.js";var m="sveltekit",x=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,F as AgentDeliveryError,w 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,G as SeverityLevelEnum,q as TextInput,b as agent,m as frameworkName,y as providerSchemas,x as serve,k as step,I as workflow};
|