@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 CHANGED
@@ -1,12 +1,12 @@
1
1
  # @owlmeans/api-config
2
2
 
3
- Shared module for advertising safe config values from server to client via a REST endpoint.
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` module that returns non-sensitive config fields
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` — module alias for the config endpoint
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 module alias:
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
- Module alias `'api-config:advertise'` used to register/call the config endpoint.
35
+ Entrypoint alias `'api-config:advertise'` used to register/call the config endpoint.
36
36
 
37
- ### `modules`
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 module that serves the config
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 -->
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "package": "@owlmeans/api-config",
4
- "version": "0.1.18-rc.0",
5
- "generatedAt": "2026-08-16T22:20:50.515Z",
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
  {
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/api-config
9
9
 
10
10
  **Layer:** Core
11
- **Install:** `"@owlmeans/api-config": "^0.1.18-rc.0"` in `dependencies`
11
+ **Install:** `"@owlmeans/api-config": "^0.1.18-rc.10"` in `dependencies`
12
12
 
13
13
  ## Key Exports
14
14
 
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', 'layer', 'type',
4
- 'layerId', 'records', 'webService', 'oidc', 'storageBuckets',
3
+ 'dbs', 'trusted', 'ready', 'service', 'type',
4
+ 'records', 'webService', 'oidc', 'storageBuckets',
5
5
  'secrets',
6
6
  ];
7
7
  export const allowedConfigRecords = [
@@ -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,OAAO,EAAE,MAAM;IACrD,SAAS,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,gBAAgB;IAC5D,SAAS;CACV,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,MAAM,EAAE,SAAS,EAAE,MAAM;CAC1B,CAAA"}
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,2 @@
1
+ export declare const entrypoints: import("@owlmeans/entrypoint").CommonEntrypoint[];
2
+ //# sourceMappingURL=entrypoints.d.ts.map
@@ -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 modules = [
4
+ export const entrypoints = [
5
5
  entrypoint(route(API_CONFIG, '/assets/config.json'), { sticky: true }),
6
6
  ];
7
- //# sourceMappingURL=modules.js.map
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
@@ -1,4 +1,4 @@
1
1
  export type * from './types.js';
2
2
  export * from './consts.js';
3
- export * from './modules.js';
3
+ export * from './entrypoints.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -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,cAAc,CAAA"}
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
@@ -1,3 +1,3 @@
1
1
  export * from './consts.js';
2
- export * from './modules.js';
2
+ export * from './entrypoints.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA"}
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' | 'layer' | 'type' | 'layerId'> {
2
+ export interface ApiConfig extends Omit<CommonConfig, 'dbs' | 'trusted' | 'ready' | 'service' | 'type'> {
3
3
  }
4
4
  //# sourceMappingURL=types.d.ts.map
@@ -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,OAAO,GAAG,MAAM,GAAG,SAAS,CACvE;CACA"}
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.1",
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.1",
25
- "@owlmeans/entrypoint": "^0.1.18-rc.1",
26
- "@owlmeans/route": "^0.1.18-rc.1"
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', 'layer', 'type',
6
- 'layerId', 'records', 'webService', 'oidc', 'storageBuckets',
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 modules = [
5
+ export const entrypoints = [
6
6
  entrypoint(route(API_CONFIG, '/assets/config.json'), { sticky: true }),
7
7
  ]
package/src/index.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  export type * from './types.js'
3
3
 
4
4
  export * from './consts.js'
5
- export * from './modules.js'
5
+ export * from './entrypoints.js'
package/src/types.ts CHANGED
@@ -2,6 +2,6 @@ import type { CommonConfig } from '@owlmeans/config'
2
2
 
3
3
  export interface ApiConfig extends Omit<
4
4
  CommonConfig,
5
- 'dbs' | 'trusted' | 'ready' | 'service' | 'layer' | 'type' | 'layerId'
5
+ 'dbs' | 'trusted' | 'ready' | 'service' | 'type'
6
6
  > {
7
7
  }
package/build/.gitkeep DELETED
File without changes
@@ -1,2 +0,0 @@
1
- export declare const modules: import("@owlmeans/entrypoint").CommonEntrypoint[];
2
- //# sourceMappingURL=modules.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modules.d.ts","sourceRoot":"","sources":["../src/modules.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO,mDAEnB,CAAA"}
@@ -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"}