-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow duration with integer seconds (#68)
+ update typing + update dependencies + need node > 18
- Loading branch information
Showing
15 changed files
with
4,225 additions
and
2,813 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
{ | ||
"name": "node-crowdsec-client-root", | ||
"engines": { | ||
"node": ">=18", | ||
"pnpm": ">=3" | ||
"node": ">=18.12", | ||
"pnpm": ">=9" | ||
}, | ||
"license": "UNLICENSED", | ||
"scripts": { | ||
"generate:documentation": "typedoc" | ||
}, | ||
"devDependencies": { | ||
"@tsconfig/node-lts": "20.1.1", | ||
"@types/jest": "29.5.12", | ||
"@types/node": "20.11.20", | ||
"@tsconfig/node-lts": "20.1.3", | ||
"@types/jest": "29.5.13", | ||
"@types/node": "22.7.6", | ||
"@typescript-eslint/parser": "7.0.2", | ||
"eslint": "8.57.0", | ||
"eslint-config-prettier": "9.1.0", | ||
"eslint-plugin-prettier": "5.1.3", | ||
"prettier": "3.2.5", | ||
"ts-node": "10.9.2", | ||
"typedoc": "0.25.9", | ||
"typescript": "5.3.3" | ||
} | ||
"typedoc": "0.26.10", | ||
"typescript": "5.6.3" | ||
}, | ||
"packageManager": "[email protected]+sha256.30a1801ac4e723779efed13a21f4c39f9eb6c9fbb4ced101bce06b422593d7c9" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
packages/crowdsec-client/src/types/generated/UsageMetricsRoute.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* eslint-disable */ | ||
/* tslint:disable */ | ||
/* | ||
* --------------------------------------------------------------- | ||
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## | ||
* ## ## | ||
* ## AUTHOR: acacode ## | ||
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ## | ||
* --------------------------------------------------------------- | ||
*/ | ||
|
||
import { AllMetrics, SuccessResponse } from './data-contracts.js'; | ||
|
||
export namespace UsageMetrics { | ||
/** | ||
* @description Post usage metrics from a LP or a bouncer | ||
* @tags Remediation component, watchers | ||
* @name UsageMetrics | ||
* @summary Send usage metrics | ||
* @request POST:/usage-metrics | ||
* @secure | ||
*/ | ||
export namespace UsageMetrics { | ||
export type RequestParams = {}; | ||
export type RequestQuery = {}; | ||
export type RequestBody = AllMetrics; | ||
export type RequestHeaders = {}; | ||
export type ResponseBody = SuccessResponse; | ||
} | ||
} |
Oops, something went wrong.