@botpress/runtime 1.8.0 → 1.8.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../src/primitives/conversation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,IAAI,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3D,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAA;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAElD,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAEzD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAGlD,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAElC,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAE1D,KAAK,eAAe,GAAG;KACpB,MAAM,IAAI,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,mBAAmB,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,SAAS,KAAK,GACvG,KAAK,GACL;SACG,OAAO,IAAI,MAAM,mBAAmB,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,GAAG,MAAM,GAAG;YACnE,IAAI,EAAE,GAAG,MAAM,IAAI,OAAO,EAAE,CAAA;YAC5B,QAAQ,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAA;YACtC,IAAI,EAAE,MAAM,CAAA;SACb;KACF,CAAC,MAAM,mBAAmB,CAAC,MAAM,CAA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RenderedComponent } from 'llmz';
1
+ import { Chat, RenderedComponent } from 'llmz';
2
2
  import { TranscriptItem } from './transcript';
3
3
  import { AnyIncomingEvent, AnyIncomingMessage } from '@botpress/sdk/dist/bot';
4
4
  import { BotContext } from '../context/context';
5
+ import { DefaultComponents } from './components';
5
6
  export type Msg = {
6
7
  type: string;
7
8
  payload: Record<string, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/runtime/chat/chat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAkB,iBAAiB,EAAc,MAAM,MAAM,CAAA;AAE7F,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAG7C,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAS7E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAE/C,MAAM,MAAM,GAAG,GAAG;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAA;AAElF,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;AAEnF,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,SAAS,CAAA;IACpB,OAAO,CAAC,EAAE,gBAAgB,CAAA;CAC3B,CAAA;AAED,qBAAa,YAAa,SAAQ,IAAI;IACpC,OAAO,CAAC,WAAW,CAA8B;IAEjD,OAAO,CAAC,MAAM,CAAsB;IACpC,OAAO,CAAC,YAAY,CAAyC;IAC7D,OAAO,CAAC,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;IACH,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKnC;;OAEG;IACG,aAAa;IAInB;;OAEG;IACG,eAAe;IAIrB;;OAEG;IACG,mBAAmB,CAAC,KAAK,EAAE,cAAc,EAAE;IAQjD;;OAEG;IACG,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAUxD;;OAEG;IACG,cAAc,CAAC,SAAS,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IAUnF;;OAEG;IACG,aAAa,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;IAOhD;;OAEG;IACG,aAAa,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAIrD,eAAe;IAqBf,iBAAiB;IAiDjB,cAAc;IAkCd,WAAW,CAAC,OAAO,EAAE,GAAG;IAsCxB,MAAM,CAAC,OAAO,EAAE,iBAAiB;IAmEvC;;;;OAIG;IACG,6BAA6B,CAAC,OAAO,EAAE,kBAAkB,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;IA6BjG,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC,GAAG,CAAC,GAAG;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,GAAG,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE;IAgBrG,UAAU,CAAC,OAAO,EAAE,kBAAkB,CAAC,GAAG,CAAC;CAuClD"}
@@ -483,5 +483,106 @@ export declare namespace Messages {
483
483
  type Dropdown = DefaultMessages<'dropdown'>;
484
484
  }
485
485
  }
