@owlmeans/api-config 0.1.18-rc.1 → 0.1.18-rc.10
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 +7 -7
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/api-config/SKILL.md +1 -1
- package/build/consts.js +2 -2
- package/build/consts.js.map +1 -1
- package/build/entrypoints.d.ts +2 -0
- package/build/entrypoints.d.ts.map +1 -0
- package/build/{modules.js → entrypoints.js} +2 -2
- package/build/entrypoints.js.map +1 -0
- package/build/index.d.ts +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/types.d.ts +1 -1
- package/build/types.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/consts.ts +2 -2
- package/src/{modules.ts → entrypoints.ts} +1 -1
- package/src/index.ts +1 -1
- package/src/types.ts +1 -1
- package/build/.gitkeep +0 -0
- package/build/modules.d.ts +0 -2
- package/build/modules.d.ts.map +0 -1
- package/build/modules.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# @owlmeans/api-config
|
|
2
2
|
|
|
3
|
-
Shared
|
|
3
|
+
Shared entrypoint for advertising safe config values from server to client via a REST endpoint.
|
|
4
4
|
|
|
5
5
|
## Overview
|
|
6
6
|
|
|
7
|
-
- Exposes a `GET /assets/config.json`
|
|
7
|
+
- Exposes a `GET /assets/config.json` entrypoint that returns non-sensitive config fields
|
|
8
8
|
- `ApiConfig` — the advertised config type (subset of `CommonConfig`)
|
|
9
|
-
- `API_CONFIG` —
|
|
9
|
+
- `API_CONFIG` — entrypoint alias for the config endpoint
|
|
10
10
|
- `notAdvertizedConfigKeys` / `allowedConfigRecords` — lists controlling what is/isn't exposed
|
|
11
11
|
|
|
12
12
|
## Installation
|
|
@@ -17,7 +17,7 @@ bun add @owlmeans/api-config
|
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
19
19
|
|
|
20
|
-
Use with server and client counterparts — this package provides the shared types and
|
|
20
|
+
Use with server and client counterparts — this package provides the shared types and entrypoint alias:
|
|
21
21
|
|
|
22
22
|
```typescript
|
|
23
23
|
import { API_CONFIG } from '@owlmeans/api-config'
|
|
@@ -32,15 +32,15 @@ Subset of `CommonConfig` safe to expose to clients (no db credentials, secrets,
|
|
|
32
32
|
|
|
33
33
|
### `API_CONFIG`
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
Entrypoint alias `'api-config:advertise'` used to register/call the config endpoint.
|
|
36
36
|
|
|
37
|
-
### `
|
|
37
|
+
### `entrypoints`
|
|
38
38
|
|
|
39
39
|
Array of route definitions for the config advertisement endpoint.
|
|
40
40
|
|
|
41
41
|
## Related Packages
|
|
42
42
|
|
|
43
|
-
- [`@owlmeans/api-config-server`](../api-config-server) — server-side
|
|
43
|
+
- [`@owlmeans/api-config-server`](../api-config-server) — server-side entrypoint that serves the config
|
|
44
44
|
- [`@owlmeans/api-config-client`](../api-config-client) — client middleware that fetches and merges config
|
|
45
45
|
|
|
46
46
|
<!-- owlmeans:agent-guidance:start -->
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"package": "@owlmeans/api-config",
|
|
4
|
-
"version": "0.1.18-rc.
|
|
5
|
-
"generatedAt": "2026-
|
|
4
|
+
"version": "0.1.18-rc.10",
|
|
5
|
+
"generatedAt": "2026-09-01T16:28:56.996Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
package/build/consts.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export const API_CONFIG = 'api-config:advertise';
|
|
2
2
|
export const notAdvertizedConfigKeys = [
|
|
3
|
-
'dbs', 'trusted', 'ready', 'service', '
|
|
4
|
-
'
|
|
3
|
+
'dbs', 'trusted', 'ready', 'service', 'type',
|
|
4
|
+
'records', 'webService', 'oidc', 'storageBuckets',
|
|
5
5
|
'secrets',
|
|
6
6
|
];
|
|
7
7
|
export const allowedConfigRecords = [
|
package/build/consts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,UAAU,GAAG,sBAAsB,CAAA;AAEhD,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,UAAU,GAAG,sBAAsB,CAAA;AAEhD,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM;IAC5C,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,gBAAgB;IACjD,SAAS;CACV,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,MAAM,EAAE,SAAS,EAAE,MAAM;CAC1B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entrypoints.d.ts","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,mDAEvB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { entrypoint } from '@owlmeans/entrypoint';
|
|
2
2
|
import { route } from '@owlmeans/route';
|
|
3
3
|
import { API_CONFIG } from './consts.js';
|
|
4
|
-
export const
|
|
4
|
+
export const entrypoints = [
|
|
5
5
|
entrypoint(route(API_CONFIG, '/assets/config.json'), { sticky: true }),
|
|
6
6
|
];
|
|
7
|
-
//# sourceMappingURL=
|
|
7
|
+
//# sourceMappingURL=entrypoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entrypoints.js","sourceRoot":"","sources":["../src/entrypoints.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAExC,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,UAAU,CAAC,KAAK,CAAC,UAAU,EAAE,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;CACvE,CAAA"}
|
package/build/index.d.ts
CHANGED
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,mBAAmB,YAAY,CAAA;AAE/B,cAAc,aAAa,CAAA;AAC3B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,mBAAmB,YAAY,CAAA;AAE/B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA"}
|
package/build/index.js
CHANGED
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAA;AAC3B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA"}
|
package/build/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CommonConfig } from '@owlmeans/config';
|
|
2
|
-
export interface ApiConfig extends Omit<CommonConfig, 'dbs' | 'trusted' | 'ready' | 'service' | '
|
|
2
|
+
export interface ApiConfig extends Omit<CommonConfig, 'dbs' | 'trusted' | 'ready' | 'service' | 'type'> {
|
|
3
3
|
}
|
|
4
4
|
//# sourceMappingURL=types.d.ts.map
|
package/build/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpD,MAAM,WAAW,SAAU,SAAQ,IAAI,CACrC,YAAY,EACZ,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpD,MAAM,WAAW,SAAU,SAAQ,IAAI,CACrC,YAAY,EACZ,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CACjD;CACA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/api-config",
|
|
3
|
-
"version": "0.1.18-rc.
|
|
3
|
+
"version": "0.1.18-rc.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@owlmeans/config": "^0.1.18-rc.
|
|
25
|
-
"@owlmeans/entrypoint": "^0.1.18-rc.
|
|
26
|
-
"@owlmeans/route": "^0.1.18-rc.
|
|
24
|
+
"@owlmeans/config": "^0.1.18-rc.10",
|
|
25
|
+
"@owlmeans/entrypoint": "^0.1.18-rc.9",
|
|
26
|
+
"@owlmeans/route": "^0.1.18-rc.7"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@owlmeans/dep-config": "workspace:*",
|
package/src/consts.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
export const API_CONFIG = 'api-config:advertise'
|
|
3
3
|
|
|
4
4
|
export const notAdvertizedConfigKeys = [
|
|
5
|
-
'dbs', 'trusted', 'ready', 'service', '
|
|
6
|
-
'
|
|
5
|
+
'dbs', 'trusted', 'ready', 'service', 'type',
|
|
6
|
+
'records', 'webService', 'oidc', 'storageBuckets',
|
|
7
7
|
'secrets',
|
|
8
8
|
]
|
|
9
9
|
|
|
@@ -2,6 +2,6 @@ import { entrypoint } from '@owlmeans/entrypoint'
|
|
|
2
2
|
import { route } from '@owlmeans/route'
|
|
3
3
|
import { API_CONFIG } from './consts.js'
|
|
4
4
|
|
|
5
|
-
export const
|
|
5
|
+
export const entrypoints = [
|
|
6
6
|
entrypoint(route(API_CONFIG, '/assets/config.json'), { sticky: true }),
|
|
7
7
|
]
|
package/src/index.ts
CHANGED
package/src/types.ts
CHANGED
package/build/.gitkeep
DELETED
|
File without changes
|
package/build/modules.d.ts
DELETED
package/build/modules.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO,mDAEnB,CAAA"}
|
package/build/modules.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modules.js","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAExC,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,UAAU,CAAC,KAAK,CAAC,UAAU,EAAE,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;CACvE,CAAA"}
|