@grantjs/cli 1.11.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -2
- package/dist/api/authenticated.d.ts +11 -0
- package/dist/api/client.d.ts +11 -4
- package/dist/api/errors.d.ts +9 -0
- package/dist/api/transport.d.ts +15 -0
- package/dist/commands/api.d.ts +2 -0
- package/dist/commands/from-spec.d.ts +2 -0
- package/dist/commands/whoami.d.ts +2 -0
- package/dist/config/credentials.d.ts +29 -0
- package/dist/config/index.d.ts +0 -1
- package/dist/config/output.d.ts +3 -0
- package/dist/config/resolve-token.d.ts +4 -5
- package/dist/index.mjs +1736 -120
- package/dist/index.mjs.map +1 -1
- package/dist/spec/map-commands.d.ts +10 -0
- package/dist/spec/operations.d.ts +3 -0
- package/dist/spec/types.d.ts +8 -0
- package/dist/types/config.d.ts +5 -0
- package/package.json +9 -8
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CliOperation } from './types.js';
|
|
2
|
+
export interface MappedCommand {
|
|
3
|
+
group: string;
|
|
4
|
+
verb: string;
|
|
5
|
+
operation: CliOperation;
|
|
6
|
+
}
|
|
7
|
+
export declare function mapOperation(operation: CliOperation): MappedCommand;
|
|
8
|
+
export declare function mapOperations(operations: CliOperation[]): MappedCommand[];
|
|
9
|
+
export declare function applyPathParams(path: string, values: Record<string, string>): string;
|
|
10
|
+
export declare function flagName(param: string): string;
|
package/dist/types/config.d.ts
CHANGED
|
@@ -39,6 +39,11 @@ export interface GrantConfig {
|
|
|
39
39
|
selectedScope?: GrantScope;
|
|
40
40
|
/** Default output path for generate-types (e.g. ./src/grant-types.ts). Optional. */
|
|
41
41
|
generateTypesOutputPath?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Optional origin-verify secret sent as `x-origin-verify`.
|
|
44
|
+
* Use only when apiUrl is the raw API origin. Prefer the public front URL instead.
|
|
45
|
+
*/
|
|
46
|
+
originVerifySecret?: string;
|
|
42
47
|
}
|
|
43
48
|
/** Name of a profile (key in profiles). */
|
|
44
49
|
type ProfileName = string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grantjs/cli",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Grant CLI
|
|
3
|
+
"version": "1.13.0",
|
|
4
|
+
"description": "Grant CLI — profiles, REST API, and typings generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"commander": "^15.0.0",
|
|
48
|
-
"inquirer": "^14.2.
|
|
48
|
+
"inquirer": "^14.2.3"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/inquirer": "^9.0.10",
|
|
52
|
-
"@types/node": "^26.6.
|
|
53
|
-
"eslint": "^10.
|
|
52
|
+
"@types/node": "^26.6.4",
|
|
53
|
+
"eslint": "^10.12.0",
|
|
54
54
|
"@typescript/native": "npm:typescript@^7.0.2",
|
|
55
55
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
|
56
|
-
"vite": "^8.3.
|
|
57
|
-
"vite-plugin-dts": "^5.1.
|
|
58
|
-
"vitest": "^5.0.
|
|
56
|
+
"vite": "^8.3.2",
|
|
57
|
+
"vite-plugin-dts": "^5.1.2",
|
|
58
|
+
"vitest": "^5.0.3"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=18.0.0"
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"lint:fix": "eslint src --ext .ts --fix",
|
|
69
69
|
"test": "vitest",
|
|
70
70
|
"test:run": "vitest run",
|
|
71
|
+
"vendor-openapi": "node ../../../scripts/vendor-cli-openapi.mjs",
|
|
71
72
|
"test:watch": "vitest",
|
|
72
73
|
"clean": "rm -rf dist"
|
|
73
74
|
}
|