@company-semantics/contracts 17.0.0 → 18.1.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 +3 -3
- package/src/api/README.md +3 -3
- package/src/billing/README.md +2 -2
- package/src/chat/README.md +48 -48
- package/src/ci-envelope/README.md +13 -13
- package/src/email/README.md +7 -7
- package/src/email/__tests__/registry.test.ts +2 -2
- package/src/email/registry.ts +2 -2
- package/src/email/types.ts +2 -2
- package/src/execution/README.md +40 -40
- package/src/execution/__tests__/registry.test.ts +21 -0
- package/src/execution/kinds.ts +2 -1
- package/src/execution/registry.ts +21 -0
- package/src/generated/openapi-routes.ts +2 -2
- package/src/guards/README.md +44 -44
- package/src/identity/README.md +13 -13
- package/src/ingestion/README.md +7 -7
- package/src/mcp/README.md +4 -4
- package/src/message-parts/README.md +61 -61
- package/src/message-parts/__tests__/confirmation.test.ts +1 -0
- package/src/message-parts/confirmation.ts +1 -0
- package/src/org/README.md +114 -114
- package/src/org/schemas.ts +3 -3
- package/src/permissions/orgchart-roles.ts +1 -1
- package/src/ralph/README.md +21 -21
- package/src/system/README.md +15 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@company-semantics/contracts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
"generate:current": "tsx ../company-semantics-ci/scripts/generate-current.ts",
|
|
113
113
|
"repo-map": "tsx ../company-semantics-ci/scripts/generate-repo-map.ts --roots src --name company-semantics-contracts --write",
|
|
114
114
|
"repo-map:check": "tsx ../company-semantics-ci/scripts/generate-repo-map.ts --roots src --name company-semantics-contracts --check",
|
|
115
|
-
"readme-api": "tsx ../company-semantics-ci/scripts/generate-readme-api.ts --roots src --write",
|
|
116
|
-
"readme-api:check": "tsx ../company-semantics-ci/scripts/generate-readme-api.ts --roots src --check"
|
|
115
|
+
"readme-api": "tsx ../company-semantics-ci/scripts/generate-readme-api.ts --roots src --write --jsdoc",
|
|
116
|
+
"readme-api:check": "tsx ../company-semantics-ci/scripts/generate-readme-api.ts --roots src --check --jsdoc"
|
|
117
117
|
},
|
|
118
118
|
"packageManager": "pnpm@10.25.0",
|
|
119
119
|
"engines": {
|
package/src/api/README.md
CHANGED
|
@@ -31,14 +31,14 @@ The file is committed to the repo (not .gitignored) so consumers can import type
|
|
|
31
31
|
## Public API
|
|
32
32
|
|
|
33
33
|
- `CursorPage` _(type)_
|
|
34
|
-
- `CursorPageSchema`
|
|
34
|
+
- `CursorPageSchema` — Generic factory for cursor-paginated responses.
|
|
35
35
|
- `ErrorResponse` _(type)_
|
|
36
|
-
- `ErrorResponseSchema`
|
|
36
|
+
- `ErrorResponseSchema` — Standard error envelope — matches backend StandardErrorResponse.
|
|
37
37
|
- `SPEC_HASH`
|
|
38
38
|
- `SPEC_HASH_FULL`
|
|
39
39
|
- `components` _(type)_
|
|
40
40
|
- `operations` _(type)_
|
|
41
|
-
- `paths` _(type)_
|
|
41
|
+
- `paths` _(type)_ — This file was auto-generated by openapi-typescript.
|
|
42
42
|
|
|
43
43
|
<!-- END GENERATED: readme-public-api -->
|
|
44
44
|
|
package/src/billing/README.md
CHANGED
|
@@ -16,8 +16,8 @@ Defines the shared type vocabulary for organization billing status and plan info
|
|
|
16
16
|
|
|
17
17
|
## Public API
|
|
18
18
|
|
|
19
|
-
- `OrgBillingInfo` _(type)_
|
|
20
|
-
- `OrgPlanStatus` _(type)_
|
|
19
|
+
- `OrgBillingInfo` _(type)_ — Read-only billing information for an organization.
|
|
20
|
+
- `OrgPlanStatus` _(type)_ — Organization plan status.
|
|
21
21
|
|
|
22
22
|
<!-- END GENERATED: readme-public-api -->
|
|
23
23
|
|
package/src/chat/README.md
CHANGED
|
@@ -17,73 +17,73 @@ Shared types for chat persistence, sharing, real-time events, and runtime profil
|
|
|
17
17
|
|
|
18
18
|
## Public API
|
|
19
19
|
|
|
20
|
-
- `BaseEvent` _(type)_
|
|
20
|
+
- `BaseEvent` _(type)_ — Base envelope for all SSE events.
|
|
21
21
|
- `BaseEventSchema`
|
|
22
|
-
- `CHAT_RUNTIME_PROFILES`
|
|
23
|
-
- `ChatByInteractionResponse` _(type)_
|
|
24
|
-
- `ChatByInteractionResponseSchema`
|
|
25
|
-
- `ChatChangedField` _(type)_
|
|
22
|
+
- `CHAT_RUNTIME_PROFILES` — Ordered list of available profiles for UI rendering.
|
|
23
|
+
- `ChatByInteractionResponse` _(type)_ — Response for GET /api/chats/by-interaction/:interactionId
|
|
24
|
+
- `ChatByInteractionResponseSchema` — Response for GET /api/chats/by-interaction/:interactionId
|
|
25
|
+
- `ChatChangedField` _(type)_ — Fields that can change on a chat, used in changed array.
|
|
26
26
|
- `ChatChangedFieldSchema`
|
|
27
|
-
- `ChatCreatedEvent` _(type)_
|
|
27
|
+
- `ChatCreatedEvent` _(type)_ — Emitted exactly once after a chat is successfully persisted.
|
|
28
28
|
- `ChatCreatedEventSchema`
|
|
29
|
-
- `ChatDeletedEvent` _(type)_
|
|
29
|
+
- `ChatDeletedEvent` _(type)_ — Emitted when a chat is deleted.
|
|
30
30
|
- `ChatDeletedEventSchema`
|
|
31
|
-
- `ChatDetail` _(type)_
|
|
32
|
-
- `ChatDetailSchema`
|
|
33
|
-
- `ChatDomainEvent` _(type)_
|
|
31
|
+
- `ChatDetail` _(type)_ — Chat detail object in GET /api/chats/:id — includes interactionId for append-on-edit flows.
|
|
32
|
+
- `ChatDetailSchema` — Chat detail object in GET /api/chats/:id response.
|
|
33
|
+
- `ChatDomainEvent` _(type)_ — All domain events that carry full state.
|
|
34
34
|
- `ChatDomainEventSchema`
|
|
35
|
-
- `ChatInvalidationEvent` _(type)_
|
|
35
|
+
- `ChatInvalidationEvent` _(type)_ — All invalidation events that signal staleness.
|
|
36
36
|
- `ChatInvalidationEventSchema`
|
|
37
|
-
- `ChatListFilters` _(type)_
|
|
38
|
-
- `ChatListResponse` _(type)_
|
|
39
|
-
- `ChatListResponseSchema`
|
|
40
|
-
- `ChatMessage` _(type)_
|
|
41
|
-
- `ChatMessageSchema`
|
|
42
|
-
- `ChatRuntimeProfile` _(type)_
|
|
43
|
-
- `ChatRuntimeProfileInfo` _(type)_
|
|
44
|
-
- `ChatShareInfo` _(type)_
|
|
37
|
+
- `ChatListFilters` _(type)_ — Filters for listing chats.
|
|
38
|
+
- `ChatListResponse` _(type)_ — Response for GET /api/chats
|
|
39
|
+
- `ChatListResponseSchema` — Response for GET /api/chats
|
|
40
|
+
- `ChatMessage` _(type)_ — Individual message in a chat response (GET /api/chats/:id).
|
|
41
|
+
- `ChatMessageSchema` — Individual message in a chat, as returned by GET /api/chats/:id.
|
|
42
|
+
- `ChatRuntimeProfile` _(type)_ — Chat runtime profile — user-selectable orchestration strategy.
|
|
43
|
+
- `ChatRuntimeProfileInfo` _(type)_ — Runtime profile metadata for UI rendering.
|
|
44
|
+
- `ChatShareInfo` _(type)_ — Chat share record with snapshot metadata.
|
|
45
45
|
- `ChatShareInfoSchema`
|
|
46
|
-
- `ChatSseEvent` _(type)_
|
|
46
|
+
- `ChatSseEvent` _(type)_ — SSE event types for chat updates.
|
|
47
47
|
- `ChatSseEventSchema`
|
|
48
|
-
- `ChatSuccessResponse` _(type)_
|
|
49
|
-
- `ChatSuccessResponseSchema`
|
|
50
|
-
- `ChatSummary` _(type)_
|
|
51
|
-
- `ChatSummaryExtended` _(type)_
|
|
48
|
+
- `ChatSuccessResponse` _(type)_ — Generic mutation success confirmation.
|
|
49
|
+
- `ChatSuccessResponseSchema` — Generic success confirmation for mutations that return no entity data.
|
|
50
|
+
- `ChatSummary` _(type)_ — Lightweight chat summary for list views.
|
|
51
|
+
- `ChatSummaryExtended` _(type)_ — Extended chat summary with pin/title status.
|
|
52
52
|
- `ChatSummaryExtendedSchema`
|
|
53
53
|
- `ChatSummarySchema`
|
|
54
|
-
- `ChatUpdatedEvent` _(type)_
|
|
54
|
+
- `ChatUpdatedEvent` _(type)_ — Emitted when chat metadata changes (title, pin, etc.) Carries full current state - clients should replace…
|
|
55
55
|
- `ChatUpdatedEventSchema`
|
|
56
|
-
- `ChatVisibility` _(type)_
|
|
56
|
+
- `ChatVisibility` _(type)_ — Chat share visibility. - private: Token exists but access requires authentication as chat owner - public…
|
|
57
57
|
- `ChatVisibilitySchema`
|
|
58
|
-
- `CreateChatResponse` _(type)_
|
|
59
|
-
- `CreateChatResponseSchema`
|
|
60
|
-
- `CreateShareRequest` _(type)_
|
|
61
|
-
- `CreateShareResponse` _(type)_
|
|
62
|
-
- `CreateShareResponseSchema`
|
|
63
|
-
- `DEFAULT_CHAT_RUNTIME_PROFILE`
|
|
64
|
-
- `GetChatResponse` _(type)_
|
|
65
|
-
- `GetChatResponseSchema`
|
|
66
|
-
- `InvalidateChatEvent` _(type)_
|
|
58
|
+
- `CreateChatResponse` _(type)_ — Response for POST /api/chats
|
|
59
|
+
- `CreateChatResponseSchema` — Response for POST /api/chats
|
|
60
|
+
- `CreateShareRequest` _(type)_ — Request to create a new share for a chat.
|
|
61
|
+
- `CreateShareResponse` _(type)_ — Response for POST /api/chats/:chatId/shares
|
|
62
|
+
- `CreateShareResponseSchema` — Response for POST /api/chats/:chatId/shares
|
|
63
|
+
- `DEFAULT_CHAT_RUNTIME_PROFILE` — Default profile when none is specified in the request.
|
|
64
|
+
- `GetChatResponse` _(type)_ — Response for GET /api/chats/:id
|
|
65
|
+
- `GetChatResponseSchema` — Response for GET /api/chats/:id
|
|
66
|
+
- `InvalidateChatEvent` _(type)_ — Single-entity staleness signal.
|
|
67
67
|
- `InvalidateChatEventSchema`
|
|
68
|
-
- `InvalidateChatListEvent` _(type)_
|
|
68
|
+
- `InvalidateChatListEvent` _(type)_ — Collection staleness signal.
|
|
69
69
|
- `InvalidateChatListEventSchema`
|
|
70
|
-
- `InvalidationReason` _(type)_
|
|
70
|
+
- `InvalidationReason` _(type)_ — Reason for cache invalidation.
|
|
71
71
|
- `InvalidationReasonSchema`
|
|
72
|
-
- `IsoDateString`
|
|
73
|
-
- `ListSharesResponse` _(type)_
|
|
74
|
-
- `ListSharesResponseSchema`
|
|
75
|
-
- `SharedChatMessage` _(type)_
|
|
72
|
+
- `IsoDateString` — ISO 8601 datetime string — the runtime safety net for date serialization.
|
|
73
|
+
- `ListSharesResponse` _(type)_ — Response for GET /api/chats/:chatId/shares
|
|
74
|
+
- `ListSharesResponseSchema` — Response for GET /api/chats/:chatId/shares
|
|
75
|
+
- `SharedChatMessage` _(type)_ — Individual message in a shared chat view.
|
|
76
76
|
- `SharedChatMessageSchema`
|
|
77
|
-
- `SharedChatView` _(type)_
|
|
77
|
+
- `SharedChatView` _(type)_ — Shared chat view returned to viewers.
|
|
78
78
|
- `SharedChatViewSchema`
|
|
79
|
-
- `TitleGenerationRequest` _(type)_
|
|
80
|
-
- `TitleGenerationResponse` _(type)_
|
|
79
|
+
- `TitleGenerationRequest` _(type)_ — Request to generate a title for a chat.
|
|
80
|
+
- `TitleGenerationResponse` _(type)_ — Response from title generation.
|
|
81
81
|
- `TitleGenerationResponseSchema`
|
|
82
|
-
- `TitleSource` _(type)_
|
|
82
|
+
- `TitleSource` _(type)_ — Title source - tracks how the title was set. - auto: Generated automatically by LLM - manual: Set by user…
|
|
83
83
|
- `TitleSourceSchema`
|
|
84
|
-
- `UpdateShareRequest` _(type)_
|
|
85
|
-
- `UpdateShareResponse` _(type)_
|
|
86
|
-
- `UpdateShareResponseSchema`
|
|
84
|
+
- `UpdateShareRequest` _(type)_ — Request to update an existing share.
|
|
85
|
+
- `UpdateShareResponse` _(type)_ — Response for PATCH /api/shares/:shareId
|
|
86
|
+
- `UpdateShareResponseSchema` — Response for PATCH /api/shares/:shareId
|
|
87
87
|
|
|
88
88
|
<!-- END GENERATED: readme-public-api -->
|
|
89
89
|
|
|
@@ -17,19 +17,19 @@ Defines the shared type vocabulary for CI execution envelopes. An envelope is an
|
|
|
17
17
|
|
|
18
18
|
## Public API
|
|
19
19
|
|
|
20
|
-
- `CIActorInfo` _(type)_
|
|
21
|
-
- `CIAuthorityGrant` _(type)_
|
|
22
|
-
- `CIChangeKind` _(type)_
|
|
23
|
-
- `CIEnvelopeStatus` _(type)_
|
|
24
|
-
- `CIExecutionEnvelope` _(type)_
|
|
25
|
-
- `CIExecutionOutcome` _(type)_
|
|
26
|
-
- `CIExecutionScope` _(type)_
|
|
27
|
-
- `CIGuardPlan` _(type)_
|
|
28
|
-
- `CIGuardViolation` _(type)_
|
|
29
|
-
- `CIIntentDeclaration` _(type)_
|
|
30
|
-
- `CISessionInfo` _(type)_
|
|
31
|
-
- `ENVELOPE_TRANSITIONS`
|
|
32
|
-
- `ExecutionIntent` _(type)_
|
|
20
|
+
- `CIActorInfo` _(type)_ — Actor information for audit trail.
|
|
21
|
+
- `CIAuthorityGrant` _(type)_ — Authority grant documenting permission basis.
|
|
22
|
+
- `CIChangeKind` _(type)_ — Change kind for scope declarations.
|
|
23
|
+
- `CIEnvelopeStatus` _(type)_ — Envelope lifecycle status.
|
|
24
|
+
- `CIExecutionEnvelope` _(type)_ — CI Execution Envelope — the atomic unit of governed execution.
|
|
25
|
+
- `CIExecutionOutcome` _(type)_ — Execution outcome populated on finalization.
|
|
26
|
+
- `CIExecutionScope` _(type)_ — Execution scope defining affected repos and paths.
|
|
27
|
+
- `CIGuardPlan` _(type)_ — Guard execution plan resolved from intent + scope.
|
|
28
|
+
- `CIGuardViolation` _(type)_ — A single guard violation for post-execution audit.
|
|
29
|
+
- `CIIntentDeclaration` _(type)_ — Intent declaration with optional ADR references.
|
|
30
|
+
- `CISessionInfo` _(type)_ — Session context for correlating envelope to conversation.
|
|
31
|
+
- `ENVELOPE_TRANSITIONS` — Valid status transitions (documentation only).
|
|
32
|
+
- `ExecutionIntent` _(type)_ — Execution intent categories.
|
|
33
33
|
|
|
34
34
|
<!-- END GENERATED: readme-public-api -->
|
|
35
35
|
|
package/src/email/README.md
CHANGED
|
@@ -18,13 +18,13 @@ TypeScript types and registry for transactional email kinds and their metadata.
|
|
|
18
18
|
|
|
19
19
|
## Public API
|
|
20
20
|
|
|
21
|
-
- `EMAIL_KINDS`
|
|
22
|
-
- `EmailKind` _(type)_
|
|
23
|
-
- `EmailKindDefinition` _(type)_
|
|
24
|
-
- `EmailPayloads` _(type)_
|
|
25
|
-
- `SendEmailInput` _(type)_
|
|
26
|
-
- `getEmailKindDefinition`
|
|
27
|
-
- `isValidEmailKind`
|
|
21
|
+
- `EMAIL_KINDS` — EMAILKINDS is the authoritative registry.
|
|
22
|
+
- `EmailKind` _(type)_ — EmailKind identifies the type of transactional email.
|
|
23
|
+
- `EmailKindDefinition` _(type)_ — Complete definition for an email kind.
|
|
24
|
+
- `EmailPayloads` _(type)_ — Type-safe payload mapping for each email kind.
|
|
25
|
+
- `SendEmailInput` _(type)_ — Type-safe input for sending emails.
|
|
26
|
+
- `getEmailKindDefinition` — Type-safe registry lookup.
|
|
27
|
+
- `isValidEmailKind` — Check if a string is a valid EmailKind.
|
|
28
28
|
|
|
29
29
|
<!-- END GENERATED: readme-public-api -->
|
|
30
30
|
|
|
@@ -26,8 +26,8 @@ describe("EMAIL_KINDS golden snapshot", () => {
|
|
|
26
26
|
plainTextRequired: true,
|
|
27
27
|
htmlSupported: true,
|
|
28
28
|
},
|
|
29
|
-
"org.
|
|
30
|
-
kind: "org.
|
|
29
|
+
"org.unit_owner_granted": {
|
|
30
|
+
kind: "org.unit_owner_granted",
|
|
31
31
|
subject: "You've been added to a team",
|
|
32
32
|
plainTextRequired: true,
|
|
33
33
|
htmlSupported: true,
|
package/src/email/registry.ts
CHANGED
|
@@ -76,8 +76,8 @@ export const EMAIL_KINDS = {
|
|
|
76
76
|
plainTextRequired: true,
|
|
77
77
|
htmlSupported: true,
|
|
78
78
|
},
|
|
79
|
-
"org.
|
|
80
|
-
kind: "org.
|
|
79
|
+
"org.unit_owner_granted": {
|
|
80
|
+
kind: "org.unit_owner_granted",
|
|
81
81
|
subject: "You've been added to a team",
|
|
82
82
|
plainTextRequired: true,
|
|
83
83
|
htmlSupported: true,
|
package/src/email/types.ts
CHANGED
|
@@ -27,7 +27,7 @@ export type EmailKind =
|
|
|
27
27
|
| "auth.otp"
|
|
28
28
|
| "auth.magic_link" // future
|
|
29
29
|
| "org.invite" // future
|
|
30
|
-
| "org.
|
|
30
|
+
| "org.unit_owner_granted"
|
|
31
31
|
| "org.ownership_transfer"
|
|
32
32
|
| "org.ownership_transfer_completed"
|
|
33
33
|
| "security.alert" // future
|
|
@@ -62,7 +62,7 @@ export interface EmailPayloads {
|
|
|
62
62
|
acceptUrl: string;
|
|
63
63
|
expiresInDays: number;
|
|
64
64
|
};
|
|
65
|
-
"org.
|
|
65
|
+
"org.unit_owner_granted": {
|
|
66
66
|
/** Display name of the person who granted access */
|
|
67
67
|
granterName: string;
|
|
68
68
|
/** Display name of the recipient (optional; falls back to a neutral greeting) */
|
package/src/execution/README.md
CHANGED
|
@@ -18,62 +18,62 @@ TypeScript types and registry for execution kinds and their governance metadata.
|
|
|
18
18
|
|
|
19
19
|
## Public API
|
|
20
20
|
|
|
21
|
-
- `ApprovalRequestedMetadata` _(type)_
|
|
22
|
-
- `AuditExportBundle` _(type)_
|
|
23
|
-
- `AuditExportEvent` _(type)_
|
|
24
|
-
- `CancelledMetadata` _(type)_
|
|
21
|
+
- `ApprovalRequestedMetadata` _(type)_ — Metadata for approvalrequested event.
|
|
22
|
+
- `AuditExportBundle` _(type)_ — Top-level audit export bundle for a single execution.
|
|
23
|
+
- `AuditExportEvent` _(type)_ — Per-event shape within an audit export bundle.
|
|
24
|
+
- `CancelledMetadata` _(type)_ — Metadata for cancelled event.
|
|
25
25
|
- `ConfirmExecutionResponse` _(type)_
|
|
26
26
|
- `ConfirmExecutionResponseSchema`
|
|
27
|
-
- `ConfirmationApprovedMetadata` _(type)_
|
|
28
|
-
- `ConfirmationExpiredMetadata` _(type)_
|
|
29
|
-
- `ConfirmationRejectedMetadata` _(type)_
|
|
27
|
+
- `ConfirmationApprovedMetadata` _(type)_ — Metadata for confirmationapproved event.
|
|
28
|
+
- `ConfirmationExpiredMetadata` _(type)_ — Metadata for confirmationexpired event.
|
|
29
|
+
- `ConfirmationRejectedMetadata` _(type)_ — Metadata for confirmationrejected event.
|
|
30
30
|
- `EFFECTIVE_TERMINAL_STATES`
|
|
31
31
|
- `EXECUTION_EVENT_TYPES`
|
|
32
|
-
- `EXECUTION_KINDS`
|
|
32
|
+
- `EXECUTION_KINDS` — EXECUTIONKINDS is the authoritative registry.
|
|
33
33
|
- `EXECUTION_STATES`
|
|
34
|
-
- `EventHashFields` _(type)_
|
|
35
|
-
- `ExecutionCompletedMetadata` _(type)_
|
|
36
|
-
- `ExecutionCreatedMetadata` _(type)_
|
|
37
|
-
- `ExecutionDomain` _(type)_
|
|
34
|
+
- `EventHashFields` _(type)_ — Hash chain fields for tamper-evident execution events.
|
|
35
|
+
- `ExecutionCompletedMetadata` _(type)_ — Metadata for executioncompleted event.
|
|
36
|
+
- `ExecutionCreatedMetadata` _(type)_ — Metadata for executioncreated event.
|
|
37
|
+
- `ExecutionDomain` _(type)_ — Domain categories for execution kinds.
|
|
38
38
|
- `ExecutionError` _(type)_
|
|
39
39
|
- `ExecutionErrorCode` _(type)_
|
|
40
|
-
- `ExecutionEventMetadataMap` _(type)_
|
|
40
|
+
- `ExecutionEventMetadataMap` _(type)_ — Exhaustive mapping from ExecutionEventType to its metadata interface.
|
|
41
41
|
- `ExecutionEventType` _(type)_
|
|
42
|
-
- `ExecutionEventTypeSchema`
|
|
43
|
-
- `ExecutionFailedMetadata` _(type)_
|
|
44
|
-
- `ExecutionInitiator` _(type)_
|
|
45
|
-
- `ExecutionIntent` _(type)_
|
|
46
|
-
- `ExecutionKind` _(type)_
|
|
47
|
-
- `ExecutionKindDefinition` _(type)_
|
|
42
|
+
- `ExecutionEventTypeSchema` — Runtime-validatable form of {@link ExecutionEventType}, derived from the single source.
|
|
43
|
+
- `ExecutionFailedMetadata` _(type)_ — Metadata for executionfailed event.
|
|
44
|
+
- `ExecutionInitiator` _(type)_ — Who initiated the execution.
|
|
45
|
+
- `ExecutionIntent` _(type)_ — Governance requirements for an execution.
|
|
46
|
+
- `ExecutionKind` _(type)_ — ExecutionKind identifies the type of execution action.
|
|
47
|
+
- `ExecutionKindDefinition` _(type)_ — Complete definition for an execution kind.
|
|
48
48
|
- `ExecutionListResponse` _(type)_
|
|
49
49
|
- `ExecutionListResponseSchema`
|
|
50
|
-
- `ExecutionResultDataSchema`
|
|
50
|
+
- `ExecutionResultDataSchema` — Zod mirror of the canonical ExecutionResultData contract (message-parts/execution.ts), authored so GET…
|
|
51
51
|
- `ExecutionResultResponse` _(type)_
|
|
52
52
|
- `ExecutionResultResponseSchema`
|
|
53
53
|
- `ExecutionSseEvent` _(type)_
|
|
54
54
|
- `ExecutionSseEventSchema`
|
|
55
|
-
- `ExecutionStartedMetadata` _(type)_
|
|
55
|
+
- `ExecutionStartedMetadata` _(type)_ — Metadata for executionstarted event.
|
|
56
56
|
- `ExecutionState` _(type)_
|
|
57
|
-
- `ExecutionStateSchema`
|
|
58
|
-
- `ExecutionStatus` _(type)_
|
|
59
|
-
- `ExecutionSummary` _(type)_
|
|
57
|
+
- `ExecutionStateSchema` — Runtime-validatable form of {@link ExecutionState}, derived from the single source.
|
|
58
|
+
- `ExecutionStatus` _(type)_ — Status of an execution.
|
|
59
|
+
- `ExecutionSummary` _(type)_ — ExecutionSummary is a PROJECTION CONTRACT.
|
|
60
60
|
- `ExecutionSummaryProjectionSchema`
|
|
61
61
|
- `ExecutionSummaryResponse` _(type)_
|
|
62
62
|
- `ExecutionSummarySchema`
|
|
63
|
-
- `ExecutionTarget` _(type)_
|
|
63
|
+
- `ExecutionTarget` _(type)_ — Target of an execution action.
|
|
64
64
|
- `ExecutionTimelineResponse` _(type)_
|
|
65
65
|
- `ExecutionTimelineResponseSchema`
|
|
66
|
-
- `FrozenExecutionIntent` _(type)_
|
|
66
|
+
- `FrozenExecutionIntent` _(type)_ — Immutable governance snapshot captured at execution creation time.
|
|
67
67
|
- `GetExecutionSummaryResponse` _(type)_
|
|
68
68
|
- `GetExecutionSummaryResponseSchema`
|
|
69
|
-
- `HASH_ALGORITHM`
|
|
70
|
-
- `HASH_ENCODING`
|
|
71
|
-
- `HashChainVerificationResult` _(type)_
|
|
72
|
-
- `ISO8601Timestamp` _(type)_
|
|
73
|
-
- `IconName` _(type)_
|
|
69
|
+
- `HASH_ALGORITHM` — Hash algorithm used for event chain integrity
|
|
70
|
+
- `HASH_ENCODING` — Encoding for hash output
|
|
71
|
+
- `HashChainVerificationResult` _(type)_ — Result of verifying a hash chain for a single execution.
|
|
72
|
+
- `ISO8601Timestamp` _(type)_ — ISO 8601 timestamp string.
|
|
73
|
+
- `IconName` _(type)_ — Icon names for execution kinds.
|
|
74
74
|
- `LIFECYCLE_DECISIONS`
|
|
75
75
|
- `LifecycleDecision` _(type)_
|
|
76
|
-
- `LifecycleIntent` _(type)_
|
|
76
|
+
- `LifecycleIntent` _(type)_ — Governance requirements for an execution.
|
|
77
77
|
- `RejectExecutionResponse` _(type)_
|
|
78
78
|
- `RejectExecutionResponseSchema`
|
|
79
79
|
- `StartExecutionResponse` _(type)_
|
|
@@ -81,18 +81,18 @@ TypeScript types and registry for execution kinds and their governance metadata.
|
|
|
81
81
|
- `TERMINAL_STATES`
|
|
82
82
|
- `TimelineEvent` _(type)_
|
|
83
83
|
- `TimelineEventSchema`
|
|
84
|
-
- `TimelineIcon` _(type)_
|
|
85
|
-
- `TimelineStatus` _(type)_
|
|
86
|
-
- `TimelineUIEvent` _(type)_
|
|
87
|
-
- `UndoCompletedMetadata` _(type)_
|
|
84
|
+
- `TimelineIcon` _(type)_ — Icon for timeline items.
|
|
85
|
+
- `TimelineStatus` _(type)_ — Status for timeline display.
|
|
86
|
+
- `TimelineUIEvent` _(type)_ — TimelineUIEvent is a PROJECTION CONTRACT.
|
|
87
|
+
- `UndoCompletedMetadata` _(type)_ — Metadata for undocompleted event.
|
|
88
88
|
- `VALID_TRANSITIONS`
|
|
89
89
|
- `applyIntent`
|
|
90
90
|
- `assertValidTransition`
|
|
91
|
-
- `getExecutionKindDefinition`
|
|
92
|
-
- `isConfirmationExpired`
|
|
91
|
+
- `getExecutionKindDefinition` — Type-safe registry lookup.
|
|
92
|
+
- `isConfirmationExpired` — Compares pre-parsed epoch ms to determine if a confirmation has expired.
|
|
93
93
|
- `isExecutionEventType`
|
|
94
|
-
- `isValidExecutionKind`
|
|
95
|
-
- `parseExpiresAt`
|
|
94
|
+
- `isValidExecutionKind` — Check if a string is a valid ExecutionKind.
|
|
95
|
+
- `parseExpiresAt` — Parses an ISO 8601 string to epoch ms.
|
|
96
96
|
|
|
97
97
|
<!-- END GENERATED: readme-public-api -->
|
|
98
98
|
|
|
@@ -178,6 +178,27 @@ describe("EXECUTION_KINDS golden snapshot", () => {
|
|
|
178
178
|
templateId: "member-change-manager",
|
|
179
179
|
},
|
|
180
180
|
},
|
|
181
|
+
"companyMd.ingest": {
|
|
182
|
+
kind: "companyMd.ingest",
|
|
183
|
+
domain: "data",
|
|
184
|
+
display: {
|
|
185
|
+
label: "Ingest Company Knowledge",
|
|
186
|
+
pastTenseLabel: "Company knowledge ingested",
|
|
187
|
+
icon: "pencil",
|
|
188
|
+
},
|
|
189
|
+
governance: {
|
|
190
|
+
visibility: "user",
|
|
191
|
+
requiresAdmin: false,
|
|
192
|
+
},
|
|
193
|
+
ui: {
|
|
194
|
+
showInAdmin: false,
|
|
195
|
+
showInTimeline: true,
|
|
196
|
+
confirmBeforeRun: true,
|
|
197
|
+
},
|
|
198
|
+
explanation: {
|
|
199
|
+
templateId: "companyMd.ingest",
|
|
200
|
+
},
|
|
201
|
+
},
|
|
181
202
|
});
|
|
182
203
|
});
|
|
183
204
|
});
|
package/src/execution/kinds.ts
CHANGED
|
@@ -204,6 +204,27 @@ export const EXECUTION_KINDS = {
|
|
|
204
204
|
templateId: "member-change-manager",
|
|
205
205
|
},
|
|
206
206
|
},
|
|
207
|
+
"companyMd.ingest": {
|
|
208
|
+
kind: "companyMd.ingest",
|
|
209
|
+
domain: "data",
|
|
210
|
+
display: {
|
|
211
|
+
label: "Ingest Company Knowledge",
|
|
212
|
+
pastTenseLabel: "Company knowledge ingested",
|
|
213
|
+
icon: "pencil",
|
|
214
|
+
},
|
|
215
|
+
governance: {
|
|
216
|
+
visibility: "user",
|
|
217
|
+
requiresAdmin: false,
|
|
218
|
+
},
|
|
219
|
+
ui: {
|
|
220
|
+
showInAdmin: false,
|
|
221
|
+
showInTimeline: true,
|
|
222
|
+
confirmBeforeRun: true,
|
|
223
|
+
},
|
|
224
|
+
explanation: {
|
|
225
|
+
templateId: "companyMd.ingest",
|
|
226
|
+
},
|
|
227
|
+
},
|
|
207
228
|
} as const satisfies Record<ExecutionKind, ExecutionKindDefinition>;
|
|
208
229
|
|
|
209
230
|
// =============================================================================
|
|
@@ -96,8 +96,8 @@ export const openApiRoutes = {
|
|
|
96
96
|
'/api/org-units/{unitId}/relationships': ['GET', 'POST'],
|
|
97
97
|
'/api/org-units/{unitId}/reorder': ['POST'],
|
|
98
98
|
'/api/org-units/{unitId}/reparent': ['POST'],
|
|
99
|
-
'/api/org-units/{unitId}/
|
|
100
|
-
'/api/org-units/{unitId}/
|
|
99
|
+
'/api/org-units/{unitId}/unit-owners': ['POST'],
|
|
100
|
+
'/api/org-units/{unitId}/unit-owners/{userId}': ['DELETE'],
|
|
101
101
|
'/api/org/cancel-deletion': ['POST'],
|
|
102
102
|
'/api/org/delete': ['POST'],
|
|
103
103
|
'/api/org/deletion-eligibility': ['GET'],
|
package/src/guards/README.md
CHANGED
|
@@ -18,50 +18,50 @@ This module exports **types only** — runtime helper functions live in the work
|
|
|
18
18
|
|
|
19
19
|
## Public API
|
|
20
20
|
|
|
21
|
-
- `AggregateEvolutionConfig` _(type)_
|
|
22
|
-
- `AlertsConfigGuardConfig` _(type)_
|
|
23
|
-
- `BLOCKING_SOC2_CONTROLS`
|
|
24
|
-
- `BackupConfigGuardConfig` _(type)_
|
|
25
|
-
- `BoundGuardCheck` _(type)_
|
|
26
|
-
- `CheckResult` _(type)_
|
|
27
|
-
- `ContractsConsumerBaseline` _(type)_
|
|
28
|
-
- `ContractsFreshnessBaseline` _(type)_
|
|
29
|
-
- `CoverageBaseline` _(type)_
|
|
30
|
-
- `DEFAULT_DOMAIN_SECTIONS`
|
|
31
|
-
- `DEFAULT_INFRA_SECTIONS`
|
|
32
|
-
- `DEFAULT_SKIP_DIRECTORIES`
|
|
33
|
-
- `DomainAggregateBaseline` _(type)_
|
|
34
|
-
- `EvolutionBaselines` _(type)_
|
|
35
|
-
- `FileClusterBaseline` _(type)_
|
|
36
|
-
- `GUARD_SCHEMA_VERSION`
|
|
37
|
-
- `GUARD_TIERS`
|
|
38
|
-
- `GuardCheck` _(type)_
|
|
39
|
-
- `GuardCheckFactory` _(type)_
|
|
40
|
-
- `GuardCheckRegistry` _(type)_
|
|
41
|
-
- `GuardConfig` _(type)_
|
|
42
|
-
- `GuardMessage` _(type)_
|
|
43
|
-
- `GuardOutput` _(type)_
|
|
44
|
-
- `GuardResults` _(type)_
|
|
45
|
-
- `GuardTier` _(type)_
|
|
46
|
-
- `GuardTierResult` _(type)_
|
|
47
|
-
- `KnownVulnerability` _(type)_
|
|
48
|
-
- `MetaBaselines` _(type)_
|
|
49
|
-
- `REQUIRED_SOC2_CONTROLS`
|
|
50
|
-
- `RoleLimit` _(type)_
|
|
51
|
-
- `SOC2_CONTROL_NAMES`
|
|
52
|
-
- `SOC2_SCHEMA_VERSION`
|
|
53
|
-
- `ScriptsDepsBaseline` _(type)_
|
|
54
|
-
- `SecretsDetectionConfig` _(type)_
|
|
55
|
-
- `Soc2Baselines` _(type)_
|
|
56
|
-
- `Soc2ComplianceOutput` _(type)_
|
|
57
|
-
- `Soc2ControlArea` _(type)_
|
|
58
|
-
- `Soc2ControlResult` _(type)_
|
|
59
|
-
- `Soc2ControlStatus` _(type)_
|
|
60
|
-
- `StructuralBaselines` _(type)_
|
|
61
|
-
- `StructuredLoggingConfig` _(type)_
|
|
62
|
-
- `SubdirectoryAffinityBaseline` _(type)_
|
|
63
|
-
- `VulnerabilitiesBaseline` _(type)_
|
|
64
|
-
- `VulnerabilityConfig` _(type)_
|
|
21
|
+
- `AggregateEvolutionConfig` _(type)_ — Configuration for aggregate evolution guard.
|
|
22
|
+
- `AlertsConfigGuardConfig` _(type)_ — Configuration for the alerts config guard.
|
|
23
|
+
- `BLOCKING_SOC2_CONTROLS` — Controls that block CI when status is FAIL.
|
|
24
|
+
- `BackupConfigGuardConfig` _(type)_ — Configuration for the backup config guard.
|
|
25
|
+
- `BoundGuardCheck` _(type)_ — A check that can be run synchronously or asynchronously.
|
|
26
|
+
- `CheckResult` _(type)_ — Result from a single guard check.
|
|
27
|
+
- `ContractsConsumerBaseline` _(type)_ — Contracts consumer guard configuration.
|
|
28
|
+
- `ContractsFreshnessBaseline` _(type)_ — Contracts freshness baseline configuration.
|
|
29
|
+
- `CoverageBaseline` _(type)_ — Coverage baseline configuration.
|
|
30
|
+
- `DEFAULT_DOMAIN_SECTIONS` — Default README sections for domain directories.
|
|
31
|
+
- `DEFAULT_INFRA_SECTIONS` — Default README sections for infrastructure directories.
|
|
32
|
+
- `DEFAULT_SKIP_DIRECTORIES` — Default directories to skip when walking file trees.
|
|
33
|
+
- `DomainAggregateBaseline` _(type)_ — Domain-level aggregate baseline for evolution tracking.
|
|
34
|
+
- `EvolutionBaselines` _(type)_ — Evolution guard baselines.
|
|
35
|
+
- `FileClusterBaseline` _(type)_ — File cluster detection configuration.
|
|
36
|
+
- `GUARD_SCHEMA_VERSION` — Current schema version. v2.0.0: Tiered results (breaking change from v1.x flattened structure)
|
|
37
|
+
- `GUARD_TIERS` — All guard tiers in order.
|
|
38
|
+
- `GuardCheck` _(type)_ — Signature for a guard check function.
|
|
39
|
+
- `GuardCheckFactory` _(type)_ — Signature for a guard check factory.
|
|
40
|
+
- `GuardCheckRegistry` _(type)_ — Registry of checks grouped by tier.
|
|
41
|
+
- `GuardConfig` _(type)_ — Configuration for guard checks.
|
|
42
|
+
- `GuardMessage` _(type)_ — A single guard message (error or warning).
|
|
43
|
+
- `GuardOutput` _(type)_ — JSON output envelope for --json mode.
|
|
44
|
+
- `GuardResults` _(type)_ — Full guard results, organized by tier.
|
|
45
|
+
- `GuardTier` _(type)_ — Guard tier names.
|
|
46
|
+
- `GuardTierResult` _(type)_ — Result for a single tier (errors + warnings).
|
|
47
|
+
- `KnownVulnerability` _(type)_ — A known/accepted vulnerability that should be grandfathered.
|
|
48
|
+
- `MetaBaselines` _(type)_ — Meta guard baselines.
|
|
49
|
+
- `REQUIRED_SOC2_CONTROLS` — All required SOC 2 controls.
|
|
50
|
+
- `RoleLimit` _(type)_ — Role limit for the file-size guard, expressed as fractions of the repo's file-size envelope (envelope =…
|
|
51
|
+
- `SOC2_CONTROL_NAMES` — Human-readable names for SOC 2 control areas.
|
|
52
|
+
- `SOC2_SCHEMA_VERSION` — Current SOC 2 compliance schema version.
|
|
53
|
+
- `ScriptsDepsBaseline` _(type)_ — Scripts-devDependencies guard configuration.
|
|
54
|
+
- `SecretsDetectionConfig` _(type)_ — Configuration for the secrets detection guard.
|
|
55
|
+
- `Soc2Baselines` _(type)_ — SOC 2 compliance baselines.
|
|
56
|
+
- `Soc2ComplianceOutput` _(type)_ — SOC 2 compliance snapshot output.
|
|
57
|
+
- `Soc2ControlArea` _(type)_ — SOC 2 control area identifiers. - CM: Change Management - AC: Access Control - LM: Logging & Monitoring - SD…
|
|
58
|
+
- `Soc2ControlResult` _(type)_ — A single SOC 2 control assertion result.
|
|
59
|
+
- `Soc2ControlStatus` _(type)_ — Control status semantics: - PASS: Control asserted and within bounds - WARN: Control exists but has…
|
|
60
|
+
- `StructuralBaselines` _(type)_ — Structural guard baselines.
|
|
61
|
+
- `StructuredLoggingConfig` _(type)_ — Configuration for the structured logging guard.
|
|
62
|
+
- `SubdirectoryAffinityBaseline` _(type)_ — Subdirectory affinity detection configuration.
|
|
63
|
+
- `VulnerabilitiesBaseline` _(type)_ — Vulnerability guard baseline configuration.
|
|
64
|
+
- `VulnerabilityConfig` _(type)_ — Configuration for the vulnerability guard.
|
|
65
65
|
|
|
66
66
|
<!-- END GENERATED: readme-public-api -->
|
|
67
67
|
|
package/src/identity/README.md
CHANGED
|
@@ -26,7 +26,7 @@ TypeScript types and functions for user identity and display name resolution.
|
|
|
26
26
|
- `AccountConfirmDeletionResponseSchema`
|
|
27
27
|
- `AccountDeleteResponse` _(type)_
|
|
28
28
|
- `AccountDeleteResponseSchema`
|
|
29
|
-
- `AccountDeletionEligibility` _(type)_
|
|
29
|
+
- `AccountDeletionEligibility` _(type)_ — Result of an account deletion eligibility check.
|
|
30
30
|
- `AccountDeletionEligibilityResponse` _(type)_
|
|
31
31
|
- `AccountDeletionEligibilityResponseSchema`
|
|
32
32
|
- `AccountSessionList` _(type)_
|
|
@@ -37,16 +37,16 @@ TypeScript types and functions for user identity and display name resolution.
|
|
|
37
37
|
- `AuthStartResponseSchema`
|
|
38
38
|
- `AuthVerifyResponse` _(type)_
|
|
39
39
|
- `AuthVerifyResponseSchema`
|
|
40
|
-
- `AvatarSource` _(type)_
|
|
40
|
+
- `AvatarSource` _(type)_ — Source of the resolved avatar. - 'photo': Using a resolved profile photo - 'initials': Using generated…
|
|
41
41
|
- `BannerDismissResponse` _(type)_
|
|
42
42
|
- `BannerDismissResponseSchema`
|
|
43
43
|
- `BannerDismissedListResponse` _(type)_
|
|
44
44
|
- `BannerDismissedListResponseSchema`
|
|
45
|
-
- `DeletionBlocker` _(type)_
|
|
46
|
-
- `ISODateString` _(type)_
|
|
45
|
+
- `DeletionBlocker` _(type)_ — Conditions that block account deletion.
|
|
46
|
+
- `ISODateString` _(type)_ — ISO 8601 date-time string.
|
|
47
47
|
- `MeResponse` _(type)_
|
|
48
|
-
- `MeResponseSchema`
|
|
49
|
-
- `NameSource` _(type)_
|
|
48
|
+
- `MeResponseSchema` — Full identity context returned by GET /api/me.
|
|
49
|
+
- `NameSource` _(type)_ — Source of the user's name data.
|
|
50
50
|
- `PeopleOrgChartEdge` _(type)_
|
|
51
51
|
- `PeopleOrgChartEdgeSchema`
|
|
52
52
|
- `PeopleOrgChartNode` _(type)_
|
|
@@ -59,16 +59,16 @@ TypeScript types and functions for user identity and display name resolution.
|
|
|
59
59
|
- `ProfileResponseSchema`
|
|
60
60
|
- `ReportingRelationshipType` _(type)_
|
|
61
61
|
- `ReportingRelationshipTypeSchema`
|
|
62
|
-
- `ResolvedAvatar` _(type)_
|
|
62
|
+
- `ResolvedAvatar` _(type)_ — Resolved avatar for UI rendering.
|
|
63
63
|
- `SsoConfigResponse` _(type)_
|
|
64
64
|
- `SsoConfigResponseSchema`
|
|
65
|
-
- `UserIdentity` _(type)_
|
|
66
|
-
- `UserLifecycleStatus` _(type)_
|
|
65
|
+
- `UserIdentity` _(type)_ — User identity information.
|
|
66
|
+
- `UserLifecycleStatus` _(type)_ — User lifecycle status.
|
|
67
67
|
- `deriveFullName`
|
|
68
|
-
- `extractFirstWord`
|
|
69
|
-
- `generateInitials`
|
|
70
|
-
- `resolveAvatar`
|
|
71
|
-
- `resolveDisplayName`
|
|
68
|
+
- `extractFirstWord` — Extract the first word from a full name.
|
|
69
|
+
- `generateInitials` — Generate initials from a full name.
|
|
70
|
+
- `resolveAvatar` — Resolve avatar from user identity.
|
|
71
|
+
- `resolveDisplayName` — Resolve the display name for assistant addressing.
|
|
72
72
|
|
|
73
73
|
<!-- END GENERATED: readme-public-api -->
|
|
74
74
|
|
package/src/ingestion/README.md
CHANGED
|
@@ -24,13 +24,13 @@ attribute and supported-formats copy from the same data.
|
|
|
24
24
|
|
|
25
25
|
## Public API
|
|
26
26
|
|
|
27
|
-
- `INGESTION_FORMATS`
|
|
28
|
-
- `INGEST_ACCEPT`
|
|
29
|
-
- `IngestionFormat` _(type)_
|
|
30
|
-
- `SUPPORTED_LABEL`
|
|
31
|
-
- `acceptExtensions`
|
|
32
|
-
- `byMime`
|
|
33
|
-
- `humanLabels`
|
|
27
|
+
- `INGESTION_FORMATS` — The canonical public format registry.
|
|
28
|
+
- `INGEST_ACCEPT` — Comma-joined extension string for a file input's `accept` attribute.
|
|
29
|
+
- `IngestionFormat` _(type)_ — One accepted upload format, keyed by its canonical MIME type.
|
|
30
|
+
- `SUPPORTED_LABEL` — Human-readable supported-formats summary, derived from {@link humanLabels}.
|
|
31
|
+
- `acceptExtensions` — All accepted filename extensions, in registry order.
|
|
32
|
+
- `byMime` — Look up the entry for a canonical MIME; undefined means unsupported.
|
|
33
|
+
- `humanLabels` — Unique group labels for human display, in registry order.
|
|
34
34
|
|
|
35
35
|
<!-- END GENERATED: readme-public-api -->
|
|
36
36
|
|