@botpress/cli 4.17.14 → 4.17.15

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 (185) hide show
  1. package/.turbo/turbo-build.log +16 -12
  2. package/bin.js +1 -1
  3. package/dist/api/bot-body.d.ts +5 -0
  4. package/dist/api/client.d.ts +50 -0
  5. package/dist/api/index.d.ts +6 -0
  6. package/dist/api/integration-body.d.ts +5 -0
  7. package/dist/api/interface-body.d.ts +7 -0
  8. package/dist/api/paging.d.ts +9 -0
  9. package/dist/api/plugin-body.d.ts +5 -0
  10. package/dist/api/retry.d.ts +2 -0
  11. package/dist/api/types.d.ts +62 -0
  12. package/dist/chat/index.d.ts +25 -0
  13. package/dist/cli.d.ts +1 -0
  14. package/dist/cli.js +51 -0
  15. package/dist/cli.js.map +7 -0
  16. package/dist/code-generation/bot-implementation/bot-implementation.d.ts +8 -0
  17. package/dist/code-generation/bot-implementation/bot-plugins/index.d.ts +7 -0
  18. package/dist/code-generation/bot-implementation/bot-plugins/plugin-module.d.ts +13 -0
  19. package/dist/code-generation/bot-implementation/bot-typings/actions-module.d.ts +21 -0
  20. package/dist/code-generation/bot-implementation/bot-typings/events-module.d.ts +10 -0
  21. package/dist/code-generation/bot-implementation/bot-typings/index.d.ts +7 -0
  22. package/dist/code-generation/bot-implementation/bot-typings/states-module.d.ts +17 -0
  23. package/dist/code-generation/bot-implementation/bot-typings/tables-module.d.ts +10 -0
  24. package/dist/code-generation/bot-implementation/bot-typings/workflows-module.d.ts +27 -0
  25. package/dist/code-generation/bot-implementation/index.d.ts +3 -0
  26. package/dist/code-generation/consts.d.ts +5 -0
  27. package/dist/code-generation/generators.d.ts +10 -0
  28. package/dist/code-generation/index.d.ts +8 -0
  29. package/dist/code-generation/integration-implementation/index.d.ts +3 -0
  30. package/dist/code-generation/integration-implementation/integration-implementation.d.ts +7 -0
  31. package/dist/code-generation/integration-implementation/integration-secret.d.ts +8 -0
  32. package/dist/code-generation/integration-implementation/integration-typings/actions-module.d.ts +21 -0
  33. package/dist/code-generation/integration-implementation/integration-typings/channels-module.d.ts +5 -0
  34. package/dist/code-generation/integration-implementation/integration-typings/configuration-module.d.ts +7 -0
  35. package/dist/code-generation/integration-implementation/integration-typings/configurations-module.d.ts +10 -0
  36. package/dist/code-generation/integration-implementation/integration-typings/entities-module.d.ts +10 -0
  37. package/dist/code-generation/integration-implementation/integration-typings/events-module.d.ts +10 -0
  38. package/dist/code-generation/integration-implementation/integration-typings/index.d.ts +8 -0
  39. package/dist/code-generation/integration-implementation/integration-typings/states-module.d.ts +17 -0
  40. package/dist/code-generation/integration-package/index.d.ts +2 -0
  41. package/dist/code-generation/integration-package/integration-package-definition/actions-module.d.ts +21 -0
  42. package/dist/code-generation/integration-package/integration-package-definition/channels-module.d.ts +5 -0
  43. package/dist/code-generation/integration-package/integration-package-definition/configuration-module.d.ts +7 -0
  44. package/dist/code-generation/integration-package/integration-package-definition/configurations-module.d.ts +10 -0
  45. package/dist/code-generation/integration-package/integration-package-definition/entities-module.d.ts +10 -0
  46. package/dist/code-generation/integration-package/integration-package-definition/events-module.d.ts +10 -0
  47. package/dist/code-generation/integration-package/integration-package-definition/index.d.ts +8 -0
  48. package/dist/code-generation/integration-package/integration-package-definition/interfaces-module.d.ts +10 -0
  49. package/dist/code-generation/integration-package/integration-package-definition/states-module.d.ts +10 -0
  50. package/dist/code-generation/integration-package/integration-package-definition/typings.d.ts +10 -0
  51. package/dist/code-generation/interface-implementation/index.d.ts +4 -0
  52. package/dist/code-generation/interface-implementation/integration-typings/actions-module.d.ts +21 -0
  53. package/dist/code-generation/interface-implementation/integration-typings/channels-module.d.ts +5 -0
  54. package/dist/code-generation/interface-implementation/integration-typings/entities-module.d.ts +10 -0
  55. package/dist/code-generation/interface-implementation/integration-typings/events-module.d.ts +10 -0
  56. package/dist/code-generation/interface-implementation/integration-typings/index.d.ts +8 -0
  57. package/dist/code-generation/interface-package/index.d.ts +2 -0
  58. package/dist/code-generation/interface-package/interface-package-definition/actions-module.d.ts +21 -0
  59. package/dist/code-generation/interface-package/interface-package-definition/channels-module.d.ts +5 -0
  60. package/dist/code-generation/interface-package/interface-package-definition/entities-module.d.ts +10 -0
  61. package/dist/code-generation/interface-package/interface-package-definition/events-module.d.ts +10 -0
  62. package/dist/code-generation/interface-package/interface-package-definition/index.d.ts +8 -0
  63. package/dist/code-generation/interface-package/interface-package-definition/typings.d.ts +7 -0
  64. package/dist/code-generation/module.d.ts +49 -0
  65. package/dist/code-generation/plugin-implementation/index.d.ts +3 -0
  66. package/dist/code-generation/plugin-implementation/plugin-implementation.d.ts +7 -0
  67. package/dist/code-generation/plugin-implementation/plugin-typings/actions-module.d.ts +21 -0
  68. package/dist/code-generation/plugin-implementation/plugin-typings/configuration-module.d.ts +7 -0
  69. package/dist/code-generation/plugin-implementation/plugin-typings/events-module.d.ts +10 -0
  70. package/dist/code-generation/plugin-implementation/plugin-typings/index.d.ts +8 -0
  71. package/dist/code-generation/plugin-implementation/plugin-typings/states-module.d.ts +17 -0
  72. package/dist/code-generation/plugin-implementation/plugin-typings/tables-module.d.ts +10 -0
  73. package/dist/code-generation/plugin-implementation/plugin-typings/workflows-module.d.ts +27 -0
  74. package/dist/code-generation/plugin-package/index.d.ts +2 -0
  75. package/dist/code-generation/plugin-package/plugin-package-definition/actions-module.d.ts +21 -0
  76. package/dist/code-generation/plugin-package/plugin-package-definition/configuration-module.d.ts +7 -0
  77. package/dist/code-generation/plugin-package/plugin-package-definition/events-module.d.ts +10 -0
  78. package/dist/code-generation/plugin-package/plugin-package-definition/index.d.ts +8 -0
  79. package/dist/code-generation/plugin-package/plugin-package-definition/interfaces-module.d.ts +7 -0
  80. package/dist/code-generation/plugin-package/plugin-package-definition/recurring-events-module.d.ts +5 -0
  81. package/dist/code-generation/plugin-package/plugin-package-definition/states-module.d.ts +10 -0
  82. package/dist/code-generation/plugin-package/plugin-package-definition/typings.d.ts +7 -0
  83. package/dist/code-generation/strings.d.ts +4 -0
  84. package/dist/code-generation/typings.d.ts +162 -0
  85. package/dist/code-generation/typings.test.d.ts +1 -0
  86. package/dist/command-definitions.d.ts +1480 -0
  87. package/dist/command-implementations/add-command.d.ts +15 -0
  88. package/dist/command-implementations/base-command.d.ts +13 -0
  89. package/dist/command-implementations/bot-commands.d.ts +20 -0
  90. package/dist/command-implementations/build-command.d.ts +9 -0
  91. package/dist/command-implementations/bundle-command.d.ts +10 -0
  92. package/dist/command-implementations/chat-command.d.ts +13 -0
  93. package/dist/command-implementations/deploy-command.d.ts +18 -0
  94. package/dist/command-implementations/dev-command.d.ts +21 -0
  95. package/dist/command-implementations/gen-command.d.ts +11 -0
  96. package/dist/command-implementations/global-command.d.ts +57 -0
  97. package/dist/command-implementations/index.d.ts +1534 -0
  98. package/dist/command-implementations/init-command.d.ts +17 -0
  99. package/dist/command-implementations/integration-commands.d.ts +15 -0
  100. package/dist/command-implementations/interface-commands.d.ts +14 -0
  101. package/dist/command-implementations/lint-command.d.ts +15 -0
  102. package/dist/command-implementations/login-command.d.ts +6 -0
  103. package/dist/command-implementations/logout-command.d.ts +6 -0
  104. package/dist/command-implementations/plugin-commands.d.ts +14 -0
  105. package/dist/command-implementations/profile-commands.d.ts +14 -0
  106. package/dist/command-implementations/project-command.d.ts +67 -0
  107. package/dist/command-implementations/read-command.d.ts +10 -0
  108. package/dist/command-implementations/serve-command.d.ts +6 -0
  109. package/dist/command-tree.d.ts +39 -0
  110. package/dist/config.d.ts +1441 -0
  111. package/dist/consts.d.ts +41 -0
  112. package/dist/errors.d.ts +56 -0
  113. package/dist/index.d.ts +1524 -0
  114. package/dist/index.js +50 -25
  115. package/dist/index.js.map +3 -3
  116. package/dist/init.d.ts +1 -0
  117. package/dist/linter/base-linter.d.ts +21 -0
  118. package/dist/linter/base-linter.test.d.ts +1 -0
  119. package/dist/linter/bot-linter.d.ts +5 -0
  120. package/dist/linter/integration-linter.d.ts +7 -0
  121. package/dist/linter/interface-linter.d.ts +5 -0
  122. package/dist/linter/ruleset-tests/bot.ruleset.test.d.ts +1 -0
  123. package/dist/linter/ruleset-tests/common.d.ts +9 -0
  124. package/dist/linter/ruleset-tests/integration.ruleset.test.d.ts +1 -0
  125. package/dist/linter/ruleset-tests/interface.ruleset.test.d.ts +1 -0
  126. package/dist/linter/rulesets/bot.ruleset.d.ts +165 -0
  127. package/dist/linter/rulesets/integration.ruleset.d.ts +390 -0
  128. package/dist/linter/rulesets/interface.ruleset.d.ts +141 -0
  129. package/dist/linter/spectral-functions.d.ts +11 -0
  130. package/dist/logger/base-logger.d.ts +43 -0
  131. package/dist/logger/index.d.ts +22 -0
  132. package/dist/logger/logger.test.d.ts +1 -0
  133. package/dist/package-ref.d.ts +22 -0
  134. package/dist/package-ref.test.d.ts +1 -0
  135. package/dist/project-templates.d.ts +42 -0
  136. package/dist/register-yargs.d.ts +4 -0
  137. package/dist/root.d.ts +7 -0
  138. package/dist/sdk/index.d.ts +2 -0
  139. package/dist/sdk/validate-bot.d.ts +2 -0
  140. package/dist/sdk/validate-bot.test.d.ts +1 -0
  141. package/dist/sdk/validate-integration.d.ts +2 -0
  142. package/dist/tables/index.d.ts +1 -0
  143. package/dist/tables/schemas.d.ts +1259 -0
  144. package/dist/tables/tables-publisher.d.ts +22 -0
  145. package/dist/typings.d.ts +27 -0
  146. package/dist/utils/attribute-utils.d.ts +10 -0
  147. package/dist/utils/cache-utils.d.ts +14 -0
  148. package/dist/utils/case-utils.d.ts +14 -0
  149. package/dist/utils/case-utils.test.d.ts +1 -0
  150. package/dist/utils/concurrency-utils.d.ts +1 -0
  151. package/dist/utils/concurrency-utils.test.d.ts +1 -0
  152. package/dist/utils/esbuild-utils.d.ts +29 -0
  153. package/dist/utils/event-emitter.d.ts +7 -0
  154. package/dist/utils/file-watcher.d.ts +17 -0
  155. package/dist/utils/guard-utils.d.ts +4 -0
  156. package/dist/utils/id-utils.d.ts +2 -0
  157. package/dist/utils/index.d.ts +22 -0
  158. package/dist/utils/object-utils.d.ts +1 -0
  159. package/dist/utils/path-utils.d.ts +28 -0
  160. package/dist/utils/path-utils.test.d.ts +1 -0
  161. package/dist/utils/pkgjson-utils.d.ts +17 -0
  162. package/dist/utils/promise-utils.d.ts +2 -0
  163. package/dist/utils/promise-utils.test.d.ts +1 -0
  164. package/dist/utils/prompt-utils.d.ts +33 -0
  165. package/dist/utils/record-utils.d.ts +8 -0
  166. package/dist/utils/record-utils.test.d.ts +1 -0
  167. package/dist/utils/require-utils.d.ts +2 -0
  168. package/dist/utils/require-utils.test.d.ts +1 -0
  169. package/dist/utils/schema-utils.d.ts +13 -0
  170. package/dist/utils/schema-utils.test.d.ts +1 -0
  171. package/dist/utils/semver-utils.d.ts +8 -0
  172. package/dist/utils/string-utils.d.ts +2 -0
  173. package/dist/utils/template-utils.d.ts +1 -0
  174. package/dist/utils/tunnel-utils.d.ts +49 -0
  175. package/dist/utils/type-utils.d.ts +19 -0
  176. package/dist/utils/url-utils.d.ts +19 -0
  177. package/dist/worker/child-entrypoint.d.ts +1 -0
  178. package/dist/worker/child-wrapper.d.ts +18 -0
  179. package/dist/worker/config.d.ts +28 -0
  180. package/dist/worker/index.d.ts +2 -0
  181. package/dist/worker/is-child.d.ts +14 -0
  182. package/dist/worker/worker-state.d.ts +30 -0
  183. package/dist/worker/worker.d.ts +20 -0
  184. package/package.json +6 -4
  185. package/tsconfig.build.json +14 -0
