@api-client/core 0.14.1 → 0.14.3

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.
Files changed (96) hide show
  1. package/build/src/browser.d.ts +1 -1
  2. package/build/src/browser.d.ts.map +1 -1
  3. package/build/src/browser.js.map +1 -1
  4. package/build/src/index.d.ts +2 -1
  5. package/build/src/index.d.ts.map +1 -1
  6. package/build/src/index.js +1 -0
  7. package/build/src/index.js.map +1 -1
  8. package/build/src/modeling/ApiFile.d.ts +23 -0
  9. package/build/src/modeling/ApiFile.d.ts.map +1 -0
  10. package/build/src/modeling/ApiFile.js +44 -0
  11. package/build/src/modeling/ApiFile.js.map +1 -0
  12. package/build/src/modeling/ApiModel.d.ts +159 -0
  13. package/build/src/modeling/ApiModel.d.ts.map +1 -0
  14. package/build/src/modeling/ApiModel.js +237 -0
  15. package/build/src/modeling/ApiModel.js.map +1 -0
  16. package/build/src/modeling/DataDomain.d.ts +1 -1
  17. package/build/src/modeling/DataDomain.d.ts.map +1 -1
  18. package/build/src/modeling/DataDomain.js +1 -3
  19. package/build/src/modeling/DataDomain.js.map +1 -1
  20. package/build/src/modeling/DomainAssociation.d.ts +35 -0
  21. package/build/src/modeling/DomainAssociation.d.ts.map +1 -1
  22. package/build/src/modeling/DomainAssociation.js +42 -5
  23. package/build/src/modeling/DomainAssociation.js.map +1 -1
  24. package/build/src/modeling/DomainEntity.js +1 -1
  25. package/build/src/modeling/DomainEntity.js.map +1 -1
  26. package/build/src/modeling/DomainFile.d.ts +1 -2
  27. package/build/src/modeling/DomainFile.d.ts.map +1 -1
  28. package/build/src/modeling/DomainFile.js +3 -41
  29. package/build/src/modeling/DomainFile.js.map +1 -1
  30. package/build/src/modeling/Semantics.d.ts +62 -7
  31. package/build/src/modeling/Semantics.d.ts.map +1 -1
  32. package/build/src/modeling/Semantics.js +76 -7
  33. package/build/src/modeling/Semantics.js.map +1 -1
  34. package/build/src/modeling/amf/ShapeGenerator.d.ts.map +1 -1
  35. package/build/src/modeling/amf/ShapeGenerator.js.map +1 -1
  36. package/build/src/modeling/types.d.ts +491 -0
  37. package/build/src/modeling/types.d.ts.map +1 -1
  38. package/build/src/modeling/types.js.map +1 -1
  39. package/build/src/models/kinds.d.ts +2 -0
  40. package/build/src/models/kinds.d.ts.map +1 -1
  41. package/build/src/models/kinds.js +2 -0
  42. package/build/src/models/kinds.js.map +1 -1
  43. package/build/src/models/store/File.d.ts +19 -2
  44. package/build/src/models/store/File.d.ts.map +1 -1
  45. package/build/src/models/store/File.js +100 -13
  46. package/build/src/models/store/File.js.map +1 -1
  47. package/build/tsconfig.tsbuildinfo +1 -1
  48. package/data/models/APIC-187.json +3 -3
  49. package/data/models/APIC-188.json +3 -3
  50. package/data/models/APIC-233.json +1 -1
  51. package/data/models/APIC-391.json +2 -2
  52. package/data/models/APIC-483.json +1 -1
  53. package/data/models/APIC-487.json +1 -1
  54. package/data/models/APIC-655.json +1 -1
  55. package/data/models/APIC-689.json +1 -1
  56. package/data/models/APIC-690.json +5 -5
  57. package/data/models/SE-10469.json +1 -1
  58. package/data/models/SE-13092.json +5 -5
  59. package/data/models/SE-22063.json +12 -2
  60. package/data/models/amf-helper-api.json +154 -14
  61. package/data/models/arc-demo-api.json +95 -15
  62. package/data/models/async-api.json +1 -1
  63. package/data/models/example-generator-api.json +361 -21
  64. package/data/models/expanded-api.json +1 -1
  65. package/data/models/flattened-api.json +1 -1
  66. package/data/models/multiple-servers.json +1 -1
  67. package/data/models/oas-3-api.json +1 -1
  68. package/data/models/oas-date.json +1 -1
  69. package/data/models/oas-types.json +1 -1
  70. package/data/models/oas-unions.json +1 -1
  71. package/data/models/petstore.json +1 -1
  72. package/data/models/raml-date.json +1 -1
  73. package/data/models/recursive.json +1 -1
  74. package/data/models/schema-api.json +62 -2
  75. package/data/models/secured-api.json +16 -16
  76. package/data/models/tracked-to-linked.json +4 -4
  77. package/package.json +3 -4
  78. package/src/modeling/ApiFile.ts +53 -0
  79. package/src/modeling/ApiModel.ts +327 -0
  80. package/src/modeling/DataDomain.ts +1 -1
  81. package/src/modeling/DomainAssociation.ts +56 -0
  82. package/src/modeling/DomainEntity.ts +1 -1
  83. package/src/modeling/DomainFile.ts +3 -40
  84. package/src/modeling/Semantics.ts +79 -7
  85. package/src/modeling/amf/ShapeGenerator.ts +1 -1
  86. package/src/modeling/types.ts +545 -0
  87. package/src/models/kinds.ts +2 -0
  88. package/src/models/store/File.ts +100 -13
  89. package/tests/unit/modeling/api_model.spec.ts +291 -0
  90. package/tests/unit/modeling/domain_asociation.spec.ts +92 -2
  91. package/tests/unit/modeling/domain_entity.spec.ts +15 -15
  92. package/tests/unit/modeling/domain_file.spec.ts +1 -11
  93. package/tests/unit/modeling/domain_model_entities.spec.ts +2 -2
  94. package/tests/unit/modeling/semantics.spec.ts +146 -0
  95. package/tests/unit/models/File/constructor.spec.ts +3 -2
  96. package/tests/unit/models/File/shortcutTo.spec.ts +1 -1
