Skip to content

Commit 4c3ef66

Browse files
fix(openapi): sync with openapi definition (#131)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 49a7b60 commit 4c3ef66

File tree

2 files changed

+123
-7
lines changed

2 files changed

+123
-7
lines changed

openapi.json

Lines changed: 89 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5684,14 +5684,31 @@
56845684
"tags": [
56855685
"Dependencies"
56865686
],
5687+
"summary": "Search dependencies",
56875688
"operationId": "searchDependencies",
56885689
"requestBody": {
56895690
"content": {
56905691
"application/json": {
56915692
"schema": {
56925693
"type": "object",
56935694
"additionalProperties": false,
5694-
"properties": {}
5695+
"properties": {
5696+
"limit": {
5697+
"type": "integer",
5698+
"default": 50,
5699+
"minimum": 1,
5700+
"maximum": 1000
5701+
},
5702+
"offset": {
5703+
"type": "integer",
5704+
"default": 0,
5705+
"minimum": 0
5706+
}
5707+
},
5708+
"required": [
5709+
"limit",
5710+
"offset"
5711+
]
56955712
}
56965713
}
56975714
},
@@ -5702,12 +5719,81 @@
57025719
"basicAuth": []
57035720
}
57045721
],
5705-
"description": ".\n\nThis endpoint consumes 0 units of your quota.",
5722+
"description": "Search for any dependency that is being used in your organization.\n\nThis endpoint consumes 0 units of your quota.",
57065723
"responses": {
57075724
"200": {
57085725
"content": {
57095726
"application/json": {
5710-
"schema": {}
5727+
"schema": {
5728+
"type": "object",
5729+
"additionalProperties": false,
5730+
"properties": {
5731+
"end": {
5732+
"type": "boolean",
5733+
"default": false
5734+
},
5735+
"limit": {
5736+
"type": "integer",
5737+
"default": 1000
5738+
},
5739+
"offset": {
5740+
"type": "integer",
5741+
"default": 0
5742+
},
5743+
"rows": {
5744+
"type": "array",
5745+
"items": {
5746+
"type": "object",
5747+
"additionalProperties": false,
5748+
"properties": {
5749+
"branch": {
5750+
"type": "string",
5751+
"default": ""
5752+
},
5753+
"id": {
5754+
"type": "string",
5755+
"default": ""
5756+
},
5757+
"name": {
5758+
"type": "string",
5759+
"default": ""
5760+
},
5761+
"namespace": {
5762+
"type": "string",
5763+
"default": ""
5764+
},
5765+
"repository": {
5766+
"type": "string",
5767+
"default": ""
5768+
},
5769+
"type": {
5770+
"type": "string",
5771+
"default": ""
5772+
},
5773+
"version": {
5774+
"type": "string",
5775+
"default": ""
5776+
}
5777+
},
5778+
"required": [
5779+
"branch",
5780+
"id",
5781+
"name",
5782+
"namespace",
5783+
"repository",
5784+
"type",
5785+
"version"
5786+
]
5787+
}
5788+
}
5789+
},
5790+
"required": [
5791+
"end",
5792+
"limit",
5793+
"offset",
5794+
"rows"
5795+
]
5796+
}
57115797
}
57125798
},
57135799
"description": "List of repos and their latest project report for the organization associated with the token used"

types/api.d.ts

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ export interface paths {
127127
};
128128
"/dependencies/search": {
129129
/**
130-
* @description .
130+
* Search dependencies
131+
* @description Search for any dependency that is being used in your organization.
131132
*
132133
* This endpoint consumes 0 units of your quota.
133134
*/
@@ -1802,21 +1803,50 @@ export interface operations {
18021803
};
18031804
};
18041805
/**
1805-
* @description .
1806+
* Search dependencies
1807+
* @description Search for any dependency that is being used in your organization.
18061808
*
18071809
* This endpoint consumes 0 units of your quota.
18081810
*/
18091811
searchDependencies: {
18101812
requestBody?: {
18111813
content: {
1812-
"application/json": Record<string, never>;
1814+
"application/json": {
1815+
/** @default 50 */
1816+
limit: number;
1817+
/** @default 0 */
1818+
offset: number;
1819+
};
18131820
};
18141821
};
18151822
responses: {
18161823
/** @description List of repos and their latest project report for the organization associated with the token used */
18171824
200: {
18181825
content: {
1819-
"application/json": unknown;
1826+
"application/json": {
1827+
/** @default false */
1828+
end: boolean;
1829+
/** @default 1000 */
1830+
limit: number;
1831+
/** @default 0 */
1832+
offset: number;
1833+
rows: ({
1834+
/** @default */
1835+
branch: string;
1836+
/** @default */
1837+
id: string;
1838+
/** @default */
1839+
name: string;
1840+
/** @default */
1841+
namespace: string;
1842+
/** @default */
1843+
repository: string;
1844+
/** @default */
1845+
type: string;
1846+
/** @default */
1847+
version: string;
1848+
})[];
1849+
};
18201850
};
18211851
};
18221852
400: components["responses"]["SocketBadRequest"];

0 commit comments

Comments
 (0)