@redocly/config 0.17.1 → 0.19.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.
@@ -3928,6 +3928,12 @@ export declare const themeConfigSchema: {
3928
3928
  readonly additionalProperties: false;
3929
3929
  };
3930
3930
  };
3931
+ readonly ignore: {
3932
+ readonly type: "array";
3933
+ readonly items: {
3934
+ readonly type: "string";
3935
+ };
3936
+ };
3931
3937
  };
3932
3938
  };
3933
3939
  };
@@ -7864,6 +7870,12 @@ export declare const closedThemeConfigSchema: {
7864
7870
  readonly additionalProperties: false;
7865
7871
  };
7866
7872
  };
7873
+ readonly ignore: {
7874
+ readonly type: "array";
7875
+ readonly items: {
7876
+ readonly type: "string";
7877
+ };
7878
+ };
7867
7879
  };
7868
7880
  };
7869
7881
  };
@@ -4062,5 +4062,11 @@ export declare const scorecardConfigSchema: {
4062
4062
  readonly additionalProperties: false;
4063
4063
  };
4064
4064
  };
4065
+ readonly ignore: {
4066
+ readonly type: "array";
4067
+ readonly items: {
4068
+ readonly type: "string";
4069
+ };
4070
+ };
4065
4071
  };
4066
4072
  };
@@ -586,6 +586,10 @@ exports.scorecardConfigSchema = {
586
586
  additionalProperties: false,
587
587
  },
588
588
  },
589
+ ignore: {
590
+ type: 'array',
591
+ items: { type: 'string' },
592
+ },
589
593
  },
590
594
  };
591
595
  //# sourceMappingURL=ex-theme-config-schemas.js.map
@@ -3,7 +3,8 @@ import type { Location } from 'react-router-dom';
3
3
  import type { graphqlConfigSchema } from './graphql-config-schema';
4
4
  export type GraphQLConfigTypes = FromSchema<typeof graphqlConfigSchema> & {
5
5
  markdown?: {
6
- parser: (md: string) => string;
6
+ parser?: (md: string) => string;
7
+ highlight?: (code: string, lang: string, options?: Record<string, any>) => string;
7
8
  };
8
9
  onLocationChange?: (location: Partial<Location>) => void;
9
10
  };
@@ -18,6 +18,45 @@ export declare const reuniteConfigSchema: {
18
18
  readonly ignoreMarkdocErrors: {
19
19
  readonly type: "boolean";
20
20
  };
21
+ readonly jobs: {
22
+ readonly type: "array";
23
+ readonly items: {
24
+ readonly type: "object";
25
+ readonly properties: {
26
+ readonly path: {
27
+ readonly type: "string";
28
+ readonly pattern: "^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$";
29
+ };
30
+ readonly agent: {
31
+ readonly type: "string";
32
+ readonly enum: readonly ["spot"];
33
+ };
34
+ readonly trigger: {
35
+ readonly type: "object";
36
+ readonly additionalProperties: false;
37
+ readonly properties: {
38
+ readonly event: {
39
+ readonly type: "string";
40
+ readonly enum: readonly ["schedule"];
41
+ };
42
+ readonly interval: {
43
+ readonly type: "string";
44
+ readonly pattern: "^[1-9]\\d*[mhdw]$";
45
+ };
46
+ };
47
+ readonly required: readonly ["event"];
48
+ };
49
+ readonly inputs: {
50
+ readonly type: "object";
51
+ readonly additionalProperties: {
52
+ readonly type: "string";
53
+ };
54
+ };
55
+ };
56
+ readonly required: readonly ["path", "trigger", "agent"];
57
+ readonly additionalProperties: false;
58
+ };
59
+ };
21
60
  };
22
61
  readonly additionalProperties: false;
23
62
  };
@@ -1,6 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.reuniteConfigSchema = void 0;
4
+ const jobInputsSchema = {
5
+ type: 'object',
6
+ additionalProperties: { type: 'string' },
7
+ };
8
+ const jobTriggerSchema = {
9
+ type: 'object',
10
+ additionalProperties: false,
11
+ properties: {
12
+ event: {
13
+ type: 'string',
14
+ enum: ['schedule'],
15
+ },
16
+ interval: { type: 'string', pattern: '^[1-9]\\d*[mhdw]$' },
17
+ },
18
+ required: ['event'],
19
+ };
4
20
  exports.reuniteConfigSchema = {
5
21
  type: 'object',
6
22
  properties: {
@@ -15,6 +31,26 @@ exports.reuniteConfigSchema = {
15
31
  },
16
32
  ignoreLinkChecker: { type: 'boolean' },
17
33
  ignoreMarkdocErrors: { type: 'boolean' },
34
+ jobs: {
35
+ type: 'array',
36
+ items: {
37
+ type: 'object',
38
+ properties: {
39
+ path: {
40
+ type: 'string',
41
+ pattern: '^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$',
42
+ },
43
+ agent: {
44
+ type: 'string',
45
+ enum: ['spot'],
46
+ },
47
+ trigger: jobTriggerSchema,
48
+ inputs: jobInputsSchema,
49
+ },
50
+ required: ['path', 'trigger', 'agent'],
51
+ additionalProperties: false,
52
+ },
53
+ },
18
54
  },
19
55
  additionalProperties: false,
20
56
  };
