@botonic/plugin-ai-agents 0.41.2-alpha.0 → 0.42.0-alpha.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.
@@ -4,7 +4,6 @@ export type { CarouselMessage };
4
4
  export declare const CarouselSchema: z.ZodObject<{
5
5
  type: z.ZodEnum<["carousel"]>;
6
6
  content: z.ZodObject<{
7
- text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
7
  elements: z.ZodArray<z.ZodObject<{
9
8
  title: z.ZodString;
10
9
  subtitle: z.ZodString;
@@ -46,7 +45,6 @@ export declare const CarouselSchema: z.ZodObject<{
46
45
  url?: string | null | undefined;
47
46
  };
48
47
  }[];
49
- text?: string | null | undefined;
50
48
  }, {
51
49
  elements: {
52
50
  title: string;
@@ -57,7 +55,6 @@ export declare const CarouselSchema: z.ZodObject<{
57
55
  url?: string | null | undefined;
58
56
  };
59
57
  }[];
60
- text?: string | null | undefined;
61
58
  }>;
62
59
  }, "strip", z.ZodTypeAny, {
63
60
  type: "carousel";
@@ -71,7 +68,6 @@ export declare const CarouselSchema: z.ZodObject<{
71
68
  url?: string | null | undefined;
72
69
  };
73
70
  }[];
74
- text?: string | null | undefined;
75
71
  };
76
72
  }, {
77
73
  type: "carousel";
@@ -85,6 +81,5 @@ export declare const CarouselSchema: z.ZodObject<{
85
81
  url?: string | null | undefined;
86
82
  };
87
83
  }[];
88
- text?: string | null | undefined;
89
84
  };
90
85
  }>;
@@ -6,7 +6,6 @@ exports.CarouselSchema = zod_1.z
6
6
  .object({
7
7
  type: zod_1.z.enum(['carousel']),
8
8
  content: zod_1.z.object({
9
- text: zod_1.z.string().nullable().optional(),
10
9
  elements: zod_1.z.array(zod_1.z.object({
11
10
  title: zod_1.z.string(),
12
11
  subtitle: zod_1.z.string(),
@@ -1 +1 @@
1
- {"version":3,"file":"carousel.js","sourceRoot":"","sources":["../../../src/structured-output/carousel.ts"],"names":[],"mappings":";;;AACA,6BAAuB;AA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C,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;aACtC,CAAC;SACH,CAAC,CACH;KACF,CAAC;CACH,CAAC;KACD,QAAQ,CAAC,kDAAkD,CAAC,CAAA"}
@@ -64,7 +64,6 @@ export declare const OutputSchema: z.ZodObject<{
64
64
  }>, z.ZodObject<{
65
65
  type: z.ZodEnum<["carousel"]>;
66
66
  content: z.ZodObject<{
67
- text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
67
  elements: z.ZodArray<z.ZodObject<{
69
68
  title: z.ZodString;
70
69
  subtitle: z.ZodString;
@@ -106,7 +105,6 @@ export declare const OutputSchema: z.ZodObject<{
106
105
  url?: string | null | undefined;
107
106
  };
108
107
  }[];
109
- text?: string | null | undefined;
110
108
  }, {
111
109
  elements: {
112
110
  title: string;
@@ -117,7 +115,6 @@ export declare const OutputSchema: z.ZodObject<{
117
115
  url?: string | null | undefined;
118
116
  };
119
117
  }[];
120
- text?: string | null | undefined;
121
118
  }>;
122
119
  }, "strip", z.ZodTypeAny, {
123
120
  type: "carousel";
@@ -131,7 +128,6 @@ export declare const OutputSchema: z.ZodObject<{
131
128
  url?: string | null | undefined;
132
129
  };
133
130
  }[];
134
- text?: string | null | undefined;
135
131
  };
136
132
  }, {
137
133
  type: "carousel";
@@ -145,7 +141,6 @@ export declare const OutputSchema: z.ZodObject<{
145
141
  url?: string | null | undefined;
146
142
  };
147
143
  }[];
148
- text?: string | null | undefined;
149
144
  };
150
145
  }>, z.ZodObject<{
151
146
  type: z.ZodEnum<["exit"]>;
@@ -167,7 +162,6 @@ export declare const OutputSchema: z.ZodObject<{
167
162
  url?: string | null | undefined;
168
163
  };
169
164
  }[];
170
- text?: string | null | undefined;
171
165
  };
172
166
  } | {
173
167
  type: "exit";
@@ -198,7 +192,6 @@ export declare const OutputSchema: z.ZodObject<{
198
192
  url?: string | null | undefined;
199
193
  };
200
194
  }[];
201
- text?: string | null | undefined;
202
195
  };
