@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.
Files changed (114) hide show
  1. package/README.md +15 -0
  2. package/dist/bundle.cimulate.copilot-sdk.099d19fa.umd.js +2 -0
  3. package/dist/bundle.cimulate.copilot-sdk.099d19fa.umd.js.map +1 -0
  4. package/dist/bundle.cimulate.copilot-sdk.5716b677.cjs.js +2 -0
  5. package/dist/bundle.cimulate.copilot-sdk.5716b677.cjs.js.map +1 -0
  6. package/dist/bundle.cimulate.copilot-sdk.64883fd2.esm.js +2 -0
  7. package/dist/bundle.cimulate.copilot-sdk.64883fd2.esm.js.map +1 -0
  8. package/dist/index.cjs.js +1 -1
  9. package/dist/index.cjs.js.map +1 -1
  10. package/dist/index.esm.js +1 -1
  11. package/dist/index.esm.js.map +1 -1
  12. package/dist/index.umd.js +1 -1
  13. package/dist/index.umd.js.map +1 -1
  14. package/dist/types/copilot.d.ts +17 -17
  15. package/dist/types/model/Cancel.d.ts +1 -1
  16. package/dist/types/model/CommonEventFields.d.ts +1 -1
  17. package/dist/types/model/CommonFields.d.ts +3 -4
  18. package/dist/types/model/CommonMetadata.d.ts +7 -0
  19. package/dist/types/model/CommonRequiredFields.d.ts +2 -3
  20. package/dist/types/model/ConnectAck.d.ts +4 -4
  21. package/dist/types/model/ConnectAckMessageFields.d.ts +8 -0
  22. package/dist/types/model/CopilotEvent.d.ts +20 -0
  23. package/dist/types/model/CopilotSearch.d.ts +3 -3
  24. package/dist/types/model/CopilotSearchSuggestion.d.ts +7 -0
  25. package/dist/types/model/DisplayProducts.d.ts +7 -6
  26. package/dist/types/model/DisplayProductsMessageFields.d.ts +4 -2
  27. package/dist/types/model/Done.d.ts +4 -4
  28. package/dist/types/model/DoneMessageFields.d.ts +4 -0
  29. package/dist/types/model/Error.d.ts +5 -5
  30. package/dist/types/model/ErrorMessageFields.d.ts +2 -1
  31. package/dist/types/model/EventAck.d.ts +14 -8
  32. package/dist/types/model/EventAckMessageFields.d.ts +10 -0
  33. package/dist/types/model/EventAckNames.d.ts +6 -0
  34. package/dist/types/model/FacetValue.d.ts +1 -1
  35. package/dist/types/model/FacetedNavigation.d.ts +2 -2
  36. package/dist/types/model/FacetedNavigationSuggestion.d.ts +7 -0
  37. package/dist/types/model/FollowUp.d.ts +7 -6
  38. package/dist/types/model/FollowUpMessageFields.d.ts +7 -0
  39. package/dist/types/model/Inquiry.d.ts +4 -4
  40. package/dist/types/model/InquiryMessageFields.d.ts +4 -0
  41. package/dist/types/model/PartialInquiry.d.ts +5 -5
  42. package/dist/types/model/PartialInquiryMessageFields.d.ts +2 -1
  43. package/dist/types/model/RefinedSearch.d.ts +10 -9
  44. package/dist/types/model/RefinedSearchMessageFields.d.ts +7 -5
  45. package/dist/types/model/ReturnedFields.d.ts +2 -0
  46. package/dist/types/model/Root.d.ts +34 -26
  47. package/dist/types/model/SearchParams.d.ts +5 -0
  48. package/dist/types/model/SessionData.d.ts +5 -4
  49. package/dist/types/model/SessionEventStatusReply.d.ts +1 -2
  50. package/dist/types/model/SessionInformation.d.ts +7 -7
  51. package/dist/types/model/WorkflowMetadata.d.ts +5 -0
  52. package/dist/types/model/index.d.ts +14 -8
  53. package/package.json +6 -4
  54. package/rollup.config.js +1 -1
  55. package/src/copilot.ts +49 -25
  56. package/src/model/Cancel.ts +1 -1
  57. package/src/model/CommonEventFields.ts +1 -1
  58. package/src/model/CommonFields.ts +3 -4
  59. package/src/model/CommonMetadata.ts +7 -0
  60. package/src/model/CommonRequiredFields.ts +2 -3
  61. package/src/model/ConnectAck.ts +4 -4
  62. package/src/model/ConnectAckMessageFields.ts +8 -0
  63. package/src/model/CopilotEvent.ts +20 -0
  64. package/src/model/CopilotSearch.ts +3 -3
  65. package/src/model/CopilotSearchSuggestion.ts +7 -0
  66. package/src/model/DisplayProducts.ts +7 -7
  67. package/src/model/DisplayProductsMessageFields.ts +4 -3
  68. package/src/model/Done.ts +4 -4
  69. package/src/model/DoneMessageFields.ts +5 -0
  70. package/src/model/Error.ts +5 -5
  71. package/src/model/ErrorMessageFields.ts +2 -1
  72. package/src/model/EventAck.ts +16 -8
  73. package/src/model/EventAckMessageFields.ts +10 -0
  74. package/src/model/EventAckNames.ts +7 -0
  75. package/src/model/FacetValue.ts +1 -1
  76. package/src/model/FacetedNavigation.ts +2 -2
  77. package/src/model/FacetedNavigationSuggestion.ts +7 -0
  78. package/src/model/FollowUp.ts +7 -6
  79. package/src/model/FollowUpMessageFields.ts +7 -0
  80. package/src/model/Inquiry.ts +4 -4
  81. package/src/model/InquiryMessageFields.ts +5 -0
  82. package/src/model/PartialInquiry.ts +5 -5
  83. package/src/model/PartialInquiryMessageFields.ts +2 -1
  84. package/src/model/RefinedSearch.ts +10 -9
  85. package/src/model/RefinedSearchMessageFields.ts +7 -5
  86. package/src/model/ReturnedFields.ts +4 -0
  87. package/src/model/Root.ts +34 -26
  88. package/src/model/SearchParams.ts +6 -0
  89. package/src/model/SessionData.ts +5 -4
  90. package/src/model/SessionEventStatusReply.ts +1 -2
  91. package/src/model/SessionInformation.ts +7 -7
  92. package/src/model/WorkflowMetadata.ts +6 -0
  93. package/src/model/index.ts +14 -8
  94. package/tsconfig.json +2 -1
  95. package/dist/bundle.cimulate.copilot-sdk.65f7195a.esm.js +0 -2
  96. package/dist/bundle.cimulate.copilot-sdk.65f7195a.esm.js.map +0 -1
  97. package/dist/bundle.cimulate.copilot-sdk.a2e829d8.cjs.js +0 -2
  98. package/dist/bundle.cimulate.copilot-sdk.a2e829d8.cjs.js.map +0 -1
  99. package/dist/bundle.cimulate.copilot-sdk.c68ae11d.umd.js +0 -2
  100. package/dist/bundle.cimulate.copilot-sdk.c68ae11d.umd.js.map +0 -1
  101. package/dist/types/model/ConnectionAcknowledgmentMessageFields.d.ts +0 -7
  102. package/dist/types/model/EventAcknowledgmentMessageFields.d.ts +0 -6
  103. package/dist/types/model/FollowMinusUpMessageFields.d.ts +0 -5
  104. package/dist/types/model/ReservedEvent.d.ts +0 -10
  105. package/dist/types/model/SearchParameters.d.ts +0 -5
  106. package/dist/types/model/SessionEventInformationReply.d.ts +0 -5
  107. package/dist/types/model/Suggestion.d.ts +0 -6
  108. package/src/model/ConnectionAcknowledgmentMessageFields.ts +0 -7
  109. package/src/model/EventAcknowledgmentMessageFields.ts +0 -6
  110. package/src/model/FollowMinusUpMessageFields.ts +0 -5
  111. package/src/model/ReservedEvent.ts +0 -11
  112. package/src/model/SearchParameters.ts +0 -6
  113. package/src/model/SessionEventInformationReply.ts +0 -6
  114. package/src/model/Suggestion.ts +0 -7