486
+ export declare const BUILT_IN_INTEGRATIONS: readonly ["webchat", "slack", "teams", "telegram", "whatsapp"];
487
+ export declare const DefaultComponents: {
488
+ Audio: import("llmz").Component<{
489
+ type: "leaf";
490
+ aliases: never[];
491
+ name: string;
492
+ description: string;
493
+ examples: {
494
+ name: string;
495
+ description: string;
496
+ code: string;
497
+ }[];
498
+ leaf: {
499
+ props: any;
500
+ };
501
+ }>;
502
+ Image: import("llmz").Component<{
503
+ type: "leaf";
504
+ aliases: string[];
505
+ name: string;
506
+ description: string;
507
+ examples: {
508
+ name: string;
509
+ description: string;
510
+ code: string;
511
+ }[];
512
+ leaf: {
513
+ props: any;
514
+ };
515
+ }>;
516
+ Video: import("llmz").Component<{
517
+ type: "leaf";
518
+ aliases: never[];
519
+ name: string;
520
+ description: string;
521
+ examples: {
522
+ name: string;
523
+ description: string;
524
+ code: string;
525
+ }[];
526
+ leaf: {
527
+ props: any;
528
+ };
529
+ }>;
530
+ Location: import("llmz").Component<{
531
+ type: "leaf";
532
+ aliases: never[];
533
+ name: string;
534
+ description: string;
535
+ examples: {
536
+ name: string;
537
+ description: string;
538
+ code: string;
539
+ }[];
540
+ leaf: {
541
+ props: any;
542
+ };
543
+ }>;
544
+ Choice: import("llmz").Component<{
545
+ type: "leaf";
546
+ aliases: string[];
547
+ name: string;
548
+ description: string;
549
+ examples: {
550
+ name: string;
551
+ description: string;
552
+ code: string;
553
+ }[];
554
+ leaf: {
555
+ props: any;
556
+ };
557
+ }>;
558
+ Dropdown: import("llmz").Component<{
559
+ type: "leaf";
560
+ aliases: string[];
561
+ name: string;
562
+ description: string;
563
+ examples: {
564
+ name: string;
565
+ description: string;
566
+ code: string;
567
+ }[];
568
+ leaf: {
569
+ props: any;
570
+ };
571
+ }>;
572
+ Carousel: import("llmz").Component<{
573
+ type: "leaf";
574
+ aliases: string[];
575
+ name: string;
576
+ description: string;
577
+ examples: {
578
+ name: string;
579
+ description: string;
580
+ code: string;
581
+ }[];
582
+ leaf: {
583
+ props: any;
584
+ };
585
+ }>;
586
+ };
486
587
  export {};
487
588
  //# sourceMappingURL=components.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/runtime/chat/components.ts"],"names":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AM,qBAAqB,gEAAiE,CAAA;AACnG,eAAO,MAAM,iBAAiB;;;;;;;;;;;;mBAtPpB,GAAG;;;;;;;;;;;;;;mBAuBH,GAAG;;;;;;;;;;;;;;mBAuBH,GAAG;;;;;;;;;;;;;;mBAyCH,GAAG;;;;;;;;;;;;;;mBAyCH,GAAG;;;;;;;;;;;;;;mBA0CH,GAAG;;;;;;;;;;;;;;mBAuEH,GAAG;;;CAaZ,CAAA"}
@@ -7,10 +7,11 @@ export type IntegrationInterfaceMappings = {
7
7
  actions: Record<`${IntegrationName}:${InterfaceAction}`, `${IntegrationName}:${IntegrationAction}`>;
8
8
  };
9
9
  };
