@meltingspot/core 1.19.0 → 1.20.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,25 @@ Date: YYYY-MM-DD
15
15
 
16
16
  -->
17
17
 
18
+ ## Unreleased
19
+
20
+ ### Minor Changes
21
+
22
+ - `PlaybookApiService.listAccessiblePlaybookIntents` accepts an optional
23
+ `capabilities` list (e.g. `['roleplay']`): the intents of an opt-in content
24
+ type are only returned when its capability is sent. Unknown values are
25
+ ignored.
26
+
27
+ ## v1.20.0
28
+
29
+ Date: 2026-11-17
30
+
31
+ ### Minor Changes
32
+
33
+ - Release alignment with the other MeltingSpot SDKs (`@meltingspot/embed`,
34
+ `@meltingspot/widget`, `@meltingspot/coach`). No functional changes to
35
+ `@meltingspot/core`.
36
+
18
37
  ## v1.19.0
19
38
 
20
39
  Date: 2026-11-09
package/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { MeltyApiService } from './services/api/melty/melty.api.service';
1
2
  import { PlaybookApiService } from './services/api/playbook/playbook.api.service';
2
3
  import { SpotApiService } from './services/api/spot/spot.api.service';
3
4
  import { SpotMemberApiService } from './services/api/spotMember/spotMember.api.service';
@@ -12,6 +13,7 @@ export type { RouteChangeDetectorOptions } from './services/routeChangeDetector.
12
13
  export type { MeltingSpotConfiguration, StreamTransport, StreamTransportRequest, } from './services/configuration.service';
13
14
  export { ConfigurationService } from './services/configuration.service';
14
15
  export { MeltingSpotApi, type AuthenticatedRequest, } from './api/meltingSpotApi';
16
+ export * from './services/api/melty/melty.api.output';
15
17
  export * from './services/api/playbook/playbook.api.input';
16
18
  export * from './services/api/playbook/playbook.api.output';
17
19
  export * from './services/api/spot/spot.api.output';
@@ -19,6 +21,7 @@ export { LIST_SPOTS_LIMIT } from './services/api/spot/spot.api.service';
19
21
  export * from './services/api/spotMember/spotMember.api.output';
20
22
  export * from './services/api/spotMemberAuth/spotMemberAuth.api.output';
21
23
  export { AnalyticsApiService } from './services/api/analytics/analytics.api.service';
24
+ export { MeltyApiService } from './services/api/melty/melty.api.service';
22
25
  export { PlaybookApiService } from './services/api/playbook/playbook.api.service';
23
26
  export { SpotMemberApiService, type SearchSpotMembersInput, } from './services/api/spotMember/spotMember.api.service';
24
27
  export { SpotMemberAuthApiService, type GeneratePreviewAccessKeyInput, } from './services/api/spotMemberAuth/spotMemberAuth.api.service';
@@ -31,6 +34,7 @@ export declare const Configuration: ConfigurationService;
31
34
  export declare const Auth: AuthService;
32
35
  export declare const Sso: SsoService;
