@eco-foundation/api-schemas 0.12.0 → 0.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 +98 -13
- package/dist/fixtures/v1/routes-list.response.default.json +36 -9
- package/dist/generated/build-digest.json +1 -1
- package/dist/v1/endpoints/registry.d.ts +32 -9
- package/dist/v1/endpoints/registry.js +3 -1
- package/dist/v1/endpoints/registry.js.map +1 -1
- package/dist/v1/endpoints/routes.d.ts +106 -16
- package/dist/v1/endpoints/routes.js +34 -8
- package/dist/v1/endpoints/routes.js.map +1 -1
- package/dist/v1/errors/catalog.d.ts +7 -0
- package/dist/v1/errors/catalog.js +1 -0
- package/dist/v1/errors/catalog.js.map +1 -1
- package/dist/v1/index.d.ts +1 -0
- package/dist/v1/index.js +1 -0
- package/dist/v1/index.js.map +1 -1
- package/dist/v1/maintenance/schema.d.ts +30 -0
- package/dist/v1/maintenance/schema.js +65 -0
- package/dist/v1/maintenance/schema.js.map +1 -0
- package/errors/catalog.lock.json +5 -0
- package/fixtures/maintenance-boundaries.json +405 -0
- package/openapi/v1.json +198 -62
- package/package.json +2 -2
package/openapi/v1.json
CHANGED
|
@@ -5367,11 +5367,43 @@
|
|
|
5367
5367
|
"/v1/routes": {
|
|
5368
5368
|
"get": {
|
|
5369
5369
|
"operationId": "routes.list",
|
|
5370
|
-
"summary": "
|
|
5370
|
+
"summary": "Chain pairs the caller can quote: token pairs served directly, with order-size limits, and any-asset flags for the rest (DRAFT).",
|
|
5371
5371
|
"tags": [
|
|
5372
5372
|
"discovery"
|
|
5373
5373
|
],
|
|
5374
5374
|
"x-stability": "draft",
|
|
5375
|
+
"parameters": [
|
|
5376
|
+
{
|
|
5377
|
+
"name": "sourceChainId",
|
|
5378
|
+
"in": "query",
|
|
5379
|
+
"required": false,
|
|
5380
|
+
"schema": {
|
|
5381
|
+
"type": "integer",
|
|
5382
|
+
"exclusiveMinimum": 0,
|
|
5383
|
+
"maximum": 9007199254740991
|
|
5384
|
+
}
|
|
5385
|
+
},
|
|
5386
|
+
{
|
|
5387
|
+
"name": "destinationChainId",
|
|
5388
|
+
"in": "query",
|
|
5389
|
+
"required": false,
|
|
5390
|
+
"schema": {
|
|
5391
|
+
"type": "integer",
|
|
5392
|
+
"exclusiveMinimum": 0,
|
|
5393
|
+
"maximum": 9007199254740991
|
|
5394
|
+
}
|
|
5395
|
+
},
|
|
5396
|
+
{
|
|
5397
|
+
"name": "cursor",
|
|
5398
|
+
"in": "query",
|
|
5399
|
+
"required": false,
|
|
5400
|
+
"schema": {
|
|
5401
|
+
"type": "string",
|
|
5402
|
+
"minLength": 1,
|
|
5403
|
+
"maxLength": 512
|
|
5404
|
+
}
|
|
5405
|
+
}
|
|
5406
|
+
],
|
|
5375
5407
|
"responses": {
|
|
5376
5408
|
"200": {
|
|
5377
5409
|
"description": "Success",
|
|
@@ -5392,35 +5424,10 @@
|
|
|
5392
5424
|
"type": "integer",
|
|
5393
5425
|
"exclusiveMinimum": 0,
|
|
5394
5426
|
"maximum": 9007199254740991
|
|
5395
|
-
},
|
|
5396
|
-
"token": {
|
|
5397
|
-
"anyOf": [
|
|
5398
|
-
{
|
|
5399
|
-
"type": "string",
|
|
5400
|
-
"pattern": "^0x[0-9a-fA-F]{40}$"
|
|
5401
|
-
},
|
|
5402
|
-
{
|
|
5403
|
-
"anyOf": [
|
|
5404
|
-
{
|
|
5405
|
-
"type": "string",
|
|
5406
|
-
"pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
|
|
5407
|
-
},
|
|
5408
|
-
{
|
|
5409
|
-
"type": "string",
|
|
5410
|
-
"pattern": "^0x41[0-9a-fA-F]{40}$"
|
|
5411
|
-
}
|
|
5412
|
-
]
|
|
5413
|
-
},
|
|
5414
|
-
{
|
|
5415
|
-
"type": "string",
|
|
5416
|
-
"pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
|
|
5417
|
-
}
|
|
5418
|
-
]
|
|
5419
5427
|
}
|
|
5420
5428
|
},
|
|
5421
5429
|
"required": [
|
|
5422
|
-
"chainId"
|
|
5423
|
-
"token"
|
|
5430
|
+
"chainId"
|
|
5424
5431
|
]
|
|
5425
5432
|
},
|
|
5426
5433
|
"destination": {
|
|
@@ -5430,61 +5437,181 @@
|
|
|
5430
5437
|
"type": "integer",
|
|
5431
5438
|
"exclusiveMinimum": 0,
|
|
5432
5439
|
"maximum": 9007199254740991
|
|
5433
|
-
},
|
|
5434
|
-
"token": {
|
|
5435
|
-
"anyOf": [
|
|
5436
|
-
{
|
|
5437
|
-
"type": "string",
|
|
5438
|
-
"pattern": "^0x[0-9a-fA-F]{40}$"
|
|
5439
|
-
},
|
|
5440
|
-
{
|
|
5441
|
-
"anyOf": [
|
|
5442
|
-
{
|
|
5443
|
-
"type": "string",
|
|
5444
|
-
"pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
|
|
5445
|
-
},
|
|
5446
|
-
{
|
|
5447
|
-
"type": "string",
|
|
5448
|
-
"pattern": "^0x41[0-9a-fA-F]{40}$"
|
|
5449
|
-
}
|
|
5450
|
-
]
|
|
5451
|
-
},
|
|
5452
|
-
{
|
|
5453
|
-
"type": "string",
|
|
5454
|
-
"pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
|
|
5455
|
-
}
|
|
5456
|
-
]
|
|
5457
5440
|
}
|
|
5458
5441
|
},
|
|
5459
5442
|
"required": [
|
|
5460
|
-
"chainId"
|
|
5461
|
-
"token"
|
|
5443
|
+
"chainId"
|
|
5462
5444
|
]
|
|
5463
5445
|
},
|
|
5464
|
-
"
|
|
5446
|
+
"pairs": {
|
|
5465
5447
|
"type": "array",
|
|
5466
5448
|
"items": {
|
|
5467
|
-
"type": "
|
|
5468
|
-
"
|
|
5469
|
-
"
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
"
|
|
5449
|
+
"type": "object",
|
|
5450
|
+
"properties": {
|
|
5451
|
+
"baseline": {
|
|
5452
|
+
"type": "boolean"
|
|
5453
|
+
},
|
|
5454
|
+
"source": {
|
|
5455
|
+
"type": "object",
|
|
5456
|
+
"properties": {
|
|
5457
|
+
"token": {
|
|
5458
|
+
"anyOf": [
|
|
5459
|
+
{
|
|
5460
|
+
"type": "string",
|
|
5461
|
+
"pattern": "^0x[0-9a-fA-F]{40}$"
|
|
5462
|
+
},
|
|
5463
|
+
{
|
|
5464
|
+
"anyOf": [
|
|
5465
|
+
{
|
|
5466
|
+
"type": "string",
|
|
5467
|
+
"pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
|
|
5468
|
+
},
|
|
5469
|
+
{
|
|
5470
|
+
"type": "string",
|
|
5471
|
+
"pattern": "^0x41[0-9a-fA-F]{40}$"
|
|
5472
|
+
}
|
|
5473
|
+
]
|
|
5474
|
+
},
|
|
5475
|
+
{
|
|
5476
|
+
"type": "string",
|
|
5477
|
+
"pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
|
|
5478
|
+
}
|
|
5479
|
+
]
|
|
5480
|
+
},
|
|
5481
|
+
"symbol": {
|
|
5482
|
+
"type": "string",
|
|
5483
|
+
"minLength": 1
|
|
5484
|
+
},
|
|
5485
|
+
"decimals": {
|
|
5486
|
+
"type": "integer",
|
|
5487
|
+
"minimum": 0,
|
|
5488
|
+
"maximum": 255
|
|
5489
|
+
},
|
|
5490
|
+
"limits": {
|
|
5491
|
+
"type": "object",
|
|
5492
|
+
"properties": {
|
|
5493
|
+
"min": {
|
|
5494
|
+
"type": "string",
|
|
5495
|
+
"maxLength": 78,
|
|
5496
|
+
"pattern": "^(0|[1-9]\\d*)$"
|
|
5497
|
+
},
|
|
5498
|
+
"max": {
|
|
5499
|
+
"type": "string",
|
|
5500
|
+
"maxLength": 78,
|
|
5501
|
+
"pattern": "^(0|[1-9]\\d*)$"
|
|
5502
|
+
}
|
|
5503
|
+
}
|
|
5504
|
+
}
|
|
5505
|
+
},
|
|
5506
|
+
"required": [
|
|
5507
|
+
"token",
|
|
5508
|
+
"symbol",
|
|
5509
|
+
"decimals",
|
|
5510
|
+
"limits"
|
|
5511
|
+
]
|
|
5512
|
+
},
|
|
5513
|
+
"destination": {
|
|
5514
|
+
"type": "object",
|
|
5515
|
+
"properties": {
|
|
5516
|
+
"token": {
|
|
5517
|
+
"anyOf": [
|
|
5518
|
+
{
|
|
5519
|
+
"type": "string",
|
|
5520
|
+
"pattern": "^0x[0-9a-fA-F]{40}$"
|
|
5521
|
+
},
|
|
5522
|
+
{
|
|
5523
|
+
"anyOf": [
|
|
5524
|
+
{
|
|
5525
|
+
"type": "string",
|
|
5526
|
+
"pattern": "^T[1-9A-HJ-NP-Za-km-z]{33}$"
|
|
5527
|
+
},
|
|
5528
|
+
{
|
|
5529
|
+
"type": "string",
|
|
5530
|
+
"pattern": "^0x41[0-9a-fA-F]{40}$"
|
|
5531
|
+
}
|
|
5532
|
+
]
|
|
5533
|
+
},
|
|
5534
|
+
{
|
|
5535
|
+
"type": "string",
|
|
5536
|
+
"pattern": "^[1-9A-HJ-NP-Za-km-z]{32,44}$"
|
|
5537
|
+
}
|
|
5538
|
+
]
|
|
5539
|
+
},
|
|
5540
|
+
"symbol": {
|
|
5541
|
+
"type": "string",
|
|
5542
|
+
"minLength": 1
|
|
5543
|
+
},
|
|
5544
|
+
"decimals": {
|
|
5545
|
+
"type": "integer",
|
|
5546
|
+
"minimum": 0,
|
|
5547
|
+
"maximum": 255
|
|
5548
|
+
},
|
|
5549
|
+
"limits": {
|
|
5550
|
+
"type": "object",
|
|
5551
|
+
"properties": {
|
|
5552
|
+
"min": {
|
|
5553
|
+
"type": "string",
|
|
5554
|
+
"maxLength": 78,
|
|
5555
|
+
"pattern": "^(0|[1-9]\\d*)$"
|
|
5556
|
+
},
|
|
5557
|
+
"max": {
|
|
5558
|
+
"type": "string",
|
|
5559
|
+
"maxLength": 78,
|
|
5560
|
+
"pattern": "^(0|[1-9]\\d*)$"
|
|
5561
|
+
}
|
|
5562
|
+
}
|
|
5563
|
+
}
|
|
5564
|
+
},
|
|
5565
|
+
"required": [
|
|
5566
|
+
"token",
|
|
5567
|
+
"symbol",
|
|
5568
|
+
"decimals",
|
|
5569
|
+
"limits"
|
|
5570
|
+
]
|
|
5571
|
+
}
|
|
5572
|
+
},
|
|
5573
|
+
"required": [
|
|
5574
|
+
"baseline",
|
|
5575
|
+
"source",
|
|
5576
|
+
"destination"
|
|
5473
5577
|
]
|
|
5474
5578
|
}
|
|
5579
|
+
},
|
|
5580
|
+
"anyAsset": {
|
|
5581
|
+
"type": "object",
|
|
5582
|
+
"properties": {
|
|
5583
|
+
"source": {
|
|
5584
|
+
"type": "boolean"
|
|
5585
|
+
},
|
|
5586
|
+
"destination": {
|
|
5587
|
+
"type": "boolean"
|
|
5588
|
+
}
|
|
5589
|
+
},
|
|
5590
|
+
"required": [
|
|
5591
|
+
"source",
|
|
5592
|
+
"destination"
|
|
5593
|
+
]
|
|
5475
5594
|
}
|
|
5476
5595
|
},
|
|
5477
5596
|
"required": [
|
|
5478
5597
|
"source",
|
|
5479
5598
|
"destination",
|
|
5480
|
-
"
|
|
5599
|
+
"pairs",
|
|
5600
|
+
"anyAsset"
|
|
5481
5601
|
]
|
|
5482
5602
|
}
|
|
5483
5603
|
},
|
|
5604
|
+
"updatedAt": {
|
|
5605
|
+
"type": "integer",
|
|
5606
|
+
"minimum": 0,
|
|
5607
|
+
"maximum": 4102444800
|
|
5608
|
+
},
|
|
5484
5609
|
"nextCursor": {
|
|
5485
5610
|
"anyOf": [
|
|
5486
5611
|
{
|
|
5487
|
-
"type": "string"
|
|
5612
|
+
"type": "string",
|
|
5613
|
+
"minLength": 1,
|
|
5614
|
+
"maxLength": 512
|
|
5488
5615
|
},
|
|
5489
5616
|
{
|
|
5490
5617
|
"type": "null"
|
|
@@ -5494,6 +5621,7 @@
|
|
|
5494
5621
|
},
|
|
5495
5622
|
"required": [
|
|
5496
5623
|
"routes",
|
|
5624
|
+
"updatedAt",
|
|
5497
5625
|
"nextCursor"
|
|
5498
5626
|
]
|
|
5499
5627
|
}
|
|
@@ -6465,6 +6593,14 @@
|
|
|
6465
6593
|
"type": "https://api.eco.com/v1/errors/service-unavailable",
|
|
6466
6594
|
"audience": "all",
|
|
6467
6595
|
"legacyCodes": []
|
|
6596
|
+
},
|
|
6597
|
+
{
|
|
6598
|
+
"code": "maintenance",
|
|
6599
|
+
"status": 503,
|
|
6600
|
+
"title": "Scheduled maintenance: new quotes and deposit addresses are paused until the window ends",
|
|
6601
|
+
"type": "https://api.eco.com/v1/errors/maintenance",
|
|
6602
|
+
"audience": "all",
|
|
6603
|
+
"legacyCodes": []
|
|
6468
6604
|
}
|
|
6469
6605
|
]
|
|
6470
6606
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eco-foundation/api-schemas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Zod-first schemas, error catalog, golden fixtures, and generated OpenAPI 3.1 for the Eco /v1 API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@scure/base": "^1.2.6"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"zod": "^4.
|
|
66
|
+
"zod": "^4.4.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependenciesMeta": {
|
|
69
69
|
"zod": {
|