@voiceflow/dtos-interact 1.17.0 → 1.17.1

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,4 +1,57 @@
1
1
  import z from 'zod';
2
- export declare const SlateTextValueDTO: z.ZodArray<z.ZodAny, "many">;
2
+ export interface SlateTextColor {
3
+ r: number;
4
+ g: number;
5
+ b: number;
6
+ a: number;
7
+ }
8
+ export declare enum SlateTextProperty {
9
+ BACKGROUND_COLOR = "backgroundColor",
10
+ COLOR = "color",
11
+ ITALIC = "italic",
12
+ UNDERLINE = "underline",
13
+ FONT_WEIGHT = "fontWeight",
14
+ FONT_FAMILY = "fontFamily",
15
+ STRIKE_THROUGH = "strikeThrough"
16
+ }
17
+ export declare enum SlateTextElementType {
18
+ LINK = "link",
19
+ VARIABLE = "variable"
20
+ }
21
+ export declare enum SlateTextElementProperty {
22
+ TEXT_ALIGN = "textAlign"
23
+ }
24
+ export interface SlateText {
25
+ text: string;
26
+ [SlateTextProperty.BACKGROUND_COLOR]?: SlateTextColor;
27
+ [SlateTextProperty.COLOR]?: SlateTextColor;
28
+ [SlateTextProperty.ITALIC]?: boolean;
29
+ [SlateTextProperty.UNDERLINE]?: boolean;
30
+ [SlateTextProperty.FONT_WEIGHT]?: string;
31
+ [SlateTextProperty.FONT_FAMILY]?: string;
32
+ [SlateTextProperty.STRIKE_THROUGH]?: boolean;
33
+ }
34
+ export interface SlateTextElement {
35
+ type?: string;
36
+ children: Descendant[];
37
+ [SlateTextElementProperty.TEXT_ALIGN]?: string;
38
+ }
39
+ export interface SlateTextLinkElement extends SlateTextElement {
40
+ type: SlateTextElementType.LINK;
41
+ url?: string;
42
+ }
43
+ export interface SlateTextVariableElement extends SlateTextElement {
44
+ type: SlateTextElementType.VARIABLE;
45
+ id: string;
46
+ path?: string;
47
+ name: string;
48
+ isSlot?: boolean;
49
+ isSecret?: boolean;
50
+ }
51
+ export type AnySlateTextElement = SlateTextElement | SlateTextLinkElement | SlateTextVariableElement;
52
+ export type Descendant = AnySlateTextElement | SlateText;
53
+ export declare const isSlateTextVariableElement: (element: SlateTextElement) => element is SlateTextVariableElement;
54
+ export declare const isSlateTextLinkElement: (element: SlateTextElement) => element is SlateTextLinkElement;
55
+ export declare const SlateTextValueDTO: z.ZodArray<z.ZodEffects<z.ZodAny, SlateText | SlateTextElement | SlateTextLinkElement | SlateTextVariableElement, any>, "many">;
3
56
  export type SlateTextValue = z.infer<typeof SlateTextValueDTO>;
4
57
  //# sourceMappingURL=text.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text.dto.d.ts","sourceRoot":"","sources":["../../../src/text/text.dto.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,iBAAiB,8BAAmB,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
