@snokam/mcp-api 2.15.1 → 2.16.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/package.json +1 -1
- package/specs/production/sales.json +177 -0
- package/specs/test/sales.json +177 -0
package/package.json
CHANGED
|
@@ -1565,6 +1565,79 @@
|
|
|
1565
1565
|
]
|
|
1566
1566
|
}
|
|
1567
1567
|
},
|
|
1568
|
+
"/v1.0/salesforce/refresh": {
|
|
1569
|
+
"post": {
|
|
1570
|
+
"tags": [
|
|
1571
|
+
"Salesforce"
|
|
1572
|
+
],
|
|
1573
|
+
"summary": "Batch-refresh the cached Salesforce state on every linked Snøkam tender.",
|
|
1574
|
+
"operationId": "RefreshAllSalesforceLinks",
|
|
1575
|
+
"responses": {
|
|
1576
|
+
"200": {
|
|
1577
|
+
"description": "Payload of SalesforceRefreshResult",
|
|
1578
|
+
"content": {
|
|
1579
|
+
"application/json": {
|
|
1580
|
+
"schema": {
|
|
1581
|
+
"$ref": "#/components/schemas/salesforceRefreshResult"
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
},
|
|
1587
|
+
"security": [
|
|
1588
|
+
{
|
|
1589
|
+
"Implicit": [
|
|
1590
|
+
"api://7e877854-e62d-4637-a655-1da7141f7ac9/.default"
|
|
1591
|
+
]
|
|
1592
|
+
}
|
|
1593
|
+
]
|
|
1594
|
+
}
|
|
1595
|
+
},
|
|
1596
|
+
"/v1.0/salesforce/opportunities/{sfId}/import": {
|
|
1597
|
+
"post": {
|
|
1598
|
+
"tags": [
|
|
1599
|
+
"Salesforce"
|
|
1600
|
+
],
|
|
1601
|
+
"summary": "Create a Snøkam tender stub from an existing Salesforce Opportunity.",
|
|
1602
|
+
"operationId": "ImportSalesforceOpportunity",
|
|
1603
|
+
"parameters": [
|
|
1604
|
+
{
|
|
1605
|
+
"name": "sfId",
|
|
1606
|
+
"in": "path",
|
|
1607
|
+
"required": true,
|
|
1608
|
+
"schema": {
|
|
1609
|
+
"type": "string"
|
|
1610
|
+
},
|
|
1611
|
+
"x-ms-summary": "Salesforce Opportunity Id."
|
|
1612
|
+
}
|
|
1613
|
+
],
|
|
1614
|
+
"responses": {
|
|
1615
|
+
"200": {
|
|
1616
|
+
"description": "Payload of Tender",
|
|
1617
|
+
"content": {
|
|
1618
|
+
"application/json": {
|
|
1619
|
+
"schema": {
|
|
1620
|
+
"$ref": "#/components/schemas/tender"
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
},
|
|
1625
|
+
"404": {
|
|
1626
|
+
"description": "No description"
|
|
1627
|
+
},
|
|
1628
|
+
"409": {
|
|
1629
|
+
"description": "A tender is already linked to this Opportunity."
|
|
1630
|
+
}
|
|
1631
|
+
},
|
|
1632
|
+
"security": [
|
|
1633
|
+
{
|
|
1634
|
+
"Implicit": [
|
|
1635
|
+
"api://7e877854-e62d-4637-a655-1da7141f7ac9/.default"
|
|
1636
|
+
]
|
|
1637
|
+
}
|
|
1638
|
+
]
|
|
1639
|
+
}
|
|
1640
|
+
},
|
|
1568
1641
|
"/v1.0/tenders/{id}/salesforce": {
|
|
1569
1642
|
"post": {
|
|
1570
1643
|
"tags": [
|
|
@@ -1969,6 +2042,97 @@
|
|
|
1969
2042
|
]
|
|
1970
2043
|
}
|
|
1971
2044
|
},
|
|
2045
|
+
"/v1.0/tenders/{id}/reingest": {
|
|
2046
|
+
"post": {
|
|
2047
|
+
"tags": [
|
|
2048
|
+
"Tenders"
|
|
2049
|
+
],
|
|
2050
|
+
"summary": "Re-run the ingestion pipeline on an existing tender, re-parsing documents and refreshing AI match / summary / classification.",
|
|
2051
|
+
"operationId": "ReingestTender",
|
|
2052
|
+
"parameters": [
|
|
2053
|
+
{
|
|
2054
|
+
"name": "id",
|
|
2055
|
+
"in": "path",
|
|
2056
|
+
"required": true,
|
|
2057
|
+
"schema": {
|
|
2058
|
+
"type": "string"
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
],
|
|
2062
|
+
"responses": {
|
|
2063
|
+
"200": {
|
|
2064
|
+
"description": "Payload of AgentJob",
|
|
2065
|
+
"content": {
|
|
2066
|
+
"application/json": {
|
|
2067
|
+
"schema": {
|
|
2068
|
+
"$ref": "#/components/schemas/agentJob"
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
},
|
|
2073
|
+
"404": {
|
|
2074
|
+
"description": "No description"
|
|
2075
|
+
}
|
|
2076
|
+
},
|
|
2077
|
+
"security": [
|
|
2078
|
+
{
|
|
2079
|
+
"Implicit": [
|
|
2080
|
+
"api://7e877854-e62d-4637-a655-1da7141f7ac9/.default"
|
|
2081
|
+
]
|
|
2082
|
+
}
|
|
2083
|
+
]
|
|
2084
|
+
}
|
|
2085
|
+
},
|
|
2086
|
+
"/v1.0/tenders/{id}/jobs": {
|
|
2087
|
+
"get": {
|
|
2088
|
+
"tags": [
|
|
2089
|
+
"Tenders"
|
|
2090
|
+
],
|
|
2091
|
+
"summary": "Recent agent jobs (ingestion, CV matching, …) for a tender — newest first.",
|
|
2092
|
+
"operationId": "ListTenderJobs",
|
|
2093
|
+
"parameters": [
|
|
2094
|
+
{
|
|
2095
|
+
"name": "id",
|
|
2096
|
+
"in": "path",
|
|
2097
|
+
"required": true,
|
|
2098
|
+
"schema": {
|
|
2099
|
+
"type": "string"
|
|
2100
|
+
}
|
|
2101
|
+
},
|
|
2102
|
+
{
|
|
2103
|
+
"name": "limit",
|
|
2104
|
+
"in": "query",
|
|
2105
|
+
"schema": {
|
|
2106
|
+
"type": "integer",
|
|
2107
|
+
"format": "int32"
|
|
2108
|
+
},
|
|
2109
|
+
"x-ms-summary": "Max rows (default 10, capped at 100)."
|
|
2110
|
+
}
|
|
2111
|
+
],
|
|
2112
|
+
"responses": {
|
|
2113
|
+
"200": {
|
|
2114
|
+
"description": "Payload of Array of AgentJob",
|
|
2115
|
+
"content": {
|
|
2116
|
+
"application/json": {
|
|
2117
|
+
"schema": {
|
|
2118
|
+
"type": "array",
|
|
2119
|
+
"items": {
|
|
2120
|
+
"$ref": "#/components/schemas/agentJob"
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
},
|
|
2127
|
+
"security": [
|
|
2128
|
+
{
|
|
2129
|
+
"Implicit": [
|
|
2130
|
+
"api://7e877854-e62d-4637-a655-1da7141f7ac9/.default"
|
|
2131
|
+
]
|
|
2132
|
+
}
|
|
2133
|
+
]
|
|
2134
|
+
}
|
|
2135
|
+
},
|
|
1972
2136
|
"/v1.0/admin/tenders": {
|
|
1973
2137
|
"delete": {
|
|
1974
2138
|
"tags": [
|
|
@@ -3106,6 +3270,19 @@
|
|
|
3106
3270
|
},
|
|
3107
3271
|
"nullable": true
|
|
3108
3272
|
},
|
|
3273
|
+
"salesforceRefreshResult": {
|
|
3274
|
+
"type": "object",
|
|
3275
|
+
"properties": {
|
|
3276
|
+
"checked": {
|
|
3277
|
+
"type": "integer",
|
|
3278
|
+
"format": "int32"
|
|
3279
|
+
},
|
|
3280
|
+
"updated": {
|
|
3281
|
+
"type": "integer",
|
|
3282
|
+
"format": "int32"
|
|
3283
|
+
}
|
|
3284
|
+
}
|
|
3285
|
+
},
|
|
3109
3286
|
"sourceFile": {
|
|
3110
3287
|
"type": "object",
|
|
3111
3288
|
"properties": {
|
package/specs/test/sales.json
CHANGED
|
@@ -1565,6 +1565,79 @@
|
|
|
1565
1565
|
]
|
|
1566
1566
|
}
|
|
1567
1567
|
},
|
|
1568
|
+
"/v1.0/salesforce/refresh": {
|
|
1569
|
+
"post": {
|
|
1570
|
+
"tags": [
|
|
1571
|
+
"Salesforce"
|
|
1572
|
+
],
|
|
1573
|
+
"summary": "Batch-refresh the cached Salesforce state on every linked Snøkam tender.",
|
|
1574
|
+
"operationId": "RefreshAllSalesforceLinks",
|
|
1575
|
+
"responses": {
|
|
1576
|
+
"200": {
|
|
1577
|
+
"description": "Payload of SalesforceRefreshResult",
|
|
1578
|
+
"content": {
|
|
1579
|
+
"application/json": {
|
|
1580
|
+
"schema": {
|
|
1581
|
+
"$ref": "#/components/schemas/salesforceRefreshResult"
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
},
|
|
1587
|
+
"security": [
|
|
1588
|
+
{
|
|
1589
|
+
"Implicit": [
|
|
1590
|
+
"api://d7f15838-af74-4048-88b3-503089de0064/.default"
|
|
1591
|
+
]
|
|
1592
|
+
}
|
|
1593
|
+
]
|
|
1594
|
+
}
|
|
1595
|
+
},
|
|
1596
|
+
"/v1.0/salesforce/opportunities/{sfId}/import": {
|
|
1597
|
+
"post": {
|
|
1598
|
+
"tags": [
|
|
1599
|
+
"Salesforce"
|
|
1600
|
+
],
|
|
1601
|
+
"summary": "Create a Snøkam tender stub from an existing Salesforce Opportunity.",
|
|
1602
|
+
"operationId": "ImportSalesforceOpportunity",
|
|
1603
|
+
"parameters": [
|
|
1604
|
+
{
|
|
1605
|
+
"name": "sfId",
|
|
1606
|
+
"in": "path",
|
|
1607
|
+
"required": true,
|
|
1608
|
+
"schema": {
|
|
1609
|
+
"type": "string"
|
|
1610
|
+
},
|
|
1611
|
+
"x-ms-summary": "Salesforce Opportunity Id."
|
|
1612
|
+
}
|
|
1613
|
+
],
|
|
1614
|
+
"responses": {
|
|
1615
|
+
"200": {
|
|
1616
|
+
"description": "Payload of Tender",
|
|
1617
|
+
"content": {
|
|
1618
|
+
"application/json": {
|
|
1619
|
+
"schema": {
|
|
1620
|
+
"$ref": "#/components/schemas/tender"
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
},
|
|
1625
|
+
"404": {
|
|
1626
|
+
"description": "No description"
|
|
1627
|
+
},
|
|
1628
|
+
"409": {
|
|
1629
|
+
"description": "A tender is already linked to this Opportunity."
|
|
1630
|
+
}
|
|
1631
|
+
},
|
|
1632
|
+
"security": [
|
|
1633
|
+
{
|
|
1634
|
+
"Implicit": [
|
|
1635
|
+
"api://d7f15838-af74-4048-88b3-503089de0064/.default"
|
|
1636
|
+
]
|
|
1637
|
+
}
|
|
1638
|
+
]
|
|
1639
|
+
}
|
|
1640
|
+
},
|
|
1568
1641
|
"/v1.0/tenders/{id}/salesforce": {
|
|
1569
1642
|
"post": {
|
|
1570
1643
|
"tags": [
|
|
@@ -1969,6 +2042,97 @@
|
|
|
1969
2042
|
]
|
|
1970
2043
|
}
|
|
1971
2044
|
},
|
|
2045
|
+
"/v1.0/tenders/{id}/reingest": {
|
|
2046
|
+
"post": {
|
|
2047
|
+
"tags": [
|
|
2048
|
+
"Tenders"
|
|
2049
|
+
],
|
|
2050
|
+
"summary": "Re-run the ingestion pipeline on an existing tender, re-parsing documents and refreshing AI match / summary / classification.",
|
|
2051
|
+
"operationId": "ReingestTender",
|
|
2052
|
+
"parameters": [
|
|
2053
|
+
{
|
|
2054
|
+
"name": "id",
|
|
2055
|
+
"in": "path",
|
|
2056
|
+
"required": true,
|
|
2057
|
+
"schema": {
|
|
2058
|
+
"type": "string"
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
],
|
|
2062
|
+
"responses": {
|
|
2063
|
+
"200": {
|
|
2064
|
+
"description": "Payload of AgentJob",
|
|
2065
|
+
"content": {
|
|
2066
|
+
"application/json": {
|
|
2067
|
+
"schema": {
|
|
2068
|
+
"$ref": "#/components/schemas/agentJob"
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
},
|
|
2073
|
+
"404": {
|
|
2074
|
+
"description": "No description"
|
|
2075
|
+
}
|
|
2076
|
+
},
|
|
2077
|
+
"security": [
|
|
2078
|
+
{
|
|
2079
|
+
"Implicit": [
|
|
2080
|
+
"api://d7f15838-af74-4048-88b3-503089de0064/.default"
|
|
2081
|
+
]
|
|
2082
|
+
}
|
|
2083
|
+
]
|
|
2084
|
+
}
|
|
2085
|
+
},
|
|
2086
|
+
"/v1.0/tenders/{id}/jobs": {
|
|
2087
|
+
"get": {
|
|
2088
|
+
"tags": [
|
|
2089
|
+
"Tenders"
|
|
2090
|
+
],
|
|
2091
|
+
"summary": "Recent agent jobs (ingestion, CV matching, …) for a tender — newest first.",
|
|
2092
|
+
"operationId": "ListTenderJobs",
|
|
2093
|
+
"parameters": [
|
|
2094
|
+
{
|
|
2095
|
+
"name": "id",
|
|
2096
|
+
"in": "path",
|
|
2097
|
+
"required": true,
|
|
2098
|
+
"schema": {
|
|
2099
|
+
"type": "string"
|
|
2100
|
+
}
|
|
2101
|
+
},
|
|
2102
|
+
{
|
|
2103
|
+
"name": "limit",
|
|
2104
|
+
"in": "query",
|
|
2105
|
+
"schema": {
|
|
2106
|
+
"type": "integer",
|
|
2107
|
+
"format": "int32"
|
|
2108
|
+
},
|
|
2109
|
+
"x-ms-summary": "Max rows (default 10, capped at 100)."
|
|
2110
|
+
}
|
|
2111
|
+
],
|
|
2112
|
+
"responses": {
|
|
2113
|
+
"200": {
|
|
2114
|
+
"description": "Payload of Array of AgentJob",
|
|
2115
|
+
"content": {
|
|
2116
|
+
"application/json": {
|
|
2117
|
+
"schema": {
|
|
2118
|
+
"type": "array",
|
|
2119
|
+
"items": {
|
|
2120
|
+
"$ref": "#/components/schemas/agentJob"
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
},
|
|
2127
|
+
"security": [
|
|
2128
|
+
{
|
|
2129
|
+
"Implicit": [
|
|
2130
|
+
"api://d7f15838-af74-4048-88b3-503089de0064/.default"
|
|
2131
|
+
]
|
|
2132
|
+
}
|
|
2133
|
+
]
|
|
2134
|
+
}
|
|
2135
|
+
},
|
|
1972
2136
|
"/v1.0/admin/tenders": {
|
|
1973
2137
|
"delete": {
|
|
1974
2138
|
"tags": [
|
|
@@ -3106,6 +3270,19 @@
|
|
|
3106
3270
|
},
|
|
3107
3271
|
"nullable": true
|
|
3108
3272
|
},
|
|
3273
|
+
"salesforceRefreshResult": {
|
|
3274
|
+
"type": "object",
|
|
3275
|
+
"properties": {
|
|
3276
|
+
"checked": {
|
|
3277
|
+
"type": "integer",
|
|
3278
|
+
"format": "int32"
|
|
3279
|
+
},
|
|
3280
|
+
"updated": {
|
|
3281
|
+
"type": "integer",
|
|
3282
|
+
"format": "int32"
|
|
3283
|
+
}
|
|
3284
|
+
}
|
|
3285
|
+
},
|
|
3109
3286
|
"sourceFile": {
|
|
3110
3287
|
"type": "object",
|
|
3111
3288
|
"properties": {
|