@redocly/openapi-core 0.0.0-snapshot.1769012238 → 0.0.0-snapshot.1769016804
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/lib/config/config.d.ts +5 -3
- package/lib/config/config.d.ts.map +1 -1
- package/lib/config/config.js +16 -31
- package/lib/config/config.js.map +1 -1
- package/lib/config/load.d.ts +4 -2
- package/lib/config/load.d.ts.map +1 -1
- package/lib/config/load.js +22 -2
- package/lib/config/load.js.map +1 -1
- package/lib/config/types.d.ts +5 -0
- package/lib/config/types.d.ts.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/oas-types.d.ts +0 -190
- package/lib/oas-types.d.ts.map +1 -1
- package/lib/ref-utils.d.ts +2 -0
- package/lib/ref-utils.d.ts.map +1 -1
- package/lib/ref-utils.js +16 -1
- package/lib/ref-utils.js.map +1 -1
- package/lib/types/arazzo.d.ts.map +1 -1
- package/lib/types/arazzo.js +44 -210
- package/lib/types/arazzo.js.map +1 -1
- package/lib/types/asyncapi2.d.ts.map +1 -1
- package/lib/types/asyncapi2.js +57 -385
- package/lib/types/asyncapi2.js.map +1 -1
- package/lib/types/asyncapi3.d.ts.map +1 -1
- package/lib/types/asyncapi3.js +47 -228
- package/lib/types/asyncapi3.js.map +1 -1
- package/lib/types/index.d.ts +2 -18
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/index.js +2 -4
- package/lib/types/index.js.map +1 -1
- package/lib/types/oas2.d.ts +0 -22
- package/lib/types/oas2.d.ts.map +1 -1
- package/lib/types/oas3.d.ts +0 -44
- package/lib/types/oas3.d.ts.map +1 -1
- package/lib/types/oas3.js +70 -345
- package/lib/types/oas3.js.map +1 -1
- package/lib/types/oas3_1.d.ts +0 -46
- package/lib/types/oas3_1.d.ts.map +1 -1
- package/lib/types/oas3_1.js +29 -38
- package/lib/types/oas3_1.js.map +1 -1
- package/lib/types/oas3_2.d.ts +0 -46
- package/lib/types/oas3_2.d.ts.map +1 -1
- package/lib/types/oas3_2.js +23 -101
- package/lib/types/oas3_2.js.map +1 -1
- package/lib/types/openrpc.d.ts +0 -32
- package/lib/types/openrpc.d.ts.map +1 -1
- package/lib/types/openrpc.js +46 -215
- package/lib/types/openrpc.js.map +1 -1
- package/lib/types/overlay.d.ts.map +1 -1
- package/lib/types/overlay.js +7 -34
- package/lib/types/overlay.js.map +1 -1
- package/lib/types/redocly-yaml.d.ts.map +1 -1
- package/lib/types/redocly-yaml.js +22 -132
- package/lib/types/redocly-yaml.js.map +1 -1
- package/package.json +1 -1
package/lib/oas-types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oas-types.d.ts","sourceRoot":"","sources":["../src/oas-types.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EACV,kBAAkB,EAClB,UAAU,EACV,mBAAmB,EACnB,WAAW,EACX,oBAAoB,EACpB,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACb,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,YAAY,wGAUf,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;AAEtD,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,UAAU,GACV,UAAU,CAAC;AAcf,MAAM,MAAM,OAAO,CAAC,GAAG,SAAS,MAAM,EAAE,UAAU,EAAE,CAAC,IAAI,MAAM,CAC7D,CAAC,S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,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AAEzE,wBAAgB,QAAQ,CAAC,IAAI,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEzC"}
|
package/lib/ref-utils.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export declare function parsePointer(pointer: string): string[];
|
|
|
24
24
|
export declare function pointerBaseName(pointer: string): string;
|
|
25
25
|
export declare function refBaseName(ref: string): string;
|
|
26
26
|
export declare function isAbsoluteUrl(ref: string): boolean;
|
|
27
|
+
export declare function getDir(filePath: string): string;
|
|
28
|
+
export declare function resolvePath(base: string, relative: string): string;
|
|
27
29
|
export declare function isMappingRef(mapping: string): boolean;
|
|
28
30
|
export declare function isAnchor(ref: string): boolean;
|
|
29
31
|
export declare function replaceRef(ref: OasRef, resolved: ResolveResult<any>, ctx: UserContext): void;
|
package/lib/ref-utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref-utils.d.ts","sourceRoot":"","sources":["../src/ref-utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ref-utils.d.ts","sourceRoot":"","sources":["../src/ref-utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,UAG7D;AAED,wBAAgB,KAAK,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,MAAM,CAEnD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,WAE5C;AAED,qBAAa,QAAQ;IACA,MAAM,EAAE,MAAM;IAAS,OAAO,EAAE,MAAM;gBAAtC,MAAM,EAAE,MAAM,EAAS,OAAO,EAAE,MAAM;IAEzD,KAAK,CAAC,UAAU,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,MAAM,GAAG,MAAM;IAUvD,GAAG;;;IAIH,IAAI,eAAe,WAElB;CACF;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAShE;AAED,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,CAAC,CAK/E;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAM/E;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,YAE3C;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,UAG9C;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,UAItC;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,WAExC;AAED,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAQ/C;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAKlE;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,WAU3C;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,WAEnC;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,WAAW,QAUrF"}
|
package/lib/ref-utils.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as path from 'node:path';
|
|
1
2
|
import { isTruthy } from './utils/is-truthy.js';
|
|
2
3
|
import { isPlainObject } from './utils/is-plain-object.js';
|
|
3
4
|
export function joinPointer(base, key) {
|
|
@@ -62,7 +63,21 @@ export function refBaseName(ref) {
|
|
|
62
63
|
return parts[parts.length - 1].replace(/\.[^.]+$/, ''); // replace extension with empty string
|
|
63
64
|
}
|
|
64
65
|
export function isAbsoluteUrl(ref) {
|
|
65
|
-
return ref.startsWith('http://') || ref.startsWith('https://');
|
|
66
|
+
return ref.startsWith('http://') || ref.startsWith('https://') || ref.startsWith('file://');
|
|
67
|
+
}
|
|
68
|
+
export function getDir(filePath) {
|
|
69
|
+
if (!path.extname(filePath)) {
|
|
70
|
+
return filePath;
|
|
71
|
+
}
|
|
72
|
+
return isAbsoluteUrl(filePath)
|
|
73
|
+
? filePath.substring(0, filePath.lastIndexOf('/'))
|
|
74
|
+
: path.dirname(filePath);
|
|
75
|
+
}
|
|
76
|
+
export function resolvePath(base, relative) {
|
|
77
|
+
if (isAbsoluteUrl(base)) {
|
|
78
|
+
return new URL(relative, base.endsWith('/') ? base : `${base}/`).href;
|
|
79
|
+
}
|
|
80
|
+
return path.resolve(base, relative);
|
|
66
81
|
}
|
|
67
82
|
export function isMappingRef(mapping) {
|
|
68
83
|
// TODO: proper detection of mapping refs
|
package/lib/ref-utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref-utils.js","sourceRoot":"","sources":["../src/ref-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAM3D,MAAM,UAAU,WAAW,CAAC,IAAY,EAAE,GAAoB;IAC5D,IAAI,IAAI,KAAK,EAAE;QAAE,IAAI,GAAG,IAAI,CAAC;IAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,GAAG,GAAG,GAAG,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,IAAa;IACjC,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAa;IAC3C,OAAO,aAAa,CAAC,IAAI,CAAC,IAAI,OAAO,IAAI,CAAC,aAAa,KAAK,QAAQ,CAAC;AACvE,CAAC;AAED,MAAM,OAAO,QAAQ;IACnB,YAAmB,MAAc,EAAS,OAAe;QAAtC,WAAM,GAAN,MAAM,CAAQ;QAAS,YAAO,GAAP,OAAO,CAAQ;IAAG,CAAC;IAE7D,KAAK,CAAC,UAAiD;QACrD,OAAO,IAAI,QAAQ,CACjB,IAAI,CAAC,MAAM,EACX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,CAAC;QAChB,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAClD,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,wDAAwD;IACnF,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arazzo.d.ts","sourceRoot":"","sources":["../../src/types/arazzo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"arazzo.d.ts","sourceRoot":"","sources":["../../src/types/arazzo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAqR1D,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CA+CjD,CAAC"}
|
package/lib/types/arazzo.js
CHANGED
|
@@ -2,10 +2,7 @@ import { listOf, mapOf } from './index.js';
|
|
|
2
2
|
import { Oas3_2Types } from './oas3_2.js';
|
|
3
3
|
const Root = {
|
|
4
4
|
properties: {
|
|
5
|
-
arazzo: {
|
|
6
|
-
type: 'string',
|
|
7
|
-
description: 'REQUIRED. This string MUST be the version number of the Arazzo Specification that the Arazzo Description uses. The arazzo field MUST be used by tooling to interpret the Arazzo Description.',
|
|
8
|
-
},
|
|
5
|
+
arazzo: { type: 'string' },
|
|
9
6
|
info: 'Info',
|
|
10
7
|
sourceDescriptions: 'SourceDescriptions',
|
|
11
8
|
workflows: 'Workflows',
|
|
@@ -38,27 +35,13 @@ const Components = {
|
|
|
38
35
|
const NamedInputs = mapOf('Schema');
|
|
39
36
|
const Info = {
|
|
40
37
|
properties: {
|
|
41
|
-
title: {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
description: {
|
|
46
|
-
type: 'string',
|
|
47
|
-
description: 'A description of the purpose of the workflows defined. CommonMark syntax MAY be used for rich text representation.',
|
|
48
|
-
},
|
|
49
|
-
summary: {
|
|
50
|
-
type: 'string',
|
|
51
|
-
description: 'A short summary of the Arazzo Description.',
|
|
52
|
-
},
|
|
53
|
-
version: {
|
|
54
|
-
type: 'string',
|
|
55
|
-
description: 'REQUIRED. The version identifier of the Arazzo document (which is distinct from the Arazzo Specification version).',
|
|
56
|
-
},
|
|
38
|
+
title: { type: 'string' },
|
|
39
|
+
description: { type: 'string' },
|
|
40
|
+
summary: { type: 'string' },
|
|
41
|
+
version: { type: 'string' },
|
|
57
42
|
},
|
|
58
43
|
required: ['title', 'version'],
|
|
59
44
|
extensionsPrefix: 'x-',
|
|
60
|
-
description: 'The object provides metadata about API workflows defined in this Arazzo document. The metadata MAY be used by the clients if needed.',
|
|
61
|
-
documentationLink: `https://spec.openapis.org/arazzo/latest.html#info-object`,
|
|
62
45
|
};
|
|
63
46
|
const SourceDescriptions = {
|
|
64
47
|
properties: {},
|
|
@@ -73,77 +56,39 @@ const SourceDescriptions = {
|
|
|
73
56
|
};
|
|
74
57
|
const OpenAPISourceDescription = {
|
|
75
58
|
properties: {
|
|
76
|
-
name: {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
},
|
|
80
|
-
type: {
|
|
81
|
-
type: 'string',
|
|
82
|
-
enum: ['openapi'],
|
|
83
|
-
description: 'The type of source description. Possible values are "openapi".',
|
|
84
|
-
},
|
|
85
|
-
url: {
|
|
86
|
-
type: 'string',
|
|
87
|
-
description: 'REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2.',
|
|
88
|
-
},
|
|
59
|
+
name: { type: 'string' },
|
|
60
|
+
type: { type: 'string', enum: ['openapi'] },
|
|
61
|
+
url: { type: 'string' },
|
|
89
62
|
'x-serverUrl': { type: 'string' },
|
|
90
63
|
},
|
|
91
64
|
required: ['name', 'type', 'url'],
|
|
92
65
|
extensionsPrefix: 'x-',
|
|
93
|
-
description: 'Describes a source description (such as an OpenAPI description) that will be referenced by one or more workflows described within an Arazzo Description.',
|
|
94
|
-
documentationLink: 'https://spec.openapis.org/arazzo/latest.html#source-description-object',
|
|
95
66
|
};
|
|
96
67
|
const ArazzoSourceDescription = {
|
|
97
68
|
properties: {
|
|
98
|
-
name: {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
},
|
|
102
|
-
type: {
|
|
103
|
-
type: 'string',
|
|
104
|
-
enum: ['arazzo'],
|
|
105
|
-
description: 'The type of source description. Possible values are "arazzo".',
|
|
106
|
-
},
|
|
107
|
-
url: {
|
|
108
|
-
type: 'string',
|
|
109
|
-
description: 'REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2.',
|
|
110
|
-
},
|
|
69
|
+
name: { type: 'string' },
|
|
70
|
+
type: { type: 'string', enum: ['arazzo'] },
|
|
71
|
+
url: { type: 'string' },
|
|
111
72
|
},
|
|
112
73
|
required: ['name', 'type', 'url'],
|
|
113
74
|
extensionsPrefix: 'x-',
|
|
114
|
-
description: 'Describes a source description (such as an OpenAPI description) that will be referenced by one or more workflows described within an Arazzo Description.',
|
|
115
|
-
documentationLink: 'https://spec.openapis.org/arazzo/latest.html#source-description-object',
|
|
116
75
|
};
|
|
117
76
|
const ReusableObject = {
|
|
118
77
|
properties: {
|
|
119
|
-
reference: {
|
|
120
|
-
type: 'string',
|
|
121
|
-
description: 'REQUIRED. A Runtime Expression used to reference the desired object.',
|
|
122
|
-
},
|
|
78
|
+
reference: { type: 'string' },
|
|
123
79
|
value: {}, // any
|
|
124
80
|
},
|
|
125
81
|
required: ['reference'],
|
|
126
82
|
extensionsPrefix: 'x-',
|
|
127
|
-
documentationLink: 'https://spec.openapis.org/arazzo/latest.html#reusable-object',
|
|
128
|
-
description: 'A simple object to allow referencing of objects contained within the Components Object. It can be used from locations within steps or workflows in the Arazzo Description. Note - Input Objects MUST use standard JSON Schema referencing via the $ref keyword while all non JSON Schema objects use this object and its expression based referencing mechanism.',
|
|
129
83
|
};
|
|
130
84
|
const Parameter = {
|
|
131
85
|
properties: {
|
|
132
|
-
in: {
|
|
133
|
-
|
|
134
|
-
enum: ['header', 'query', 'path', 'cookie'],
|
|
135
|
-
description: 'The location of the parameter. Possible values are "path", "query", "header", or "cookie". When the step in context specifies a workflowId, then all parameters map to workflow inputs. In all other scenarios (e.g., a step specifies an operationId), the in field MUST be specified.',
|
|
136
|
-
},
|
|
137
|
-
name: {
|
|
138
|
-
type: 'string',
|
|
139
|
-
description: 'REQUIRED. The name of the parameter. Parameter names are case sensitive.',
|
|
140
|
-
},
|
|
86
|
+
in: { type: 'string', enum: ['header', 'query', 'path', 'cookie'] },
|
|
87
|
+
name: { type: 'string' },
|
|
141
88
|
value: {}, // any
|
|
142
89
|
},
|
|
143
90
|
required: ['name', 'value'],
|
|
144
91
|
extensionsPrefix: 'x-',
|
|
145
|
-
documentationLink: 'https://spec.openapis.org/arazzo/latest.html#parameter-object',
|
|
146
|
-
description: 'Describes a single step parameter. A unique parameter is defined by the combination of a name and in fields.',
|
|
147
92
|
};
|
|
148
93
|
const Parameters = {
|
|
149
94
|
properties: {},
|
|
@@ -158,24 +103,11 @@ const Parameters = {
|
|
|
158
103
|
};
|
|
159
104
|
const Workflow = {
|
|
160
105
|
properties: {
|
|
161
|
-
workflowId: {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
},
|
|
165
|
-
summary: {
|
|
166
|
-
type: 'string',
|
|
167
|
-
description: 'A short summary of what the workflow does.',
|
|
168
|
-
},
|
|
169
|
-
description: {
|
|
170
|
-
type: 'string',
|
|
171
|
-
description: 'A verbose explanation of the workflow behavior. CommonMark syntax MAY be used for rich text representation.',
|
|
172
|
-
},
|
|
106
|
+
workflowId: { type: 'string' },
|
|
107
|
+
summary: { type: 'string' },
|
|
108
|
+
description: { type: 'string' },
|
|
173
109
|
parameters: 'Parameters',
|
|
174
|
-
dependsOn: {
|
|
175
|
-
type: 'array',
|
|
176
|
-
items: { type: 'string' },
|
|
177
|
-
description: 'A list of workflows that MUST be completed before this workflow can be processed. Each value provided MUST be a workflowId.',
|
|
178
|
-
},
|
|
110
|
+
dependsOn: { type: 'array', items: { type: 'string' } },
|
|
179
111
|
inputs: 'Schema',
|
|
180
112
|
outputs: 'Outputs',
|
|
181
113
|
steps: 'Steps',
|
|
@@ -185,37 +117,18 @@ const Workflow = {
|
|
|
185
117
|
},
|
|
186
118
|
required: ['workflowId', 'steps'],
|
|
187
119
|
extensionsPrefix: 'x-',
|
|
188
|
-
documentationLink: 'https://spec.openapis.org/arazzo/latest.html#workflow-object',
|
|
189
|
-
description: 'Describes the steps to be taken across one or more APIs to achieve an objective. The workflow object MAY define inputs needed in order to execute workflow steps, where the defined steps represent a call to an API operation or another workflow, and a set of outputs.',
|
|
190
120
|
};
|
|
191
121
|
const Workflows = listOf('Workflow');
|
|
192
122
|
const Steps = listOf('Step');
|
|
193
123
|
const Step = {
|
|
194
124
|
properties: {
|
|
195
|
-
stepId: {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
},
|
|
199
|
-
|
|
200
|
-
type: 'string',
|
|
201
|
-
description: 'A description of the step. CommonMark syntax MAY be used for rich text representation.',
|
|
202
|
-
},
|
|
203
|
-
operationId: {
|
|
204
|
-
type: 'string',
|
|
205
|
-
description: 'The name of an existing, resolvable operation, as defined with a unique operationId and existing within one of the sourceDescriptions. The referenced operation will be invoked by this workflow step. If multiple (non arazzo type) sourceDescriptions are defined, then the operationId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<operationId>) to avoid ambiguity or potential clashes. This field is mutually exclusive of the operationPath and workflowId fields respectively.',
|
|
206
|
-
},
|
|
207
|
-
operationPath: {
|
|
208
|
-
type: 'string',
|
|
209
|
-
description: 'A reference to a Source Description Object combined with a JSON Pointer to reference an operation. This field is mutually exclusive of the operationId and workflowId fields respectively. The operation being referenced MUST be described within one of the sourceDescriptions descriptions. A Runtime Expression syntax MUST be used to identify the source description document. If the referenced operation has an operationId defined then the operationId SHOULD be preferred over the operationPath.',
|
|
210
|
-
},
|
|
211
|
-
workflowId: {
|
|
212
|
-
type: 'string',
|
|
213
|
-
description: 'The workflowId referencing an existing workflow within the Arazzo Description. If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. The field is mutually exclusive of the operationId and operationPath fields respectively.',
|
|
214
|
-
},
|
|
125
|
+
stepId: { type: 'string' },
|
|
126
|
+
description: { type: 'string' },
|
|
127
|
+
operationId: { type: 'string' },
|
|
128
|
+
operationPath: { type: 'string' },
|
|
129
|
+
workflowId: { type: 'string' },
|
|
215
130
|
parameters: 'Parameters',
|
|
216
|
-
successCriteria: listOf('CriterionObject',
|
|
217
|
-
description: 'A list of assertions to determine the success of the step. Each assertion is described using a Criterion Object. All assertions MUST be satisfied for the step to be deemed successful.',
|
|
218
|
-
}),
|
|
131
|
+
successCriteria: listOf('CriterionObject'),
|
|
219
132
|
onSuccess: 'OnSuccessActionList',
|
|
220
133
|
onFailure: 'OnFailureActionList',
|
|
221
134
|
outputs: 'Outputs',
|
|
@@ -226,65 +139,42 @@ const Step = {
|
|
|
226
139
|
required: ['stepId'],
|
|
227
140
|
requiredOneOf: ['x-operation', 'operationId', 'operationPath', 'workflowId'],
|
|
228
141
|
extensionsPrefix: 'x-',
|
|
229
|
-
documentationLink: 'https://spec.openapis.org/arazzo/latest.html#step-object',
|
|
230
|
-
description: 'Describes a single workflow step which MAY be a call to an API operation (OpenAPI Operation Object) or another Workflow Object.',
|
|
231
142
|
};
|
|
232
143
|
const Outputs = {
|
|
233
144
|
properties: {},
|
|
234
145
|
additionalProperties: {
|
|
235
146
|
type: 'string',
|
|
236
147
|
},
|
|
237
|
-
description: 'A map between a friendly name and a dynamic output value defined using a Runtime Expression. The name MUST use keys that match the regular expression: ^[a-zA-Z0-9_.-]+$.',
|
|
238
148
|
};
|
|
239
149
|
const RequestBody = {
|
|
240
150
|
properties: {
|
|
241
|
-
contentType: {
|
|
242
|
-
type: 'string',
|
|
243
|
-
description: 'The Content-Type for the request content. If omitted then refer to Content-Type specified at the targeted operation to understand serialization requirements.',
|
|
244
|
-
},
|
|
151
|
+
contentType: { type: 'string' },
|
|
245
152
|
payload: {},
|
|
246
|
-
replacements: listOf('Replacement',
|
|
247
|
-
description: 'A list of locations and values to set within a payload.',
|
|
248
|
-
}),
|
|
153
|
+
replacements: listOf('Replacement'),
|
|
249
154
|
},
|
|
250
155
|
required: ['payload'],
|
|
251
156
|
extensionsPrefix: 'x-',
|
|
252
|
-
documentationLink: 'https://spec.openapis.org/arazzo/latest.html#request-body-object',
|
|
253
|
-
description: 'A single request body describing the Content-Type and request body content to be passed by a step to an operation.',
|
|
254
157
|
};
|
|
255
158
|
const Replacement = {
|
|
256
159
|
properties: {
|
|
257
|
-
target: {
|
|
258
|
-
type: 'string',
|
|
259
|
-
description: 'REQUIRED. A JSON Pointer or XPath Expression which MUST be resolved against the request body. Used to identify the location to inject the value.',
|
|
260
|
-
},
|
|
160
|
+
target: { type: 'string' },
|
|
261
161
|
value: {},
|
|
262
162
|
},
|
|
263
163
|
required: ['target', 'value'],
|
|
264
164
|
extensionsPrefix: 'x-',
|
|
265
|
-
documentationLink: 'https://spec.openapis.org/arazzo/latest.html#payload-replacement-object',
|
|
266
|
-
description: 'Describes a location within a payload (e.g., a request body) and a value to set within the location.',
|
|
267
165
|
};
|
|
268
166
|
const ExtendedSecurity = {
|
|
269
167
|
properties: {
|
|
270
|
-
schemeName: {
|
|
271
|
-
type: 'string',
|
|
272
|
-
description: 'REQUIRED. Name of the security scheme from your OpenAPI specification. Use with operationId or operationPath at the step level.',
|
|
273
|
-
},
|
|
168
|
+
schemeName: { type: 'string' },
|
|
274
169
|
values: {},
|
|
275
170
|
scheme: 'SecurityScheme',
|
|
276
171
|
},
|
|
277
172
|
required: ['values'],
|
|
278
173
|
requiredOneOf: ['schemeName', 'scheme'],
|
|
279
|
-
documentationLink: 'https://redocly.com/docs/respect/extensions/x-security#x-security-extension',
|
|
280
|
-
description: 'Use the x-security extension to define authorization flows based on OpenAPI security schemes. Respect automatically constructs appropriate authorization headers, queries, or cookies based on your parameters.',
|
|
281
174
|
};
|
|
282
175
|
const ExtendedOperation = {
|
|
283
176
|
properties: {
|
|
284
|
-
url: {
|
|
285
|
-
type: 'string',
|
|
286
|
-
description: 'REQUIRED. A valid url including the protocol (such as http://localhost:4000/my-api or https://example.com/api/my-api).',
|
|
287
|
-
},
|
|
177
|
+
url: { type: 'string' },
|
|
288
178
|
method: {
|
|
289
179
|
enum: [
|
|
290
180
|
'get',
|
|
@@ -308,32 +198,20 @@ const ExtendedOperation = {
|
|
|
308
198
|
'CONNECT',
|
|
309
199
|
'QUERY',
|
|
310
200
|
],
|
|
311
|
-
description: 'REQUIRED. HTTP operation method. Possible values: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, CONNECT, TRACE. You can also use their lowercase equivalents.',
|
|
312
201
|
},
|
|
313
202
|
},
|
|
314
203
|
required: ['url', 'method'],
|
|
315
|
-
documentationLink: 'https://redocly.com/docs/respect/extensions/x-operation',
|
|
316
|
-
description: 'x-operation enables you to specify a URL and HTTP method for an operation that is not described in the Arazzo sourceDescriptions section. The primary application of the x-operation extension is to facilitate calls to third-party APIs or other endpoints that are needed in a sequence of API calls.',
|
|
317
204
|
};
|
|
318
205
|
const CriterionObject = {
|
|
319
206
|
properties: {
|
|
320
|
-
condition: {
|
|
321
|
-
|
|
322
|
-
description: 'REQUIRED. The condition to apply. Conditions can be simple (e.g. $statusCode == 200 which applies an operator on a value obtained from a runtime expression), or a regex, or a JSONPath expression. For regex or JSONPath, the type and context MUST be specified.',
|
|
323
|
-
},
|
|
324
|
-
context: {
|
|
325
|
-
type: 'string',
|
|
326
|
-
description: 'A Runtime Expression used to set the context for the condition to be applied on. If type is specified, then the context MUST be provided (e.g. $response.body would set the context that a JSONPath query expression could be applied to).',
|
|
327
|
-
},
|
|
207
|
+
condition: { type: 'string' },
|
|
208
|
+
context: { type: 'string' },
|
|
328
209
|
type: (value) => {
|
|
329
210
|
if (!value) {
|
|
330
211
|
return undefined;
|
|
331
212
|
}
|
|
332
213
|
else if (typeof value === 'string') {
|
|
333
|
-
return {
|
|
334
|
-
enum: ['regex', 'jsonpath', 'simple', 'xpath'],
|
|
335
|
-
description: 'The type of condition to be applied.',
|
|
336
|
-
};
|
|
214
|
+
return { enum: ['regex', 'jsonpath', 'simple', 'xpath'] };
|
|
337
215
|
}
|
|
338
216
|
else if (value?.type === 'jsonpath') {
|
|
339
217
|
return 'JSONPathCriterion';
|
|
@@ -344,8 +222,6 @@ const CriterionObject = {
|
|
|
344
222
|
},
|
|
345
223
|
},
|
|
346
224
|
required: ['condition'],
|
|
347
|
-
documentationLink: 'https://spec.openapis.org/arazzo/latest.html#criterion-object',
|
|
348
|
-
description: 'An object used to specify the context, conditions, and condition types that can be used to prove or satisfy assertions specified in Step Object successCriteria, Success Action Object criteria, and Failure Action Object criteria.',
|
|
349
225
|
};
|
|
350
226
|
const JSONPathCriterion = {
|
|
351
227
|
properties: {
|
|
@@ -361,30 +237,13 @@ const XPathCriterion = {
|
|
|
361
237
|
};
|
|
362
238
|
const SuccessActionObject = {
|
|
363
239
|
properties: {
|
|
364
|
-
name: {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
},
|
|
368
|
-
|
|
369
|
-
type: 'string',
|
|
370
|
-
enum: ['goto', 'end'],
|
|
371
|
-
description: 'REQUIRED. The type of action to take. Possible values are "end" or "goto".',
|
|
372
|
-
},
|
|
373
|
-
stepId: {
|
|
374
|
-
type: 'string',
|
|
375
|
-
description: 'The stepId to transfer to upon success of the step. This field is only relevant when the type field value is "goto". The referenced stepId MUST be within the current workflow. This field is mutually exclusive to workflowId.',
|
|
376
|
-
},
|
|
377
|
-
workflowId: {
|
|
378
|
-
type: 'string',
|
|
379
|
-
description: 'The workflowId referencing an existing workflow within the Arazzo Description to transfer to upon success of the step. This field is only relevant when the type field value is "goto". If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. This field is mutually exclusive to stepId.',
|
|
380
|
-
},
|
|
381
|
-
criteria: listOf('CriterionObject', {
|
|
382
|
-
description: 'A list of assertions to determine if this action SHALL be executed. Each assertion is described using a Criterion Object. All criteria assertions MUST be satisfied for the action to be executed.',
|
|
383
|
-
}),
|
|
240
|
+
name: { type: 'string' },
|
|
241
|
+
type: { type: 'string', enum: ['goto', 'end'] },
|
|
242
|
+
stepId: { type: 'string' },
|
|
243
|
+
workflowId: { type: 'string' },
|
|
244
|
+
criteria: listOf('CriterionObject'),
|
|
384
245
|
},
|
|
385
246
|
required: ['type', 'name'],
|
|
386
|
-
documentationLink: 'https://spec.openapis.org/arazzo/latest.html#success-action-object',
|
|
387
|
-
description: 'A single success action which describes an action to take upon success of a workflow step.',
|
|
388
247
|
};
|
|
389
248
|
const OnSuccessActionList = {
|
|
390
249
|
properties: {},
|
|
@@ -399,40 +258,15 @@ const OnSuccessActionList = {
|
|
|
399
258
|
};
|
|
400
259
|
const FailureActionObject = {
|
|
401
260
|
properties: {
|
|
402
|
-
name: {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
},
|
|
406
|
-
type:
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
description: 'REQUIRED. The type of action to take. Possible values are "end", "retry", or "goto".',
|
|
410
|
-
},
|
|
411
|
-
workflowId: {
|
|
412
|
-
type: 'string',
|
|
413
|
-
description: 'The workflowId referencing an existing workflow within the Arazzo Description to transfer to upon failure of the step. This field is only relevant when the type field value is "goto" or "retry". If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. This field is mutually exclusive to stepId. When used with "retry", context transfers back upon completion of the specified workflow.',
|
|
414
|
-
},
|
|
415
|
-
stepId: {
|
|
416
|
-
type: 'string',
|
|
417
|
-
description: 'The stepId to transfer to upon failure of the step. This field is only relevant when the type field value is "goto" or "retry". The referenced stepId MUST be within the current workflow. This field is mutually exclusive to workflowId. When used with "retry", context transfers back upon completion of the specified step.',
|
|
418
|
-
},
|
|
419
|
-
retryAfter: {
|
|
420
|
-
type: 'number',
|
|
421
|
-
minimum: 0,
|
|
422
|
-
description: 'A non-negative decimal indicating the seconds to delay after the step failure before another attempt SHALL be made. Note: if an HTTP Retry-After response header was returned to a step from a targeted operation, then it SHOULD overrule this particular field value. This field only applies when the type field value is "retry".',
|
|
423
|
-
},
|
|
424
|
-
retryLimit: {
|
|
425
|
-
type: 'number',
|
|
426
|
-
minimum: 0,
|
|
427
|
-
description: 'A non-negative integer indicating how many attempts to retry the step MAY be attempted before failing the overall step. If not specified then a single retry SHALL be attempted. This field only applies when the type field value is "retry". The retryLimit MUST be exhausted prior to executing subsequent failure actions.',
|
|
428
|
-
},
|
|
429
|
-
criteria: listOf('CriterionObject', {
|
|
430
|
-
description: 'A list of assertions to determine if this action SHALL be executed. Each assertion is described using a Criterion Object.',
|
|
431
|
-
}),
|
|
261
|
+
name: { type: 'string' },
|
|
262
|
+
type: { type: 'string', enum: ['goto', 'retry', 'end'] },
|
|
263
|
+
workflowId: { type: 'string' },
|
|
264
|
+
stepId: { type: 'string' },
|
|
265
|
+
retryAfter: { type: 'number', minimum: 0 },
|
|
266
|
+
retryLimit: { type: 'number', minimum: 0 },
|
|
267
|
+
criteria: listOf('CriterionObject'),
|
|
432
268
|
},
|
|
433
269
|
required: ['type', 'name'],
|
|
434
|
-
documentationLink: 'https://spec.openapis.org/arazzo/latest.html#failure-action-object',
|
|
435
|
-
description: 'A single failure action which describes an action to take upon failure of a workflow step.',
|
|
436
270
|
};
|
|
437
271
|
const OnFailureActionList = {
|
|
438
272
|
properties: {},
|
package/lib/types/arazzo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arazzo.js","sourceRoot":"","sources":["../../src/types/arazzo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAiB,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,IAAI,GAAa;IACrB,UAAU,EAAE;QACV,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"arazzo.js","sourceRoot":"","sources":["../../src/types/arazzo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAiB,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,IAAI,GAAa;IACrB,UAAU,EAAE;QACV,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC1B,IAAI,EAAE,MAAM;QACZ,kBAAkB,EAAE,oBAAoB;QACxC,SAAS,EAAE,WAAW;QACtB,UAAU,EAAE,YAAY;KACzB;IACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,oBAAoB,EAAE,WAAW,CAAC;IAC/D,gBAAgB,EAAE,IAAI;CACvB,CAAC;AACF,MAAM,eAAe,GAAa;IAChC,UAAU,EAAE,EAAE;IACd,oBAAoB,EAAE,WAAW;CAClC,CAAC;AACF,MAAM,mBAAmB,GAAa;IACpC,UAAU,EAAE,EAAE;IACd,oBAAoB,EAAE,qBAAqB;CAC5C,CAAC;AACF,MAAM,mBAAmB,GAAa;IACpC,UAAU,EAAE,EAAE;IACd,oBAAoB,EAAE,qBAAqB;CAC5C,CAAC;AACF,MAAM,UAAU,GAAa;IAC3B,UAAU,EAAE;QACV,MAAM,EAAE,aAAa;QACrB,UAAU,EAAE,iBAAiB;QAC7B,cAAc,EAAE,qBAAqB;QACrC,cAAc,EAAE,qBAAqB;KACtC;IACD,gBAAgB,EAAE,IAAI;CACvB,CAAC;AACF,MAAM,WAAW,GAAa,KAAK,CAA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I;IACJ,kBAAkB;IAClB,wBAAwB;IACxB,uBAAuB;IACvB,UAAU;IACV,SAAS;IACT,cAAc;IACd,SAAS;IACT,QAAQ;IACR,KAAK;IACL,IAAI;IACJ,WAAW;IACX,WAAW;IACX,iBAAiB;IACjB,oBAAoB,EAAE,MAAM,CAAC,kBAAkB,CAAC;IAChD,gBAAgB;IAChB,OAAO;IACP,eAAe;IACf,cAAc;IACd,iBAAiB;IACjB,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IACnB,mBAAmB;IACnB,MAAM,EAAE,WAAW,CAAC,MAAM;IAC1B,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC7B,YAAY,EAAE,WAAW,CAAC,YAAY;IACtC,oBAAoB,EAAE,WAAW,CAAC,oBAAoB;IACtD,aAAa,EAAE,WAAW,CAAC,aAAa;IACxC,iBAAiB,EAAE,WAAW,CAAC,iBAAiB;IAChD,gBAAgB,EAAE,WAAW,CAAC,gBAAgB;IAC9C,iBAAiB,EAAE,WAAW,CAAC,gBAAgB;IAC/C,UAAU;IACV,WAAW;IACX,eAAe;IACf,mBAAmB;IACnB,mBAAmB;IACnB,GAAG,EAAE,WAAW,CAAC,GAAG;IACpB,cAAc,EAAE,WAAW,CAAC,cAAc;IAC1C,WAAW,EAAE,WAAW,CAAC,WAAW;IACpC,YAAY,EAAE,WAAW,CAAC,YAAY;IACtC,YAAY,EAAE,WAAW,CAAC,YAAY;IACtC,iBAAiB,EAAE,WAAW,CAAC,iBAAiB;IAChD,iBAAiB,EAAE,WAAW,CAAC,iBAAiB;IAChD,mBAAmB,EAAE,WAAW,CAAC,mBAAmB;CACrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncapi2.d.ts","sourceRoot":"","sources":["../../src/types/asyncapi2.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"asyncapi2.d.ts","sourceRoot":"","sources":["../../src/types/asyncapi2.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AA8D3C,eAAO,MAAM,GAAG,EAAE,QAOjB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAM1B,CAAC;AAkDF,eAAO,MAAM,SAAS,EAAE,QAKvB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,QAc5B,CAAC;AAcF,eAAO,MAAM,OAAO,EAAE,QAMrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,QAMrB,CAAC;AAUF,eAAO,MAAM,aAAa,EAAE,QAM3B,CAAC;AAoIF,eAAO,MAAM,cAAc,EAAE,QAO5B,CAAC;AA0DF,eAAO,MAAM,mBAAmB,EAAE,QAOjC,CAAC;AAyeF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CA8EtD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAiDnD,CAAC"}
|