@@ -298,7 +298,7 @@ export declare const authProviderConfigSchema: {
298
298
  readonly propertyName: "type";
299
299
  };
300
300
  };
301
- export declare const ssoOnPremConfigSchema: {
301
+ export declare const ssoDirectConfigSchema: {
302
302
  readonly type: "object";
303
303
  readonly additionalProperties: {
304
304
  readonly oneOf: readonly [{
@@ -10156,7 +10156,7 @@ export declare const redoclyConfigSchema: {
10156
10156
  readonly type: "object";
10157
10157
  readonly additionalProperties: true;
10158
10158
  };
10159
- readonly ssoOnPrem: {
10159
+ readonly ssoDirect: {
10160
10160
  readonly type: "object";
10161
10161
  readonly additionalProperties: {
10162
10162
  readonly oneOf: readonly [{
@@ -14523,6 +14523,12 @@ export declare const redoclyConfigSchema: {
14523
14523
  readonly additionalProperties: false;
14524
14524
  };
14525
14525
  };
14526
+ readonly ignore: {
14527
+ readonly type: "array";
14528
+ readonly items: {
14529
+ readonly type: "string";
14530
+ };
14531
+ };
14526
14532
  };
14527
14533
  };
14528
14534
  };
@@ -14548,6 +14554,45 @@ export declare const redoclyConfigSchema: {
14548
14554
  readonly ignoreMarkdocErrors: {
14549
14555
  readonly type: "boolean";
14550
14556
  };
14557
+ readonly jobs: {
14558
+ readonly type: "array";
14559
+ readonly items: {
14560
+ readonly type: "object";
14561
+ readonly properties: {
14562
+ readonly path: {
14563
+ readonly type: "string";
14564
+ readonly pattern: "^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$";
14565
+ };
14566
+ readonly agent: {
14567
+ readonly type: "string";
14568
+ readonly enum: readonly ["spot"];
14569
+ };
14570
+ readonly trigger: {
14571
+ readonly type: "object";
14572
+ readonly additionalProperties: false;
14573
+ readonly properties: {
14574
+ readonly event: {
14575
+ readonly type: "string";
14576
+ readonly enum: readonly ["schedule"];
14577
+ };
14578
+ readonly interval: {
14579
+ readonly type: "string";
14580
+ readonly pattern: "^[1-9]\\d*[mhdw]$";
14581
+ };
14582
+ };
14583
+ readonly required: readonly ["event"];
14584
+ };
14585
+ readonly inputs: {
14586
+ readonly type: "object";
14587
+ readonly additionalProperties: {
14588
+ readonly type: "string";
14589
+ };
14590
+ };
14591
+ };
14592
+ readonly required: readonly ["path", "trigger", "agent"];
14593
+ readonly additionalProperties: false;
14594
+ };
14595
+ };
14551
14596
  };
14552
14597
  readonly additionalProperties: false;
14553
14598
  };
@@ -18469,6 +18514,12 @@ export declare const redoclyConfigSchema: {
18469
18514
  readonly additionalProperties: false;
18470
18515
  };
18471
18516
  };
18517
+ readonly ignore: {
18518
+ readonly type: "array";
18519
+ readonly items: {
18520
+ readonly type: "string";
18521
+ };
18522
+ };
18472
18523
  };
18473
18524
  };
18474
18525
  };
@@ -21583,6 +21634,12 @@ export declare const rootRedoclyConfigSchema: {
21583
21634
  };
21584
21635
  scorecard: {
21585
21636
  properties: {
21637
+ ignore: {
21638
+ items: {
21639
+ type: "string";
21640
+ };
21641
+ type: "array";
21642
+ };
21586
21643
  ignoreNonCompliant: {
21587
21644
  type: "boolean";
21588
21645
  };
@@ -25726,7 +25783,7 @@ export declare const rootRedoclyConfigSchema: {
25726
25783
  additionalProperties: true;
25727
25784
  type: "object";
25728
25785
  };
25729
- ssoOnPrem: {
25786
+ ssoDirect: {
25730
25787
  additionalProperties: {
25731
25788
  oneOf: ({
25732
25789
  properties: {
@@ -26169,6 +26226,45 @@ export declare const rootRedoclyConfigSchema: {
26169
26226
  ignoreMarkdocErrors: {
26170
26227
  type: "boolean";
26171
26228
  };
26229
+ jobs: {
26230
+ items: {
26231
+ properties: {
26232
+ path: {
26233
+ type: "string";
26234
+ pattern: "^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$";
26235
+ };
26236
+ trigger: {
26237
+ properties: {
26238
+ event: {
26239
+ enum: "schedule"[];
26240
+ type: "string";
26241
+ };
26242
+ interval: {
26243
+ type: "string";
26244
+ pattern: "^[1-9]\\d*[mhdw]$";
26245
+ };
26246
+ };
26247
+ additionalProperties: false;
26248
+ type: "object";
26249
+ required: "event"[];
26250
+ };
26251
+ agent: {
26252
+ enum: "spot"[];
26253
+ type: "string";
26254
+ };
26255
+ inputs: {
26256
+ additionalProperties: {
26257
+ type: "string";
26258
+ };
26259
+ type: "object";
26260
+ };
26261
+ };
26262
+ additionalProperties: false;
26263
+ type: "object";
26264
+ required: ("path" | "trigger" | "agent")[];
26265
+ };
26266
+ type: "array";
26267
+ };
26172
26268
  };
26173
26269
  additionalProperties: false;
26174
26270
  type: "object";
@@ -28850,6 +28946,12 @@ export declare const rootRedoclyConfigSchema: {
28850
28946
  };
28851
28947
  scorecard: {
28852
28948
  properties: {
28949
+ ignore: {
28950
+ items: {
28951
+ type: "string";
28952
+ };
28953
+ type: "array";
28954
+ };
28853
28955
  ignoreNonCompliant: {
28854
28956
  type: "boolean";
28855
28957
  };
@@ -33577,7 +33679,7 @@ export declare const rootRedoclyConfigSchema: {
33577
33679
  readonly type: "object";
33578
33680
  readonly additionalProperties: true;
33579
33681
  };
33580
- readonly ssoOnPrem: {
33682
+ readonly ssoDirect: {
33581
33683
  readonly type: "object";
33582
33684
  readonly additionalProperties: {
33583
33685
  readonly oneOf: readonly [{
@@ -37944,6 +38046,12 @@ export declare const rootRedoclyConfigSchema: {
37944
38046
  readonly additionalProperties: false;
37945
38047
  };
37946
38048
  };
38049
+ readonly ignore: {
38050
+ readonly type: "array";
38051
+ readonly items: {
38052
+ readonly type: "string";
38053
+ };
38054
+ };
37947
38055
  };
37948
38056
  };
37949
38057
  };
@@ -37969,6 +38077,45 @@ export declare const rootRedoclyConfigSchema: {
37969
38077
  readonly ignoreMarkdocErrors: {
37970
38078
  readonly type: "boolean";
37971
38079
  };
38080
+ readonly jobs: {
38081
+ readonly type: "array";
38082
+ readonly items: {
38083
+ readonly type: "object";
38084
+ readonly properties: {
38085
+ readonly path: {
38086
+ readonly type: "string";
38087
+ readonly pattern: "^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$";
38088
+ };
38089
+ readonly agent: {
38090
+ readonly type: "string";
38091
+ readonly enum: readonly ["spot"];
38092
+ };
38093
+ readonly trigger: {
38094
+ readonly type: "object";
38095
+ readonly additionalProperties: false;
38096
+ readonly properties: {
38097
+ readonly event: {
38098
+ readonly type: "string";
38099
+ readonly enum: readonly ["schedule"];
38100
+ };
38101
+ readonly interval: {
38102
+ readonly type: "string";
38103
+ readonly pattern: "^[1-9]\\d*[mhdw]$";
38104
+ };
38105
+ };
38106
+ readonly required: readonly ["event"];
38107
+ };
38108
+ readonly inputs: {
38109
+ readonly type: "object";
38110
+ readonly additionalProperties: {
38111
+ readonly type: "string";
38112
+ };
38113
+ };
38114
+ };
38115
+ readonly required: readonly ["path", "trigger", "agent"];
38116
+ readonly additionalProperties: false;
38117
+ };
38118
+ };
37972
38119
  };
37973
38120
  readonly additionalProperties: false;
37974
38121
  };
@@ -41890,6 +42037,12 @@ export declare const rootRedoclyConfigSchema: {
41890
42037
  readonly additionalProperties: false;
41891
42038
  };
41892
42039
  };
42040
+ readonly ignore: {
42041
+ readonly type: "array";
42042
+ readonly items: {
42043
+ readonly type: "string";
42044
+ };
42045
+ };
41893
42046
  };
41894
42047
  };
41895
42048
  readonly plugins: {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.rootRedoclyConfigSchema = exports.redoclyConfigSchema = exports.l10nConfigSchema = exports.devOnboardingAdapterConfigSchema = exports.apigeeEdgeAdapterConfigSchema = exports.apigeeXAdapterConfigSchema = exports.apigeeAdapterAuthServiceAccountSchema = exports.apigeeAdapterAuthOauth2Schema = exports.graviteeAdapterConfigSchema = exports.graviteeAdapterAuthIdpSchema = exports.graviteeAdapterAuthStaticSchema = exports.rbacConfigSchema = exports.rbacScopeItemsSchema = exports.seoConfigSchema = exports.apiConfigSchema = exports.redirectsConfigSchema = exports.redirectConfigSchema = exports.ssoConfigSchema = exports.ssoOnPremConfigSchema = exports.authProviderConfigSchema = exports.saml2ProviderConfigSchema = exports.oidcProviderConfigSchema = exports.oidcIssuerMetadataSchema = void 0;
3
+ exports.rootRedoclyConfigSchema = exports.redoclyConfigSchema = exports.l10nConfigSchema = exports.devOnboardingAdapterConfigSchema = exports.apigeeEdgeAdapterConfigSchema = exports.apigeeXAdapterConfigSchema = exports.apigeeAdapterAuthServiceAccountSchema = exports.apigeeAdapterAuthOauth2Schema = exports.graviteeAdapterConfigSchema = exports.graviteeAdapterAuthIdpSchema = exports.graviteeAdapterAuthStaticSchema = exports.rbacConfigSchema = exports.rbacScopeItemsSchema = exports.seoConfigSchema = exports.apiConfigSchema = exports.redirectsConfigSchema = exports.redirectConfigSchema = exports.ssoConfigSchema = exports.ssoDirectConfigSchema = exports.authProviderConfigSchema = exports.saml2ProviderConfigSchema = exports.oidcProviderConfigSchema = exports.oidcIssuerMetadataSchema = void 0;
4
4
  const constants_1 = require("./constants");
5
5
  const default_theme_config_schema_1 = require("./default-theme-config-schema");
6
6
  const feedback_config_schema_1 = require("./feedback-config-schema");
@@ -62,7 +62,7 @@ exports.authProviderConfigSchema = {
62
62
  oneOf: [exports.oidcProviderConfigSchema, exports.saml2ProviderConfigSchema],
63
63
  discriminator: { propertyName: 'type' },
64
64
  };
65
- exports.ssoOnPremConfigSchema = {
65
+ exports.ssoDirectConfigSchema = {
66
66
  type: 'object',
67
67
  additionalProperties: exports.authProviderConfigSchema,
68
68
  };
@@ -344,7 +344,7 @@ exports.redoclyConfigSchema = {
344
344
  rules: rulesSchema,
345
345
  decorators: { type: 'object', additionalProperties: true },
346
346
  preprocessors: { type: 'object', additionalProperties: true },
347
- ssoOnPrem: exports.ssoOnPremConfigSchema,
347
+ ssoDirect: exports.ssoDirectConfigSchema,
348
348
  sso: exports.ssoConfigSchema,
349
349
  residency: { type: 'string' },
350
350
  developerOnboarding: devOnboardingConfigSchema,
package/lib/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { FromSchema } from 'json-schema-to-ts';
2
2
  import type { themeConfigSchema } from './default-theme-config-schema';
3
3
  import type { productConfigOverrideSchema } from './product-override-schema';
4
- import type { apiConfigSchema, apigeeAdapterAuthOauth2Schema, apigeeAdapterAuthServiceAccountSchema, apigeeEdgeAdapterConfigSchema, apigeeXAdapterConfigSchema, authProviderConfigSchema, devOnboardingAdapterConfigSchema, graviteeAdapterConfigSchema, l10nConfigSchema, oidcIssuerMetadataSchema, oidcProviderConfigSchema, rbacConfigSchema, rbacScopeItemsSchema, redirectConfigSchema, redirectsConfigSchema, rootRedoclyConfigSchema, saml2ProviderConfigSchema, seoConfigSchema, ssoOnPremConfigSchema } from './root-config-schema';
4
+ import type { apiConfigSchema, apigeeAdapterAuthOauth2Schema, apigeeAdapterAuthServiceAccountSchema, apigeeEdgeAdapterConfigSchema, apigeeXAdapterConfigSchema, authProviderConfigSchema, devOnboardingAdapterConfigSchema, graviteeAdapterConfigSchema, l10nConfigSchema, oidcIssuerMetadataSchema, oidcProviderConfigSchema, rbacConfigSchema, rbacScopeItemsSchema, redirectConfigSchema, redirectsConfigSchema, rootRedoclyConfigSchema, saml2ProviderConfigSchema, seoConfigSchema, ssoDirectConfigSchema } from './root-config-schema';
5
5
  import type { RedocConfigTypes } from './redoc-types';
6
6
  import type { GraphQLConfigTypes } from './graphql-types';
7
7
  import type { productConfigSchema, productGoogleAnalyticsConfigSchema, markdownConfigSchema, amplitudeAnalyticsConfigSchema, rudderstackAnalyticsConfigSchema, segmentAnalyticsConfigSchema, gtmAnalyticsConfigSchema, googleAnalyticsConfigSchema, scorecardConfigSchema, catalogFilterSchema, catalogSchema, searchFacetsConfigSchema } from './ex-theme-config-schemas';
@@ -49,7 +49,7 @@ export type GraviteeAdapterConfig = FromSchema<typeof graviteeAdapterConfigSchem
49
49
  export type ApigeeAdapterConfig = FromSchema<typeof apigeeXAdapterConfigSchema | typeof apigeeEdgeAdapterConfigSchema>;
50
50
  export type ApigeeAdapterAuthOauth2 = FromSchema<typeof apigeeAdapterAuthOauth2Schema>;
51
51
  export type ApigeeAdapterAuthServiceAccount = FromSchema<typeof apigeeAdapterAuthServiceAccountSchema>;
52
- export type SsoConfig = FromSchema<typeof ssoOnPremConfigSchema>;
52
+ export type SsoConfig = FromSchema<typeof ssoDirectConfigSchema>;
53
53
  export type L10nConfig = FromSchema<typeof l10nConfigSchema>;
54
54
  type BasicApiConfig = FromSchema<typeof apiConfigSchema>;
55
55
  export type ApiConfig = BasicApiConfig & {
@@ -3928,6 +3928,12 @@ export declare const themeConfigSchema: {
3928
3928
  readonly additionalProperties: false;
3929
3929
  };
3930
3930
  };
3931
+ readonly ignore: {
3932
+ readonly type: "array";
3933
+ readonly items: {
3934
+ readonly type: "string";
3935
+ };
3936
+ };
3931
3937
  };
3932
3938
  };
3933
3939
  };
@@ -7864,6 +7870,12 @@ export declare const closedThemeConfigSchema: {
7864
7870
  readonly additionalProperties: false;
7865
7871
  };
7866
7872
  };
7873
+ readonly ignore: {
7874
+ readonly type: "array";
7875
+ readonly items: {
7876
+ readonly type: "string";
7877
+ };
7878
+ };
7867
7879
  };
7868
7880
  };
7869
7881
  };
@@ -4062,5 +4062,11 @@ export declare const scorecardConfigSchema: {
4062
4062
  readonly additionalProperties: false;
4063
4063
  };
4064
4064
  };
4065
+ readonly ignore: {
4066
+ readonly type: "array";
4067
+ readonly items: {
4068
+ readonly type: "string";
4069
+ };
4070
+ };
4065
4071
  };
4066
4072
  };
@@ -583,6 +583,10 @@ export const scorecardConfigSchema = {
583
583
  additionalProperties: false,
584
584
  },
585
585
  },
