@botpress/sdk 2.0.3 → 2.0.4

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.
Files changed (64) hide show
  1. package/package.json +2 -2
  2. package/.turbo/turbo-build.log +0 -12
  3. package/dist/bot/client/index.d.ts +0 -62
  4. package/dist/bot/client/types.d.ts +0 -141
  5. package/dist/bot/client/types.test.d.ts +0 -1
  6. package/dist/bot/definition.d.ts +0 -111
  7. package/dist/bot/implementation.d.ts +0 -39
  8. package/dist/bot/index.d.ts +0 -5
  9. package/dist/bot/merge-bots.d.ts +0 -2
  10. package/dist/bot/server/context.d.ts +0 -2
  11. package/dist/bot/server/index.d.ts +0 -5
  12. package/dist/bot/server/types.d.ts +0 -252
  13. package/dist/bot/server/types.test.d.ts +0 -1
  14. package/dist/bot/types/common.d.ts +0 -50
  15. package/dist/bot/types/common.test.d.ts +0 -1
  16. package/dist/bot/types/generic.d.ts +0 -31
  17. package/dist/bot/types/generic.test.d.ts +0 -1
  18. package/dist/bot/types/index.d.ts +0 -2
  19. package/dist/const.d.ts +0 -8
  20. package/dist/fixtures.d.ts +0 -108
  21. package/dist/index.d.ts +0 -15
  22. package/dist/index.js +0 -2
  23. package/dist/index.js.map +0 -7
  24. package/dist/integration/client/index.d.ts +0 -47
  25. package/dist/integration/client/types.d.ts +0 -177
  26. package/dist/integration/client/types.test.d.ts +0 -1
  27. package/dist/integration/definition/branded-schema.d.ts +0 -21
  28. package/dist/integration/definition/generic.d.ts +0 -9
  29. package/dist/integration/definition/index.d.ts +0 -76
  30. package/dist/integration/definition/types.d.ts +0 -106
  31. package/dist/integration/implementation.d.ts +0 -31
  32. package/dist/integration/index.d.ts +0 -5
  33. package/dist/integration/server/action-metadata.d.ts +0 -9
  34. package/dist/integration/server/context.d.ts +0 -3
  35. package/dist/integration/server/index.d.ts +0 -6
  36. package/dist/integration/server/logger.d.ts +0 -12
  37. package/dist/integration/server/types.d.ts +0 -102
  38. package/dist/integration/types/common.d.ts +0 -11
  39. package/dist/integration/types/generic.d.ts +0 -52
  40. package/dist/integration/types/generic.test.d.ts +0 -1
  41. package/dist/integration/types/index.d.ts +0 -2
  42. package/dist/interface/definition.d.ts +0 -70
  43. package/dist/interface/index.d.ts +0 -1
  44. package/dist/interface/types/generic.d.ts +0 -34
  45. package/dist/interface/types/generic.test.d.ts +0 -1
  46. package/dist/log.d.ts +0 -7
  47. package/dist/message.d.ts +0 -474
  48. package/dist/package.d.ts +0 -58
  49. package/dist/plugin/definition.d.ts +0 -50
  50. package/dist/plugin/implementation.d.ts +0 -39
  51. package/dist/plugin/index.d.ts +0 -3
  52. package/dist/plugin/server/types.d.ts +0 -1
  53. package/dist/plugin/server/types.test.d.ts +0 -1
  54. package/dist/plugin/types/generic.d.ts +0 -30
  55. package/dist/plugin/types/generic.test.d.ts +0 -1
  56. package/dist/retry.d.ts +0 -2
  57. package/dist/schema.d.ts +0 -18
  58. package/dist/serve.d.ts +0 -20
  59. package/dist/utils/array-utils.d.ts +0 -1
  60. package/dist/utils/index.d.ts +0 -3
  61. package/dist/utils/record-utils.d.ts +0 -3
  62. package/dist/utils/type-utils.d.ts +0 -33
  63. package/dist/utils/type-utils.test.d.ts +0 -1
  64. package/dist/zui.d.ts +0 -5