@@ -0,0 +1,390 @@
1
+ export declare const INTEGRATION_RULESET: {
2
+ extends: never[];
3
+ rules: {
4
+ 'integration-title-must-be-present': {
5
+ description: string;
6
+ severity: "error";
7
+ given: string;
8
+ then: {
9
+ field: string;
10
+ function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<unknown, null>;
11
+ }[];
12
+ };
13
+ 'integration-description-must-be-present': {
14
+ description: string;
15
+ severity: "error";
16
+ given: string;
17
+ then: {
18
+ field: string;
19
+ function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<unknown, null>;
20
+ }[];
21
+ };
22
+ 'integration-must-have-an-icon': {
23
+ description: string;
24
+ severity: "error";
25
+ given: string;
26
+ then: {
27
+ field: string;
28
+ function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<unknown, null>;
29
+ }[];
30
+ };
31
+ 'integration-must-have-a-readme-file': {
32
+ description: string;
33
+ severity: "error";
34
+ given: string;
35
+ then: {
36
+ field: string;
37
+ function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<unknown, null>;
38
+ }[];
39
+ };
40
+ 'actions-should-have-a-title': {
41
+ description: string;
42
+ message: string;
43
+ severity: "warn";
44
+ given: string;
45
+ then: {
46
+ field: string;
47
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
48
+ message: string;
49
+ }[];
50
+ }[];
51
+ };
52
+ 'actions-must-have-a-description': {
53
+ description: string;
54
+ message: string;
55
+ severity: "error";
56
+ given: string;
57
+ then: {
58
+ field: string;
59
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
60
+ message: string;
61
+ }[];
62
+ }[];
63
+ };
64
+ 'action-inputparams-should-have-a-title': {
65
+ description: string;
66
+ message: string;
67
+ severity: "warn";
68
+ given: string;
69
+ then: {
70
+ field: string;
71
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
72
+ message: string;
73
+ }[];
74
+ }[];
75
+ };
76
+ 'action-inputparams-must-have-a-description': {
77
+ description: string;
78
+ message: string;
79
+ severity: "error";
80
+ given: string;
81
+ then: {
82
+ field: string;
83
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
84
+ message: string;
85
+ }[];
86
+ }[];
87
+ };
88
+ 'action-outputparams-should-have-a-title': {
89
+ description: string;
90
+ message: string;
91
+ severity: "warn";
92
+ given: string;
93
+ then: {
94
+ field: string;
95
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
96
+ message: string;
97
+ }[];
98
+ }[];
99
+ };
100
+ 'action-outputparams-must-have-a-description': {
101
+ description: string;
102
+ message: string;
103
+ severity: "error";
104
+ given: string;
105
+ then: {
106
+ field: string;
107
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
108
+ message: string;
109
+ }[];
110
+ }[];
111
+ };
112
+ 'event-outputparams-should-have-title': {
113
+ description: string;
114
+ message: string;
115
+ severity: "warn";
116
+ given: string;
117
+ then: {
118
+ field: string;
119
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
120
+ message: string;
121
+ }[];
122
+ }[];
123
+ };
124
+ 'event-outputparams-must-have-description': {
125
+ description: string;
126
+ message: string;
127
+ severity: "error";
128
+ given: string;
129
+ then: {
130
+ field: string;
131
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
132
+ message: string;
133
+ }[];
134
+ }[];
135
+ };
136
+ 'events-must-have-a-title': {
137
+ description: string;
138
+ message: string;
139
+ severity: "error";
140
+ given: string;
141
+ then: {
142
+ field: string;
143
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
144
+ message: string;
145
+ }[];
146
+ }[];
147
+ };
148
+ 'events-must-have-a-description': {
149
+ description: string;
150
+ message: string;
151
+ severity: "error";
152
+ given: string;
153
+ then: {
154
+ field: string;
155
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
156
+ message: string;
157
+ }[];
158
+ }[];
159
+ };
160
+ 'consider-migrating-to-configurations': {
161
+ description: string;
162
+ severity: "off";
163
+ given: string;
164
+ then: {
165
+ field: string;
166
+ function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<unknown, null>;
167
+ }[];
168
+ };
169
+ 'configuration-fields-must-have-a-title': {
170
+ description: string;
171
+ message: string;
172
+ severity: "error";
173
+ given: string;
174
+ then: {
175
+ field: string;
176
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
177
+ message: string;
178
+ }[];
179
+ }[];
180
+ };
181
+ 'configuration-fields-must-have-a-description': {
182
+ description: string;
183
+ message: string;
184
+ severity: "error";
185
+ given: string;
186
+ then: {
187
+ field: string;
188
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
189
+ message: string;
190
+ }[];
191
+ }[];
192
+ };
193
+ 'multiple-configurations-must-have-a-title': {
194
+ description: string;
195
+ message: string;
196
+ severity: "error";
197
+ given: string;
198
+ then: {
199
+ field: string;
200
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
201
+ message: string;
202
+ }[];
203
+ }[];
204
+ };
205
+ 'multiple-configurations-must-have-a-description': {
206
+ description: string;
207
+ message: string;
208
+ severity: "error";
209
+ given: string;
210
+ then: {
211
+ field: string;
212
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
213
+ message: string;
214
+ }[];
215
+ }[];
216
+ };
217
+ 'multipes-configurations-fields-must-have-a-title': {
218
+ description: string;
219
+ message: string;
220
+ severity: "error";
221
+ given: string;
222
+ then: {
223
+ field: string;
224
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
225
+ message: string;
226
+ }[];
227
+ }[];
228
+ };
229
+ 'multipes-configurations-fields-must-have-a-description': {
230
+ description: string;
231
+ message: string;
232
+ severity: "error";
233
+ given: string;
234
+ then: {
235
+ field: string;
236
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
237
+ message: string;
238
+ }[];
239
+ }[];
240
+ };
241
+ 'user-tags-should-have-a-title': {
242
+ description: string;
243
+ message: string;
244
+ severity: "warn";
245
+ given: string;
246
+ then: {
247
+ field: string;
248
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
249
+ message: string;
250
+ }[];
251
+ }[];
252
+ };
253
+ 'user-tags-must-have-a-description': {
254
+ description: string;
255
+ message: string;
256
+ severity: "error";
257
+ given: string;
258
+ then: {
259
+ field: string;
260
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
261
+ message: string;
262
+ }[];
263
+ }[];
264
+ };
265
+ 'channels-should-have-a-title': {
266
+ description: string;
267
+ message: string;
268
+ severity: "warn";
269
+ given: string;
270
+ then: {
271
+ field: string;
272
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
273
+ message: string;
274
+ }[];
275
+ }[];
276
+ };
277
+ 'channels-must-have-a-description': {
278
+ description: string;
279
+ message: string;
280
+ severity: "error";
281
+ given: string;
282
+ then: {
283
+ field: string;
284
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
285
+ message: string;
286
+ }[];
287
+ }[];
288
+ };
289
+ 'channels-conversation-tags-should-have-a-title': {
290
+ description: string;
291
+ message: string;
292
+ severity: "warn";
293
+ given: string;
294
+ then: {
295
+ field: string;
296
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
297
+ message: string;
298
+ }[];
299
+ }[];
300
+ };
301
+ 'channels-conversation-tags-must-have-a-description': {
302
+ description: string;
303
+ message: string;
304
+ severity: "error";
305
+ given: string;
306
+ then: {
307
+ field: string;
308
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
309
+ message: string;
310
+ }[];
311
+ }[];
312
+ };
313
+ 'channels-message-tags-should-have-a-title': {
314
+ description: string;
315
+ message: string;
316
+ severity: "warn";
317
+ given: string;
318
+ then: {
319
+ field: string;
320
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
321
+ message: string;
322
+ }[];
323
+ }[];
324
+ };
325
+ 'channels-message-tags-must-have-a-description': {
326
+ description: string;
327
+ message: string;
328
+ severity: "error";
329
+ given: string;
330
+ then: {
331
+ field: string;
332
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
333
+ message: string;
334
+ }[];
335
+ }[];
336
+ };
337
+ 'legacy-zui-title-should-be-removed': {
338
+ description: string;
339
+ severity: "error";
340
+ given: string;
341
+ then: {
342
+ function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<unknown, null>;
343
+ }[];
344
+ };
345
+ 'legacy-zui-examples-should-be-removed': {
346
+ description: string;
347
+ severity: "hint";
348
+ given: string;
349
+ then: {
350
+ function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<unknown, null>;
351
+ }[];
352
+ };
353
+ 'state-fields-should-have-title': {
354
+ description: string;
355
+ message: string;
356
+ severity: "warn";
357
+ given: string;
358
+ then: {
359
+ field: string;
360
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
361
+ message: string;
362
+ }[];
363
+ }[];
364
+ };
365
+ 'state-fields-must-have-description': {
366
+ description: string;
367
+ message: string;
368
+ severity: "error";
369
+ given: string;
370
+ then: {
371
+ field: string;
372
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
373
+ message: string;
374
+ }[];
375
+ }[];
376
+ };
377
+ 'secrets-must-have-a-description': {
378
+ description: string;
379
+ message: string;
380
+ severity: "error";
381
+ given: string;
382
+ then: {
383
+ field: string;
384
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
385
+ message: string;
386
+ }[];
387
+ }[];
388
+ };
389
+ };
390
+ };
@@ -0,0 +1,141 @@
1
+ export declare const INTERFACE_RULESET: {
2
+ extends: never[];
3
+ rules: {
4
+ 'action-inputparams-should-have-a-title': {
5
+ description: string;
6
+ message: string;
7
+ severity: "warn";
8
+ given: string;
9
+ then: {
10
+ field: string;
11
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
12
+ message: string;
13
+ }[];
14
+ }[];
15
+ };
16
+ 'action-inputparams-must-have-a-description': {
17
+ description: string;
18
+ message: string;
19
+ severity: "error";
20
+ given: string;
21
+ then: {
22
+ field: string;
23
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
24
+ message: string;
25
+ }[];
26
+ }[];
27
+ };
28
+ 'action-outputparams-should-have-a-title': {
29
+ description: string;
30
+ message: string;
31
+ severity: "warn";
32
+ given: string;
33
+ then: {
34
+ field: string;
35
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
36
+ message: string;
37
+ }[];
38
+ }[];
39
+ };
40
+ 'action-outputparams-must-have-a-description': {
41
+ description: string;
42
+ message: string;
43
+ severity: "error";
44
+ given: string;
45
+ then: {
46
+ field: string;
47
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
48
+ message: string;
49
+ }[];
50
+ }[];
51
+ };
52
+ 'event-outputparams-should-have-title': {
53
+ description: string;
54
+ message: string;
55
+ severity: "warn";
56
+ given: string;
57
+ then: {
58
+ field: string;
59
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
60
+ message: string;
61
+ }[];
62
+ }[];
63
+ };
64
+ 'event-outputparams-must-have-description': {
65
+ description: string;
66
+ message: string;
67
+ severity: "error";
68
+ given: string;
69
+ then: {
70
+ field: string;
71
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
72
+ message: string;
73
+ }[];
74
+ }[];
75
+ };
76
+ 'legacy-zui-title-should-be-removed': {
77
+ description: string;
78
+ severity: "error";
79
+ given: string;
80
+ then: {
81
+ function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<unknown, null>;
82
+ }[];
83
+ };
84
+ 'legacy-zui-examples-should-be-removed': {
85
+ description: string;
86
+ severity: "hint";
87
+ given: string;
88
+ then: {
89
+ function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<unknown, null>;
90
+ }[];
91
+ };
92
+ 'entities-should-have-a-title': {
93
+ description: string;
94
+ message: string;
95
+ severity: "warn";
96
+ given: string;
97
+ then: {
98
+ field: string;
99
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
100
+ message: string;
101
+ }[];
102
+ }[];
103
+ };
104
+ 'entities-must-have-a-description': {
105
+ description: string;
106
+ message: string;
107
+ severity: "error";
108
+ given: string;
109
+ then: {
110
+ field: string;
111
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
112
+ message: string;
113
+ }[];
114
+ }[];
115
+ };
116
+ 'entity-fields-should-have-a-title': {
117
+ description: string;
118
+ message: string;
119
+ severity: "warn";
120
+ given: string;
121
+ then: {
122
+ field: string;
123
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
124
+ message: string;
125
+ }[];
126
+ }[];
127
+ };
128
+ 'entity-fields-must-have-a-description': {
129
+ description: string;
130
+ message: string;
131
+ severity: "error";
132
+ given: string;
133
+ then: {
134
+ field: string;
135
+ function: (input: string, _: unknown, context: import("@stoplight/spectral-core").RulesetFunctionContext) => {
136
+ message: string;
137
+ }[];
138
+ }[];
139
+ };
140
+ };
141
+ };
@@ -0,0 +1,11 @@
1
+ import { RulesetFunctionContext } from '@stoplight/spectral-core';
2
+ type MessageFn = ({ path }: {
3
+ path: (string | number)[];
4
+ }) => string;
5
+ /**
6
+ * When the input is falsy, return a message that is generated by the provided function
7
+ */
8
+ export declare const truthyWithMessage: (fn: MessageFn) => (input: string, _: unknown, context: RulesetFunctionContext) => {
9
+ message: string;
10
+ }[];
11
+ export {};
@@ -0,0 +1,43 @@
1
+ export type LoggerOptions = {
2
+ verbose: boolean;
3
+ json: boolean;
4
+ outStream: NodeJS.WriteStream;
5
+ errStream: NodeJS.WriteStream;
6
+ };
7
+ type Symbol = '✓' | '⚠' | '×' | '●' | ' ' | '○';
8
+ type Color = 'blue' | 'green' | 'yellow' | 'red' | 'pink' | 'white' | 'orange' | 'purple';
9
+ type LogPrefix = {
10
+ symbol: Symbol;
11
+ fg?: Color;
12
+ bg?: Color;
13
+ indent?: number;
14
+ } | string;
15
+ type LogProps = {
16
+ prefix: LogPrefix;
17
+ stderr?: boolean;
18
+ };
19
+ type PrintProps = {
20
+ metadata: any;
21
+ prefix: string;
22
+ stderr?: boolean;
23
+ };
24
+ export type StreamType = 'out' | 'err';
25
+ export declare abstract class BaseLogger {
26
+ protected opts: LoggerOptions;
27
+ constructor(opts?: Partial<LoggerOptions>);
28
+ log(message: string, props?: Partial<LogProps>): void;
29
+ json(data: any, opts?: Partial<{
30
+ depth: number;
31
+ }>): void;
32
+ debug(message: string): void;
33
+ started(message: string): void;
34
+ success(message: string): void;
35
+ warn(message: string): void;
36
+ error(message: string): void;
37
+ box(message: string): void;
38
+ protected abstract print(message: string, props?: Partial<PrintProps>): void;
39
+ private _resolvePrefix;
40
+ private _renderSymbol;
41
+ protected render(message: string, streamType?: StreamType): void;
42
+ }
43
+ export {};
@@ -0,0 +1,22 @@
1
+ import { BaseLogger } from './base-logger';
2
+ export declare class Logger extends BaseLogger {
3
+ private static _previousLine;
4
+ protected print(message: string, props?: Partial<{
5
+ prefix: string;
6
+ stderr?: boolean;
7
+ }>): void;
8
+ line(): _SingleLineLogger;
9
+ cleanup(): void;
10
+ }
11
+ /**
12
+ * Prints to a single line unless it is committed.
13
+ * When committed or if the stream is not TTY, it prints normally using new lines.
14
+ */
15
+ declare class _SingleLineLogger extends BaseLogger {
16
+ private _commited;
17
+ commit(): void;
18
+ protected print(message: string, props?: Partial<{
19
+ prefix: string;
20
+ }>): void;
21
+ }
22
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,22 @@
1
+ import * as sdk from '@botpress/sdk';
2
+ type PackageType = sdk.Package['type'];
3
+ export type UUIDPackageRef = {
4
+ type: 'id';
5
+ id: string;
6
+ };
7
+ export type NamePackageRef = {
8
+ type: 'name';
9
+ pkg?: PackageType;
10
+ name: string;
11
+ version: string;
12
+ };
13
+ export type LocalPackageRef = {
14
+ type: 'path';
15
+ path: string;
16
+ };
17
+ export type ApiPackageRef = UUIDPackageRef | NamePackageRef;
18
+ export type PackageRef = ApiPackageRef | LocalPackageRef;
19
+ export declare const LATEST_TAG = "latest";
20
+ export declare const formatPackageRef: (ref: PackageRef) => string;
21
+ export declare const parsePackageRef: (ref: string) => PackageRef | undefined;
22
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,42 @@
1
+ import * as utils from './utils';
2
+ export declare namespace ProjectTemplates {
3
+ type Template = Readonly<{
4
+ fullName: string;
5
+ identifier: string;
6
+ defaultProjectName: string;
7
+ absolutePath: utils.path.AbsolutePath;
8
+ }>;
9
+ type TemplateArray = Readonly<[Template, ...Template[]]>;
10
+ type ProjectType = 'bot' | 'plugin' | 'integration';
11
+ const templates: {
12
+ readonly bot: readonly [{
13
+ readonly fullName: "Empty Bot";
14
+ readonly identifier: "empty";
15
+ readonly defaultProjectName: "empty-bot";
16
+ readonly absolutePath: utils.path.AbsolutePath;
17
+ }];
18
+ readonly plugin: readonly [{
19
+ readonly fullName: "Empty Plugin";
20
+ readonly identifier: "empty";
21
+ readonly defaultProjectName: "empty-plugin";
22
+ readonly absolutePath: utils.path.AbsolutePath;
23
+ }];
24
+ readonly integration: readonly [{
25
+ readonly fullName: "Empty Integration";
26
+ readonly identifier: "empty";
27
+ readonly defaultProjectName: "empty-integration";
28
+ readonly absolutePath: utils.path.AbsolutePath;
29
+ }, {
30
+ readonly fullName: "Hello World";
31
+ readonly identifier: "hello-world";
32
+ readonly defaultProjectName: "hello-world";
33
+ readonly absolutePath: utils.path.AbsolutePath;
34
+ }, {
35
+ readonly fullName: "Webhook Message";
36
+ readonly identifier: "webhook-message";
37
+ readonly defaultProjectName: "webhook-message";
38
+ readonly absolutePath: utils.path.AbsolutePath;
39
+ }];
40
+ };
41
+ const getAllChoices: () => ("empty" | "hello-world" | "webhook-message")[];
42
+ }
@@ -0,0 +1,4 @@
1
+ import yargs from '@bpinternal/yargs-extra';
2
+ import * as tree from './command-tree';
3
+ export type YargsInstance = typeof yargs;
4
+ export declare const registerYargs: (yargz: YargsInstance, commands: tree.CommandTree) => void;