@@ -1,10 +1,11 @@
1
- interface DisplayProducts {
2
- sessionId: string;
3
- eventId: string;
4
- eventName: string;
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
- eventSourceId: string;
6
+ event_source_id: string;
7
7
  message: string;
8
- products: Map<string, any>[];
8
+ event_name: 'display_products';
9
+ products: T[];
9
10
  }
10
11
  export { DisplayProducts };
@@ -1,4 +1,6 @@
1
- interface DisplayProductsMessageFields {
2
- products: Map<string, any>[];
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
- sessionId: string;
3
- eventId: string;
4
- eventName: string;
2
+ session_id: string;
3
+ event_id: string;
5
4
  timestamp: string;
6
- eventSourceId: string;
5
+ event_source_id: string;
7
6
  message: string;
7
+ event_name: 'done';
8
8
  }
9
9
  export { Done };
@@ -0,0 +1,4 @@
1
+ interface DoneMessageFields {
2
+ event_name: 'done';
3
+ }
4
+ export { DoneMessageFields };
@@ -1,11 +1,11 @@
1
1
  interface Error {
2
- sessionId: string;
3
- eventId: string;
4
- eventName: string;
2
+ session_id: string;
3
+ event_id: string;
5
4
  timestamp: string;
6
- eventSourceId: string;
5
+ event_source_id: string;
7
6
  message: string;
8
- reservedStatus: number;
7
+ status: number;
9
8
  error: string;
9
+ event_name: 'error';
10
10
  }