586
+ ignore: {
587
+ type: 'array',
588
+ items: { type: 'string' },
589
+ },
586
590
  },
587
591
  };
588
592
  //# sourceMappingURL=ex-theme-config-schemas.js.map
@@ -3,7 +3,8 @@ import type { Location } from 'react-router-dom';
3
3
  import type { graphqlConfigSchema } from './graphql-config-schema';
4
4
  export type GraphQLConfigTypes = FromSchema<typeof graphqlConfigSchema> & {
5
5
  markdown?: {
6
- parser: (md: string) => string;
6
+ parser?: (md: string) => string;
7
+ highlight?: (code: string, lang: string, options?: Record<string, any>) => string;
7
8
  };
8
9
  onLocationChange?: (location: Partial<Location>) => void;
9
10
  };
@@ -18,6 +18,45 @@ export declare const reuniteConfigSchema: {
18
18
  readonly ignoreMarkdocErrors: {
19
19
  readonly type: "boolean";
20
20
  };
21
+ readonly jobs: {
22
+ readonly type: "array";
23
+ readonly items: {
24
+ readonly type: "object";
25
+ readonly properties: {
26
+ readonly path: {
27
+ readonly type: "string";
28
+ readonly pattern: "^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$";
29
+ };
30
+ readonly agent: {
31
+ readonly type: "string";
32
+ readonly enum: readonly ["spot"];
33
+ };
34
+ readonly trigger: {
35
+ readonly type: "object";
36
+ readonly additionalProperties: false;
37
+ readonly properties: {
38
+ readonly event: {
39
+ readonly type: "string";
40
+ readonly enum: readonly ["schedule"];
41
+ };
42
+ readonly interval: {
43
+ readonly type: "string";
44
+ readonly pattern: "^[1-9]\\d*[mhdw]$";
45
+ };
46
+ };
47
+ readonly required: readonly ["event"];
48
+ };
49
+ readonly inputs: {
50
+ readonly type: "object";
51
+ readonly additionalProperties: {
52
+ readonly type: "string";
53
+ };
54
+ };
55
+ };
56
+ readonly required: readonly ["path", "trigger", "agent"];
57
+ readonly additionalProperties: false;
58
+ };
59
+ };
21
60
  };
