@company-semantics/contracts 0.57.0 → 0.58.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.57.0",
3
+ "version": "0.58.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/src/index.ts CHANGED
@@ -154,8 +154,6 @@ export type {
154
154
  WorkspaceMember,
155
155
  AuthMethodConfig,
156
156
  WorkspaceAuthConfig,
157
- IntegrationStatus,
158
- WorkspaceIntegration,
159
157
  WorkspaceAuditEvent,
160
158
  // Workspace expansion DTOs (Phase 3)
161
159
  // @see ADR-CONT-031 for design rationale
@@ -167,8 +165,6 @@ export type {
167
165
  ChangeMemberRoleRequest,
168
166
  OrgAuthPolicy,
169
167
  UpdateAuthPolicyRequest,
170
- PromoteIntegrationRequest,
171
- DemoteIntegrationRequest,
172
168
  Phase3AuditAction,
173
169
  // Workspace capability types (Phase 3)
174
170
  WorkspaceCapability,
package/src/org/index.ts CHANGED
@@ -17,8 +17,6 @@ export type {
17
17
  WorkspaceMember,
18
18
  AuthMethodConfig,
19
19
  WorkspaceAuthConfig,
20
- IntegrationStatus,
21
- WorkspaceIntegration,
22
20
  WorkspaceAuditEvent,
23
21
  // Workspace expansion DTOs (Phase 3)
24
22
  OrgInviteStatus,
@@ -29,8 +27,6 @@ export type {
29
27
  ChangeMemberRoleRequest,
30
28
  OrgAuthPolicy,
31
29
  UpdateAuthPolicyRequest,
32
- PromoteIntegrationRequest,
33
- DemoteIntegrationRequest,
34
30
  Phase3AuditAction,
35
31
  // Multi-org membership types (Phase 4)
36
32
  UserOrgMembership,
package/src/org/types.ts CHANGED
@@ -134,34 +134,6 @@ export interface WorkspaceAuthConfig {
134
134
  };
135
135
  }
136
136
 
137
- /**
138
- * Integration connection status.
139
- */
140
- export type IntegrationStatus = 'active' | 'expired' | 'revoked';
141
-
142
- /**
143
- * Workspace integration for the integrations list.
144
- * Shows connections visible to workspace admins.
145
- *
146
- * SECURITY: connectedBy.id should be empty string (not exposed for security).
147
- * lastActivity is aggregated to reduce precision for timing attack mitigation.
148
- * @see security-safety-reviewer finding: Excessive Information Disclosure
149
- */
150
- export interface WorkspaceIntegration {
151
- id: string;
152
- provider: string;
153
- status: IntegrationStatus;
154
- connectedBy: {
155
- /** Always empty string for security (user IDs not exposed) */
156
- id: string;
157
- /** Name of the user who connected this integration, or 'A team member' if unknown */
158
- name: string;
159
- };
160
- executionScope: ExecutionScope;
161
- /** Aggregated last activity (e.g., 'within the last day', 'within the last week') */
162
- lastActivity: string | null;
163
- }
164
-
165
137
  /**
166
138
  * Audit event for the workspace audit log.
167
139
  * Filtered to spec events only (server-side).
@@ -260,25 +232,6 @@ export interface UpdateAuthPolicyRequest {
260
232
  allowedProviders?: string[];
261
233
  }
262
234
 
263
- /**
264
- * Request payload for promoting an integration to org scope.
265
- *
266
- * INVARIANT: acknowledgedRisk must be true to prove explicit intent.
267
- * @see Phase 3 Invariant #15: Blast radius acknowledgment
268
- */
269
- export interface PromoteIntegrationRequest {
270
- /** User must acknowledge the blast radius of org-wide access */
271
- acknowledgedRisk: boolean;
272
- }
273
-
274
- /**
275
- * Request payload for demoting an integration to self scope.
276
- */
277
- export interface DemoteIntegrationRequest {
278
- /** Optional reason for demotion */
279
- reason?: string;
280
- }
281
-
282
235
  // =============================================================================
283
236
  // Phase 3 Audit Action Types
284
237
  // @see ADR-CONT-031 for design rationale