@redocly/openapi-core 1.0.2 → 1.2.0
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/CHANGELOG.md +22 -0
- package/lib/bundle.d.ts +2 -2
- package/lib/bundle.js +24 -22
- package/lib/config/builtIn.js +4 -0
- package/lib/config/config-resolvers.js +19 -6
- package/lib/config/config.d.ts +9 -9
- package/lib/config/config.js +32 -17
- package/lib/config/rules.d.ts +2 -2
- package/lib/config/types.d.ts +9 -3
- package/lib/format/codeframes.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +7 -6
- package/lib/lint.js +10 -16
- package/lib/oas-types.d.ts +16 -10
- package/lib/oas-types.js +52 -26
- package/lib/rules/async2/channels-kebab-case.d.ts +2 -0
- package/lib/rules/async2/channels-kebab-case.js +19 -0
- package/lib/rules/async2/index.d.ts +12 -0
- package/lib/rules/async2/index.js +22 -0
- package/lib/rules/async2/no-channel-trailing-slash.d.ts +2 -0
- package/lib/rules/async2/no-channel-trailing-slash.js +16 -0
- package/lib/rules/common/no-path-trailing-slash.js +2 -2
- package/lib/rules/common/scalar-property-missing-example.js +1 -1
- package/lib/rules/common/spec.d.ts +2 -2
- package/lib/rules/common/spec.js +3 -3
- package/lib/rules/common/tags-alphabetical.js +5 -2
- package/lib/rules/oas2/index.js +1 -1
- package/lib/rules/oas2/remove-unused-components.js +4 -1
- package/lib/rules/oas3/index.js +1 -1
- package/lib/rules/oas3/remove-unused-components.js +4 -1
- package/lib/rules/utils.d.ts +1 -1
- package/lib/types/asyncapi.d.ts +2 -0
- package/lib/types/asyncapi.js +1027 -0
- package/lib/types/portal-config-schema.d.ts +2533 -0
- package/lib/types/portal-config-schema.js +304 -0
- package/lib/types/redocly-yaml.js +26 -20
- package/lib/types/{config-external-schemas.d.ts → theme-config.d.ts} +140 -575
- package/lib/types/{config-external-schemas.js → theme-config.js} +55 -261
- package/lib/typings/asyncapi.d.ts +21 -0
- package/lib/typings/asyncapi.js +2 -0
- package/lib/visitors.d.ts +12 -0
- package/lib/walk.d.ts +3 -3
- package/package.json +3 -2
- package/src/__tests__/lint.test.ts +38 -6
- package/src/bundle.ts +27 -28
- package/src/config/__tests__/__snapshots__/config.test.ts.snap +24 -0
- package/src/config/__tests__/config.test.ts +15 -4
- package/src/config/builtIn.ts +4 -0
- package/src/config/config-resolvers.ts +25 -6
- package/src/config/config.ts +51 -27
- package/src/config/rules.ts +2 -2
- package/src/config/types.ts +14 -4
- package/src/index.ts +7 -1
- package/src/lint.ts +13 -22
- package/src/oas-types.ts +59 -21
- package/src/rules/async2/__tests__/channels-kebab-case.test.ts +141 -0
- package/src/rules/async2/__tests__/no-channel-trailing-slash.test.ts +97 -0
- package/src/rules/async2/channels-kebab-case.ts +18 -0
- package/src/rules/async2/index.ts +22 -0
- package/src/rules/async2/no-channel-trailing-slash.ts +15 -0
- package/src/rules/common/__tests__/no-path-trailing-slash.test.ts +41 -0
- package/src/rules/common/__tests__/tags-alphabetical.test.ts +58 -0
- package/src/rules/common/no-path-trailing-slash.ts +2 -2
- package/src/rules/common/scalar-property-missing-example.ts +2 -2
- package/src/rules/common/spec.ts +2 -2
- package/src/rules/common/tags-alphabetical.ts +8 -4
- package/src/rules/oas2/__tests__/remove-unused-components.test.ts +155 -0
- package/src/rules/oas2/index.ts +2 -2
- package/src/rules/oas2/remove-unused-components.ts +6 -1
- package/src/rules/oas3/__tests__/remove-unused-components.test.ts +171 -0
- package/src/rules/oas3/index.ts +2 -2
- package/src/rules/oas3/remove-unused-components.ts +6 -1
- package/src/types/asyncapi.ts +1136 -0
- package/src/types/portal-config-schema.ts +343 -0
- package/src/types/redocly-yaml.ts +23 -34
- package/src/types/{config-external-schemas.ts → theme-config.ts} +60 -294
- package/src/typings/asyncapi.ts +26 -0
- package/src/visitors.ts +22 -0
- package/src/walk.ts +3 -3
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,500 +1,3 @@
|
|
|
1
|
-
import { ApigeeDevOnboardingIntegrationAuthType, AuthProviderType } from '../config';
|
|
2
|
-
export declare const rbacConfigSchema: {
|
|
3
|
-
readonly type: "object";
|
|
4
|
-
readonly properties: {
|
|
5
|
-
readonly defaults: {
|
|
6
|
-
readonly type: "object";
|
|
7
|
-
readonly additionalProperties: {
|
|
8
|
-
readonly type: "string";
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
readonly additionalProperties: {
|
|
13
|
-
readonly type: "object";
|
|
14
|
-
readonly additionalProperties: {
|
|
15
|
-
readonly type: "string";
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export declare const ssoConfigSchema: {
|
|
20
|
-
readonly type: "object";
|
|
21
|
-
readonly additionalProperties: {
|
|
22
|
-
readonly oneOf: readonly [{
|
|
23
|
-
readonly type: "object";
|
|
24
|
-
readonly properties: {
|
|
25
|
-
readonly type: {
|
|
26
|
-
readonly type: "string";
|
|
27
|
-
readonly const: AuthProviderType.OIDC;
|
|
28
|
-
};
|
|
29
|
-
readonly title: {
|
|
30
|
-
readonly type: "string";
|
|
31
|
-
};
|
|
32
|
-
readonly configurationUrl: {
|
|
33
|
-
readonly type: "string";
|
|
34
|
-
readonly minLength: 1;
|
|
35
|
-
};
|
|
36
|
-
readonly configuration: {
|
|
37
|
-
readonly type: "object";
|
|
38
|
-
readonly properties: {
|
|
39
|
-
readonly end_session_endpoint: {
|
|
40
|
-
readonly type: "string";
|
|
41
|
-
};
|
|
42
|
-
readonly token_endpoint: {
|
|
43
|
-
readonly type: "string";
|
|
44
|
-
};
|
|
45
|
-
readonly authorization_endpoint: {
|
|
46
|
-
readonly type: "string";
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
readonly required: readonly ["token_endpoint", "authorization_endpoint"];
|
|
50
|
-
readonly additionalProperties: true;
|
|
51
|
-
};
|
|
52
|
-
readonly clientId: {
|
|
53
|
-
readonly type: "string";
|
|
54
|
-
readonly minLength: 1;
|
|
55
|
-
};
|
|
56
|
-
readonly clientSecret: {
|
|
57
|
-
readonly type: "string";
|
|
58
|
-
readonly minLength: 1;
|
|
59
|
-
};
|
|
60
|
-
readonly teamsClaimName: {
|
|
61
|
-
readonly type: "string";
|
|
62
|
-
};
|
|
63
|
-
readonly defaultTeams: {
|
|
64
|
-
readonly type: "array";
|
|
65
|
-
readonly items: {
|
|
66
|
-
readonly type: "string";
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
readonly scopes: {
|
|
70
|
-
readonly type: "array";
|
|
71
|
-
readonly items: {
|
|
72
|
-
readonly type: "string";
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
readonly tokenExpirationTime: {
|
|
76
|
-
readonly type: "number";
|
|
77
|
-
};
|
|
78
|
-
readonly authorizationRequestCustomParams: {
|
|
79
|
-
readonly type: "object";
|
|
80
|
-
readonly additionalProperties: {
|
|
81
|
-
readonly type: "string";
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
readonly tokenRequestCustomParams: {
|
|
85
|
-
readonly type: "object";
|
|
86
|
-
readonly additionalProperties: {
|
|
87
|
-
readonly type: "string";
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
readonly required: readonly ["type", "clientId", "clientSecret"];
|
|
92
|
-
readonly oneOf: readonly [{
|
|
93
|
-
readonly required: readonly ["configurationUrl"];
|
|
94
|
-
}, {
|
|
95
|
-
readonly required: readonly ["configuration"];
|
|
96
|
-
}];
|
|
97
|
-
readonly additionalProperties: false;
|
|
98
|
-
}, {
|
|
99
|
-
readonly type: "object";
|
|
100
|
-
readonly properties: {
|
|
101
|
-
readonly type: {
|
|
102
|
-
readonly type: "string";
|
|
103
|
-
readonly const: AuthProviderType.SAML2;
|
|
104
|
-
};
|
|
105
|
-
readonly title: {
|
|
106
|
-
readonly type: "string";
|
|
107
|
-
};
|
|
108
|
-
readonly issuerId: {
|
|
109
|
-
readonly type: "string";
|
|
110
|
-
};
|
|
111
|
-
readonly entityId: {
|
|
112
|
-
readonly type: "string";
|
|
113
|
-
};
|
|
114
|
-
readonly ssoUrl: {
|
|
115
|
-
readonly type: "string";
|
|
116
|
-
};
|
|
117
|
-
readonly x509PublicCert: {
|
|
118
|
-
readonly type: "string";
|
|
119
|
-
};
|
|
120
|
-
readonly teamsAttributeName: {
|
|
121
|
-
readonly type: "string";
|
|
122
|
-
readonly default: "https://redocly.com/sso/teams";
|
|
123
|
-
};
|
|
124
|
-
readonly teamsAttributeMap: {
|
|
125
|
-
readonly type: "object";
|
|
126
|
-
readonly additionalProperties: {
|
|
127
|
-
readonly type: "string";
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
readonly defaultTeams: {
|
|
131
|
-
readonly type: "array";
|
|
132
|
-
readonly items: {
|
|
133
|
-
readonly type: "string";
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
readonly additionalProperties: false;
|
|
138
|
-
readonly required: readonly ["type", "issuerId", "ssoUrl", "x509PublicCert"];
|
|
139
|
-
}, {
|
|
140
|
-
readonly type: "object";
|
|
141
|
-
readonly properties: {
|
|
142
|
-
readonly type: {
|
|
143
|
-
readonly type: "string";
|
|
144
|
-
readonly const: AuthProviderType.BASIC;
|
|
145
|
-
};
|
|
146
|
-
readonly title: {
|
|
147
|
-
readonly type: "string";
|
|
148
|
-
};
|
|
149
|
-
readonly credentials: {
|
|
150
|
-
readonly type: "array";
|
|
151
|
-
readonly items: {
|
|
152
|
-
readonly type: "object";
|
|
153
|
-
readonly properties: {
|
|
154
|
-
readonly username: {
|
|
155
|
-
readonly type: "string";
|
|
156
|
-
};
|
|
157
|
-
readonly password: {
|
|
158
|
-
readonly type: "string";
|
|
159
|
-
};
|
|
160
|
-
readonly passwordHash: {
|
|
161
|
-
readonly type: "string";
|
|
162
|
-
};
|
|
163
|
-
readonly teams: {
|
|
164
|
-
readonly type: "array";
|
|
165
|
-
readonly items: {
|
|
166
|
-
readonly type: "string";
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
readonly required: readonly ["username"];
|
|
171
|
-
readonly additionalProperties: false;
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
readonly required: readonly ["type", "credentials"];
|
|
176
|
-
readonly additionalProperties: false;
|
|
177
|
-
}];
|
|
178
|
-
readonly discriminator: {
|
|
179
|
-
readonly propertyName: "type";
|
|
180
|
-
};
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
export declare const redirectConfigSchema: {
|
|
184
|
-
readonly type: "object";
|
|
185
|
-
readonly properties: {
|
|
186
|
-
readonly to: {
|
|
187
|
-
readonly type: "string";
|
|
188
|
-
};
|
|
189
|
-
readonly type: {
|
|
190
|
-
readonly type: "number";
|
|
191
|
-
readonly default: 301;
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
readonly required: readonly ["to"];
|
|
195
|
-
readonly additionalProperties: false;
|
|
196
|
-
};
|
|
197
|
-
export declare const seoConfigSchema: {
|
|
198
|
-
readonly type: "object";
|
|
199
|
-
readonly properties: {
|
|
200
|
-
readonly title: {
|
|
201
|
-
readonly type: "string";
|
|
202
|
-
};
|
|
203
|
-
readonly description: {
|
|
204
|
-
readonly type: "string";
|
|
205
|
-
};
|
|
206
|
-
readonly siteUrl: {
|
|
207
|
-
readonly type: "string";
|
|
208
|
-
};
|
|
209
|
-
readonly image: {
|
|
210
|
-
readonly type: "string";
|
|
211
|
-
};
|
|
212
|
-
readonly keywords: {
|
|
213
|
-
readonly type: "array";
|
|
214
|
-
readonly items: {
|
|
215
|
-
readonly type: "string";
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
|
-
readonly lang: {
|
|
219
|
-
readonly type: "string";
|
|
220
|
-
};
|
|
221
|
-
readonly jsonLd: {
|
|
222
|
-
readonly type: "object";
|
|
223
|
-
};
|
|
224
|
-
readonly meta: {
|
|
225
|
-
readonly type: "array";
|
|
226
|
-
readonly items: {
|
|
227
|
-
readonly type: "object";
|
|
228
|
-
readonly properties: {
|
|
229
|
-
readonly name: {
|
|
230
|
-
readonly type: "string";
|
|
231
|
-
};
|
|
232
|
-
readonly content: {
|
|
233
|
-
readonly type: "string";
|
|
234
|
-
};
|
|
235
|
-
};
|
|
236
|
-
readonly required: readonly ["name", "content"];
|
|
237
|
-
readonly additionalProperties: false;
|
|
238
|
-
};
|
|
239
|
-
};
|
|
240
|
-
};
|
|
241
|
-
readonly additionalProperties: false;
|
|
242
|
-
};
|
|
243
|
-
export declare const devOnboardingConfigSchema: {
|
|
244
|
-
readonly type: "object";
|
|
245
|
-
readonly required: readonly ["adapters"];
|
|
246
|
-
readonly additionalProperties: false;
|
|
247
|
-
readonly properties: {
|
|
248
|
-
readonly adapters: {
|
|
249
|
-
readonly type: "array";
|
|
250
|
-
readonly items: {
|
|
251
|
-
readonly type: "object";
|
|
252
|
-
readonly oneOf: readonly [{
|
|
253
|
-
readonly type: "object";
|
|
254
|
-
readonly properties: {
|
|
255
|
-
readonly type: {
|
|
256
|
-
readonly type: "string";
|
|
257
|
-
readonly const: "APIGEE_X";
|
|
258
|
-
};
|
|
259
|
-
readonly apiUrl: {
|
|
260
|
-
readonly type: "string";
|
|
261
|
-
};
|
|
262
|
-
readonly stage: {
|
|
263
|
-
readonly type: "string";
|
|
264
|
-
readonly default: "non-production";
|
|
265
|
-
};
|
|
266
|
-
readonly organizationName: {
|
|
267
|
-
readonly type: "string";
|
|
268
|
-
};
|
|
269
|
-
readonly ignoreApiProducts: {
|
|
270
|
-
readonly type: "array";
|
|
271
|
-
readonly items: {
|
|
272
|
-
readonly type: "string";
|
|
273
|
-
};
|
|
274
|
-
};
|
|
275
|
-
readonly allowApiProductsOutsideCatalog: {
|
|
276
|
-
readonly type: "boolean";
|
|
277
|
-
readonly default: false;
|
|
278
|
-
};
|
|
279
|
-
readonly auth: {
|
|
280
|
-
readonly type: "object";
|
|
281
|
-
readonly oneOf: readonly [{
|
|
282
|
-
readonly type: "object";
|
|
283
|
-
readonly properties: {
|
|
284
|
-
readonly type: {
|
|
285
|
-
readonly type: "string";
|
|
286
|
-
readonly const: ApigeeDevOnboardingIntegrationAuthType.OAUTH2;
|
|
287
|
-
};
|
|
288
|
-
readonly tokenEndpoint: {
|
|
289
|
-
readonly type: "string";
|
|
290
|
-
};
|
|
291
|
-
readonly clientId: {
|
|
292
|
-
readonly type: "string";
|
|
293
|
-
};
|
|
294
|
-
readonly clientSecret: {
|
|
295
|
-
readonly type: "string";
|
|
296
|
-
};
|
|
297
|
-
};
|
|
298
|
-
readonly additionalProperties: false;
|
|
299
|
-
readonly required: readonly ["type", "tokenEndpoint", "clientId", "clientSecret"];
|
|
300
|
-
}, {
|
|
301
|
-
readonly type: "object";
|
|
302
|
-
readonly properties: {
|
|
303
|
-
readonly type: {
|
|
304
|
-
readonly type: "string";
|
|
305
|
-
readonly const: ApigeeDevOnboardingIntegrationAuthType.SERVICE_ACCOUNT;
|
|
306
|
-
};
|
|
307
|
-
readonly serviceAccountEmail: {
|
|
308
|
-
readonly type: "string";
|
|
309
|
-
};
|
|
310
|
-
readonly serviceAccountPrivateKey: {
|
|
311
|
-
readonly type: "string";
|
|
312
|
-
};
|
|
313
|
-
};
|
|
314
|
-
readonly additionalProperties: false;
|
|
315
|
-
readonly required: readonly ["type", "serviceAccountEmail", "serviceAccountPrivateKey"];
|
|
316
|
-
}];
|
|
317
|
-
readonly discriminator: {
|
|
318
|
-
readonly propertyName: "type";
|
|
319
|
-
};
|
|
320
|
-
};
|
|
321
|
-
};
|
|
322
|
-
readonly additionalProperties: false;
|
|
323
|
-
readonly required: readonly ["type", "organizationName", "auth"];
|
|
324
|
-
}, {
|
|
325
|
-
readonly properties: {
|
|
326
|
-
readonly type: {
|
|
327
|
-
readonly type: "string";
|
|
328
|
-
readonly const: "APIGEE_EDGE";
|
|
329
|
-
};
|
|
330
|
-
readonly apiUrl: {
|
|
331
|
-
readonly type: "string";
|
|
332
|
-
};
|
|
333
|
-
readonly stage: {
|
|
334
|
-
readonly type: "string";
|
|
335
|
-
readonly default: "non-production";
|
|
336
|
-
};
|
|
337
|
-
readonly organizationName: {
|
|
338
|
-
readonly type: "string";
|
|
339
|
-
};
|
|
340
|
-
readonly ignoreApiProducts: {
|
|
341
|
-
readonly type: "array";
|
|
342
|
-
readonly items: {
|
|
343
|
-
readonly type: "string";
|
|
344
|
-
};
|
|
345
|
-
};
|
|
346
|
-
readonly allowApiProductsOutsideCatalog: {
|
|
347
|
-
readonly type: "boolean";
|
|
348
|
-
readonly default: false;
|
|
349
|
-
};
|
|
350
|
-
readonly auth: {
|
|
351
|
-
readonly type: "object";
|
|
352
|
-
readonly oneOf: readonly [{
|
|
353
|
-
readonly type: "object";
|
|
354
|
-
readonly properties: {
|
|
355
|
-
readonly type: {
|
|
356
|
-
readonly type: "string";
|
|
357
|
-
readonly const: ApigeeDevOnboardingIntegrationAuthType.OAUTH2;
|
|
358
|
-
};
|
|
359
|
-
readonly tokenEndpoint: {
|
|
360
|
-
readonly type: "string";
|
|
361
|
-
};
|
|
362
|
-
readonly clientId: {
|
|
363
|
-
readonly type: "string";
|
|
364
|
-
};
|
|
365
|
-
readonly clientSecret: {
|
|
366
|
-
readonly type: "string";
|
|
367
|
-
};
|
|
368
|
-
};
|
|
369
|
-
readonly additionalProperties: false;
|
|
370
|
-
readonly required: readonly ["type", "tokenEndpoint", "clientId", "clientSecret"];
|
|
371
|
-
}, {
|
|
372
|
-
readonly type: "object";
|
|
373
|
-
readonly properties: {
|
|
374
|
-
readonly type: {
|
|
375
|
-
readonly type: "string";
|
|
376
|
-
readonly const: ApigeeDevOnboardingIntegrationAuthType.SERVICE_ACCOUNT;
|
|
377
|
-
};
|
|
378
|
-
readonly serviceAccountEmail: {
|
|
379
|
-
readonly type: "string";
|
|
380
|
-
};
|
|
381
|
-
readonly serviceAccountPrivateKey: {
|
|
382
|
-
readonly type: "string";
|
|
383
|
-
};
|
|
384
|
-
};
|
|
385
|
-
readonly additionalProperties: false;
|
|
386
|
-
readonly required: readonly ["type", "serviceAccountEmail", "serviceAccountPrivateKey"];
|
|
387
|
-
}];
|
|
388
|
-
readonly discriminator: {
|
|
389
|
-
readonly propertyName: "type";
|
|
390
|
-
};
|
|
391
|
-
};
|
|
392
|
-
};
|
|
393
|
-
readonly type: "object";
|
|
394
|
-
readonly additionalProperties: false;
|
|
395
|
-
readonly required: readonly ["type", "organizationName", "auth"];
|
|
396
|
-
}, {
|
|
397
|
-
readonly type: "object";
|
|
398
|
-
readonly properties: {
|
|
399
|
-
readonly type: {
|
|
400
|
-
readonly type: "string";
|
|
401
|
-
readonly const: "GRAVITEE";
|
|
402
|
-
};
|
|
403
|
-
readonly apiBaseUrl: {
|
|
404
|
-
readonly type: "string";
|
|
405
|
-
};
|
|
406
|
-
readonly env: {
|
|
407
|
-
readonly type: "string";
|
|
408
|
-
};
|
|
409
|
-
readonly allowApiProductsOutsideCatalog: {
|
|
410
|
-
readonly type: "boolean";
|
|
411
|
-
readonly default: false;
|
|
412
|
-
};
|
|
413
|
-
readonly stage: {
|
|
414
|
-
readonly type: "string";
|
|
415
|
-
readonly default: "non-production";
|
|
416
|
-
};
|
|
417
|
-
readonly auth: {
|
|
418
|
-
readonly type: "object";
|
|
419
|
-
readonly properties: {
|
|
420
|
-
readonly static: {
|
|
421
|
-
readonly type: "string";
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
|
-
};
|
|
425
|
-
};
|
|
426
|
-
readonly additionalProperties: false;
|
|
427
|
-
readonly required: readonly ["type", "apiBaseUrl"];
|
|
428
|
-
}];
|
|
429
|
-
readonly discriminator: {
|
|
430
|
-
readonly propertyName: "type";
|
|
431
|
-
};
|
|
432
|
-
};
|
|
433
|
-
};
|
|
434
|
-
};
|
|
435
|
-
};
|
|
436
|
-
export declare const responseHeaderSchema: {
|
|
437
|
-
readonly type: "object";
|
|
438
|
-
readonly properties: {
|
|
439
|
-
readonly name: {
|
|
440
|
-
readonly type: "string";
|
|
441
|
-
};
|
|
442
|
-
readonly value: {
|
|
443
|
-
readonly type: "string";
|
|
444
|
-
};
|
|
445
|
-
};
|
|
446
|
-
readonly additionalProperties: false;
|
|
447
|
-
readonly required: readonly ["name", "value"];
|
|
448
|
-
};
|
|
449
|
-
export declare const i18nConfigSchema: {
|
|
450
|
-
readonly type: "object";
|
|
451
|
-
readonly properties: {
|
|
452
|
-
readonly defaultLocale: {
|
|
453
|
-
readonly type: "string";
|
|
454
|
-
};
|
|
455
|
-
readonly locales: {
|
|
456
|
-
readonly type: "array";
|
|
457
|
-
readonly items: {
|
|
458
|
-
readonly type: "object";
|
|
459
|
-
readonly properties: {
|
|
460
|
-
readonly code: {
|
|
461
|
-
readonly type: "string";
|
|
462
|
-
};
|
|
463
|
-
readonly name: {
|
|
464
|
-
readonly type: "string";
|
|
465
|
-
};
|
|
466
|
-
};
|
|
467
|
-
readonly required: readonly ["code"];
|
|
468
|
-
};
|
|
469
|
-
};
|
|
470
|
-
};
|
|
471
|
-
readonly required: readonly ["defaultLocale", "locales"];
|
|
472
|
-
};
|
|
473
|
-
export declare const mockServerConfigSchema: {
|
|
474
|
-
readonly type: "object";
|
|
475
|
-
readonly properties: {
|
|
476
|
-
readonly off: {
|
|
477
|
-
readonly type: "boolean";
|
|
478
|
-
readonly default: false;
|
|
479
|
-
};
|
|
480
|
-
readonly position: {
|
|
481
|
-
readonly type: "string";
|
|
482
|
-
readonly enum: readonly ["first", "last", "replace", "off"];
|
|
483
|
-
readonly default: "first";
|
|
484
|
-
};
|
|
485
|
-
readonly strictExamples: {
|
|
486
|
-
readonly type: "boolean";
|
|
487
|
-
readonly default: false;
|
|
488
|
-
};
|
|
489
|
-
readonly errorIfForcedExampleNotFound: {
|
|
490
|
-
readonly type: "boolean";
|
|
491
|
-
readonly default: false;
|
|
492
|
-
};
|
|
493
|
-
readonly description: {
|
|
494
|
-
readonly type: "string";
|
|
495
|
-
};
|
|
496
|
-
};
|
|
497
|
-
};
|
|
498
1
|
export declare const themeConfigSchema: {
|
|
499
2
|
readonly type: "object";
|
|
500
3
|
readonly properties: {
|
|
@@ -511,6 +14,9 @@ export declare const themeConfigSchema: {
|
|
|
511
14
|
readonly image: {
|
|
512
15
|
readonly type: "string";
|
|
513
16
|
};
|
|
17
|
+
readonly srcSet: {
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
};
|
|
514
20
|
readonly altText: {
|
|
515
21
|
readonly type: "string";
|
|
516
22
|
};
|
|
@@ -556,6 +62,11 @@ export declare const themeConfigSchema: {
|
|
|
556
62
|
readonly separatorLine: {
|
|
557
63
|
readonly type: "boolean";
|
|
558
64
|
};
|
|
65
|
+
readonly linePosition: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
readonly enum: readonly ["top", "bottom"];
|
|
68
|
+
readonly default: "top";
|
|
69
|
+
};
|
|
559
70
|
readonly version: {
|
|
560
71
|
readonly type: "string";
|
|
561
72
|
};
|
|
@@ -600,6 +111,11 @@ export declare const themeConfigSchema: {
|
|
|
600
111
|
readonly separatorLine: {
|
|
601
112
|
readonly type: "boolean";
|
|
602
113
|
};
|
|
114
|
+
readonly linePosition: {
|
|
115
|
+
readonly type: "string";
|
|
116
|
+
readonly enum: readonly ["top", "bottom"];
|
|
117
|
+
readonly default: "top";
|
|
118
|
+
};
|
|
603
119
|
readonly version: {
|
|
604
120
|
readonly type: "string";
|
|
605
121
|
};
|
|
@@ -682,6 +198,11 @@ export declare const themeConfigSchema: {
|
|
|
682
198
|
readonly separatorLine: {
|
|
683
199
|
readonly type: "boolean";
|
|
684
200
|
};
|
|
201
|
+
readonly linePosition: {
|
|
202
|
+
readonly type: "string";
|
|
203
|
+
readonly enum: readonly ["top", "bottom"];
|
|
204
|
+
readonly default: "top";
|
|
205
|
+
};
|
|
685
206
|
readonly version: {
|
|
686
207
|
readonly type: "string";
|
|
687
208
|
};
|
|
@@ -726,6 +247,11 @@ export declare const themeConfigSchema: {
|
|
|
726
247
|
readonly separatorLine: {
|
|
727
248
|
readonly type: "boolean";
|
|
728
249
|
};
|
|
250
|
+
readonly linePosition: {
|
|
251
|
+
readonly type: "string";
|
|
252
|
+
readonly enum: readonly ["top", "bottom"];
|
|
253
|
+
readonly default: "top";
|
|
254
|
+
};
|
|
729
255
|
readonly version: {
|
|
730
256
|
readonly type: "string";
|
|
731
257
|
};
|
|
@@ -756,6 +282,15 @@ export declare const themeConfigSchema: {
|
|
|
756
282
|
readonly copyrightText: {
|
|
757
283
|
readonly type: "string";
|
|
758
284
|
};
|
|
285
|
+
readonly logo: {
|
|
286
|
+
readonly type: "object";
|
|
287
|
+
readonly properties: {
|
|
288
|
+
readonly hide: {
|
|
289
|
+
readonly type: "boolean";
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
readonly additionalProperties: false;
|
|
293
|
+
};
|
|
759
294
|
};
|
|
760
295
|
readonly additionalProperties: false;
|
|
761
296
|
};
|
|
@@ -765,9 +300,25 @@ export declare const themeConfigSchema: {
|
|
|
765
300
|
readonly hide: {
|
|
766
301
|
readonly type: "boolean";
|
|
767
302
|
};
|
|
303
|
+
readonly separatorLine: {
|
|
304
|
+
readonly type: "boolean";
|
|
305
|
+
};
|
|
306
|
+
readonly linePosition: {
|
|
307
|
+
readonly type: "string";
|
|
308
|
+
readonly enum: readonly ["top", "bottom"];
|
|
309
|
+
readonly default: "bottom";
|
|
310
|
+
};
|
|
768
311
|
};
|
|
769
312
|
readonly additionalProperties: false;
|
|
770
313
|
};
|
|
314
|
+
readonly seo: {
|
|
315
|
+
readonly type: "object";
|
|
316
|
+
readonly properties: {
|
|
317
|
+
readonly title: {
|
|
318
|
+
readonly type: "string";
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
};
|
|
771
322
|
readonly scripts: {
|
|
772
323
|
readonly type: "object";
|
|
773
324
|
readonly properties: {
|
|
@@ -1213,13 +764,6 @@ export declare const themeConfigSchema: {
|
|
|
1213
764
|
readonly baseUrl: {
|
|
1214
765
|
readonly type: "string";
|
|
1215
766
|
};
|
|
1216
|
-
readonly icon: {
|
|
1217
|
-
readonly type: "string";
|
|
1218
|
-
};
|
|
1219
|
-
readonly text: {
|
|
1220
|
-
readonly type: "string";
|
|
1221
|
-
readonly default: "Edit this page";
|
|
1222
|
-
};
|
|
1223
767
|
};
|
|
1224
768
|
readonly additionalProperties: false;
|
|
1225
769
|
readonly default: {};
|
|
@@ -1410,15 +954,18 @@ export declare const themeConfigSchema: {
|
|
|
1410
954
|
readonly trackingId: {
|
|
1411
955
|
readonly type: "string";
|
|
1412
956
|
};
|
|
957
|
+
readonly conversionId: {
|
|
958
|
+
readonly type: "string";
|
|
959
|
+
};
|
|
960
|
+
readonly floodlightId: {
|
|
961
|
+
readonly type: "string";
|
|
962
|
+
};
|
|
1413
963
|
readonly head: {
|
|
1414
964
|
readonly type: "boolean";
|
|
1415
965
|
};
|
|
1416
966
|
readonly respectDNT: {
|
|
1417
967
|
readonly type: "boolean";
|
|
1418
968
|
};
|
|
1419
|
-
readonly anonymize: {
|
|
1420
|
-
readonly type: "boolean";
|
|
1421
|
-
};
|
|
1422
969
|
readonly exclude: {
|
|
1423
970
|
readonly type: "array";
|
|
1424
971
|
readonly items: {
|
|
@@ -1428,78 +975,12 @@ export declare const themeConfigSchema: {
|
|
|
1428
975
|
readonly optimizeId: {
|
|
1429
976
|
readonly type: "string";
|
|
1430
977
|
};
|
|
1431
|
-
readonly
|
|
1432
|
-
readonly type: "string";
|
|
1433
|
-
};
|
|
1434
|
-
readonly variationId: {
|
|
1435
|
-
readonly type: "string";
|
|
1436
|
-
};
|
|
1437
|
-
readonly enableWebVitalsTracking: {
|
|
1438
|
-
readonly type: "boolean";
|
|
1439
|
-
};
|
|
1440
|
-
readonly defer: {
|
|
978
|
+
readonly anonymizeIp: {
|
|
1441
979
|
readonly type: "boolean";
|
|
1442
980
|
};
|
|
1443
|
-
readonly sampleRate: {
|
|
1444
|
-
readonly type: "number";
|
|
1445
|
-
};
|
|
1446
|
-
readonly name: {
|
|
1447
|
-
readonly type: "string";
|
|
1448
|
-
};
|
|
1449
|
-
readonly clientId: {
|
|
1450
|
-
readonly type: "string";
|
|
1451
|
-
};
|
|
1452
|
-
readonly siteSpeedSampleRate: {
|
|
1453
|
-
readonly type: "number";
|
|
1454
|
-
};
|
|
1455
|
-
readonly alwaysSendReferrer: {
|
|
1456
|
-
readonly type: "boolean";
|
|
1457
|
-
};
|
|
1458
|
-
readonly allowAnchor: {
|
|
1459
|
-
readonly type: "boolean";
|
|
1460
|
-
};
|
|
1461
|
-
readonly cookieName: {
|
|
1462
|
-
readonly type: "string";
|
|
1463
|
-
};
|
|
1464
|
-
readonly cookieFlags: {
|
|
1465
|
-
readonly type: "string";
|
|
1466
|
-
};
|
|
1467
|
-
readonly cookieDomain: {
|
|
1468
|
-
readonly type: "string";
|
|
1469
|
-
};
|
|
1470
981
|
readonly cookieExpires: {
|
|
1471
982
|
readonly type: "number";
|
|
1472
983
|
};
|
|
1473
|
-
readonly storeGac: {
|
|
1474
|
-
readonly type: "boolean";
|
|
1475
|
-
};
|
|
1476
|
-
readonly legacyCookieDomain: {
|
|
1477
|
-
readonly type: "string";
|
|
1478
|
-
};
|
|
1479
|
-
readonly legacyHistoryImport: {
|
|
1480
|
-
readonly type: "boolean";
|
|
1481
|
-
};
|
|
1482
|
-
readonly allowLinker: {
|
|
1483
|
-
readonly type: "boolean";
|
|
1484
|
-
};
|
|
1485
|
-
readonly storage: {
|
|
1486
|
-
readonly type: "string";
|
|
1487
|
-
};
|
|
1488
|
-
readonly allowAdFeatures: {
|
|
1489
|
-
readonly type: "boolean";
|
|
1490
|
-
};
|
|
1491
|
-
readonly dataSource: {
|
|
1492
|
-
readonly type: "string";
|
|
1493
|
-
};
|
|
1494
|
-
readonly queueTime: {
|
|
1495
|
-
readonly type: "number";
|
|
1496
|
-
};
|
|
1497
|
-
readonly forceSSL: {
|
|
1498
|
-
readonly type: "boolean";
|
|
1499
|
-
};
|
|
1500
|
-
readonly transport: {
|
|
1501
|
-
readonly type: "string";
|
|
1502
|
-
};
|
|
1503
984
|
};
|
|
1504
985
|
readonly additionalProperties: false;
|
|
1505
986
|
readonly required: readonly ["trackingId"];
|
|
@@ -1546,6 +1027,17 @@ export declare const themeConfigSchema: {
|
|
|
1546
1027
|
readonly additionalProperties: false;
|
|
1547
1028
|
readonly default: {};
|
|
1548
1029
|
};
|
|
1030
|
+
readonly versionPicker: {
|
|
1031
|
+
readonly type: "object";
|
|
1032
|
+
readonly properties: {
|
|
1033
|
+
readonly hide: {
|
|
1034
|
+
readonly type: "boolean";
|
|
1035
|
+
};
|
|
1036
|
+
readonly showForUnversioned: {
|
|
1037
|
+
readonly type: "boolean";
|
|
1038
|
+
};
|
|
1039
|
+
};
|
|
1040
|
+
};
|
|
1549
1041
|
readonly breadcrumbs: {
|
|
1550
1042
|
readonly type: "object";
|
|
1551
1043
|
readonly properties: {
|
|
@@ -1581,7 +1073,7 @@ export declare const themeConfigSchema: {
|
|
|
1581
1073
|
readonly '.*': {
|
|
1582
1074
|
readonly type: "object";
|
|
1583
1075
|
readonly additionalProperties: true;
|
|
1584
|
-
readonly required: readonly ["slug", "
|
|
1076
|
+
readonly required: readonly ["slug", "items"];
|
|
1585
1077
|
readonly properties: {
|
|
1586
1078
|
readonly slug: {
|
|
1587
1079
|
readonly type: "string";
|
|
@@ -1627,6 +1119,10 @@ export declare const themeConfigSchema: {
|
|
|
1627
1119
|
readonly groupByFirstFilter: {
|
|
1628
1120
|
readonly type: "boolean";
|
|
1629
1121
|
};
|
|
1122
|
+
readonly filterValuesCasing: {
|
|
1123
|
+
readonly type: "string";
|
|
1124
|
+
readonly enum: readonly ["sentence", "original", "lowercase", "uppercase"];
|
|
1125
|
+
};
|
|
1630
1126
|
readonly items: {
|
|
1631
1127
|
readonly type: "array";
|
|
1632
1128
|
readonly items: {
|
|
@@ -1654,6 +1150,11 @@ export declare const themeConfigSchema: {
|
|
|
1654
1150
|
readonly separatorLine: {
|
|
1655
1151
|
readonly type: "boolean";
|
|
1656
1152
|
};
|
|
1153
|
+
readonly linePosition: {
|
|
1154
|
+
readonly type: "string";
|
|
1155
|
+
readonly enum: readonly ["top", "bottom"];
|
|
1156
|
+
readonly default: "top";
|
|
1157
|
+
};
|
|
1657
1158
|
readonly version: {
|
|
1658
1159
|
readonly type: "string";
|
|
1659
1160
|
};
|
|
@@ -1698,6 +1199,11 @@ export declare const themeConfigSchema: {
|
|
|
1698
1199
|
readonly separatorLine: {
|
|
1699
1200
|
readonly type: "boolean";
|
|
1700
1201
|
};
|
|
1202
|
+
readonly linePosition: {
|
|
1203
|
+
readonly type: "string";
|
|
1204
|
+
readonly enum: readonly ["top", "bottom"];
|
|
1205
|
+
readonly default: "top";
|
|
1206
|
+
};
|
|
1701
1207
|
readonly version: {
|
|
1702
1208
|
readonly type: "string";
|
|
1703
1209
|
};
|
|
@@ -1756,6 +1262,20 @@ export declare const themeConfigSchema: {
|
|
|
1756
1262
|
readonly type: "boolean";
|
|
1757
1263
|
readonly default: false;
|
|
1758
1264
|
};
|
|
1265
|
+
readonly teamMetadataProperty: {
|
|
1266
|
+
readonly type: "object";
|
|
1267
|
+
readonly properties: {
|
|
1268
|
+
readonly property: {
|
|
1269
|
+
readonly type: "string";
|
|
1270
|
+
};
|
|
1271
|
+
readonly label: {
|
|
1272
|
+
readonly type: "string";
|
|
1273
|
+
};
|
|
1274
|
+
readonly default: {
|
|
1275
|
+
readonly type: "string";
|
|
1276
|
+
};
|
|
1277
|
+
};
|
|
1278
|
+
};
|
|
1759
1279
|
readonly levels: {
|
|
1760
1280
|
readonly type: "array";
|
|
1761
1281
|
readonly items: {
|
|
@@ -1822,6 +1342,9 @@ export declare const productThemeOverrideSchema: {
|
|
|
1822
1342
|
readonly image: {
|
|
1823
1343
|
readonly type: "string";
|
|
1824
1344
|
};
|
|
1345
|
+
readonly srcSet: {
|
|
1346
|
+
readonly type: "string";
|
|
1347
|
+
};
|
|
1825
1348
|
readonly altText: {
|
|
1826
1349
|
readonly type: "string";
|
|
1827
1350
|
};
|
|
@@ -1867,6 +1390,11 @@ export declare const productThemeOverrideSchema: {
|
|
|
1867
1390
|
readonly separatorLine: {
|
|
1868
1391
|
readonly type: "boolean";
|
|
1869
1392
|
};
|
|
1393
|
+
readonly linePosition: {
|
|
1394
|
+
readonly type: "string";
|
|
1395
|
+
readonly enum: readonly ["top", "bottom"];
|
|
1396
|
+
readonly default: "top";
|
|
1397
|
+
};
|
|
1870
1398
|
readonly version: {
|
|
1871
1399
|
readonly type: "string";
|
|
1872
1400
|
};
|
|
@@ -1911,6 +1439,11 @@ export declare const productThemeOverrideSchema: {
|
|
|
1911
1439
|
readonly separatorLine: {
|
|
1912
1440
|
readonly type: "boolean";
|
|
1913
1441
|
};
|
|
1442
|
+
readonly linePosition: {
|
|
1443
|
+
readonly type: "string";
|
|
1444
|
+
readonly enum: readonly ["top", "bottom"];
|
|
1445
|
+
readonly default: "top";
|
|
1446
|
+
};
|
|
1914
1447
|
readonly version: {
|
|
1915
1448
|
readonly type: "string";
|
|
1916
1449
|
};
|
|
@@ -1974,6 +1507,11 @@ export declare const productThemeOverrideSchema: {
|
|
|
1974
1507
|
readonly separatorLine: {
|
|
1975
1508
|
readonly type: "boolean";
|
|
1976
1509
|
};
|
|
1510
|
+
readonly linePosition: {
|
|
1511
|
+
readonly type: "string";
|
|
1512
|
+
readonly enum: readonly ["top", "bottom"];
|
|
1513
|
+
readonly default: "top";
|
|
1514
|
+
};
|
|
1977
1515
|
readonly version: {
|
|
1978
1516
|
readonly type: "string";
|
|
1979
1517
|
};
|
|
@@ -2018,6 +1556,11 @@ export declare const productThemeOverrideSchema: {
|
|
|
2018
1556
|
readonly separatorLine: {
|
|
2019
1557
|
readonly type: "boolean";
|
|
2020
1558
|
};
|
|
1559
|
+
readonly linePosition: {
|
|
1560
|
+
readonly type: "string";
|
|
1561
|
+
readonly enum: readonly ["top", "bottom"];
|
|
1562
|
+
readonly default: "top";
|
|
1563
|
+
};
|
|
2021
1564
|
readonly version: {
|
|
2022
1565
|
readonly type: "string";
|
|
2023
1566
|
};
|
|
@@ -2048,6 +1591,15 @@ export declare const productThemeOverrideSchema: {
|
|
|
2048
1591
|
readonly copyrightText: {
|
|
2049
1592
|
readonly type: "string";
|
|
2050
1593
|
};
|
|
1594
|
+
readonly logo: {
|
|
1595
|
+
readonly type: "object";
|
|
1596
|
+
readonly properties: {
|
|
1597
|
+
readonly hide: {
|
|
1598
|
+
readonly type: "boolean";
|
|
1599
|
+
};
|
|
1600
|
+
};
|
|
1601
|
+
readonly additionalProperties: false;
|
|
1602
|
+
};
|
|
2051
1603
|
};
|
|
2052
1604
|
readonly additionalProperties: false;
|
|
2053
1605
|
};
|
|
@@ -2057,6 +1609,14 @@ export declare const productThemeOverrideSchema: {
|
|
|
2057
1609
|
readonly hide: {
|
|
2058
1610
|
readonly type: "boolean";
|
|
2059
1611
|
};
|
|
1612
|
+
readonly separatorLine: {
|
|
1613
|
+
readonly type: "boolean";
|
|
1614
|
+
};
|
|
1615
|
+
readonly linePosition: {
|
|
1616
|
+
readonly type: "string";
|
|
1617
|
+
readonly enum: readonly ["top", "bottom"];
|
|
1618
|
+
readonly default: "bottom";
|
|
1619
|
+
};
|
|
2060
1620
|
};
|
|
2061
1621
|
readonly additionalProperties: false;
|
|
2062
1622
|
};
|
|
@@ -2191,3 +1751,8 @@ export declare const productThemeOverrideSchema: {
|
|
|
2191
1751
|
readonly additionalProperties: true;
|
|
2192
1752
|
readonly default: {};
|
|
2193
1753
|
};
|
|
1754
|
+
export declare enum ScorecardStatus {
|
|
1755
|
+
BelowMinimum = "Below minimum",
|
|
1756
|
+
Highest = "Highest",
|
|
1757
|
+
Minimum = "Minimum"
|
|
1758
|
+
}
|