-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpackage.json
More file actions
23 lines (23 loc) · 2.21 KB
/
package.json
File metadata and controls
23 lines (23 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"name": "kinde-php-sdk",
"version": "2.0.1",
"description": "Kinde PHP SDK for authentication",
"private": true,
"scripts": {
"generate": "openapi-generator-cli generate -i ./kinde-management-api.yaml -g php -o ./tmp --additional-properties=invokerPackage='Kinde\\\\KindeSDK'",
"update-spec": "node -e \"const https = require('https'); const fs = require('fs'); const url = 'https://api-spec.kinde.com/kinde-management-api-spec.yaml'; const file = fs.createWriteStream('./kinde-management-api.yaml'); https.get(url, (response) => { if (response.statusCode === 200) { response.pipe(file); file.on('finish', () => { file.close(); console.log('Management API spec updated successfully'); }); } else { console.error('Error: HTTP', response.statusCode); fs.unlink('./kinde-management-api.yaml', () => {}); } }).on('error', (err) => { fs.unlink('./kinde-management-api.yaml', () => {}); console.error('Error downloading file:', err.message); });\"",
"update-spec-blob": "echo 'For blob URLs, please manually download the file from the browser and save it as kinde-management-api.yaml in this directory'",
"update-frontend-spec": "node -e \"const https = require('https'); const fs = require('fs'); const url = 'https://api-spec.kinde.com/kinde-frontend-api-spec.yaml'; const file = fs.createWriteStream('./kinde-frontend-api.yaml'); https.get(url, (response) => { if (response.statusCode === 200) { response.pipe(file); file.on('finish', () => { file.close(); console.log('Frontend API spec updated successfully'); }); } else { console.error('Error: HTTP', response.statusCode); fs.unlink('./kinde-frontend-api.yaml', () => {}); } }).on('error', (err) => { fs.unlink('./kinde-frontend-api.yaml', () => {}); console.error('Error downloading file:', err.message); });\"",
"generate-frontend": "openapi-generator-cli generate -i ./kinde-frontend-api.yaml -g php -o ./tmp-frontend --additional-properties=invokerPackage='Kinde\\\\KindeSDK',apiPackage='Api\\\\Frontend',modelPackage='Model\\\\Frontend'",
"fix-headers": "php fix-headers.php"
},
"devDependencies": {
"@openapitools/openapi-generator-cli": "2.34.0"
},
"openapi-generator-cli": {
"version": "2.7.0",
"generator-cli": {
"version": "2.7.0"
}
}
}