22
61
  readonly additionalProperties: false;
23
62
  };
@@ -1,3 +1,19 @@
1
+ const jobInputsSchema = {
2
+ type: 'object',
3
+ additionalProperties: { type: 'string' },
4
+ };
5
+ const jobTriggerSchema = {
6
+ type: 'object',
7
+ additionalProperties: false,
8
+ properties: {
9
+ event: {
10
+ type: 'string',
11
+ enum: ['schedule'],
12
+ },
13
+ interval: { type: 'string', pattern: '^[1-9]\\d*[mhdw]$' },
14
+ },
15
+ required: ['event'],
16
+ };
1
17
  export const reuniteConfigSchema = {
2
18
  type: 'object',
3
19
  properties: {
@@ -12,6 +28,26 @@ export const reuniteConfigSchema = {
12
28
  },
13
29
  ignoreLinkChecker: { type: 'boolean' },
14
30
  ignoreMarkdocErrors: { type: 'boolean' },
31
+ jobs: {
32
+ type: 'array',
33
+ items: {
34
+ type: 'object',
35
+ properties: {
36
+ path: {
37
+ type: 'string',
38
+ pattern: '^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$',
39
+ },
40
+ agent: {
41
+ type: 'string',
42
+ enum: ['spot'],
43
+ },
44
+ trigger: jobTriggerSchema,
45
+ inputs: jobInputsSchema,
46
+ },
47
+ required: ['path', 'trigger', 'agent'],
48
+ additionalProperties: false,
49
+ },
50
+ },
15
51
  },
16
52
  additionalProperties: false,
17
53
  };
