Skip to content

Commit 71fd38d

Browse files
committed
test
1 parent f3f15e7 commit 71fd38d

File tree

1 file changed

+70
-70
lines changed

1 file changed

+70
-70
lines changed

types/api.d.ts

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -7,143 +7,143 @@
77
export interface paths {
88
"/npm/{package}/{version}/issues": {
99
/**
10-
* Get issues by package
10+
* Get issues by package
1111
* @description Get all the issues related with a particular npm package version.
1212
* This endpoint returns the issue type, location, and additional details related to each issue in the `props` attribute.
13-
*
13+
*
1414
* You can [see here](https://socket.dev/npm/issue) the full list of issues.
15-
*
15+
*
1616
* This endpoint consumes 1 unit of your quota.
1717
*/
1818
get: operations["getIssuesByNPMPackage"];
1919
};
2020
"/npm/{package}/{version}/score": {
2121
/**
22-
* Get score by package
22+
* Get score by package
2323
* @description Get all the scores and metrics by category that are used to evaluate the package version.
24-
*
24+
*
2525
* This endpoint consumes 1 unit of your quota.
2626
*/
2727
get: operations["getScoreByNPMPackage"];
2828
};
2929
"/report/delete/{id}": {
3030
/**
31-
* Delete a report
31+
* Delete a report
3232
* @description Delete a specific project report.
33-
*
33+
*
3434
* This endpoint consumes 10 units of your quota.
3535
*/
3636
delete: operations["deleteReport"];
3737
};
3838
"/report/list": {
3939
/**
40-
* Get list of reports
40+
* Get list of reports
4141
* @description Get all your project reports.
42-
*
42+
*
4343
* This endpoint consumes 10 units of your quota.
4444
*/
4545
get: operations["getReportList"];
4646
};
4747
"/report/upload": {
4848
/**
49-
* Create a report
49+
* Create a report
5050
* @description Upload a lockfile to get your project analyzed by Socket.
5151
* You can upload multiple lockfiles in the same request, but each filename must be unique.
52-
*
52+
*
5353
* The name of the file must be in the supported list.
54-
*
54+
*
5555
* For example, these are valid filenames: `package.json`, `folder/package.json` and `deep/nested/folder/package.json`.
56-
*
56+
*
5757
* This endpoint consumes 100 units of your quota.
5858
*/
5959
put: operations["createReport"];
6060
};
6161
"/report/view/{id}": {
6262
/**
63-
* View a report
63+
* View a report
6464
* @description Get all the issues, packages, and scores related to an specific project report.
65-
*
65+
*
6666
* This endpoint consumes 10 units of your quota.
6767
*/
6868
get: operations["getReport"];
6969
};
7070
"/report/supported": {
7171
/**
72-
* Get supported files for report
72+
* Get supported files for report
7373
* @description Get a list of supported files for project report generation.
7474
* Files are categorized first by environment (e.g. NPM or PyPI), then by name.
75-
*
75+
*
7676
* Files whose names match the patterns returned by this endpoint can be uploaded for report generation.
7777
* Examples of supported filenames include `package.json`, `package-lock.json`, and `yarn.lock`.
78-
*
78+
*
7979
* This endpoint consumes 0 units of your quota.
8080
*/
8181
get: operations["getReportSupportedFiles"];
8282
};
8383
"/openapi": {
8484
/**
85-
* Returns the OpenAPI definition
85+
* Returns the OpenAPI definition
8686
* @description Retrieve the API specification in an Openapi JSON format.
87-
*
87+
*
8888
* This endpoint consumes 0 units of your quota.
8989
*/
9090
get: operations["getOpenAPI"];
9191
};
9292
"/quota": {
9393
/**
94-
* Get quota
94+
* Get quota
9595
* @description Get your current API quota. You can use this endpoint to prevent doing requests that might spend all your quota.
96-
*
96+
*
9797
* This endpoint consumes 0 units of your quota.
9898
*/
9999
get: operations["getQuota"];
100100
};
101101
"/organizations": {
102102
/**
103-
* List organizations
103+
* List organizations
104104
* @description Get information on the current organizations associated with the API key.
105-
*
105+
*
106106
* This endpoint consumes 0 units of your quota.
107107
*/
108108
get: operations["getOrganizations"];
109109
};
110110
"/settings": {
111111
/**
112-
* Calculate settings
112+
* Calculate settings
113113
* @description Get your current settings the requested organizations and default settings to allow deferrals.
114-
*
114+
*
115115
* This endpoint consumes 0 units of your quota.
116116
*/
117117
post: operations["postSettings"];
118118
};
119119
"/repo/list": {
120120
/**
121-
* Get list of repos and their latest project report
121+
* Get list of repos and their latest project report
122122
* @description Get all repositories in an org including their latest project report.
123-
*
123+
*
124124
* This endpoint consumes 0 units of your quota.
125125
*/
126126
get: operations["getRepoList"];
127127
};
128128
"/dependencies/search": {
129129
/**
130-
* Search dependencies
130+
* Search dependencies
131131
* @description Search for any dependency that is being used in your organization.
132-
*
132+
*
133133
* This endpoint consumes 0 units of your quota.
134134
*/
135135
post: operations["searchDependencies"];
136136
};
137137
"/dependencies/upload": {
138138
/**
139-
* Create a snapshot of all dependencies from manifest information
139+
* Create a snapshot of all dependencies from manifest information
140140
* @description Upload a set of manifest or lockfiles to get your dependency tree analyzed by Socket.
141141
* You can upload multiple lockfiles in the same request, but each filename must be unique.
142-
*
142+
*
143143
* The name of the file must be in the supported list.
144-
*
144+
*
145145
* For example, these are valid filenames: "requirements.txt", "package.json", "folder/package.json", and "deep/nested/folder/package.json".
146-
*
146+
*
147147
* This endpoint consumes 100 units of your quota.
148148
*/
149149
post: operations["createDependenciesSnapshot"];
@@ -1249,12 +1249,12 @@ export interface components {
12491249
value: Record<string, never>;
12501250
};
12511251
/**
1252-
* @default low
1252+
* @default low
12531253
* @enum {string}
12541254
*/
12551255
SocketIssueSeverity: "low" | "middle" | "high" | "critical";
12561256
/**
1257-
* @default miscellaneous
1257+
* @default miscellaneous
12581258
* @enum {string}
12591259
*/
12601260
SocketCategory: "supplyChainRisk" | "quality" | "maintenance" | "vulnerability" | "license" | "miscellaneous";
@@ -1431,12 +1431,12 @@ export type external = Record<string, never>;
14311431
export interface operations {
14321432

14331433
/**
1434-
* Get issues by package
1434+
* Get issues by package
14351435
* @description Get all the issues related with a particular npm package version.
14361436
* This endpoint returns the issue type, location, and additional details related to each issue in the `props` attribute.
1437-
*
1437+
*
14381438
* You can [see here](https://socket.dev/npm/issue) the full list of issues.
1439-
*
1439+
*
14401440
* This endpoint consumes 1 unit of your quota.
14411441
*/
14421442
getIssuesByNPMPackage: {
@@ -1461,9 +1461,9 @@ export interface operations {
14611461
};
14621462
};
14631463
/**
1464-
* Get score by package
1464+
* Get score by package
14651465
* @description Get all the scores and metrics by category that are used to evaluate the package version.
1466-
*
1466+
*
14671467
* This endpoint consumes 1 unit of your quota.
14681468
*/
14691469
getScoreByNPMPackage: {
@@ -1488,9 +1488,9 @@ export interface operations {
14881488
};
14891489
};
14901490
/**
1491-
* Delete a report
1491+
* Delete a report
14921492
* @description Delete a specific project report.
1493-
*
1493+
*
14941494
* This endpoint consumes 10 units of your quota.
14951495
*/
14961496
deleteReport: {
@@ -1517,9 +1517,9 @@ export interface operations {
15171517
};
15181518
};
15191519
/**
1520-
* Get list of reports
1520+
* Get list of reports
15211521
* @description Get all your project reports.
1522-
*
1522+
*
15231523
* This endpoint consumes 10 units of your quota.
15241524
*/
15251525
getReportList: {
@@ -1543,14 +1543,14 @@ export interface operations {
15431543
};
15441544
};
15451545
/**
1546-
* Create a report
1546+
* Create a report
15471547
* @description Upload a lockfile to get your project analyzed by Socket.
15481548
* You can upload multiple lockfiles in the same request, but each filename must be unique.
1549-
*
1549+
*
15501550
* The name of the file must be in the supported list.
1551-
*
1551+
*
15521552
* For example, these are valid filenames: `package.json`, `folder/package.json` and `deep/nested/folder/package.json`.
1553-
*
1553+
*
15541554
* This endpoint consumes 100 units of your quota.
15551555
*/
15561556
createReport: {
@@ -1583,9 +1583,9 @@ export interface operations {
15831583
};
15841584
};
15851585
/**
1586-
* View a report
1586+
* View a report
15871587
* @description Get all the issues, packages, and scores related to an specific project report.
1588-
*
1588+
*
15891589
* This endpoint consumes 10 units of your quota.
15901590
*/
15911591
getReport: {
@@ -1609,13 +1609,13 @@ export interface operations {
16091609
};
16101610
};
16111611
/**
1612-
* Get supported files for report
1612+
* Get supported files for report
16131613
* @description Get a list of supported files for project report generation.
16141614
* Files are categorized first by environment (e.g. NPM or PyPI), then by name.
1615-
*
1615+
*
16161616
* Files whose names match the patterns returned by this endpoint can be uploaded for report generation.
16171617
* Examples of supported filenames include `package.json`, `package-lock.json`, and `yarn.lock`.
1618-
*
1618+
*
16191619
* This endpoint consumes 0 units of your quota.
16201620
*/
16211621
getReportSupportedFiles: {
@@ -1638,9 +1638,9 @@ export interface operations {
16381638
};
16391639
};
16401640
/**
1641-
* Returns the OpenAPI definition
1641+
* Returns the OpenAPI definition
16421642
* @description Retrieve the API specification in an Openapi JSON format.
1643-
*
1643+
*
16441644
* This endpoint consumes 0 units of your quota.
16451645
*/
16461646
getOpenAPI: {
@@ -1655,9 +1655,9 @@ export interface operations {
16551655
};
16561656
};
16571657
/**
1658-
* Get quota
1658+
* Get quota
16591659
* @description Get your current API quota. You can use this endpoint to prevent doing requests that might spend all your quota.
1660-
*
1660+
*
16611661
* This endpoint consumes 0 units of your quota.
16621662
*/
16631663
getQuota: {
@@ -1676,9 +1676,9 @@ export interface operations {
16761676
};
16771677
};
16781678
/**
1679-
* List organizations
1679+
* List organizations
16801680
* @description Get information on the current organizations associated with the API key.
1681-
*
1681+
*
16821682
* This endpoint consumes 0 units of your quota.
16831683
*/
16841684
getOrganizations: {
@@ -1707,9 +1707,9 @@ export interface operations {
17071707
};
17081708
};
17091709
/**
1710-
* Calculate settings
1710+
* Calculate settings
17111711
* @description Get your current settings the requested organizations and default settings to allow deferrals.
1712-
*
1712+
*
17131713
* This endpoint consumes 0 units of your quota.
17141714
*/
17151715
postSettings: {
@@ -1758,9 +1758,9 @@ export interface operations {
17581758
};
17591759
};
17601760
/**
1761-
* Get list of repos and their latest project report
1761+
* Get list of repos and their latest project report
17621762
* @description Get all repositories in an org including their latest project report.
1763-
*
1763+
*
17641764
* This endpoint consumes 0 units of your quota.
17651765
*/
17661766
getRepoList: {
@@ -1804,9 +1804,9 @@ export interface operations {
18041804
};
18051805
};
18061806
/**
1807-
* Search dependencies
1807+
* Search dependencies
18081808
* @description Search for any dependency that is being used in your organization.
1809-
*
1809+
*
18101810
* This endpoint consumes 0 units of your quota.
18111811
*/
18121812
searchDependencies: {
@@ -1858,14 +1858,14 @@ export interface operations {
18581858
};
18591859
};
18601860
/**
1861-
* Create a snapshot of all dependencies from manifest information
1861+
* Create a snapshot of all dependencies from manifest information
18621862
* @description Upload a set of manifest or lockfiles to get your dependency tree analyzed by Socket.
18631863
* You can upload multiple lockfiles in the same request, but each filename must be unique.
1864-
*
1864+
*
18651865
* The name of the file must be in the supported list.
1866-
*
1866+
*
18671867
* For example, these are valid filenames: "requirements.txt", "package.json", "folder/package.json", and "deep/nested/folder/package.json".
1868-
*
1868+
*
18691869
* This endpoint consumes 100 units of your quota.
18701870
*/
18711871
createDependenciesSnapshot: {

0 commit comments

Comments
 (0)