amf-client-js 5.2.2-RC.1 → 5.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amf-client-js",
3
- "version": "5.2.2-RC.1",
3
+ "version": "5.2.2",
4
4
  "description": "AMF Library",
5
5
  "main": "amf.js",
6
6
  "author": "amf team",
@@ -32,11 +32,11 @@ declare module "amf-client-js" {
32
32
  withResourceLoaders(rl: Array<ResourceLoader>): AMFConfiguration;
33
33
 
34
34
  withShapePayloadPlugin(
35
- plugin: AMFShapePayloadValidationPlugin
35
+ plugin: AMFShapePayloadValidationPlugin
36
36
  ): AMFConfiguration;
37
37
 
38
38
  withTransformationPipeline(
39
- pipeline: TransformationPipeline
39
+ pipeline: TransformationPipeline
40
40
  ): AMFConfiguration;
41
41
 
42
42
  withUnitCache(cache: UnitCache): AMFConfiguration;
@@ -53,15 +53,15 @@ declare module "amf-client-js" {
53
53
  getConfiguration(): AMFConfiguration;
54
54
 
55
55
  renderToBuilder<T>(
56
- element: DomainElement,
57
- builder: org.yaml.builder.JsOutputBuilder
56
+ element: DomainElement,
57
+ builder: org.yaml.builder.JsOutputBuilder
58
58
  ): void;
59
59
  }
60
60
  export class AMFElementRenderer {
61
61
  static renderToBuilder<T>(
62
- element: DomainElement,
63
- builder: org.yaml.builder.JsOutputBuilder,
64
- config: AMFGraphConfiguration
62
+ element: DomainElement,
63
+ builder: org.yaml.builder.JsOutputBuilder,
64
+ config: AMFGraphConfiguration
65
65
  ): void;
66
66
  }
67
67
  export interface AMFEvent {
@@ -87,8 +87,8 @@ declare module "amf-client-js" {
87
87
  render(baseUnit: BaseUnit, mediaType: string): string;
88
88
 
89
89
  renderGraphToBuilder<T>(
90
- baseUnit: BaseUnit,
91
- builder: org.yaml.builder.JsOutputBuilder
90
+ baseUnit: BaseUnit,
91
+ builder: org.yaml.builder.JsOutputBuilder
92
92
  ): T;
93
93
 
94
94
  setBaseUri(unit: BaseUnit, base: string): void;
@@ -109,7 +109,7 @@ declare module "amf-client-js" {
109
109
  static predefined(): AMFGraphConfiguration;
110
110
 
111
111
  withErrorHandlerProvider(
112
- provider: ErrorHandlerProvider
112
+ provider: ErrorHandlerProvider
113
113
  ): AMFGraphConfiguration;
114
114
 
115
115
  withEventListener(listener: AMFEventListener): AMFGraphConfiguration;
@@ -123,11 +123,11 @@ declare module "amf-client-js" {
123
123
  withResourceLoaders(rl: Array<ResourceLoader>): AMFGraphConfiguration;
124
124
 
125
125
  withShapePayloadPlugin(
126
- plugin: AMFShapePayloadValidationPlugin
126
+ plugin: AMFShapePayloadValidationPlugin
127
127
  ): AMFGraphConfiguration;
128
128
 
129
129
  withTransformationPipeline(
130
- pipeline: TransformationPipeline
130
+ pipeline: TransformationPipeline
131
131
  ): AMFGraphConfiguration;
132
132
 
133
133
  withUnitCache(cache: UnitCache): AMFGraphConfiguration;
@@ -136,14 +136,14 @@ declare module "amf-client-js" {
136
136
  getConfiguration(): AMFGraphConfiguration;
137
137
 
138
138
  payloadValidatorFor(
139
- shape: Shape,
140
- mediaType: string,
141
- mode: ValidationMode
139
+ shape: Shape,
140
+ mediaType: string,
141
+ mode: ValidationMode
142
142
  ): AMFShapePayloadValidator;
143
143
 
144
144
  payloadValidatorFor(
145
- shape: Shape,
146
- fragment: PayloadFragment
145
+ shape: Shape,
146
+ fragment: PayloadFragment
147
147
  ): AMFShapePayloadValidator;
148
148
  }
149
149
  export class AMFLibraryResult extends AMFResult {
@@ -157,48 +157,48 @@ declare module "amf-client-js" {
157
157
  }
158
158
  export class AMFParser {
159
159
  static parse(
160
- url: string,
161
- configuration: AMFGraphConfiguration
160
+ url: string,
161
+ configuration: AMFGraphConfiguration
162
162
  ): Promise<AMFParseResult>;
163
163
 
164
164
  static parseContent(
165
- content: string,
166
- configuration: AMFGraphConfiguration
165
+ content: string,
166
+ configuration: AMFGraphConfiguration
167
167
  ): Promise<AMFParseResult>;
168
168
 
169
169
  static parseContent(
170
- content: string,
171
- mediaType: string,
172
- configuration: AMFGraphConfiguration
170
+ content: string,
171
+ mediaType: string,
172
+ configuration: AMFGraphConfiguration
173
173
  ): Promise<AMFParseResult>;
174
174
 
175
175
  static parseStartingPoint(
176
- graphUrl: string,
177
- startingPoint: string,
178
- configuration: AMFGraphConfiguration
176
+ graphUrl: string,
177
+ startingPoint: string,
178
+ configuration: AMFGraphConfiguration
179
179
  ): Promise<AMFObjectResult>;
180
180
  }
181
181
  export class AMFPayloadValidationPluginConverter {
182
182
  static toAMF(
183
- plugin: JsAMFPayloadValidationPlugin
183
+ plugin: JsAMFPayloadValidationPlugin
184
184
  ): AMFShapePayloadValidationPlugin;
185
185
  }
186
186
  export class AMFRenderer {
187
187
  static render(
188
- baseUnit: BaseUnit,
189
- configuration: AMFGraphConfiguration
188
+ baseUnit: BaseUnit,
189
+ configuration: AMFGraphConfiguration
190
190
  ): string;
191
191
 
192
192
  static render(
193
- baseUnit: BaseUnit,
194
- mediaType: string,
195
- configuration: AMFGraphConfiguration
193
+ baseUnit: BaseUnit,
194
+ mediaType: string,
195
+ configuration: AMFGraphConfiguration
196
196
  ): string;
197
197
 
198
198
  static renderGraphToBuilder<T>(
199
- baseUnit: BaseUnit,
200
- builder: org.yaml.builder.JsOutputBuilder,
201
- configuration: AMFGraphConfiguration
199
+ baseUnit: BaseUnit,
200
+ builder: org.yaml.builder.JsOutputBuilder,
201
+ configuration: AMFGraphConfiguration
202
202
  ): T;
203
203
  }
204
204
  export class AMFResult extends AMFObjectResult {
@@ -220,10 +220,10 @@ declare module "amf-client-js" {
220
220
  applies(element: ValidatePayloadRequest): boolean;
221
221
 
222
222
  validator(
223
- shape: Shape,
224
- mediaType: string,
225
- config: ShapeValidationConfiguration,
226
- validationMode: ValidationMode
223
+ shape: Shape,
224
+ mediaType: string,
225
+ config: ShapeValidationConfiguration,
226
+ validationMode: ValidationMode
227
227
  ): AMFShapePayloadValidator;
228
228
  }
229
229
  export interface AMFShapePayloadValidator {
@@ -235,14 +235,14 @@ declare module "amf-client-js" {
235
235
  }
236
236
  export class AMFTransformer {
237
237
  static transform(
238
- unit: BaseUnit,
239
- configuration: AMFGraphConfiguration
238
+ unit: BaseUnit,
239
+ configuration: AMFGraphConfiguration
240
240
  ): AMFResult;
241
241
 
242
242
  static transform(
243
- unit: BaseUnit,
244
- pipelineName: string,
245
- configuration: AMFGraphConfiguration
243
+ unit: BaseUnit,
244
+ pipelineName: string,
245
+ configuration: AMFGraphConfiguration
246
246
  ): AMFResult;
247
247
  }
248
248
  export class AMFValidationReport {
@@ -252,9 +252,9 @@ declare module "amf-client-js" {
252
252
  results: Array<AMFValidationResult>;
253
253
 
254
254
  constructor(
255
- model: string,
256
- profile: ProfileName,
257
- results: Array<AMFValidationResult>
255
+ model: string,
256
+ profile: ProfileName,
257
+ results: Array<AMFValidationResult>
258
258
  );
259
259
 
260
260
  toString(): string;
@@ -272,19 +272,19 @@ declare module "amf-client-js" {
272
272
  validationId: string;
273
273
 
274
274
  constructor(
275
- message: string,
276
- level: string,
277
- targetNode: string,
278
- targetProperty: string,
279
- validationId: string,
280
- range: Range,
281
- location: string
275
+ message: string,
276
+ level: string,
277
+ targetNode: string,
278
+ targetProperty: string,
279
+ validationId: string,
280
+ range: Range,
281
+ location: string
282
282
  );
283
283
  }
284
284
  export class AMFValidator {
285
285
  static validate(
286
- baseUnit: BaseUnit,
287
- conf: AMFGraphConfiguration
286
+ baseUnit: BaseUnit,
287
+ conf: AMFGraphConfiguration
288
288
  ): Promise<AMFValidationReport>;
289
289
  }
290
290
  export class AMLBaseUnitClient extends BaseAMLBaseUnitClient {
@@ -320,11 +320,11 @@ declare module "amf-client-js" {
320
320
  withResourceLoaders(rl: Array<ResourceLoader>): AMLConfiguration;
321
321
 
322
322
  withShapePayloadPlugin(
323
- plugin: AMFShapePayloadValidationPlugin
323
+ plugin: AMFShapePayloadValidationPlugin
324
324
  ): AMLConfiguration;
325
325
 
326
326
  withTransformationPipeline(
327
- pipeline: TransformationPipeline
327
+ pipeline: TransformationPipeline
328
328
  ): AMLConfiguration;
329
329
 
330
330
  withUnitCache(cache: UnitCache): AMLConfiguration;
@@ -348,8 +348,8 @@ declare module "amf-client-js" {
348
348
  getConfiguration(): AMLConfiguration;
349
349
 
350
350
  renderToBuilder<T>(
351
- element: DomainElement,
352
- builder: org.yaml.builder.JsOutputBuilder
351
+ element: DomainElement,
352
+ builder: org.yaml.builder.JsOutputBuilder
353
353
  ): void;
354
354
  }
355
355
  export class AMLVocabularyResult extends AMFResult {
@@ -416,19 +416,19 @@ declare module "amf-client-js" {
416
416
  }
417
417
  export class AbstractElementTransformer {
418
418
  static asEndpoint<T>(
419
- unit: T,
420
- rt: ResourceType,
421
- errorHandler: ClientErrorHandler,
422
- configuration: AMFGraphConfiguration,
423
- profile: ProfileName
419
+ unit: T,
420
+ rt: ResourceType,
421
+ errorHandler: ClientErrorHandler,
422
+ configuration: AMFGraphConfiguration,
423
+ profile: ProfileName
424
424
  ): EndPoint;
425
425
 
426
426
  static asOperation<T>(
427
- unit: T,
428
- tr: Trait,
429
- errorHandler: ClientErrorHandler,
430
- configuration: AMFGraphConfiguration,
431
- profile: ProfileName
427
+ unit: T,
428
+ tr: Trait,
429
+ errorHandler: ClientErrorHandler,
430
+ configuration: AMFGraphConfiguration,
431
+ profile: ProfileName
432
432
  ): Operation;
433
433
  }
434
434
  export class AbstractOperation implements DomainElement {
@@ -592,9 +592,9 @@ declare module "amf-client-js" {
592
592
  }
593
593
  export class AmlDomainElementEmitter {
594
594
  static emitToBuilder<T>(
595
- element: DomainElement,
596
- amlConfig: BaseAMLConfiguration,
597
- builder: org.yaml.builder.JsOutputBuilder
595
+ element: DomainElement,
596
+ amlConfig: BaseAMLConfiguration,
597
+ builder: org.yaml.builder.JsOutputBuilder
598
598
  ): void;
599
599
  }
600
600
  export class Amqp091ChannelBinding implements ChannelBinding {
@@ -1051,13 +1051,13 @@ declare module "amf-client-js" {
1051
1051
  withCustomDomainProperties(extensions: Array<DomainExtension>): this;
1052
1052
 
1053
1053
  withCustomShapeProperties(
1054
- customShapeProperties: Array<ShapeExtension>
1054
+ customShapeProperties: Array<ShapeExtension>
1055
1055
  ): this;
1056
1056
 
1057
1057
  withCustomShapePropertyDefinition(name: string): PropertyShape;
1058
1058
 
1059
1059
  withCustomShapePropertyDefinitions(
1060
- propertyDefinitions: Array<PropertyShape>
1060
+ propertyDefinitions: Array<PropertyShape>
1061
1061
  ): this;
1062
1062
 
1063
1063
  withDefaultStr(value: string): this;
@@ -1311,7 +1311,7 @@ declare module "amf-client-js" {
1311
1311
  withDialect(dialect: Dialect): BaseAMLConfiguration;
1312
1312
 
1313
1313
  withErrorHandlerProvider(
1314
- provider: ErrorHandlerProvider
1314
+ provider: ErrorHandlerProvider
1315
1315
  ): BaseAMLConfiguration;
1316
1316
 
1317
1317
  withEventListener(listener: AMFEventListener): BaseAMLConfiguration;
@@ -1325,15 +1325,15 @@ declare module "amf-client-js" {
1325
1325
  withResourceLoaders(rl: Array<ResourceLoader>): BaseAMLConfiguration;
1326
1326
 
1327
1327
  withTransformationPipeline(
1328
- pipeline: TransformationPipeline
1328
+ pipeline: TransformationPipeline
1329
1329
  ): BaseAMLConfiguration;
1330
1330
 
1331
1331
  withUnitCache(cache: UnitCache): BaseAMLConfiguration;
1332
1332
  }
1333
1333
  export class BaseAMLElementClient extends AMFGraphElementClient {
1334
1334
  renderToBuilder<T>(
1335
- element: DomainElement,
1336
- builder: org.yaml.builder.JsOutputBuilder
1335
+ element: DomainElement,
1336
+ builder: org.yaml.builder.JsOutputBuilder
1337
1337
  ): void;
1338
1338
  }
1339
1339
  export interface BaseFileResourceLoader extends ResourceLoader {
@@ -1352,7 +1352,7 @@ declare module "amf-client-js" {
1352
1352
  withDialect(dialect: Dialect): BaseShapesConfiguration;
1353
1353
 
1354
1354
  withErrorHandlerProvider(
1355
- provider: ErrorHandlerProvider
1355
+ provider: ErrorHandlerProvider
1356
1356
  ): BaseShapesConfiguration;
1357
1357
 
1358
1358
  withEventListener(listener: AMFEventListener): BaseShapesConfiguration;
@@ -1366,7 +1366,7 @@ declare module "amf-client-js" {
1366
1366
  withResourceLoaders(rl: Array<ResourceLoader>): BaseShapesConfiguration;
1367
1367
 
1368
1368
  withTransformationPipeline(
1369
- pipeline: TransformationPipeline
1369
+ pipeline: TransformationPipeline
1370
1370
  ): BaseShapesConfiguration;
1371
1371
 
1372
1372
  withUnitCache(cache: UnitCache): BaseShapesConfiguration;
@@ -1377,8 +1377,8 @@ declare module "amf-client-js" {
1377
1377
  renderExample(example: Example, mediaType: string): string;
1378
1378
 
1379
1379
  renderToBuilder<T>(
1380
- element: DomainElement,
1381
- builder: org.yaml.builder.JsOutputBuilder
1380
+ element: DomainElement,
1381
+ builder: org.yaml.builder.JsOutputBuilder
1382
1382
  ): void;
1383
1383
 
1384
1384
  toJsonSchema(element: AnyShape): string;
@@ -1418,10 +1418,10 @@ declare module "amf-client-js" {
1418
1418
  withRaw(raw: string): this;
1419
1419
 
1420
1420
  withReferenceAlias(
1421
- alias: string,
1422
- id: string,
1423
- fullUrl: string,
1424
- relativeUrl: string
1421
+ alias: string,
1422
+ id: string,
1423
+ fullUrl: string,
1424
+ relativeUrl: string
1425
1425
  ): BaseUnit;
1426
1426
 
1427
1427
  withReferences(references: Array<BaseUnit>): this;
@@ -1875,10 +1875,10 @@ declare module "amf-client-js" {
1875
1875
  withRaw(raw: string): this;
1876
1876
 
1877
1877
  withReferenceAlias(
1878
- alias: string,
1879
- id: string,
1880
- fullUrl: string,
1881
- relativeUrl: string
1878
+ alias: string,
1879
+ id: string,
1880
+ fullUrl: string,
1881
+ relativeUrl: string
1882
1882
  ): BaseUnit;
1883
1883
 
1884
1884
  withReferences(references: Array<BaseUnit>): this;
@@ -1955,8 +1955,8 @@ declare module "amf-client-js" {
1955
1955
  withLiteralProperty(propertyIri: string, value: string): this;
1956
1956
 
1957
1957
  withObjectCollectionProperty(
1958
- propertyIri: string,
1959
- value: Array<DialectDomainElement>
1958
+ propertyIri: string,
1959
+ value: Array<DialectDomainElement>
1960
1960
  ): this;
1961
1961
 
1962
1962
  withObjectProperty(iri: string, value: DialectDomainElement): this;
@@ -2004,10 +2004,10 @@ declare module "amf-client-js" {
2004
2004
  withRaw(raw: string): this;
2005
2005
 
2006
2006
  withReferenceAlias(
2007
- alias: string,
2008
- id: string,
2009
- fullUrl: string,
2010
- relativeUrl: string
2007
+ alias: string,
2008
+ id: string,
2009
+ fullUrl: string,
2010
+ relativeUrl: string
2011
2011
  ): BaseUnit;
2012
2012
 
2013
2013
  withReferences(references: Array<BaseUnit>): this;
@@ -2015,7 +2015,7 @@ declare module "amf-client-js" {
2015
2015
  withUsage(usage: string): this;
2016
2016
  }
2017
2017
  export class DialectInstance
2018
- implements BaseUnit, EncodesModel, DeclaresModel, DialectInstanceUnit
2018
+ implements BaseUnit, EncodesModel, DeclaresModel, DialectInstanceUnit
2019
2019
  {
2020
2020
  declares: Array<DomainElement>;
2021
2021
  encodes: DialectDomainElement;
@@ -2074,10 +2074,10 @@ declare module "amf-client-js" {
2074
2074
  withRaw(raw: string): this;
2075
2075
 
2076
2076
  withReferenceAlias(
2077
- alias: string,
2078
- id: string,
2079
- fullUrl: string,
2080
- relativeUrl: string
2077
+ alias: string,
2078
+ id: string,
2079
+ fullUrl: string,
2080
+ relativeUrl: string
2081
2081
  ): BaseUnit;
2082
2082
 
2083
2083
  withReferences(references: Array<BaseUnit>): this;
@@ -2085,7 +2085,7 @@ declare module "amf-client-js" {
2085
2085
  withUsage(usage: string): this;
2086
2086
  }
2087
2087
  export class DialectInstanceFragment
2088
- implements BaseUnit, EncodesModel, DialectInstanceUnit
2088
+ implements BaseUnit, EncodesModel, DialectInstanceUnit
2089
2089
  {
2090
2090
  encodes: DialectDomainElement;
2091
2091
  id: string;
@@ -2136,10 +2136,10 @@ declare module "amf-client-js" {
2136
2136
  withRaw(raw: string): this;
2137
2137
 
2138
2138
  withReferenceAlias(
2139
- alias: string,
2140
- id: string,
2141
- fullUrl: string,
2142
- relativeUrl: string
2139
+ alias: string,
2140
+ id: string,
2141
+ fullUrl: string,
2142
+ relativeUrl: string
2143
2143
  ): BaseUnit;
2144
2144
 
2145
2145
  withReferences(references: Array<BaseUnit>): this;
@@ -2147,7 +2147,7 @@ declare module "amf-client-js" {
2147
2147
  withUsage(usage: string): this;
2148
2148
  }
2149
2149
  export class DialectInstanceLibrary
2150
- implements BaseUnit, DeclaresModel, DialectInstanceUnit
2150
+ implements BaseUnit, DeclaresModel, DialectInstanceUnit
2151
2151
  {
2152
2152
  declares: Array<DomainElement>;
2153
2153
  id: string;
@@ -2198,10 +2198,10 @@ declare module "amf-client-js" {
2198
2198
  withRaw(raw: string): this;
2199
2199
 
2200
2200
  withReferenceAlias(
2201
- alias: string,
2202
- id: string,
2203
- fullUrl: string,
2204
- relativeUrl: string
2201
+ alias: string,
2202
+ id: string,
2203
+ fullUrl: string,
2204
+ relativeUrl: string
2205
2205
  ): BaseUnit;
2206
2206
 
2207
2207
  withReferences(references: Array<BaseUnit>): this;
@@ -2209,7 +2209,7 @@ declare module "amf-client-js" {
2209
2209
  withUsage(usage: string): this;
2210
2210
  }
2211
2211
  export class DialectInstancePatch
2212
- implements BaseUnit, EncodesModel, DeclaresModel, DialectInstanceUnit
2212
+ implements BaseUnit, EncodesModel, DeclaresModel, DialectInstanceUnit
2213
2213
  {
2214
2214
  declares: Array<DomainElement>;
2215
2215
  encodes: DialectDomainElement;
@@ -2268,10 +2268,10 @@ declare module "amf-client-js" {
2268
2268
  withRaw(raw: string): this;
2269
2269
 
2270
2270
  withReferenceAlias(
2271
- alias: string,
2272
- id: string,
2273
- fullUrl: string,
2274
- relativeUrl: string
2271
+ alias: string,
2272
+ id: string,
2273
+ fullUrl: string,
2274
+ relativeUrl: string
2275
2275
  ): BaseUnit;
2276
2276
 
2277
2277
  withReferences(references: Array<BaseUnit>): this;
@@ -2349,10 +2349,10 @@ declare module "amf-client-js" {
2349
2349
  withRaw(raw: string): this;
2350
2350
 
2351
2351
  withReferenceAlias(
2352
- alias: string,
2353
- id: string,
2354
- fullUrl: string,
2355
- relativeUrl: string
2352
+ alias: string,
2353
+ id: string,
2354
+ fullUrl: string,
2355
+ relativeUrl: string
2356
2356
  ): BaseUnit;
2357
2357
 
2358
2358
  withReferences(references: Array<BaseUnit>): this;
@@ -2430,10 +2430,10 @@ declare module "amf-client-js" {
2430
2430
  withRaw(raw: string): this;
2431
2431
 
2432
2432
  withReferenceAlias(
2433
- alias: string,
2434
- id: string,
2435
- fullUrl: string,
2436
- relativeUrl: string
2433
+ alias: string,
2434
+ id: string,
2435
+ fullUrl: string,
2436
+ relativeUrl: string
2437
2437
  ): BaseUnit;
2438
2438
 
2439
2439
  withReferences(references: Array<BaseUnit>): this;
@@ -2588,7 +2588,7 @@ declare module "amf-client-js" {
2588
2588
  value(): number;
2589
2589
  }
2590
2590
  export class EmptyBinding
2591
- implements ServerBinding, OperationBinding, ChannelBinding, MessageBinding
2591
+ implements ServerBinding, OperationBinding, ChannelBinding, MessageBinding
2592
2592
  {
2593
2593
  customDomainProperties: Array<DomainExtension>;
2594
2594
  extendsNode: Array<DomainElement>;
@@ -2677,6 +2677,7 @@ declare module "amf-client-js" {
2677
2677
  customDomainProperties: Array<DomainExtension>;
2678
2678
  description: StrField;
2679
2679
  extendsNode: Array<DomainElement>;
2680
+ federationMetadata: EndPointFederationMetadata;
2680
2681
  id: string;
2681
2682
  isExternalLink: BoolField;
2682
2683
  name: StrField;
@@ -2733,6 +2734,9 @@ declare module "amf-client-js" {
2733
2734
 
2734
2735
  withSummary(summary: string): this;
2735
2736
  }
2737
+ export class EndPointFederationMetadata {
2738
+ constructor();
2739
+ }
2736
2740
  export class ErrorHandler {
2737
2741
  static handler(obj: JsErrorHandler): ClientErrorHandler;
2738
2742
 
@@ -3042,10 +3046,10 @@ declare module "amf-client-js" {
3042
3046
  withRaw(raw: string): this;
3043
3047
 
3044
3048
  withReferenceAlias(
3045
- alias: string,
3046
- id: string,
3047
- fullUrl: string,
3048
- relativeUrl: string
3049
+ alias: string,
3050
+ id: string,
3051
+ fullUrl: string,
3052
+ relativeUrl: string
3049
3053
  ): BaseUnit;
3050
3054
 
3051
3055
  withReferences(references: Array<BaseUnit>): this;
@@ -3059,6 +3063,8 @@ declare module "amf-client-js" {
3059
3063
 
3060
3064
  properties(): Array<string>;
3061
3065
 
3066
+ propertyLexical(uri: string): Range;
3067
+
3062
3068
  removeField(uri: string): this;
3063
3069
 
3064
3070
  scalarByProperty(uri: string): Array<any>;
@@ -3238,10 +3244,10 @@ declare module "amf-client-js" {
3238
3244
  applies(element: ValidatePayloadRequest): boolean;
3239
3245
 
3240
3246
  validator(
3241
- shape: Shape,
3242
- mediaType: string,
3243
- config: ShapeValidationConfiguration,
3244
- validationMode: ValidationMode
3247
+ shape: Shape,
3248
+ mediaType: string,
3249
+ config: ShapeValidationConfiguration,
3250
+ validationMode: ValidationMode
3245
3251
  ): JsPayloadValidator;
3246
3252
  }
3247
3253
  export interface JsAMFPlugin {
@@ -3285,9 +3291,9 @@ declare module "amf-client-js" {
3285
3291
  }
3286
3292
  export interface JsTransformationStep {
3287
3293
  transform(
3288
- model: BaseUnit,
3289
- errorHandler: ClientErrorHandler,
3290
- configuration: AMFGraphConfiguration
3294
+ model: BaseUnit,
3295
+ errorHandler: ClientErrorHandler,
3296
+ configuration: AMFGraphConfiguration
3291
3297
  ): BaseUnit;
3292
3298
  }
3293
3299
  export class JsonSchemaConfiguration {
@@ -3303,13 +3309,13 @@ declare module "amf-client-js" {
3303
3309
  export class JsonSchemaDraft7 implements JSONSchemaVersion {}
3304
3310
  export class JsonSchemaShapeRenderer {
3305
3311
  static buildJsonSchema(
3306
- element: AnyShape,
3307
- config: AMFGraphConfiguration
3312
+ element: AnyShape,
3313
+ config: AMFGraphConfiguration
3308
3314
  ): string;
3309
3315
 
3310
3316
  static toJsonSchema(
3311
- element: AnyShape,
3312
- config: AMFGraphConfiguration
3317
+ element: AnyShape,
3318
+ config: AMFGraphConfiguration
3313
3319
  ): string;
3314
3320
  }
3315
3321
  export class KafkaMessageBinding implements MessageBinding {
@@ -3695,10 +3701,10 @@ declare module "amf-client-js" {
3695
3701
  withRaw(raw: string): this;
3696
3702
 
3697
3703
  withReferenceAlias(
3698
- alias: string,
3699
- id: string,
3700
- fullUrl: string,
3701
- relativeUrl: string
3704
+ alias: string,
3705
+ id: string,
3706
+ fullUrl: string,
3707
+ relativeUrl: string
3702
3708
  ): BaseUnit;
3703
3709
 
3704
3710
  withReferences(references: Array<BaseUnit>): this;
@@ -3932,7 +3938,7 @@ declare module "amf-client-js" {
3932
3938
  linkCopy(): NodeShape;
3933
3939
 
3934
3940
  withAdditionalPropertiesKeySchema(
3935
- additionalPropertiesKeySchema: Shape
3941
+ additionalPropertiesKeySchema: Shape
3936
3942
  ): this;
3937
3943
 
3938
3944
  withAdditionalPropertiesSchema(additionalPropertiesSchema: Shape): this;
@@ -3950,7 +3956,7 @@ declare module "amf-client-js" {
3950
3956
  withDiscriminatorValue(value: string): this;
3951
3957
 
3952
3958
  withExternalProperties(
3953
- externalProperties: Array<ExternalPropertyShape>
3959
+ externalProperties: Array<ExternalPropertyShape>
3954
3960
  ): this;
3955
3961
 
3956
3962
  withInheritsObject(name: string): NodeShape;
@@ -4145,7 +4151,7 @@ declare module "amf-client-js" {
4145
4151
  withDocumentation(documentation: CreativeWork): this;
4146
4152
 
4147
4153
  withFederationMetadata(
4148
- federationMetadata: OperationFederationMetadata
4154
+ federationMetadata: OperationFederationMetadata
4149
4155
  ): this;
4150
4156
 
4151
4157
  withLinkLabel(label: string): this;
@@ -4269,6 +4275,7 @@ declare module "amf-client-js" {
4269
4275
  deprecated: BoolField;
4270
4276
  examples: Array<Example>;
4271
4277
  explode: BoolField;
4278
+ federationMetadata: ParameterFederationMetadata;
4272
4279
  payloads: Array<Payload>;
4273
4280
  style: StrField;
4274
4281
 
@@ -4292,6 +4299,9 @@ declare module "amf-client-js" {
4292
4299
 
4293
4300
  withStyle(style: string): this;
4294
4301
  }
4302
+ export class ParameterFederationMetadata {
4303
+ constructor();
4304
+ }
4295
4305
  export class ParameterKeyMapping implements KeyMapping {
4296
4306
  customDomainProperties: Array<DomainExtension>;
4297
4307
  extendsNode: Array<DomainElement>;
@@ -4496,6 +4506,7 @@ declare module "amf-client-js" {
4496
4506
  encoding: Array<Encoding>;
4497
4507
  encodings: Array<Encoding>;
4498
4508
  examples: Array<Example>;
4509
+ required: BoolField;
4499
4510
  schemaMediaType: StrField;
4500
4511
 
4501
4512
  constructor();
@@ -4512,6 +4523,8 @@ declare module "amf-client-js" {
4512
4523
 
4513
4524
  withExamples(examples: Array<Example>): this;
4514
4525
 
4526
+ withRequired(required: boolean): this;
4527
+
4515
4528
  withSchemaMediaType(mediaType: string): this;
4516
4529
  }
4517
4530
  export class PayloadFragment extends Fragment {
@@ -4631,7 +4644,7 @@ declare module "amf-client-js" {
4631
4644
  isExternalLink: BoolField;
4632
4645
  position: Range;
4633
4646
  source: PropertyShape;
4634
- target: string;
4647
+ target: StrField;
4635
4648
 
4636
4649
  constructor();
4637
4650
 
@@ -4800,13 +4813,13 @@ declare module "amf-client-js" {
4800
4813
  withCustomDomainProperties(extensions: Array<DomainExtension>): this;
4801
4814
 
4802
4815
  withCustomShapeProperties(
4803
- customShapeProperties: Array<ShapeExtension>
4816
+ customShapeProperties: Array<ShapeExtension>
4804
4817
  ): this;
4805
4818
 
4806
4819
  withCustomShapePropertyDefinition(name: string): PropertyShape;
4807
4820
 
4808
4821
  withCustomShapePropertyDefinitions(
4809
- propertyDefinitions: Array<PropertyShape>
4822
+ propertyDefinitions: Array<PropertyShape>
4810
4823
  ): this;
4811
4824
 
4812
4825
  withDefaultStr(value: string): this;
@@ -4971,8 +4984,8 @@ declare module "amf-client-js" {
4971
4984
  }
4972
4985
  export class RamlShapeRenderer {
4973
4986
  static toRamlDatatype(
4974
- element: AnyShape,
4975
- config: AMFGraphConfiguration
4987
+ element: AnyShape,
4988
+ config: AMFGraphConfiguration
4976
4989
  ): string;
4977
4990
  }
4978
4991
  export class Range {
@@ -4988,10 +5001,10 @@ declare module "amf-client-js" {
4988
5001
  constructor(start: Position, end: Position);
4989
5002
 
4990
5003
  static apply(
4991
- lineFrom: number,
4992
- columnFrom: number,
4993
- lineTo: number,
4994
- columnTo: number
5004
+ lineFrom: number,
5005
+ columnFrom: number,
5006
+ lineTo: number,
5007
+ columnTo: number
4995
5008
  ): Range;
4996
5009
 
4997
5010
  static apply(start: Position, delta: number): Range;
@@ -5057,13 +5070,13 @@ declare module "amf-client-js" {
5057
5070
  withCustomDomainProperties(extensions: Array<DomainExtension>): this;
5058
5071
 
5059
5072
  withCustomShapeProperties(
5060
- customShapeProperties: Array<ShapeExtension>
5073
+ customShapeProperties: Array<ShapeExtension>
5061
5074
  ): this;
5062
5075
 
5063
5076
  withCustomShapePropertyDefinition(name: string): PropertyShape;
5064
5077
 
5065
5078
  withCustomShapePropertyDefinitions(
5066
- propertyDefinitions: Array<PropertyShape>
5079
+ propertyDefinitions: Array<PropertyShape>
5067
5080
  ): this;
5068
5081
 
5069
5082
  withDefaultStr(value: string): this;
@@ -5160,6 +5173,8 @@ declare module "amf-client-js" {
5160
5173
 
5161
5174
  withoutDocumentation(): RenderOptions;
5162
5175
 
5176
+ withoutImplicitRamlTypes(): RenderOptions;
5177
+
5163
5178
  withoutPrettyPrint(): RenderOptions;
5164
5179
 
5165
5180
  withoutSourceInformation(): RenderOptions;
@@ -5562,7 +5577,7 @@ declare module "amf-client-js" {
5562
5577
  parseSemanticSchema(url: string): Promise<AMFSemanticSchemaResult>;
5563
5578
 
5564
5579
  parseSemanticSchemaContent(
5565
- content: string
5580
+ content: string
5566
5581
  ): Promise<AMFSemanticSchemaResult>;
5567
5582
  }
5568
5583
  export class SemanticExtension implements DomainElement {
@@ -5587,7 +5602,7 @@ declare module "amf-client-js" {
5587
5602
  withExtendsNode(extension: Array<ParametrizedDeclaration>): this;
5588
5603
 
5589
5604
  withExtensionMappingDefinition(
5590
- annotationMapping: string
5605
+ annotationMapping: string
5591
5606
  ): SemanticExtension;
5592
5607
 
5593
5608
  withExtensionName(name: string): SemanticExtension;
@@ -5612,33 +5627,33 @@ declare module "amf-client-js" {
5612
5627
  withDialect(url: string): Promise<SemanticJsonSchemaConfiguration>;
5613
5628
 
5614
5629
  withErrorHandlerProvider(
5615
- provider: ErrorHandlerProvider
5630
+ provider: ErrorHandlerProvider
5616
5631
  ): SemanticJsonSchemaConfiguration;
5617
5632
 
5618
5633
  withEventListener(
5619
- listener: AMFEventListener
5634
+ listener: AMFEventListener
5620
5635
  ): SemanticJsonSchemaConfiguration;
5621
5636
 
5622
5637
  withParsingOptions(
5623
- parsingOptions: ParsingOptions
5638
+ parsingOptions: ParsingOptions
5624
5639
  ): SemanticJsonSchemaConfiguration;
5625
5640
 
5626
5641
  withRenderOptions(
5627
- renderOptions: RenderOptions
5642
+ renderOptions: RenderOptions
5628
5643
  ): SemanticJsonSchemaConfiguration;
5629
5644
 
5630
5645
  withResourceLoader(rl: ResourceLoader): SemanticJsonSchemaConfiguration;
5631
5646
 
5632
5647
  withResourceLoaders(
5633
- rl: Array<ResourceLoader>
5648
+ rl: Array<ResourceLoader>
5634
5649
  ): SemanticJsonSchemaConfiguration;
5635
5650
 
5636
5651
  withShapePayloadPlugin(
5637
- plugin: AMFShapePayloadValidationPlugin
5652
+ plugin: AMFShapePayloadValidationPlugin
5638
5653
  ): SemanticJsonSchemaConfiguration;
5639
5654
 
5640
5655
  withTransformationPipeline(
5641
- pipeline: TransformationPipeline
5656
+ pipeline: TransformationPipeline
5642
5657
  ): SemanticJsonSchemaConfiguration;
5643
5658
 
5644
5659
  withUnitCache(cache: UnitCache): SemanticJsonSchemaConfiguration;
@@ -5788,13 +5803,13 @@ declare module "amf-client-js" {
5788
5803
  withAnd(subShapes: Array<Shape>): this;
5789
5804
 
5790
5805
  withCustomShapeProperties(
5791
- customShapeProperties: Array<ShapeExtension>
5806
+ customShapeProperties: Array<ShapeExtension>
5792
5807
  ): this;
5793
5808
 
5794
5809
  withCustomShapePropertyDefinition(name: string): PropertyShape;
5795
5810
 
5796
5811
  withCustomShapePropertyDefinitions(
5797
- propertyDefinitions: Array<PropertyShape>
5812
+ propertyDefinitions: Array<PropertyShape>
5798
5813
  ): this;
5799
5814
 
5800
5815
  withDefaultStr(value: string): this;
@@ -5979,7 +5994,7 @@ declare module "amf-client-js" {
5979
5994
  withDialect(url: string): Promise<ShapesConfiguration>;
5980
5995
 
5981
5996
  withErrorHandlerProvider(
5982
- provider: ErrorHandlerProvider
5997
+ provider: ErrorHandlerProvider
5983
5998
  ): ShapesConfiguration;
5984
5999
 
5985
6000
  withEventListener(listener: AMFEventListener): ShapesConfiguration;
@@ -5993,11 +6008,11 @@ declare module "amf-client-js" {
5993
6008
  withResourceLoaders(rl: Array<ResourceLoader>): ShapesConfiguration;
5994
6009
 
5995
6010
  withShapePayloadPlugin(
5996
- plugin: AMFShapePayloadValidationPlugin
6011
+ plugin: AMFShapePayloadValidationPlugin
5997
6012
  ): ShapesConfiguration;
5998
6013
 
5999
6014
  withTransformationPipeline(
6000
- pipeline: TransformationPipeline
6015
+ pipeline: TransformationPipeline
6001
6016
  ): ShapesConfiguration;
6002
6017
 
6003
6018
  withUnitCache(cache: UnitCache): ShapesConfiguration;
@@ -6203,12 +6218,12 @@ declare module "amf-client-js" {
6203
6218
  static empty(pipelineName: string): TransformationPipelineBuilder;
6204
6219
 
6205
6220
  static fromPipeline(
6206
- pipeline: TransformationPipeline
6221
+ pipeline: TransformationPipeline
6207
6222
  ): TransformationPipelineBuilder;
6208
6223
 
6209
6224
  static fromPipeline(
6210
- pipelineName: string,
6211
- conf: AMFGraphConfiguration
6225
+ pipelineName: string,
6226
+ conf: AMFGraphConfiguration
6212
6227
  ): undefined | TransformationPipelineBuilder;
6213
6228
 
6214
6229
  prepend(newStage: TransformationStep): TransformationPipelineBuilder;
@@ -6217,9 +6232,9 @@ declare module "amf-client-js" {
6217
6232
  }
6218
6233
  export interface TransformationStep {
6219
6234
  transform(
6220
- model: BaseUnit,
6221
- errorHandler: ClientErrorHandler,
6222
- configuration: AMFGraphConfiguration
6235
+ model: BaseUnit,
6236
+ errorHandler: ClientErrorHandler,
6237
+ configuration: AMFGraphConfiguration
6223
6238
  ): BaseUnit;
6224
6239
  }
6225
6240
  export class TransformationStepFactory {
@@ -6318,9 +6333,9 @@ declare module "amf-client-js" {
6318
6333
  defaultSeverity: string;
6319
6334
 
6320
6335
  constructor(
6321
- candidates: Array<ValidationCandidate>,
6322
- closure: Array<Shape>,
6323
- defaultSeverity: string
6336
+ candidates: Array<ValidationCandidate>,
6337
+ closure: Array<Shape>,
6338
+ defaultSeverity: string
6324
6339
  );
6325
6340
  }
6326
6341
  export interface ValueField<T> extends Annotable {
@@ -6424,10 +6439,10 @@ declare module "amf-client-js" {
6424
6439
  withRaw(raw: string): this;
6425
6440
 
6426
6441
  withReferenceAlias(
6427
- alias: string,
6428
- id: string,
6429
- fullUrl: string,
6430
- relativeUrl: string
6442
+ alias: string,
6443
+ id: string,
6444
+ fullUrl: string,
6445
+ relativeUrl: string
6431
6446
  ): BaseUnit;
6432
6447
 
6433
6448
  withReferences(references: Array<BaseUnit>): this;