@viaalink/caddy-api-client 0.0.0-stage → 0.10.1

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/package.json CHANGED
@@ -1,6 +1,170 @@
1
1
  {
2
2
  "name": "@viaalink/caddy-api-client",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.10.1",
4
+ "description": "TypeScript client for Caddy Admin API with MITMproxy integration",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ },
14
+ "./caddy": {
15
+ "types": "./dist/caddy/index.d.ts",
16
+ "import": "./dist/caddy/index.js"
17
+ },
18
+ "./mitm": {
19
+ "types": "./dist/mitm/index.d.ts",
20
+ "import": "./dist/mitm/index.js"
21
+ },
22
+ "./caddy-types": {
23
+ "types": "./dist/caddy-types.d.ts",
24
+ "import": "./dist/caddy-types.js"
25
+ },
26
+ "./plugins": {
27
+ "types": "./dist/plugins/index.d.ts",
28
+ "import": "./dist/plugins/index.js"
29
+ },
30
+ "./plugins/caddy-security": {
31
+ "types": "./dist/plugins/caddy-security/index.d.ts",
32
+ "import": "./dist/plugins/caddy-security/index.js"
33
+ },
34
+ "./plugins/caddy-dns": {
35
+ "types": "./dist/plugins/caddy-dns/index.d.ts",
36
+ "import": "./dist/plugins/caddy-dns/index.js"
37
+ },
38
+ "./extension-assets": {
39
+ "types": "./dist/generated/extension-assets.d.ts",
40
+ "import": "./dist/generated/extension-assets.js"
41
+ }
42
+ },
43
+ "files": [
44
+ "dist",
45
+ "README.md",
46
+ "LICENSE"
47
+ ],
48
+ "scripts": {
49
+ "build": "tsup",
50
+ "dev": "tsup --watch",
51
+ "test": "vitest run src/__tests__",
52
+ "test:watch": "vitest watch",
53
+ "test:coverage": "bun run test:coverage:unit && bun run test:coverage:integration && echo '\n================================================\nCoverage Reports Summary\n================================================\n' && echo 'Unit Test Coverage: coverage/unit/index.html' && echo 'Integration Test Coverage: coverage/integration/index.html\n'",
54
+ "test:coverage:unit": "echo '================================================\nRunning Unit Test Coverage\n================================================\n' && vitest run --coverage",
55
+ "test:coverage:integration": "echo '\n================================================\nRunning Integration Tests (bun)\n================================================\n' && INTEGRATION_TEST=true bun test src/__tests__/integration/",
56
+ "test:integration": "INTEGRATION_TEST=true bun test src/__tests__/integration/ --no-coverage",
57
+ "test:fuzz": "FUZZ_TEST=true vitest run src/__tests__/fuzz --no-coverage",
58
+ "test:playwright": "playwright test",
59
+ "test:auth-types": "playwright test src/__tests__/playwright/",
60
+ "test:oauth": "playwright test src/__tests__/playwright/oauth-flow.spec.ts",
61
+ "test:oauth:enhanced": "playwright test src/__tests__/playwright/oauth-flow-enhanced.spec.ts",
62
+ "docker:oauth:up": "docker compose -f tests/integration/docker-compose.oauth.yml up -d",
63
+ "docker:oauth:down": "docker compose -f tests/integration/docker-compose.oauth.yml down",
64
+ "test:keycloak": "playwright test src/__tests__/playwright/keycloak-oidc.spec.ts",
65
+ "docker:keycloak:up": "docker compose -f tests/integration/docker-compose.keycloak.yml up -d",
66
+ "docker:keycloak:down": "docker compose -f tests/integration/docker-compose.keycloak.yml down",
67
+ "test:ldap": "playwright test src/__tests__/playwright/ldap-identity-store.spec.ts",
68
+ "test:ldap:http": "playwright test src/__tests__/playwright/ldap-http-auth.spec.ts",
69
+ "docker:ldap:up": "docker compose -f tests/integration/docker-compose.ldap.yml up -d",
70
+ "docker:ldap:down": "docker compose -f tests/integration/docker-compose.ldap.yml down",
71
+ "docker:caddy-security-ldap:up": "docker compose -f tests/integration/docker-compose.caddy-security-ldap.yml up -d --build",
72
+ "docker:caddy-security-ldap:down": "docker compose -f tests/integration/docker-compose.caddy-security-ldap.yml down",
73
+ "test:saml": "playwright test src/__tests__/playwright/saml-flow.spec.ts",
74
+ "docker:saml:up": "docker compose -f tests/integration/docker-compose.saml.yml up -d",
75
+ "docker:saml:down": "docker compose -f tests/integration/docker-compose.saml.yml down",
76
+ "test:authentik": "playwright test src/__tests__/playwright/authentik-advanced.spec.ts",
77
+ "docker:authentik:up": "docker compose -f tests/integration/docker-compose.authentik.yml up -d",
78
+ "docker:authentik:down": "docker compose -f tests/integration/docker-compose.authentik.yml down -v",
79
+ "test:caddy-security": "playwright test src/__tests__/playwright/caddy-security-portal.spec.ts",
80
+ "test:oidc-flow": "playwright test src/__tests__/playwright/caddy-security-oidc-flow.spec.ts",
81
+ "test:auth:security": "playwright test src/__tests__/playwright/auth-security-advanced.spec.ts",
82
+ "test:auth:claims": "playwright test src/__tests__/playwright/auth-claims-injection.spec.ts",
83
+ "docker:caddy-security:up": "docker compose -f tests/integration/docker-compose.caddy-security.yml up -d --build",
84
+ "docker:caddy-security:down": "docker compose -f tests/integration/docker-compose.caddy-security.yml down",
85
+ "typecheck": "tsc --noEmit",
86
+ "lint": "eslint . --max-warnings=0",
87
+ "format": "prettier --write .",
88
+ "format:check": "prettier --check .",
89
+ "docs:build": "typedoc",
90
+ "docs:serve": "typedoc && npx http-server docs/api -o",
91
+ "release": "standard-version",
92
+ "release:minor": "standard-version --release-as minor",
93
+ "release:major": "standard-version --release-as major",
94
+ "release:dry": "standard-version --dry-run",
95
+ "release:first": "standard-version --first-release",
96
+ "prerelease": "bun run build && bun run test && bun run typecheck && bun run lint",
97
+ "verify:pack": "npm pack --dry-run",
98
+ "verify:publish": "npm publish --dry-run",
99
+ "prepare": "husky",
100
+ "prepack": "bun run build",
101
+ "prepublishOnly": "bun run build && bun run test && bun run typecheck && bun run lint",
102
+ "generate:types": "npx tsx scripts/generate-caddy-types.ts",
103
+ "generate:plugin-types": "npx tsx scripts/generate-plugin-types.ts",
104
+ "generate:extension": "npx tsx scripts/extract-metadata.ts",
105
+ "generate:json-schemas": "npx tsx scripts/generate-json-schemas.ts",
106
+ "generate:all": "npm run generate:types && npm run generate:plugin-types && npm run generate:extension && npm run generate:json-schemas",
107
+ "sync:caddy": "git -C local/caddy pull && npm run generate:types",
108
+ "sync:plugins": "git -C local/caddy-security pull && npm run generate:plugin-types",
109
+ "sync:all": "npm run sync:caddy && npm run sync:plugins"
110
+ },
111
+ "keywords": [
112
+ "caddy",
113
+ "reverse-proxy",
114
+ "tls",
115
+ "mitmproxy",
116
+ "api-client",
117
+ "typescript"
118
+ ],
119
+ "author": "Viaalink <info@viaalink.com> (https://viaalink.com)",
120
+ "license": "MIT",
121
+ "repository": {
122
+ "type": "git",
123
+ "url": "https://github.com/viaalink/asd-caddy-api-client.git"
124
+ },
125
+ "bugs": {
126
+ "url": "https://github.com/viaalink/asd-caddy-api-client/issues"
127
+ },
128
+ "homepage": "https://viaalink.com",
129
+ "documentation": "https://viaalink.github.io/asd-caddy-api-client",
130
+ "publishConfig": {
131
+ "access": "public",
132
+ "registry": "https://registry.npmjs.org/"
133
+ },
134
+ "peerDependencies": {
135
+ "zod": "^3.22.0"
136
+ },
137
+ "peerDependenciesMeta": {
138
+ "bcrypt": {
139
+ "optional": true
140
+ }
141
+ },
142
+ "devDependencies": {
143
+ "@eslint/js": "^9.32.0",
144
+ "@playwright/test": "^1.57.0",
145
+ "@types/node": "^22.0.0",
146
+ "@vitest/coverage-v8": "^5.0.3",
147
+ "ajv": "^8.17.1",
148
+ "bcryptjs": "^3.0.3",
149
+ "eslint": "^9.32.0",
150
+ "globals": "^15.12.0",
151
+ "husky": "^9.1.6",
152
+ "jsonc-parser": "^3.3.1",
153
+ "prettier": "^3.6.2",
154
+ "standard-version": "^9.5.0",
155
+ "ts-to-zod": "^5.1.0",
156
+ "tsup": "^8.0.1",
157
+ "typedoc": "^0.28.14",
158
+ "typescript": "^5.3.3",
159
+ "typescript-eslint": "^8.0.0",
160
+ "vitest": "^5.0.3",
161
+ "zod": "^3.22.4",
162
+ "zod-to-json-schema": "^3.25.1"
163
+ },
164
+ "engines": {
165
+ "node": ">=18.0.0"
166
+ },
167
+ "dependencies": {
168
+ "@peculiar/x509": "^1.14.2"
169
+ }
170
+ }