@company-semantics/contracts 0.67.1 → 0.69.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "0.67.1",
3
+ "version": "0.69.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/src/index.ts CHANGED
@@ -232,12 +232,6 @@ export type {
232
232
  IdentityTrustLevel,
233
233
  TransferEligibilityResult,
234
234
  TransferMemberEligibility,
235
- // Management Tier types (PRD-00155)
236
- ManagementTier,
237
- PromotionStatus,
238
- PromotionRequest,
239
- PromotionRecord,
240
- PromotionReadinessResult,
241
235
  // Strategy domain types (PRD-00173)
242
236
  StrategyVisibility,
243
237
  StrategyDocLevel,
@@ -247,7 +241,7 @@ export type {
247
241
  StrategyDoc,
248
242
  } from './org/index'
249
243
 
250
- export { ROLE_DISPLAY_MAP, WORKSPACE_CAPABILITIES, ROLE_CAPABILITY_MAP, VIEW_SCOPE_MAP, getViewScope, TRANSFER_RESPONSIBILITIES, IDENTITY_TRUST_LEVEL_LABELS, MANAGEMENT_TIER_LABELS } from './org/index'
244
+ export { ROLE_DISPLAY_MAP, WORKSPACE_CAPABILITIES, ROLE_CAPABILITY_MAP, VIEW_SCOPE_MAP, getViewScope, TRANSFER_RESPONSIBILITIES, IDENTITY_TRUST_LEVEL_LABELS } from './org/index'
251
245
 
252
246
  // View authorization types (Phase 5 - ADR-APP-013)
253
247
  export type { AuthorizableView } from './org/index'
package/src/org/domain.ts CHANGED
@@ -9,11 +9,11 @@
9
9
  * Status of a domain claim within an organization.
10
10
  * - 'pending': Domain claimed but not yet verified
11
11
  * - 'verified': Domain ownership confirmed via DNS TXT record
12
- * - 'revoked': Domain claim revoked by org owner
13
12
  *
14
13
  * INVARIANT: Only ONE org may have status='verified' for any domain globally.
14
+ * @see ADR-BE-070 (revoked status removed — domains are hard-deleted instead)
15
15
  */
16
- export type DomainStatus = 'pending' | 'verified' | 'revoked';
16
+ export type DomainStatus = 'pending' | 'verified';
17
17
 
18
18
  /**
19
19
  * Method used to verify domain ownership.
@@ -38,7 +38,7 @@ export interface OrgDomain {
38
38
  verificationMethod: DomainVerificationMethod;
39
39
  /** Verification token - only visible to org owner. */
40
40
  verificationToken?: string;
41
- /** ISO8601 timestamp when domain was verified, null if pending/revoked. */
41
+ /** ISO8601 timestamp when domain was verified, null if pending. */
42
42
  verifiedAt: string | null;
43
43
  /** ISO8601 timestamp when claim was created. */
44
44
  createdAt: string;
@@ -58,7 +58,7 @@ export type Phase4AuditAction =
58
58
  // Domain lifecycle
59
59
  | 'org.domain.claimed'
60
60
  | 'org.domain.verified'
61
- | 'org.domain.revoked'
61
+ | 'org.domain.deleted'
62
62
  // Auth policy enforcement
63
63
  | 'org.auth_policy.enforced'
64
64
  | 'org.auth_policy.override_used' // Emergency SSO bypass succeeded
package/src/org/index.ts CHANGED
@@ -47,15 +47,9 @@ export type {
47
47
  IdentityTrustLevel,
48
48
  TransferEligibilityResult,
49
49
  TransferMemberEligibility,
50
- // Management Tier types (PRD-00155)
51
- ManagementTier,
52
- PromotionStatus,
53
- PromotionRequest,
54
- PromotionRecord,
55
- PromotionReadinessResult,
56
50
  } from './types';
57
51
 
58
- export { ROLE_DISPLAY_MAP, TRANSFER_RESPONSIBILITIES, IDENTITY_TRUST_LEVEL_LABELS, MANAGEMENT_TIER_LABELS } from './types';
52
+ export { ROLE_DISPLAY_MAP, TRANSFER_RESPONSIBILITIES, IDENTITY_TRUST_LEVEL_LABELS } from './types';
59
53
 
60
54
  // Workspace capability types (Phase 3)
61
55
  export type { WorkspaceCapability } from './capabilities';
package/src/org/types.ts CHANGED
@@ -463,58 +463,6 @@ export interface TransferMemberEligibility {
463
463
  readonly domainMatch: boolean;
464
464
  }
465
465
 
466
- // =============================================================================
467
- // Management Tier Types (PRD-00155)
468
- // Workspace governance level and promotion ceremony vocabulary.
469
- // =============================================================================
470
-
471
- /** Workspace governance level */
472
- export type ManagementTier = 'grassroots' | 'company_managed';
473
-
474
- export const MANAGEMENT_TIER_LABELS: Record<ManagementTier, { label: string; description: string }> = {
475
- grassroots: {
476
- label: 'Community workspace',
477
- description: 'Community-originated workspace with no special governance constraints.',
478
- },
479
- company_managed: {
480
- label: 'Company-managed workspace',
481
- description: 'Domain verified, SSO enforced, ownership formally established.',
482
- },
483
- } as const;
484
-
485
- /** Wizard progress tracking */
486
- export type PromotionStatus = 'not_started' | 'in_progress' | 'completed';
487
-
488
- /** Promotion ceremony state */
489
- export interface PromotionRequest {
490
- readonly orgId: string;
491
- readonly promotedBy: string;
492
- readonly ownershipConfirmed: boolean;
493
- readonly domainVerified: boolean;
494
- readonly ssoConfigured: boolean;
495
- readonly responsibilityAcknowledged: boolean;
496
- }
497
-
498
- /** Audit record for completed promotion */
499
- export interface PromotionRecord {
500
- readonly orgId: string;
501
- readonly promotedAt: string;
502
- readonly promotedBy: string;
503
- readonly previousTier: ManagementTier;
504
- readonly newTier: ManagementTier;
505
- }
506
-
507
- /** Readiness check output */
508
- export interface PromotionReadinessResult {
509
- readonly ready: boolean;
510
- readonly checks: ReadonlyArray<{
511
- readonly id: string;
512
- readonly label: string;
513
- readonly passed: boolean;
514
- readonly reason?: string;
515
- }>;
516
- }
517
-
518
466
  /**
519
467
  * Status of an integration request from a member.
520
468
  */
@@ -19,8 +19,8 @@ export const VIEW_SCOPE_MAP = {
19
19
  // Protected views (require specific scope)
20
20
  workspace: 'org.view_workspace',
21
21
  timeline: 'org.view_timeline',
22
- dashboard: 'org.view_dashboard',
23
- 'organization-strategy': 'org.view_strategy',
22
+ activity: 'org.view_activity',
23
+ strategy: 'org.view_strategy',
24
24
  'internal-admin': 'internal.view_admin',
25
25
  // Public views (require only authentication)
26
26
  chat: null,