1
+ {"version":3,"file":"text.dto.d.ts","sourceRoot":"","sources":["../../../src/text/text.dto.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,WAAW,cAAc;IAC7B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,oBAAY,iBAAiB;IAC3B,gBAAgB,oBAAoB;IACpC,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,WAAW,eAAe;IAC1B,WAAW,eAAe;IAC1B,cAAc,kBAAkB;CACjC;AAED,oBAAY,oBAAoB;IAC9B,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,oBAAY,wBAAwB;IAClC,UAAU,cAAc;CACzB;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,EAAE,cAAc,CAAC;IACtD,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC;IAC3C,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC;IACrC,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,EAAE,OAAO,CAAC;IACxC,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC;IACzC,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC;IACzC,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,CAAC;CAChD;AAED,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAChE,IAAI,EAAE,oBAAoB,CAAC,QAAQ,CAAC;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,GAAG,oBAAoB,GAAG,wBAAwB,CAAC;AAErG,MAAM,MAAM,UAAU,GAAG,mBAAmB,GAAG,SAAS,CAAC;AAEzD,eAAO,MAAM,0BAA0B,YAAa,gBAAgB,KAAG,OAAO,IAAI,wBAEjF,CAAC;AAEF,eAAO,MAAM,sBAAsB,YAAa,gBAAgB,KAAG,OAAO,IAAI,oBAE7E,CAAC;AAGF,eAAO,MAAM,iBAAiB,iIAA2D,CAAC;AAE1F,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -3,8 +3,35 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.SlateTextValueDTO = void 0;
6
+ exports.SlateTextValueDTO = exports.isSlateTextLinkElement = exports.isSlateTextVariableElement = exports.SlateTextElementProperty = exports.SlateTextElementType = exports.SlateTextProperty = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
+ var SlateTextProperty;
9
+ (function (SlateTextProperty) {
10
+ SlateTextProperty["BACKGROUND_COLOR"] = "backgroundColor";
11
+ SlateTextProperty["COLOR"] = "color";
12
+ SlateTextProperty["ITALIC"] = "italic";
13
+ SlateTextProperty["UNDERLINE"] = "underline";
14
+ SlateTextProperty["FONT_WEIGHT"] = "fontWeight";
15
+ SlateTextProperty["FONT_FAMILY"] = "fontFamily";
16
+ SlateTextProperty["STRIKE_THROUGH"] = "strikeThrough";
17
+ })(SlateTextProperty || (exports.SlateTextProperty = SlateTextProperty = {}));
18
+ var SlateTextElementType;
19
+ (function (SlateTextElementType) {
20
+ SlateTextElementType["LINK"] = "link";
21
+ SlateTextElementType["VARIABLE"] = "variable";
22
+ })(SlateTextElementType || (exports.SlateTextElementType = SlateTextElementType = {}));
23
+ var SlateTextElementProperty;
24
+ (function (SlateTextElementProperty) {
25
+ SlateTextElementProperty["TEXT_ALIGN"] = "textAlign";
26
+ })(SlateTextElementProperty || (exports.SlateTextElementProperty = SlateTextElementProperty = {}));
27
+ const isSlateTextVariableElement = (element) => {
28
+ return element.type === SlateTextElementType.VARIABLE;
29
+ };
30
+ exports.isSlateTextVariableElement = isSlateTextVariableElement;
31
+ const isSlateTextLinkElement = (element) => {
32
+ return element.type === SlateTextElementType.LINK;
33
+ };
34
+ exports.isSlateTextLinkElement = isSlateTextLinkElement;
8
35
  // TODO: define and manage later
9
- exports.SlateTextValueDTO = zod_1.default.array(zod_1.default.any());
36
+ exports.SlateTextValueDTO = zod_1.default.array(zod_1.default.any().transform((value) => value));
10
37
  //# sourceMappingURL=text.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text.dto.js","sourceRoot":"","sources":["../../../src/text/text.dto.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AAEpB,gCAAgC;AACnB,QAAA,iBAAiB,GAAG,aAAC,CAAC,KAAK,CAAC,aAAC,CAAC,GAAG,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"text.dto.js","sourceRoot":"","sources":["../../../src/text/text.dto.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AASpB,IAAY,iBAQX;AARD,WAAY,iBAAiB;IAC3B,yDAAoC,CAAA;IACpC,oCAAe,CAAA;IACf,sCAAiB,CAAA;IACjB,4CAAuB,CAAA;IACvB,+CAA0B,CAAA;IAC1B,+CAA0B,CAAA;IAC1B,qDAAgC,CAAA;AAClC,CAAC,EARW,iBAAiB,iCAAjB,iBAAiB,QAQ5B;AAED,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,6CAAqB,CAAA;AACvB,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B;AAED,IAAY,wBAEX;AAFD,WAAY,wBAAwB;IAClC,oDAAwB,CAAA;AAC1B,CAAC,EAFW,wBAAwB,wCAAxB,wBAAwB,QAEnC;AAqCM,MAAM,0BAA0B,GAAG,CAAC,OAAyB,EAAuC,EAAE;IAC3G,OAAO,OAAO,CAAC,IAAI,KAAK,oBAAoB,CAAC,QAAQ,CAAC;AACxD,CAAC,CAAC;AAFW,QAAA,0BAA0B,8BAErC;AAEK,MAAM,sBAAsB,GAAG,CAAC,OAAyB,EAAmC,EAAE;IACnG,OAAO,OAAO,CAAC,IAAI,KAAK,oBAAoB,CAAC,IAAI,CAAC;AACpD,CAAC,CAAC;AAFW,QAAA,sBAAsB,0BAEjC;AAEF,gCAAgC;AACnB,QAAA,iBAAiB,GAAG,aAAC,CAAC,KAAK,CAAC,aAAC,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,KAAiB,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC"}
@@ -454,10 +454,10 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
454
454
  imageUrl: z.ZodNullable<z.ZodString>;
455
455
  description: z.ZodObject<{
456
456
  text: z.ZodString;
457
- slate: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
457
+ slate: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodAny, import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement, any>, "many">>;
458
458
  }, "strip", z.ZodTypeAny, {
459
459
  text: string;
460
- slate?: any[] | undefined;
460
+ slate?: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[] | undefined;
461
461
  }, {
462
462
  text: string;
463
463
  slate?: any[] | undefined;
@@ -475,7 +475,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
475
475
  imageUrl: string | null;
476
476
  description: {
477
477
  text: string;
478
- slate?: any[] | undefined;
478
+ slate?: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[] | undefined;
479
479
  };
480
480
  }, {
481
481
  title: string;
@@ -508,7 +508,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
508
508
  imageUrl: string | null;
509
509
  description: {
510
510
  text: string;
511
- slate?: any[] | undefined;
511
+ slate?: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[] | undefined;
512
512
  };
513
513
  };
514
514
  paths?: {
@@ -619,10 +619,10 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
619
619
  imageUrl: z.ZodNullable<z.ZodString>;
620
620
  description: z.ZodObject<{
621
621
  text: z.ZodString;
622
- slate: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
622
+ slate: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodAny, import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement, any>, "many">>;
623
623
  }, "strip", z.ZodTypeAny, {
624
624
  text: string;
625
- slate?: any[] | undefined;
625
+ slate?: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[] | undefined;
626
626
  }, {
627
627
  text: string;
628
628
  slate?: any[] | undefined;
@@ -641,7 +641,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
641
641
  imageUrl: string | null;
642
642
  description: {
643
643
  text: string;
644
- slate?: any[] | undefined;
644
+ slate?: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[] | undefined;
645
645
  };
646
646
  id?: string | undefined;
647
647
  }, {
@@ -679,7 +679,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
679
679
  imageUrl: string | null;
680
680
  description: {
681
681
  text: string;
682
- slate?: any[] | undefined;
682
+ slate?: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[] | undefined;
683
683
  };
684
684
  id?: string | undefined;
685
685
  }[];
@@ -720,7 +720,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
720
720
  imageUrl: string | null;
721
721
  description: {
722
722
  text: string;
723
- slate?: any[] | undefined;
723
+ slate?: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[] | undefined;
724
724
  };
725
725
  id?: string | undefined;
726
726
  }[];
@@ -1981,9 +1981,9 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1981
1981
  ai: z.ZodOptional<z.ZodBoolean>;
1982
1982
  slate: z.ZodObject<{
1983
1983
  id: z.ZodString;
1984
- content: z.ZodArray<z.ZodAny, "many">;
1984
+ content: z.ZodArray<z.ZodEffects<z.ZodAny, import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement, any>, "many">;
1985
1985
  }, "strip", z.ZodTypeAny, {
1986
- content: any[];
1986
+ content: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[];
1987
1987
  id: string;
1988
1988
  }, {
1989
1989
  content: any[];
@@ -2001,7 +2001,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2001
2001
  }, "strip", z.ZodTypeAny, {
2002
2002
  message: string;
2003
2003
  slate: {
2004
- content: any[];
2004
+ content: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[];
2005
2005
  id: string;
2006
2006
  };
2007
2007
  ai?: boolean | undefined;
@@ -2028,7 +2028,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2028
2028
  payload: {
2029
2029
  message: string;
2030
2030
  slate: {
2031
- content: any[];
2031
+ content: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[];
2032
2032
  id: string;
2033
2033
  };
2034
2034
  ai?: boolean | undefined;
@@ -34,10 +34,10 @@ export declare const CardTraceCardDTO: z.ZodObject<{
34
34
  imageUrl: z.ZodNullable<z.ZodString>;
35
35
  description: z.ZodObject<{
36
36
  text: z.ZodString;
37
- slate: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
37
+ slate: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodAny, import("../text/text.dto").SlateText | import("../text/text.dto").SlateTextElement | import("../text/text.dto").SlateTextLinkElement | import("../text/text.dto").SlateTextVariableElement, any>, "many">>;
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  text: string;
40
- slate?: any[] | undefined;
40
+ slate?: (import("../text/text.dto").SlateText | import("../text/text.dto").SlateTextElement | import("../text/text.dto").SlateTextLinkElement | import("../text/text.dto").SlateTextVariableElement)[] | undefined;
41
41
  }, {
42
42
  text: string;
43
43
  slate?: any[] | undefined;
@@ -55,7 +55,7 @@ export declare const CardTraceCardDTO: z.ZodObject<{
55
55
  imageUrl: string | null;
56
56
  description: {
57
57
  text: string;
58
- slate?: any[] | undefined;
58
+ slate?: (import("../text/text.dto").SlateText | import("../text/text.dto").SlateTextElement | import("../text/text.dto").SlateTextLinkElement | import("../text/text.dto").SlateTextVariableElement)[] | undefined;
59
59
  };
60
60
  }, {
61
61
  title: string;
@@ -143,10 +143,10 @@ export declare const CardTraceDTO: z.ZodObject<{
143
143
  imageUrl: z.ZodNullable<z.ZodString>;
144
144
  description: z.ZodObject<{
145
145
  text: z.ZodString;
146
- slate: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
146
+ slate: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodAny, import("../text/text.dto").SlateText | import("../text/text.dto").SlateTextElement | import("../text/text.dto").SlateTextLinkElement | import("../text/text.dto").SlateTextVariableElement, any>, "many">>;
147
147
  }, "strip", z.ZodTypeAny, {
148
148
  text: string;
149
- slate?: any[] | undefined;
149
+ slate?: (import("../text/text.dto").SlateText | import("../text/text.dto").SlateTextElement | import("../text/text.dto").SlateTextLinkElement | import("../text/text.dto").SlateTextVariableElement)[] | undefined;
150
150
  }, {
151
151
  text: string;
152
152
  slate?: any[] | undefined;
@@ -164,7 +164,7 @@ export declare const CardTraceDTO: z.ZodObject<{
164
164
  imageUrl: string | null;
165
165
  description: {
166
166
  text: string;
167
- slate?: any[] | undefined;
167
+ slate?: (import("../text/text.dto").SlateText | import("../text/text.dto").SlateTextElement | import("../text/text.dto").SlateTextLinkElement | import("../text/text.dto").SlateTextVariableElement)[] | undefined;
168
168
  };
169
169
  }, {
170
170
  title: string;
@@ -197,7 +197,7 @@ export declare const CardTraceDTO: z.ZodObject<{
197
197
  imageUrl: string | null;
198
198
  description: {
199
199
  text: string;
200
- slate?: any[] | undefined;
200
+ slate?: (import("../text/text.dto").SlateText | import("../text/text.dto").SlateTextElement | import("../text/text.dto").SlateTextLinkElement | import("../text/text.dto").SlateTextVariableElement)[] | undefined;
201
201
  };
202
202
  };
203
203
  paths?: {
@@ -34,10 +34,10 @@ export declare const TraceCarouselCardDTO: z.ZodObject<{
34
34
  imageUrl: z.ZodNullable<z.ZodString>;
35
35
  description: z.ZodObject<{
36
36
  text: z.ZodString;
37
- slate: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
37
+ slate: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodAny, import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement, any>, "many">>;
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  text: string;
40
- slate?: any[] | undefined;
40
+ slate?: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[] | undefined;
41
41
  }, {
42
42
  text: string;
43
43
  slate?: any[] | undefined;
@@ -56,7 +56,7 @@ export declare const TraceCarouselCardDTO: z.ZodObject<{
56
56
  imageUrl: string | null;
57
57
  description: {
58
58
  text: string;
59
- slate?: any[] | undefined;
59
+ slate?: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[] | undefined;
60
60
  };
61
61
  id?: string | undefined;
62
62
  }, {
@@ -147,10 +147,10 @@ export declare const CarouselTraceDTO: z.ZodObject<{
147
147
  imageUrl: z.ZodNullable<z.ZodString>;
148
148
  description: z.ZodObject<{
149
149
  text: z.ZodString;
150
- slate: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
150
+ slate: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodAny, import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement, any>, "many">>;
151
151
  }, "strip", z.ZodTypeAny, {
152
152
  text: string;
153
- slate?: any[] | undefined;
153
+ slate?: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[] | undefined;
154
154
  }, {
155
155
  text: string;
156
156
  slate?: any[] | undefined;
@@ -169,7 +169,7 @@ export declare const CarouselTraceDTO: z.ZodObject<{
169
169
  imageUrl: string | null;
170
170
  description: {
171
171
  text: string;
172
- slate?: any[] | undefined;
172
+ slate?: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[] | undefined;
173
173
  };
174
174
  id?: string | undefined;
175
175
  }, {
@@ -207,7 +207,7 @@ export declare const CarouselTraceDTO: z.ZodObject<{
207
207
  imageUrl: string | null;
208
208
  description: {
209
209
  text: string;
210
- slate?: any[] | undefined;
210
+ slate?: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[] | undefined;
211
211
  };
212
212
  id?: string | undefined;
213
213
  }[];
@@ -248,7 +248,7 @@ export declare const CarouselTraceDTO: z.ZodObject<{
248
248
  imageUrl: string | null;
249
249
  description: {
250
250
  text: string;
251
- slate?: any[] | undefined;
251
+ slate?: (import("../main").SlateText | import("../main").SlateTextElement | import("../main").SlateTextLinkElement | import("../main").SlateTextVariableElement)[] | undefined;
252
252
  };
253
253
  id?: string | undefined;
254
254
  }[];
@@ -38,9 +38,9 @@ export declare const TextTraceDTO: z.ZodObject<{
38
38
  ai: z.ZodOptional<z.ZodBoolean>;
39
39
  slate: z.ZodObject<{
40
40
  id: z.ZodString;
41
- content: z.ZodArray<z.ZodAny, "many">;
41
+ content: z.ZodArray<z.ZodEffects<z.ZodAny, import("../text/text.dto").SlateText | import("../text/text.dto").SlateTextElement | import("../text/text.dto").SlateTextLinkElement | import("../text/text.dto").SlateTextVariableElement, any>, "many">;
42
42
  }, "strip", z.ZodTypeAny, {
43
- content: any[];
43
+ content: (import("../text/text.dto").SlateText | import("../text/text.dto").SlateTextElement | import("../text/text.dto").SlateTextLinkElement | import("../text/text.dto").SlateTextVariableElement)[];
44
44
  id: string;
45
45
  }, {
46
46
  content: any[];
@@ -58,7 +58,7 @@ export declare const TextTraceDTO: z.ZodObject<{
58
58
  }, "strip", z.ZodTypeAny, {
59
59
  message: string;
60
60
  slate: {
61
- content: any[];
61
+ content: (import("../text/text.dto").SlateText | import("../text/text.dto").SlateTextElement | import("../text/text.dto").SlateTextLinkElement | import("../text/text.dto").SlateTextVariableElement)[];
62
62
  id: string;
63
63
  };
64
64
  ai?: boolean | undefined;
@@ -85,7 +85,7 @@ export declare const TextTraceDTO: z.ZodObject<{
85
85
  payload: {
86
86
  message: string;
87
87
  slate: {
88
- content: any[];
88
+ content: (import("../text/text.dto").SlateText | import("../text/text.dto").SlateTextElement | import("../text/text.dto").SlateTextLinkElement | import("../text/text.dto").SlateTextVariableElement)[];
89
89
  id: string;
90
90
  };
91
91
  ai?: boolean | undefined;
@@ -535,10 +535,10 @@ export declare const WidgetSettingsCommonSettingsDTO: z.ZodObject<{
535
535
  SESSION_STORAGE: string;
536
536
  }>;
537
537
  }, "strip", z.ZodTypeAny, {
538
+ fontFamily: string;
538
539
  sideSpacing: string;
539
540
  bottomSpacing: string;
540
541
  position: "right" | "left";
541
- fontFamily: string;
542
542
  primaryColor: {
543
543
  color: string;
544
544
  palette: {
@@ -567,10 +567,10 @@ export declare const WidgetSettingsCommonSettingsDTO: z.ZodObject<{
567
567
  };
568
568
  persistence: string;
569
569
  }, {
570
+ fontFamily: string;
570
571
  sideSpacing: string;
571
572
  bottomSpacing: string;
572
573
  position: "right" | "left";
573
- fontFamily: string;
574
574
  primaryColor: {
575
575
  color: string;
576
576
  palette: {
@@ -947,10 +947,10 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
947
947
  SESSION_STORAGE: string;
948
948
  }>;
949
949
  }, "strip", z.ZodTypeAny, {
950
+ fontFamily: string;
950
951
  sideSpacing: string;
951
952
  bottomSpacing: string;
952
953
  position: "right" | "left";
953
- fontFamily: string;
954
954
  primaryColor: {
955
955
  color: string;
956
956
  palette: {
@@ -979,10 +979,10 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
979
979
  };
980
980
  persistence: string;
981
981
  }, {
982
+ fontFamily: string;
982
983
  sideSpacing: string;
983
984
  bottomSpacing: string;
984
985
  position: "right" | "left";
985
- fontFamily: string;
986
986
  primaryColor: {
987
987
  color: string;
988
988
  palette: {
@@ -1084,10 +1084,10 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
1084
1084
  streamingDisabled?: boolean | undefined;
1085
1085
  };
1086
1086
  common: {
1087
+ fontFamily: string;
1087
1088
  sideSpacing: string;
1088
1089
  bottomSpacing: string;
1089
1090
  position: "right" | "left";
1090
- fontFamily: string;
1091
1091
  primaryColor: {
1092
1092
  color: string;
1093
1093
  palette: {
@@ -1171,10 +1171,10 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
1171
1171
  streamingDisabled?: boolean | undefined;
1172
1172
  };
1173
1173
  common: {
1174
+ fontFamily: string;
1174
1175
  sideSpacing: string;
1175
1176
  bottomSpacing: string;
1176
1177
  position: "right" | "left";
1177
- fontFamily: string;
1178
1178
  primaryColor: {
1179
1179
  color: string;
1180
1180
  palette: {
@@ -1,4 +1,57 @@
1
1
  import z from 'zod';
2
- export declare const SlateTextValueDTO: z.ZodArray<z.ZodAny, "many">;
2
+ export interface SlateTextColor {
3
+ r: number;
4
+ g: number;
5
+ b: number;
6
+ a: number;
7
+ }
8
+ export declare enum SlateTextProperty {
9
+ BACKGROUND_COLOR = "backgroundColor",
10
+ COLOR = "color",
11
+ ITALIC = "italic",
12
+ UNDERLINE = "underline",
13
+ FONT_WEIGHT = "fontWeight",
14
+ FONT_FAMILY = "fontFamily",
15
+ STRIKE_THROUGH = "strikeThrough"
16
+ }
17
+ export declare enum SlateTextElementType {
18
+ LINK = "link",
19
+ VARIABLE = "variable"
20
+ }
21
+ export declare enum SlateTextElementProperty {
22
+ TEXT_ALIGN = "textAlign"
23
+ }
24
+ export interface SlateText {
25
+ text: string;
26
+ [SlateTextProperty.BACKGROUND_COLOR]?: SlateTextColor;
27
+ [SlateTextProperty.COLOR]?: SlateTextColor;
28
+ [SlateTextProperty.ITALIC]?: boolean;
29
+ [SlateTextProperty.UNDERLINE]?: boolean;
30
+ [SlateTextProperty.FONT_WEIGHT]?: string;
31
+ [SlateTextProperty.FONT_FAMILY]?: string;
32
+ [SlateTextProperty.STRIKE_THROUGH]?: boolean;
33
+ }
34
+ export interface SlateTextElement {
35
+ type?: string;
36
+ children: Descendant[];
37
+ [SlateTextElementProperty.TEXT_ALIGN]?: string;
38
+ }
39
+ export interface SlateTextLinkElement extends SlateTextElement {
40
+ type: SlateTextElementType.LINK;
41
+ url?: string;
42
+ }
43
+ export interface SlateTextVariableElement extends SlateTextElement {
44
+ type: SlateTextElementType.VARIABLE;
45
+ id: string;
46
+ path?: string;
47
+ name: string;
48
+ isSlot?: boolean;
49
+ isSecret?: boolean;
50
+ }
51
+ export type AnySlateTextElement = SlateTextElement | SlateTextLinkElement | SlateTextVariableElement;
52
+ export type Descendant = AnySlateTextElement | SlateText;
53
+ export declare const isSlateTextVariableElement: (element: SlateTextElement) => element is SlateTextVariableElement;
54
+ export declare const isSlateTextLinkElement: (element: SlateTextElement) => element is SlateTextLinkElement;
55
+ export declare const SlateTextValueDTO: z.ZodArray<z.ZodEffects<z.ZodAny, SlateText | SlateTextElement | SlateTextLinkElement | SlateTextVariableElement, any>, "many">;
3
56
  export type SlateTextValue = z.infer<typeof SlateTextValueDTO>;
4
57
  //# sourceMappingURL=text.dto.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text.dto.d.ts","sourceRoot":"","sources":["../../../src/text/text.dto.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,iBAAiB,8BAAmB,CAAC;AAElD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
1
+ {"version":3,"file":"text.dto.d.ts","sourceRoot":"","sources":["../../../src/text/text.dto.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,WAAW,cAAc;IAC7B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,oBAAY,iBAAiB;IAC3B,gBAAgB,oBAAoB;IACpC,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,WAAW,eAAe;IAC1B,WAAW,eAAe;IAC1B,cAAc,kBAAkB;CACjC;AAED,oBAAY,oBAAoB;IAC9B,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,oBAAY,wBAAwB;IAClC,UAAU,cAAc;CACzB;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,EAAE,cAAc,CAAC;IACtD,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC;IAC3C,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC;IACrC,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,EAAE,OAAO,CAAC;IACxC,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC;IACzC,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC;IACzC,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC,EAAE,OAAO,CAAC;CAC9C;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,CAAC;CAChD;AAED,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;IAChE,IAAI,EAAE,oBAAoB,CAAC,QAAQ,CAAC;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,GAAG,oBAAoB,GAAG,wBAAwB,CAAC;AAErG,MAAM,MAAM,UAAU,GAAG,mBAAmB,GAAG,SAAS,CAAC;AAEzD,eAAO,MAAM,0BAA0B,YAAa,gBAAgB,KAAG,OAAO,IAAI,wBAEjF,CAAC;AAEF,eAAO,MAAM,sBAAsB,YAAa,gBAAgB,KAAG,OAAO,IAAI,oBAE7E,CAAC;AAGF,eAAO,MAAM,iBAAiB,iIAA2D,CAAC;AAE1F,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -1,4 +1,29 @@
1
1
  import z from 'zod';
2
+ export var SlateTextProperty;
3
+ (function (SlateTextProperty) {
4
+ SlateTextProperty["BACKGROUND_COLOR"] = "backgroundColor";
5
+ SlateTextProperty["COLOR"] = "color";
6
+ SlateTextProperty["ITALIC"] = "italic";
7
+ SlateTextProperty["UNDERLINE"] = "underline";
8
+ SlateTextProperty["FONT_WEIGHT"] = "fontWeight";
9
+ SlateTextProperty["FONT_FAMILY"] = "fontFamily";
10
+ SlateTextProperty["STRIKE_THROUGH"] = "strikeThrough";
11
+ })(SlateTextProperty || (SlateTextProperty = {}));
12
+ export var SlateTextElementType;
13
+ (function (SlateTextElementType) {
14
+ SlateTextElementType["LINK"] = "link";
15
+ SlateTextElementType["VARIABLE"] = "variable";
16
+ })(SlateTextElementType || (SlateTextElementType = {}));
17
+ export var SlateTextElementProperty;
18
+ (function (SlateTextElementProperty) {
19
+ SlateTextElementProperty["TEXT_ALIGN"] = "textAlign";
20
+ })(SlateTextElementProperty || (SlateTextElementProperty = {}));
21
+ export const isSlateTextVariableElement = (element) => {
22
+ return element.type === SlateTextElementType.VARIABLE;
23
+ };
24
+ export const isSlateTextLinkElement = (element) => {
25
+ return element.type === SlateTextElementType.LINK;
26
+ };
2
27
  // TODO: define and manage later
3
- export const SlateTextValueDTO = z.array(z.any());
28
+ export const SlateTextValueDTO = z.array(z.any().transform((value) => value));
4
29
  //# sourceMappingURL=text.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text.dto.js","sourceRoot":"","sources":["../../../src/text/text.dto.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,gCAAgC;AAChC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"text.dto.js","sourceRoot":"","sources":["../../../src/text/text.dto.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AASpB,MAAM,CAAN,IAAY,iBAQX;AARD,WAAY,iBAAiB;IAC3B,yDAAoC,CAAA;IACpC,oCAAe,CAAA;IACf,sCAAiB,CAAA;IACjB,4CAAuB,CAAA;IACvB,+CAA0B,CAAA;IAC1B,+CAA0B,CAAA;IAC1B,qDAAgC,CAAA;AAClC,CAAC,EARW,iBAAiB,KAAjB,iBAAiB,QAQ5B;AAED,MAAM,CAAN,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,6CAAqB,CAAA;AACvB,CAAC,EAHW,oBAAoB,KAApB,oBAAoB,QAG/B;AAED,MAAM,CAAN,IAAY,wBAEX;AAFD,WAAY,wBAAwB;IAClC,oDAAwB,CAAA;AAC1B,CAAC,EAFW,wBAAwB,KAAxB,wBAAwB,QAEnC;AAqCD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,OAAyB,EAAuC,EAAE;IAC3G,OAAO,OAAO,CAAC,IAAI,KAAK,oBAAoB,CAAC,QAAQ,CAAC;AACxD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,OAAyB,EAAmC,EAAE;IACnG,OAAO,OAAO,CAAC,IAAI,KAAK,oBAAoB,CAAC,IAAI,CAAC;AACpD,CAAC,CAAC;AAEF,gCAAgC;AAChC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,KAAiB,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC"}
@@ -454,10 +454,10 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
454
454
  imageUrl: z.ZodNullable<z.ZodString>;
455
455
  description: z.ZodObject<{
456
456
  text: z.ZodString;
457
- slate: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
457
+ slate: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodAny, import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement, any>, "many">>;
458
458
  }, "strip", z.ZodTypeAny, {
459
459
  text: string;
460
- slate?: any[] | undefined;
460
+ slate?: (import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement)[] | undefined;
461
461
  }, {
462
462
  text: string;
463
463
  slate?: any[] | undefined;
@@ -475,7 +475,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
475
475
  imageUrl: string | null;
476
476
  description: {
477
477
  text: string;
478
- slate?: any[] | undefined;
478
+ slate?: (import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement)[] | undefined;
479
479
  };
480
480
  }, {
481
481
  title: string;
@@ -508,7 +508,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
508
508
  imageUrl: string | null;
509
509
  description: {
510
510
  text: string;
511
- slate?: any[] | undefined;
511
+ slate?: (import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement)[] | undefined;
512
512
  };
513
513
  };
514
514
  paths?: {
@@ -619,10 +619,10 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
619
619
  imageUrl: z.ZodNullable<z.ZodString>;
620
620
  description: z.ZodObject<{
621
621
  text: z.ZodString;
622
- slate: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
622
+ slate: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodAny, import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement, any>, "many">>;
623
623
  }, "strip", z.ZodTypeAny, {
624
624
  text: string;
625
- slate?: any[] | undefined;
625
+ slate?: (import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement)[] | undefined;
626
626
  }, {
627
627
  text: string;
628
628
  slate?: any[] | undefined;
@@ -641,7 +641,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
641
641
  imageUrl: string | null;
642
642
  description: {
643
643
  text: string;
644
- slate?: any[] | undefined;
644
+ slate?: (import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement)[] | undefined;
645
645
  };
646
646
  id?: string | undefined;
647
647
  }, {
@@ -679,7 +679,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
679
679
  imageUrl: string | null;
680
680
  description: {
681
681
  text: string;
682
- slate?: any[] | undefined;
682
+ slate?: (import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement)[] | undefined;
683
683
  };
684
684
  id?: string | undefined;
685
685
  }[];
@@ -720,7 +720,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
720
720
  imageUrl: string | null;
721
721
  description: {
722
722
  text: string;
723
- slate?: any[] | undefined;
723
+ slate?: (import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement)[] | undefined;
724
724
  };
725
725
  id?: string | undefined;
726
726
  }[];
@@ -1981,9 +1981,9 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1981
1981
  ai: z.ZodOptional<z.ZodBoolean>;
1982
1982
  slate: z.ZodObject<{
1983
1983
  id: z.ZodString;
1984
- content: z.ZodArray<z.ZodAny, "many">;
1984
+ content: z.ZodArray<z.ZodEffects<z.ZodAny, import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement, any>, "many">;
1985
1985
  }, "strip", z.ZodTypeAny, {
1986
- content: any[];
1986
+ content: (import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement)[];
1987
1987
  id: string;
1988
1988
  }, {
1989
1989
  content: any[];
@@ -2001,7 +2001,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2001
2001
  }, "strip", z.ZodTypeAny, {
2002
2002
  message: string;
2003
2003
  slate: {
2004
- content: any[];
2004
+ content: (import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement)[];
2005
2005
  id: string;
2006
2006
  };
2007
2007
  ai?: boolean | undefined;
@@ -2028,7 +2028,7 @@ export declare const AnyTraceDTO: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2028
2028
  payload: {
2029
2029
  message: string;
2030
2030
  slate: {
2031
- content: any[];
2031
+ content: (import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement)[];
2032
2032
  id: string;
2033
2033
  };
2034
2034
  ai?: boolean | undefined;
@@ -34,10 +34,10 @@ export declare const CardTraceCardDTO: z.ZodObject<{
34
34
  imageUrl: z.ZodNullable<z.ZodString>;
35
35
  description: z.ZodObject<{
36
36
  text: z.ZodString;
37
- slate: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
37
+ slate: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodAny, import("../text/text.dto.js").SlateText | import("../text/text.dto.js").SlateTextElement | import("../text/text.dto.js").SlateTextLinkElement | import("../text/text.dto.js").SlateTextVariableElement, any>, "many">>;
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  text: string;
40
- slate?: any[] | undefined;
40
+ slate?: (import("../text/text.dto.js").SlateText | import("../text/text.dto.js").SlateTextElement | import("../text/text.dto.js").SlateTextLinkElement | import("../text/text.dto.js").SlateTextVariableElement)[] | undefined;
41
41
  }, {
42
42
  text: string;
43
43
  slate?: any[] | undefined;
@@ -55,7 +55,7 @@ export declare const CardTraceCardDTO: z.ZodObject<{
55
55
  imageUrl: string | null;
56
56
  description: {
57
57
  text: string;
58
- slate?: any[] | undefined;
58
+ slate?: (import("../text/text.dto.js").SlateText | import("../text/text.dto.js").SlateTextElement | import("../text/text.dto.js").SlateTextLinkElement | import("../text/text.dto.js").SlateTextVariableElement)[] | undefined;
59
59
  };
60
60
  }, {
61
61
  title: string;
@@ -143,10 +143,10 @@ export declare const CardTraceDTO: z.ZodObject<{
143
143
  imageUrl: z.ZodNullable<z.ZodString>;
144
144
  description: z.ZodObject<{
145
145
  text: z.ZodString;
146
- slate: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
146
+ slate: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodAny, import("../text/text.dto.js").SlateText | import("../text/text.dto.js").SlateTextElement | import("../text/text.dto.js").SlateTextLinkElement | import("../text/text.dto.js").SlateTextVariableElement, any>, "many">>;
147
147
  }, "strip", z.ZodTypeAny, {
148
148
  text: string;
149
- slate?: any[] | undefined;
149
+ slate?: (import("../text/text.dto.js").SlateText | import("../text/text.dto.js").SlateTextElement | import("../text/text.dto.js").SlateTextLinkElement | import("../text/text.dto.js").SlateTextVariableElement)[] | undefined;
150
150
  }, {
151
151
  text: string;
152
152
  slate?: any[] | undefined;
@@ -164,7 +164,7 @@ export declare const CardTraceDTO: z.ZodObject<{
164
164
  imageUrl: string | null;
165
165
  description: {
166
166
  text: string;
167
- slate?: any[] | undefined;
167
+ slate?: (import("../text/text.dto.js").SlateText | import("../text/text.dto.js").SlateTextElement | import("../text/text.dto.js").SlateTextLinkElement | import("../text/text.dto.js").SlateTextVariableElement)[] | undefined;
168
168
  };
169
169
  }, {
170
170
  title: string;
@@ -197,7 +197,7 @@ export declare const CardTraceDTO: z.ZodObject<{
197
197
  imageUrl: string | null;
198
198
  description: {
199
199
  text: string;
200
- slate?: any[] | undefined;
200
+ slate?: (import("../text/text.dto.js").SlateText | import("../text/text.dto.js").SlateTextElement | import("../text/text.dto.js").SlateTextLinkElement | import("../text/text.dto.js").SlateTextVariableElement)[] | undefined;
201
201
  };
202
202
  };
203
203
  paths?: {
@@ -34,10 +34,10 @@ export declare const TraceCarouselCardDTO: z.ZodObject<{
34
34
  imageUrl: z.ZodNullable<z.ZodString>;
35
35
  description: z.ZodObject<{
36
36
  text: z.ZodString;
37
- slate: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
37
+ slate: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodAny, import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement, any>, "many">>;
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  text: string;
40
- slate?: any[] | undefined;
40
+ slate?: (import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement)[] | undefined;
41
41
  }, {
42
42
  text: string;
43
43
  slate?: any[] | undefined;
@@ -56,7 +56,7 @@ export declare const TraceCarouselCardDTO: z.ZodObject<{
56
56
  imageUrl: string | null;
57
57
  description: {
58
58
  text: string;
59
- slate?: any[] | undefined;
59
+ slate?: (import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement)[] | undefined;
60
60
  };
61
61
  id?: string | undefined;
62
62
  }, {
@@ -147,10 +147,10 @@ export declare const CarouselTraceDTO: z.ZodObject<{
147
147
  imageUrl: z.ZodNullable<z.ZodString>;
148
148
  description: z.ZodObject<{
149
149
  text: z.ZodString;
150
- slate: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
150
+ slate: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodAny, import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement, any>, "many">>;
151
151
  }, "strip", z.ZodTypeAny, {
152
152
  text: string;
153
- slate?: any[] | undefined;
153
+ slate?: (import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement)[] | undefined;
154
154
  }, {
155
155
  text: string;
156
156
  slate?: any[] | undefined;
@@ -169,7 +169,7 @@ export declare const CarouselTraceDTO: z.ZodObject<{
169
169
  imageUrl: string | null;
170
170
  description: {
171
171
  text: string;
172
- slate?: any[] | undefined;
172
+ slate?: (import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement)[] | undefined;
173
173
  };
174
174
  id?: string | undefined;
175
175
  }, {
@@ -207,7 +207,7 @@ export declare const CarouselTraceDTO: z.ZodObject<{
207
207
  imageUrl: string | null;
208
208
  description: {
209
209
  text: string;
210
- slate?: any[] | undefined;
210
+ slate?: (import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement)[] | undefined;
211
211
  };
212
212
  id?: string | undefined;
213
213
  }[];
@@ -248,7 +248,7 @@ export declare const CarouselTraceDTO: z.ZodObject<{
248
248
  imageUrl: string | null;
249
249
  description: {
250
250
  text: string;
251
- slate?: any[] | undefined;
251
+ slate?: (import("../main.js").SlateText | import("../main.js").SlateTextElement | import("../main.js").SlateTextLinkElement | import("../main.js").SlateTextVariableElement)[] | undefined;
252
252
  };
253
253
  id?: string | undefined;
254
254
  }[];
@@ -38,9 +38,9 @@ export declare const TextTraceDTO: z.ZodObject<{
38
38
  ai: z.ZodOptional<z.ZodBoolean>;
39
39
  slate: z.ZodObject<{
40
40
  id: z.ZodString;
41
- content: z.ZodArray<z.ZodAny, "many">;
41
+ content: z.ZodArray<z.ZodEffects<z.ZodAny, import("../text/text.dto.js").SlateText | import("../text/text.dto.js").SlateTextElement | import("../text/text.dto.js").SlateTextLinkElement | import("../text/text.dto.js").SlateTextVariableElement, any>, "many">;
42
42
  }, "strip", z.ZodTypeAny, {
43
- content: any[];
43
+ content: (import("../text/text.dto.js").SlateText | import("../text/text.dto.js").SlateTextElement | import("../text/text.dto.js").SlateTextLinkElement | import("../text/text.dto.js").SlateTextVariableElement)[];
44
44
  id: string;
45
45
  }, {
46
46
  content: any[];
@@ -58,7 +58,7 @@ export declare const TextTraceDTO: z.ZodObject<{
58
58
  }, "strip", z.ZodTypeAny, {
59
59
  message: string;
60
60
  slate: {
61
- content: any[];
61
+ content: (import("../text/text.dto.js").SlateText | import("../text/text.dto.js").SlateTextElement | import("../text/text.dto.js").SlateTextLinkElement | import("../text/text.dto.js").SlateTextVariableElement)[];
62
62
  id: string;
63
63
  };
64
64
  ai?: boolean | undefined;
@@ -85,7 +85,7 @@ export declare const TextTraceDTO: z.ZodObject<{
85
85
  payload: {
86
86
  message: string;
87
87
  slate: {
88
- content: any[];
88
+ content: (import("../text/text.dto.js").SlateText | import("../text/text.dto.js").SlateTextElement | import("../text/text.dto.js").SlateTextLinkElement | import("../text/text.dto.js").SlateTextVariableElement)[];
89
89
  id: string;
90
90
  };
91
91
  ai?: boolean | undefined;
@@ -535,10 +535,10 @@ export declare const WidgetSettingsCommonSettingsDTO: z.ZodObject<{
535
535
  SESSION_STORAGE: string;
536
536
  }>;
537
537
  }, "strip", z.ZodTypeAny, {
538
+ fontFamily: string;
538
539
  sideSpacing: string;
539
540
  bottomSpacing: string;
540
541
  position: "right" | "left";
541
- fontFamily: string;
542
542
  primaryColor: {
543
543
  color: string;
544
544
  palette: {
@@ -567,10 +567,10 @@ export declare const WidgetSettingsCommonSettingsDTO: z.ZodObject<{
567
567
  };
568
568
  persistence: string;
569
569
  }, {
570
+ fontFamily: string;
570
571
  sideSpacing: string;
571
572
  bottomSpacing: string;
572
573
  position: "right" | "left";
573
- fontFamily: string;
574
574
  primaryColor: {
575
575
  color: string;
576
576
  palette: {
@@ -947,10 +947,10 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
947
947
  SESSION_STORAGE: string;
948
948
  }>;
949
949
  }, "strip", z.ZodTypeAny, {
950
+ fontFamily: string;
950
951
  sideSpacing: string;
951
952
  bottomSpacing: string;
952
953
  position: "right" | "left";
953
- fontFamily: string;
954
954
  primaryColor: {
955
955
  color: string;
956
956
  palette: {
@@ -979,10 +979,10 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
979
979
  };
980
980
  persistence: string;
981
981
  }, {
982
+ fontFamily: string;
982
983
  sideSpacing: string;
983
984
  bottomSpacing: string;
984
985
  position: "right" | "left";
985
- fontFamily: string;
986
986
  primaryColor: {
987
987
  color: string;
988
988
  palette: {
@@ -1084,10 +1084,10 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
1084
1084
  streamingDisabled?: boolean | undefined;
1085
1085
  };
1086
1086
  common: {
1087
+ fontFamily: string;
1087
1088
  sideSpacing: string;
1088
1089
  bottomSpacing: string;
1089
1090
  position: "right" | "left";
1090
- fontFamily: string;
1091
1091
  primaryColor: {
1092
1092
  color: string;
1093
1093
  palette: {
@@ -1171,10 +1171,10 @@ export declare const WidgetSettingsDTO: z.ZodObject<{
1171
1171
  streamingDisabled?: boolean | undefined;
1172
1172
  };
1173
1173
  common: {
1174
+ fontFamily: string;
1174
1175
  sideSpacing: string;
1175
1176
  bottomSpacing: string;
1176
1177
  position: "right" | "left";
1177
- fontFamily: string;
1178
1178
  primaryColor: {
1179
1179
  color: string;
1180
1180
  palette: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voiceflow/dtos-interact",
3
- "version": "1.17.0",
3
+ "version": "1.17.1",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./build/cjs/main.d.ts",
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "b1aea7916ded8235f8dac7ef4f3465b35192e65a"
46
+ "gitHead": "1608764a18e35813e08e7509fecbdbb2cbe650bc"
47
47
  }