203
196
  } | {
204
197
  type: "exit";
@@ -4,7 +4,6 @@ export type { CarouselMessage };
4
4
  export declare const CarouselSchema: z.ZodObject<{
5
5
  type: z.ZodEnum<["carousel"]>;
6
6
  content: z.ZodObject<{
7
- text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
7
  elements: z.ZodArray<z.ZodObject<{
9
8
  title: z.ZodString;
10
9
  subtitle: z.ZodString;
@@ -46,7 +45,6 @@ export declare const CarouselSchema: z.ZodObject<{
46
45
  url?: string | null | undefined;
47
46
  };
48
47
  }[];
49
- text?: string | null | undefined;
50
48
  }, {
51
49
  elements: {
52
50
  title: string;
@@ -57,7 +55,6 @@ export declare const CarouselSchema: z.ZodObject<{
57
55
  url?: string | null | undefined;
58
56
  };
59
57
  }[];
60
- text?: string | null | undefined;
61
58
  }>;
62
59
  }, "strip", z.ZodTypeAny, {
63
60
  type: "carousel";
@@ -71,7 +68,6 @@ export declare const CarouselSchema: z.ZodObject<{
71
68
  url?: string | null | undefined;
72
69
  };
73
70
  }[];
74
- text?: string | null | undefined;
75
71
  };
76
72
  }, {
77
73
  type: "carousel";
@@ -85,6 +81,5 @@ export declare const CarouselSchema: z.ZodObject<{
85
81
  url?: string | null | undefined;
86
82
  };
87
83
  }[];
88
- text?: string | null | undefined;
89
84
  };
90
85
  }>;
@@ -3,7 +3,6 @@ export const CarouselSchema = z
3
3
  .object({
4
4
  type: z.enum(['carousel']),
5
5
  content: z.object({
6
- text: z.string().nullable().optional(),
7
6
  elements: z.array(z.object({
8
7
  title: z.string(),
9
8
  subtitle: z.string(),
@@ -1 +1 @@
1
- {"version":3,"file":"carousel.js","sourceRoot":"","sources":["../../../src/structured-output/carousel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC;IAC1B,OAAO,EA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ACH;KACF,CAAC;CACH,CAAC;KACD,QAAQ,CAAC,kDAAkD,CAAC,CAAA"}
@@ -64,7 +64,6 @@ export declare const OutputSchema: z.ZodObject<{
64
64
  }>, z.ZodObject<{
65
65
  type: z.ZodEnum<["carousel"]>;
66
66
  content: z.ZodObject<{
67
- text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
67
  elements: z.ZodArray<z.ZodObject<{
69
68
  title: z.ZodString;
70
69
  subtitle: z.ZodString;
@@ -106,7 +105,6 @@ export declare const OutputSchema: z.ZodObject<{
106
105
  url?: string | null | undefined;
107
106
  };
108
107
  }[];
109
- text?: string | null | undefined;
110
108
  }, {
111
109
  elements: {
112
110
  title: string;
@@ -117,7 +115,6 @@ export declare const OutputSchema: z.ZodObject<{
117
115
  url?: string | null | undefined;
118
116
  };
119
117
  }[];
120
- text?: string | null | undefined;
121
118
  }>;
122
119
  }, "strip", z.ZodTypeAny, {
123
120
  type: "carousel";
@@ -131,7 +128,6 @@ export declare const OutputSchema: z.ZodObject<{
131
128
  url?: string | null | undefined;
132
129
  };
133
130
  }[];
134
- text?: string | null | undefined;
135
131
  };
136
132
  }, {
137
133
  type: "carousel";
@@ -145,7 +141,6 @@ export declare const OutputSchema: z.ZodObject<{
145
141
  url?: string | null | undefined;
146
142
  };
147
143
  }[];
148
- text?: string | null | undefined;
149
144
  };
150
145
  }>, z.ZodObject<{
151
146
  type: z.ZodEnum<["exit"]>;
@@ -167,7 +162,6 @@ export declare const OutputSchema: z.ZodObject<{
167
162
  url?: string | null | undefined;
168
163
  };
169
164
  }[];
170
- text?: string | null | undefined;
171
165
  };
172
166
  } | {
173
167
  type: "exit";
@@ -198,7 +192,6 @@ export declare const OutputSchema: z.ZodObject<{
198
192
  url?: string | null | undefined;
199
193
  };
200
194
  }[];
201
- text?: string | null | undefined;
202
195
  };
203
196
  } | {
204
197
  type: "exit";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botonic/plugin-ai-agents",
3
- "version": "0.41.2-alpha.0",
3
+ "version": "0.42.0-alpha.0",
4
4
  "main": "./lib/cjs/index.js",
5
5
  "module": "./lib/esm/index.js",
6
6
  "description": "Use AI Agents to generate your contents",
@@ -13,7 +13,7 @@
13
13
  "lint_core": "../../node_modules/.bin/eslint_d --cache --quiet 'src/**/*.ts*'"
14
14
  },
15
15
  "dependencies": {
16
- "@botonic/core": "0.41.1-alpha.0",
16
+ "@botonic/core": "0.42.0-alpha.0",
17
17
  "@openai/agents": "^0.1.11",
18
18
  "axios": "^1.12.2",
19
19
  "openai": "^5.23.2",
@@ -45,4 +45,4 @@
45
45
  "javascript"
46
46
  ],
47
47
  "author": ""
48
- }
48
+ }
@@ -7,7 +7,6 @@ export const CarouselSchema = z
7
7
  .object({
8
8
  type: z.enum(['carousel']),
9
9
  content: z.object({
10
- text: z.string().nullable().optional(),
11
10
  elements: z.array(
12
11
  z.object({
13
12
  title: z.string(),