11
11
  export { Error };
@@ -1,5 +1,6 @@
1
1
  interface ErrorMessageFields {
2
- reservedStatus: number;
2
+ status: number;
3
3
  error: string;
4
+ event_name: 'error';
4
5
  }
5
6
  export { ErrorMessageFields };
@@ -1,12 +1,18 @@
1
1
  import { CopilotSearch } from './CopilotSearch';
2
- interface EventAck {
3
- sessionId: string;
4
- eventId: string;
5
- eventName: string;
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
- eventSourceId: string;
8
- message: string;
9
- reservedStatus: string;
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 };
@@ -0,0 +1,6 @@
1
+ declare enum EventAckNames {
2
+ COPILOT_SEARCH_ACK = "copilot_search_ack",
3
+ FACETED_NAVIGATION_ACK = "faceted_navigation_ack",
4
+ CANCEL_ACK = "cancel_ack"
5
+ }
6
+ export { EventAckNames };
@@ -1,5 +1,5 @@
1
1
  interface FacetValue {
2
- reservedName?: string;
2
+ name?: string;
3
3
  count?: number;
4
4
  }
5
5
  export { FacetValue };
@@ -1,5 +1,5 @@
1
- import { SearchParameters } from './SearchParameters';
1
+ import { SearchParams } from './SearchParams';
2
2
  interface FacetedNavigation {
3
- searchParams: SearchParameters;
3
+ search_params: SearchParams;
4
4
  }
5
5
  export { FacetedNavigation };
@@ -0,0 +1,7 @@
1
+ import { FacetedNavigation } from './FacetedNavigation';
2
+ interface FacetedNavigationSuggestion {
3
+ display_text: string;
4
+ action: 'faceted_navigation';
5
+ params: FacetedNavigation;
6
+ }
7
+ export { FacetedNavigationSuggestion };
@@ -1,11 +1,12 @@
1
- import { Suggestion } from './Suggestion';
1
+ import { CopilotSearchSuggestion } from './CopilotSearchSuggestion';
2
+ import { FacetedNavigationSuggestion } from './FacetedNavigationSuggestion';
2
3
  interface FollowUp {
3
- sessionId: string;
4
- eventId: string;
5
- eventName: string;
4
+ session_id: string;
5
+ event_id: string;
6
6
  timestamp: string;
7
- eventSourceId: string;
7
+ event_source_id: string;
8
8
  message: string;
9
- suggestions: Suggestion[];
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
- sessionId: string;
3
- eventId: string;
4
- eventName: string;
2
+ session_id: string;
3
+ event_id: string;
5
4
  timestamp: string;
6
- eventSourceId: string;
5
+ event_source_id: string;
7
6
  message: string;
7
+ event_name: 'inquiry';
8
8
  }
9
9
  export { Inquiry };
@@ -0,0 +1,4 @@
1
+ interface InquiryMessageFields {
2
+ event_name: 'inquiry';
3
+ }
4
+ export { InquiryMessageFields };
@@ -1,11 +1,11 @@
1
1
  interface PartialInquiry {
2
- sessionId: string;
3
- eventId: string;
4
- eventName: string;
2
+ session_id: string;
3
+ event_id: string;
5
4
  timestamp: string;
6
- eventSourceId: string;
5
+ event_source_id: string;
7
6
  message: string;
8
- inquiryEventId: string;
7
+ inquiry_event_id: string;
9
8
  index: number;
9
+ event_name: 'partial_inquiry';
10
10
  }
11
11
  export { PartialInquiry };