@@ -0,0 +1,159 @@
1
+ import { ApiModelKind } from '../models/kinds.js';
2
+ import { type IThing, Thing } from '../models/Thing.js';
3
+ import type { AccessRule, AuthenticationConfiguration, AuthorizationConfiguration, ExposedEntity, ForeignDomainDependency, RateLimitingConfiguration, SessionConfiguration } from './types.js';
4
+ import { DataDomain, type DataDomainSchema } from './DataDomain.js';
5
+ export interface ApiModelSchema {
6
+ /**
7
+ * The data domain kind recognizable by the ecosystem.
8
+ */
9
+ kind: typeof ApiModelKind;
10
+ /**
11
+ * The unique key of the data domain schema.
12
+ * This is a stable identifier that does not change across versions.
13
+ */
14
+ key: string;
15
+ /**
16
+ * Contains the name, display name, description, and the version of the data domain schema.
17
+ */
18
+ info: IThing;
19
+ /**
20
+ * The designated Data Entity that represents a "User".
21
+ * This entity must be marked with the "User" semantic in the Data Modeler.
22
+ *
23
+ * This property is required to publish the API.
24
+ */
25
+ userKey?: string;
26
+ /**
27
+ * Reference to the stable, version-controlled data definition from the
28
+ * Data Catalog. When not set, the model cannot be published.
29
+ */
30
+ domain?: ForeignDomainDependency;
31
+ /**
32
+ * Configuration for how users prove their identity.
33
+ * The API model is invalid if this is not set.
34
+ */
35
+ authentication?: AuthenticationConfiguration;
36
+ /**
37
+ * Configuration for what authenticated users are allowed to do.
38
+ * The API model is invalid if this is not set.
39
+ */
40
+ authorization?: AuthorizationConfiguration;
41
+ /**
42
+ * Configuration for the transport and payload of the user session.
43
+ * The API model is invalid if this is not set.
44
+ */
45
+ session?: SessionConfiguration;
46
+ /**
47
+ * The specific subset of Data Entities to be exposed by this API.
48
+ * These are the entities that are included in the data domain schema.
49
+ */
50
+ exposes: ExposedEntity[];
51
+ /**
52
+ * Optional array of access rules that define the access control policies
53
+ * for the API. These rules are used to enforce security and permissions
54
+ * on the exposed entities.
55
+ *
56
+ * These rules apply to all exposed entities and actions. An API action
57
+ * can declare its own access rules, which will override these.
58
+ */
59
+ accessRule?: AccessRule[];
60
+ /**
61
+ * Optional configuration for API-wide rate limiting and throttling.
62
+ * Defines rules to protect the API from overuse.
63
+ */
64
+ rateLimiting?: RateLimitingConfiguration;
65
+ }
66
+ export declare class ApiModel extends EventTarget {
67
+ #private;
68
+ /**
69
+ * The data domain kind recognizable by the ecosystem.
70
+ */
71
+ kind: typeof ApiModelKind;
72
+ /**
73
+ * The unique key of the data domain schema.
74
+ * This is a stable identifier that does not change across versions.
75
+ */
76
+ key: string;
77
+ /**
78
+ * The description of the domain property.
79
+ */
80
+ info: Thing;
81
+ /**
82
+ * The designated Data Entity that represents a "User".
83
+ * This entity must be marked with the "User" semantic in the Data Modeler.
84
+ *
85
+ * This property is required to publish the API.
86
+ */
87
+ userKey?: string;
88
+ /**
89
+ * Reference to the stable, version-controlled data definition from the
90
+ * Data Catalog. When not set, the model cannot be published.
91
+ */
92
+ domain?: ForeignDomainDependency;
93
+ /**
94
+ * Configuration for how users prove their identity.
95
+ * The API model is invalid if this is not set.
96
+ */
97
+ authentication?: AuthenticationConfiguration;
98
+ /**
99
+ * Configuration for what authenticated users are allowed to do.
100
+ * The API model is invalid if this is not set.
101
+ */
102
+ authorization?: AuthorizationConfiguration;
103
+ /**
104
+ * Configuration for the transport and payload of the user session.
105
+ * The API model is invalid if this is not set.
106
+ */
107
+ session?: SessionConfiguration;
108
+ /**
109
+ * The specific subset of Data Entities to be exposed by this API.
110
+ * These are the entities that are included in the data domain schema.
111
+ */
112
+ exposes: ExposedEntity[];
113
+ /**
114
+ * Optional array of access rules that define the access control policies
115
+ * for the API. These rules are used to enforce security and permissions
116
+ * on the exposed entities.
117
+ *
118
+ * These rules apply to all exposed entities and actions. An API action
119
+ * can declare its own access rules, which will override these.
120
+ */
121
+ accessRule?: AccessRule[];
122
+ /**
123
+ * Optional configuration for API-wide rate limiting and throttling.
124
+ * Defines rules to protect the API from overuse.
125
+ */
126
+ rateLimiting?: RateLimitingConfiguration;
127
+ /**
128
+ * A reference to the published data domain.
129
+ */
130
+ dataDomain?: DataDomain;
131
+ static createSchema(input?: Partial<ApiModelSchema>): ApiModelSchema;
132
+ constructor(state?: Partial<ApiModelSchema>, domain?: DataDomainSchema);
133
+ toJSON(): ApiModelSchema;
134
+ /**
135
+ * This function is used internally by all domain elements to notify that something has changed.
136
+ * Since we want to notify listeners after the operation commits, we use microtask
137
+ * to ensure that the event is dispatched after the current operation.
138
+ */
139
+ notifyChange(): void;
140
+ /**
141
+ * Exposes a new entity in the API model.
142
+ * If the entity already exists, it returns the existing one.
143
+ * @param entityKey The key of the entity to expose.
144
+ * @returns The exposed entity.
145
+ */
146
+ exposeEntity(entityKey: string): ExposedEntity;
147
+ /**
148
+ * Removes an entity from the API model.
149
+ * @param entityKey The key of the entity to remove.
150
+ */
151
+ removeEntity(entityKey: string): void;
152
+ /**
153
+ * Returns the exposed entity by its key.
154
+ * @param entityKey The key of the entity to find.
155
+ * @returns The exposed entity or undefined if not found.
156
+ */
157
+ getExposedEntity(entityKey: string): ExposedEntity | undefined;
158
+ }
159
+ //# sourceMappingURL=ApiModel.d.ts.map
@@ -0,0 +1 @@
1
+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MAAM,CAAC,EAAE,uBAAuB,CAAA;IAEhC;;;OAGG;IACH,cAAc,CAAC,EAAE,2BAA2B,CAAA;IAE5C;;;OAGG;IACH,aAAa,CAAC,EAAE,0BAA0B,CAAA;IAE1C;;;OAGG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAA;IAC9B;;;OAGG;IACH,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,UAAU,EAAE,CAAA;IACzB;;;OAGG;IACH,YAAY,CAAC,EAAE,yBAAyB,CAAA;IAgBxC;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;IAEvB,MAAM,CAAC,YAAY,CAAC,KAAK,GAAE,OAAO,CAAC,cAAc,CAAM,GAAG,cAAc;gBAiC5D,KAAK,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,EAAE,gBAAgB;IAuCtE,MAAM,IAAI,cAAc;IA+BxB;;;;OAIG;IACH,YAAY;IAYZ;;;;;OAKG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa;IAc9C;;;OAGG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAOrC;;;;OAIG;IACH,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS;CAG/D"}
@@ -0,0 +1,237 @@
1
+ import { nanoid } from '../nanoid.js';
2
+ import { ApiModelKind } from '../models/kinds.js';
3
+ import { Thing } from '../models/Thing.js';
4
+ import { DataDomain } from './DataDomain.js';
5
+ export class ApiModel extends EventTarget {
6
+ /**
7
+ * The data domain kind recognizable by the ecosystem.
8
+ */
9
+ kind;
10
+ /**
11
+ * The unique key of the data domain schema.
12
+ * This is a stable identifier that does not change across versions.
13
+ */
14
+ key;
15
+ /**
16
+ * The description of the domain property.
17
+ */
18
+ info;
19
+ /**
20
+ * The designated Data Entity that represents a "User".
21
+ * This entity must be marked with the "User" semantic in the Data Modeler.
22
+ *
23
+ * This property is required to publish the API.
24
+ */
25
+ userKey;
26
+ /**
27
+ * Reference to the stable, version-controlled data definition from the
28
+ * Data Catalog. When not set, the model cannot be published.
29
+ */
30
+ domain;
31
+ /**
32
+ * Configuration for how users prove their identity.
33
+ * The API model is invalid if this is not set.
34
+ */
35
+ authentication;
36
+ /**
37
+ * Configuration for what authenticated users are allowed to do.
38
+ * The API model is invalid if this is not set.
39
+ */
40
+ authorization;
41
+ /**
42
+ * Configuration for the transport and payload of the user session.
43
+ * The API model is invalid if this is not set.
44
+ */
45
+ session;
46
+ /**
47
+ * The specific subset of Data Entities to be exposed by this API.
48
+ * These are the entities that are included in the data domain schema.
49
+ */
50
+ exposes;
51
+ /**
52
+ * Optional array of access rules that define the access control policies
53
+ * for the API. These rules are used to enforce security and permissions
54
+ * on the exposed entities.
55
+ *
56
+ * These rules apply to all exposed entities and actions. An API action
57
+ * can declare its own access rules, which will override these.
58
+ */
59
+ accessRule;
60
+ /**
61
+ * Optional configuration for API-wide rate limiting and throttling.
62
+ * Defines rules to protect the API from overuse.
63
+ */
64
+ rateLimiting;
65
+ /**
66
+ * When the initializing flag is set to true,
67
+ * the domain is not notified of changes.
68
+ */
69
+ #initializing = true;
70
+ /**
71
+ * When the notifying flag is set to true,
72
+ * the domain is pending a notification.
73
+ * No other notifications will be sent until
74
+ * the current notification is sent.
75
+ */
76
+ #notifying = false;
77
+ /**
78
+ * A reference to the published data domain.
79
+ */
80
+ dataDomain;
81
+ static createSchema(input = {}) {
82
+ const { key = nanoid(), exposes = [] } = input;
83
+ const info = Thing.fromJSON(input.info, { name: 'Unnamed API' }).toJSON();
84
+ const result = {
85
+ kind: ApiModelKind,
86
+ key,
87
+ info,
88
+ exposes,
89
+ };
90
+ if (input.userKey) {
91
+ result.userKey = input.userKey;
92
+ }
93
+ if (input.domain) {
94
+ result.domain = input.domain;
95
+ }
96
+ if (input.authentication) {
97
+ result.authentication = input.authentication;
98
+ }
99
+ if (input.authorization) {
100
+ result.authorization = input.authorization;
101
+ }
102
+ if (input.session) {
103
+ result.session = input.session;
104
+ }
105
+ if (input.accessRule) {
106
+ result.accessRule = input.accessRule;
107
+ }
108
+ if (input.rateLimiting) {
109
+ result.rateLimiting = input.rateLimiting;
110
+ }
111
+ return result;
112
+ }
113
+ constructor(state, domain) {
114
+ super();
115
+ const init = ApiModel.createSchema(state);
116
+ this.kind = init.kind;
117
+ this.key = init.key;
118
+ this.info = new Thing(init.info);
119
+ this.userKey = init.userKey;
120
+ if (init.domain) {
121
+ this.domain = structuredClone(init.domain);
122
+ }
123
+ if (init.authentication) {
124
+ this.authentication = structuredClone(init.authentication);
125
+ }
126
+ if (init.authorization) {
127
+ this.authorization = structuredClone(init.authorization);
128
+ }
129
+ if (init.session) {
130
+ this.session = structuredClone(init.session);
131
+ }
132
+ if (Array.isArray(init.exposes)) {
133
+ this.exposes = structuredClone(init.exposes);
134
+ }
135
+ else {
136
+ this.exposes = [];
137
+ }
138
+ if (init.accessRule) {
139
+ this.accessRule = structuredClone(init.accessRule);
140
+ }
141
+ if (init.rateLimiting) {
142
+ this.rateLimiting = structuredClone(init.rateLimiting);
143
+ }
144
+ if (domain) {
145
+ this.dataDomain = new DataDomain(domain);
146
+ }
147
+ this.#initializing = false;
148
+ this.info.addEventListener('change', () => {
149
+ this.notifyChange();
150
+ });
151
+ }
152
+ toJSON() {
153
+ const result = {
154
+ kind: this.kind,
155
+ key: this.key,
156
+ info: this.info.toJSON(),
157
+ exposes: structuredClone(this.exposes),
158
+ };
159
+ if (this.userKey) {
160
+ result.userKey = this.userKey;
161
+ }
162
+ if (this.domain) {
163
+ result.domain = structuredClone(this.domain);
164
+ }
165
+ if (this.authentication) {
166
+ result.authentication = structuredClone(this.authentication);
167
+ }
168
+ if (this.authorization) {
169
+ result.authorization = structuredClone(this.authorization);
170
+ }
171
+ if (this.session) {
172
+ result.session = structuredClone(this.session);
173
+ }
174
+ if (this.accessRule) {
175
+ result.accessRule = structuredClone(this.accessRule);
176
+ }
177
+ if (this.rateLimiting) {
178
+ result.rateLimiting = structuredClone(this.rateLimiting);
179
+ }
180
+ return result;
181
+ }
182
+ /**
183
+ * This function is used internally by all domain elements to notify that something has changed.
184
+ * Since we want to notify listeners after the operation commits, we use microtask
185
+ * to ensure that the event is dispatched after the current operation.
186
+ */
187
+ notifyChange() {
188
+ if (this.#notifying || this.#initializing) {
189
+ return;
190
+ }
191
+ this.#notifying = true;
192
+ queueMicrotask(() => {
193
+ this.#notifying = false;
194
+ const event = new Event('change');
195
+ this.dispatchEvent(event);
196
+ });
197
+ }
198
+ /**
199
+ * Exposes a new entity in the API model.
200
+ * If the entity already exists, it returns the existing one.
201
+ * @param entityKey The key of the entity to expose.
202
+ * @returns The exposed entity.
203
+ */
204
+ exposeEntity(entityKey) {
205
+ const existing = this.exposes.find((e) => e.key === entityKey);
206
+ if (existing) {
207
+ return existing;
208
+ }
209
+ const newEntity = {
210
+ key: entityKey,
211
+ actions: [],
212
+ };
213
+ this.exposes.push(newEntity);
214
+ this.notifyChange();
215
+ return newEntity;
216
+ }
217
+ /**
218
+ * Removes an entity from the API model.
219
+ * @param entityKey The key of the entity to remove.
220
+ */
221
+ removeEntity(entityKey) {
222
+ const index = this.exposes.findIndex((e) => e.key === entityKey);
223
+ if (index !== -1) {
224
+ this.exposes.splice(index, 1);
225
+ this.notifyChange();
226
+ }
227
+ }
228
+ /**
229
+ * Returns the exposed entity by its key.
230
+ * @param entityKey The key of the entity to find.
231
+ * @returns The exposed entity or undefined if not found.
232
+ */
233
+ getExposedEntity(entityKey) {
234
+ return this.exposes.find((e) => e.key === entityKey);
235
+ }
236
+ }
237
+ //# sourceMappingURL=ApiModel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiModel.js","sourceRoot":"","sources":["../../../src/modeling/ApiModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACj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,YAAY,CAAC,SAAiB;QAC5B,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,SAAS,CAAC,CAAA;QAC9D,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,QAAQ,CAAA;QACjB,CAAC;QACD,MAAM,SAAS,GAAkB;YAC/B,GAAG,EAAE,SAAS;YACd,OAAO,EAAE,EAAE;SACZ,CAAA;QACD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QAC5B,IAAI,CAAC,YAAY,EAAE,CAAA;QACnB,OAAO,SAAS,CAAA;IAClB,CAAC;IAED;;;OAGG;IACH,YAAY,CAAC,SAAiB;QAC5B,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,SAAS,CAAC,CAAA;QAChE,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC;YACjB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;YAC7B,IAAI,CAAC,YAAY,EAAE,CAAA;QACrB,CAAC;IACH,CAAC;IACD;;;;OAIG;IACH,gBAAgB,CAAC,SAAiB;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,SAAS,CAAC,CAAA;IACtD,CAAC;CACF","sourcesContent":["import { nanoid } from '../nanoid.js'\nimport { ApiModelKind } from '../models/kinds.js'\nimport { type IThing, Thing } from '../models/Thing.js'\nimport type {\n AccessRule,\n AuthenticationConfiguration,\n AuthorizationConfiguration,\n ExposedEntity,\n ForeignDomainDependency,\n RateLimitingConfiguration,\n SessionConfiguration,\n} from './types.js'\nimport { DataDomain, type DataDomainSchema } from './DataDomain.js'\n\nexport interface ApiModelSchema {\n /**\n * The data domain kind recognizable by the ecosystem.\n */\n kind: typeof ApiModelKind\n /**\n * The unique key of the data domain schema.\n * This is a stable identifier that does not change across versions.\n */\n key: string\n /**\n * Contains the name, display name, description, and the version of the data domain schema.\n */\n info: IThing\n\n /**\n * The designated Data Entity that represents a \"User\".\n * This entity must be marked with the \"User\" semantic in the Data Modeler.\n *\n * This property is required to publish the API.\n */\n userKey?: string\n\n /**\n * Reference to the stable, version-controlled data definition from the\n * Data Catalog. When not set, the model cannot be published.\n */\n domain?: ForeignDomainDependency\n\n /**\n * Configuration for how users prove their identity.\n * The API model is invalid if this is not set.\n */\n authentication?: AuthenticationConfiguration\n\n /**\n * Configuration for what authenticated users are allowed to do.\n * The API model is invalid if this is not set.\n */\n authorization?: AuthorizationConfiguration\n\n /**\n * Configuration for the transport and payload of the user session.\n * The API model is invalid if this is not set.\n */\n session?: SessionConfiguration\n /**\n * The specific subset of Data Entities to be exposed by this API.\n * These are the entities that are included in the data domain schema.\n */\n exposes: ExposedEntity[]\n\n /**\n * Optional array of access rules that define the access control policies\n * for the API. These rules are used to enforce security and permissions\n * on the exposed entities.\n *\n * These rules apply to all exposed entities and actions. An API action\n * can declare its own access rules, which will override these.\n */\n accessRule?: AccessRule[]\n /**\n * Optional configuration for API-wide rate limiting and throttling.\n * Defines rules to protect the API from overuse.\n */\n rateLimiting?: RateLimitingConfiguration\n}\n\nexport class ApiModel extends EventTarget {\n /**\n * The data domain kind recognizable by the ecosystem.\n */\n kind: typeof ApiModelKind\n /**\n * The unique key of the data domain schema.\n * This is a stable identifier that does not change across versions.\n */\n key: string\n\n /**\n * The description of the domain property.\n */\n info: Thing\n /**\n * The designated Data Entity that represents a \"User\".\n * This entity must be marked with the \"User\" semantic in the Data Modeler.\n *\n * This property is required to publish the API.\n */\n userKey?: string\n\n /**\n * Reference to the stable, version-controlled data definition from the\n * Data Catalog. When not set, the model cannot be published.\n */\n domain?: ForeignDomainDependency\n\n /**\n * Configuration for how users prove their identity.\n * The API model is invalid if this is not set.\n */\n authentication?: AuthenticationConfiguration\n\n /**\n * Configuration for what authenticated users are allowed to do.\n * The API model is invalid if this is not set.\n */\n authorization?: AuthorizationConfiguration\n\n /**\n * Configuration for the transport and payload of the user session.\n * The API model is invalid if this is not set.\n */\n session?: SessionConfiguration\n /**\n * The specific subset of Data Entities to be exposed by this API.\n * These are the entities that are included in the data domain schema.\n */\n exposes: ExposedEntity[]\n /**\n * Optional array of access rules that define the access control policies\n * for the API. These rules are used to enforce security and permissions\n * on the exposed entities.\n *\n * These rules apply to all exposed entities and actions. An API action\n * can declare its own access rules, which will override these.\n */\n accessRule?: AccessRule[]\n /**\n * Optional configuration for API-wide rate limiting and throttling.\n * Defines rules to protect the API from overuse.\n */\n rateLimiting?: RateLimitingConfiguration\n\n /**\n * When the initializing flag is set to true,\n * the domain is not notified of changes.\n */\n #initializing = true\n\n /**\n * When the notifying flag is set to true,\n * the domain is pending a notification.\n * No other notifications will be sent until\n * the current notification is sent.\n */\n #notifying = false\n\n /**\n * A reference to the published data domain.\n */\n dataDomain?: DataDomain\n\n static createSchema(input: Partial<ApiModelSchema> = {}): ApiModelSchema {\n const { key = nanoid(), exposes = [] } = input\n const info = Thing.fromJSON(input.info, { name: 'Unnamed API' }).toJSON()\n const result: ApiModelSchema = {\n kind: ApiModelKind,\n key,\n info,\n exposes,\n }\n if (input.userKey) {\n result.userKey = input.userKey\n }\n if (input.domain) {\n result.domain = input.domain\n }\n if (input.authentication) {\n result.authentication = input.authentication\n }\n if (input.authorization) {\n result.authorization = input.authorization\n }\n if (input.session) {\n result.session = input.session\n }\n if (input.accessRule) {\n result.accessRule = input.accessRule\n }\n if (input.rateLimiting) {\n result.rateLimiting = input.rateLimiting\n }\n return result\n }\n\n constructor(state?: Partial<ApiModelSchema>, domain?: DataDomainSchema) {\n super()\n const init = ApiModel.createSchema(state)\n this.kind = init.kind\n this.key = init.key\n this.info = new Thing(init.info)\n this.userKey = init.userKey\n if (init.domain) {\n this.domain = structuredClone(init.domain)\n }\n if (init.authentication) {\n this.authentication = structuredClone(init.authentication)\n }\n if (init.authorization) {\n this.authorization = structuredClone(init.authorization)\n }\n if (init.session) {\n this.session = structuredClone(init.session)\n }\n if (Array.isArray(init.exposes)) {\n this.exposes = structuredClone(init.exposes)\n } else {\n this.exposes = []\n }\n if (init.accessRule) {\n this.accessRule = structuredClone(init.accessRule)\n }\n if (init.rateLimiting) {\n this.rateLimiting = structuredClone(init.rateLimiting)\n }\n if (domain) {\n this.dataDomain = new DataDomain(domain)\n }\n this.#initializing = false\n this.info.addEventListener('change', () => {\n this.notifyChange()\n })\n }\n\n toJSON(): ApiModelSchema {\n const result: ApiModelSchema = {\n kind: this.kind,\n key: this.key,\n info: this.info.toJSON(),\n exposes: structuredClone(this.exposes),\n }\n if (this.userKey) {\n result.userKey = this.userKey\n }\n if (this.domain) {\n result.domain = structuredClone(this.domain)\n }\n if (this.authentication) {\n result.authentication = structuredClone(this.authentication)\n }\n if (this.authorization) {\n result.authorization = structuredClone(this.authorization)\n }\n if (this.session) {\n result.session = structuredClone(this.session)\n }\n if (this.accessRule) {\n result.accessRule = structuredClone(this.accessRule)\n }\n if (this.rateLimiting) {\n result.rateLimiting = structuredClone(this.rateLimiting)\n }\n return result\n }\n\n /**\n * This function is used internally by all domain elements to notify that something has changed.\n * Since we want to notify listeners after the operation commits, we use microtask\n * to ensure that the event is dispatched after the current operation.\n */\n notifyChange() {\n if (this.#notifying || this.#initializing) {\n return\n }\n this.#notifying = true\n queueMicrotask(() => {\n this.#notifying = false\n const event = new Event('change')\n this.dispatchEvent(event)\n })\n }\n\n /**\n * Exposes a new entity in the API model.\n * If the entity already exists, it returns the existing one.\n * @param entityKey The key of the entity to expose.\n * @returns The exposed entity.\n */\n exposeEntity(entityKey: string): ExposedEntity {\n const existing = this.exposes.find((e) => e.key === entityKey)\n if (existing) {\n return existing\n }\n const newEntity: ExposedEntity = {\n key: entityKey,\n actions: [],\n }\n this.exposes.push(newEntity)\n this.notifyChange()\n return newEntity\n }\n\n /**\n * Removes an entity from the API model.\n * @param entityKey The key of the entity to remove.\n */\n removeEntity(entityKey: string): void {\n const index = this.exposes.findIndex((e) => e.key === entityKey)\n if (index !== -1) {\n this.exposes.splice(index, 1)\n this.notifyChange()\n }\n }\n /**\n * Returns the exposed entity by its key.\n * @param entityKey The key of the entity to find.\n * @returns The exposed entity or undefined if not found.\n */\n getExposedEntity(entityKey: string): ExposedEntity | undefined {\n return this.exposes.find((e) => e.key === entityKey)\n }\n}\n"]}
@@ -113,7 +113,7 @@ export declare class DataDomain extends EventTarget {
113
113
  /**
114
114
  * The description of the domain property.
115
115
  */
116
- accessor info: Thing;
116
+ info: Thing;
117
117
  /**
118
118
  * This is to keep it consistent with the domain elements.
119
119
  */
@@ -1 +1 @@
1
- {"version":3,"file":"DataDomain.d.ts","sourceRoot":"","sources":["../../../src/modeling/DataDomain.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAA;AACxD,OAAO,EAEL,cAAc,EAKf,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EACV,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,uBAAuB,EACvB,eAAe,EAChB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,KAAK,qBAAqB,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAC7G,OAAO,EAAE,KAAK,iBAAiB,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACtE,OAAO,EAAE,KAAK,kBAAkB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAC1E,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAIvD,MAAM,WAAW,gBAAgB;IAC/B,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EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS;IAajF;;;;;;;;;;;OAWG;IACH,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;CAqBrD"}
@@ -94,12 +94,10 @@ export class DataDomain extends EventTarget {
94
94
  * The list of foreign domain dependencies.
95
95
  */
96
96
  dependencyList = [];
97
- #info_accessor_storage;
98
97
  /**
99
98
  * The description of the domain property.
100
99
  */
101
- get info() { return this.#info_accessor_storage; }
102
- set info(value) { this.#info_accessor_storage = value; }
100
+ info;
103
101
  /**
104
102
  * When the initializing flag is set to true,
105
103
  * the domain is not notified of changes.