@botpress/sdk 0.11.8 → 1.0.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.
- package/.turbo/turbo-build.log +3 -3
- package/dist/bot/client/routes.d.ts +1 -1
- package/dist/bot/client/types.d.ts +1 -1
- package/dist/bot/definition.d.ts +77 -0
- package/dist/bot/implementation.d.ts +9 -68
- package/dist/bot/index.d.ts +1 -1
- package/dist/bot/server.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/dist/integration/client/routes.d.ts +1 -1
- package/dist/integration/client/types.d.ts +1 -1
- package/dist/integration/context.d.ts +1 -1
- package/dist/integration/definition/branded-schema.d.ts +3 -1
- package/dist/integration/definition/generic.d.ts +1 -1
- package/dist/integration/definition/integration-definition.d.ts +17 -11
- package/dist/integration/definition/interface-declaration.d.ts +18 -27
- package/dist/integration/definition/types.d.ts +22 -11
- package/dist/integration/server.d.ts +1 -1
- package/dist/package.d.ts +41 -0
- package/dist/schema.d.ts +2 -3
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/record-utils.d.ts +2 -0
- package/dist/{type-utils.d.ts → utils/type-utils.d.ts} +6 -16
- package/package.json +3 -4
- package/dist/bot/integration-instance.d.ts +0 -9
- package/dist/interfaces/hitl.d.ts +0 -67
- package/dist/interfaces/index.d.ts +0 -7
- package/dist/interfaces/llm.d.ts +0 -856
- package/dist/interfaces/schemas/index.d.ts +0 -1
- package/dist/interfaces/schemas/speech-to-text.d.ts +0 -68
- package/dist/interfaces/speech-to-text.d.ts +0 -168
- package/dist/interfaces/sync.d.ts +0 -125
- package/dist/interfaces/text-to-image.d.ts +0 -114
- package/dist/interfaces/typing-indicator.d.ts +0 -26
- package/dist/utils.d.ts +0 -5
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as speechToText from './speech-to-text';
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
export declare const OpenAITranscribeAudioOutputSchema: import("@bpinternal/zui").ZodObject<{
|
|
2
|
-
language: import("@bpinternal/zui").ZodString;
|
|
3
|
-
duration: import("@bpinternal/zui").ZodNumber;
|
|
4
|
-
segments: import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
|
|
5
|
-
text: import("@bpinternal/zui").ZodString;
|
|
6
|
-
id: import("@bpinternal/zui").ZodNumber;
|
|
7
|
-
seek: import("@bpinternal/zui").ZodNumber;
|
|
8
|
-
start: import("@bpinternal/zui").ZodNumber;
|
|
9
|
-
end: import("@bpinternal/zui").ZodNumber;
|
|
10
|
-
tokens: import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodNumber, "many">;
|
|
11
|
-
temperature: import("@bpinternal/zui").ZodNumber;
|
|
12
|
-
avg_logprob: import("@bpinternal/zui").ZodNumber;
|
|
13
|
-
compression_ratio: import("@bpinternal/zui").ZodNumber;
|
|
14
|
-
no_speech_prob: import("@bpinternal/zui").ZodNumber;
|
|
15
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
16
|
-
text: string;
|
|
17
|
-
id: number;
|
|
18
|
-
seek: number;
|
|
19
|
-
start: number;
|
|
20
|
-
end: number;
|
|
21
|
-
tokens: number[];
|
|
22
|
-
temperature: number;
|
|
23
|
-
avg_logprob: number;
|
|
24
|
-
compression_ratio: number;
|
|
25
|
-
no_speech_prob: number;
|
|
26
|
-
}, {
|
|
27
|
-
text: string;
|
|
28
|
-
id: number;
|
|
29
|
-
seek: number;
|
|
30
|
-
start: number;
|
|
31
|
-
end: number;
|
|
32
|
-
tokens: number[];
|
|
33
|
-
temperature: number;
|
|
34
|
-
avg_logprob: number;
|
|
35
|
-
compression_ratio: number;
|
|
36
|
-
no_speech_prob: number;
|
|
37
|
-
}>, "many">;
|
|
38
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
39
|
-
language: string;
|
|
40
|
-
duration: number;
|
|
41
|
-
segments: {
|
|
42
|
-
text: string;
|
|
43
|
-
id: number;
|
|
44
|
-
seek: number;
|
|
45
|
-
start: number;
|
|
46
|
-
end: number;
|
|
47
|
-
tokens: number[];
|
|
48
|
-
temperature: number;
|
|
49
|
-
avg_logprob: number;
|
|
50
|
-
compression_ratio: number;
|
|
51
|
-
no_speech_prob: number;
|
|
52
|
-
}[];
|
|
53
|
-
}, {
|
|
54
|
-
language: string;
|
|
55
|
-
duration: number;
|
|
56
|
-
segments: {
|
|
57
|
-
text: string;
|
|
58
|
-
id: number;
|
|
59
|
-
seek: number;
|
|
60
|
-
start: number;
|
|
61
|
-
end: number;
|
|
62
|
-
tokens: number[];
|
|
63
|
-
temperature: number;
|
|
64
|
-
avg_logprob: number;
|
|
65
|
-
compression_ratio: number;
|
|
66
|
-
no_speech_prob: number;
|
|
67
|
-
}[];
|
|
68
|
-
}>;
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { InterfaceDeclaration } from '../integration/definition';
|
|
2
|
-
import z from '../zui';
|
|
3
|
-
declare const SpeechToTextModelSchema: import("@bpinternal/zui").ZodObject<{
|
|
4
|
-
id: import("@bpinternal/zui").ZodString;
|
|
5
|
-
name: import("@bpinternal/zui").ZodString;
|
|
6
|
-
costPerMinute: import("@bpinternal/zui").ZodNumber;
|
|
7
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
costPerMinute: number;
|
|
11
|
-
}, {
|
|
12
|
-
id: string;
|
|
13
|
-
name: string;
|
|
14
|
-
costPerMinute: number;
|
|
15
|
-
}>;
|
|
16
|
-
declare const TranscribeAudioBaseSchema: import("@bpinternal/zui").ZodObject<{
|
|
17
|
-
model: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodObject<{
|
|
18
|
-
id: import("@bpinternal/zui").ZodString;
|
|
19
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
20
|
-
id: string;
|
|
21
|
-
}, {
|
|
22
|
-
id: string;
|
|
23
|
-
}>>;
|
|
24
|
-
fileUrl: import("@bpinternal/zui").ZodString;
|
|
25
|
-
language: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
|
|
26
|
-
prompt: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
|
|
27
|
-
temperature: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodNumber>>;
|
|
28
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
29
|
-
fileUrl: string;
|
|
30
|
-
language?: string | undefined;
|
|
31
|
-
temperature?: number | undefined;
|
|
32
|
-
model?: {
|
|
33
|
-
id: string;
|
|
34
|
-
} | undefined;
|
|
35
|
-
prompt?: string | undefined;
|
|
36
|
-
}, {
|
|
37
|
-
fileUrl: string;
|
|
38
|
-
language?: string | undefined;
|
|
39
|
-
temperature?: number | undefined;
|
|
40
|
-
model?: {
|
|
41
|
-
id: string;
|
|
42
|
-
} | undefined;
|
|
43
|
-
prompt?: string | undefined;
|
|
44
|
-
}>;
|
|
45
|
-
declare const TranscribeAudioOutputSchema: import("@bpinternal/zui").ZodObject<{
|
|
46
|
-
language: import("@bpinternal/zui").ZodString;
|
|
47
|
-
duration: import("@bpinternal/zui").ZodNumber;
|
|
48
|
-
segments: import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodObject<{
|
|
49
|
-
text: import("@bpinternal/zui").ZodString;
|
|
50
|
-
id: import("@bpinternal/zui").ZodNumber;
|
|
51
|
-
seek: import("@bpinternal/zui").ZodNumber;
|
|
52
|
-
start: import("@bpinternal/zui").ZodNumber;
|
|
53
|
-
end: import("@bpinternal/zui").ZodNumber;
|
|
54
|
-
tokens: import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodNumber, "many">;
|
|
55
|
-
temperature: import("@bpinternal/zui").ZodNumber;
|
|
56
|
-
avg_logprob: import("@bpinternal/zui").ZodNumber;
|
|
57
|
-
compression_ratio: import("@bpinternal/zui").ZodNumber;
|
|
58
|
-
no_speech_prob: import("@bpinternal/zui").ZodNumber;
|
|
59
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
60
|
-
text: string;
|
|
61
|
-
id: number;
|
|
62
|
-
seek: number;
|
|
63
|
-
start: number;
|
|
64
|
-
end: number;
|
|
65
|
-
tokens: number[];
|
|
66
|
-
temperature: number;
|
|
67
|
-
avg_logprob: number;
|
|
68
|
-
compression_ratio: number;
|
|
69
|
-
no_speech_prob: number;
|
|
70
|
-
}, {
|
|
71
|
-
text: string;
|
|
72
|
-
id: number;
|
|
73
|
-
seek: number;
|
|
74
|
-
start: number;
|
|
75
|
-
end: number;
|
|
76
|
-
tokens: number[];
|
|
77
|
-
temperature: number;
|
|
78
|
-
avg_logprob: number;
|
|
79
|
-
compression_ratio: number;
|
|
80
|
-
no_speech_prob: number;
|
|
81
|
-
}>, "many">;
|
|
82
|
-
model: import("@bpinternal/zui").ZodString;
|
|
83
|
-
cost: import("@bpinternal/zui").ZodNumber;
|
|
84
|
-
botpress: import("@bpinternal/zui").ZodObject<{
|
|
85
|
-
cost: import("@bpinternal/zui").ZodNumber;
|
|
86
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
87
|
-
cost: number;
|
|
88
|
-
}, {
|
|
89
|
-
cost: number;
|
|
90
|
-
}>;
|
|
91
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
92
|
-
language: string;
|
|
93
|
-
duration: number;
|
|
94
|
-
segments: {
|
|
95
|
-
text: string;
|
|
96
|
-
id: number;
|
|
97
|
-
seek: number;
|
|
98
|
-
start: number;
|
|
99
|
-
end: number;
|
|
100
|
-
tokens: number[];
|
|
101
|
-
temperature: number;
|
|
102
|
-
avg_logprob: number;
|
|
103
|
-
compression_ratio: number;
|
|
104
|
-
no_speech_prob: number;
|
|
105
|
-
}[];
|
|
106
|
-
model: string;
|
|
107
|
-
botpress: {
|
|
108
|
-
cost: number;
|
|
109
|
-
};
|
|
110
|
-
cost: number;
|
|
111
|
-
}, {
|
|
112
|
-
language: string;
|
|
113
|
-
duration: number;
|
|
114
|
-
segments: {
|
|
115
|
-
text: string;
|
|
116
|
-
id: number;
|
|
117
|
-
seek: number;
|
|
118
|
-
start: number;
|
|
119
|
-
end: number;
|
|
120
|
-
tokens: number[];
|
|
121
|
-
temperature: number;
|
|
122
|
-
avg_logprob: number;
|
|
123
|
-
compression_ratio: number;
|
|
124
|
-
no_speech_prob: number;
|
|
125
|
-
}[];
|
|
126
|
-
model: string;
|
|
127
|
-
botpress: {
|
|
128
|
-
cost: number;
|
|
129
|
-
};
|
|
130
|
-
cost: number;
|
|
131
|
-
}>;
|
|
132
|
-
export declare const speechToText: InterfaceDeclaration<{
|
|
133
|
-
speechToTextModelRef: import("@bpinternal/zui").ZodObject<{
|
|
134
|
-
id: import("@bpinternal/zui").ZodString;
|
|
135
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
136
|
-
id: string;
|
|
137
|
-
}, {
|
|
138
|
-
id: string;
|
|
139
|
-
}>;
|
|
140
|
-
}, {
|
|
141
|
-
transcribeAudio: import("@bpinternal/zui").ZodObject<{
|
|
142
|
-
model: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodRef>;
|
|
143
|
-
fileUrl: import("@bpinternal/zui").ZodString;
|
|
144
|
-
language: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
|
|
145
|
-
prompt: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
|
|
146
|
-
temperature: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodNumber>>;
|
|
147
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
148
|
-
fileUrl: string;
|
|
149
|
-
language?: string | undefined;
|
|
150
|
-
temperature?: number | undefined;
|
|
151
|
-
model?: {} | undefined;
|
|
152
|
-
prompt?: string | undefined;
|
|
153
|
-
}, {
|
|
154
|
-
fileUrl: string;
|
|
155
|
-
language?: string | undefined;
|
|
156
|
-
temperature?: number | undefined;
|
|
157
|
-
model?: {} | undefined;
|
|
158
|
-
prompt?: string | undefined;
|
|
159
|
-
}>;
|
|
160
|
-
listSpeechToTextModels: import("@bpinternal/zui").ZodObject<{}, "strip", import("@bpinternal/zui").ZodTypeAny, {}, {}>;
|
|
161
|
-
}, import("../integration/definition/generic").BaseEvents>;
|
|
162
|
-
export declare namespace speechToText {
|
|
163
|
-
type TranscribeAudioInputSchema = z.infer<typeof TranscribeAudioBaseSchema>;
|
|
164
|
-
type TranscribeAudioOutputSchema = z.infer<typeof TranscribeAudioOutputSchema>;
|
|
165
|
-
type SpeechToTextModel = z.infer<typeof SpeechToTextModelSchema>;
|
|
166
|
-
type SpeechToTextModelDetails = Omit<SpeechToTextModel, 'id'>;
|
|
167
|
-
}
|
|
168
|
-
export {};
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { InterfaceDeclaration } from '../integration/definition';
|
|
2
|
-
export declare const listable: InterfaceDeclaration<{
|
|
3
|
-
item: import("@bpinternal/zui").ZodObject<{
|
|
4
|
-
id: import("@bpinternal/zui").ZodString;
|
|
5
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
6
|
-
id: string;
|
|
7
|
-
}, {
|
|
8
|
-
id: string;
|
|
9
|
-
}>;
|
|
10
|
-
}, {
|
|
11
|
-
list: import("@bpinternal/zui").ZodObject<{
|
|
12
|
-
nextToken: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
|
|
13
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
14
|
-
nextToken?: string | undefined;
|
|
15
|
-
}, {
|
|
16
|
-
nextToken?: string | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
}, import("../integration/definition/generic").BaseEvents>;
|
|
19
|
-
export declare const creatable: InterfaceDeclaration<{
|
|
20
|
-
item: import("@bpinternal/zui").ZodObject<{
|
|
21
|
-
id: import("@bpinternal/zui").ZodString;
|
|
22
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
23
|
-
id: string;
|
|
24
|
-
}, {
|
|
25
|
-
id: string;
|
|
26
|
-
}>;
|
|
27
|
-
}, {
|
|
28
|
-
create: import("@bpinternal/zui").ZodObject<{
|
|
29
|
-
item: import("@bpinternal/zui").ZodRef;
|
|
30
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
31
|
-
item: {};
|
|
32
|
-
}, {
|
|
33
|
-
item: {};
|
|
34
|
-
}>;
|
|
35
|
-
}, {
|
|
36
|
-
created: import("@bpinternal/zui").ZodObject<{
|
|
37
|
-
item: import("@bpinternal/zui").ZodIntersection<import("@bpinternal/zui").ZodTypeAny, import("@bpinternal/zui").ZodObject<{
|
|
38
|
-
id: import("@bpinternal/zui").ZodString;
|
|
39
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
40
|
-
id: string;
|
|
41
|
-
}, {
|
|
42
|
-
id: string;
|
|
43
|
-
}>>;
|
|
44
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
45
|
-
item?: any;
|
|
46
|
-
}, {
|
|
47
|
-
item?: any;
|
|
48
|
-
}>;
|
|
49
|
-
}>;
|
|
50
|
-
export declare const readable: InterfaceDeclaration<{
|
|
51
|
-
item: import("@bpinternal/zui").ZodObject<{
|
|
52
|
-
id: import("@bpinternal/zui").ZodString;
|
|
53
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
54
|
-
id: string;
|
|
55
|
-
}, {
|
|
56
|
-
id: string;
|
|
57
|
-
}>;
|
|
58
|
-
}, {
|
|
59
|
-
read: import("@bpinternal/zui").ZodObject<{
|
|
60
|
-
id: import("@bpinternal/zui").ZodString;
|
|
61
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
62
|
-
id: string;
|
|
63
|
-
}, {
|
|
64
|
-
id: string;
|
|
65
|
-
}>;
|
|
66
|
-
}, import("../integration/definition/generic").BaseEvents>;
|
|
67
|
-
export declare const updatable: InterfaceDeclaration<{
|
|
68
|
-
item: import("@bpinternal/zui").ZodObject<{
|
|
69
|
-
id: import("@bpinternal/zui").ZodString;
|
|
70
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
71
|
-
id: string;
|
|
72
|
-
}, {
|
|
73
|
-
id: string;
|
|
74
|
-
}>;
|
|
75
|
-
}, {
|
|
76
|
-
update: import("@bpinternal/zui").ZodObject<{
|
|
77
|
-
id: import("@bpinternal/zui").ZodString;
|
|
78
|
-
item: import("@bpinternal/zui").ZodRef;
|
|
79
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
80
|
-
id: string;
|
|
81
|
-
item: {};
|
|
82
|
-
}, {
|
|
83
|
-
id: string;
|
|
84
|
-
item: {};
|
|
85
|
-
}>;
|
|
86
|
-
}, {
|
|
87
|
-
updated: import("@bpinternal/zui").ZodObject<{
|
|
88
|
-
item: import("@bpinternal/zui").ZodIntersection<import("@bpinternal/zui").ZodTypeAny, import("@bpinternal/zui").ZodObject<{
|
|
89
|
-
id: import("@bpinternal/zui").ZodString;
|
|
90
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
91
|
-
id: string;
|
|
92
|
-
}, {
|
|
93
|
-
id: string;
|
|
94
|
-
}>>;
|
|
95
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
96
|
-
item?: any;
|
|
97
|
-
}, {
|
|
98
|
-
item?: any;
|
|
99
|
-
}>;
|
|
100
|
-
}>;
|
|
101
|
-
export declare const deletable: InterfaceDeclaration<{
|
|
102
|
-
item: import("@bpinternal/zui").ZodObject<{
|
|
103
|
-
id: import("@bpinternal/zui").ZodString;
|
|
104
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
105
|
-
id: string;
|
|
106
|
-
}, {
|
|
107
|
-
id: string;
|
|
108
|
-
}>;
|
|
109
|
-
}, {
|
|
110
|
-
delete: import("@bpinternal/zui").ZodObject<{
|
|
111
|
-
id: import("@bpinternal/zui").ZodString;
|
|
112
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
113
|
-
id: string;
|
|
114
|
-
}, {
|
|
115
|
-
id: string;
|
|
116
|
-
}>;
|
|
117
|
-
}, {
|
|
118
|
-
deleted: import("@bpinternal/zui").ZodObject<{
|
|
119
|
-
id: import("@bpinternal/zui").ZodString;
|
|
120
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
121
|
-
id: string;
|
|
122
|
-
}, {
|
|
123
|
-
id: string;
|
|
124
|
-
}>;
|
|
125
|
-
}>;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { InterfaceDeclaration } from '../integration/definition';
|
|
2
|
-
import z from '../zui';
|
|
3
|
-
declare const ImageModelSchema: import("@bpinternal/zui").ZodObject<{
|
|
4
|
-
id: import("@bpinternal/zui").ZodString;
|
|
5
|
-
name: import("@bpinternal/zui").ZodString;
|
|
6
|
-
costPerImage: import("@bpinternal/zui").ZodNumber;
|
|
7
|
-
sizes: import("@bpinternal/zui").ZodArray<import("@bpinternal/zui").ZodString, "many">;
|
|
8
|
-
defaultSize: import("@bpinternal/zui").ZodString;
|
|
9
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
10
|
-
id: string;
|
|
11
|
-
name: string;
|
|
12
|
-
costPerImage: number;
|
|
13
|
-
sizes: string[];
|
|
14
|
-
defaultSize: string;
|
|
15
|
-
}, {
|
|
16
|
-
id: string;
|
|
17
|
-
name: string;
|
|
18
|
-
costPerImage: number;
|
|
19
|
-
sizes: string[];
|
|
20
|
-
defaultSize: string;
|
|
21
|
-
}>;
|
|
22
|
-
declare const GenerateContentInputBaseSchema: import("@bpinternal/zui").ZodObject<{
|
|
23
|
-
model: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodObject<{
|
|
24
|
-
id: import("@bpinternal/zui").ZodString;
|
|
25
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
26
|
-
id: string;
|
|
27
|
-
}, {
|
|
28
|
-
id: string;
|
|
29
|
-
}>>;
|
|
30
|
-
prompt: import("@bpinternal/zui").ZodString;
|
|
31
|
-
size: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
|
|
32
|
-
expiration: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodNumber>;
|
|
33
|
-
params: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodObject<{}, "strip", import("@bpinternal/zui").ZodTypeAny, {}, {}>>;
|
|
34
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
35
|
-
prompt: string;
|
|
36
|
-
params?: {} | undefined;
|
|
37
|
-
size?: string | undefined;
|
|
38
|
-
model?: {
|
|
39
|
-
id: string;
|
|
40
|
-
} | undefined;
|
|
41
|
-
expiration?: number | undefined;
|
|
42
|
-
}, {
|
|
43
|
-
prompt: string;
|
|
44
|
-
params?: {} | undefined;
|
|
45
|
-
size?: string | undefined;
|
|
46
|
-
model?: {
|
|
47
|
-
id: string;
|
|
48
|
-
} | undefined;
|
|
49
|
-
expiration?: number | undefined;
|
|
50
|
-
}>;
|
|
51
|
-
declare const GenerateImageOutputSchema: import("@bpinternal/zui").ZodObject<{
|
|
52
|
-
model: import("@bpinternal/zui").ZodString;
|
|
53
|
-
imageUrl: import("@bpinternal/zui").ZodString;
|
|
54
|
-
cost: import("@bpinternal/zui").ZodNumber;
|
|
55
|
-
botpress: import("@bpinternal/zui").ZodObject<{
|
|
56
|
-
cost: import("@bpinternal/zui").ZodNumber;
|
|
57
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
58
|
-
cost: number;
|
|
59
|
-
}, {
|
|
60
|
-
cost: number;
|
|
61
|
-
}>;
|
|
62
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
63
|
-
imageUrl: string;
|
|
64
|
-
model: string;
|
|
65
|
-
botpress: {
|
|
66
|
-
cost: number;
|
|
67
|
-
};
|
|
68
|
-
cost: number;
|
|
69
|
-
}, {
|
|
70
|
-
imageUrl: string;
|
|
71
|
-
model: string;
|
|
72
|
-
botpress: {
|
|
73
|
-
cost: number;
|
|
74
|
-
};
|
|
75
|
-
cost: number;
|
|
76
|
-
}>;
|
|
77
|
-
export declare const textToImage: InterfaceDeclaration<{
|
|
78
|
-
imageModelRef: import("@bpinternal/zui").ZodObject<{
|
|
79
|
-
id: import("@bpinternal/zui").ZodString;
|
|
80
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
81
|
-
id: string;
|
|
82
|
-
}, {
|
|
83
|
-
id: string;
|
|
84
|
-
}>;
|
|
85
|
-
imageGenerationParams: import("@bpinternal/zui").ZodObject<{}, "strip", import("@bpinternal/zui").ZodTypeAny, {}, {}>;
|
|
86
|
-
}, {
|
|
87
|
-
generateImage: import("@bpinternal/zui").ZodObject<{
|
|
88
|
-
model: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodRef>;
|
|
89
|
-
prompt: import("@bpinternal/zui").ZodString;
|
|
90
|
-
size: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodString>;
|
|
91
|
-
expiration: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodNumber>;
|
|
92
|
-
params: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodRef>;
|
|
93
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
94
|
-
prompt: string;
|
|
95
|
-
params?: {} | undefined;
|
|
96
|
-
size?: string | undefined;
|
|
97
|
-
model?: {} | undefined;
|
|
98
|
-
expiration?: number | undefined;
|
|
99
|
-
}, {
|
|
100
|
-
prompt: string;
|
|
101
|
-
params?: {} | undefined;
|
|
102
|
-
size?: string | undefined;
|
|
103
|
-
model?: {} | undefined;
|
|
104
|
-
expiration?: number | undefined;
|
|
105
|
-
}>;
|
|
106
|
-
listImageModels: import("@bpinternal/zui").ZodObject<{}, "strip", import("@bpinternal/zui").ZodTypeAny, {}, {}>;
|
|
107
|
-
}, import("../integration/definition/generic").BaseEvents>;
|
|
108
|
-
export declare namespace textToImage {
|
|
109
|
-
type GenerateImageInputSchema = z.infer<typeof GenerateContentInputBaseSchema>;
|
|
110
|
-
type GenerateImageOutputSchema = z.infer<typeof GenerateImageOutputSchema>;
|
|
111
|
-
type ImageModel = z.infer<typeof ImageModelSchema>;
|
|
112
|
-
type ImageModelDetails = Omit<ImageModel, 'id'>;
|
|
113
|
-
}
|
|
114
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { InterfaceDeclaration } from '../integration';
|
|
2
|
-
export declare const typingIndicator: InterfaceDeclaration<import("../integration/definition/generic").BaseEntities, {
|
|
3
|
-
startTypingIndicator: import("@bpinternal/zui").ZodObject<{
|
|
4
|
-
conversationId: import("@bpinternal/zui").ZodString;
|
|
5
|
-
messageId: import("@bpinternal/zui").ZodString;
|
|
6
|
-
timeout: import("@bpinternal/zui").ZodOptional<import("@bpinternal/zui").ZodNumber>;
|
|
7
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
8
|
-
conversationId: string;
|
|
9
|
-
messageId: string;
|
|
10
|
-
timeout?: number | undefined;
|
|
11
|
-
}, {
|
|
12
|
-
conversationId: string;
|
|
13
|
-
messageId: string;
|
|
14
|
-
timeout?: number | undefined;
|
|
15
|
-
}>;
|
|
16
|
-
stopTypingIndicator: import("@bpinternal/zui").ZodObject<{
|
|
17
|
-
conversationId: import("@bpinternal/zui").ZodString;
|
|
18
|
-
messageId: import("@bpinternal/zui").ZodString;
|
|
19
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
20
|
-
conversationId: string;
|
|
21
|
-
messageId: string;
|
|
22
|
-
}, {
|
|
23
|
-
conversationId: string;
|
|
24
|
-
messageId: string;
|
|
25
|
-
}>;
|
|
26
|
-
}, import("../integration/definition/generic").BaseEvents>;
|
package/dist/utils.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const unique: <T>(array: T[]) => T[];
|
|
2
|
-
export declare const pairs: <K extends string, V>(obj: Record<K, V>) => [K, V][];
|
|
3
|
-
export declare const values: <K extends string, V>(obj: Record<K, V>) => V[];
|
|
4
|
-
export declare const mapValues: <K extends string, V, R>(obj: Record<K, V>, fn: (value: V, key: K) => R) => Record<K, R>;
|
|
5
|
-
export declare const mergeRecords: <K extends string, V>(a: Record<K, V>, b: Record<K, V>, merge: (v1: V, v2: V) => V) => Record<K, V>;
|