@botpress/cli 5.5.0 → 5.5.2
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 +12 -12
- package/dist/command-implementations/lint-command.js +13 -6
- package/dist/command-implementations/lint-command.js.map +2 -2
- 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 +4 -4
- 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,13 +22,14 @@ __export(bot_ruleset_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(bot_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 BOT_RULESET = {
|
|
27
|
+
const BOT_RULESET = (0, import_ruleset_functions.preprocessRuleset)({
|
|
27
28
|
extends: [],
|
|
28
29
|
rules: {
|
|
29
30
|
"event-outputparams-should-have-title": {
|
|
30
|
-
description: "All event output parameters
|
|
31
|
-
message: "{{description}}: {{error}}
|
|
31
|
+
description: "All event output parameters {{callToAction}} have a title",
|
|
32
|
+
message: "{{description}}: {{error}} {{callToAction}} provide a non-empty title by using .title() in its Zod schema",
|
|
32
33
|
severity: "warn",
|
|
33
34
|
given: "$.events[*]..schema.properties[*]",
|
|
34
35
|
then: [
|
|
@@ -42,8 +43,8 @@ const BOT_RULESET = {
|
|
|
42
43
|
]
|
|
43
44
|
},
|
|
44
45
|
"event-outputparams-must-have-description": {
|
|
45
|
-
description: "All event output parameters
|
|
46
|
-
message: "{{description}}: {{error}}
|
|
46
|
+
description: "All event output parameters {{callToAction}} have a description",
|
|
47
|
+
message: "{{description}}: {{error}} {{callToAction}} provide a non-empty description by using .describe() in its Zod schema",
|
|
47
48
|
severity: "error",
|
|
48
49
|
given: "$.events[*]..schema.properties[*]",
|
|
49
50
|
then: [
|
|
@@ -57,8 +58,8 @@ const BOT_RULESET = {
|
|
|
57
58
|
]
|
|
58
59
|
},
|
|
59
60
|
"configuration-fields-must-have-a-title": {
|
|
60
|
-
description: "All configuration fields
|
|
61
|
-
message: "{{description}}: {{error}}
|
|
61
|
+
description: "All configuration fields {{callToAction}} have a title",
|
|
62
|
+
message: "{{description}}: {{error}} {{callToAction}} provide a non-empty title by using .title() in its Zod schema",
|
|
62
63
|
severity: "error",
|
|
63
64
|
given: "$.configuration..schema.properties[*].x-zui",
|
|
64
65
|
then: [
|
|
@@ -72,8 +73,8 @@ const BOT_RULESET = {
|
|
|
72
73
|
]
|
|
73
74
|
},
|
|
74
75
|
"configuration-fields-must-have-a-description": {
|
|
75
|
-
description: "All configuration fields
|
|
76
|
-
message: "{{description}}: {{error}}
|
|
76
|
+
description: "All configuration fields {{callToAction}} have a description",
|
|
77
|
+
message: "{{description}}: {{error}} {{callToAction}} provide a non-empty description by using .describe() in its Zod schema",
|
|
77
78
|
severity: "error",
|
|
78
79
|
given: "$.configuration..schema.properties[*]",
|
|
79
80
|
then: [
|
|
@@ -87,8 +88,8 @@ const BOT_RULESET = {
|
|
|
87
88
|
]
|
|
88
89
|
},
|
|
89
90
|
"user-tags-should-have-a-title": {
|
|
90
|
-
description: "All user tags
|
|
91
|
-
message: "{{description}}: {{error}}
|
|
91
|
+
description: "All user tags {{callToAction}} have a title",
|
|
92
|
+
message: "{{description}}: {{error}} {{callToAction}} have a non-empty title",
|
|
92
93
|
severity: "warn",
|
|
93
94
|
given: "$.user.tags[*]",
|
|
94
95
|
then: [
|
|
@@ -99,8 +100,8 @@ const BOT_RULESET = {
|
|
|
99
100
|
]
|
|
100
101
|
},
|
|
101
102
|
"user-tags-must-have-a-description": {
|
|
102
|
-
description: "All user tags
|
|
103
|
-
message: "{{description}}: {{error}}
|
|
103
|
+
description: "All user tags {{callToAction}} have a description",
|
|
104
|
+
message: "{{description}}: {{error}} {{callToAction}} have a non-empty description",
|
|
104
105
|
severity: "error",
|
|
105
106
|
given: "$.user.tags[*]",
|
|
106
107
|
then: [
|
|
@@ -111,8 +112,8 @@ const BOT_RULESET = {
|
|
|
111
112
|
]
|
|
112
113
|
},
|
|
113
114
|
"conversation-tags-should-have-a-title": {
|
|
114
|
-
description: "All conversation tags
|
|
115
|
-
message: "{{description}}: {{error}}
|
|
115
|
+
description: "All conversation tags {{callToAction}} have a title",
|
|
116
|
+
message: "{{description}}: {{error}} {{callToAction}} have a non-empty title",
|
|
116
117
|
severity: "warn",
|
|
117
118
|
given: "$.conversation.tags[*]",
|
|
118
119
|
then: [
|
|
@@ -123,8 +124,8 @@ const BOT_RULESET = {
|
|
|
123
124
|
]
|
|
124
125
|
},
|
|
125
126
|
"conversation-tags-must-have-a-description": {
|
|
126
|
-
description: "All conversation tags
|
|
127
|
-
message: "{{description}}: {{error}}
|
|
127
|
+
description: "All conversation tags {{callToAction}} have a description",
|
|
128
|
+
message: "{{description}}: {{error}} {{callToAction}} have a non-empty description",
|
|
128
129
|
severity: "error",
|
|
129
130
|
given: "$.conversation.tags[*]",
|
|
130
131
|
then: [
|
|
@@ -135,8 +136,8 @@ const BOT_RULESET = {
|
|
|
135
136
|
]
|
|
136
137
|
},
|
|
137
138
|
"message-tags-should-have-a-title": {
|
|
138
|
-
description: "All message tags
|
|
139
|
-
message: "{{description}}: {{error}}
|
|
139
|
+
description: "All message tags {{callToAction}} have a title",
|
|
140
|
+
message: "{{description}}: {{error}} {{callToAction}} have a non-empty title",
|
|
140
141
|
severity: "warn",
|
|
141
142
|
given: "$.message.tags[*]",
|
|
142
143
|
then: [
|
|
@@ -147,8 +148,8 @@ const BOT_RULESET = {
|
|
|
147
148
|
]
|
|
148
149
|
},
|
|
149
150
|
"message-tags-must-have-a-description": {
|
|
150
|
-
description: "All message tags
|
|
151
|
-
message: "{{description}}: {{error}}
|
|
151
|
+
description: "All message tags {{callToAction}} have a description",
|
|
152
|
+
message: "{{description}}: {{error}} {{callToAction}} have a non-empty description",
|
|
152
153
|
severity: "error",
|
|
153
154
|
given: "$.message.tags[*]",
|
|
154
155
|
then: [
|
|
@@ -159,20 +160,20 @@ const BOT_RULESET = {
|
|
|
159
160
|
]
|
|
160
161
|
},
|
|
161
162
|
"legacy-zui-title-should-be-removed": {
|
|
162
|
-
description: "Legacy ZUI title fields (ui.title)
|
|
163
|
+
description: "Legacy ZUI title fields (ui.title) {{callToAction}} be removed. Please use .title() in your Zod schemas instead",
|
|
163
164
|
severity: "error",
|
|
164
165
|
given: "$..ui[*].title",
|
|
165
166
|
then: [{ function: import_spectral_functions.falsy }]
|
|
166
167
|
},
|
|
167
168
|
"legacy-zui-examples-should-be-removed": {
|
|
168
|
-
description: "Legacy ZUI examples fields (ui.examples)
|
|
169
|
+
description: "Legacy ZUI examples fields (ui.examples) {{callToAction}} be removed. There are currently no alternatives",
|
|
169
170
|
severity: "hint",
|
|
170
171
|
given: "$..ui[*].examples",
|
|
171
172
|
then: [{ function: import_spectral_functions.falsy }]
|
|
172
173
|
},
|
|
173
174
|
"state-fields-should-have-title": {
|
|
174
|
-
description: "All state fields
|
|
175
|
-
message: "{{description}}: {{error}}
|
|
175
|
+
description: "All state fields {{callToAction}} have a title",
|
|
176
|
+
message: "{{description}}: {{error}} {{callToAction}} provide a non-empty title by using .title() in its Zod schema",
|
|
176
177
|
severity: "warn",
|
|
177
178
|
given: "$.states[*]..schema.properties[*]",
|
|
178
179
|
then: [
|
|
@@ -186,8 +187,8 @@ const BOT_RULESET = {
|
|
|
186
187
|
]
|
|
187
188
|
},
|
|
188
189
|
"state-fields-must-have-description": {
|
|
189
|
-
description: "All state fields
|
|
190
|
-
message: "{{description}}: {{error}}
|
|
190
|
+
description: "All state fields {{callToAction}} have a description",
|
|
191
|
+
message: "{{description}}: {{error}} {{callToAction}} provide a non-empty description by using .describe() in its Zod schema",
|
|
191
192
|
severity: "error",
|
|
192
193
|
given: "$.states[*]..schema.properties[*]",
|
|
193
194
|
then: [
|
|
@@ -201,7 +202,7 @@ const BOT_RULESET = {
|
|
|
201
202
|
]
|
|
202
203
|
}
|
|
203
204
|
}
|
|
204
|
-
};
|
|
205
|
+
});
|
|
205
206
|
// Annotate the CommonJS export names for ESM import in node:
|
|
206
207
|
0 && (module.exports = {
|
|
207
208
|
BOT_RULESET
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/linter/rulesets/bot.ruleset.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["import { falsy } from '@stoplight/spectral-functions'\nimport { preprocessRuleset } from '../ruleset-functions'\nimport { descriptionFallbackExtractor, titleFallbackExtractor, truthyWithMessage } from '../spectral-functions'\n\nexport const BOT_RULESET = preprocessRuleset({\n extends: [],\n rules: {\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 '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 '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 '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: '$.conversation.tags[*]',\n then: [\n {\n field: 'title',\n function: truthyWithMessage(({ path }) => `conversation tag \"${path[2]}\"`),\n },\n ],\n },\n '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: '$.conversation.tags[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage(({ path }) => `conversation tag \"${path[2]}\"`),\n },\n ],\n },\n '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: '$.message.tags[*]',\n then: [\n {\n field: 'title',\n function: truthyWithMessage(({ path }) => `message tag \"${path[2]}\"`),\n },\n ],\n },\n '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: '$.message.tags[*]',\n then: [\n {\n field: 'description',\n function: truthyWithMessage(({ path }) => `message tag \"${path[2]}\"`),\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 },\n})\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gCAAsB;AACtB,+BAAkC;AAClC,IAAAA,6BAAwF;AAEjF,MAAM,kBAAc,4CAAkB;AAAA,EAC3C,SAAS,CAAC;AAAA,EACV,OAAO;AAAA,IACL,wCAAwC;AAAA,MACtC,aAAa;AAAA,MACb,SACE;AAAA,MACF,UAAU;AAAA,MACV,OAAO;AAAA,MACP,MAAM;AAAA,QACJ;AAAA,UACE,OAAO;AAAA,UACP,cAAU,8CAAkB;AAAA,YAC1B,eAAe,CAAC,EAAE,MAAM,WAAW,MACjC,qBAAqB,KAAK,GAAG,aAAa,KAAK,EAAE,CAAC,eAAe,KAAK,CAAC,CAAC;AAAA,YAC1E,mBAAmB;AAAA,UACrB,CAAC;AAAA,QACH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C,CAAC,GAAG;AAAA,QACtE;AAAA,MACF;AAAA,IACF;AAAA,IACA,sCAAsC;AAAA,MACpC,aACE;AAAA,MACF,UAAU;AAAA,MACV,OAAO;AAAA,MACP,MAAM,CAAC,EAAE,UAAU,gCAAM,CAAC;AAAA,IAC5B;AAAA,IACA,yCAAyC;AAAA,MACvC,aACE;AAAA,MACF,UAAU;AAAA,MACV,OAAO;AAAA,MACP,MAAM,CAAC,EAAE,UAAU,gCAAM,CAAC;AAAA,IAC5B;AAAA,IACA,kCAAkC;AAAA,MAChC,aAAa;AAAA,MACb,SACE;AAAA,MACF,UAAU;AAAA,MACV,OAAO;AAAA,MACP,MAAM;AAAA,QACJ;AAAA,UACE,OAAO;AAAA,UACP,cAAU,8CAAkB;AAAA,YAC1B,eAAe,CAAC,EAAE,MAAM,WAAW,MAAM,UAAU,KAAK,GAAG,aAAa,KAAK,EAAE,CAAC,eAAe,KAAK,CAAC,CAAC;AAAA,YACtG,mBAAmB;AAAA,UACrB,CAAC;AAAA,QACH;AAAA,MACF;AAAA,IACF;AAAA,IACA,sCAAsC;AAAA,MACpC,aAAa;AAAA,MACb,SACE;AAAA,MACF,UAAU;AAAA,MACV,OAAO;AAAA,MACP,MAAM;AAAA,QACJ;AAAA,UACE,OAAO;AAAA,UACP,cAAU,8CAAkB;AAAA,YAC1B,eAAe,CAAC,EAAE,MAAM,WAAW,MAAM,UAAU,KAAK,GAAG,aAAa,KAAK,EAAE,CAAC,eAAe,KAAK,CAAC,CAAC;AAAA,YACtG,mBAAmB;AAAA,UACrB,CAAC;AAAA,QACH;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF,CAAC;",
|
|
6
6
|
"names": ["import_spectral_functions"]
|
|
7
7
|
}
|
|
@@ -1,336 +1 @@
|
|
|
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: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
48
|
-
}[];
|
|
49
|
-
};
|
|
50
|
-
'actions-must-have-a-description': {
|
|
51
|
-
description: string;
|
|
52
|
-
message: string;
|
|
53
|
-
severity: "error";
|
|
54
|
-
given: string;
|
|
55
|
-
then: {
|
|
56
|
-
field: string;
|
|
57
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
58
|
-
}[];
|
|
59
|
-
};
|
|
60
|
-
'action-inputparams-should-have-a-title': {
|
|
61
|
-
description: string;
|
|
62
|
-
message: string;
|
|
63
|
-
severity: "warn";
|
|
64
|
-
given: string;
|
|
65
|
-
then: {
|
|
66
|
-
field: string;
|
|
67
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
68
|
-
}[];
|
|
69
|
-
};
|
|
70
|
-
'action-inputparams-must-have-a-description': {
|
|
71
|
-
description: string;
|
|
72
|
-
message: string;
|
|
73
|
-
severity: "error";
|
|
74
|
-
given: string;
|
|
75
|
-
then: {
|
|
76
|
-
field: string;
|
|
77
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
78
|
-
}[];
|
|
79
|
-
};
|
|
80
|
-
'action-outputparams-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
|
-
'action-outputparams-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
|
-
'event-outputparams-should-have-title': {
|
|
101
|
-
description: string;
|
|
102
|
-
message: string;
|
|
103
|
-
severity: "warn";
|
|
104
|
-
given: string;
|
|
105
|
-
then: {
|
|
106
|
-
field: string;
|
|
107
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
108
|
-
}[];
|
|
109
|
-
};
|
|
110
|
-
'event-outputparams-must-have-description': {
|
|
111
|
-
description: string;
|
|
112
|
-
message: string;
|
|
113
|
-
severity: "error";
|
|
114
|
-
given: string;
|
|
115
|
-
then: {
|
|
116
|
-
field: string;
|
|
117
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
118
|
-
}[];
|
|
119
|
-
};
|
|
120
|
-
'events-must-have-a-title': {
|
|
121
|
-
description: string;
|
|
122
|
-
message: string;
|
|
123
|
-
severity: "error";
|
|
124
|
-
given: string;
|
|
125
|
-
then: {
|
|
126
|
-
field: string;
|
|
127
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
128
|
-
}[];
|
|
129
|
-
};
|
|
130
|
-
'events-must-have-a-description': {
|
|
131
|
-
description: string;
|
|
132
|
-
message: string;
|
|
133
|
-
severity: "error";
|
|
134
|
-
given: string;
|
|
135
|
-
then: {
|
|
136
|
-
field: string;
|
|
137
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
138
|
-
}[];
|
|
139
|
-
};
|
|
140
|
-
'consider-migrating-to-configurations': {
|
|
141
|
-
description: string;
|
|
142
|
-
severity: "off";
|
|
143
|
-
given: string;
|
|
144
|
-
then: {
|
|
145
|
-
field: string;
|
|
146
|
-
function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<unknown, null>;
|
|
147
|
-
}[];
|
|
148
|
-
};
|
|
149
|
-
'configuration-fields-must-have-a-title': {
|
|
150
|
-
description: string;
|
|
151
|
-
message: string;
|
|
152
|
-
severity: "error";
|
|
153
|
-
given: string;
|
|
154
|
-
then: {
|
|
155
|
-
field: string;
|
|
156
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
157
|
-
}[];
|
|
158
|
-
};
|
|
159
|
-
'configuration-fields-must-have-a-description': {
|
|
160
|
-
description: string;
|
|
161
|
-
message: string;
|
|
162
|
-
severity: "error";
|
|
163
|
-
given: string;
|
|
164
|
-
then: {
|
|
165
|
-
field: string;
|
|
166
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
167
|
-
}[];
|
|
168
|
-
};
|
|
169
|
-
'multiple-configurations-must-have-a-title': {
|
|
170
|
-
description: string;
|
|
171
|
-
message: string;
|
|
172
|
-
severity: "error";
|
|
173
|
-
given: string;
|
|
174
|
-
then: {
|
|
175
|
-
field: string;
|
|
176
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
177
|
-
}[];
|
|
178
|
-
};
|
|
179
|
-
'multiple-configurations-must-have-a-description': {
|
|
180
|
-
description: string;
|
|
181
|
-
message: string;
|
|
182
|
-
severity: "error";
|
|
183
|
-
given: string;
|
|
184
|
-
then: {
|
|
185
|
-
field: string;
|
|
186
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
187
|
-
}[];
|
|
188
|
-
};
|
|
189
|
-
'multipes-configurations-fields-must-have-a-title': {
|
|
190
|
-
description: string;
|
|
191
|
-
message: string;
|
|
192
|
-
severity: "error";
|
|
193
|
-
given: string;
|
|
194
|
-
then: {
|
|
195
|
-
field: string;
|
|
196
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
197
|
-
}[];
|
|
198
|
-
};
|
|
199
|
-
'multipes-configurations-fields-must-have-a-description': {
|
|
200
|
-
description: string;
|
|
201
|
-
message: string;
|
|
202
|
-
severity: "error";
|
|
203
|
-
given: string;
|
|
204
|
-
then: {
|
|
205
|
-
field: string;
|
|
206
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
207
|
-
}[];
|
|
208
|
-
};
|
|
209
|
-
'user-tags-should-have-a-title': {
|
|
210
|
-
description: string;
|
|
211
|
-
message: string;
|
|
212
|
-
severity: "warn";
|
|
213
|
-
given: string;
|
|
214
|
-
then: {
|
|
215
|
-
field: string;
|
|
216
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
217
|
-
}[];
|
|
218
|
-
};
|
|
219
|
-
'user-tags-must-have-a-description': {
|
|
220
|
-
description: string;
|
|
221
|
-
message: string;
|
|
222
|
-
severity: "error";
|
|
223
|
-
given: string;
|
|
224
|
-
then: {
|
|
225
|
-
field: string;
|
|
226
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
227
|
-
}[];
|
|
228
|
-
};
|
|
229
|
-
'channels-should-have-a-title': {
|
|
230
|
-
description: string;
|
|
231
|
-
message: string;
|
|
232
|
-
severity: "warn";
|
|
233
|
-
given: string;
|
|
234
|
-
then: {
|
|
235
|
-
field: string;
|
|
236
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
237
|
-
}[];
|
|
238
|
-
};
|
|
239
|
-
'channels-must-have-a-description': {
|
|
240
|
-
description: string;
|
|
241
|
-
message: string;
|
|
242
|
-
severity: "error";
|
|
243
|
-
given: string;
|
|
244
|
-
then: {
|
|
245
|
-
field: string;
|
|
246
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
247
|
-
}[];
|
|
248
|
-
};
|
|
249
|
-
'channels-conversation-tags-should-have-a-title': {
|
|
250
|
-
description: string;
|
|
251
|
-
message: string;
|
|
252
|
-
severity: "warn";
|
|
253
|
-
given: string;
|
|
254
|
-
then: {
|
|
255
|
-
field: string;
|
|
256
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
257
|
-
}[];
|
|
258
|
-
};
|
|
259
|
-
'channels-conversation-tags-must-have-a-description': {
|
|
260
|
-
description: string;
|
|
261
|
-
message: string;
|
|
262
|
-
severity: "error";
|
|
263
|
-
given: string;
|
|
264
|
-
then: {
|
|
265
|
-
field: string;
|
|
266
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
267
|
-
}[];
|
|
268
|
-
};
|
|
269
|
-
'channels-message-tags-should-have-a-title': {
|
|
270
|
-
description: string;
|
|
271
|
-
message: string;
|
|
272
|
-
severity: "warn";
|
|
273
|
-
given: string;
|
|
274
|
-
then: {
|
|
275
|
-
field: string;
|
|
276
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
277
|
-
}[];
|
|
278
|
-
};
|
|
279
|
-
'channels-message-tags-must-have-a-description': {
|
|
280
|
-
description: string;
|
|
281
|
-
message: string;
|
|
282
|
-
severity: "error";
|
|
283
|
-
given: string;
|
|
284
|
-
then: {
|
|
285
|
-
field: string;
|
|
286
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
287
|
-
}[];
|
|
288
|
-
};
|
|
289
|
-
'legacy-zui-title-should-be-removed': {
|
|
290
|
-
description: string;
|
|
291
|
-
severity: "error";
|
|
292
|
-
given: string;
|
|
293
|
-
then: {
|
|
294
|
-
function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<unknown, null>;
|
|
295
|
-
}[];
|
|
296
|
-
};
|
|
297
|
-
'legacy-zui-examples-should-be-removed': {
|
|
298
|
-
description: string;
|
|
299
|
-
severity: "hint";
|
|
300
|
-
given: string;
|
|
301
|
-
then: {
|
|
302
|
-
function: import("@stoplight/spectral-core").RulesetFunctionWithValidator<unknown, null>;
|
|
303
|
-
}[];
|
|
304
|
-
};
|
|
305
|
-
'state-fields-should-have-title': {
|
|
306
|
-
description: string;
|
|
307
|
-
message: string;
|
|
308
|
-
severity: "warn";
|
|
309
|
-
given: string;
|
|
310
|
-
then: {
|
|
311
|
-
field: string;
|
|
312
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
313
|
-
}[];
|
|
314
|
-
};
|
|
315
|
-
'state-fields-must-have-description': {
|
|
316
|
-
description: string;
|
|
317
|
-
message: string;
|
|
318
|
-
severity: "error";
|
|
319
|
-
given: string;
|
|
320
|
-
then: {
|
|
321
|
-
field: string;
|
|
322
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
323
|
-
}[];
|
|
324
|
-
};
|
|
325
|
-
'secrets-must-have-a-description': {
|
|
326
|
-
description: string;
|
|
327
|
-
message: string;
|
|
328
|
-
severity: "error";
|
|
329
|
-
given: string;
|
|
330
|
-
then: {
|
|
331
|
-
field: string;
|
|
332
|
-
function: import("@stoplight/spectral-core").RulesetFunction<any, any> | import("@stoplight/spectral-core").RulesetFunctionWithValidator<any, any>;
|
|
333
|
-
}[];
|
|
334
|
-
};
|
|
335
|
-
};
|
|
336
|
-
};
|
|
1
|
+
export declare const INTEGRATION_RULESET: import("@stoplight/spectral-core").RulesetDefinition & import("../ruleset-tests/common").Ruleset;
|