@company-semantics/contracts 0.105.0 → 0.106.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/package.json +1 -1
- package/src/impersonation.ts +3 -1
- package/src/index.ts +1 -1
- package/src/types/analytics.ts +8 -0
package/package.json
CHANGED
package/src/impersonation.ts
CHANGED
|
@@ -32,7 +32,8 @@ export type RestrictedImpersonationAction =
|
|
|
32
32
|
| 'rotate_credentials'
|
|
33
33
|
| 'invite_remove_users'
|
|
34
34
|
| 'accept_agreements'
|
|
35
|
-
| 'irreversible_write'
|
|
35
|
+
| 'irreversible_write'
|
|
36
|
+
| 'manage_auth';
|
|
36
37
|
|
|
37
38
|
// All restricted actions as a const array for runtime checks
|
|
38
39
|
export const RESTRICTED_IMPERSONATION_ACTIONS: readonly RestrictedImpersonationAction[] = [
|
|
@@ -43,6 +44,7 @@ export const RESTRICTED_IMPERSONATION_ACTIONS: readonly RestrictedImpersonationA
|
|
|
43
44
|
'invite_remove_users',
|
|
44
45
|
'accept_agreements',
|
|
45
46
|
'irreversible_write',
|
|
47
|
+
'manage_auth',
|
|
46
48
|
] as const;
|
|
47
49
|
|
|
48
50
|
// Impersonation-specific company capability
|
package/src/index.ts
CHANGED
|
@@ -557,4 +557,4 @@ export { wrapSecret, unwrapSecret } from './security/index'
|
|
|
557
557
|
|
|
558
558
|
// Analytics response metadata (shared vocabulary for OLTP/OLAP separation)
|
|
559
559
|
// @see ADR-CTRL-053 for design rationale
|
|
560
|
-
export type { AnalyticsResponseMeta } from './types/analytics'
|
|
560
|
+
export type { AnalyticsBackend, AnalyticsResponseMeta } from './types/analytics'
|
package/src/types/analytics.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supported analytics backend identifiers.
|
|
3
|
+
* Used by TierResolution to indicate which analytics backend to route to.
|
|
4
|
+
*
|
|
5
|
+
* See ADR-CTRL-053 for the full analytics separation decision framework.
|
|
6
|
+
*/
|
|
7
|
+
export type AnalyticsBackend = 'clickhouse';
|
|
8
|
+
|
|
1
9
|
/**
|
|
2
10
|
* Metadata included in every analytics-backed API response.
|
|
3
11
|
* Enables consumers to know data freshness and which backend served the query.
|