@botpress/cli 5.4.3 → 5.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 +13 -13
- package/dist/code-generation/integration-implementation/integration-secret.d.ts +1 -0
- package/dist/code-generation/integration-implementation/integration-secret.js +5 -2
- package/dist/code-generation/integration-implementation/integration-secret.js.map +2 -2
- package/dist/command-definitions.d.ts +6 -0
- package/dist/command-implementations/dev-command.d.ts +3 -0
- package/dist/command-implementations/dev-command.js +33 -1
- package/dist/command-implementations/dev-command.js.map +2 -2
- package/dist/command-implementations/index.d.ts +6 -0
- package/dist/command-implementations/lint-command.js +13 -6
- package/dist/command-implementations/lint-command.js.map +2 -2
- package/dist/command-implementations/project-command.d.ts +3 -0
- package/dist/command-implementations/project-command.js.map +2 -2
- package/dist/config.d.ts +6 -0
- package/dist/config.js +6 -0
- package/dist/config.js.map +2 -2
- package/dist/index.d.ts +6 -0
- package/dist/linter/base-linter.d.ts +16 -2
- package/dist/linter/base-linter.js +29 -4
- package/dist/linter/base-linter.js.map +3 -3
- package/dist/linter/ruleset-functions.d.ts +8 -0
- package/dist/linter/ruleset-functions.js +75 -0
- package/dist/linter/ruleset-functions.js.map +7 -0
- package/dist/linter/ruleset-tests/common.d.ts +1 -2
- package/dist/linter/ruleset-tests/common.js.map +1 -1
- package/dist/linter/rulesets/bot.ruleset.d.ts +1 -141
- package/dist/linter/rulesets/bot.ruleset.js +29 -28
- package/dist/linter/rulesets/bot.ruleset.js.map +2 -2
- package/dist/linter/rulesets/integration.ruleset.d.ts +1 -336
- package/dist/linter/rulesets/integration.ruleset.js +63 -62
- package/dist/linter/rulesets/integration.ruleset.js.map +2 -2
- package/dist/linter/rulesets/interface.ruleset.d.ts +1 -101
- package/dist/linter/rulesets/interface.ruleset.js +21 -20
- package/dist/linter/rulesets/interface.ruleset.js.map +2 -2
- package/package.json +3 -3
- package/templates/empty-bot/package.json +2 -2
- package/templates/empty-integration/package.json +2 -2
- package/templates/empty-plugin/package.json +1 -1
- package/templates/hello-world/package.json +2 -2
- package/templates/webhook-message/package.json +2 -2
|
@@ -22,51 +22,52 @@ __export(integration_ruleset_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(integration_ruleset_exports);
|
|
24
24
|
var import_spectral_functions = require("@stoplight/spectral-functions");
|
|
25
|
+
var import_ruleset_functions = require("../ruleset-functions");
|
|
25
26
|
var import_spectral_functions2 = require("../spectral-functions");
|
|
26
|
-
const INTEGRATION_RULESET = {
|
|
27
|
+
const INTEGRATION_RULESET = (0, import_ruleset_functions.preprocessRuleset)({
|
|
27
28
|
extends: [],
|
|
28
29
|
rules: {
|
|
29
30
|
"integration-title-must-be-present": {
|
|
30
|
-
description: "The integration
|
|
31
|
+
description: "The integration {{callToAction}} have a non-empty title",
|
|
31
32
|
severity: "error",
|
|
32
33
|
given: "$",
|
|
33
34
|
then: [{ field: "title", function: import_spectral_functions.truthy }]
|
|
34
35
|
},
|
|
35
36
|
"integration-description-must-be-present": {
|
|
36
|
-
description: "The integration
|
|
37
|
+
description: "The integration {{callToAction}} have a non-empty description",
|
|
37
38
|
severity: "error",
|
|
38
39
|
given: "$",
|
|
39
40
|
then: [{ field: "description", function: import_spectral_functions.truthy }]
|
|
40
41
|
},
|
|
41
42
|
"integration-must-have-an-icon": {
|
|
42
|
-
description: "The integration
|
|
43
|
+
description: "The integration {{callToAction}} have an icon",
|
|
43
44
|
severity: "error",
|
|
44
45
|
given: "$",
|
|
45
46
|
then: [{ field: "icon", function: import_spectral_functions.truthy }]
|
|
46
47
|
},
|
|
47
48
|
"integration-must-have-a-readme-file": {
|
|
48
|
-
description: "The integration
|
|
49
|
+
description: "The integration {{callToAction}} have a readme file",
|
|
49
50
|
severity: "error",
|
|
50
51
|
given: "$",
|
|
51
52
|
then: [{ field: "readme", function: import_spectral_functions.truthy }]
|
|
52
53
|
},
|
|
53
54
|
"actions-should-have-a-title": {
|
|
54
|
-
description: "All actions
|
|
55
|
-
message: "{{description}}: {{error}}
|
|
55
|
+
description: "All actions {{callToAction}} have a title",
|
|
56
|
+
message: "{{description}}: {{error}} {{callToAction}} have a non-empty title",
|
|
56
57
|
severity: "warn",
|
|
57
58
|
given: "$.actions[*]",
|
|
58
59
|
then: [{ field: "title", function: (0, import_spectral_functions2.truthyWithMessage)(({ path }) => `action "${path[1]}"`) }]
|
|
59
60
|
},
|
|
60
61
|
"actions-must-have-a-description": {
|
|
61
|
-
description: "All actions
|
|
62
|
-
message: "{{description}}: {{error}}
|
|
62
|
+
description: "All actions {{callToAction}} have a description",
|
|
63
|
+
message: "{{description}}: {{error}} {{callToAction}} have a non-empty description",
|
|
63
64
|
severity: "error",
|
|
64
65
|
given: "$.actions[*]",
|
|
65
66
|
then: [{ field: "description", function: (0, import_spectral_functions2.truthyWithMessage)(({ path }) => `action "${path[1]}"`) }]
|
|
66
67
|
},
|
|
67
68
|
"action-inputparams-should-have-a-title": {
|
|
68
|
-
description: "All action input parameters
|
|
69
|
-
message: "{{description}}: {{error}}
|
|
69
|
+
description: "All action input parameters {{callToAction}} have a title",
|
|
70
|
+
message: "{{description}}: {{error}} {{callToAction}} provide a non-empty title by using .title() in its Zod schema",
|
|
70
71
|
severity: "warn",
|
|
71
72
|
given: "$.actions[*].input..schema.properties[*]",
|
|
72
73
|
then: [
|
|
@@ -80,8 +81,8 @@ const INTEGRATION_RULESET = {
|
|
|
80
81
|
]
|
|
81
82
|
},
|
|
82
83
|
"action-inputparams-must-have-a-description": {
|
|
83
|
-
description: "All action input parameters
|
|
84
|
-
message: "{{description}}: {{error}}
|
|
84
|
+
description: "All action input parameters {{callToAction}} have a description",
|
|
85
|
+
message: "{{description}}: {{error}} {{callToAction}} provide a non-empty description by using .describe() in its Zod schema",
|
|
85
86
|
severity: "error",
|
|
86
87
|
given: "$.actions[*].input..schema.properties[*]",
|
|
87
88
|
then: [
|
|
@@ -95,8 +96,8 @@ const INTEGRATION_RULESET = {
|
|
|
95
96
|
]
|
|
96
97
|
},
|
|
97
98
|
"action-outputparams-should-have-a-title": {
|
|
98
|
-
description: "All action output parameters
|
|
99
|
-
message: "{{description}}: {{error}}
|
|
99
|
+
description: "All action output parameters {{callToAction}} have a title",
|
|
100
|
+
message: "{{description}}: {{error}} {{callToAction}} provide a non-empty title by using .title() in its Zod schema",
|
|
100
101
|
severity: "warn",
|
|
101
102
|
given: "$.actions[*].output..schema.properties[*].x-zui",
|
|
102
103
|
then: [
|
|
@@ -110,8 +111,8 @@ const INTEGRATION_RULESET = {
|
|
|
110
111
|
]
|
|
111
112
|
},
|
|
112
113
|
"action-outputparams-must-have-a-description": {
|
|
113
|
-
description: "All action output parameters
|
|
114
|
-
message: "{{description}}: {{error}}
|
|
114
|
+
description: "All action output parameters {{callToAction}} have a description",
|
|
115
|
+
message: "{{description}}: {{error}} {{callToAction}} provide a non-empty description by using .describe() in its Zod schema",
|
|
115
116
|
severity: "error",
|
|
116
117
|
given: "$.actions[*].output..schema.properties[*]",
|
|
117
118
|
then: [
|
|
@@ -125,8 +126,8 @@ const INTEGRATION_RULESET = {
|
|
|
125
126
|
]
|
|
126
127
|
},
|
|
127
128
|
"event-outputparams-should-have-title": {
|
|
128
|
-
description: "All event output parameters
|
|
129
|
-
message: "{{description}}: {{error}}
|
|
129
|
+
description: "All event output parameters {{callToAction}} have a title",
|
|
130
|
+
message: "{{description}}: {{error}} {{callToAction}} provide a non-empty title by using .title() in its Zod schema",
|
|
130
131
|
severity: "warn",
|
|
131
132
|
given: "$.events[*]..schema.properties[*]",
|
|
132
133
|
then: [
|
|
@@ -140,8 +141,8 @@ const INTEGRATION_RULESET = {
|
|
|
140
141
|
]
|
|
141
142
|
},
|
|
142
143
|
"event-outputparams-must-have-description": {
|
|
143
|
-
description: "All event output parameters
|
|
144
|
-
message: "{{description}}: {{error}}
|
|
144
|
+
description: "All event output parameters {{callToAction}} have a description",
|
|
145
|
+
message: "{{description}}: {{error}} {{callToAction}} provide a non-empty description by using .describe() in its Zod schema",
|
|
145
146
|
severity: "error",
|
|
146
147
|
given: "$.events[*]..schema.properties[*]",
|
|
147
148
|
then: [
|
|
@@ -155,15 +156,15 @@ const INTEGRATION_RULESET = {
|
|
|
155
156
|
]
|
|
156
157
|
},
|
|
157
158
|
"events-must-have-a-title": {
|
|
158
|
-
description: "All events
|
|
159
|
-
message: "{{description}}: {{error}}
|
|
159
|
+
description: "All events {{callToAction}} have a title",
|
|
160
|
+
message: "{{description}}: {{error}} {{callToAction}} be a non-empty string",
|
|
160
161
|
severity: "error",
|
|
161
162
|
given: "$.events[*]",
|
|
162
163
|
then: [{ field: "title", function: (0, import_spectral_functions2.truthyWithMessage)(({ path }) => `event "${path[1]}"`) }]
|
|
163
164
|
},
|
|
164
165
|
"events-must-have-a-description": {
|
|
165
|
-
description: "All events
|
|
166
|
-
message: "{{description}}: {{error}}
|
|
166
|
+
description: "All events {{callToAction}} have a description",
|
|
167
|
+
message: "{{description}}: {{error}} {{callToAction}} be a non-empty string",
|
|
167
168
|
severity: "error",
|
|
168
169
|
given: "$.events[*]",
|
|
169
170
|
then: [{ field: "description", function: (0, import_spectral_functions2.truthyWithMessage)(({ path }) => `event "${path[1]}"`) }]
|
|
@@ -178,8 +179,8 @@ const INTEGRATION_RULESET = {
|
|
|
178
179
|
]
|
|
179
180
|
},
|
|
180
181
|
"configuration-fields-must-have-a-title": {
|
|
181
|
-
description: "All configuration fields
|
|
182
|
-
message: "{{description}}: {{error}}
|
|
182
|
+
description: "All configuration fields {{callToAction}} have a title",
|
|
183
|
+
message: "{{description}}: {{error}} {{callToAction}} provide a non-empty title by using .title() in its Zod schema",
|
|
183
184
|
severity: "error",
|
|
184
185
|
given: "$.configuration..schema.properties[*].x-zui",
|
|
185
186
|
then: [
|
|
@@ -193,8 +194,8 @@ const INTEGRATION_RULESET = {
|
|
|
193
194
|
]
|
|
194
195
|
},
|
|
195
196
|
"configuration-fields-must-have-a-description": {
|
|
196
|
-
description: "All configuration fields
|
|
197
|
-
message: "{{description}}: {{error}}
|
|
197
|
+
description: "All configuration fields {{callToAction}} have a description",
|
|
198
|
+
message: "{{description}}: {{error}} {{callToAction}} provide a non-empty description by using .describe() in its Zod schema",
|
|
198
199
|
severity: "error",
|
|
199
200
|
given: "$.configuration..schema.properties[*]",
|
|
200
201
|
then: [
|
|
@@ -208,22 +209,22 @@ const INTEGRATION_RULESET = {
|
|
|
208
209
|
]
|
|
209
210
|
},
|
|
210
211
|
"multiple-configurations-must-have-a-title": {
|
|
211
|
-
description: "Multiple configuration definitions
|
|
212
|
-
message: "{{description}}: {{error}}
|
|
212
|
+
description: "Multiple configuration definitions {{callToAction}} have a title",
|
|
213
|
+
message: "{{description}}: {{error}} {{callToAction}} have a title",
|
|
213
214
|
severity: "error",
|
|
214
215
|
given: "$.configurations[*]",
|
|
215
216
|
then: [{ field: "title", function: (0, import_spectral_functions2.truthyWithMessage)(({ path }) => `configuration "${path[1]}"`) }]
|
|
216
217
|
},
|
|
217
218
|
"multiple-configurations-must-have-a-description": {
|
|
218
|
-
description: "Multiple configuration definitions
|
|
219
|
-
message: "{{description}}: {{error}}
|
|
219
|
+
description: "Multiple configuration definitions {{callToAction}} have a description",
|
|
220
|
+
message: "{{description}}: {{error}} {{callToAction}} have a description",
|
|
220
221
|
severity: "error",
|
|
221
222
|
given: "$.configurations[*]",
|
|
222
223
|
then: [{ field: "description", function: (0, import_spectral_functions2.truthyWithMessage)(({ path }) => `configuration "${path[1]}"`) }]
|
|
223
224
|
},
|
|
224
225
|
"multipes-configurations-fields-must-have-a-title": {
|
|
225
|
-
description: "All configuration fields in multiple configurations
|
|
226
|
-
message: "{{description}}: {{error}}
|
|
226
|
+
description: "All configuration fields in multiple configurations {{callToAction}} have a title",
|
|
227
|
+
message: "{{description}}: {{error}} {{callToAction}} provide a non-empty title by using .title() in its Zod schema",
|
|
227
228
|
severity: "error",
|
|
228
229
|
given: "$.configurations[*]..schema.properties[*].x-zui",
|
|
229
230
|
then: [
|
|
@@ -237,8 +238,8 @@ const INTEGRATION_RULESET = {
|
|
|
237
238
|
]
|
|
238
239
|
},
|
|
239
240
|
"multipes-configurations-fields-must-have-a-description": {
|
|
240
|
-
description: "All configuration fields in multiple configurations
|
|
241
|
-
message: "{{description}}: {{error}}
|
|
241
|
+
description: "All configuration fields in multiple configurations {{callToAction}} have a description",
|
|
242
|
+
message: "{{description}}: {{error}} {{callToAction}} provide a non-empty description by using .describe() in its Zod schema",
|
|
242
243
|
severity: "error",
|
|
243
244
|
given: "$.configurations[*]..schema.properties[*]",
|
|
244
245
|
then: [
|
|
@@ -252,8 +253,8 @@ const INTEGRATION_RULESET = {
|
|
|
252
253
|
]
|
|
253
254
|
},
|
|
254
255
|
"user-tags-should-have-a-title": {
|
|
255
|
-
description: "All user tags
|
|
256
|
-
message: "{{description}}: {{error}}
|
|
256
|
+
description: "All user tags {{callToAction}} have a title",
|
|
257
|
+
message: "{{description}}: {{error}} {{callToAction}} have a non-empty title",
|
|
257
258
|
severity: "warn",
|
|
258
259
|
given: "$.user.tags[*]",
|
|
259
260
|
then: [
|
|
@@ -264,8 +265,8 @@ const INTEGRATION_RULESET = {
|
|
|
264
265
|
]
|
|
265
266
|
},
|
|
266
267
|
"user-tags-must-have-a-description": {
|
|
267
|
-
description: "All user tags
|
|
268
|
-
message: "{{description}}: {{error}}
|
|
268
|
+
description: "All user tags {{callToAction}} have a description",
|
|
269
|
+
message: "{{description}}: {{error}} {{callToAction}} have a non-empty description",
|
|
269
270
|
severity: "error",
|
|
270
271
|
given: "$.user.tags[*]",
|
|
271
272
|
then: [
|
|
@@ -276,8 +277,8 @@ const INTEGRATION_RULESET = {
|
|
|
276
277
|
]
|
|
277
278
|
},
|
|
278
279
|
"channels-should-have-a-title": {
|
|
279
|
-
description: "All channels
|
|
280
|
-
message: "{{description}}: {{error}}
|
|
280
|
+
description: "All channels {{callToAction}} have a title",
|
|
281
|
+
message: "{{description}}: {{error}} {{callToAction}} have a non-empty title",
|
|
281
282
|
severity: "warn",
|
|
282
283
|
given: "$.channels[*]",
|
|
283
284
|
then: [
|
|
@@ -288,8 +289,8 @@ const INTEGRATION_RULESET = {
|
|
|
288
289
|
]
|
|
289
290
|
},
|
|
290
291
|
"channels-must-have-a-description": {
|
|
291
|
-
description: "All channels
|
|
292
|
-
message: "{{description}}: {{error}}
|
|
292
|
+
description: "All channels {{callToAction}} have a description",
|
|
293
|
+
message: "{{description}}: {{error}} {{callToAction}} have a non-empty description",
|
|
293
294
|
severity: "error",
|
|
294
295
|
given: "$.channels[*]",
|
|
295
296
|
then: [
|
|
@@ -300,8 +301,8 @@ const INTEGRATION_RULESET = {
|
|
|
300
301
|
]
|
|
301
302
|
},
|
|
302
303
|
"channels-conversation-tags-should-have-a-title": {
|
|
303
|
-
description: "All conversation tags
|
|
304
|
-
message: "{{description}}: {{error}}
|
|
304
|
+
description: "All conversation tags {{callToAction}} have a title",
|
|
305
|
+
message: "{{description}}: {{error}} {{callToAction}} have a non-empty title",
|
|
305
306
|
severity: "warn",
|
|
306
307
|
given: "$.channels[*].conversation.tags[*]",
|
|
307
308
|
then: [
|
|
@@ -312,8 +313,8 @@ const INTEGRATION_RULESET = {
|
|
|
312
313
|
]
|
|
313
314
|
},
|
|
314
315
|
"channels-conversation-tags-must-have-a-description": {
|
|
315
|
-
description: "All conversation tags
|
|
316
|
-
message: "{{description}}: {{error}}
|
|
316
|
+
description: "All conversation tags {{callToAction}} have a description",
|
|
317
|
+
message: "{{description}}: {{error}} {{callToAction}} have a non-empty description",
|
|
317
318
|
severity: "error",
|
|
318
319
|
given: "$.channels[*].conversation.tags[*]",
|
|
319
320
|
then: [
|
|
@@ -324,8 +325,8 @@ const INTEGRATION_RULESET = {
|
|
|
324
325
|
]
|
|
325
326
|
},
|
|
326
327
|
"channels-message-tags-should-have-a-title": {
|
|
327
|
-
description: "All message tags
|
|
328
|
-
message: "{{description}}: {{error}}
|
|
328
|
+
description: "All message tags {{callToAction}} have a title",
|
|
329
|
+
message: "{{description}}: {{error}} {{callToAction}} have a non-empty title",
|
|
329
330
|
severity: "warn",
|
|
330
331
|
given: "$.channels[*].message.tags[*]",
|
|
331
332
|
then: [
|
|
@@ -336,8 +337,8 @@ const INTEGRATION_RULESET = {
|
|
|
336
337
|
]
|
|
337
338
|
},
|
|
338
339
|
"channels-message-tags-must-have-a-description": {
|
|
339
|
-
description: "All message tags
|
|
340
|
-
message: "{{description}}: {{error}}
|
|
340
|
+
description: "All message tags {{callToAction}} have a description",
|
|
341
|
+
message: "{{description}}: {{error}} {{callToAction}} have a non-empty description",
|
|
341
342
|
severity: "error",
|
|
342
343
|
given: "$.channels[*].message.tags[*]",
|
|
343
344
|
then: [
|
|
@@ -348,20 +349,20 @@ const INTEGRATION_RULESET = {
|
|
|
348
349
|
]
|
|
349
350
|
},
|
|
350
351
|
"legacy-zui-title-should-be-removed": {
|
|
351
|
-
description: "Legacy ZUI title fields (ui.title)
|
|
352
|
+
description: "Legacy ZUI title fields (ui.title) {{callToAction}} be removed. Please use .title() in your Zod schemas instead",
|
|
352
353
|
severity: "error",
|
|
353
354
|
given: "$..ui[*].title",
|
|
354
355
|
then: [{ function: import_spectral_functions.falsy }]
|
|
355
356
|
},
|
|
356
357
|
"legacy-zui-examples-should-be-removed": {
|
|
357
|
-
description: "Legacy ZUI examples fields (ui.examples)
|
|
358
|
+
description: "Legacy ZUI examples fields (ui.examples) {{callToAction}} be removed. There are currently no alternatives",
|
|
358
359
|
severity: "hint",
|
|
359
360
|
given: "$..ui[*].examples",
|
|
360
361
|
then: [{ function: import_spectral_functions.falsy }]
|
|
361
362
|
},
|
|
362
363
|
"state-fields-should-have-title": {
|
|
363
|
-
description: "All state fields
|
|
364
|
-
message: "{{description}}: {{error}}
|
|
364
|
+
description: "All state fields {{callToAction}} have a title",
|
|
365
|
+
message: "{{description}}: {{error}} {{callToAction}} provide a non-empty title by using .title() in its Zod schema",
|
|
365
366
|
severity: "warn",
|
|
366
367
|
given: "$.states[*]..schema.properties[*]",
|
|
367
368
|
then: [
|
|
@@ -375,8 +376,8 @@ const INTEGRATION_RULESET = {
|
|
|
375
376
|
]
|
|
376
377
|
},
|
|
377
378
|
"state-fields-must-have-description": {
|
|
378
|
-
description: "All state fields
|
|
379
|
-
message: "{{description}}: {{error}}
|
|
379
|
+
description: "All state fields {{callToAction}} have a description",
|
|
380
|
+
message: "{{description}}: {{error}} {{callToAction}} provide a non-empty description by using .describe() in its Zod schema",
|
|
380
381
|
severity: "error",
|
|
381
382
|
given: "$.states[*]..schema.properties[*]",
|
|
382
383
|
then: [
|
|
@@ -390,8 +391,8 @@ const INTEGRATION_RULESET = {
|
|
|
390
391
|
]
|
|
391
392
|
},
|
|
392
393
|
"secrets-must-have-a-description": {
|
|
393
|
-
description: "All secrets
|
|
394
|
-
message: "{{description}}: {{error}}
|
|
394
|
+
description: "All secrets {{callToAction}} have a description",
|
|
395
|
+
message: "{{description}}: {{error}} {{callToAction}} have a non-empty description",
|
|
395
396
|
severity: "error",
|
|
396
397
|
given: "$.secrets[*]",
|
|
397
398
|
then: [
|
|
@@ -402,7 +403,7 @@ const INTEGRATION_RULESET = {
|
|
|
402
403
|
]
|
|
403
404
|
}
|
|
404
405
|
}
|
|
405
|
-
};
|
|
406
|
+
});
|
|
406
407
|
// Annotate the CommonJS export names for ESM import in node:
|
|
407
408
|
0 && (module.exports = {
|
|
408
409
|
INTEGRATION_RULESET
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/linter/rulesets/integration.ruleset.ts"],
|
|
4
|
-
"sourcesContent": ["import { type RulesetDefinition } from '@stoplight/spectral-core'\nimport { falsy, truthy } from '@stoplight/spectral-functions'\nimport { descriptionFallbackExtractor, titleFallbackExtractor, truthyWithMessage } from '../spectral-functions'\n\nexport const INTEGRATION_RULESET = {\n extends: [],\n rules: {\n 'integration-title-must-be-present': {\n description: 'The integration MUST have a non-empty title',\n severity: 'error',\n given: '$',\n then: [{ field: 'title', function: truthy }],\n },\n 'integration-description-must-be-present': {\n description: 'The integration MUST have a non-empty description',\n severity: 'error',\n given: '$',\n then: [{ field: 'description', function: truthy }],\n },\n 'integration-must-have-an-icon': {\n description: 'The integration MUST have an icon',\n severity: 'error',\n given: '$',\n then: [{ field: 'icon', function: truthy }],\n },\n 'integration-must-have-a-readme-file': {\n description: 'The integration MUST have a readme file',\n severity: 'error',\n given: '$',\n then: [{ field: 'readme', function: truthy }],\n },\n 'actions-should-have-a-title': {\n description: 'All actions SHOULD have a title',\n message: '{{description}}: {{error}} SHOULD have a non-empty title',\n severity: 'warn',\n given: '$.actions[*]',\n then: [{ field: 'title', function: truthyWithMessage(({ path }) => `action \"${path[1]}\"`) }],\n },\n 'actions-must-have-a-description': {\n description: 'All actions MUST have a description',\n message: '{{description}}: {{error}} MUST have a non-empty description',\n severity: 'error',\n given: '$.actions[*]',\n then: [{ field: 'description', function: truthyWithMessage(({ path }) => `action \"${path[1]}\"`) }],\n },\n 'action-inputparams-should-have-a-title': {\n description: 'All action input parameters SHOULD have a title',\n message: '{{description}}: {{error}} SHOULD provide a non-empty title by using .title() in its Zod schema',\n severity: 'warn',\n given: '$.actions[*].input..schema.properties[*]',\n then: [\n {\n field: 'x-zui.title',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) =>\n `input parameter \"${path.at(isFallback ? -5 : -3)}\" of action \"${path[1]}\"`,\n fallbackExtractor: titleFallbackExtractor,\n }),\n },\n ],\n },\n 'action-inputparams-must-have-a-description': {\n description: 'All action input parameters MUST have a description',\n message: '{{description}}: {{error}} MUST provide a non-empty description by using .describe() in its Zod schema',\n severity: 'error',\n given: '$.actions[*].input..schema.properties[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) =>\n `input parameter \"${path.at(isFallback ? -4 : -2)}\" of action \"${path[1]}\"`,\n fallbackExtractor: descriptionFallbackExtractor,\n }),\n },\n ],\n },\n 'action-outputparams-should-have-a-title': {\n description: 'All action output parameters SHOULD have a title',\n message: '{{description}}: {{error}} SHOULD provide a non-empty title by using .title() in its Zod schema',\n severity: 'warn',\n given: '$.actions[*].output..schema.properties[*].x-zui',\n then: [\n {\n field: 'title',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) =>\n `output parameter \"${path.at(isFallback ? -5 : -3)}\" of action \"${path[1]}\"`,\n fallbackExtractor: titleFallbackExtractor,\n }),\n },\n ],\n },\n 'action-outputparams-must-have-a-description': {\n description: 'All action output parameters MUST have a description',\n message: '{{description}}: {{error}} MUST provide a non-empty description by using .describe() in its Zod schema',\n severity: 'error',\n given: '$.actions[*].output..schema.properties[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) =>\n `output parameter \"${path.at(isFallback ? -4 : -2)}\" of action \"${path[1]}\"`,\n fallbackExtractor: descriptionFallbackExtractor,\n }),\n },\n ],\n },\n 'event-outputparams-should-have-title': {\n description: 'All event output parameters SHOULD have a title',\n message: '{{description}}: {{error}} SHOULD provide a non-empty title by using .title() in its Zod schema',\n severity: 'warn',\n given: '$.events[*]..schema.properties[*]',\n then: [\n {\n field: 'x-zui.title',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) =>\n `output parameter \"${path.at(isFallback ? -5 : -3)}\" of event \"${path[1]}\"`,\n fallbackExtractor: titleFallbackExtractor,\n }),\n },\n ],\n },\n 'event-outputparams-must-have-description': {\n description: 'All event output parameters MUST have a description',\n message:\n '{{description}}: {{error}} SHOULD provide a non-empty description by using .describe() in its Zod schema',\n severity: 'error',\n given: '$.events[*]..schema.properties[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) =>\n `output parameter \"${path.at(isFallback ? -4 : -2)}\" of event \"${path[1]}\"`,\n fallbackExtractor: descriptionFallbackExtractor,\n }),\n },\n ],\n },\n 'events-must-have-a-title': {\n description: 'All events MUST have a title',\n message: '{{description}}: {{error}} MUST be a non-empty string',\n severity: 'error',\n given: '$.events[*]',\n then: [{ field: 'title', function: truthyWithMessage(({ path }) => `event \"${path[1]}\"`) }],\n },\n 'events-must-have-a-description': {\n description: 'All events MUST have a description',\n message: '{{description}}: {{error}} MUST be a non-empty string',\n severity: 'error',\n given: '$.events[*]',\n then: [{ field: 'description', function: truthyWithMessage(({ path }) => `event \"${path[1]}\"`) }],\n },\n 'consider-migrating-to-configurations': {\n description:\n 'Consider migrating to the new multiple configuration format: you MAY move your configuration from \"configuration\" to \"configurations\" and remove the \"configuration\" property',\n severity: 'off',\n given: '$',\n then: [\n { field: 'configuration', function: falsy },\n { field: 'configurations', function: truthy },\n ],\n },\n 'configuration-fields-must-have-a-title': {\n description: 'All configuration fields MUST have a title',\n message: '{{description}}: {{error}} MUST provide a non-empty title by using .title() in its Zod schema',\n severity: 'error',\n given: '$.configuration..schema.properties[*].x-zui',\n then: [\n {\n field: 'title',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) => `configuration parameter \"${path.at(isFallback ? -5 : -3)}\"`,\n fallbackExtractor: titleFallbackExtractor,\n }),\n },\n ],\n },\n 'configuration-fields-must-have-a-description': {\n description: 'All configuration fields MUST have a description',\n message: '{{description}}: {{error}} MUST provide a non-empty description by using .describe() in its Zod schema',\n severity: 'error',\n given: '$.configuration..schema.properties[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) => `configuration parameter \"${path.at(isFallback ? -4 : -2)}\"`,\n fallbackExtractor: descriptionFallbackExtractor,\n }),\n },\n ],\n },\n 'multiple-configurations-must-have-a-title': {\n description: 'Multiple configuration definitions MUST have a title',\n message: '{{description}}: {{error}} MUST have a title',\n severity: 'error',\n given: '$.configurations[*]',\n then: [{ field: 'title', function: truthyWithMessage(({ path }) => `configuration \"${path[1]}\"`) }],\n },\n 'multiple-configurations-must-have-a-description': {\n description: 'Multiple configuration definitions MUST have a description',\n message: '{{description}}: {{error}} MUST have a description',\n severity: 'error',\n given: '$.configurations[*]',\n then: [{ field: 'description', function: truthyWithMessage(({ path }) => `configuration \"${path[1]}\"`) }],\n },\n 'multipes-configurations-fields-must-have-a-title': {\n description: 'All configuration fields in multiple configurations MUST have a title',\n message: '{{description}}: {{error}} MUST provide a non-empty title by using .title() in its Zod schema',\n severity: 'error',\n given: '$.configurations[*]..schema.properties[*].x-zui',\n then: [\n {\n field: 'title',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) =>\n `configuration field \"${path.at(isFallback ? -5 : -3)}\" of configuration \"${path[1]}\"`,\n fallbackExtractor: titleFallbackExtractor,\n }),\n },\n ],\n },\n 'multipes-configurations-fields-must-have-a-description': {\n description: 'All configuration fields in multiple configurations MUST have a description',\n message: '{{description}}: {{error}} MUST provide a non-empty description by using .describe() in its Zod schema',\n severity: 'error',\n given: '$.configurations[*]..schema.properties[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) =>\n `configuration field \"${path.at(isFallback ? -4 : -2)}\" of configuration \"${path[1]}\"`,\n fallbackExtractor: descriptionFallbackExtractor,\n }),\n },\n ],\n },\n 'user-tags-should-have-a-title': {\n description: 'All user tags SHOULD have a title',\n message: '{{description}}: {{error}} SHOULD have a non-empty title',\n severity: 'warn',\n given: '$.user.tags[*]',\n then: [\n {\n field: 'title',\n function: truthyWithMessage(({ path }) => `user tag \"${path[2]}\"`),\n },\n ],\n },\n 'user-tags-must-have-a-description': {\n description: 'All user tags MUST have a description',\n message: '{{description}}: {{error}} MUST have a non-empty description',\n severity: 'error',\n given: '$.user.tags[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage(({ path }) => `user tag \"${path[2]}\"`),\n },\n ],\n },\n 'channels-should-have-a-title': {\n description: 'All channels SHOULD have a title',\n message: '{{description}}: {{error}} SHOULD have a non-empty title',\n severity: 'warn',\n given: '$.channels[*]',\n then: [\n {\n field: 'title',\n function: truthyWithMessage(({ path }) => `channel \"${path[1]}\"`),\n },\n ],\n },\n 'channels-must-have-a-description': {\n description: 'All channels MUST have a description',\n message: '{{description}}: {{error}} MUST have a non-empty description',\n severity: 'error',\n given: '$.channels[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage(({ path }) => `channel \"${path[1]}\"`),\n },\n ],\n },\n 'channels-conversation-tags-should-have-a-title': {\n description: 'All conversation tags SHOULD have a title',\n message: '{{description}}: {{error}} SHOULD have a non-empty title',\n severity: 'warn',\n given: '$.channels[*].conversation.tags[*]',\n then: [\n {\n field: 'title',\n function: truthyWithMessage(({ path }) => `conversation tag \"${path.at(-2)}\" of channel \"${path[1]}\"`),\n },\n ],\n },\n 'channels-conversation-tags-must-have-a-description': {\n description: 'All conversation tags MUST have a description',\n message: '{{description}}: {{error}} MUST have a non-empty description',\n severity: 'error',\n given: '$.channels[*].conversation.tags[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage(({ path }) => `conversation tag \"${path.at(-2)}\" of channel \"${path[1]}\"`),\n },\n ],\n },\n 'channels-message-tags-should-have-a-title': {\n description: 'All message tags SHOULD have a title',\n message: '{{description}}: {{error}} SHOULD have a non-empty title',\n severity: 'warn',\n given: '$.channels[*].message.tags[*]',\n then: [\n {\n field: 'title',\n function: truthyWithMessage(({ path }) => `message tag \"${path.at(-2)}\" of channel \"${path[1]}\"`),\n },\n ],\n },\n 'channels-message-tags-must-have-a-description': {\n description: 'All message tags MUST have a description',\n message: '{{description}}: {{error}} MUST have a non-empty description',\n severity: 'error',\n given: '$.channels[*].message.tags[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage(({ path }) => `message tag \"${path.at(-2)}\" of channel \"${path[1]}\"`),\n },\n ],\n },\n 'legacy-zui-title-should-be-removed': {\n description:\n 'Legacy ZUI title fields (ui.title) SHOULD be removed. Please use .title() in your Zod schemas instead',\n severity: 'error',\n given: '$..ui[*].title',\n then: [{ function: falsy }],\n },\n 'legacy-zui-examples-should-be-removed': {\n description: 'Legacy ZUI examples fields (ui.examples) SHOULD be removed. There are currently no alternatives',\n severity: 'hint',\n given: '$..ui[*].examples',\n then: [{ function: falsy }],\n },\n 'state-fields-should-have-title': {\n description: 'All state fields SHOULD have a title',\n message: '{{description}}: {{error}} SHOULD provide a non-empty title by using .title() in its Zod schema',\n severity: 'warn',\n given: '$.states[*]..schema.properties[*]',\n then: [\n {\n field: 'x-zui.title',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) => `field \"${path.at(isFallback ? -5 : -3)}\" of state \"${path[1]}\"`,\n fallbackExtractor: titleFallbackExtractor,\n }),\n },\n ],\n },\n 'state-fields-must-have-description': {\n description: 'All state fields MUST have a description',\n message:\n '{{description}}: {{error}} SHOULD provide a non-empty description by using .describe() in its Zod schema',\n severity: 'error',\n given: '$.states[*]..schema.properties[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) => `field \"${path.at(isFallback ? -4 : -2)}\" of state \"${path[1]}\"`,\n fallbackExtractor: descriptionFallbackExtractor,\n }),\n },\n ],\n },\n 'secrets-must-have-a-description': {\n description: 'All secrets MUST have a description',\n message: '{{description}}: {{error}} MUST have a non-empty description',\n severity: 'error',\n given: '$.secrets[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage(({ path }) => `secret \"${path[1]}\"`),\n },\n ],\n },\n },\n} satisfies RulesetDefinition\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["import { falsy, truthy } from '@stoplight/spectral-functions'\nimport { preprocessRuleset } from '../ruleset-functions'\nimport { descriptionFallbackExtractor, titleFallbackExtractor, truthyWithMessage } from '../spectral-functions'\n\nexport const INTEGRATION_RULESET = preprocessRuleset({\n extends: [],\n rules: {\n 'integration-title-must-be-present': {\n description: 'The integration {{callToAction}} have a non-empty title',\n severity: 'error',\n given: '$',\n then: [{ field: 'title', function: truthy }],\n },\n 'integration-description-must-be-present': {\n description: 'The integration {{callToAction}} have a non-empty description',\n severity: 'error',\n given: '$',\n then: [{ field: 'description', function: truthy }],\n },\n 'integration-must-have-an-icon': {\n description: 'The integration {{callToAction}} have an icon',\n severity: 'error',\n given: '$',\n then: [{ field: 'icon', function: truthy }],\n },\n 'integration-must-have-a-readme-file': {\n description: 'The integration {{callToAction}} have a readme file',\n severity: 'error',\n given: '$',\n then: [{ field: 'readme', function: truthy }],\n },\n 'actions-should-have-a-title': {\n description: 'All actions {{callToAction}} have a title',\n message: '{{description}}: {{error}} {{callToAction}} have a non-empty title',\n severity: 'warn',\n given: '$.actions[*]',\n then: [{ field: 'title', function: truthyWithMessage(({ path }) => `action \"${path[1]}\"`) }],\n },\n 'actions-must-have-a-description': {\n description: 'All actions {{callToAction}} have a description',\n message: '{{description}}: {{error}} {{callToAction}} have a non-empty description',\n severity: 'error',\n given: '$.actions[*]',\n then: [{ field: 'description', function: truthyWithMessage(({ path }) => `action \"${path[1]}\"`) }],\n },\n 'action-inputparams-should-have-a-title': {\n description: 'All action input parameters {{callToAction}} have a title',\n message:\n '{{description}}: {{error}} {{callToAction}} provide a non-empty title by using .title() in its Zod schema',\n severity: 'warn',\n given: '$.actions[*].input..schema.properties[*]',\n then: [\n {\n field: 'x-zui.title',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) =>\n `input parameter \"${path.at(isFallback ? -5 : -3)}\" of action \"${path[1]}\"`,\n fallbackExtractor: titleFallbackExtractor,\n }),\n },\n ],\n },\n 'action-inputparams-must-have-a-description': {\n description: 'All action input parameters {{callToAction}} have a description',\n message:\n '{{description}}: {{error}} {{callToAction}} provide a non-empty description by using .describe() in its Zod schema',\n severity: 'error',\n given: '$.actions[*].input..schema.properties[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) =>\n `input parameter \"${path.at(isFallback ? -4 : -2)}\" of action \"${path[1]}\"`,\n fallbackExtractor: descriptionFallbackExtractor,\n }),\n },\n ],\n },\n 'action-outputparams-should-have-a-title': {\n description: 'All action output parameters {{callToAction}} have a title',\n message:\n '{{description}}: {{error}} {{callToAction}} provide a non-empty title by using .title() in its Zod schema',\n severity: 'warn',\n given: '$.actions[*].output..schema.properties[*].x-zui',\n then: [\n {\n field: 'title',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) =>\n `output parameter \"${path.at(isFallback ? -5 : -3)}\" of action \"${path[1]}\"`,\n fallbackExtractor: titleFallbackExtractor,\n }),\n },\n ],\n },\n 'action-outputparams-must-have-a-description': {\n description: 'All action output parameters {{callToAction}} have a description',\n message:\n '{{description}}: {{error}} {{callToAction}} provide a non-empty description by using .describe() in its Zod schema',\n severity: 'error',\n given: '$.actions[*].output..schema.properties[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) =>\n `output parameter \"${path.at(isFallback ? -4 : -2)}\" of action \"${path[1]}\"`,\n fallbackExtractor: descriptionFallbackExtractor,\n }),\n },\n ],\n },\n 'event-outputparams-should-have-title': {\n description: 'All event output parameters {{callToAction}} have a title',\n message:\n '{{description}}: {{error}} {{callToAction}} provide a non-empty title by using .title() in its Zod schema',\n severity: 'warn',\n given: '$.events[*]..schema.properties[*]',\n then: [\n {\n field: 'x-zui.title',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) =>\n `output parameter \"${path.at(isFallback ? -5 : -3)}\" of event \"${path[1]}\"`,\n fallbackExtractor: titleFallbackExtractor,\n }),\n },\n ],\n },\n 'event-outputparams-must-have-description': {\n description: 'All event output parameters {{callToAction}} have a description',\n message:\n '{{description}}: {{error}} {{callToAction}} provide a non-empty description by using .describe() in its Zod schema',\n severity: 'error',\n given: '$.events[*]..schema.properties[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) =>\n `output parameter \"${path.at(isFallback ? -4 : -2)}\" of event \"${path[1]}\"`,\n fallbackExtractor: descriptionFallbackExtractor,\n }),\n },\n ],\n },\n 'events-must-have-a-title': {\n description: 'All events {{callToAction}} have a title',\n message: '{{description}}: {{error}} {{callToAction}} be a non-empty string',\n severity: 'error',\n given: '$.events[*]',\n then: [{ field: 'title', function: truthyWithMessage(({ path }) => `event \"${path[1]}\"`) }],\n },\n 'events-must-have-a-description': {\n description: 'All events {{callToAction}} have a description',\n message: '{{description}}: {{error}} {{callToAction}} be a non-empty string',\n severity: 'error',\n given: '$.events[*]',\n then: [{ field: 'description', function: truthyWithMessage(({ path }) => `event \"${path[1]}\"`) }],\n },\n 'consider-migrating-to-configurations': {\n description:\n 'Consider migrating to the new multiple configuration format: you MAY move your configuration from \"configuration\" to \"configurations\" and remove the \"configuration\" property',\n severity: 'off',\n given: '$',\n then: [\n { field: 'configuration', function: falsy },\n { field: 'configurations', function: truthy },\n ],\n },\n 'configuration-fields-must-have-a-title': {\n description: 'All configuration fields {{callToAction}} have a title',\n message:\n '{{description}}: {{error}} {{callToAction}} provide a non-empty title by using .title() in its Zod schema',\n severity: 'error',\n given: '$.configuration..schema.properties[*].x-zui',\n then: [\n {\n field: 'title',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) => `configuration parameter \"${path.at(isFallback ? -5 : -3)}\"`,\n fallbackExtractor: titleFallbackExtractor,\n }),\n },\n ],\n },\n 'configuration-fields-must-have-a-description': {\n description: 'All configuration fields {{callToAction}} have a description',\n message:\n '{{description}}: {{error}} {{callToAction}} provide a non-empty description by using .describe() in its Zod schema',\n severity: 'error',\n given: '$.configuration..schema.properties[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) => `configuration parameter \"${path.at(isFallback ? -4 : -2)}\"`,\n fallbackExtractor: descriptionFallbackExtractor,\n }),\n },\n ],\n },\n 'multiple-configurations-must-have-a-title': {\n description: 'Multiple configuration definitions {{callToAction}} have a title',\n message: '{{description}}: {{error}} {{callToAction}} have a title',\n severity: 'error',\n given: '$.configurations[*]',\n then: [{ field: 'title', function: truthyWithMessage(({ path }) => `configuration \"${path[1]}\"`) }],\n },\n 'multiple-configurations-must-have-a-description': {\n description: 'Multiple configuration definitions {{callToAction}} have a description',\n message: '{{description}}: {{error}} {{callToAction}} have a description',\n severity: 'error',\n given: '$.configurations[*]',\n then: [{ field: 'description', function: truthyWithMessage(({ path }) => `configuration \"${path[1]}\"`) }],\n },\n 'multipes-configurations-fields-must-have-a-title': {\n description: 'All configuration fields in multiple configurations {{callToAction}} have a title',\n message:\n '{{description}}: {{error}} {{callToAction}} provide a non-empty title by using .title() in its Zod schema',\n severity: 'error',\n given: '$.configurations[*]..schema.properties[*].x-zui',\n then: [\n {\n field: 'title',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) =>\n `configuration field \"${path.at(isFallback ? -5 : -3)}\" of configuration \"${path[1]}\"`,\n fallbackExtractor: titleFallbackExtractor,\n }),\n },\n ],\n },\n 'multipes-configurations-fields-must-have-a-description': {\n description: 'All configuration fields in multiple configurations {{callToAction}} have a description',\n message:\n '{{description}}: {{error}} {{callToAction}} provide a non-empty description by using .describe() in its Zod schema',\n severity: 'error',\n given: '$.configurations[*]..schema.properties[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) =>\n `configuration field \"${path.at(isFallback ? -4 : -2)}\" of configuration \"${path[1]}\"`,\n fallbackExtractor: descriptionFallbackExtractor,\n }),\n },\n ],\n },\n 'user-tags-should-have-a-title': {\n description: 'All user tags {{callToAction}} have a title',\n message: '{{description}}: {{error}} {{callToAction}} have a non-empty title',\n severity: 'warn',\n given: '$.user.tags[*]',\n then: [\n {\n field: 'title',\n function: truthyWithMessage(({ path }) => `user tag \"${path[2]}\"`),\n },\n ],\n },\n 'user-tags-must-have-a-description': {\n description: 'All user tags {{callToAction}} have a description',\n message: '{{description}}: {{error}} {{callToAction}} have a non-empty description',\n severity: 'error',\n given: '$.user.tags[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage(({ path }) => `user tag \"${path[2]}\"`),\n },\n ],\n },\n 'channels-should-have-a-title': {\n description: 'All channels {{callToAction}} have a title',\n message: '{{description}}: {{error}} {{callToAction}} have a non-empty title',\n severity: 'warn',\n given: '$.channels[*]',\n then: [\n {\n field: 'title',\n function: truthyWithMessage(({ path }) => `channel \"${path[1]}\"`),\n },\n ],\n },\n 'channels-must-have-a-description': {\n description: 'All channels {{callToAction}} have a description',\n message: '{{description}}: {{error}} {{callToAction}} have a non-empty description',\n severity: 'error',\n given: '$.channels[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage(({ path }) => `channel \"${path[1]}\"`),\n },\n ],\n },\n 'channels-conversation-tags-should-have-a-title': {\n description: 'All conversation tags {{callToAction}} have a title',\n message: '{{description}}: {{error}} {{callToAction}} have a non-empty title',\n severity: 'warn',\n given: '$.channels[*].conversation.tags[*]',\n then: [\n {\n field: 'title',\n function: truthyWithMessage(({ path }) => `conversation tag \"${path.at(-2)}\" of channel \"${path[1]}\"`),\n },\n ],\n },\n 'channels-conversation-tags-must-have-a-description': {\n description: 'All conversation tags {{callToAction}} have a description',\n message: '{{description}}: {{error}} {{callToAction}} have a non-empty description',\n severity: 'error',\n given: '$.channels[*].conversation.tags[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage(({ path }) => `conversation tag \"${path.at(-2)}\" of channel \"${path[1]}\"`),\n },\n ],\n },\n 'channels-message-tags-should-have-a-title': {\n description: 'All message tags {{callToAction}} have a title',\n message: '{{description}}: {{error}} {{callToAction}} have a non-empty title',\n severity: 'warn',\n given: '$.channels[*].message.tags[*]',\n then: [\n {\n field: 'title',\n function: truthyWithMessage(({ path }) => `message tag \"${path.at(-2)}\" of channel \"${path[1]}\"`),\n },\n ],\n },\n 'channels-message-tags-must-have-a-description': {\n description: 'All message tags {{callToAction}} have a description',\n message: '{{description}}: {{error}} {{callToAction}} have a non-empty description',\n severity: 'error',\n given: '$.channels[*].message.tags[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage(({ path }) => `message tag \"${path.at(-2)}\" of channel \"${path[1]}\"`),\n },\n ],\n },\n 'legacy-zui-title-should-be-removed': {\n description:\n 'Legacy ZUI title fields (ui.title) {{callToAction}} be removed. Please use .title() in your Zod schemas instead',\n severity: 'error',\n given: '$..ui[*].title',\n then: [{ function: falsy }],\n },\n 'legacy-zui-examples-should-be-removed': {\n description:\n 'Legacy ZUI examples fields (ui.examples) {{callToAction}} be removed. There are currently no alternatives',\n severity: 'hint',\n given: '$..ui[*].examples',\n then: [{ function: falsy }],\n },\n 'state-fields-should-have-title': {\n description: 'All state fields {{callToAction}} have a title',\n message:\n '{{description}}: {{error}} {{callToAction}} provide a non-empty title by using .title() in its Zod schema',\n severity: 'warn',\n given: '$.states[*]..schema.properties[*]',\n then: [\n {\n field: 'x-zui.title',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) => `field \"${path.at(isFallback ? -5 : -3)}\" of state \"${path[1]}\"`,\n fallbackExtractor: titleFallbackExtractor,\n }),\n },\n ],\n },\n 'state-fields-must-have-description': {\n description: 'All state fields {{callToAction}} have a description',\n message:\n '{{description}}: {{error}} {{callToAction}} provide a non-empty description by using .describe() in its Zod schema',\n severity: 'error',\n given: '$.states[*]..schema.properties[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage({\n failMsgMapper: ({ path, isFallback }) => `field \"${path.at(isFallback ? -4 : -2)}\" of state \"${path[1]}\"`,\n fallbackExtractor: descriptionFallbackExtractor,\n }),\n },\n ],\n },\n 'secrets-must-have-a-description': {\n description: 'All secrets {{callToAction}} have a description',\n message: '{{description}}: {{error}} {{callToAction}} have a non-empty description',\n severity: 'error',\n given: '$.secrets[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage(({ path }) => `secret \"${path[1]}\"`),\n },\n ],\n },\n },\n})\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAA8B;AAC9B,+BAAkC;AAClC,IAAAA,6BAAwF;AAEjF,MAAM,0BAAsB,4CAAkB;AAAA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,UACrB,CAAC;AAAA,QACH;AAAA,MACF;AAAA,IACF;AAAA,IACA,mCAAmC;AAAA,MACjC,aAAa;AAAA,MACb,SAAS;AAAA,MACT,UAAU;AAAA,MACV,OAAO;AAAA,MACP,MAAM;AAAA,QACJ;AAAA,UACE,OAAO;AAAA,UACP,cAAU,8CAAkB,CAAC,EAAE,KAAK,MAAM,WAAW,KAAK,CAAC,CAAC,GAAG;AAAA,QACjE;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF,CAAC;",
|
|
6
6
|
"names": ["import_spectral_functions"]
|
|
7
7
|
}
|
|
@@ -1,101 +1 @@
|
|
|
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: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
'action-inputparams-must-have-a-description': {
|
|
15
|
-
description: string;
|
|
16
|
-
message: string;
|
|
17
|
-
severity: "error";
|
|
18
|
-
given: string;
|
|
19
|
-
then: {
|
|
20
|
-
field: string;
|
|
21
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
22
|
-
}[];
|
|
23
|
-
};
|
|
24
|
-
'action-outputparams-should-have-a-title': {
|
|
25
|
-
description: string;
|
|
26
|
-
message: string;
|
|
27
|
-
severity: "warn";
|
|
28
|
-
given: string;
|
|
29
|
-
then: {
|
|
30
|
-
field: string;
|
|
31
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
32
|
-
}[];
|
|
33
|
-
};
|
|
34
|
-
'action-outputparams-must-have-a-description': {
|
|
35
|
-
description: string;
|
|
36
|
-
message: string;
|
|
37
|
-
severity: "error";
|
|
38
|
-
given: string;
|
|
39
|
-
then: {
|
|
40
|
-
field: string;
|
|
41
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
42
|
-
}[];
|
|
43
|
-
};
|
|
44
|
-
'event-outputparams-should-have-title': {
|
|
45
|
-
description: string;
|
|
46
|
-
message: string;
|
|
47
|
-
severity: "warn";
|
|
48
|
-
given: string;
|
|
49
|
-
then: {
|
|
50
|
-
field: string;
|
|
51
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
52
|
-
}[];
|
|
53
|
-
};
|
|
54
|
-
'event-outputparams-must-have-description': {
|
|
55
|
-
description: string;
|
|
56
|
-
message: string;
|
|
57
|
-
severity: "error";
|
|
58
|
-
given: string;
|
|
59
|
-
then: {
|
|
60
|
-
field: string;
|
|
61
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
62
|
-
}[];
|
|
63
|
-
};
|
|
64
|
-
'legacy-zui-title-should-be-removed': {
|
|
65
|
-
description: string;
|
|
66
|
-
severity: "error";
|
|
67
|
-
given: string;
|
|
68
|
-
then: {
|
|
69
|
-
function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<unknown, null>;
|
|
70
|
-
}[];
|
|
71
|
-
};
|
|
72
|
-
'legacy-zui-examples-should-be-removed': {
|
|
73
|
-
description: string;
|
|
74
|
-
severity: "hint";
|
|
75
|
-
given: string;
|
|
76
|
-
then: {
|
|
77
|
-
function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<unknown, null>;
|
|
78
|
-
}[];
|
|
79
|
-
};
|
|
80
|
-
'entity-fields-should-have-a-title': {
|
|
81
|
-
description: string;
|
|
82
|
-
message: string;
|
|
83
|
-
severity: "warn";
|
|
84
|
-
given: string;
|
|
85
|
-
then: {
|
|
86
|
-
field: string;
|
|
87
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
88
|
-
}[];
|
|
89
|
-
};
|
|
90
|
-
'entity-fields-must-have-a-description': {
|
|
91
|
-
description: string;
|
|
92
|
-
message: string;
|
|
93
|
-
severity: "error";
|
|
94
|
-
given: string;
|
|
95
|
-
then: {
|
|
96
|
-
field: string;
|
|
97
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
98
|
-
}[];
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
};
|
|
1
|
+
export declare const INTERFACE_RULESET: import("@stoplight/spectral-core").RulesetDefinition & import("../ruleset-tests/common").Ruleset;
|