@open-resource-discovery/specification 1.12.3 → 1.14.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/README.md +4 -10
- package/dist/generated/spec/v1/schemas/{configuration.schema.json → Configuration.schema.json} +20 -24
- package/dist/generated/spec/v1/schemas/{document.schema.json → Document.schema.json} +1134 -355
- package/dist/generated/spec/v1/types/{configuration.d.ts → Configuration.d.ts} +13 -21
- package/dist/generated/spec/v1/types/Configuration.js +4 -0
- package/dist/generated/spec/v1/types/{document.d.ts → Document.d.ts} +566 -130
- package/dist/generated/spec/v1/types/Document.js +4 -0
- package/dist/generated/spec/v1/types/index.d.ts +2 -2
- package/dist/generated/spec/v1/types/index.js +3 -2
- package/dist/index.js +3 -2
- package/package.json +29 -18
- package/dist/generated/spec/v1/types/configuration.js +0 -3
- package/dist/generated/spec/v1/types/document.js +0 -3
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
*
|
|
6
6
|
* The configuration endpoint is a [Well-Known URI](https://tools.ietf.org/html/rfc8615#section-3) discovery mechanism.
|
|
7
7
|
*
|
|
8
|
-
* This JSON Schema describes the [ORD configuration interface](https://open-resource-discovery.
|
|
8
|
+
* This JSON Schema describes the [ORD configuration interface](https://open-resource-discovery.org/spec-v1/interfaces/Configuration) of the [ORD specification](https://open-resource-discovery.org/).
|
|
9
9
|
*/
|
|
10
10
|
export interface OrdConfiguration {
|
|
11
11
|
/**
|
|
12
12
|
* Optional URL to the ORD Configuration schema (defined as JSON Schema).
|
|
13
13
|
* If given, this enables code intelligence and validation in supported editors (like VSCode) and tools.
|
|
14
14
|
*/
|
|
15
|
-
$schema?: (string | "https://open-resource-discovery.
|
|
15
|
+
$schema?: (string | "https://open-resource-discovery.org/spec-v1/interfaces/Configuration.schema.json#") & string;
|
|
16
16
|
/**
|
|
17
|
-
* Optional [base URL](../index.md#
|
|
17
|
+
* Optional [base URL](../index.md#base-url) that can be used to resolve the relative URLs to the ORD Documents.
|
|
18
18
|
*
|
|
19
|
-
* The `baseUrl` MUST
|
|
19
|
+
* The `baseUrl` MUST NOT contain a leading slash.
|
|
20
20
|
*
|
|
21
21
|
* If you do not provide this property, the base URL is assumed to be the URL of the config endpoint without `/.well-known/open-resource-discovery` suffix.
|
|
22
22
|
* This implies that either a `baseUrl` or only absolute URLs MUST be provided when no standardized well-known URI is used.
|
|
@@ -64,25 +64,17 @@ export interface OrdV1DocumentDescription {
|
|
|
64
64
|
*
|
|
65
65
|
* Please read the [article on perspectives](../concepts/perspectives) for more explanations.
|
|
66
66
|
*/
|
|
67
|
-
perspective?: "system-version" | "system-instance" | "system-independent";
|
|
67
|
+
perspective?: "system-type" | "system-version" | "system-instance" | "system-independent";
|
|
68
68
|
/**
|
|
69
|
-
* Whether the information in the ORD document is **system
|
|
69
|
+
* Whether the information in the ORD document is **system-instance-aware**.
|
|
70
|
+
* This is the case when the provided ORD document potentially differs between **system instances** (e.g. due to multi-tenancy, configuration or extensibility).
|
|
70
71
|
*
|
|
71
|
-
*
|
|
72
|
-
* Please note that if a system does not support multi-tenancy, most likely each system instance has its own
|
|
73
|
-
* URL and different system instances could even be deployed in a different state (version).
|
|
74
|
-
* If those conditions apply, `systemInstanceAware` MUST be set to true.
|
|
72
|
+
* If a document is system-instance-aware, an ORD aggregator MUST fetch it for _each_ **system instance** (tenant), not just once per system type.
|
|
75
73
|
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
74
|
+
* This concept is now **deprecated** in favor of the more explicit `perspective` attribute.
|
|
75
|
+
* It is strongly RECOMMENDED to split metadata into separate documents for the different perspectives (static vs. dynamic).
|
|
78
76
|
*
|
|
79
|
-
*
|
|
80
|
-
* It is even possible and valid to have an ORD document that is NOT system instance aware to contain resources that are.
|
|
81
|
-
* This can be the case because the resource is described in separate resource definition formats which would change,
|
|
82
|
-
* while the ORD document itself would not change (the links to the resource definition files stay the same).
|
|
83
|
-
*
|
|
84
|
-
* If some ORD information is **system instance aware** and some is not,
|
|
85
|
-
* we RECOMMEND to split the information into separate documents and mark their system instance awareness accordingly.
|
|
77
|
+
* For a detailed explanation, see [perspectives concept page](../concepts/perspectives.md) or the [specification section](../index.md#perspectives).
|
|
86
78
|
*/
|
|
87
79
|
systemInstanceAware?: boolean;
|
|
88
80
|
/**
|
|
@@ -101,7 +93,7 @@ export interface OrdV1DocumentAccessStrategy {
|
|
|
101
93
|
/**
|
|
102
94
|
* Defines the authentication/authorization strategy through which the referenced ORD Documents can be accessed.
|
|
103
95
|
*/
|
|
104
|
-
type: (string | "open" | "basic-auth" | "
|
|
96
|
+
type: (string | "open" | "basic-auth" | "custom") & string;
|
|
105
97
|
/**
|
|
106
98
|
* If the fixed `type` enum values need to be extended, an arbitrary `customType` can be provided.
|
|
107
99
|
*
|
|
@@ -122,7 +114,7 @@ export interface OrdV1DocumentAccessStrategy {
|
|
|
122
114
|
*/
|
|
123
115
|
export interface OrdV1Capabilities {
|
|
124
116
|
/**
|
|
125
|
-
* Whether the ORD provider supports the optional [select parameter](../index.md#select-parameter) for retrieving the ORD config and ORD documents.
|
|
117
|
+
* Whether the ORD provider supports the optional `select` parameter ([select parameter](../index.md#select-parameter)) for retrieving the ORD config and ORD documents.
|
|
126
118
|
*/
|
|
127
119
|
selector?: boolean;
|
|
128
120
|
[k: string]: unknown | undefined;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// AUTO-GENERATED definition files. Do not modify directly.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29uZmlndXJhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9nZW5lcmF0ZWQvc3BlYy92MS90eXBlcy9Db25maWd1cmF0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwyREFBMkQifQ==
|