@botpress/sdk 3.4.0 → 3.5.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 +4 -4
- package/dist/bot/client/index.d.ts +5 -0
- package/dist/bot/client/types.d.ts +16 -0
- package/dist/bot/common/generic.d.ts +9 -0
- package/dist/bot/definition.d.ts +23 -4
- package/dist/bot/implementation.d.ts +32 -13
- package/dist/bot/server/responses.d.ts +3 -0
- package/dist/bot/server/types.d.ts +122 -41
- package/dist/bot/server/workflows/update-handler.d.ts +3 -0
- package/dist/bot/server/workflows/update-type-conv.d.ts +2 -0
- package/dist/bot/workflow-proxy/index.d.ts +2 -0
- package/dist/bot/workflow-proxy/proxy.d.ts +10 -0
- package/dist/bot/workflow-proxy/types.d.ts +64 -0
- package/dist/bot/workflow-proxy/types.test.d.ts +1 -0
- package/dist/fixtures.d.ts +30 -0
- package/dist/index.cjs +24 -24
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +46 -46
- package/dist/index.mjs.map +4 -4
- package/dist/package.d.ts +1 -0
- package/dist/plugin/common/generic.d.ts +11 -103
- package/dist/plugin/definition.d.ts +15 -6
- package/dist/plugin/implementation.d.ts +35 -14
- package/dist/plugin/server/types.d.ts +102 -39
- package/dist/utils/record-utils.d.ts +1 -0
- package/dist/utils/type-utils.d.ts +3 -2
- package/package.json +2 -2
package/dist/fixtures.d.ts
CHANGED
|
@@ -173,6 +173,21 @@ export type FooBarBazBot = DefaultBot<{
|
|
|
173
173
|
age: number;
|
|
174
174
|
};
|
|
175
175
|
};
|
|
176
|
+
workflows: {
|
|
177
|
+
fooWorkflow: {
|
|
178
|
+
tags: {
|
|
179
|
+
foo: string;
|
|
180
|
+
};
|
|
181
|
+
input: {
|
|
182
|
+
string: string;
|
|
183
|
+
optionalNumber?: number;
|
|
184
|
+
};
|
|
185
|
+
output: {
|
|
186
|
+
optionalString?: string;
|
|
187
|
+
number: number;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
};
|
|
176
191
|
}>;
|
|
177
192
|
export type FooBarBazPlugin = DefaultPlugin<{
|
|
178
193
|
integrations: {
|
|
@@ -191,6 +206,21 @@ export type FooBarBazPlugin = DefaultPlugin<{
|
|
|
191
206
|
};
|
|
192
207
|
};
|
|
193
208
|
};
|
|
209
|
+
workflows: {
|
|
210
|
+
fooWorkflow: {
|
|
211
|
+
tags: {
|
|
212
|
+
foo: string;
|
|
213
|
+
};
|
|
214
|
+
input: {
|
|
215
|
+
string: string;
|
|
216
|
+
optionalNumber?: number;
|
|
217
|
+
};
|
|
218
|
+
output: {
|
|
219
|
+
optionalString?: string;
|
|
220
|
+
number: number;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
};
|
|
194
224
|
}>;
|
|
195
225
|
export type EmptyBot = DefaultBot<{
|
|
196
226
|
integrations: {};
|