@asgard-js/core 0.0.4 → 0.0.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.
@@ -0,0 +1,19 @@
1
+ import { ChannelConfig, FetchSseOptions, FetchSsePayload } from '../types';
2
+
3
+ export default class Channel {
4
+ private client;
5
+ customChannelId: string;
6
+ customMessageId?: string;
7
+ private isConnecting$;
8
+ private conversation$;
9
+ private statesObserver?;
10
+ private statesSubscription?;
11
+ private constructor();
12
+ static reset(config: ChannelConfig, options?: FetchSseOptions): Promise<Channel>;
13
+ private subscribe;
14
+ private fetchSse;
15
+ private resetChannel;
16
+ sendMessage(payload: Pick<FetchSsePayload, 'customMessageId' | 'text'>, options?: FetchSseOptions): Promise<void>;
17
+ close(): void;
18
+ }
19
+ //# sourceMappingURL=channel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../src/lib/channel.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EAEb,eAAe,EACf,eAAe,EAGhB,MAAM,WAAW,CAAC;AAInB,MAAM,CAAC,OAAO,OAAO,OAAO;IAC1B,OAAO,CAAC,MAAM,CAAuB;IAE9B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEhC,OAAO,CAAC,aAAa,CAA2B;IAChD,OAAO,CAAC,aAAa,CAAgC;IACrD,OAAO,CAAC,cAAc,CAAC,CAAgC;IACvD,OAAO,CAAC,kBAAkB,CAAC,CAAe;IAE1C,OAAO;WAkBa,KAAK,CACvB,MAAM,EAAE,aAAa,EACrB,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,OAAO,CAAC;IAgBnB,OAAO,CAAC,SAAS;IAcjB,OAAO,CAAC,QAAQ;IA2BhB,OAAO,CAAC,YAAY;IAYb,WAAW,CAChB,OAAO,EAAE,IAAI,CAAC,eAAe,EAAE,iBAAiB,GAAG,MAAM,CAAC,EAC1D,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,IAAI,CAAC;IAwBT,KAAK,IAAI,IAAI;CAKrB"}
@@ -0,0 +1,13 @@
1
+ import { ClientConfig, IAsgardServiceClient, FetchSsePayload, FetchSseOptions } from '../types';
2
+
3
+ export default class AsgardServiceClient implements IAsgardServiceClient {
4
+ private apiKey;
5
+ private endpoint;
6
+ private destroy$;
7
+ private onExecutionError?;
8
+ private transformSsePayload?;
9
+ constructor(config: ClientConfig);
10
+ fetchSse(payload: FetchSsePayload, options?: FetchSseOptions): void;
11
+ close(): void;
12
+ }
13
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/lib/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,eAAe,EACf,eAAe,EAGhB,MAAM,WAAW,CAAC;AAKnB,MAAM,CAAC,OAAO,OAAO,mBAAoB,YAAW,oBAAoB;IACtE,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAAuB;IACvC,OAAO,CAAC,gBAAgB,CAAC,CAAkC;IAC3D,OAAO,CAAC,mBAAmB,CAAC,CAAgD;gBAEhE,MAAM,EAAE,YAAY;IAehC,QAAQ,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI;IAqCnE,KAAK,IAAI,IAAI;CAId"}
@@ -0,0 +1,21 @@
1
+ import { ConversationMessage, SseResponse } from '../types';
2
+ import { EventType } from '../constants/enum';
3
+
4
+ interface IConversation {
5
+ messages: Map<string, ConversationMessage> | null;
6
+ showDebugMessage?: boolean;
7
+ }
8
+ export default class Conversation implements IConversation {
9
+ showDebugMessage: boolean;
10
+ messages: Map<string, ConversationMessage> | null;
11
+ constructor({ messages, showDebugMessage }: IConversation);
12
+ private create;
13
+ pushMessage(message: ConversationMessage): Conversation;
14
+ onMessage(response: SseResponse<EventType>): Conversation;
15
+ onMessageStart(response: SseResponse<EventType.MESSAGE_START>): Conversation;
16
+ onMessageDelta(response: SseResponse<EventType.MESSAGE_DELTA>): Conversation;
17
+ onMessageComplete(response: SseResponse<EventType.MESSAGE_COMPLETE>): Conversation;
18
+ onMessageError(response: SseResponse<EventType.ERROR>): Conversation;
19
+ }
20
+ export {};
21
+ //# sourceMappingURL=conversation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../src/lib/conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7D,UAAU,aAAa;IACrB,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAAG,IAAI,CAAC;IAClD,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,OAAO,YAAa,YAAW,aAAa;IACjD,gBAAgB,UAAS;IACzB,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAAG,IAAI,CAAQ;gBAEpD,EAAE,QAAQ,EAAE,gBAAgB,EAAE,EAAE,aAAa;IAKzD,OAAO,CAAC,MAAM;IAOd,WAAW,CAAC,OAAO,EAAE,mBAAmB,GAAG,YAAY;IAOvD,SAAS,CAAC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,GAAG,YAAY;IAqBzD,cAAc,CAAC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,aAAa,CAAC,GAAG,YAAY;IAwB5E,cAAc,CAAC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,aAAa,CAAC,GAAG,YAAY;IA+B5E,iBAAiB,CACf,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,gBAAgB,CAAC,GAChD,YAAY;IAsBf,cAAc,CAAC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,YAAY;CAgBrE"}
@@ -0,0 +1,12 @@
1
+ import { EventType } from '../constants/enum';
2
+ import { FetchSsePayload, SseResponse } from '../types';
3
+ import { Observable } from 'rxjs';
4
+
5
+ interface CreateSseObservableOptions {
6
+ endpoint: string;
7
+ apiKey: string;
8
+ payload: FetchSsePayload;
9
+ }
10
+ export declare function createSseObservable(options: CreateSseObservableOptions): Observable<SseResponse<EventType>>;
11
+ export {};
12
+ //# sourceMappingURL=create-sse-observable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-sse-observable.d.ts","sourceRoot":"","sources":["../../src/lib/create-sse-observable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAKlC,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,UAAU,0BAA0B;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,0BAA0B,GAClC,UAAU,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAqCpC"}
@@ -0,0 +1,42 @@
1
+ import { ErrorMessage, Message } from './sse-response';
2
+ import { IAsgardServiceClient } from './client';
3
+ import { default as Conversation } from '../lib/conversation';
4
+ import { EventType } from '../constants/enum';
5
+ import { Observer } from 'rxjs';
6
+
7
+ export type ObserverOrNext<T> = Partial<Observer<T>> | ((value: T) => void);
8
+ export interface ChannelStates {
9
+ isConnecting: boolean;
10
+ conversation: Conversation;
11
+ }
12
+ export interface ChannelConfig {
13
+ client: IAsgardServiceClient;
14
+ customChannelId: string;
15
+ customMessageId?: string;
16
+ conversation: Conversation;
17
+ statesObserver?: ObserverOrNext<ChannelStates>;
18
+ }
19
+ export type ConversationUserMessage = {
20
+ type: 'user';
21
+ messageId: string;
22
+ text: string;
23
+ time: Date;
24
+ };
25
+ export type ConversationBotMessage = {
26
+ type: 'bot';
27
+ messageId: string;
28
+ eventType: EventType;
29
+ isTyping: boolean;
30
+ typingText: string | null;
31
+ message: Message;
32
+ time: Date;
33
+ };
34
+ export type ConversationErrorMessage = {
35
+ type: 'error';
36
+ messageId: string;
37
+ eventType: EventType;
38
+ error: ErrorMessage;
39
+ time: Date;
40
+ };
41
+ export type ConversationMessage = ConversationUserMessage | ConversationBotMessage | ConversationErrorMessage;
42
+ //# sourceMappingURL=channel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../src/types/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,YAAY,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC,CAAC;AAE5E,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,oBAAoB,CAAC;IAC7B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,YAAY,CAAC;IAC3B,cAAc,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;CAChD;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,KAAK,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,KAAK,EAAE,YAAY,CAAC;IACpB,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAC3B,uBAAuB,GACvB,sBAAsB,GACtB,wBAAwB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { ErrorEventData, SseResponse } from './sse-response';
2
+ import { EventType, FetchSseAction } from '../constants/enum';
3
+
4
+ export interface IAsgardServiceClient {
5
+ fetchSse(payload: FetchSsePayload, options?: FetchSseOptions): void;
6
+ }
7
+ export interface ClientConfig {
8
+ endpoint: string;
9
+ apiKey: string;
10
+ onExecutionError?: (error: ErrorEventData) => void;
11
+ transformSsePayload?: (payload: FetchSsePayload) => FetchSsePayload;
12
+ }
13
+ export interface FetchSsePayload {
14
+ customChannelId: string;
15
+ customMessageId?: string;
16
+ text: string;
17
+ action: FetchSseAction;
18
+ }
19
+ export interface FetchSseOptions {
20
+ delayTime?: number;
21
+ onSseStart?: () => void;
22
+ onSseMessage?: (response: SseResponse<EventType>) => void;
23
+ onSseError?: (error: unknown) => void;
24
+ onSseCompleted?: () => void;
25
+ }
26
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/types/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7D,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,OAAO,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;CACrE;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IACnD,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,eAAe,CAAC;CACrE;AAED,MAAM,WAAW,eAAe;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;IAC1D,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B"}
@@ -0,0 +1,4 @@
1
+ export type * from './client';
2
+ export type * from './channel';
3
+ export type * from './sse-response';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,WAAW,CAAC;AAC/B,mBAAmB,gBAAgB,CAAC"}
@@ -0,0 +1,109 @@
1
+ import { EventType, MessageTemplateType } from '../constants/enum';
2
+
3
+ export interface MessageTemplate {
4
+ quickReplies: {
5
+ text: string;
6
+ }[];
7
+ }
8
+ export interface TextMessageTemplate extends MessageTemplate {
9
+ type: MessageTemplateType.TEXT;
10
+ text: string;
11
+ }
12
+ export interface HintMessageTemplate extends MessageTemplate {
13
+ type: MessageTemplateType.HINT;
14
+ text: string;
15
+ }
16
+ export interface ImageMessageTemplate extends MessageTemplate {
17
+ type: MessageTemplateType.IMAGE;
18
+ originalContentUrl: string;
19
+ previewImageUrl: string;
20
+ }
21
+ export interface VideoMessageTemplate extends MessageTemplate {
22
+ type: MessageTemplateType.VIDEO;
23
+ originalContentUrl: string;
24
+ previewImageUrl: string;
25
+ duration: number;
26
+ }
27
+ export interface AudioMessageTemplate extends MessageTemplate {
28
+ type: MessageTemplateType.AUDIO;
29
+ originalContentUrl: string;
30
+ duration: number;
31
+ }
32
+ export interface LocationMessageTemplate extends MessageTemplate {
33
+ type: MessageTemplateType.LOCATION;
34
+ title: string;
35
+ text: string;
36
+ latitude: number;
37
+ longitude: number;
38
+ }
39
+ export type ButtonAction = {
40
+ type: 'message';
41
+ text: string;
42
+ uri?: null;
43
+ } | {
44
+ type: 'uri';
45
+ text?: null;
46
+ uri: string;
47
+ };
48
+ export interface ButtonMessageTemplate extends MessageTemplate {
49
+ type: MessageTemplateType.BUTTON;
50
+ title: string;
51
+ text: string;
52
+ thumbnailImageUrl: string;
53
+ imageAspectRatio: 'rectangle' | 'square';
54
+ imageSize: 'cover' | 'contain';
55
+ imageBackgroundColor: string;
56
+ defaultAction: ButtonAction;
57
+ buttons: {
58
+ label: string;
59
+ action: ButtonAction;
60
+ }[];
61
+ }
62
+ export interface CarouselMessageTemplate extends MessageTemplate {
63
+ type: MessageTemplateType.CAROUSEL;
64
+ columns: Omit<ButtonMessageTemplate, 'type' | 'quickReplies'>[];
65
+ }
66
+ export interface Message<Payload = unknown> {
67
+ messageId: string;
68
+ replyToCustomMessageId: string;
69
+ text: string;
70
+ payload: Payload | null;
71
+ isDebug: boolean;
72
+ idx: number;
73
+ template: TextMessageTemplate | HintMessageTemplate | ButtonMessageTemplate | ImageMessageTemplate | VideoMessageTemplate | AudioMessageTemplate | LocationMessageTemplate | CarouselMessageTemplate;
74
+ }
75
+ export type IsEqual<A, B, DataType> = A extends B ? B extends A ? DataType : null : null;
76
+ export interface MessageEventData {
77
+ message: Message;
78
+ }
79
+ export interface ErrorMessage {
80
+ message: string;
81
+ code: string;
82
+ inner: string;
83
+ location: {
84
+ namespace: string;
85
+ workflowName: string;
86
+ processorName: string;
87
+ processorType: string;
88
+ };
89
+ }
90
+ export interface ErrorEventData {
91
+ error: ErrorMessage;
92
+ }
93
+ export interface Fact<Type extends EventType> {
94
+ runInit: null;
95
+ runDone: null;
96
+ runError: IsEqual<Type, EventType.ERROR, ErrorEventData>;
97
+ messageStart: IsEqual<Type, EventType.MESSAGE_START, MessageEventData>;
98
+ messageDelta: IsEqual<Type, EventType.MESSAGE_DELTA, MessageEventData>;
99
+ messageComplete: IsEqual<Type, EventType.MESSAGE_COMPLETE, MessageEventData>;
100
+ }
101
+ export interface SseResponse<Type extends EventType> {
102
+ eventType: Type;
103
+ requestId: string;
104
+ namespace: string;
105
+ botProviderName: string;
106
+ customChannelId: string;
107
+ fact: Fact<Type>;
108
+ }
109
+ //# sourceMappingURL=sse-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sse-response.d.ts","sourceRoot":"","sources":["../../src/types/sse-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEpE,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,mBAAoB,SAAQ,eAA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ACd,QAAQ,EAAE;QACR,SAAS,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,MAAM,CAAC;QACrB,aAAa,EAAE,MAAM,CAAC;QACtB,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;CACH;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,YAAY,CAAC;CACrB;AAED,MAAM,WAAW,IAAI,CAAC,IAAI,SAAS,SAAS;IAC1C,OAAO,EAAE,IAAI,CAAC;IACd,OAAO,EAAE,IAAI,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;IACzD,YAAY,EAAE,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC;IACvE,YAAY,EAAE,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC;IACvE,eAAe,EAAE,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;CAC9E;AAED,MAAM,WAAW,WAAW,CAAC,IAAI,SAAS,SAAS;IACjD,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;CAClB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgard-js/core",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "dependencies": {
5
5
  "@microsoft/fetch-event-source": "^2.0.1",
6
6
  "rxjs": "^7.8.1"