@meltingspot/core 1.9.0 → 1.11.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/CHANGELOG.md CHANGED
@@ -15,6 +15,55 @@ Date: YYYY-MM-DD
15
15
 
16
16
  -->
17
17
 
18
+ ## v1.11.0
19
+
20
+ Date: 2026-09-15
21
+
22
+ ### Minor Changes
23
+
24
+ - The conversation stream can now carry a status-label event
25
+ (`ConversationSseEventType.StatusLabel` / `ConversationSseStatusLabelEvent`,
26
+ carrying `{ label }`). On a question the Coach has to look something up for,
27
+ it names the subject being looked up while the member waits for the first word
28
+ of the answer.
29
+ - That event is display-only and transient. It is never kept on a message, never
30
+ part of a message's content, and never replayed when a conversation is
31
+ resumed — it describes work in progress, and the answer that follows makes it
32
+ obsolete. One answer may carry several, each replacing the previous, and the
33
+ first token of the reply supersedes whichever is current. Code switching over
34
+ the event union should show it and accumulate nothing from it.
35
+ - Playbooks can now serve the subdomains of the domain they declare, when that
36
+ is turned on for them. `ListPlaybooksQuery` gained `host`: asking for the
37
+ playbooks of a hostname returns the ones whose domain matches it exactly, plus
38
+ the parent domains that opted in — so an app served under per-customer
39
+ subdomains is covered by a single playbook. The existing `domain` filter is
40
+ unchanged and still matches the declared domain exactly.
41
+ - `Playbook` gained a required `includeSubdomains` field, telling whether that
42
+ playbook also serves the subdomains of its domain. Reading the type is
43
+ unaffected; code that builds the value has to set it.
44
+
45
+ ## v1.10.0
46
+
47
+ Date: 2026-09-03
48
+
49
+ ### Minor Changes
50
+
51
+ - Export the `HttpError` class, so an integrator can read the HTTP status code
52
+ of a failed API call (`error.code`) instead of parsing its message.
53
+ - Export `CoachMutePreset`, the durations a member can choose from when muting
54
+ the Coach: 30 minutes, 1 hour, 2 hours, until tomorrow, until next week, or
55
+ until they turn it back on.
56
+ - Export the intent display-rule types — `MeltyDisplayConfig`, `DisplayRuleTimer`,
57
+ `RepetitionMode` and `DisplayRuleTimeUnit` — describing how long a hotspot
58
+ stays hidden once a member has set it aside, and how often it may come back.
59
+ - `IntentUserState` gained a required `lastPoppedAt` field. Reading the type is
60
+ unaffected; code that builds the value has to set it.
61
+
62
+ ### Patch Changes
63
+
64
+ - Fixed a case where two Coaches could end up running on the same page while an
65
+ admin was editing or previewing a playbook.
66
+
18
67
  ## v1.9.0
19
68
 
20
69
  Date: 2026-08-18
@@ -1,5 +1,5 @@
1
1
  import { Result } from 'neverthrow';
2
- import { HttpGetInput, HttpPatchInput, HttpPostInput, HttpError, HttpMethods } from '../services/http.service';
2
+ import { HttpDeleteInput, HttpGetInput, HttpPatchInput, HttpPostInput, HttpError, HttpMethods } from '../services/http.service';
3
3
  export declare enum MeltingSpotApiHeaders {
4
4
  Authorization = "Authorization",
5
5
  SpotId = "x-spotid"
@@ -10,6 +10,10 @@ interface CommonApiCallInput {
10
10
  options?: Omit<HttpGetInput, 'url'> | Omit<HttpPostInput, 'url'>;
11
11
  requiresAuth?: boolean;
12
12
  }
13
+ interface DeleteApiCallInput extends CommonApiCallInput {
14
+ method: HttpMethods.DELETE;
15
+ options?: Omit<HttpDeleteInput, 'url'>;
16
+ }
13
17
  interface GetApiCallInput extends CommonApiCallInput {
14
18
  method: HttpMethods.GET;
15
19
  options?: Omit<HttpGetInput, 'url'>;
@@ -22,7 +26,7 @@ interface PostApiCallInput extends CommonApiCallInput {
22
26
  method: HttpMethods.POST;
23
27
  options: Omit<HttpPostInput, 'url'>;
24
28
  }
25
- type ApiCallInput = GetApiCallInput | PatchApiCallInput | PostApiCallInput;
29
+ type ApiCallInput = DeleteApiCallInput | GetApiCallInput | PatchApiCallInput | PostApiCallInput;
26
30
  export interface AuthenticatedRequest {
27
31
  url: string;
28
32
  headers: Record<string, string>;
package/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import { ConfigurationService } from './services/configuration.service';
6
6
  import { SsoService } from './services/sso.service';
7
7
  export { AuthService, AuthServiceEvents, type AuthTokensUpdatedEventDetail, } from './services/auth.service';
8
8
  export { SsoService } from './services/sso.service';
9
- export { HttpService, HttpMethods } from './services/http.service';
9
+ export { HttpError, HttpService, HttpMethods } from './services/http.service';
10
10
  export { RouteChangeDetector } from './services/routeChangeDetector.service';
11
11
  export type { RouteChangeDetectorOptions } from './services/routeChangeDetector.service';
12
12
  export type { MeltingSpotConfiguration, StreamTransport, StreamTransportRequest, } from './services/configuration.service';