@cimulate/copilot-sdk 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/bundle.cimulate.copilot-sdk.099d19fa.umd.js +2 -0
- package/dist/bundle.cimulate.copilot-sdk.099d19fa.umd.js.map +1 -0
- package/dist/bundle.cimulate.copilot-sdk.5716b677.cjs.js +2 -0
- package/dist/bundle.cimulate.copilot-sdk.5716b677.cjs.js.map +1 -0
- package/dist/bundle.cimulate.copilot-sdk.64883fd2.esm.js +2 -0
- package/dist/bundle.cimulate.copilot-sdk.64883fd2.esm.js.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/copilot.d.ts +17 -17
- package/dist/types/model/Cancel.d.ts +1 -1
- package/dist/types/model/CommonEventFields.d.ts +1 -1
- package/dist/types/model/CommonFields.d.ts +3 -4
- package/dist/types/model/CommonMetadata.d.ts +7 -0
- package/dist/types/model/CommonRequiredFields.d.ts +2 -3
- package/dist/types/model/ConnectAck.d.ts +4 -4
- package/dist/types/model/ConnectAckMessageFields.d.ts +8 -0
- package/dist/types/model/CopilotEvent.d.ts +20 -0
- package/dist/types/model/CopilotSearch.d.ts +3 -3
- package/dist/types/model/CopilotSearchSuggestion.d.ts +7 -0
- package/dist/types/model/DisplayProducts.d.ts +7 -6
- package/dist/types/model/DisplayProductsMessageFields.d.ts +4 -2
- package/dist/types/model/Done.d.ts +4 -4
- package/dist/types/model/DoneMessageFields.d.ts +4 -0
- package/dist/types/model/Error.d.ts +5 -5
- package/dist/types/model/ErrorMessageFields.d.ts +2 -1
- package/dist/types/model/EventAck.d.ts +14 -8
- package/dist/types/model/EventAckMessageFields.d.ts +10 -0
- package/dist/types/model/EventAckNames.d.ts +6 -0
- package/dist/types/model/FacetValue.d.ts +1 -1
- package/dist/types/model/FacetedNavigation.d.ts +2 -2
- package/dist/types/model/FacetedNavigationSuggestion.d.ts +7 -0
- package/dist/types/model/FollowUp.d.ts +7 -6
- package/dist/types/model/FollowUpMessageFields.d.ts +7 -0
- package/dist/types/model/Inquiry.d.ts +4 -4
- package/dist/types/model/InquiryMessageFields.d.ts +4 -0
- package/dist/types/model/PartialInquiry.d.ts +5 -5
- package/dist/types/model/PartialInquiryMessageFields.d.ts +2 -1
- package/dist/types/model/RefinedSearch.d.ts +10 -9
- package/dist/types/model/RefinedSearchMessageFields.d.ts +7 -5
- package/dist/types/model/ReturnedFields.d.ts +2 -0
- package/dist/types/model/Root.d.ts +34 -26
- package/dist/types/model/SearchParams.d.ts +5 -0
- package/dist/types/model/SessionData.d.ts +5 -4
- package/dist/types/model/SessionEventStatusReply.d.ts +1 -2
- package/dist/types/model/SessionInformation.d.ts +7 -7
- package/dist/types/model/WorkflowMetadata.d.ts +5 -0
- package/dist/types/model/index.d.ts +14 -8
- package/package.json +6 -4
- package/rollup.config.js +1 -1
- package/src/copilot.ts +49 -25
- package/src/model/Cancel.ts +1 -1
- package/src/model/CommonEventFields.ts +1 -1
- package/src/model/CommonFields.ts +3 -4
- package/src/model/CommonMetadata.ts +7 -0
- package/src/model/CommonRequiredFields.ts +2 -3
- package/src/model/ConnectAck.ts +4 -4
- package/src/model/ConnectAckMessageFields.ts +8 -0
- package/src/model/CopilotEvent.ts +20 -0
- package/src/model/CopilotSearch.ts +3 -3
- package/src/model/CopilotSearchSuggestion.ts +7 -0
- package/src/model/DisplayProducts.ts +7 -7
- package/src/model/DisplayProductsMessageFields.ts +4 -3
- package/src/model/Done.ts +4 -4
- package/src/model/DoneMessageFields.ts +5 -0
- package/src/model/Error.ts +5 -5
- package/src/model/ErrorMessageFields.ts +2 -1
- package/src/model/EventAck.ts +16 -8
- package/src/model/EventAckMessageFields.ts +10 -0
- package/src/model/EventAckNames.ts +7 -0
- package/src/model/FacetValue.ts +1 -1
- package/src/model/FacetedNavigation.ts +2 -2
- package/src/model/FacetedNavigationSuggestion.ts +7 -0
- package/src/model/FollowUp.ts +7 -6
- package/src/model/FollowUpMessageFields.ts +7 -0
- package/src/model/Inquiry.ts +4 -4
- package/src/model/InquiryMessageFields.ts +5 -0
- package/src/model/PartialInquiry.ts +5 -5
- package/src/model/PartialInquiryMessageFields.ts +2 -1
- package/src/model/RefinedSearch.ts +10 -9
- package/src/model/RefinedSearchMessageFields.ts +7 -5
- package/src/model/ReturnedFields.ts +4 -0
- package/src/model/Root.ts +34 -26
- package/src/model/SearchParams.ts +6 -0
- package/src/model/SessionData.ts +5 -4
- package/src/model/SessionEventStatusReply.ts +1 -2
- package/src/model/SessionInformation.ts +7 -7
- package/src/model/WorkflowMetadata.ts +6 -0
- package/src/model/index.ts +14 -8
- package/tsconfig.json +2 -1
- package/dist/bundle.cimulate.copilot-sdk.65f7195a.esm.js +0 -2
- package/dist/bundle.cimulate.copilot-sdk.65f7195a.esm.js.map +0 -1
- package/dist/bundle.cimulate.copilot-sdk.a2e829d8.cjs.js +0 -2
- package/dist/bundle.cimulate.copilot-sdk.a2e829d8.cjs.js.map +0 -1
- package/dist/bundle.cimulate.copilot-sdk.c68ae11d.umd.js +0 -2
- package/dist/bundle.cimulate.copilot-sdk.c68ae11d.umd.js.map +0 -1
- package/dist/types/model/ConnectionAcknowledgmentMessageFields.d.ts +0 -7
- package/dist/types/model/EventAcknowledgmentMessageFields.d.ts +0 -6
- package/dist/types/model/FollowMinusUpMessageFields.d.ts +0 -5
- package/dist/types/model/ReservedEvent.d.ts +0 -10
- package/dist/types/model/SearchParameters.d.ts +0 -5
- package/dist/types/model/SessionEventInformationReply.d.ts +0 -5
- package/dist/types/model/Suggestion.d.ts +0 -6
- package/src/model/ConnectionAcknowledgmentMessageFields.ts +0 -7
- package/src/model/EventAcknowledgmentMessageFields.ts +0 -6
- package/src/model/FollowMinusUpMessageFields.ts +0 -5
- package/src/model/ReservedEvent.ts +0 -11
- package/src/model/SearchParameters.ts +0 -6
- package/src/model/SessionEventInformationReply.ts +0 -6
- package/src/model/Suggestion.ts +0 -7
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { ReturnedFields } from './ReturnedFields';
|
|
2
|
+
interface DisplayProducts<T extends object = ReturnedFields> {
|
|
3
|
+
session_id: string;
|
|
4
|
+
event_id: string;
|
|
5
5
|
timestamp: string;
|
|
6
|
-
|
|
6
|
+
event_source_id: string;
|
|
7
7
|
message: string;
|
|
8
|
-
|
|
8
|
+
event_name: 'display_products';
|
|
9
|
+
products: T[];
|
|
9
10
|
}
|
|
10
11
|
export { DisplayProducts };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { ReturnedFields } from './ReturnedFields';
|
|
2
|
+
interface DisplayProductsMessageFields<T extends object = ReturnedFields> {
|
|
3
|
+
event_name: 'display_products';
|
|
4
|
+
products: T[];
|
|
3
5
|
}
|
|
4
6
|
export { DisplayProductsMessageFields };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
interface Done {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
eventName: string;
|
|
2
|
+
session_id: string;
|
|
3
|
+
event_id: string;
|
|
5
4
|
timestamp: string;
|
|
6
|
-
|
|
5
|
+
event_source_id: string;
|
|
7
6
|
message: string;
|
|
7
|
+
event_name: 'done';
|
|
8
8
|
}
|
|
9
9
|
export { Done };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
interface Error {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
eventName: string;
|
|
2
|
+
session_id: string;
|
|
3
|
+
event_id: string;
|
|
5
4
|
timestamp: string;
|
|
6
|
-
|
|
5
|
+
event_source_id: string;
|
|
7
6
|
message: string;
|
|
8
|
-
|
|
7
|
+
status: number;
|
|
9
8
|
error: string;
|
|
9
|
+
event_name: 'error';
|
|
10
10
|
}
|
|
11
11
|
export { Error };
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { CopilotSearch } from './CopilotSearch';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { FacetedNavigation } from './FacetedNavigation';
|
|
3
|
+
import { Cancel } from './Cancel';
|
|
4
|
+
import { EventAckNames } from './EventAckNames';
|
|
5
|
+
type EventRequestMap = {
|
|
6
|
+
copilot_search_ack: CopilotSearch;
|
|
7
|
+
faceted_navigation_ack: FacetedNavigation;
|
|
8
|
+
cancel_ack: Cancel;
|
|
9
|
+
};
|
|
10
|
+
interface EventAck<T extends EventAckNames = EventAckNames> {
|
|
11
|
+
session_id: string;
|
|
12
|
+
event_id: string;
|
|
6
13
|
timestamp: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
request: CopilotSearch;
|
|
14
|
+
status: string;
|
|
15
|
+
request: EventRequestMap[T];
|
|
16
|
+
event_name: T;
|
|
11
17
|
}
|
|
12
18
|
export { EventAck };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CopilotSearch } from './CopilotSearch';
|
|
2
|
+
import { FacetedNavigation } from './FacetedNavigation';
|
|
3
|
+
import { Cancel } from './Cancel';
|
|
4
|
+
import { EventAckNames } from './EventAckNames';
|
|
5
|
+
interface EventAckMessageFields {
|
|
6
|
+
status: string;
|
|
7
|
+
request: CopilotSearch | FacetedNavigation | Cancel;
|
|
8
|
+
event_name: EventAckNames;
|
|
9
|
+
}
|
|
10
|
+
export { EventAckMessageFields };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CopilotSearchSuggestion } from './CopilotSearchSuggestion';
|
|
2
|
+
import { FacetedNavigationSuggestion } from './FacetedNavigationSuggestion';
|
|
2
3
|
interface FollowUp {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
eventName: string;
|
|
4
|
+
session_id: string;
|
|
5
|
+
event_id: string;
|
|
6
6
|
timestamp: string;
|
|
7
|
-
|
|
7
|
+
event_source_id: string;
|
|
8
8
|
message: string;
|
|
9
|
-
suggestions:
|
|
9
|
+
suggestions: (CopilotSearchSuggestion | FacetedNavigationSuggestion)[];
|
|
10
|
+
event_name: 'follow_up';
|
|
10
11
|
}
|
|
11
12
|
export { FollowUp };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CopilotSearchSuggestion } from './CopilotSearchSuggestion';
|
|
2
|
+
import { FacetedNavigationSuggestion } from './FacetedNavigationSuggestion';
|
|
3
|
+
interface FollowUpMessageFields {
|
|
4
|
+
suggestions: (CopilotSearchSuggestion | FacetedNavigationSuggestion)[];
|
|
5
|
+
event_name: 'follow_up';
|
|
6
|
+
}
|
|
7
|
+
export { FollowUpMessageFields };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
interface Inquiry {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
eventName: string;
|
|
2
|
+
session_id: string;
|
|
3
|
+
event_id: string;
|
|
5
4
|
timestamp: string;
|
|
6
|
-
|
|
5
|
+
event_source_id: string;
|
|
7
6
|
message: string;
|
|
7
|
+
event_name: 'inquiry';
|
|
8
8
|
}
|
|
9
9
|
export { Inquiry };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
interface PartialInquiry {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
eventName: string;
|
|
2
|
+
session_id: string;
|
|
3
|
+
event_id: string;
|
|
5
4
|
timestamp: string;
|
|
6
|
-
|
|
5
|
+
event_source_id: string;
|
|
7
6
|
message: string;
|
|
8
|
-
|
|
7
|
+
inquiry_event_id: string;
|
|
9
8
|
index: number;
|
|
9
|
+
event_name: 'partial_inquiry';
|
|
10
10
|
}
|
|
11
11
|
export { PartialInquiry };
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SearchParams } from './SearchParams';
|
|
2
2
|
import { Facet } from './Facet';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import type { ReturnedFields } from './ReturnedFields';
|
|
4
|
+
interface RefinedSearch<T extends object = ReturnedFields> {
|
|
5
|
+
session_id: string;
|
|
6
|
+
event_id: string;
|
|
7
7
|
timestamp: string;
|
|
8
|
-
|
|
8
|
+
event_source_id: string;
|
|
9
9
|
message: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
event_name: 'refined_search';
|
|
11
|
+
search_params: SearchParams;
|
|
12
|
+
hits?: T[];
|
|
13
|
+
total_hits?: number;
|
|
13
14
|
facets?: Facet[];
|
|
14
15
|
}
|
|
15
16
|
export { RefinedSearch };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SearchParams } from './SearchParams';
|
|
2
2
|
import { Facet } from './Facet';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import type { ReturnedFields } from './ReturnedFields';
|
|
4
|
+
interface RefinedSearchMessageFields<T extends object = ReturnedFields> {
|
|
5
|
+
event_name: 'refined_search';
|
|
6
|
+
search_params: SearchParams;
|
|
7
|
+
hits?: T[];
|
|
8
|
+
total_hits?: number;
|
|
7
9
|
facets?: Facet[];
|
|
8
10
|
}
|
|
9
11
|
export { RefinedSearchMessageFields };
|
|
@@ -1,54 +1,62 @@
|
|
|
1
1
|
import { CommonRequiredFields } from './CommonRequiredFields';
|
|
2
2
|
import { CommonFields } from './CommonFields';
|
|
3
|
+
import { CommonMetadata } from './CommonMetadata';
|
|
3
4
|
import { ConnectAckMetadata } from './ConnectAckMetadata';
|
|
4
5
|
import { ConnectAck } from './ConnectAck';
|
|
5
|
-
import {
|
|
6
|
+
import { SearchParams } from './SearchParams';
|
|
6
7
|
import { FacetValue } from './FacetValue';
|
|
7
8
|
import { Facet } from './Facet';
|
|
8
9
|
import { CopilotSearch } from './CopilotSearch';
|
|
9
10
|
import { FacetedNavigation } from './FacetedNavigation';
|
|
11
|
+
import { EventAckNames } from './EventAckNames';
|
|
10
12
|
import { EventAck } from './EventAck';
|
|
11
13
|
import { RefinedSearch } from './RefinedSearch';
|
|
12
14
|
import { DisplayProducts } from './DisplayProducts';
|
|
13
|
-
import {
|
|
15
|
+
import { CopilotSearchSuggestion } from './CopilotSearchSuggestion';
|
|
16
|
+
import { FacetedNavigationSuggestion } from './FacetedNavigationSuggestion';
|
|
14
17
|
import { FollowUp } from './FollowUp';
|
|
15
18
|
import { PartialInquiry } from './PartialInquiry';
|
|
16
19
|
import { Inquiry } from './Inquiry';
|
|
17
20
|
import { Done } from './Done';
|
|
18
21
|
import { Error } from './Error';
|
|
19
|
-
import {
|
|
22
|
+
import { CopilotEvent } from './CopilotEvent';
|
|
20
23
|
import { SessionData } from './SessionData';
|
|
21
24
|
import { SessionInformation } from './SessionInformation';
|
|
22
|
-
import { SessionEventInformationReply } from './SessionEventInformationReply';
|
|
23
25
|
import { SessionEventStatusReply } from './SessionEventStatusReply';
|
|
24
26
|
import { Cancel } from './Cancel';
|
|
27
|
+
import type { ReturnedFields } from './ReturnedFields';
|
|
25
28
|
interface Root {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
common_fields?: CommonRequiredFields;
|
|
30
|
+
common_event_fields?: CommonFields;
|
|
31
|
+
common_metadata?: CommonMetadata;
|
|
32
|
+
connect_ack_metadata?: ConnectAckMetadata;
|
|
33
|
+
connect_ack?: ConnectAck;
|
|
34
|
+
search_params?: SearchParams;
|
|
35
|
+
facet_value?: FacetValue;
|
|
32
36
|
facets?: Facet[];
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
copilot_search?: CopilotSearch;
|
|
38
|
+
faceted_navigation?: FacetedNavigation;
|
|
39
|
+
event_ack_names?: EventAckNames;
|
|
40
|
+
event_ack?: EventAck;
|
|
41
|
+
refined_search?: RefinedSearch;
|
|
42
|
+
display_products?: DisplayProducts;
|
|
43
|
+
copilot_search_suggestion?: CopilotSearchSuggestion;
|
|
44
|
+
faceted_navigation_suggestion?: FacetedNavigationSuggestion;
|
|
45
|
+
suggestions?: (CopilotSearchSuggestion | FacetedNavigationSuggestion)[];
|
|
46
|
+
follow_up?: FollowUp;
|
|
47
|
+
partial_inquiry?: PartialInquiry;
|
|
41
48
|
inquiry?: Inquiry;
|
|
42
49
|
done?: Done;
|
|
43
50
|
error?: Error;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
event?: CopilotEvent;
|
|
52
|
+
session_data?: SessionData;
|
|
53
|
+
session_info_reply?: SessionInformation;
|
|
54
|
+
session_events_reply?: CopilotEvent[];
|
|
55
|
+
session_event_info?: string;
|
|
56
|
+
session_event_info_reply?: ConnectAck | EventAck | FollowUp | Inquiry | DisplayProducts | RefinedSearch | Done | Error;
|
|
57
|
+
session_event_status?: string;
|
|
58
|
+
session_event_status_reply?: SessionEventStatusReply;
|
|
52
59
|
cancel?: Cancel;
|
|
60
|
+
return_fields?: ReturnedFields;
|
|
53
61
|
}
|
|
54
62
|
export { Root };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { CopilotEvent } from './CopilotEvent';
|
|
2
|
+
import type { RefinedSearch } from './RefinedSearch';
|
|
3
|
+
interface SessionData<T extends object = RefinedSearch> {
|
|
4
|
+
events?: Record<string, CopilotEvent<T>>;
|
|
5
|
+
event_source_map?: Record<string, string[]>;
|
|
5
6
|
}
|
|
6
7
|
export { SessionData };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SessionData } from './SessionData';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import type { RefinedSearch } from './RefinedSearch';
|
|
3
|
+
interface SessionInformation<T extends object = RefinedSearch> {
|
|
4
|
+
session_id?: string;
|
|
5
|
+
created_at?: string;
|
|
6
|
+
last_active_at?: string;
|
|
7
|
+
status?: string;
|
|
8
|
+
data?: SessionData<T>;
|
|
9
9
|
}
|
|
10
10
|
export { SessionInformation };
|
|
@@ -2,32 +2,38 @@ export * from './Root';
|
|
|
2
2
|
export * from './CommonRequiredFields';
|
|
3
3
|
export * from './CommonFields';
|
|
4
4
|
export * from './CommonEventFields';
|
|
5
|
+
export * from './CommonMetadata';
|
|
6
|
+
export * from './WorkflowMetadata';
|
|
5
7
|
export * from './ConnectAckMetadata';
|
|
6
8
|
export * from './ConnectAck';
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
+
export * from './ConnectAckMessageFields';
|
|
10
|
+
export * from './SearchParams';
|
|
9
11
|
export * from './FacetValue';
|
|
10
12
|
export * from './Facet';
|
|
11
13
|
export * from './CopilotSearch';
|
|
12
14
|
export * from './FacetedNavigation';
|
|
15
|
+
export * from './EventAckNames';
|
|
13
16
|
export * from './EventAck';
|
|
14
|
-
export * from './
|
|
17
|
+
export * from './Cancel';
|
|
18
|
+
export * from './EventAckMessageFields';
|
|
15
19
|
export * from './RefinedSearch';
|
|
16
20
|
export * from './RefinedSearchMessageFields';
|
|
17
21
|
export * from './DisplayProducts';
|
|
18
22
|
export * from './DisplayProductsMessageFields';
|
|
19
|
-
export * from './
|
|
23
|
+
export * from './CopilotSearchSuggestion';
|
|
24
|
+
export * from './FacetedNavigationSuggestion';
|
|
20
25
|
export * from './FollowUp';
|
|
21
|
-
export * from './
|
|
26
|
+
export * from './FollowUpMessageFields';
|
|
22
27
|
export * from './PartialInquiry';
|
|
23
28
|
export * from './PartialInquiryMessageFields';
|
|
24
29
|
export * from './Inquiry';
|
|
30
|
+
export * from './InquiryMessageFields';
|
|
25
31
|
export * from './Done';
|
|
32
|
+
export * from './DoneMessageFields';
|
|
26
33
|
export * from './Error';
|
|
27
34
|
export * from './ErrorMessageFields';
|
|
28
|
-
export * from './
|
|
35
|
+
export * from './CopilotEvent';
|
|
29
36
|
export * from './SessionData';
|
|
30
37
|
export * from './SessionInformation';
|
|
31
|
-
export * from './SessionEventInformationReply';
|
|
32
38
|
export * from './SessionEventStatusReply';
|
|
33
|
-
export * from './
|
|
39
|
+
export * from './ReturnedFields';
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cimulate/copilot-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "A lightweight API client SDK for Cimulate Copilot",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "dist/index.cjs.js",
|
|
6
7
|
"module": "dist/index.esm.js",
|
|
7
8
|
"browser": "dist/index.umd.js",
|
|
@@ -14,8 +15,9 @@
|
|
|
14
15
|
"author": "support@cimulate.ai",
|
|
15
16
|
"license": "MIT",
|
|
16
17
|
"dependencies": {
|
|
18
|
+
"deepmerge": "^4.3.1",
|
|
17
19
|
"socket.io-client": "^4.7.5",
|
|
18
|
-
"ts-
|
|
20
|
+
"ts-case-convert": "^2.1.0"
|
|
19
21
|
},
|
|
20
22
|
"peerDependencies": {
|
|
21
23
|
"react": "^18.2.0",
|
|
@@ -29,16 +31,16 @@
|
|
|
29
31
|
"@rollup/plugin-commonjs": "^21.0.0",
|
|
30
32
|
"@rollup/plugin-json": "^6.1.0",
|
|
31
33
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
34
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
32
35
|
"@rollup/plugin-typescript": "^9.0.0",
|
|
33
|
-
"@types/js-yaml": "^4.0.9",
|
|
34
36
|
"@types/eslint": "^9.6.1",
|
|
35
37
|
"@types/estree": "^1.0.6",
|
|
38
|
+
"@types/js-yaml": "^4.0.9",
|
|
36
39
|
"babel-loader": "^9.2.1",
|
|
37
40
|
"js-yaml": "^4.1.0",
|
|
38
41
|
"rollup": "^2.42.0",
|
|
39
42
|
"rollup-plugin-hash": "^1.3.0",
|
|
40
43
|
"rollup-plugin-output": "^1.0.1",
|
|
41
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
42
44
|
"source-map-explorer": "^2.5.3",
|
|
43
45
|
"tsx": "^4.19.2",
|
|
44
46
|
"typescript": "^5.7.3",
|
package/rollup.config.js
CHANGED
|
@@ -3,7 +3,7 @@ import resolve from '@rollup/plugin-node-resolve';
|
|
|
3
3
|
import commonjs from '@rollup/plugin-commonjs';
|
|
4
4
|
import json from '@rollup/plugin-json';
|
|
5
5
|
import outputHash from 'rollup-plugin-output';
|
|
6
|
-
import
|
|
6
|
+
import terser from '@rollup/plugin-terser';
|
|
7
7
|
import typescript from "@rollup/plugin-typescript";
|
|
8
8
|
// import polyfillNode from 'rollup-plugin-polyfill-node';
|
|
9
9
|
|