33
36
  export declare const Api: {
37
+ Melty: MeltyApiService;
34
38
  Playbook: PlaybookApiService;
35
39
  Spot: SpotApiService;
36
40
  SpotMember: SpotMemberApiService;
@@ -41,6 +45,7 @@ declare global {
41
45
  Auth: AuthService;
42
46
  Sso: SsoService;
43
47
  Api: {
48
+ Melty: MeltyApiService;
44
49
  Playbook: PlaybookApiService;
45
50
  Spot: SpotApiService;
46
51
  SpotMember: SpotMemberApiService;
package/index.mjs CHANGED
@@ -4671,7 +4671,7 @@ var ot = () => typeof document < "u" && typeof document.dispatchEvent == "functi
4671
4671
  unbind() {
4672
4672
  this.listener !== null && typeof document < "u" && document.removeEventListener(at, this.listener), this.listener = null, this.lastOptions = null;
4673
4673
  }
4674
- }, ut = "1.19.0", dt = class {
4674
+ }, ut = "1.20.0", dt = class {
4675
4675
  constructor(e) {
4676
4676
  this.debug = !1, this.debug = e?.debug ?? !1, this.appName = e?.appName, this.appVersion = e?.appVersion;
4677
4677
  }
@@ -5404,7 +5404,26 @@ var M = Dt, N = class e extends Error {
5404
5404
  return n;
5405
5405
  });
5406
5406
  }
5407
- }, Yt = {
5407
+ }, Yt = { config: "/v1/melty/config" }, Xt = class e {
5408
+ static getInstance() {
5409
+ return e.instance ||= new e(), e.instance;
5410
+ }
5411
+ constructor() {
5412
+ this.meltingSpotApi = Jt.getInstance();
5413
+ }
5414
+ async getConfig() {
5415
+ let e = await this.meltingSpotApi.call({
5416
+ method: P.GET,
5417
+ endpoint: Yt.config
5418
+ });
5419
+ if (e.isErr()) return T(e.error);
5420
+ let t = e.value?.capabilities;
5421
+ return w({ capabilities: {
5422
+ intentStandaloneAuthoring: t?.intentStandaloneAuthoring === !0,
5423
+ intentStandaloneAuthoringAvailable: t?.intentStandaloneAuthoringAvailable === !0
5424
+ } });
5425
+ }
5426
+ }, Zt = {
5408
5427
  playbooks: "/v1/playbooks",
5409
5428
  pages: (e) => `/v1/playbooks/${e}/pages`,
5410
5429
  hotspots: (e, t) => `/v1/playbooks/${e}/pages/${t}/hotspots`,
@@ -5413,7 +5432,7 @@ var M = Dt, N = class e extends Error {
5413
5432
  intents: (e, t, n) => `/v1/playbooks/${e}/pages/${t}/hotspots/${n}/intents`,
5414
5433
  intent: (e, t, n, r) => `/v1/playbooks/${e}/pages/${t}/hotspots/${n}/intents/${r}`,
5415
5434
  intentStandaloneTitle: "/v1/melty/intentStandalone~generateTitle"
5416
- }, Xt = 50, Zt = class e {
5435
+ }, Qt = 50, R = class e {
5417
5436
  static getInstance() {
5418
5437
  return e.instance ||= new e(), e.instance;
5419
5438
  }
@@ -5423,10 +5442,10 @@ var M = Dt, N = class e extends Error {
5423
5442
  async listPlaybooks(e) {
5424
5443
  let t = await this.meltingSpotApi.call({
5425
5444
  method: P.GET,
5426
- endpoint: Yt.playbooks,
5445
+ endpoint: Zt.playbooks,
5427
5446
  options: { query: {
5428
5447
  page: e?.page ?? 1,
5429
- limit: e?.limit ?? Xt,
5448
+ limit: e?.limit ?? Qt,
5430
5449
  ...e?.domain ? { "domain[eq]": e.domain } : {},
5431
5450
  ...e?.host === void 0 ? {} : { "domain[matchesHost]": e.host }
5432
5451
  } }
@@ -5436,10 +5455,10 @@ var M = Dt, N = class e extends Error {
5436
5455
  async listPlaybookPages(e) {
5437
5456
  let t = await this.meltingSpotApi.call({
5438
5457
  method: P.GET,
5439
- endpoint: Yt.pages(e.playbookId),
5458
+ endpoint: Zt.pages(e.playbookId),
5440
5459
  options: { query: {
5441
5460
  page: e.page ?? 1,
5442
- limit: e.limit ?? Xt,
5461
+ limit: e.limit ?? Qt,
5443
5462
  ...e.url ? { "url[eq]": e.url } : {}
5444
5463
  } }
5445
5464
  });
@@ -5448,7 +5467,7 @@ var M = Dt, N = class e extends Error {
5448
5467
  async createPlaybookPage(e, t) {
5449
5468
  let n = await this.meltingSpotApi.call({
5450
5469
  method: P.POST,
5451
- endpoint: Yt.pages(e.playbookId),
5470
+ endpoint: Zt.pages(e.playbookId),
5452
5471
  options: { payload: t }
5453
5472
  });
5454
5473
  return n.isErr() ? T(n.error) : w(n.value);
@@ -5456,18 +5475,21 @@ var M = Dt, N = class e extends Error {
5456
5475
  async listAccessiblePlaybookIntents(e) {
5457
5476
  let t = await this.meltingSpotApi.call({
5458
5477
  method: P.GET,
5459
- endpoint: Yt.accessibleIntents(e.playbookId, e.pageId),
5460
- options: { query: { ...e.domain ? { domain: e.domain } : {} } }
5478
+ endpoint: Zt.accessibleIntents(e.playbookId, e.pageId),
5479
+ options: { query: {
5480
+ ...e.domain ? { domain: e.domain } : {},
5481
+ ...e.capabilities?.length ? { capabilities: e.capabilities } : {}
5482
+ } }
5461
5483
  });
5462
5484
  return t.isErr() ? T(t.error) : w(t.value);
5463
5485
  }
5464
5486
  async listPlaybookHotspots(e) {
5465
5487
  let t = await this.meltingSpotApi.call({
5466
5488
  method: P.GET,
5467
- endpoint: Yt.hotspots(e.playbookId, e.pageId),
5489
+ endpoint: Zt.hotspots(e.playbookId, e.pageId),
5468
5490
  options: { query: {
5469
5491
  page: e.page ?? 1,
5470
- limit: e.limit ?? Xt,
5492
+ limit: e.limit ?? Qt,
5471
5493
  ...e.intentStatus ? { "intentStatus[eq]": e.intentStatus } : {},
5472
5494
  ...e.widgetType ? { "widgetType[eq]": e.widgetType } : {}
5473
5495
  } }
@@ -5477,7 +5499,7 @@ var M = Dt, N = class e extends Error {
5477
5499
  async createPlaybookHotspot(e, t) {
5478
5500
  let n = await this.meltingSpotApi.call({
5479
5501
  method: P.POST,
5480
- endpoint: Yt.hotspots(e.playbookId, e.pageId),
5502
+ endpoint: Zt.hotspots(e.playbookId, e.pageId),
5481
5503
  options: { payload: t }
5482
5504
  });
5483
5505
  return n.isErr() ? T(n.error) : w(n.value);
@@ -5485,7 +5507,7 @@ var M = Dt, N = class e extends Error {
5485
5507
  async updatePlaybookHotspot(e, t) {
5486
5508
  let n = await this.meltingSpotApi.call({
5487
5509
  method: P.PATCH,
5488
- endpoint: Yt.hotspot(e.playbookId, e.pageId, e.hotspotId),
5510
+ endpoint: Zt.hotspot(e.playbookId, e.pageId, e.hotspotId),
5489
5511
  options: { payload: t }
5490
5512
  });
5491
5513
  return n.isErr() ? T(n.error) : w(n.value);
@@ -5493,10 +5515,10 @@ var M = Dt, N = class e extends Error {
5493
5515
  async listPlaybookIntents(e) {
5494
5516
  let t = await this.meltingSpotApi.call({
5495
5517
  method: P.GET,
5496
- endpoint: Yt.intents(e.playbookId, e.pageId, e.hotspotId),
5518
+ endpoint: Zt.intents(e.playbookId, e.pageId, e.hotspotId),
5497
5519
  options: { query: {
5498
5520
  page: e.page ?? 1,
5499
- limit: e.limit ?? Xt,
5521
+ limit: e.limit ?? Qt,
5500
5522
  ...e.status ? { "status[eq]": e.status } : {}
5501
5523
  } }
5502
5524
  });
@@ -5505,7 +5527,7 @@ var M = Dt, N = class e extends Error {
5505
5527
  async createPlaybookIntent(e, t) {
5506
5528
  let n = await this.meltingSpotApi.call({
5507
5529
  method: P.POST,
5508
- endpoint: Yt.intents(e.playbookId, e.pageId, e.hotspotId),
5530
+ endpoint: Zt.intents(e.playbookId, e.pageId, e.hotspotId),
5509
5531
  options: { payload: t }
5510
5532
  });
5511
5533
  return n.isErr() ? T(n.error) : w(n.value);
@@ -5513,7 +5535,7 @@ var M = Dt, N = class e extends Error {
5513
5535
  async generateIntentStandaloneTitle(e) {
5514
5536
  let t = await this.meltingSpotApi.call({
5515
5537
  method: P.POST,
5516
- endpoint: Yt.intentStandaloneTitle,
5538
+ endpoint: Zt.intentStandaloneTitle,
5517
5539
  options: { payload: e }
5518
5540
  });
5519
5541
  return t.isErr() ? T(t.error) : w(t.value);
@@ -5521,12 +5543,12 @@ var M = Dt, N = class e extends Error {
5521
5543
  async updatePlaybookIntent(e, t) {
5522
5544
  let n = await this.meltingSpotApi.call({
5523
5545
  method: P.PATCH,
5524
- endpoint: Yt.intent(e.playbookId, e.pageId, e.hotspotId, e.intentId),
5546
+ endpoint: Zt.intent(e.playbookId, e.pageId, e.hotspotId, e.intentId),
5525
5547
  options: { payload: t }
5526
5548
  });
5527
5549
  return n.isErr() ? T(n.error) : w(n.value);
5528
5550
  }
5529
- }, Qt = { me: "/v1/spots/me" }, R = 1, $t = 50, en = class e {
5551
+ }, $t = { me: "/v1/spots/me" }, en = 1, tn = 50, nn = class e {
5530
5552
  static getInstance() {
5531
5553
  return e.instance ||= new e(), e.instance;
5532
5554
  }
@@ -5536,9 +5558,9 @@ var M = Dt, N = class e extends Error {
5536
5558
  async listSpotsForMe(e) {
5537
5559
  let t = await this.meltingSpotApi.call({
5538
5560
  method: P.GET,
5539
- endpoint: Qt.me,
5561
+ endpoint: $t.me,
5540
5562
  options: { query: {
5541
- page: e?.page ?? R,
5563
+ page: e?.page ?? en,
5542
5564
  limit: e?.limit ?? 50,
5543
5565
  ...e?.spotMemberRole ? { "spotMemberRole[eq]": e.spotMemberRole } : {},
5544
5566
  ...e?.id ? { "id[eq]": e.id } : {},
@@ -5547,11 +5569,11 @@ var M = Dt, N = class e extends Error {
5547
5569
  });
5548
5570
  return t.isErr() ? T(t.error) : w(t.value);
5549
5571
  }
5550
- }, tn = { spotMember: {
5572
+ }, z = { spotMember: {
5551
5573
  me: "/v1/spotMembers/me",
5552
5574
  joinFromSso: "/v1/spotMembers~joinFromSso",
5553
5575
  search: "/v1/spotMembers~search"
5554
- } }, nn = class e {
5576
+ } }, rn = class e {
5555
5577
  static getInstance() {
5556
5578
  return e.instance ||= new e(), e.instance;
5557
5579
  }
@@ -5561,7 +5583,7 @@ var M = Dt, N = class e extends Error {
5561
5583
  async getSpotMemberForMe() {
5562
5584
  let e = await this.meltingSpotApi.call({
5563
5585
  method: P.GET,
5564
- endpoint: tn.spotMember.me
5586
+ endpoint: z.spotMember.me
5565
5587
  });
5566
5588
  return e.isErr() ? T(e.error) : w(e.value);
5567
5589
  }
@@ -5573,7 +5595,7 @@ var M = Dt, N = class e extends Error {
5573
5595
  e.search && (t.search = e.search);
5574
5596
  let n = await this.meltingSpotApi.call({
5575
5597
  method: P.GET,
5576
- endpoint: tn.spotMember.search,
5598
+ endpoint: z.spotMember.search,
5577
5599
  options: { query: t }
5578
5600
  });
5579
5601
  return n.isErr() ? T(n.error) : w(n.value);
@@ -5581,15 +5603,15 @@ var M = Dt, N = class e extends Error {
5581
5603
  async joinFromSso(e) {
5582
5604
  let t = await this.meltingSpotApi.call({
5583
5605
  method: P.POST,
5584
- endpoint: tn.spotMember.joinFromSso,
5606
+ endpoint: z.spotMember.joinFromSso,
5585
5607
  options: { payload: { token: e } }
5586
5608
  });
5587
5609
  return t.isErr() ? T(t.error) : w(t.value);
5588
5610
  }
5589
- }, z = {
5611
+ }, an = {
5590
5612
  spotMemberSsoToken: "/v1/spotMembers/auth/sso/jwt",
5591
5613
  previewAccessKey: "/v1/spotMembers/auth/preview/accessKey"
5592
- }, rn = class e {
5614
+ }, on = class e {
5593
5615
  static getInstance() {
5594
5616
  return e.instance ||= new e(), e.instance;
5595
5617
  }
@@ -5599,7 +5621,7 @@ var M = Dt, N = class e extends Error {
5599
5621
  async generateSsoToken() {
5600
5622
  let e = await this.meltingSpotApi.call({
5601
5623
  method: P.POST,
5602
- endpoint: z.spotMemberSsoToken,
5624
+ endpoint: an.spotMemberSsoToken,
5603
5625
  options: { payload: {} }
5604
5626
  });
5605
5627
  return e.isErr() ? T(e.error) : w(e.value.token);
@@ -5607,22 +5629,22 @@ var M = Dt, N = class e extends Error {
5607
5629
  async generatePreviewAccessKey(e) {
5608
5630
  let t = await this.meltingSpotApi.call({
5609
5631
  method: P.POST,
5610
- endpoint: z.previewAccessKey,
5632
+ endpoint: an.previewAccessKey,
5611
5633
  options: { payload: { targetSpotMemberId: e.targetSpotMemberId } }
5612
5634
  });
5613
5635
  return t.isErr() ? T(t.error) : w(t.value);
5614
5636
  }
5615
- }, an = class e {
5637
+ }, sn = class e {
5616
5638
  static getInstance() {
5617
5639
  return e.instance ||= new e(), e.instance;
5618
5640
  }
5619
5641
  constructor() {
5620
- this.spotMemberAuthApiService = rn.getInstance();
5642
+ this.spotMemberAuthApiService = on.getInstance();
5621
5643
  }
5622
5644
  async generateSsoToken() {
5623
5645
  return this.spotMemberAuthApiService.generateSsoToken();
5624
5646
  }
5625
- }, on = class {
5647
+ }, cn = class {
5626
5648
  constructor(e) {
5627
5649
  this.active = !1, this.lastObservedUrl = null, this.options = {
5628
5650
  onRouteChange: e.onRouteChange,
@@ -5666,7 +5688,7 @@ var M = Dt, N = class e extends Error {
5666
5688
  restoreHistoryListeners() {
5667
5689
  this.originalPushState &&= (window.history.pushState = this.originalPushState, void 0), this.originalReplaceState &&= (window.history.replaceState = this.originalReplaceState, void 0);
5668
5690
  }
5669
- }, sn = { events: "/v1/analytics/events" }, cn = class e {
5691
+ }, ln = { events: "/v1/analytics/events" }, un = class e {
5670
5692
  static getInstance() {
5671
5693
  return e.instance ||= new e(), e.instance;
5672
5694
  }
@@ -5676,12 +5698,12 @@ var M = Dt, N = class e extends Error {
5676
5698
  async appendEvent(e) {
5677
5699
  let t = await this.meltingSpotApi.call({
5678
5700
  method: P.POST,
5679
- endpoint: sn.events,
5701
+ endpoint: ln.events,
5680
5702
  options: { payload: e }
5681
5703
  });
5682
5704
  return t.isErr() ? T(t.error) : w(t.value);
5683
5705
  }
5684
- }, ln = (e) => {
5706
+ }, dn = (e) => {
5685
5707
  let t = e.get("utm_source");
5686
5708
  if (t) return {
5687
5709
  source: t,
@@ -5690,98 +5712,103 @@ var M = Dt, N = class e extends Error {
5690
5712
  term: e.get("utm_term") ?? void 0,
5691
5713
  content: e.get("utm_content") ?? void 0
5692
5714
  };
5693
- }, un = (e) => e ? Object.entries(e).reduce((e, [t, n]) => (n != null && (e[`utm_${t}`] = n), e), {}) : {}, dn = /* @__PURE__ */ function(e) {
5715
+ }, fn = (e) => e ? Object.entries(e).reduce((e, [t, n]) => (n != null && (e[`utm_${t}`] = n), e), {}) : {}, pn = /* @__PURE__ */ function(e) {
5694
5716
  return e.Mute30Min = "Mute30Min", e.Mute1Hour = "Mute1Hour", e.Mute2Hours = "Mute2Hours", e.UntilTomorrow = "UntilTomorrow", e.UntilNextWeek = "UntilNextWeek", e.Always = "Always", e;
5695
- }({}), fn = /* @__PURE__ */ function(e) {
5696
- return e.Active = "Active", e.Closed = "Closed", e.Expired = "Expired", e;
5697
- }({}), pn = /* @__PURE__ */ function(e) {
5698
- return e.User = "User", e.Assistant = "Assistant", e;
5699
5717
  }({}), mn = /* @__PURE__ */ function(e) {
5700
- return e.Metadata = "metadata", e.Token = "token", e.StatusLabel = "status_label", e.ActionsPending = "actions_pending", e.Action = "action", e.Bubble = "bubble", e.Handoff = "handoff", e.Done = "done", e.Error = "error", e;
5718
+ return e.Active = "Active", e.Closed = "Closed", e.Expired = "Expired", e;
5701
5719
  }({}), hn = /* @__PURE__ */ function(e) {
5702
- return e.NoSource = "NoSource", e.LowConfidence = "LowConfidence", e.HumanRequest = "HumanRequest", e.OutOfScope = "OutOfScope", e;
5720
+ return e.User = "User", e.Assistant = "Assistant", e;
5703
5721
  }({}), gn = /* @__PURE__ */ function(e) {
5704
- return e.PoorExplanation = "poor_explanation", e.FalseInformation = "false_information", e.NotFollowingRequest = "not_following_request", e.IncompleteResponse = "incomplete_response", e.ChatHistoryIssue = "chat_history_issue", e.PersonalizationIssue = "personalization_issue", e.Other = "other", e;
5722
+ return e.Metadata = "metadata", e.Token = "token", e.StatusLabel = "status_label", e.ActionsPending = "actions_pending", e.Action = "action", e.Bubble = "bubble", e.Handoff = "handoff", e.OnboardingNextStep = "onboarding_next_step", e.Done = "done", e.Error = "error", e;
5705
5723
  }({}), _n = /* @__PURE__ */ function(e) {
5706
- return e.Up = "up", e.Down = "down", e;
5724
+ return e.CreatedAt = "CreatedAt", e.LastActivity = "LastActivity", e;
5707
5725
  }({}), B = /* @__PURE__ */ function(e) {
5708
- return e.ContinueOnboarding = "ContinueOnboarding", e;
5726
+ return e.NoSource = "NoSource", e.LowConfidence = "LowConfidence", e.HumanRequest = "HumanRequest", e.OutOfScope = "OutOfScope", e;
5709
5727
  }({}), vn = /* @__PURE__ */ function(e) {
5710
- return e.InProgress = "InProgress", e.Completed = "Completed", e;
5728
+ return e.PoorExplanation = "poor_explanation", e.FalseInformation = "false_information", e.NotFollowingRequest = "not_following_request", e.IncompleteResponse = "incomplete_response", e.ChatHistoryIssue = "chat_history_issue", e.PersonalizationIssue = "personalization_issue", e.Other = "other", e;
5711
5729
  }({}), yn = /* @__PURE__ */ function(e) {
5712
- return e.CompanyContext = "CompanyContext", e.CoachPersona = "CoachPersona", e.ContextDocuments = "ContextDocuments", e.TestAiCoach = "TestAiCoach", e.Playbook = "Playbook", e.Extension = "Extension", e.IntentTooltip = "IntentTooltip", e.PreviewAsMember = "PreviewAsMember", e;
5730
+ return e.Up = "up", e.Down = "down", e;
5713
5731
  }({}), bn = /* @__PURE__ */ function(e) {
5714
- return e.Completed = "Completed", e.Skipped = "Skipped", e;
5732
+ return e.ContinueOnboarding = "ContinueOnboarding", e;
5715
5733
  }({}), xn = /* @__PURE__ */ function(e) {
5716
- return e.PlaybookIntent = "PlaybookIntent", e.UserInitiated = "UserInitiated", e.Welcome = "Welcome", e.Resume = "Resume", e.Discover = "Discover", e.Recommend = "Recommend", e;
5734
+ return e.InProgress = "InProgress", e.Completed = "Completed", e;
5717
5735
  }({}), Sn = /* @__PURE__ */ function(e) {
5718
- return e.ExtraExtraSmall = "ExtraExtraSmall", e.ExtraSmall = "ExtraSmall", e.Small = "Small", e.Medium = "Medium", e.Large = "Large", e;
5736
+ return e.CompanyContext = "CompanyContext", e.CoachPersona = "CoachPersona", e.ContextDocuments = "ContextDocuments", e.TestAiCoach = "TestAiCoach", e.Playbook = "Playbook", e.Extension = "Extension", e.IntentTooltip = "IntentTooltip", e.PreviewAsMember = "PreviewAsMember", e;
5719
5737
  }({}), Cn = /* @__PURE__ */ function(e) {
5720
- return e.Dropdown = "Dropdown", e.Inline = "Inline", e.Overlay = "Overlay", e;
5738
+ return e.Completed = "Completed", e.Skipped = "Skipped", e;
5721
5739
  }({}), wn = /* @__PURE__ */ function(e) {
5722
- return e.Left = "Left", e.Right = "Right", e;
5740
+ return e.PlaybookIntent = "PlaybookIntent", e.UserInitiated = "UserInitiated", e.Welcome = "Welcome", e.Resume = "Resume", e.Discover = "Discover", e.Recommend = "Recommend", e;
5723
5741
  }({}), Tn = /* @__PURE__ */ function(e) {
5724
- return e.Top = "Top", e.Bottom = "Bottom", e;
5742
+ return e.ExtraExtraSmall = "ExtraExtraSmall", e.ExtraSmall = "ExtraSmall", e.Small = "Small", e.Medium = "Medium", e.Large = "Large", e;
5725
5743
  }({}), En = /* @__PURE__ */ function(e) {
5726
- return e.TopLeft = "TopLeft", e.TopRight = "TopRight", e.BottomLeft = "BottomLeft", e.BottomRight = "BottomRight", e;
5744
+ return e.Dropdown = "Dropdown", e.Inline = "Inline", e.Overlay = "Overlay", e;
5727
5745
  }({}), Dn = /* @__PURE__ */ function(e) {
5728
- return e.Button = "Button", e.Card = "Card", e.CardInline = "CardInline", e.Carousel = "Carousel", e.Helper = "Helper", e.ListOfContent = "ListOfContent", e.ListOfContentInline = "ListOfContentInline", e;
5746
+ return e.Left = "Left", e.Right = "Right", e;
5729
5747
  }({}), On = /* @__PURE__ */ function(e) {
5730
- return e.Inline = "Inline", e.Modal = "Modal", e.Drawer = "Drawer", e;
5748
+ return e.Top = "Top", e.Bottom = "Bottom", e;
5731
5749
  }({}), kn = /* @__PURE__ */ function(e) {
5732
- return e.Self = "Self", e.Parent = "Parent", e.Top = "Top", e;
5750
+ return e.TopLeft = "TopLeft", e.TopRight = "TopRight", e.BottomLeft = "BottomLeft", e.BottomRight = "BottomRight", e;
5733
5751
  }({}), An = /* @__PURE__ */ function(e) {
5734
- return e.Left = "Left", e.Right = "Right", e;
5752
+ return e.Button = "Button", e.Card = "Card", e.CardInline = "CardInline", e.Carousel = "Carousel", e.Helper = "Helper", e.ListOfContent = "ListOfContent", e.ListOfContentInline = "ListOfContentInline", e;
5735
5753
  }({}), jn = /* @__PURE__ */ function(e) {
5736
- return e.Body = "Body", e.DOMSelector = "DOMSelector", e;
5754
+ return e.Inline = "Inline", e.Modal = "Modal", e.Drawer = "Drawer", e;
5737
5755
  }({}), Mn = /* @__PURE__ */ function(e) {
5738
- return e.After = "After", e.AppendChild = "AppendChild", e.Before = "Before", e.PrependChild = "PrependChild", e;
5756
+ return e.Self = "Self", e.Parent = "Parent", e.Top = "Top", e;
5739
5757
  }({}), Nn = /* @__PURE__ */ function(e) {
5740
- return e.CSSSelector = "CSSSelector", e.Slot = "Slot", e;
5758
+ return e.Left = "Left", e.Right = "Right", e;
5741
5759
  }({}), Pn = /* @__PURE__ */ function(e) {
5742
- return e.Element = "Element", e.WebComponent = "WebComponent", e;
5760
+ return e.Body = "Body", e.DOMSelector = "DOMSelector", e;
5743
5761
  }({}), Fn = /* @__PURE__ */ function(e) {
5744
- return e.Inline = "Inline", e.Flex = "Flex", e;
5762
+ return e.After = "After", e.AppendChild = "AppendChild", e.Before = "Before", e.PrependChild = "PrependChild", e;
5745
5763
  }({}), In = /* @__PURE__ */ function(e) {
5746
- return e.Horizontal = "Horizontal", e.Vertical = "Vertical", e;
5764
+ return e.CSSSelector = "CSSSelector", e.Slot = "Slot", e;
5747
5765
  }({}), Ln = /* @__PURE__ */ function(e) {
5748
- return e.Start = "Start", e.Center = "Center", e.End = "End", e.Stretch = "Stretch", e.Baseline = "Baseline", e;
5766
+ return e.Element = "Element", e.WebComponent = "WebComponent", e;
5749
5767
  }({}), Rn = /* @__PURE__ */ function(e) {
5750
- return e.Course = "Course", e.Live = "Live", e.Link = "Link", e.Page = "Page", e;
5768
+ return e.Inline = "Inline", e.Flex = "Flex", e;
5751
5769
  }({}), zn = /* @__PURE__ */ function(e) {
5752
- return e.Workshop = "Workshop", e.Conference = "Conference", e;
5770
+ return e.Horizontal = "Horizontal", e.Vertical = "Vertical", e;
5753
5771
  }({}), Bn = /* @__PURE__ */ function(e) {
5754
- return e.Ended = "Ended", e.Planned = "Planned", e.Live = "Live", e;
5772
+ return e.Start = "Start", e.Center = "Center", e.End = "End", e.Stretch = "Stretch", e.Baseline = "Baseline", e;
5755
5773
  }({}), Vn = /* @__PURE__ */ function(e) {
5756
- return e.Hours = "Hours", e.Days = "Days", e.Never = "Never", e;
5774
+ return e.Course = "Course", e.Live = "Live", e.Link = "Link", e.Page = "Page", e;
5757
5775
  }({}), Hn = /* @__PURE__ */ function(e) {
5758
- return e.CloseA = "CloseA", e.CloseB = "CloseB", e.Later = "Later", e;
5776
+ return e.Workshop = "Workshop", e.Conference = "Conference", e;
5759
5777
  }({}), Un = /* @__PURE__ */ function(e) {
5778
+ return e.Ended = "Ended", e.Planned = "Planned", e.Live = "Live", e;
5779
+ }({}), Wn = /* @__PURE__ */ function(e) {
5780
+ return e.Hours = "Hours", e.Days = "Days", e.Never = "Never", e;
5781
+ }({}), Gn = /* @__PURE__ */ function(e) {
5782
+ return e.CloseA = "CloseA", e.CloseB = "CloseB", e.Later = "Later", e;
5783
+ }({}), Kn = /* @__PURE__ */ function(e) {
5760
5784
  return e.NoLimit = "NoLimit", e.OnlyOnce = "OnlyOnce", e.OncePerDays = "OncePerDays", e.UntilContentCompletion = "UntilContentCompletion", e;
5761
- }({}), Wn = "a", Gn = "mention_input", Kn = "mention", qn = "var", Jn = "p", Yn = "h1", Xn = "h2", Zn = "h3", Qn = "blockquote", $n = "layout", er = "layout-column", tr = "ul", nr = "ol", rr = "lic", ir = "li", ar = "img", or = "iframely", sr = "code_block", cr = "code_line", lr = /* @__PURE__ */ function(e) {
5785
+ }({}), qn = /* @__PURE__ */ function(e) {
5786
+ return e.Text = "Text", e.Audio = "Audio", e.Video = "Video", e;
5787
+ }({}), Jn = "a", Yn = "mention_input", Xn = "mention", Zn = "var", Qn = "p", $n = "h1", er = "h2", tr = "h3", nr = "blockquote", rr = "layout", ir = "layout-column", ar = "ul", or = "ol", sr = "lic", cr = "li", lr = "img", ur = "iframely", dr = "code_block", fr = "code_line", pr = /* @__PURE__ */ function(e) {
5762
5788
  return e.NoAction = "NoAction", e.AlreadyRevealed = "AlreadyRevealed", e.UnresolvedUrlTokens = "UnresolvedUrlTokens", e.TargetUnavailable = "TargetUnavailable", e.InvalidUrl = "InvalidUrl", e.MemberNotAccepted = "MemberNotAccepted", e;
5763
- }({}), ur = /* @__PURE__ */ function(e) {
5789
+ }({}), mr = /* @__PURE__ */ function(e) {
5764
5790
  return e.Element = "Element", e.FullPage = "FullPage", e;
5765
- }({}), dr = /* @__PURE__ */ function(e) {
5791
+ }({}), hr = /* @__PURE__ */ function(e) {
5766
5792
  return e.CustomText = "CustomText", e.Hotspot = "Hotspot", e.Url = "Url", e;
5767
- }({}), fr = /* @__PURE__ */ function(e) {
5793
+ }({}), gr = /* @__PURE__ */ function(e) {
5768
5794
  return e.Draft = "Draft", e.Pending = "Pending", e.Published = "Published", e;
5769
- }({}), pr = /* @__PURE__ */ function(e) {
5770
- return e.Beacon = "Beacon", e.List = "List", e;
5771
- }({}), mr = /* @__PURE__ */ function(e) {
5772
- return e.Channel = "Channel", e.Collection = "Collection", e.Course = "Course", e.Discussion = "Discussion", e.Forum = "Forum", e.Link = "Link", e.Live = "Live", e.LearningPath = "LearningPath", e.Page = "Page", e.RichText = "RichText", e.Topic = "Topic", e;
5795
+ }({}), _r = /* @__PURE__ */ function(e) {
5796
+ return e.Beacon = "Beacon", e.List = "List", e.None = "None", e;
5797
+ }({}), V = /* @__PURE__ */ function(e) {
5798
+ return e.Channel = "Channel", e.Collection = "Collection", e.Course = "Course", e.Discussion = "Discussion", e.Forum = "Forum", e.GeneratedContent = "GeneratedContent", e.Link = "Link", e.Live = "Live", e.LearningPath = "LearningPath", e.Page = "Page", e.RichText = "RichText", e.Roleplay = "Roleplay", e.Topic = "Topic", e;
5773
5799
  }({});
5774
- function hr(e) {
5775
- return Object.values(mr).includes(e);
5800
+ function vr(e) {
5801
+ return Object.values(V).includes(e);
5776
5802
  }
5777
5803
  //#endregion
5778
5804
  //#region src/index.ts
5779
- var gr = vt.getInstance(), _r = Kt.getInstance(), V = an.getInstance(), vr = {
5780
- Playbook: Zt.getInstance(),
5781
- Spot: en.getInstance(),
5782
- SpotMember: nn.getInstance()
5783
- }, yr = globalThis;
5784
- yr.MeltingSpot ||= {}, yr.MeltingSpot.Configuration = gr, yr.MeltingSpot.Auth = _r, yr.MeltingSpot.Sso = V, yr.MeltingSpot.Api = vr;
5805
+ var yr = vt.getInstance(), br = Kt.getInstance(), H = sn.getInstance(), xr = {
5806
+ Melty: Xt.getInstance(),
5807
+ Playbook: R.getInstance(),
5808
+ Spot: nn.getInstance(),
5809
+ SpotMember: rn.getInstance()
5810
+ }, Sr = globalThis;
5811
+ Sr.MeltingSpot ||= {}, Sr.MeltingSpot.Configuration = yr, Sr.MeltingSpot.Auth = br, Sr.MeltingSpot.Sso = H, Sr.MeltingSpot.Api = xr;
5785
5812
  //#endregion
5786
- var br = Ee.default;
5787
- export { Qn as ATTRIBUTE_BLOCKQUOTE, sr as ATTRIBUTE_CODE_BLOCK, cr as ATTRIBUTE_CODE_LINE, Yn as ATTRIBUTE_H1, Xn as ATTRIBUTE_H2, Zn as ATTRIBUTE_H3, or as ATTRIBUTE_IFRAMELY, ar as ATTRIBUTE_IMAGE, $n as ATTRIBUTE_LAYOUT, er as ATTRIBUTE_LAYOUT_COLUMN, ir as ATTRIBUTE_LI, rr as ATTRIBUTE_LIC, Wn as ATTRIBUTE_LINK, Kn as ATTRIBUTE_MENTION, Gn as ATTRIBUTE_MENTION_INPUT, nr as ATTRIBUTE_OL, Jn as ATTRIBUTE_PARAGRAPH, tr as ATTRIBUTE_UL, qn as ATTRIBUTE_VARIABLE, cn as AnalyticsApiService, vr as Api, _r as Auth, Kt as AuthService, L as AuthServiceEvents, Cn as BeaconIntegrationType, Dn as BeaconRenderType, Sn as ButtonBeaconSize, dn as CoachMutePreset, gr as Configuration, vt as ConfigurationService, pn as ConversationMessageRole, mn as ConversationSseEventType, fn as ConversationStatus, ue as DEFAULT_PERMISSION_POLICIES, D as DateFormat, Vn as DisplayRuleTimeUnit, An as DrawerWidgetPosition, wn as DropdownBeaconHorizontalPosition, Tn as DropdownBeaconVerticalPosition, N as HttpError, P as HttpMethods, F as HttpService, lr as IntentActionOmissionReason, $t as LIST_SPOTS_LIMIT, Hn as LastActionState, Rn as LearningPathContentType, zn as LiveBuiltInType, Bn as LiveStatus, dt as Logger, Jt as MeltingSpotApi, hn as MeltyHandoffReason, gn as MeltyMessageFeedbackReason, _n as MeltyMessageFeedbackSignal, B as MeltyOnboardingAction, yn as OnboardingStep, bn as OnboardingStepStatus, vn as OnboardingWizardStatus, En as OverlayBeaconPosition, at as PLAYBOOK_EDITOR_ACTIVE_EVENT, Zt as PlaybookApiService, O as PlaybookEditorAwareLifecycle, ur as PlaybookHotspotLocation, dr as PlaybookIntentActionType, fr as PlaybookIntentStatus, pr as PlaybookIntentWidgetMode, Ke as PlaybookPageMatchingOperator, Un as RepetitionMode, on as RouteChangeDetector, nn as SpotMemberApiService, rn as SpotMemberAuthApiService, mr as SpotWidgetContentType, V as Sso, an as SsoService, jn as TouchPointAnchorType, Mn as TouchPointDOMInjectionPosition, Pn as TouchPointDOMSelectorCssStepMode, Nn as TouchPointDOMSelectorPathStepType, Ln as TouchPointFlexAlign, In as TouchPointFlexDirection, Fn as TouchPointLayoutType, xn as TriggerType, kn as WidgetInjectionTarget, On as WidgetInjectionType, le as createDialog, de as createIframe, fe as createIsolatedShadowHost, br as dayjs, un as flattenUtmParameters, A as formatBaseUrl, Ge as formatDate, ht as formatDeeplink, pt as formatUUID, ce as getHTMLElement, je as getTimeInfoWithStartAndEndDate, lt as isEditorPauseExempt, st as isPlaybookEditorActive, hr as isSpotWidgetContentType, pe as isTouchDevice, rt as matchesDomain, ln as parseUtmParameters, se as sanitizeUrl, ft as setLoggerDebugMode, tt as testUrlMatching, ie as trimSlashLeft, oe as trimSlashRight };
5813
+ var Cr = Ee.default;
5814
+ export { nr as ATTRIBUTE_BLOCKQUOTE, dr as ATTRIBUTE_CODE_BLOCK, fr as ATTRIBUTE_CODE_LINE, $n as ATTRIBUTE_H1, er as ATTRIBUTE_H2, tr as ATTRIBUTE_H3, ur as ATTRIBUTE_IFRAMELY, lr as ATTRIBUTE_IMAGE, rr as ATTRIBUTE_LAYOUT, ir as ATTRIBUTE_LAYOUT_COLUMN, cr as ATTRIBUTE_LI, sr as ATTRIBUTE_LIC, Jn as ATTRIBUTE_LINK, Xn as ATTRIBUTE_MENTION, Yn as ATTRIBUTE_MENTION_INPUT, or as ATTRIBUTE_OL, Qn as ATTRIBUTE_PARAGRAPH, ar as ATTRIBUTE_UL, Zn as ATTRIBUTE_VARIABLE, un as AnalyticsApiService, xr as Api, br as Auth, Kt as AuthService, L as AuthServiceEvents, En as BeaconIntegrationType, An as BeaconRenderType, Tn as ButtonBeaconSize, pn as CoachMutePreset, yr as Configuration, vt as ConfigurationService, hn as ConversationMessageRole, gn as ConversationSseEventType, mn as ConversationStatus, ue as DEFAULT_PERMISSION_POLICIES, D as DateFormat, Wn as DisplayRuleTimeUnit, Nn as DrawerWidgetPosition, Dn as DropdownBeaconHorizontalPosition, On as DropdownBeaconVerticalPosition, N as HttpError, P as HttpMethods, F as HttpService, pr as IntentActionOmissionReason, tn as LIST_SPOTS_LIMIT, Gn as LastActionState, Vn as LearningPathContentType, _n as ListConversationsSort, Hn as LiveBuiltInType, Un as LiveStatus, dt as Logger, Jt as MeltingSpotApi, Xt as MeltyApiService, B as MeltyHandoffReason, vn as MeltyMessageFeedbackReason, yn as MeltyMessageFeedbackSignal, bn as MeltyOnboardingAction, Sn as OnboardingStep, Cn as OnboardingStepStatus, xn as OnboardingWizardStatus, kn as OverlayBeaconPosition, at as PLAYBOOK_EDITOR_ACTIVE_EVENT, R as PlaybookApiService, O as PlaybookEditorAwareLifecycle, mr as PlaybookHotspotLocation, hr as PlaybookIntentActionType, gr as PlaybookIntentStatus, _r as PlaybookIntentWidgetMode, Ke as PlaybookPageMatchingOperator, Kn as RepetitionMode, qn as RoleplayModality, cn as RouteChangeDetector, rn as SpotMemberApiService, on as SpotMemberAuthApiService, V as SpotWidgetContentType, H as Sso, sn as SsoService, Pn as TouchPointAnchorType, Fn as TouchPointDOMInjectionPosition, Ln as TouchPointDOMSelectorCssStepMode, In as TouchPointDOMSelectorPathStepType, Bn as TouchPointFlexAlign, zn as TouchPointFlexDirection, Rn as TouchPointLayoutType, wn as TriggerType, Mn as WidgetInjectionTarget, jn as WidgetInjectionType, le as createDialog, de as createIframe, fe as createIsolatedShadowHost, Cr as dayjs, fn as flattenUtmParameters, A as formatBaseUrl, Ge as formatDate, ht as formatDeeplink, pt as formatUUID, ce as getHTMLElement, je as getTimeInfoWithStartAndEndDate, lt as isEditorPauseExempt, st as isPlaybookEditorActive, vr as isSpotWidgetContentType, pe as isTouchDevice, rt as matchesDomain, dn as parseUtmParameters, se as sanitizeUrl, ft as setLoggerDebugMode, tt as testUrlMatching, ie as trimSlashLeft, oe as trimSlashRight };