amf-client-js 5.8.0-OAS2-FIX-3 → 5.8.0-RC.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/amf.js +11625 -11470
- package/package.json +2 -2
- package/typings/amf-client-js.d.ts +160 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "amf-client-js",
|
|
3
|
-
"version": "5.8.0-
|
|
3
|
+
"version": "5.8.0-RC.0",
|
|
4
4
|
"description": "AMF Library",
|
|
5
5
|
"main": "amf.js",
|
|
6
6
|
"author": "amf team",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"types": "./typings/amf-client-js.d.ts",
|
|
17
17
|
"typings": "./typings/amf-client-js.d.ts",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@aml-org/amf-antlr-parsers": "0.8.
|
|
19
|
+
"@aml-org/amf-antlr-parsers": "0.8.29",
|
|
20
20
|
"ajv": "6.12.6",
|
|
21
21
|
"avro-js": "1.11.3"
|
|
22
22
|
}
|
|
@@ -1379,6 +1379,8 @@ declare module "amf-client-js" {
|
|
|
1379
1379
|
linkLabel: StrField;
|
|
1380
1380
|
linkTarget: DomainElement | undefined;
|
|
1381
1381
|
position: Range;
|
|
1382
|
+
refSummary: StrField;
|
|
1383
|
+
refDescription: StrField;
|
|
1382
1384
|
|
|
1383
1385
|
annotations(): Annotations;
|
|
1384
1386
|
graph(): Graph;
|
|
@@ -1409,6 +1411,8 @@ declare module "amf-client-js" {
|
|
|
1409
1411
|
isLink: boolean;
|
|
1410
1412
|
linkLabel: StrField;
|
|
1411
1413
|
linkTarget: DomainElement | undefined;
|
|
1414
|
+
refSummary: StrField;
|
|
1415
|
+
refDescription: StrField;
|
|
1412
1416
|
position: Range;
|
|
1413
1417
|
|
|
1414
1418
|
annotations(): Annotations;
|
|
@@ -1466,6 +1470,7 @@ declare module "amf-client-js" {
|
|
|
1466
1470
|
namespace: StrField;
|
|
1467
1471
|
aliases: Array<StrField>;
|
|
1468
1472
|
size: IntField;
|
|
1473
|
+
schemaVersion: StrField;
|
|
1469
1474
|
|
|
1470
1475
|
constructor();
|
|
1471
1476
|
|
|
@@ -1561,6 +1566,8 @@ declare module "amf-client-js" {
|
|
|
1561
1566
|
|
|
1562
1567
|
withSize(size: number): this;
|
|
1563
1568
|
|
|
1569
|
+
withSchemaVersion(version: string): this;
|
|
1570
|
+
|
|
1564
1571
|
avroSchemaType(): undefined | string;
|
|
1565
1572
|
|
|
1566
1573
|
isAvroSchema(): boolean;
|
|
@@ -1572,6 +1579,7 @@ declare module "amf-client-js" {
|
|
|
1572
1579
|
description: StrField;
|
|
1573
1580
|
documentations: Array<CreativeWork>;
|
|
1574
1581
|
endPoints: Array<EndPoint>;
|
|
1582
|
+
webhooks: Array<EndPoint>;
|
|
1575
1583
|
extendsNode: Array<DomainElement>;
|
|
1576
1584
|
id: string;
|
|
1577
1585
|
identifier: StrField;
|
|
@@ -1686,6 +1694,7 @@ declare module "amf-client-js" {
|
|
|
1686
1694
|
description: StrField;
|
|
1687
1695
|
documentations: Array<CreativeWork>;
|
|
1688
1696
|
endPoints: Array<EndPoint>;
|
|
1697
|
+
webhooks: Array<EndPoint>;
|
|
1689
1698
|
extendsNode: Array<DomainElement>;
|
|
1690
1699
|
id: string;
|
|
1691
1700
|
identifier: StrField;
|
|
@@ -3324,6 +3333,8 @@ declare module "amf-client-js" {
|
|
|
3324
3333
|
isLink: boolean;
|
|
3325
3334
|
linkLabel: StrField;
|
|
3326
3335
|
linkTarget: DomainElement | undefined;
|
|
3336
|
+
refSummary: StrField;
|
|
3337
|
+
refDescription: StrField;
|
|
3327
3338
|
|
|
3328
3339
|
link<T>(): T;
|
|
3329
3340
|
link<T>(label: string): T;
|
|
@@ -3678,6 +3689,8 @@ declare module "amf-client-js" {
|
|
|
3678
3689
|
isLink: boolean;
|
|
3679
3690
|
linkLabel: StrField;
|
|
3680
3691
|
linkTarget: DomainElement | undefined;
|
|
3692
|
+
refSummary: StrField;
|
|
3693
|
+
refDescription: StrField;
|
|
3681
3694
|
position: Range;
|
|
3682
3695
|
|
|
3683
3696
|
annotations(): Annotations;
|
|
@@ -3715,6 +3728,8 @@ declare module "amf-client-js" {
|
|
|
3715
3728
|
isLink: boolean;
|
|
3716
3729
|
linkLabel: StrField;
|
|
3717
3730
|
linkTarget: DomainElement | undefined;
|
|
3731
|
+
refSummary: StrField;
|
|
3732
|
+
refDescription: StrField;
|
|
3718
3733
|
position: Range;
|
|
3719
3734
|
|
|
3720
3735
|
annotations(): Annotations;
|
|
@@ -3750,6 +3765,8 @@ declare module "amf-client-js" {
|
|
|
3750
3765
|
isLink: boolean;
|
|
3751
3766
|
linkLabel: StrField;
|
|
3752
3767
|
linkTarget: DomainElement | undefined;
|
|
3768
|
+
refSummary: StrField;
|
|
3769
|
+
refDescription: StrField;
|
|
3753
3770
|
position: Range;
|
|
3754
3771
|
|
|
3755
3772
|
annotations(): Annotations;
|
|
@@ -3827,6 +3844,8 @@ declare module "amf-client-js" {
|
|
|
3827
3844
|
isLink: boolean;
|
|
3828
3845
|
linkLabel: StrField;
|
|
3829
3846
|
linkTarget: DomainElement | undefined;
|
|
3847
|
+
refSummary: StrField;
|
|
3848
|
+
refDescription: StrField;
|
|
3830
3849
|
position: Range;
|
|
3831
3850
|
|
|
3832
3851
|
annotations(): Annotations;
|
|
@@ -3858,6 +3877,8 @@ declare module "amf-client-js" {
|
|
|
3858
3877
|
isLink: boolean;
|
|
3859
3878
|
linkLabel: StrField;
|
|
3860
3879
|
linkTarget: DomainElement | undefined;
|
|
3880
|
+
refSummary: StrField;
|
|
3881
|
+
refDescription: StrField;
|
|
3861
3882
|
position: Range;
|
|
3862
3883
|
|
|
3863
3884
|
annotations(): Annotations;
|
|
@@ -3889,6 +3910,8 @@ declare module "amf-client-js" {
|
|
|
3889
3910
|
isLink: boolean;
|
|
3890
3911
|
linkLabel: StrField;
|
|
3891
3912
|
linkTarget: DomainElement | undefined;
|
|
3913
|
+
refSummary: StrField;
|
|
3914
|
+
refDescription: StrField;
|
|
3892
3915
|
position: Range;
|
|
3893
3916
|
|
|
3894
3917
|
annotations(): Annotations;
|
|
@@ -4292,6 +4315,8 @@ declare module "amf-client-js" {
|
|
|
4292
4315
|
isLink: boolean;
|
|
4293
4316
|
linkLabel: StrField;
|
|
4294
4317
|
linkTarget: DomainElement | undefined;
|
|
4318
|
+
refSummary: StrField;
|
|
4319
|
+
refDescription: StrField;
|
|
4295
4320
|
position: Range;
|
|
4296
4321
|
|
|
4297
4322
|
annotations(): Annotations;
|
|
@@ -4378,6 +4403,8 @@ declare module "amf-client-js" {
|
|
|
4378
4403
|
isLink: boolean;
|
|
4379
4404
|
linkLabel: StrField;
|
|
4380
4405
|
linkTarget: DomainElement | undefined;
|
|
4406
|
+
refSummary: StrField;
|
|
4407
|
+
refDescription: StrField;
|
|
4381
4408
|
position: Range;
|
|
4382
4409
|
|
|
4383
4410
|
annotations(): Annotations;
|
|
@@ -4415,6 +4442,8 @@ declare module "amf-client-js" {
|
|
|
4415
4442
|
isLink: boolean;
|
|
4416
4443
|
linkLabel: StrField;
|
|
4417
4444
|
linkTarget: DomainElement | undefined;
|
|
4445
|
+
refSummary: StrField;
|
|
4446
|
+
refDescription: StrField;
|
|
4418
4447
|
position: Range;
|
|
4419
4448
|
|
|
4420
4449
|
annotations(): Annotations;
|
|
@@ -5276,6 +5305,7 @@ declare module "amf-client-js" {
|
|
|
5276
5305
|
name: StrField;
|
|
5277
5306
|
position: Range;
|
|
5278
5307
|
url: StrField;
|
|
5308
|
+
identifier: StrField;
|
|
5279
5309
|
|
|
5280
5310
|
constructor();
|
|
5281
5311
|
|
|
@@ -5294,6 +5324,8 @@ declare module "amf-client-js" {
|
|
|
5294
5324
|
withName(name: string): this;
|
|
5295
5325
|
|
|
5296
5326
|
withUrl(url: string): this;
|
|
5327
|
+
|
|
5328
|
+
withIdentifier(identifier: string): this;
|
|
5297
5329
|
}
|
|
5298
5330
|
export class LinkNode implements DataNode {
|
|
5299
5331
|
alias: StrField;
|
|
@@ -6624,6 +6656,7 @@ declare module "amf-client-js" {
|
|
|
6624
6656
|
getMaxYamlReferences: undefined | number;
|
|
6625
6657
|
isAmfJsonLdSerialization: boolean;
|
|
6626
6658
|
isTokens: boolean;
|
|
6659
|
+
isSourceSchemaDef: boolean;
|
|
6627
6660
|
|
|
6628
6661
|
constructor();
|
|
6629
6662
|
|
|
@@ -6639,11 +6672,15 @@ declare module "amf-client-js" {
|
|
|
6639
6672
|
|
|
6640
6673
|
withTokens(): ParsingOptions;
|
|
6641
6674
|
|
|
6675
|
+
withSourceSchemaDef(): ParsingOptions;
|
|
6676
|
+
|
|
6642
6677
|
withoutAmfJsonLdSerialization(): ParsingOptions;
|
|
6643
6678
|
|
|
6644
6679
|
withoutBaseUnitUrl(): ParsingOptions;
|
|
6645
6680
|
|
|
6646
6681
|
withoutTokens(): ParsingOptions;
|
|
6682
|
+
|
|
6683
|
+
withoutSourceSchemaDef(): ParsingOptions;
|
|
6647
6684
|
}
|
|
6648
6685
|
export class Path {
|
|
6649
6686
|
static delimiter: string;
|
|
@@ -6774,6 +6811,9 @@ declare module "amf-client-js" {
|
|
|
6774
6811
|
static readonly PAYLOAD: ProfileName;
|
|
6775
6812
|
static readonly RAML08: ProfileName;
|
|
6776
6813
|
static readonly RAML10: ProfileName;
|
|
6814
|
+
static readonly MCP: ProfileName;
|
|
6815
|
+
static readonly AGENT_DOMAIN: ProfileName;
|
|
6816
|
+
static readonly AGENT_CARD: ProfileName;
|
|
6777
6817
|
}
|
|
6778
6818
|
export class PropertyDependencies implements DomainElement {
|
|
6779
6819
|
customDomainProperties: Array<DomainExtension>;
|
|
@@ -7166,6 +7206,8 @@ declare module "amf-client-js" {
|
|
|
7166
7206
|
isLink: boolean;
|
|
7167
7207
|
linkLabel: StrField;
|
|
7168
7208
|
linkTarget: DomainElement | undefined;
|
|
7209
|
+
refSummary: StrField;
|
|
7210
|
+
refDescription: StrField;
|
|
7169
7211
|
position: Range;
|
|
7170
7212
|
|
|
7171
7213
|
annotations(): Annotations;
|
|
@@ -7991,6 +8033,8 @@ declare module "amf-client-js" {
|
|
|
7991
8033
|
isLink: boolean;
|
|
7992
8034
|
linkLabel: StrField;
|
|
7993
8035
|
linkTarget: DomainElement | undefined;
|
|
8036
|
+
refSummary: StrField;
|
|
8037
|
+
refDescription: StrField;
|
|
7994
8038
|
|
|
7995
8039
|
link<T>(): T;
|
|
7996
8040
|
link<T>(label: string): T;
|
|
@@ -8329,6 +8373,8 @@ declare module "amf-client-js" {
|
|
|
8329
8373
|
isLink: boolean;
|
|
8330
8374
|
linkLabel: StrField;
|
|
8331
8375
|
linkTarget: DomainElement | undefined;
|
|
8376
|
+
refSummary: StrField;
|
|
8377
|
+
refDescription: StrField;
|
|
8332
8378
|
position: Range;
|
|
8333
8379
|
|
|
8334
8380
|
annotations(): Annotations;
|
|
@@ -8355,6 +8401,8 @@ declare module "amf-client-js" {
|
|
|
8355
8401
|
isLink: boolean;
|
|
8356
8402
|
linkLabel: StrField;
|
|
8357
8403
|
linkTarget: DomainElement | undefined;
|
|
8404
|
+
refSummary: StrField;
|
|
8405
|
+
refDescription: StrField;
|
|
8358
8406
|
position: Range;
|
|
8359
8407
|
destinations: Array<SolaceOperationDestination>;
|
|
8360
8408
|
|
|
@@ -8383,6 +8431,8 @@ declare module "amf-client-js" {
|
|
|
8383
8431
|
isLink: boolean;
|
|
8384
8432
|
linkLabel: StrField;
|
|
8385
8433
|
linkTarget: DomainElement | undefined;
|
|
8434
|
+
refSummary: StrField;
|
|
8435
|
+
refDescription: StrField;
|
|
8386
8436
|
position: Range;
|
|
8387
8437
|
destinations: Array<SolaceOperationDestination020>;
|
|
8388
8438
|
|
|
@@ -8411,6 +8461,8 @@ declare module "amf-client-js" {
|
|
|
8411
8461
|
isLink: boolean;
|
|
8412
8462
|
linkLabel: StrField;
|
|
8413
8463
|
linkTarget: DomainElement | undefined;
|
|
8464
|
+
refSummary: StrField;
|
|
8465
|
+
refDescription: StrField;
|
|
8414
8466
|
position: Range;
|
|
8415
8467
|
destinations: Array<SolaceOperationDestination030>;
|
|
8416
8468
|
|
|
@@ -8439,6 +8491,8 @@ declare module "amf-client-js" {
|
|
|
8439
8491
|
isLink: boolean;
|
|
8440
8492
|
linkLabel: StrField;
|
|
8441
8493
|
linkTarget: DomainElement | undefined;
|
|
8494
|
+
refSummary: StrField;
|
|
8495
|
+
refDescription: StrField;
|
|
8442
8496
|
position: Range;
|
|
8443
8497
|
destinations: Array<SolaceOperationDestination040>;
|
|
8444
8498
|
timeToLive: IntField;
|
|
@@ -8846,6 +8900,9 @@ declare module "amf-client-js" {
|
|
|
8846
8900
|
static readonly PAYLOAD: Spec;
|
|
8847
8901
|
static readonly RAML08: Spec;
|
|
8848
8902
|
static readonly RAML10: Spec;
|
|
8903
|
+
static readonly MCP: Spec;
|
|
8904
|
+
static readonly AGENT_DOMAIN: Spec;
|
|
8905
|
+
static readonly AGENT_CARD: Spec;
|
|
8849
8906
|
|
|
8850
8907
|
static apply(name: string): Spec;
|
|
8851
8908
|
}
|
|
@@ -9295,6 +9352,7 @@ declare module "amf-client-js" {
|
|
|
9295
9352
|
description: StrField;
|
|
9296
9353
|
documentations: Array<CreativeWork>;
|
|
9297
9354
|
endPoints: Array<EndPoint>;
|
|
9355
|
+
webhooks: Array<EndPoint>;
|
|
9298
9356
|
extendsNode: Array<DomainElement>;
|
|
9299
9357
|
id: string;
|
|
9300
9358
|
identifier: StrField;
|
|
@@ -9310,6 +9368,7 @@ declare module "amf-client-js" {
|
|
|
9310
9368
|
termsOfService: StrField;
|
|
9311
9369
|
version: StrField;
|
|
9312
9370
|
defaultSchema: StrField;
|
|
9371
|
+
summary: StrField;
|
|
9313
9372
|
|
|
9314
9373
|
constructor();
|
|
9315
9374
|
|
|
@@ -9368,6 +9427,8 @@ declare module "amf-client-js" {
|
|
|
9368
9427
|
withVersion(version: string): this;
|
|
9369
9428
|
|
|
9370
9429
|
withDefaultSchema(schema: string): this;
|
|
9430
|
+
|
|
9431
|
+
withSummary(summary: string): this;
|
|
9371
9432
|
}
|
|
9372
9433
|
export class WebSocketsChannelBinding implements ChannelBinding {
|
|
9373
9434
|
customDomainProperties: Array<DomainExtension>;
|
|
@@ -9506,6 +9567,105 @@ declare module "amf-client-js" {
|
|
|
9506
9567
|
static isTypeOf(element: AmfObjectWrapper, typeIri: Array<String>): boolean;
|
|
9507
9568
|
}
|
|
9508
9569
|
|
|
9570
|
+
export class MCPConfiguration extends BaseMCPConfiguration {
|
|
9571
|
+
static MCP(): MCPConfiguration;
|
|
9572
|
+
|
|
9573
|
+
baseUnitClient(): MCPBaseUnitClient;
|
|
9574
|
+
}
|
|
9575
|
+
|
|
9576
|
+
export class BaseMCPConfiguration extends BaseShapesConfiguration {
|
|
9577
|
+
withDialect(dialect: Dialect): BaseMCPConfiguration;
|
|
9578
|
+
|
|
9579
|
+
withErrorHandlerProvider(
|
|
9580
|
+
provider: ErrorHandlerProvider
|
|
9581
|
+
): BaseMCPConfiguration;
|
|
9582
|
+
|
|
9583
|
+
withEventListener(listener: AMFEventListener): BaseMCPConfiguration;
|
|
9584
|
+
|
|
9585
|
+
withParsingOptions(parsingOptions: ParsingOptions): BaseMCPConfiguration;
|
|
9586
|
+
|
|
9587
|
+
withRenderOptions(renderOptions: RenderOptions): BaseMCPConfiguration;
|
|
9588
|
+
|
|
9589
|
+
withResourceLoader(rl: ResourceLoader): BaseMCPConfiguration;
|
|
9590
|
+
|
|
9591
|
+
withResourceLoaders(rl: Array<ResourceLoader>): BaseMCPConfiguration;
|
|
9592
|
+
|
|
9593
|
+
withTransformationPipeline(
|
|
9594
|
+
pipeline: TransformationPipeline
|
|
9595
|
+
): BaseMCPConfiguration;
|
|
9596
|
+
|
|
9597
|
+
withUnitCache(cache: UnitCache): BaseMCPConfiguration;
|
|
9598
|
+
}
|
|
9599
|
+
export class MCPBaseUnitClient extends AMLBaseUnitClient {
|
|
9600
|
+
syncValidate(baseUnit: BaseUnit): AMFValidationReport;
|
|
9601
|
+
}
|
|
9602
|
+
|
|
9603
|
+
export class AgentCardConfiguration extends BaseAgentCardConfiguration {
|
|
9604
|
+
static AgentCard(): AgentCardConfiguration;
|
|
9605
|
+
|
|
9606
|
+
baseUnitClient(): AgentCardBaseUnitClient;
|
|
9607
|
+
}
|
|
9608
|
+
|
|
9609
|
+
export class BaseAgentCardConfiguration extends BaseShapesConfiguration {
|
|
9610
|
+
withDialect(dialect: Dialect): BaseAgentCardConfiguration;
|
|
9611
|
+
|
|
9612
|
+
withErrorHandlerProvider(
|
|
9613
|
+
provider: ErrorHandlerProvider
|
|
9614
|
+
): BaseAgentCardConfiguration;
|
|
9615
|
+
|
|
9616
|
+
withEventListener(listener: AMFEventListener): BaseAgentCardConfiguration;
|
|
9617
|
+
|
|
9618
|
+
withParsingOptions(parsingOptions: ParsingOptions): BaseAgentCardConfiguration;
|
|
9619
|
+
|
|
9620
|
+
withRenderOptions(renderOptions: RenderOptions): BaseAgentCardConfiguration;
|
|
9621
|
+
|
|
9622
|
+
withResourceLoader(rl: ResourceLoader): BaseAgentCardConfiguration;
|
|
9623
|
+
|
|
9624
|
+
withResourceLoaders(rl: Array<ResourceLoader>): BaseAgentCardConfiguration;
|
|
9625
|
+
|
|
9626
|
+
withTransformationPipeline(
|
|
9627
|
+
pipeline: TransformationPipeline
|
|
9628
|
+
): BaseAgentCardConfiguration;
|
|
9629
|
+
|
|
9630
|
+
withUnitCache(cache: UnitCache): BaseAgentCardConfiguration;
|
|
9631
|
+
}
|
|
9632
|
+
export class AgentCardBaseUnitClient extends AMLBaseUnitClient {
|
|
9633
|
+
syncValidate(baseUnit: BaseUnit): AMFValidationReport;
|
|
9634
|
+
}
|
|
9635
|
+
|
|
9636
|
+
export class AgentDomainConfiguration extends BaseAgentDomainConfiguration {
|
|
9637
|
+
static AgentDomain(): AgentDomainConfiguration;
|
|
9638
|
+
|
|
9639
|
+
baseUnitClient(): AgentDomainBaseUnitClient;
|
|
9640
|
+
}
|
|
9641
|
+
|
|
9642
|
+
export class BaseAgentDomainConfiguration extends BaseShapesConfiguration {
|
|
9643
|
+
withDialect(dialect: Dialect): BaseAgentDomainConfiguration;
|
|
9644
|
+
|
|
9645
|
+
withErrorHandlerProvider(
|
|
9646
|
+
provider: ErrorHandlerProvider
|
|
9647
|
+
): BaseAgentDomainConfiguration;
|
|
9648
|
+
|
|
9649
|
+
withEventListener(listener: AMFEventListener): BaseAgentDomainConfiguration;
|
|
9650
|
+
|
|
9651
|
+
withParsingOptions(parsingOptions: ParsingOptions): BaseAgentDomainConfiguration;
|
|
9652
|
+
|
|
9653
|
+
withRenderOptions(renderOptions: RenderOptions): BaseAgentDomainConfiguration;
|
|
9654
|
+
|
|
9655
|
+
withResourceLoader(rl: ResourceLoader): BaseAgentDomainConfiguration;
|
|
9656
|
+
|
|
9657
|
+
withResourceLoaders(rl: Array<ResourceLoader>): BaseAgentDomainConfiguration;
|
|
9658
|
+
|
|
9659
|
+
withTransformationPipeline(
|
|
9660
|
+
pipeline: TransformationPipeline
|
|
9661
|
+
): BaseAgentDomainConfiguration;
|
|
9662
|
+
|
|
9663
|
+
withUnitCache(cache: UnitCache): BaseAgentDomainConfiguration;
|
|
9664
|
+
}
|
|
9665
|
+
export class AgentDomainBaseUnitClient extends AMLBaseUnitClient {
|
|
9666
|
+
syncValidate(baseUnit: BaseUnit): AMFValidationReport;
|
|
9667
|
+
}
|
|
9668
|
+
|
|
9509
9669
|
namespace org {
|
|
9510
9670
|
namespace mulesoft {
|
|
9511
9671
|
namespace common {
|