@@ -298,7 +298,7 @@ export declare const authProviderConfigSchema: {
298
298
  readonly propertyName: "type";
299
299
  };
300
300
  };
301
- export declare const ssoOnPremConfigSchema: {
301
+ export declare const ssoDirectConfigSchema: {
302
302
  readonly type: "object";
303
303
  readonly additionalProperties: {
304
304
  readonly oneOf: readonly [{
@@ -10156,7 +10156,7 @@ export declare const redoclyConfigSchema: {
10156
10156
  readonly type: "object";
10157
10157
  readonly additionalProperties: true;
10158
10158
  };
10159
- readonly ssoOnPrem: {
10159
+ readonly ssoDirect: {
10160
10160
  readonly type: "object";
10161
10161
  readonly additionalProperties: {
10162
10162
  readonly oneOf: readonly [{
@@ -14523,6 +14523,12 @@ export declare const redoclyConfigSchema: {
14523
14523
  readonly additionalProperties: false;
14524
14524
  };
14525
14525
  };
14526
+ readonly ignore: {
14527
+ readonly type: "array";
14528
+ readonly items: {
14529
+ readonly type: "string";
14530
+ };
14531
+ };
14526
14532
  };
14527
14533
  };
14528
14534
  };
@@ -14548,6 +14554,45 @@ export declare const redoclyConfigSchema: {
14548
14554
  readonly ignoreMarkdocErrors: {
14549
14555
  readonly type: "boolean";
14550
14556
  };
14557
+ readonly jobs: {
14558
+ readonly type: "array";
14559
+ readonly items: {
14560
+ readonly type: "object";
14561
+ readonly properties: {
14562
+ readonly path: {
14563
+ readonly type: "string";
14564
+ readonly pattern: "^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$";
14565
+ };
14566
+ readonly agent: {
14567
+ readonly type: "string";
14568
+ readonly enum: readonly ["spot"];
14569
+ };
14570
+ readonly trigger: {
14571
+ readonly type: "object";
14572
+ readonly additionalProperties: false;
14573
+ readonly properties: {
14574
+ readonly event: {
14575
+ readonly type: "string";
14576
+ readonly enum: readonly ["schedule"];
14577
+ };
14578
+ readonly interval: {
14579
+ readonly type: "string";
14580
+ readonly pattern: "^[1-9]\\d*[mhdw]$";
14581
+ };
14582
+ };
14583
+ readonly required: readonly ["event"];
14584
+ };
14585
+ readonly inputs: {
14586
+ readonly type: "object";
14587
+ readonly additionalProperties: {
14588
+ readonly type: "string";
14589
+ };
14590
+ };
14591
+ };
14592
+ readonly required: readonly ["path", "trigger", "agent"];
14593
+ readonly additionalProperties: false;
14594
+ };
14595
+ };
14551
14596
  };
14552
14597
  readonly additionalProperties: false;
14553
14598
  };
@@ -18469,6 +18514,12 @@ export declare const redoclyConfigSchema: {
18469
18514
  readonly additionalProperties: false;
18470
18515
  };
18471
18516
  };
18517
+ readonly ignore: {
18518
+ readonly type: "array";
18519
+ readonly items: {
18520
+ readonly type: "string";
18521
+ };
18522
+ };
18472
18523
  };
18473
18524
  };
18474
18525
  };
@@ -21583,6 +21634,12 @@ export declare const rootRedoclyConfigSchema: {
21583
21634
  };
21584
21635
  scorecard: {
21585
21636
  properties: {
21637
+ ignore: {
21638
+ items: {
21639
+ type: "string";
21640
+ };
21641
+ type: "array";
21642
+ };
21586
21643
  ignoreNonCompliant: {
21587
21644
  type: "boolean";
21588
21645
  };
@@ -25726,7 +25783,7 @@ export declare const rootRedoclyConfigSchema: {
25726
25783
  additionalProperties: true;
25727
25784
  type: "object";
25728
25785
  };
25729
- ssoOnPrem: {
25786
+ ssoDirect: {
25730
25787
  additionalProperties: {
25731
25788
  oneOf: ({
25732
25789
  properties: {
@@ -26169,6 +26226,45 @@ export declare const rootRedoclyConfigSchema: {
26169
26226
  ignoreMarkdocErrors: {
26170
26227
  type: "boolean";
26171
26228
  };
26229
+ jobs: {
26230
+ items: {
26231
+ properties: {
26232
+ path: {
26233
+ type: "string";
26234
+ pattern: "^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$";
26235
+ };
26236
+ trigger: {
26237
+ properties: {
26238
+ event: {
26239
+ enum: "schedule"[];
26240
+ type: "string";
26241
+ };
26242
+ interval: {
26243
+ type: "string";
26244
+ pattern: "^[1-9]\\d*[mhdw]$";
26245
+ };
26246
+ };
26247
+ additionalProperties: false;
26248
+ type: "object";
26249
+ required: "event"[];
26250
+ };
26251
+ agent: {
26252
+ enum: "spot"[];
26253
+ type: "string";
26254
+ };
26255
+ inputs: {
26256
+ additionalProperties: {
26257
+ type: "string";
26258
+ };
26259
+ type: "object";
26260
+ };
26261
+ };
26262
+ additionalProperties: false;
26263
+ type: "object";
26264
+ required: ("path" | "trigger" | "agent")[];
26265
+ };
26266
+ type: "array";
26267
+ };
26172
26268
  };
26173
26269
  additionalProperties: false;
26174
26270
  type: "object";
@@ -28850,6 +28946,12 @@ export declare const rootRedoclyConfigSchema: {
28850
28946
  };
28851
28947
  scorecard: {
28852
28948
  properties: {
28949
+ ignore: {
28950
+ items: {
28951
+ type: "string";
28952
+ };
28953
+ type: "array";
28954
+ };
28853
28955
  ignoreNonCompliant: {
28854
28956
  type: "boolean";
28855
28957
  };
@@ -33577,7 +33679,7 @@ export declare const rootRedoclyConfigSchema: {
33577
33679
  readonly type: "object";
33578
33680
  readonly additionalProperties: true;
33579
33681
  };
33580
- readonly ssoOnPrem: {
33682
+ readonly ssoDirect: {
33581
33683
  readonly type: "object";
33582
33684
  readonly additionalProperties: {
33583
33685
  readonly oneOf: readonly [{
@@ -37944,6 +38046,12 @@ export declare const rootRedoclyConfigSchema: {
37944
38046
  readonly additionalProperties: false;
37945
38047
  };
37946
38048
  };
38049
+ readonly ignore: {
38050
+ readonly type: "array";
38051
+ readonly items: {
38052
+ readonly type: "string";
38053
+ };
38054
+ };
37947
38055
  };
37948
38056
  };
37949
38057
  };
@@ -37969,6 +38077,45 @@ export declare const rootRedoclyConfigSchema: {
37969
38077
  readonly ignoreMarkdocErrors: {
37970
38078
  readonly type: "boolean";
37971
38079
  };
38080
+ readonly jobs: {
38081
+ readonly type: "array";
38082
+ readonly items: {
38083
+ readonly type: "object";
38084
+ readonly properties: {
38085
+ readonly path: {
38086
+ readonly type: "string";
38087
+ readonly pattern: "^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$";
38088
+ };
38089
+ readonly agent: {
38090
+ readonly type: "string";
38091
+ readonly enum: readonly ["spot"];
38092
+ };
38093
+ readonly trigger: {
38094
+ readonly type: "object";
38095
+ readonly additionalProperties: false;
38096
+ readonly properties: {
38097
+ readonly event: {
38098
+ readonly type: "string";
38099
+ readonly enum: readonly ["schedule"];
38100
+ };
38101
+ readonly interval: {
38102
+ readonly type: "string";
38103
+ readonly pattern: "^[1-9]\\d*[mhdw]$";
38104
+ };
38105
+ };
38106
+ readonly required: readonly ["event"];
38107
+ };
38108
+ readonly inputs: {
38109
+ readonly type: "object";
38110
+ readonly additionalProperties: {
38111
+ readonly type: "string";
38112
+ };
38113
+ };
38114
+ };
38115
+ readonly required: readonly ["path", "trigger", "agent"];
38116
+ readonly additionalProperties: false;
38117
+ };
38118
+ };
37972
38119
  };
37973
38120
  readonly additionalProperties: false;
37974
38121
  };
@@ -41890,6 +42037,12 @@ export declare const rootRedoclyConfigSchema: {
41890
42037
  readonly additionalProperties: false;
41891
42038
  };
41892
42039
  };
42040
+ readonly ignore: {
42041
+ readonly type: "array";
42042
+ readonly items: {
42043
+ readonly type: "string";
42044
+ };
42045
+ };
41893
42046
  };
41894
42047
  };
41895
42048
  readonly plugins: {
@@ -59,7 +59,7 @@ export const authProviderConfigSchema = {
59
59
  oneOf: [oidcProviderConfigSchema, saml2ProviderConfigSchema],
60
60
  discriminator: { propertyName: 'type' },
61
61
  };
62
- export const ssoOnPremConfigSchema = {
62
+ export const ssoDirectConfigSchema = {
63
63
  type: 'object',
64
64
  additionalProperties: authProviderConfigSchema,
65
65
  };
@@ -341,7 +341,7 @@ export const redoclyConfigSchema = {
341
341
  rules: rulesSchema,
342
342
  decorators: { type: 'object', additionalProperties: true },
343
343
  preprocessors: { type: 'object', additionalProperties: true },
344
- ssoOnPrem: ssoOnPremConfigSchema,
344
+ ssoDirect: ssoDirectConfigSchema,
345
345
  sso: ssoConfigSchema,
346
346
  residency: { type: 'string' },
347
347
  developerOnboarding: devOnboardingConfigSchema,
@@ -1,7 +1,7 @@
1
1
  import type { FromSchema } from 'json-schema-to-ts';
2
2
  import type { themeConfigSchema } from './default-theme-config-schema';
3
3
  import type { productConfigOverrideSchema } from './product-override-schema';
4
- import type { apiConfigSchema, apigeeAdapterAuthOauth2Schema, apigeeAdapterAuthServiceAccountSchema, apigeeEdgeAdapterConfigSchema, apigeeXAdapterConfigSchema, authProviderConfigSchema, devOnboardingAdapterConfigSchema, graviteeAdapterConfigSchema, l10nConfigSchema, oidcIssuerMetadataSchema, oidcProviderConfigSchema, rbacConfigSchema, rbacScopeItemsSchema, redirectConfigSchema, redirectsConfigSchema, rootRedoclyConfigSchema, saml2ProviderConfigSchema, seoConfigSchema, ssoOnPremConfigSchema } from './root-config-schema';
4
+ import type { apiConfigSchema, apigeeAdapterAuthOauth2Schema, apigeeAdapterAuthServiceAccountSchema, apigeeEdgeAdapterConfigSchema, apigeeXAdapterConfigSchema, authProviderConfigSchema, devOnboardingAdapterConfigSchema, graviteeAdapterConfigSchema, l10nConfigSchema, oidcIssuerMetadataSchema, oidcProviderConfigSchema, rbacConfigSchema, rbacScopeItemsSchema, redirectConfigSchema, redirectsConfigSchema, rootRedoclyConfigSchema, saml2ProviderConfigSchema, seoConfigSchema, ssoDirectConfigSchema } from './root-config-schema';
5
5
  import type { RedocConfigTypes } from './redoc-types';
6
6
  import type { GraphQLConfigTypes } from './graphql-types';
7
7
  import type { productConfigSchema, productGoogleAnalyticsConfigSchema, markdownConfigSchema, amplitudeAnalyticsConfigSchema, rudderstackAnalyticsConfigSchema, segmentAnalyticsConfigSchema, gtmAnalyticsConfigSchema, googleAnalyticsConfigSchema, scorecardConfigSchema, catalogFilterSchema, catalogSchema, searchFacetsConfigSchema } from './ex-theme-config-schemas';
@@ -49,7 +49,7 @@ export type GraviteeAdapterConfig = FromSchema<typeof graviteeAdapterConfigSchem
49
49
  export type ApigeeAdapterConfig = FromSchema<typeof apigeeXAdapterConfigSchema | typeof apigeeEdgeAdapterConfigSchema>;
50
50
  export type ApigeeAdapterAuthOauth2 = FromSchema<typeof apigeeAdapterAuthOauth2Schema>;
51
51
  export type ApigeeAdapterAuthServiceAccount = FromSchema<typeof apigeeAdapterAuthServiceAccountSchema>;
52
- export type SsoConfig = FromSchema<typeof ssoOnPremConfigSchema>;
52
+ export type SsoConfig = FromSchema<typeof ssoDirectConfigSchema>;
53
53
  export type L10nConfig = FromSchema<typeof l10nConfigSchema>;
54
54
  type BasicApiConfig = FromSchema<typeof apiConfigSchema>;
55
55
  export type ApiConfig = BasicApiConfig & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/config",
3
- "version": "0.17.1",
3
+ "version": "0.19.0",
4
4
  "license": "MIT",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",