@@ -1,52 +0,0 @@
1
- import * as utils from '../../utils/type-utils';
2
- export type BaseMessage = {
3
- tags: Record<string, any>;
4
- };
5
- export type BaseConversation = {
6
- tags: Record<string, any>;
7
- };
8
- export type BaseChannel = {
9
- messages: Record<string, any>;
10
- message: BaseMessage;
11
- conversation: BaseConversation;
12
- };
13
- export type BaseUser = {
14
- tags: Record<string, any>;
15
- };
16
- export type BaseAction = {
17
- input: any;
18
- output: any;
19
- };
20
- export type BaseIntegration = {
21
- name: string;
22
- version: string;
23
- configuration: any;
24
- configurations: Record<string, any>;
25
- actions: Record<string, BaseAction>;
26
- channels: Record<string, BaseChannel>;
27
- events: Record<string, any>;
28
- states: Record<string, any>;
29
- user: BaseUser;
30
- entities: Record<string, any>;
31
- };
32
- export type InputBaseChannel = utils.DeepPartial<BaseChannel>;
33
- export type DefaultChannel<C extends InputBaseChannel> = {
34
- messages: utils.Default<C['messages'], BaseChannel['messages']>;
35
- message: utils.Default<C['message'], BaseChannel['message']>;
36
- conversation: utils.Default<C['conversation'], BaseChannel['conversation']>;
37
- };
38
- export type InputBaseIntegration = utils.DeepPartial<BaseIntegration>;
39
- export type DefaultIntegration<I extends InputBaseIntegration> = {
40
- name: utils.Default<I['name'], BaseIntegration['name']>;
41
- version: utils.Default<I['version'], BaseIntegration['version']>;
42
- configuration: utils.Default<I['configuration'], BaseIntegration['configuration']>;
43
- configurations: utils.Default<I['configurations'], BaseIntegration['configurations']>;
44
- actions: utils.Default<I['actions'], BaseIntegration['actions']>;
45
- events: utils.Default<I['events'], BaseIntegration['events']>;
46
- states: utils.Default<I['states'], BaseIntegration['states']>;
47
- user: utils.Default<I['user'], BaseIntegration['user']>;
48
- entities: utils.Default<I['entities'], BaseIntegration['entities']>;
49
- channels: undefined extends I['channels'] ? BaseIntegration['channels'] : {
50
- [K in keyof I['channels']]: DefaultChannel<utils.Cast<I['channels'][K], InputBaseChannel>>;
51
- };
52
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- export * from './generic';
2
- export * from './common';
@@ -1,70 +0,0 @@
1
- import { ActionDefinition, ChannelDefinition, EntityDefinition, EventDefinition } from '../integration/definition';
2
- import { ZuiObjectSchema, GenericZuiSchema, ZodRef } from '../zui';
3
- type BaseEvents = Record<string, ZuiObjectSchema>;
4
- type BaseActions = Record<string, ZuiObjectSchema>;
5
- type BaseMessages = Record<string, ZuiObjectSchema>;
6
- type BaseChannels = Record<string, BaseMessages>;
7
- type BaseEntities = Record<string, ZuiObjectSchema>;
8
- type EntityReferences<TEntities extends BaseEntities> = {
9
- [K in keyof TEntities]: ZodRef;
10
- };
11
- type GenericEventDefinition<TEntities extends BaseEntities, TEvent extends BaseEvents[string] = BaseEvents[string]> = {
12
- schema: GenericZuiSchema<EntityReferences<TEntities>, TEvent>;
13
- };
14
- type GenericChannelDefinition<TEntities extends BaseEntities, TChannel extends BaseChannels[string] = BaseChannels[string]> = {
15
- messages: {
16
- [K in keyof TChannel]: {
17
- schema: GenericZuiSchema<EntityReferences<TEntities>, TChannel[K]>;
18
- };
19
- };
20
- };
21
- type GenericActionDefinition<TEntities extends BaseEntities, TAction extends BaseActions[string] = BaseActions[string]> = {
22
- title?: string;
23
- description?: string;
24
- billable?: boolean;
25
- cacheable?: boolean;
26
- input: {
27
- schema: GenericZuiSchema<EntityReferences<TEntities>, TAction>;
28
- };
29
- output: {
30
- schema: GenericZuiSchema<EntityReferences<TEntities>, ZuiObjectSchema>;
31
- };
32
- };
33
- export type InterfaceDefinitionProps<TName extends string = string, TVersion extends string = string, TEntities extends BaseEntities = BaseEntities, TActions extends BaseActions = BaseActions, TEvents extends BaseEntities = BaseEntities, TChannels extends BaseChannels = BaseChannels> = {
34
- name: TName;
35
- version: TVersion;
36
- entities?: {
37
- [K in keyof TEntities]: EntityDefinition<TEntities[K]>;
38
- };
39
- events?: {
40
- [K in keyof TEvents]: GenericEventDefinition<TEntities, TEvents[K]>;
41
- };
42
- actions?: {
43
- [K in keyof TActions]: GenericActionDefinition<TEntities, TActions[K]>;
44
- };
45
- channels?: {
46
- [K in keyof TChannels]: GenericChannelDefinition<TEntities, TChannels[K]>;
47
- };
48
- templateName?: string;
49
- };
50
- export declare class InterfaceDefinition<TName extends string = string, TVersion extends string = string, TEntities extends BaseEntities = BaseEntities, TActions extends BaseActions = BaseActions, TEvents extends BaseEvents = BaseEvents, TChannels extends BaseChannels = BaseChannels> {
51
- readonly props: InterfaceDefinitionProps<TName, TVersion, TEntities, TActions, TEvents, TChannels>;
52
- readonly name: this['props']['name'];
53
- readonly version: this['props']['version'];
54
- readonly entities: {
55
- [K in keyof TEntities]: EntityDefinition<TEntities[K]>;
56
- };
57
- readonly events: {
58
- [K in keyof TEvents]: EventDefinition<TEvents[K]>;
59
- };
60
- readonly actions: {
61
- [K in keyof TActions]: ActionDefinition<TActions[K]>;
62
- };
63
- readonly channels: {
64
- [K in keyof TChannels]: ChannelDefinition<TChannels[K]>;
65
- };
66
- readonly templateName: this['props']['templateName'];
67
- constructor(props: InterfaceDefinitionProps<TName, TVersion, TEntities, TActions, TEvents, TChannels>);
68
- private _getEntityReference;
69
- }
70
- export {};
@@ -1 +0,0 @@
1
- export * from './definition';
@@ -1,34 +0,0 @@
1
- import * as utils from '../../utils/type-utils';
2
- export type BaseChannel = {
3
- messages: Record<string, any>;
4
- };
5
- export type BaseUser = {
6
- tags: Record<string, any>;
7
- };
8
- export type BaseAction = {
9
- input: any;
10
- output: any;
11
- };
12
- export type BaseInterface = {
13
- name: string;
14
- version: string;
15
- actions: Record<string, BaseAction>;
16
- channels: Record<string, BaseChannel>;
17
- events: Record<string, any>;
18
- entities: Record<string, any>;
19
- };
20
- export type InputBaseChannel = utils.DeepPartial<BaseChannel>;
21
- export type DefaultChannel<C extends InputBaseChannel> = {
22
- messages: utils.Default<C['messages'], BaseChannel['messages']>;
23
- };
24
- export type InputBaseInterface = utils.DeepPartial<BaseInterface>;
25
- export type DefaultInterface<I extends InputBaseInterface> = {
26
- name: utils.Default<I['name'], BaseInterface['name']>;
27
- version: utils.Default<I['version'], BaseInterface['version']>;
28
- actions: utils.Default<I['actions'], BaseInterface['actions']>;
29
- events: utils.Default<I['events'], BaseInterface['events']>;
30
- entities: utils.Default<I['entities'], BaseInterface['entities']>;
31
- channels: undefined extends I['channels'] ? BaseInterface['channels'] : {
32
- [K in keyof I['channels']]: DefaultChannel<utils.Cast<I['channels'][K], InputBaseChannel>>;
33
- };
34
- };
@@ -1 +0,0 @@
1
- export {};
package/dist/log.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export type Logger = {
2
- debug(message: string, metadata?: any): void;
3
- info(message: string, metadata?: any): void;
4
- warn(message: string, metadata?: any): void;
5
- error(message: string, metadata?: any): void;
6
- };
7
- export declare const log: Logger;
package/dist/message.d.ts DELETED
@@ -1,474 +0,0 @@
1
- /**
2
- * @deprecated use `text` instead
3
- */
4
- export declare const markdown: {
5
- schema: import("@bpinternal/zui").ZodObject<{
6
- markdown: import("@bpinternal/zui").ZodString;
7
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
8
- markdown: string;
9
- }, {
10
- markdown: string;
11
- }>;
12
- };
13
- export declare const defaults: {
14
- readonly text: {
15
- readonly schema: import("@bpinternal/zui").ZodObject<{
16
- text: import("@bpinternal/zui").ZodString;
17
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
18
- text: string;
19
- }, {
20
- text: string;
21
- }>;
22
- };
23
- readonly image: {
24
- readonly schema: import("@bpinternal/zui").ZodObject<{
25
- imageUrl: import("@bpinternal/zui").ZodString;
26
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
27
- imageUrl: string;
28
- }, {
29
- imageUrl: string;
30
- }>;
31
- };
32
- readonly audio: {
33
- readonly schema: import("@bpinternal/zui").ZodObject<{
34
- audioUrl: import("@bpinternal/zui").ZodString;
35
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
36
- audioUrl: string;
37
- }, {
38
- audioUrl: string;
39
- }>;
40
- };
41
- readonly video: {
42
- readonly schema: import("@bpinternal/zui").ZodObject<{
43
- videoUrl: import("@bpinternal/zui").ZodString;
44
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
45
- videoUrl: string;
46
- }, {
47
- videoUrl: string;
48
- }>;
49
- };
50
- readonly file: {
51
- readonly schema: import("@bpinternal/zui").ZodObject<{
52
- fileUrl: import("@bpinternal/zui").ZodString;
53
- title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
54
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
55
- fileUrl: string;
56
- title?: string | undefined;
57
- }, {
58
- fileUrl: string;
59
- title?: string | undefined;
60
- }>;
61
- };
62
- readonly location: {
63
- readonly schema: import("@bpinternal/zui").ZodObject<{
64
- latitude: import("@bpinternal/zui").ZodNumber;
65
- longitude: import("@bpinternal/zui").ZodNumber;
66
- address: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
67
- title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
68
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
69
- latitude: number;
70
- longitude: number;
71
- title?: string | undefined;
72
- address?: string | undefined;
73
- }, {
74
- latitude: number;
75
- longitude: number;
76
- title?: string | undefined;
77
- address?: string | undefined;
78
- }>;
79
- };
80
- readonly carousel: {
81
- readonly schema: import("@bpinternal/zui").ZodObject<{
82
- items: import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
83
- title: import("@bpinternal/zui").ZodString;
84
- subtitle: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
85
- imageUrl: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
86
- actions: import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
87
- action: import("@bpinternal/zui").ZodEnum<["postback", "url", "say"]>;
88
- label: import("@bpinternal/zui").ZodString;
89
- value: import("@bpinternal/zui").ZodString;
90
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
91
- value: string;
92
- action: "postback" | "url" | "say";
93
- label: string;
94
- }, {
95
- value: string;
96
- action: "postback" | "url" | "say";
97
- label: string;
98
- }>, "many">;
99
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
100
- actions: {
101
- value: string;
102
- action: "postback" | "url" | "say";
103
- label: string;
104
- }[];
105
- title: string;
106
- imageUrl?: string | undefined;
107
- subtitle?: string | undefined;
108
- }, {
109
- actions: {
110
- value: string;
111
- action: "postback" | "url" | "say";
112
- label: string;
113
- }[];
114
- title: string;
115
- imageUrl?: string | undefined;
116
- subtitle?: string | undefined;
117
- }>, "many">;
118
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
119
- items: {
120
- actions: {
121
- value: string;
122
- action: "postback" | "url" | "say";
123
- label: string;
124
- }[];
125
- title: string;
126
- imageUrl?: string | undefined;
127
- subtitle?: string | undefined;
128
- }[];
129
- }, {
130
- items: {
131
- actions: {
132
- value: string;
133
- action: "postback" | "url" | "say";
134
- label: string;
135
- }[];
136
- title: string;
137
- imageUrl?: string | undefined;
138
- subtitle?: string | undefined;
139
- }[];
140
- }>;
141
- };
142
- readonly card: {
143
- readonly schema: import("@bpinternal/zui").ZodObject<{
144
- title: import("@bpinternal/zui").ZodString;
145
- subtitle: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
146
- imageUrl: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
147
- actions: import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
148
- action: import("@bpinternal/zui").ZodEnum<["postback", "url", "say"]>;
149
- label: import("@bpinternal/zui").ZodString;
150
- value: import("@bpinternal/zui").ZodString;
151
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
152
- value: string;
153
- action: "postback" | "url" | "say";
154
- label: string;
155
- }, {
156
- value: string;
157
- action: "postback" | "url" | "say";
158
- label: string;
159
- }>, "many">;
160
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
161
- actions: {
162
- value: string;
163
- action: "postback" | "url" | "say";
164
- label: string;
165
- }[];
166
- title: string;
167
- imageUrl?: string | undefined;
168
- subtitle?: string | undefined;
169
- }, {
170
- actions: {
171
- value: string;
172
- action: "postback" | "url" | "say";
173
- label: string;
174
- }[];
175
- title: string;
176
- imageUrl?: string | undefined;
177
- subtitle?: string | undefined;
178
- }>;
179
- };
180
- readonly dropdown: {
181
- readonly schema: import("@bpinternal/zui").ZodObject<{
182
- text: import("@bpinternal/zui").ZodString;
183
- options: import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
184
- label: import("@bpinternal/zui").ZodString;
185
- value: import("@bpinternal/zui").ZodString;
186
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
187
- value: string;
188
- label: string;
189
- }, {
190
- value: string;
191
- label: string;
192
- }>, "many">;
193
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
194
- options: {
195
- value: string;
196
- label: string;
197
- }[];
198
- text: string;
199
- }, {
200
- options: {
201
- value: string;
202
- label: string;
203
- }[];
204
- text: string;
205
- }>;
206
- };
207
- readonly choice: {
208
- readonly schema: import("@bpinternal/zui").ZodObject<{
209
- text: import("@bpinternal/zui").ZodString;
210
- options: import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
211
- label: import("@bpinternal/zui").ZodString;
212
- value: import("@bpinternal/zui").ZodString;
213
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
214
- value: string;
215
- label: string;
216
- }, {
217
- value: string;
218
- label: string;
219
- }>, "many">;
220
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
221
- options: {
222
- value: string;
223
- label: string;
224
- }[];
225
- text: string;
226
- }, {
227
- options: {
228
- value: string;
229
- label: string;
230
- }[];
231
- text: string;
232
- }>;
233
- };
234
- readonly bloc: {
235
- readonly schema: import("@bpinternal/zui").ZodObject<{
236
- items: import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodUnion<[import("@bpinternal/zui").ZodObject<{
237
- type: import("@bpinternal/zui").ZodLiteral<"text">;
238
- payload: import("@bpinternal/zui").ZodObject<{
239
- text: import("@bpinternal/zui").ZodString;
240
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
241
- text: string;
242
- }, {
243
- text: string;
244
- }>;
245
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
246
- type: "text";
247
- payload: {
248
- text: string;
249
- };
250
- }, {
251
- type: "text";
252
- payload: {
253
- text: string;
254
- };
255
- }>, import("@bpinternal/zui").ZodObject<{
256
- type: import("@bpinternal/zui").ZodLiteral<"markdown">;
257
- payload: import("@bpinternal/zui").ZodObject<{
258
- markdown: import("@bpinternal/zui").ZodString;
259
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
260
- markdown: string;
261
- }, {
262
- markdown: string;
263
- }>;
264
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
265
- type: "markdown";
266
- payload: {
267
- markdown: string;
268
- };
269
- }, {
270
- type: "markdown";
271
- payload: {
272
- markdown: string;
273
- };
274
- }>, import("@bpinternal/zui").ZodObject<{
275
- type: import("@bpinternal/zui").ZodLiteral<"image">;
276
- payload: import("@bpinternal/zui").ZodObject<{
277
- imageUrl: import("@bpinternal/zui").ZodString;
278
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
279
- imageUrl: string;
280
- }, {
281
- imageUrl: string;
282
- }>;
283
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
284
- type: "image";
285
- payload: {
286
- imageUrl: string;
287
- };
288
- }, {
289
- type: "image";
290
- payload: {
291
- imageUrl: string;
292
- };
293
- }>, import("@bpinternal/zui").ZodObject<{
294
- type: import("@bpinternal/zui").ZodLiteral<"audio">;
295
- payload: import("@bpinternal/zui").ZodObject<{
296
- audioUrl: import("@bpinternal/zui").ZodString;
297
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
298
- audioUrl: string;
299
- }, {
300
- audioUrl: string;
301
- }>;
302
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
303
- type: "audio";
304
- payload: {
305
- audioUrl: string;
306
- };
307
- }, {
308
- type: "audio";
309
- payload: {
310
- audioUrl: string;
311
- };
312
- }>, import("@bpinternal/zui").ZodObject<{
313
- type: import("@bpinternal/zui").ZodLiteral<"video">;
314
- payload: import("@bpinternal/zui").ZodObject<{
315
- videoUrl: import("@bpinternal/zui").ZodString;
316
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
317
- videoUrl: string;
318
- }, {
319
- videoUrl: string;
320
- }>;
321
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
322
- type: "video";
323
- payload: {
324
- videoUrl: string;
325
- };
326
- }, {
327
- type: "video";
328
- payload: {
329
- videoUrl: string;
330
- };
331
- }>, import("@bpinternal/zui").ZodObject<{
332
- type: import("@bpinternal/zui").ZodLiteral<"file">;
333
- payload: import("@bpinternal/zui").ZodObject<{
334
- fileUrl: import("@bpinternal/zui").ZodString;
335
- title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
336
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
337
- fileUrl: string;
338
- title?: string | undefined;
339
- }, {
340
- fileUrl: string;
341
- title?: string | undefined;
342
- }>;
343
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
344
- type: "file";
345
- payload: {
346
- fileUrl: string;
347
- title?: string | undefined;
348
- };
349
- }, {
350
- type: "file";
351
- payload: {
352
- fileUrl: string;
353
- title?: string | undefined;
354
- };
355
- }>, import("@bpinternal/zui").ZodObject<{
356
- type: import("@bpinternal/zui").ZodLiteral<"location">;
357
- payload: import("@bpinternal/zui").ZodObject<{
358
- latitude: import("@bpinternal/zui").ZodNumber;
359
- longitude: import("@bpinternal/zui").ZodNumber;
360
- address: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
361
- title: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
362
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
363
- latitude: number;
364
- longitude: number;
365
- title?: string | undefined;
366
- address?: string | undefined;
367
- }, {
368
- latitude: number;
369
- longitude: number;
370
- title?: string | undefined;
371
- address?: string | undefined;
372
- }>;
373
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
374
- type: "location";
375
- payload: {
376
- latitude: number;
377
- longitude: number;
378
- title?: string | undefined;
379
- address?: string | undefined;
380
- };
381
- }, {
382
- type: "location";
383
- payload: {
384
- latitude: number;
385
- longitude: number;
386
- title?: string | undefined;
387
- address?: string | undefined;
388
- };
389
- }>]>, "many">;
390
- }, "strip", import("@bpinternal/zui").ZodTypeAny, {
391
- items: ({
392
- type: "text";
393
- payload: {
394
- text: string;
395
- };
396
- } | {
397
- type: "markdown";
398
- payload: {
399
- markdown: string;
400
- };
401
- } | {
402
- type: "image";
403
- payload: {
404
- imageUrl: string;
405
- };
406
- } | {
407
- type: "audio";
408
- payload: {
409
- audioUrl: string;
410
- };
411
- } | {
412
- type: "video";
413
- payload: {
414
- videoUrl: string;
415
- };
416
- } | {
417
- type: "file";
418
- payload: {
419
- fileUrl: string;
420
- title?: string | undefined;
421
- };
422
- } | {
423
- type: "location";
424
- payload: {
425
- latitude: number;
426
- longitude: number;
427
- title?: string | undefined;
428
- address?: string | undefined;
429
- };
430
- })[];
431
- }, {
432
- items: ({
433
- type: "text";
434
- payload: {
435
- text: string;
436
- };
437
- } | {
438
- type: "markdown";
439
- payload: {
440
- markdown: string;
441
- };
442
- } | {
443
- type: "image";
444
- payload: {
445
- imageUrl: string;
446
- };
447
- } | {
448
- type: "audio";
449
- payload: {
450
- audioUrl: string;
451
- };
452
- } | {
453
- type: "video";
454
- payload: {
455
- videoUrl: string;
456
- };
457
- } | {
458
- type: "file";
459
- payload: {
460
- fileUrl: string;
461
- title?: string | undefined;
462
- };
463
- } | {
464
- type: "location";
465
- payload: {
466
- latitude: number;
467
- longitude: number;
468
- title?: string | undefined;
469
- address?: string | undefined;
470
- };
471
- })[];
472
- }>;
473
- };
474
- };