mirror of
https://github.com/keycloak/keycloak.git
synced 2026-02-18 18:37:54 -05:00
* Added typescript based module for the client admin v2 Based on the new openapi client admin api this module can be generated based on the defenition. Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> * now uses openapitools to generate and moved it into the existing module for better adoption Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> * changed back to use kiota as it offers a nicer fluent api Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> * fixed build Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> * better api Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> * removed base representation filter Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> * added flag to explicited enable v2 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> * re-run generation Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> * enable client-admin-api:v2 in PR CI tests Signed-off-by: Michal Vavřík <michal.vavrik@aol.com> * fix JS OpenAPI generation on Windows Signed-off-by: Michal Vavřík <michal.vavrik@aol.com> * remove unnecessary statement from generate.ts Signed-off-by: Michal Vavřík <michal.vavrik@aol.com> * Fix Windows line endings in JS OpenAPI post-processing Signed-off-by: Michal Vavřík <michal.vavrik@aol.com> --------- Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com> Signed-off-by: Michal Vavřík <michal.vavrik@aol.com> Co-authored-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
90 lines
2.2 KiB
JSON
90 lines
2.2 KiB
JSON
{
|
|
"name": "@keycloak/keycloak-admin-client",
|
|
"version": "999.0.0-SNAPSHOT",
|
|
"description": "A client to interact with Keycloak's Administration API",
|
|
"type": "module",
|
|
"main": "lib/index.js",
|
|
"files": [
|
|
"lib"
|
|
],
|
|
"types": "lib/index.d.ts",
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"build": "wireit",
|
|
"lint": "wireit",
|
|
"test": "wireit",
|
|
"generate:openapi": "wireit",
|
|
"postinstall": "pnpm generate:openapi",
|
|
"prepublishOnly": "pnpm build"
|
|
},
|
|
"wireit": {
|
|
"build": {
|
|
"command": "tsc --pretty",
|
|
"dependencies": [
|
|
"generate:openapi"
|
|
],
|
|
"files": [
|
|
"src",
|
|
"tsconfig.json"
|
|
],
|
|
"output": [
|
|
"lib"
|
|
]
|
|
},
|
|
"generate:openapi": {
|
|
"command": "cross-env OPENAPI_FILE=api.yml tsx generate.ts",
|
|
"files": [
|
|
"api.yml"
|
|
],
|
|
"output": [
|
|
"src/generated"
|
|
]
|
|
},
|
|
"lint": {
|
|
"command": "eslint ."
|
|
},
|
|
"test": {
|
|
"command": "TS_NODE_PROJECT=tsconfig.test.json mocha --recursive \"test/**/*.spec.ts\" --timeout 10000"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@microsoft/kiota-abstractions": "^1.0.0-preview.86",
|
|
"@microsoft/kiota-http-fetchlibrary": "^1.0.0-preview.80",
|
|
"@microsoft/kiota-serialization-form": "^1.0.0-preview.74",
|
|
"@microsoft/kiota-serialization-json": "^1.0.0-preview.86",
|
|
"@microsoft/kiota-serialization-multipart": "^1.0.0-preview.67",
|
|
"@microsoft/kiota-serialization-text": "^1.0.0-preview.79",
|
|
"camelize-ts": "^3.0.0",
|
|
"url-template": "^3.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"@faker-js/faker": "^10.2.0",
|
|
"@microsoft/kiota": "^1.29.0",
|
|
"@types/chai": "^5.2.2",
|
|
"@types/lodash-es": "^4.17.12",
|
|
"@types/mocha": "^10.0.10",
|
|
"@types/node": "^25.0.3",
|
|
"chai": "^6.2.2",
|
|
"cross-env": "^10.1.0",
|
|
"lodash-es": "^4.17.23",
|
|
"mocha": "^11.7.5",
|
|
"ts-node": "^10.9.2",
|
|
"tsx": "^4.19.2"
|
|
},
|
|
"author": {
|
|
"name": "Red Hat, Inc.",
|
|
"url": "https://www.keycloak.org/"
|
|
},
|
|
"license": "Apache-2.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/keycloak/keycloak.git",
|
|
"directory": "js/libs/keycloak-admin-client"
|
|
},
|
|
"homepage": "https://www.keycloak.org/"
|
|
}
|