10
- export declare class InterfaceMappings {
11
- private static mappings;
12
- static registerMappings(mappings: IntegrationInterfaceMappings): void;
13
- static getIntegrationAction(interfaceName: InterfaceName, actionName: InterfaceAction, integrationName: IntegrationName): string | undefined;
10
+ declare class InterfaceMappings {
11
+ private mappings;
12
+ registerMappings(mappings: IntegrationInterfaceMappings): void;
13
+ getIntegrationAction(interfaceName: InterfaceName, actionName: InterfaceAction, integrationName: IntegrationName): string | undefined;
14
14
  }
15
+ export declare const interfaceMappings: InterfaceMappings;
15
16
  export {};
16
17
  //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/runtime/interfaces.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG,MAAM,CAAA;AAC3B,KAAK,eAAe,GAAG,MAAM,CAAA;AAC7B,KAAK,eAAe,GAAG,MAAM,CAAA;AAC7B,KAAK,iBAAiB,GAAG,MAAM,CAAA;AAE/B,MAAM,MAAM,4BAA4B,GAAG;KACxC,SAAS,IAAI,aAAa,GAAG;QAC5B,OAAO,EAAE,MAAM,CAAC,GAAG,eAAe,IAAI,eAAe,EAAE,EAAE,GAAG,eAAe,IAAI,iBAAiB,EAAE,CAAC,CAAA;KACpG;CACF,CAAA;AAED,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAmC;WAE5C,gBAAgB,CAAC,QAAQ,EAAE,4BAA4B;WAIvD,oBAAoB,CAChC,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,eAAe,EAC3B,eAAe,EAAE,eAAe,GAC/B,MAAM,GAAG,SAAS;CAGtB"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/runtime/interfaces.ts"],"names":[],"mappings":"AAEA,KAAK,aAAa,GAAG,MAAM,CAAA;AAC3B,KAAK,eAAe,GAAG,MAAM,CAAA;AAC7B,KAAK,eAAe,GAAG,MAAM,CAAA;AAC7B,KAAK,iBAAiB,GAAG,MAAM,CAAA;AAE/B,MAAM,MAAM,4BAA4B,GAAG;KACxC,SAAS,IAAI,aAAa,GAAG;QAC5B,OAAO,EAAE,MAAM,CAAC,GAAG,eAAe,IAAI,eAAe,EAAE,EAAE,GAAG,eAAe,IAAI,iBAAiB,EAAE,CAAC,CAAA;KACpG;CACF,CAAA;AAED,cAAM,iBAAiB;IACrB,OAAO,CAAC,QAAQ,CAAmC;IAE5C,gBAAgB,CAAC,QAAQ,EAAE,4BAA4B;IAIvD,oBAAoB,CACzB,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,eAAe,EAC3B,eAAe,EAAE,eAAe,GAC/B,MAAM,GAAG,SAAS;CAGtB;AAED,eAAO,MAAM,iBAAiB,mBAAiF,CAAA"}
package/dist/runtime.js CHANGED
@@ -48,7 +48,7 @@ var init_define_BUILD = __esm({
48
48
  var define_PACKAGE_VERSIONS_default;
49
49
  var init_define_PACKAGE_VERSIONS = __esm({
50
50
  "<define:__PACKAGE_VERSIONS__>"() {
51
- define_PACKAGE_VERSIONS_default = { runtime: "1.8.0", adk: "1.8.0", sdk: "4.19.0", llmz: "0.0.33", zai: "2.5.0", cognitive: "0.2.0" };
51
+ define_PACKAGE_VERSIONS_default = { runtime: "1.8.2", adk: "1.8.2", sdk: "4.19.0", llmz: "0.0.33", zai: "2.5.0", cognitive: "0.2.0" };
52
52
  }
53
53
  });
54
54
 
@@ -27678,11 +27678,11 @@ function expand_(str, isTop) {
27678
27678
  if (pad) {
27679
27679
  const need = width - c.length;
27680
27680
  if (need > 0) {
27681
- const z26 = new Array(need + 1).join("0");
27681
+ const z27 = new Array(need + 1).join("0");
27682
27682
  if (i < 0) {
27683
- c = "-" + z26 + c.slice(1);
27683
+ c = "-" + z27 + c.slice(1);
27684
27684
  } else {
27685
- c = z26 + c;
27685
+ c = z27 + c;
27686
27686
  }
27687
27687
  }
27688
27688
  }
@@ -35569,14 +35569,15 @@ import { CitationsManager } from "llmz";
35569
35569
  init_define_BUILD();
35570
35570
  init_define_PACKAGE_VERSIONS();
35571
35571
  var InterfaceMappings = class {
35572
- static mappings = {};
35573
- static registerMappings(mappings) {
35572
+ mappings = {};
35573
+ registerMappings(mappings) {
35574
35574
  this.mappings = { ...this.mappings, ...mappings };
35575
35575
  }
35576
- static getIntegrationAction(interfaceName, actionName, integrationName) {
35576
+ getIntegrationAction(interfaceName, actionName, integrationName) {
35577
35577
  return this.mappings[interfaceName]?.actions[`${integrationName}:${actionName}`];
35578
35578
  }
35579
35579
  };
35580
+ var interfaceMappings = getSingleton("__ADK_GLOBAL_INTERFACE_MAPPINGS", () => new InterfaceMappings());
35580
35581
 
35581
35582
  // src/runtime/context/http.ts
35582
35583
  init_define_BUILD();
@@ -40420,7 +40421,7 @@ var BaseConversationInstance = class {
40420
40421
  * Start typing indicator
40421
40422
  */
40422
40423
  async startTyping() {
40423
- const mapping = InterfaceMappings.getIntegrationAction("typingIndicator", "startTypingIndicator", this.integration);
40424
+ const mapping = interfaceMappings.getIntegrationAction("typingIndicator", "startTypingIndicator", this.integration);
40424
40425
  if (mapping) {
40425
40426
  const message = context2.get("message", { optional: true });
40426
40427
  await this.client.callAction({
@@ -40437,7 +40438,7 @@ var BaseConversationInstance = class {
40437
40438
  * Stop typing indicator
40438
40439
  */
40439
40440
  async stopTyping() {
40440
- const mapping = InterfaceMappings.getIntegrationAction("typingIndicator", "stopTypingIndicator", this.integration);
40441
+ const mapping = interfaceMappings.getIntegrationAction("typingIndicator", "stopTypingIndicator", this.integration);
40441
40442
  if (mapping) {
40442
40443
  const message = context2.get("message", { optional: true });
40443
40444
  await this.client.callAction({
@@ -43014,6 +43015,8 @@ var BaseConversation = class {
43014
43015
  const client = context2.get("client");
43015
43016
  const botpressConversation = context2.get("conversation");
43016
43017
  const conversationInstance = new BaseConversationInstance(botpressConversation, client);
43018
+ const startTypingPromise = conversationInstance.startTyping().catch(() => {
43019
+ });
43017
43020
  let type;
43018
43021
  let requestObject = void 0;
43019
43022
  if (message) {
@@ -43125,6 +43128,8 @@ var BaseConversation = class {
43125
43128
  execute
43126
43129
  });
43127
43130
  controller.abort();
43131
+ void startTypingPromise.then(() => conversationInstance.stopTyping().catch(() => {
43132
+ }));
43128
43133
  }
43129
43134
  };
43130
43135
 
@@ -45293,7 +45298,7 @@ var patchHandlers = (bot2) => {
45293
45298
  interfacesMapping: agentRegistry.interfacesMapping
45294
45299
  };
45295
45300
  const original = bot2.handler;
45296
- InterfaceMappings.registerMappings(opts.interfacesMapping);
45301
+ interfaceMappings.registerMappings(opts.interfacesMapping);
45297
45302
  bot2.eventHandlers["adk_agent_deployed"] = [
45298
45303
  async (args) => {
45299
45304
  console.log("\n\n\nAgent deployed event received", args);
@@ -45509,7 +45514,7 @@ init_define_PACKAGE_VERSIONS();
45509
45514
  // src/runtime/chat/chat.ts
45510
45515
  init_define_BUILD();
45511
45516
  init_define_PACKAGE_VERSIONS();
45512
- import { Chat, DefaultComponents, isAnyComponent as isAnyComponent2 } from "llmz";
45517
+ import { Chat, isAnyComponent as isAnyComponent2 } from "llmz";
45513
45518
 
45514
45519
  // src/runtime/chat/truncate-transcript.ts
45515
45520
  init_define_BUILD();
@@ -45974,6 +45979,278 @@ var Config = {
45974
45979
  Analysis
45975
45980
  };
45976
45981
 
45982
+ // src/runtime/chat/components.ts
45983
+ init_define_BUILD();
45984
+ init_define_PACKAGE_VERSIONS();
45985
+ import { messages, z as z24 } from "@botpress/sdk";
45986
+ var DefaultMessageTypes = {
45987
+ text: messages.defaults["text"].schema,
45988
+ audio: messages.defaults["audio"].schema,
45989
+ card: messages.defaults["card"].schema,
45990
+ image: messages.defaults["image"].schema,
45991
+ carousel: messages.defaults["carousel"].schema,
45992
+ choice: messages.defaults["choice"].schema,
45993
+ dropdown: messages.defaults["dropdown"].schema,
45994
+ file: messages.defaults["file"].schema,
45995
+ location: messages.defaults["location"].schema,
45996
+ video: messages.defaults["video"].schema,
45997
+ bloc: messages.defaults["bloc"].schema
45998
+ };
45999
+ var AudioComponent = new Autonomous.Component({
46000
+ type: "leaf",
46001
+ aliases: [],
46002
+ name: "Audio",
46003
+ description: `Send an audio file to the user, which will be playable by the user whithin the chat interface. The audio file should be in a supported format (e.g., MP3, WAV) and accessible via a public URL.`,
46004
+ examples: [
46005
+ {
46006
+ name: " Basic Audio Message",
46007
+ description: "Sends a simple audio message to the user",
46008
+ code: `
46009
+ yield <Message>
46010
+ Here's an **awesome** audio clip for you!
46011
+ <Audio audioUrl="https://example.com/path/to/audio.mp3" />
46012
+ </Message>`
46013
+ }
46014
+ ],
46015
+ leaf: {
46016
+ props: z24.object({
46017
+ audioUrl: z24.string().url().describe("The URL of the audio file to be sent.")
46018
+ })
46019
+ }
46020
+ });
46021
+ var ImageComponent = new Autonomous.Component({
46022
+ type: "leaf",
46023
+ aliases: ["img"],
46024
+ name: "Image",
46025
+ description: `Send an image to the user, which will be displayed within the chat interface. The image should be in a supported format (e.g., JPEG, PNG) and accessible via a public URL.`,
46026
+ examples: [
46027
+ {
46028
+ name: " Basic Image Message",
46029
+ description: "Sends a simple image message to the user",
46030
+ code: `
46031
+ yield <Message>
46032
+ Here's an **awesome** image for you!
46033
+ <Image imageUrl="https://example.com/path/to/image.jpg" />
46034
+ </Message>`
46035
+ }
46036
+ ],
46037
+ leaf: {
46038
+ props: z24.object({
46039
+ imageUrl: z24.string().url().describe("The URL of the image to be sent.")
46040
+ })
46041
+ }
46042
+ });
46043
+ var VideoComponent = new Autonomous.Component({
46044
+ type: "leaf",
46045
+ aliases: [],
46046
+ name: "Video",
46047
+ description: `Send a video to the user, which will be playable within the chat interface. The video should be in a supported format (e.g., MP4, WebM) and accessible via a public URL.`,
46048
+ examples: [
46049
+ {
46050
+ name: " Basic Video Message",
46051
+ description: "Sends a simple video message to the user",
46052
+ code: `
46053
+ yield <Message>
46054
+ Here's an **awesome** video for you!
46055
+ <Video videoUrl="https://example.com/path/to/video.mp4" />
46056
+ </Message>`
46057
+ }
46058
+ ],
46059
+ leaf: {
46060
+ props: z24.object({
46061
+ videoUrl: z24.string().url().describe("The URL of the video to be sent.")
46062
+ })
46063
+ }
46064
+ });
46065
+ var LocationComponent = new Autonomous.Component({
46066
+ type: "leaf",
46067
+ aliases: [],
46068
+ name: "Location",
46069
+ description: `Send a location to the user, which will be displayed as a map within the chat interface. The location should include latitude and longitude coordinates.
46070
+ The location can also optionally include an address and a title for better context.`,
46071
+ examples: [
46072
+ {
46073
+ name: " Basic Location Message",
46074
+ description: "Sends a simple location message to the user",
46075
+ code: `
46076
+ yield <Message>
46077
+ Here's the location you requested!
46078
+ <Location latitude={37.7749} longitude={-122.4194} />
46079
+ </Message>`
46080
+ },
46081
+ {
46082
+ name: " Location Message with Address and Title",
46083
+ description: "Sends a location message with additional address and title information",
46084
+ code: `
46085
+ yield <Message>
46086
+ Here's the location of our office!
46087
+ <Location
46088
+ latitude={45.506342}
46089
+ longitude={-73.572012}
46090
+ address="400 Blvd. De Maisonneuve Ouest #200, Montreal, Quebec H3A 1L4, Canada"
46091
+ title="Botpress HQ"
46092
+ />
46093
+ </Message>`
46094
+ }
46095
+ ],
46096
+ leaf: {
46097
+ props: z24.object({
46098
+ latitude: z24.number().describe("The latitude of the location to be sent."),
46099
+ longitude: z24.number().describe("The longitude of the location to be sent."),
46100
+ address: z24.string().optional().describe("The address of the location to be sent."),
46101
+ title: z24.string().optional().describe("The title of the location to be sent.")
46102
+ })
46103
+ }
46104
+ });
46105
+ var ChoiceComponent = new Autonomous.Component({
46106
+ type: "leaf",
46107
+ aliases: ["choices", "option", "options", "buttons"],
46108
+ name: "Choice",
46109
+ description: `Present a choice to the user with multiple options.
46110
+ The user can select one of the provided options, and the selection will be sent back to the system for further processing.
46111
+ You can include up to 10 options for the user to choose from.
46112
+ Values for each option should be unique identifiers that can be used to identify the user's selection.`,
46113
+ examples: [
46114
+ {
46115
+ name: " Basic Choice Message",
46116
+ description: "Presents a simple choice message to the user",
46117
+ code: `
46118
+ yield <Message>
46119
+ Please choose one of the following options:
46120
+ <Choice
46121
+ text="Select an option:"
46122
+ options={[
46123
+ { label: "Option 1", value: "option_1" },
46124
+ { label: "Option 2", value: "option_2" },
46125
+ { label: "Option 3", value: "option_3" }
46126
+ ]}
46127
+ />
46128
+ </Message>`
46129
+ }
46130
+ ],
46131
+ leaf: {
46132
+ props: z24.object({
46133
+ text: z24.string().describe("The prompt text for the choice."),
46134
+ options: z24.array(
46135
+ z24.object({
46136
+ label: z24.string().describe("The label of the option to be displayed to the user."),
46137
+ value: z24.string().describe("The value of the option to be sent back when selected.")
46138
+ })
46139
+ ).describe("The list of options to present to the user.")
46140
+ })
46141
+ }
46142
+ });
46143
+ var DropdownComponent = new Autonomous.Component({
46144
+ type: "leaf",
46145
+ aliases: ["dropdown", "select", "combo"],
46146
+ name: "Dropdown",
46147
+ description: `Present a dropdown menu to the user with multiple options.
46148
+ The user can select one of the provided options from the dropdown, and the selection will be sent back to the system for further processing.
46149
+ Unlike the Choice component, the Dropdown component is typically used when there are more options to choose from, providing a more compact UI.
46150
+ The dropdown can include up to 100 options for the user to choose from.
46151
+ Values for each option should be unique identifiers that can be used to identify the user's selection.`,
46152
+ examples: [
46153
+ {
46154
+ name: " Basic Dropdown Message",
46155
+ description: "Presents a simple dropdown message to the user",
46156
+ code: `
46157
+ yield <Message>
46158
+ Please select a fruit from the dropdown:
46159
+ <Dropdown
46160
+ text="Choose an option:"
46161
+ options={[
46162
+ { label: "\u{1F350} Pear", value: "pear" },
46163
+ { label: "\u{1F34E} Apple", value: "apple" },
46164
+ { label: "\u{1F34C} Banana", value: "banana" }
46165
+ ]}
46166
+ />
46167
+ </Message>`
46168
+ }
46169
+ ],
46170
+ leaf: {
46171
+ props: z24.object({
46172
+ text: z24.string().describe("The prompt text for the dropdown."),
46173
+ options: z24.array(
46174
+ z24.object({
46175
+ label: z24.string().describe("The label of the option to be displayed to the user."),
46176
+ value: z24.string().describe("The value of the option to be sent back when selected.")
46177
+ })
46178
+ ).describe("The list of options to present in the dropdown.")
46179
+ })
46180
+ }
46181
+ });
46182
+ var CarouselComponent = new Autonomous.Component({
46183
+ type: "leaf",
46184
+ aliases: ["carousel", "cards", "card"],
46185
+ name: "Carousel",
46186
+ description: `Send a carousel of cards to the user, allowing them to browse through multiple items.
46187
+ Carousels are useful for displaying a collection of related items in a compact and interactive format.
46188
+ It is also possible to send a single card using the Carousel component, useful for sending a combination of image, text, and actions in one message such as a receipt or product detail.
46189
+ Each item in the carousel is represented as a card, which can include an image, title, subtitle, and actions.
46190
+ Users can navigate through the carousel by swiping or clicking on navigation controls.
46191
+ You can include multiple cards in the carousel, each with its own set of actions. A carousel can contain between 1 and 10 items (cards).`,
46192
+ examples: [
46193
+ {
46194
+ name: " Basic Carousel Message",
46195
+ description: "Sends a simple carousel message to the user",
46196
+ code: `
46197
+ yield <Message>
46198
+ Here is an **exciting** carousel for you!
46199
+ <Carousel
46200
+ items={[
46201
+ {
46202
+ title: "Product 1",
46203
+ subtitle: "Description of Product 1",
46204
+ imageUrl: "https://example.com/path/to/image1.jpg",
46205
+ actions: [
46206
+ { action: "postback", label: "Buy Now", value: "buy_product_1" },
46207
+ { action: "url", label: "View Details", value: "https://example.com/product_1" }
46208
+ ]
46209
+ },
46210
+ {
46211
+ title: "Product 2",
46212
+ subtitle: "Description of Product 2",
46213
+ imageUrl: "https://example.com/path/to/image2.jpg",
46214
+ actions: [
46215
+ { action: "postback", label: "Buy Now", value: "buy_product_2" },
46216
+ { action: "url", label: "View Details", value: "https://example.com/product_2" }
46217
+ ]
46218
+ }
46219
+ ]}
46220
+ />
46221
+ </Message>`
46222
+ }
46223
+ ],
46224
+ leaf: {
46225
+ props: z24.object({
46226
+ items: z24.array(
46227
+ z24.object({
46228
+ title: z24.string().describe("The title of the carousel item."),
46229
+ subtitle: z24.string().optional().describe("The subtitle of the carousel item."),
46230
+ imageUrl: z24.string().url().optional().describe("The URL of the image to be displayed on the carousel item."),
46231
+ actions: z24.array(
46232
+ z24.object({
46233
+ action: z24.enum(["postback", "url", "say"]).describe("The type of action for the button."),
46234
+ label: z24.string().describe("The label of the button to be displayed to the user."),
46235
+ value: z24.string().describe("The value associated with the button action.")
46236
+ })
46237
+ ).max(3).describe("The list of actions (buttons) to include on the carousel item.")
46238
+ })
46239
+ ).describe("The list of items (cards) to include in the carousel.")
46240
+ })
46241
+ }
46242
+ });
46243
+ var BUILT_IN_INTEGRATIONS = ["webchat", "slack", "teams", "telegram", "whatsapp"];
46244
+ var DefaultComponents = {
46245
+ Audio: AudioComponent,
46246
+ Image: ImageComponent,
46247
+ Video: VideoComponent,
46248
+ Location: LocationComponent,
46249
+ Choice: ChoiceComponent,
46250
+ Dropdown: DropdownComponent,
46251
+ Carousel: CarouselComponent
46252
+ };
46253
+
45977
46254
  // src/runtime/chat/chat.ts
45978
46255
  var BotpressChat = class extends Chat {
45979
46256
  _transcript;
@@ -45994,12 +46271,15 @@ var BotpressChat = class extends Chat {
45994
46271
  this.botId = context3.botId;
45995
46272
  this.logger = context3.logger;
45996
46273
  this.citations = context3.citations;
45997
- this.registerComponent({ component: DefaultComponents.Text });
45998
- this.registerComponent({ component: DefaultComponents.Image });
45999
- this.registerComponent({ component: DefaultComponents.File });
46000
- this.registerComponent({ component: DefaultComponents.Audio });
46001
- this.registerComponent({ component: DefaultComponents.Video });
46002
- this.registerComponent({ component: DefaultComponents.Card });
46274
+ if (BUILT_IN_INTEGRATIONS.includes(this.conversation.integration)) {
46275
+ this.registerComponent({ component: DefaultComponents.Audio });
46276
+ this.registerComponent({ component: DefaultComponents.Image });
46277
+ this.registerComponent({ component: DefaultComponents.Video });
46278
+ this.registerComponent({ component: DefaultComponents.Carousel });
46279
+ this.registerComponent({ component: DefaultComponents.Choice });
46280
+ this.registerComponent({ component: DefaultComponents.Dropdown });
46281
+ this.registerComponent({ component: DefaultComponents.Location });
46282
+ }
46003
46283
  }
46004
46284
  /**
46005
46285
  * Register a component with an optional handler
@@ -46359,21 +46639,21 @@ ${footer}`.trim();
46359
46639
  // src/runtime/chat/transcript.ts
46360
46640
  init_define_BUILD();
46361
46641
  init_define_PACKAGE_VERSIONS();
46362
- import { z as z24 } from "@botpress/sdk";
46363
- var AttachmentSchema = z24.object({
46364
- type: z24.literal("image"),
46365
- url: z24.string()
46366
- });
46367
- var TranscriptItemSchema = z24.object({
46368
- id: z24.string(),
46369
- role: z24.union([z24.literal("assistant"), z24.literal("user"), z24.literal("event"), z24.literal("summary")]),
46370
- name: z24.string().optional(),
46371
- createdAt: z24.string().optional(),
46372
- content: z24.string().optional(),
46373
- attachments: z24.array(AttachmentSchema).optional(),
46374
- payload: z24.unknown().optional()
46375
- });
46376
- var TranscriptSchema = z24.array(TranscriptItemSchema);
46642
+ import { z as z25 } from "@botpress/sdk";
46643
+ var AttachmentSchema = z25.object({
46644
+ type: z25.literal("image"),
46645
+ url: z25.string()
46646
+ });
46647
+ var TranscriptItemSchema = z25.object({
46648
+ id: z25.string(),
46649
+ role: z25.union([z25.literal("assistant"), z25.literal("user"), z25.literal("event"), z25.literal("summary")]),
46650
+ name: z25.string().optional(),
46651
+ createdAt: z25.string().optional(),
46652
+ content: z25.string().optional(),
46653
+ attachments: z25.array(AttachmentSchema).optional(),
46654
+ payload: z25.unknown().optional()
46655
+ });
46656
+ var TranscriptSchema = z25.array(TranscriptItemSchema);
46377
46657
 
46378
46658
  // src/runtime/handlers/index.ts
46379
46659
  init_define_BUILD();
@@ -47720,7 +48000,7 @@ function installStructuredLogging() {
47720
48000
 
47721
48001
  // src/runtime.ts
47722
48002
  init_trigger_tags();
47723
- import { z as z25 } from "@botpress/sdk";
48003
+ import { z as z26 } from "@botpress/sdk";
47724
48004
  if (Environment.isDevelopment()) {
47725
48005
  installStructuredLogging();
47726
48006
  }
@@ -47728,7 +48008,6 @@ export {
47728
48008
  BUILT_IN_STATES,
47729
48009
  BotpressChat,
47730
48010
  Errors,
47731
- InterfaceMappings,
47732
48011
  Message,
47733
48012
  PromiseTracker,
47734
48013
  SubworkflowFinished,
@@ -47753,6 +48032,7 @@ export {
47753
48032
  handlers,
47754
48033
  initAssets,
47755
48034
  initialize,
48035
+ interfaceMappings,
47756
48036
  isConversationSubscribedToTrigger,
47757
48037
  joinMarkdownChildren,
47758
48038
  patchHandlers,
@@ -47762,7 +48042,7 @@ export {
47762
48042
  shutdownPromiseTracker,
47763
48043
  trackPromise,
47764
48044
  user,
47765
- z25 as z
48045
+ z26 as z
47766
48046
  };
47767
48047
  /*! Bundled license information:
47768
48048