@shipeasy/openapi 3.1.0 → 3.3.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 +1 -1
- package/dist/{chunk-V4ZESAIF.js → chunk-75Z4SQOM.js} +141 -1
- package/dist/chunk-75Z4SQOM.js.map +1 -0
- package/dist/{chunk-UV333BIK.js → chunk-ZYK74ZIW.js} +569 -119
- package/dist/chunk-ZYK74ZIW.js.map +1 -0
- package/dist/{client-yqGYju-M.d.ts → client-DAGqRpF1.d.ts} +2209 -401
- package/dist/client.d.ts +1 -1
- package/dist/client.js +33 -1
- package/dist/custom.d.ts +5 -5
- package/dist/custom.js +128 -84
- package/dist/custom.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +34 -2
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +2007 -891
- package/dist/schemas.js +179 -1
- package/openapi-sdk.json +1769 -0
- package/openapi.json +5861 -2597
- package/openapi.yaml +2739 -452
- package/package.json +6 -4
- package/spec/components/responses.yaml +39 -0
- package/spec/components/schemas/alert-rules.yaml +405 -7
- package/spec/components/schemas/alerts.yaml +9 -7
- package/spec/components/schemas/common.yaml +2 -2
- package/spec/components/schemas/connectors.yaml +69 -6
- package/spec/components/schemas/events.yaml +20 -9
- package/spec/components/schemas/gates.yaml +87 -0
- package/spec/components/schemas/keys.yaml +32 -2
- package/spec/components/schemas/killswitches.yaml +64 -0
- package/spec/components/schemas/metrics.yaml +131 -251
- package/spec/components/schemas/ops.yaml +555 -22
- package/spec/components/schemas/projects.yaml +18 -0
- package/spec/components/schemas/tags.yaml +91 -0
- package/spec/openapi-sdk.yaml +86 -0
- package/spec/openapi.yaml +61 -0
- package/spec/paths/alerts.yaml +5 -3
- package/spec/paths/gates.yaml +282 -0
- package/spec/paths/i18n.yaml +2 -1
- package/spec/paths/keys.yaml +79 -0
- package/spec/paths/killswitches.yaml +96 -0
- package/spec/paths/metrics.yaml +26 -17
- package/spec/paths/ops.yaml +566 -10
- package/spec/paths/tags.yaml +270 -0
- package/dist/chunk-UV333BIK.js.map +0 -1
- package/dist/chunk-V4ZESAIF.js.map +0 -1
package/README.md
CHANGED
|
@@ -32,6 +32,6 @@ fuzzes **this spec** against it with [Schemathesis](https://schemathesis.readthe
|
|
|
32
32
|
property-based generation of valid and malformed requests for every operation,
|
|
33
33
|
asserting no 5xx and full status/schema conformance (the `bearerSdkKey` auth the
|
|
34
34
|
spec declares is exercised end-to-end). Run it locally with
|
|
35
|
-
`pnpm --filter @shipeasy/ui test:contract` (see `apps/ui/contract-tests/`).
|
|
35
|
+
`pnpm --filter @shipeasy/ui-rr test:contract` (see `apps/ui-rr/contract-tests/`).
|
|
36
36
|
|
|
37
37
|
<!-- ci: republish trigger (v2) — publish workflows re-run on the corrected pnpm/action-setup config; no package content change -->
|
|
@@ -835,6 +835,38 @@ var listGateActivity = (options) => (options.client ?? client).get({
|
|
|
835
835
|
url: "/api/admin/gates/{id}/activity",
|
|
836
836
|
...options
|
|
837
837
|
});
|
|
838
|
+
var removeFromGateWhitelist = (options) => (options.client ?? client).delete({
|
|
839
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
840
|
+
url: "/api/admin/gates/{id}/whitelist",
|
|
841
|
+
...options,
|
|
842
|
+
headers: {
|
|
843
|
+
"Content-Type": "application/json",
|
|
844
|
+
...options.headers
|
|
845
|
+
}
|
|
846
|
+
});
|
|
847
|
+
var getGateWhitelist = (options) => (options.client ?? client).get({
|
|
848
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
849
|
+
url: "/api/admin/gates/{id}/whitelist",
|
|
850
|
+
...options
|
|
851
|
+
});
|
|
852
|
+
var addToGateWhitelist = (options) => (options.client ?? client).post({
|
|
853
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
854
|
+
url: "/api/admin/gates/{id}/whitelist",
|
|
855
|
+
...options,
|
|
856
|
+
headers: {
|
|
857
|
+
"Content-Type": "application/json",
|
|
858
|
+
...options.headers
|
|
859
|
+
}
|
|
860
|
+
});
|
|
861
|
+
var setGateWhitelist = (options) => (options.client ?? client).put({
|
|
862
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
863
|
+
url: "/api/admin/gates/{id}/whitelist",
|
|
864
|
+
...options,
|
|
865
|
+
headers: {
|
|
866
|
+
"Content-Type": "application/json",
|
|
867
|
+
...options.headers
|
|
868
|
+
}
|
|
869
|
+
});
|
|
838
870
|
var listExperiments = (options) => (options?.client ?? client).get({
|
|
839
871
|
security: [{ scheme: "bearer", type: "http" }],
|
|
840
872
|
url: "/api/admin/experiments",
|
|
@@ -1054,6 +1086,15 @@ var setKillswitchValue = (options) => (options.client ?? client).put({
|
|
|
1054
1086
|
...options.headers
|
|
1055
1087
|
}
|
|
1056
1088
|
});
|
|
1089
|
+
var toggleKillswitch = (options) => (options.client ?? client).post({
|
|
1090
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1091
|
+
url: "/api/admin/killswitches/{id}/toggle",
|
|
1092
|
+
...options,
|
|
1093
|
+
headers: {
|
|
1094
|
+
"Content-Type": "application/json",
|
|
1095
|
+
...options.headers
|
|
1096
|
+
}
|
|
1097
|
+
});
|
|
1057
1098
|
var listUniverses = (options) => (options?.client ?? client).get({
|
|
1058
1099
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1059
1100
|
url: "/api/admin/universes",
|
|
@@ -1256,6 +1297,24 @@ var createOpsItem = (options) => (options.client ?? client).post({
|
|
|
1256
1297
|
...options.headers
|
|
1257
1298
|
}
|
|
1258
1299
|
});
|
|
1300
|
+
var createPublicBug = (options) => (options.client ?? client).post({
|
|
1301
|
+
security: [{ name: "X-SDK-Key", type: "apiKey" }],
|
|
1302
|
+
url: "/ops/bug",
|
|
1303
|
+
...options,
|
|
1304
|
+
headers: {
|
|
1305
|
+
"Content-Type": "application/json",
|
|
1306
|
+
...options.headers
|
|
1307
|
+
}
|
|
1308
|
+
});
|
|
1309
|
+
var createPublicFeatureRequest = (options) => (options.client ?? client).post({
|
|
1310
|
+
security: [{ name: "X-SDK-Key", type: "apiKey" }],
|
|
1311
|
+
url: "/ops/feature-request",
|
|
1312
|
+
...options,
|
|
1313
|
+
headers: {
|
|
1314
|
+
"Content-Type": "application/json",
|
|
1315
|
+
...options.headers
|
|
1316
|
+
}
|
|
1317
|
+
});
|
|
1259
1318
|
var deleteOpsItem = (options) => (options.client ?? client).delete({
|
|
1260
1319
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1261
1320
|
url: "/api/admin/ops/{handle}",
|
|
@@ -1316,6 +1375,34 @@ var updateOpsInvestigation = (options) => (options.client ?? client).patch({
|
|
|
1316
1375
|
...options.headers
|
|
1317
1376
|
}
|
|
1318
1377
|
});
|
|
1378
|
+
var listOpsQuestions = (options) => (options.client ?? client).get({
|
|
1379
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1380
|
+
url: "/api/admin/ops/{handle}/questions",
|
|
1381
|
+
...options
|
|
1382
|
+
});
|
|
1383
|
+
var askOpsQuestions = (options) => (options.client ?? client).post({
|
|
1384
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1385
|
+
url: "/api/admin/ops/{handle}/questions",
|
|
1386
|
+
...options,
|
|
1387
|
+
headers: {
|
|
1388
|
+
"Content-Type": "application/json",
|
|
1389
|
+
...options.headers
|
|
1390
|
+
}
|
|
1391
|
+
});
|
|
1392
|
+
var answerOpsQuestion = (options) => (options.client ?? client).post({
|
|
1393
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1394
|
+
url: "/api/admin/ops/{handle}/questions/{questionId}/answer",
|
|
1395
|
+
...options,
|
|
1396
|
+
headers: {
|
|
1397
|
+
"Content-Type": "application/json",
|
|
1398
|
+
...options.headers
|
|
1399
|
+
}
|
|
1400
|
+
});
|
|
1401
|
+
var cancelOpsQuestion = (options) => (options.client ?? client).post({
|
|
1402
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1403
|
+
url: "/api/admin/ops/{handle}/questions/{questionId}/cancel",
|
|
1404
|
+
...options
|
|
1405
|
+
});
|
|
1319
1406
|
var listOpsAgents = (options) => (options?.client ?? client).get({
|
|
1320
1407
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1321
1408
|
url: "/api/admin/agent-profiles",
|
|
@@ -1652,6 +1739,15 @@ var createKey = (options) => (options.client ?? client).post({
|
|
|
1652
1739
|
...options.headers
|
|
1653
1740
|
}
|
|
1654
1741
|
});
|
|
1742
|
+
var updateKey = (options) => (options.client ?? client).patch({
|
|
1743
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1744
|
+
url: "/api/admin/keys/{id}",
|
|
1745
|
+
...options,
|
|
1746
|
+
headers: {
|
|
1747
|
+
"Content-Type": "application/json",
|
|
1748
|
+
...options.headers
|
|
1749
|
+
}
|
|
1750
|
+
});
|
|
1655
1751
|
var revokeKey = (options) => (options.client ?? client).post({
|
|
1656
1752
|
security: [{ scheme: "bearer", type: "http" }],
|
|
1657
1753
|
url: "/api/admin/keys/{id}/revoke",
|
|
@@ -1662,6 +1758,34 @@ var searchResources = (options) => (options?.client ?? client).get({
|
|
|
1662
1758
|
url: "/api/admin/search",
|
|
1663
1759
|
...options
|
|
1664
1760
|
});
|
|
1761
|
+
var listTags = (options) => (options?.client ?? client).get({
|
|
1762
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1763
|
+
url: "/api/admin/tags",
|
|
1764
|
+
...options
|
|
1765
|
+
});
|
|
1766
|
+
var getEntityTags = (options) => (options.client ?? client).get({
|
|
1767
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1768
|
+
url: "/api/admin/tags/{entityType}/{entityId}",
|
|
1769
|
+
...options
|
|
1770
|
+
});
|
|
1771
|
+
var updateEntityTags = (options) => (options.client ?? client).patch({
|
|
1772
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1773
|
+
url: "/api/admin/tags/{entityType}/{entityId}",
|
|
1774
|
+
...options,
|
|
1775
|
+
headers: {
|
|
1776
|
+
"Content-Type": "application/json",
|
|
1777
|
+
...options.headers
|
|
1778
|
+
}
|
|
1779
|
+
});
|
|
1780
|
+
var setEntityTags = (options) => (options.client ?? client).put({
|
|
1781
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1782
|
+
url: "/api/admin/tags/{entityType}/{entityId}",
|
|
1783
|
+
...options,
|
|
1784
|
+
headers: {
|
|
1785
|
+
"Content-Type": "application/json",
|
|
1786
|
+
...options.headers
|
|
1787
|
+
}
|
|
1788
|
+
});
|
|
1665
1789
|
|
|
1666
1790
|
// src/client.ts
|
|
1667
1791
|
function configure({ apiKey, projectId, baseUrl }) {
|
|
@@ -1684,6 +1808,10 @@ export {
|
|
|
1684
1808
|
enableGate,
|
|
1685
1809
|
disableGate,
|
|
1686
1810
|
listGateActivity,
|
|
1811
|
+
removeFromGateWhitelist,
|
|
1812
|
+
getGateWhitelist,
|
|
1813
|
+
addToGateWhitelist,
|
|
1814
|
+
setGateWhitelist,
|
|
1687
1815
|
listExperiments,
|
|
1688
1816
|
createExperiment,
|
|
1689
1817
|
deleteExperiment,
|
|
@@ -1715,6 +1843,7 @@ export {
|
|
|
1715
1843
|
unsetKillswitchSwitch,
|
|
1716
1844
|
setKillswitchSwitch,
|
|
1717
1845
|
setKillswitchValue,
|
|
1846
|
+
toggleKillswitch,
|
|
1718
1847
|
listUniverses,
|
|
1719
1848
|
createUniverse,
|
|
1720
1849
|
deleteUniverse,
|
|
@@ -1745,6 +1874,8 @@ export {
|
|
|
1745
1874
|
approveEvent,
|
|
1746
1875
|
listOpsItems,
|
|
1747
1876
|
createOpsItem,
|
|
1877
|
+
createPublicBug,
|
|
1878
|
+
createPublicFeatureRequest,
|
|
1748
1879
|
deleteOpsItem,
|
|
1749
1880
|
getOpsItem,
|
|
1750
1881
|
updateOpsItem,
|
|
@@ -1753,6 +1884,10 @@ export {
|
|
|
1753
1884
|
listOpsInvestigations,
|
|
1754
1885
|
createOpsInvestigation,
|
|
1755
1886
|
updateOpsInvestigation,
|
|
1887
|
+
listOpsQuestions,
|
|
1888
|
+
askOpsQuestions,
|
|
1889
|
+
answerOpsQuestion,
|
|
1890
|
+
cancelOpsQuestion,
|
|
1756
1891
|
listOpsAgents,
|
|
1757
1892
|
listOpsComments,
|
|
1758
1893
|
createOpsComment,
|
|
@@ -1801,8 +1936,13 @@ export {
|
|
|
1801
1936
|
createTriggerConnector,
|
|
1802
1937
|
listKeys,
|
|
1803
1938
|
createKey,
|
|
1939
|
+
updateKey,
|
|
1804
1940
|
revokeKey,
|
|
1805
1941
|
searchResources,
|
|
1942
|
+
listTags,
|
|
1943
|
+
getEntityTags,
|
|
1944
|
+
updateEntityTags,
|
|
1945
|
+
setEntityTags,
|
|
1806
1946
|
configure
|
|
1807
1947
|
};
|
|
1808
|
-
//# sourceMappingURL=chunk-
|
|
1948
|
+
//# sourceMappingURL=chunk-75Z4SQOM.js.map
|