@@ -1,5 +1,6 @@
1
1
  interface PartialInquiryMessageFields {
2
- inquiryEventId: string;
2
+ inquiry_event_id: string;
3
3
  index: number;
4
+ event_name: 'partial_inquiry';
4
5
  }
5
6
  export { PartialInquiryMessageFields };
@@ -1,15 +1,16 @@
1
- import { SearchParameters } from './SearchParameters';
1
+ import { SearchParams } from './SearchParams';
2
2
  import { Facet } from './Facet';
3
- interface RefinedSearch {
4
- sessionId: string;
5
- eventId: string;
6
- eventName: string;
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
- eventSourceId: string;
8
+ event_source_id: string;
9
9
  message: string;
10
- searchParams: SearchParameters;
11
- hits?: Map<string, any>[];
12
- totalHits?: number;
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 { SearchParameters } from './SearchParameters';
1
+ import { SearchParams } from './SearchParams';
2
2
  import { Facet } from './Facet';
3
- interface RefinedSearchMessageFields {
4
- searchParams: SearchParameters;
5
- hits?: Map<string, any>[];
6
- totalHits?: number;
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 };
@@ -0,0 +1,2 @@
1
+ type ReturnedFields<T = unknown> = Record<string, T>;
2
+ export type { ReturnedFields };
@@ -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 { SearchParameters } from './SearchParameters';
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 { Suggestion } from './Suggestion';
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 { ReservedEvent } from './ReservedEvent';
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
- commonFields?: CommonRequiredFields;
27
- commonEventFields?: CommonFields;
28
- connectAckMetadata?: ConnectAckMetadata;
29
- connectAck?: ConnectAck;
30
- searchParams?: SearchParameters;
31
- facetValue?: FacetValue;
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
- copilotSearch?: CopilotSearch;
34
- facetedNavigation?: FacetedNavigation;
35
- eventAck?: EventAck;
36
- refinedSearch?: RefinedSearch;
37
- displayProducts?: DisplayProducts;
38
- suggestions?: Suggestion[];
39
- followUp?: FollowUp;
40
- partialInquiry?: PartialInquiry;
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
- reservedEvent?: ReservedEvent;
45
- sessionData?: SessionData;
46
- sessionInfoReply?: SessionInformation;
47
- sessionEventsReply?: Map<string, any>[];
48
- sessionEventInfo?: string;
49
- sessionEventInfoReply?: SessionEventInformationReply;
50
- sessionEventStatus?: string;
51
- sessionEventStatusReply?: SessionEventStatusReply;
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 };
@@ -0,0 +1,5 @@
1
+ interface SearchParams {
2
+ query: string;
3
+ facet_filters?: Record<string, string[]>;
4
+ }
5
+ export { SearchParams };
@@ -1,6 +1,7 @@
1
- import { ReservedEvent } from './ReservedEvent';
2
- interface SessionData {
3
- events?: Map<string, ReservedEvent>;
4
- eventSourceMap?: Map<string, string[]>;
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,5 +1,4 @@
1
1
  interface SessionEventStatusReply {
2
- reservedStatus?: string;
3
- additionalProperties?: Map<string, any>;
2
+ status?: string;
4
3
  }
5
4
  export { SessionEventStatusReply };
@@ -1,10 +1,10 @@
1
1
  import { SessionData } from './SessionData';
2
- interface SessionInformation {
3
- sessionId?: string;
4
- createdAt?: string;
5
- lastActiveAt?: string;
6
- reservedStatus?: string;
7
- data?: SessionData;
8
- metadata?: Map<string, any>;
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 };
@@ -0,0 +1,5 @@
1
+ interface WorkflowMetadata {
2
+ session_id?: string;
3
+ task_id?: string;
4
+ }
5
+ export { WorkflowMetadata };
@@ -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 './ConnectionAcknowledgmentMessageFields';
8
- export * from './SearchParameters';
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 './EventAcknowledgmentMessageFields';
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 './Suggestion';
23
+ export * from './CopilotSearchSuggestion';
24
+ export * from './FacetedNavigationSuggestion';
20
25
  export * from './FollowUp';
21
- export * from './FollowMinusUpMessageFields';
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 './ReservedEvent';
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 './Cancel';
39
+ export * from './ReturnedFields';
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@cimulate/copilot-sdk",
3
- "version": "1.1.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-deepmerge": "^7.0.2"
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 { terser } from 'rollup-plugin-terser';
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