@epilot/cli 0.1.111 → 0.1.113
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 +1 -1
- package/definitions/configuration-hub.json +1064 -48
- package/definitions/integration-toolkit.json +379 -1
- package/definitions/message.json +481 -1
- package/dist/bin/epilot.js +6 -6
- package/dist/{chunk-QGAMGDQ5.js → chunk-PKLYEJHD.js} +20 -4
- package/dist/{completion-OMS4BH5U.js → completion-YY2UW6SA.js} +1 -1
- package/dist/{upgrade-4R4YZQLX.js → upgrade-KXJE4GVJ.js} +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.0.3",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Integration Toolkit API",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.17.0",
|
|
6
6
|
"description": "API for integrating with external systems in a standardised way."
|
|
7
7
|
},
|
|
8
8
|
"tags": [
|
|
@@ -1628,6 +1628,239 @@
|
|
|
1628
1628
|
}
|
|
1629
1629
|
}
|
|
1630
1630
|
},
|
|
1631
|
+
"/v1/integrations/{integrationId}/documentation": {
|
|
1632
|
+
"get": {
|
|
1633
|
+
"operationId": "listDocumentationPages",
|
|
1634
|
+
"summary": "listDocumentationPages",
|
|
1635
|
+
"description": "Retrieve all documentation pages of an integration, without their markdown content.\nAn integration has at most one general page plus at most one page per use case.\nThe page id is 'general' for the integration-wide page, otherwise the use case ID.\n",
|
|
1636
|
+
"tags": [
|
|
1637
|
+
"integrations"
|
|
1638
|
+
],
|
|
1639
|
+
"parameters": [
|
|
1640
|
+
{
|
|
1641
|
+
"name": "integrationId",
|
|
1642
|
+
"in": "path",
|
|
1643
|
+
"required": true,
|
|
1644
|
+
"description": "The integration ID",
|
|
1645
|
+
"schema": {
|
|
1646
|
+
"type": "string",
|
|
1647
|
+
"format": "uuid"
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
],
|
|
1651
|
+
"responses": {
|
|
1652
|
+
"200": {
|
|
1653
|
+
"description": "Successfully retrieved documentation pages",
|
|
1654
|
+
"content": {
|
|
1655
|
+
"application/json": {
|
|
1656
|
+
"schema": {
|
|
1657
|
+
"type": "object",
|
|
1658
|
+
"required": [
|
|
1659
|
+
"pages"
|
|
1660
|
+
],
|
|
1661
|
+
"properties": {
|
|
1662
|
+
"pages": {
|
|
1663
|
+
"type": "array",
|
|
1664
|
+
"items": {
|
|
1665
|
+
"$ref": "#/components/schemas/DocumentationPageSummary"
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
},
|
|
1673
|
+
"401": {
|
|
1674
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
1675
|
+
},
|
|
1676
|
+
"404": {
|
|
1677
|
+
"description": "Integration not found"
|
|
1678
|
+
},
|
|
1679
|
+
"500": {
|
|
1680
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
},
|
|
1685
|
+
"/v1/integrations/{integrationId}/documentation/{docId}": {
|
|
1686
|
+
"get": {
|
|
1687
|
+
"operationId": "getDocumentationPage",
|
|
1688
|
+
"summary": "getDocumentationPage",
|
|
1689
|
+
"description": "Retrieve a single documentation page including its markdown content",
|
|
1690
|
+
"tags": [
|
|
1691
|
+
"integrations"
|
|
1692
|
+
],
|
|
1693
|
+
"parameters": [
|
|
1694
|
+
{
|
|
1695
|
+
"name": "integrationId",
|
|
1696
|
+
"in": "path",
|
|
1697
|
+
"required": true,
|
|
1698
|
+
"description": "The integration ID",
|
|
1699
|
+
"schema": {
|
|
1700
|
+
"type": "string",
|
|
1701
|
+
"format": "uuid"
|
|
1702
|
+
}
|
|
1703
|
+
},
|
|
1704
|
+
{
|
|
1705
|
+
"name": "docId",
|
|
1706
|
+
"in": "path",
|
|
1707
|
+
"required": true,
|
|
1708
|
+
"description": "'general' for the integration-wide page, otherwise a use case ID",
|
|
1709
|
+
"schema": {
|
|
1710
|
+
"type": "string",
|
|
1711
|
+
"pattern": "^(general|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
],
|
|
1715
|
+
"responses": {
|
|
1716
|
+
"200": {
|
|
1717
|
+
"description": "Successfully retrieved documentation page",
|
|
1718
|
+
"content": {
|
|
1719
|
+
"application/json": {
|
|
1720
|
+
"schema": {
|
|
1721
|
+
"$ref": "#/components/schemas/DocumentationPage"
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
},
|
|
1726
|
+
"401": {
|
|
1727
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
1728
|
+
},
|
|
1729
|
+
"404": {
|
|
1730
|
+
"description": "Documentation page not found"
|
|
1731
|
+
},
|
|
1732
|
+
"500": {
|
|
1733
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
},
|
|
1737
|
+
"put": {
|
|
1738
|
+
"operationId": "upsertDocumentationPage",
|
|
1739
|
+
"summary": "upsertDocumentationPage",
|
|
1740
|
+
"description": "Create or update the documentation page identified by docId.\nUpsert semantics enforce the invariant of one general page per\nintegration and one page per use case. For use case pages the\nuse case must exist.\n",
|
|
1741
|
+
"tags": [
|
|
1742
|
+
"integrations"
|
|
1743
|
+
],
|
|
1744
|
+
"parameters": [
|
|
1745
|
+
{
|
|
1746
|
+
"name": "integrationId",
|
|
1747
|
+
"in": "path",
|
|
1748
|
+
"required": true,
|
|
1749
|
+
"description": "The integration ID",
|
|
1750
|
+
"schema": {
|
|
1751
|
+
"type": "string",
|
|
1752
|
+
"format": "uuid"
|
|
1753
|
+
}
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
"name": "docId",
|
|
1757
|
+
"in": "path",
|
|
1758
|
+
"required": true,
|
|
1759
|
+
"description": "'general' for the integration-wide page, otherwise a use case ID",
|
|
1760
|
+
"schema": {
|
|
1761
|
+
"type": "string",
|
|
1762
|
+
"pattern": "^(general|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
|
|
1763
|
+
}
|
|
1764
|
+
}
|
|
1765
|
+
],
|
|
1766
|
+
"requestBody": {
|
|
1767
|
+
"required": true,
|
|
1768
|
+
"content": {
|
|
1769
|
+
"application/json": {
|
|
1770
|
+
"schema": {
|
|
1771
|
+
"$ref": "#/components/schemas/UpsertDocumentationPageRequest"
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
}
|
|
1775
|
+
},
|
|
1776
|
+
"responses": {
|
|
1777
|
+
"200": {
|
|
1778
|
+
"description": "Documentation page created or updated successfully",
|
|
1779
|
+
"content": {
|
|
1780
|
+
"application/json": {
|
|
1781
|
+
"schema": {
|
|
1782
|
+
"$ref": "#/components/schemas/DocumentationPage"
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
},
|
|
1787
|
+
"400": {
|
|
1788
|
+
"$ref": "#/components/responses/BadRequest"
|
|
1789
|
+
},
|
|
1790
|
+
"401": {
|
|
1791
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
1792
|
+
},
|
|
1793
|
+
"403": {
|
|
1794
|
+
"$ref": "#/components/responses/Forbidden"
|
|
1795
|
+
},
|
|
1796
|
+
"404": {
|
|
1797
|
+
"description": "Integration or use case not found"
|
|
1798
|
+
},
|
|
1799
|
+
"500": {
|
|
1800
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
},
|
|
1804
|
+
"delete": {
|
|
1805
|
+
"operationId": "deleteDocumentationPage",
|
|
1806
|
+
"summary": "deleteDocumentationPage",
|
|
1807
|
+
"description": "Delete a documentation page",
|
|
1808
|
+
"tags": [
|
|
1809
|
+
"integrations"
|
|
1810
|
+
],
|
|
1811
|
+
"parameters": [
|
|
1812
|
+
{
|
|
1813
|
+
"name": "integrationId",
|
|
1814
|
+
"in": "path",
|
|
1815
|
+
"required": true,
|
|
1816
|
+
"description": "The integration ID",
|
|
1817
|
+
"schema": {
|
|
1818
|
+
"type": "string",
|
|
1819
|
+
"format": "uuid"
|
|
1820
|
+
}
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
"name": "docId",
|
|
1824
|
+
"in": "path",
|
|
1825
|
+
"required": true,
|
|
1826
|
+
"description": "'general' for the integration-wide page, otherwise a use case ID",
|
|
1827
|
+
"schema": {
|
|
1828
|
+
"type": "string",
|
|
1829
|
+
"pattern": "^(general|[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
],
|
|
1833
|
+
"responses": {
|
|
1834
|
+
"200": {
|
|
1835
|
+
"description": "Documentation page deleted successfully",
|
|
1836
|
+
"content": {
|
|
1837
|
+
"application/json": {
|
|
1838
|
+
"schema": {
|
|
1839
|
+
"type": "object",
|
|
1840
|
+
"properties": {
|
|
1841
|
+
"message": {
|
|
1842
|
+
"type": "string"
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
},
|
|
1849
|
+
"401": {
|
|
1850
|
+
"$ref": "#/components/responses/Unauthorized"
|
|
1851
|
+
},
|
|
1852
|
+
"403": {
|
|
1853
|
+
"$ref": "#/components/responses/Forbidden"
|
|
1854
|
+
},
|
|
1855
|
+
"404": {
|
|
1856
|
+
"description": "Documentation page not found"
|
|
1857
|
+
},
|
|
1858
|
+
"500": {
|
|
1859
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
}
|
|
1863
|
+
},
|
|
1631
1864
|
"/v2/integrations": {
|
|
1632
1865
|
"get": {
|
|
1633
1866
|
"operationId": "listIntegrationsV2",
|
|
@@ -3879,6 +4112,38 @@
|
|
|
3879
4112
|
"$ref": "#/components/responses/InternalServerError"
|
|
3880
4113
|
}
|
|
3881
4114
|
}
|
|
4115
|
+
},
|
|
4116
|
+
"delete": {
|
|
4117
|
+
"operationId": "deleteErpImport",
|
|
4118
|
+
"summary": "deleteErpImport",
|
|
4119
|
+
"description": "Remove an import and the file it owns. Allowed from any status: an import whose run is still in flight is stopped by the deletion, and rows it already wrote stay written.",
|
|
4120
|
+
"tags": [
|
|
4121
|
+
"erp-imports"
|
|
4122
|
+
],
|
|
4123
|
+
"parameters": [
|
|
4124
|
+
{
|
|
4125
|
+
"name": "importId",
|
|
4126
|
+
"in": "path",
|
|
4127
|
+
"required": true,
|
|
4128
|
+
"schema": {
|
|
4129
|
+
"type": "string"
|
|
4130
|
+
}
|
|
4131
|
+
}
|
|
4132
|
+
],
|
|
4133
|
+
"responses": {
|
|
4134
|
+
"204": {
|
|
4135
|
+
"description": "The import and its file were removed"
|
|
4136
|
+
},
|
|
4137
|
+
"403": {
|
|
4138
|
+
"$ref": "#/components/responses/Forbidden"
|
|
4139
|
+
},
|
|
4140
|
+
"404": {
|
|
4141
|
+
"$ref": "#/components/responses/NotFound"
|
|
4142
|
+
},
|
|
4143
|
+
"500": {
|
|
4144
|
+
"$ref": "#/components/responses/InternalServerError"
|
|
4145
|
+
}
|
|
4146
|
+
}
|
|
3882
4147
|
}
|
|
3883
4148
|
},
|
|
3884
4149
|
"/v2/erp/imports/{importId}:validate": {
|
|
@@ -4451,6 +4716,15 @@
|
|
|
4451
4716
|
"s3_input_ref": {
|
|
4452
4717
|
"$ref": "#/components/schemas/S3Reference"
|
|
4453
4718
|
},
|
|
4719
|
+
"size_bytes": {
|
|
4720
|
+
"type": "integer",
|
|
4721
|
+
"format": "int64",
|
|
4722
|
+
"description": "Size of the uploaded file, recorded at registration. Present on every job registered from version 1.17.0 onwards; absent on older rows, which were written before it was captured."
|
|
4723
|
+
},
|
|
4724
|
+
"column_count": {
|
|
4725
|
+
"type": "integer",
|
|
4726
|
+
"description": "How many effective columns the file's header yielded — the length of the `preview.columns` returned at registration, kept so a job loaded later can still describe its file. The preview ROWS are deliberately not stored: they are a sample for the person about to choose a mapping, not job state. Present on every job registered from version 1.17.0 onwards."
|
|
4727
|
+
},
|
|
4454
4728
|
"validation": {
|
|
4455
4729
|
"$ref": "#/components/schemas/ErpImportValidation"
|
|
4456
4730
|
},
|
|
@@ -11029,6 +11303,110 @@
|
|
|
11029
11303
|
}
|
|
11030
11304
|
}
|
|
11031
11305
|
}
|
|
11306
|
+
},
|
|
11307
|
+
"DocumentationPageSummary": {
|
|
11308
|
+
"type": "object",
|
|
11309
|
+
"description": "Documentation page metadata without the markdown content",
|
|
11310
|
+
"required": [
|
|
11311
|
+
"id",
|
|
11312
|
+
"integration_id",
|
|
11313
|
+
"scope",
|
|
11314
|
+
"title",
|
|
11315
|
+
"created_at",
|
|
11316
|
+
"updated_at"
|
|
11317
|
+
],
|
|
11318
|
+
"properties": {
|
|
11319
|
+
"id": {
|
|
11320
|
+
"type": "string",
|
|
11321
|
+
"description": "'general' for the integration-wide page, otherwise the use case ID",
|
|
11322
|
+
"example": "general"
|
|
11323
|
+
},
|
|
11324
|
+
"integration_id": {
|
|
11325
|
+
"type": "string",
|
|
11326
|
+
"format": "uuid",
|
|
11327
|
+
"readOnly": true
|
|
11328
|
+
},
|
|
11329
|
+
"scope": {
|
|
11330
|
+
"type": "string",
|
|
11331
|
+
"enum": [
|
|
11332
|
+
"integration",
|
|
11333
|
+
"use_case"
|
|
11334
|
+
],
|
|
11335
|
+
"description": "Whether the page documents the whole integration or a single use case"
|
|
11336
|
+
},
|
|
11337
|
+
"use_case_id": {
|
|
11338
|
+
"type": "string",
|
|
11339
|
+
"format": "uuid",
|
|
11340
|
+
"description": "The linked use case. Only set when scope is use_case."
|
|
11341
|
+
},
|
|
11342
|
+
"title": {
|
|
11343
|
+
"type": "string",
|
|
11344
|
+
"minLength": 1,
|
|
11345
|
+
"maxLength": 150
|
|
11346
|
+
},
|
|
11347
|
+
"created_at": {
|
|
11348
|
+
"type": "string",
|
|
11349
|
+
"format": "date-time",
|
|
11350
|
+
"readOnly": true
|
|
11351
|
+
},
|
|
11352
|
+
"created_by": {
|
|
11353
|
+
"type": "string",
|
|
11354
|
+
"nullable": true,
|
|
11355
|
+
"description": "User ID that created the page",
|
|
11356
|
+
"readOnly": true
|
|
11357
|
+
},
|
|
11358
|
+
"updated_at": {
|
|
11359
|
+
"type": "string",
|
|
11360
|
+
"format": "date-time",
|
|
11361
|
+
"readOnly": true
|
|
11362
|
+
},
|
|
11363
|
+
"updated_by": {
|
|
11364
|
+
"type": "string",
|
|
11365
|
+
"nullable": true,
|
|
11366
|
+
"description": "User ID of the last edit",
|
|
11367
|
+
"readOnly": true
|
|
11368
|
+
}
|
|
11369
|
+
}
|
|
11370
|
+
},
|
|
11371
|
+
"DocumentationPage": {
|
|
11372
|
+
"description": "A markdown documentation page of an integration",
|
|
11373
|
+
"allOf": [
|
|
11374
|
+
{
|
|
11375
|
+
"$ref": "#/components/schemas/DocumentationPageSummary"
|
|
11376
|
+
},
|
|
11377
|
+
{
|
|
11378
|
+
"type": "object",
|
|
11379
|
+
"required": [
|
|
11380
|
+
"content"
|
|
11381
|
+
],
|
|
11382
|
+
"properties": {
|
|
11383
|
+
"content": {
|
|
11384
|
+
"type": "string",
|
|
11385
|
+
"maxLength": 100000,
|
|
11386
|
+
"description": "Markdown source of the page"
|
|
11387
|
+
}
|
|
11388
|
+
}
|
|
11389
|
+
}
|
|
11390
|
+
]
|
|
11391
|
+
},
|
|
11392
|
+
"UpsertDocumentationPageRequest": {
|
|
11393
|
+
"type": "object",
|
|
11394
|
+
"required": [
|
|
11395
|
+
"title",
|
|
11396
|
+
"content"
|
|
11397
|
+
],
|
|
11398
|
+
"properties": {
|
|
11399
|
+
"title": {
|
|
11400
|
+
"type": "string",
|
|
11401
|
+
"minLength": 1,
|
|
11402
|
+
"maxLength": 150
|
|
11403
|
+
},
|
|
11404
|
+
"content": {
|
|
11405
|
+
"type": "string",
|
|
11406
|
+
"maxLength": 100000,
|
|
11407
|
+
"description": "Markdown source of the page"
|
|
11408
|
+
}
|
|
11409
|
+
}
|
|
11032
11410
|
}
|
|
11033
11411
|
},
|
|
11034
11412
|
"responses": {
|