@company-semantics/contracts 18.0.0 → 18.1.1
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/api/generated-spec-hash.ts +2 -2
- package/src/api/generated.ts +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/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/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/src/mcp/README.md
CHANGED
|
@@ -21,10 +21,10 @@ Type vocabulary for MCP (Model Context Protocol) tool discovery, invocation meta
|
|
|
21
21
|
|
|
22
22
|
- `CapabilityGraph` _(type)_
|
|
23
23
|
- `CapabilityGraphEdge` _(type)_
|
|
24
|
-
- `FailureContext` _(type)_
|
|
24
|
+
- `FailureContext` _(type)_ — Structured recovery context emitted when an MCP tool call fails.
|
|
25
25
|
- `MCPToolDescriptor` _(type)_
|
|
26
|
-
- `RecoveryAction` _(type)_
|
|
27
|
-
- `ResourceType` _(type)_
|
|
26
|
+
- `RecoveryAction` _(type)_ — A recovery action the agent may take.
|
|
27
|
+
- `ResourceType` _(type)_ — Resource type vocabulary for MCP tool resource flow.
|
|
28
28
|
- `ToolCategory` _(type)_
|
|
29
29
|
- `ToolComplexity` _(type)_
|
|
30
30
|
- `ToolDiscoveryResponse` _(type)_
|
|
@@ -38,7 +38,7 @@ Type vocabulary for MCP (Model Context Protocol) tool discovery, invocation meta
|
|
|
38
38
|
- `ToolStability` _(type)_
|
|
39
39
|
- `ToolVisibility` _(type)_
|
|
40
40
|
- `ToolWorkflow` _(type)_
|
|
41
|
-
- `buildCapabilityGraph`
|
|
41
|
+
- `buildCapabilityGraph` — Build a capability graph from tool resource flow metadata.
|
|
42
42
|
|
|
43
43
|
<!-- END GENERATED: readme-public-api -->
|
|
44
44
|
|
|
@@ -19,69 +19,69 @@ Canonical vocabulary for structured assistant message output. Defines the type s
|
|
|
19
19
|
|
|
20
20
|
## Public API
|
|
21
21
|
|
|
22
|
-
- `AddPartResult` _(type)_
|
|
23
|
-
- `AssistantMessagePart` _(type)_
|
|
24
|
-
- `CONFIRMATION_LABELS`
|
|
25
|
-
- `CandidateSource` _(type)_
|
|
26
|
-
- `ChartDataPoint` _(type)_
|
|
27
|
-
- `ChartPart` _(type)_
|
|
28
|
-
- `ConfirmationChoice` _(type)_
|
|
22
|
+
- `AddPartResult` _(type)_ — Result of adding a part to the builder.
|
|
23
|
+
- `AssistantMessagePart` _(type)_ — All assistant message part types.
|
|
24
|
+
- `CONFIRMATION_LABELS` — Human-readable confirmation dialog titles for each execution kind.
|
|
25
|
+
- `CandidateSource` _(type)_ — How the frontend sources candidate values for an editable field. - `inline`: the options are shipped with the…
|
|
26
|
+
- `ChartDataPoint` _(type)_ — Single data point for charts.
|
|
27
|
+
- `ChartPart` _(type)_ — Chart surface part.
|
|
28
|
+
- `ConfirmationChoice` _(type)_ — Choice options for confirmation.
|
|
29
29
|
- `ConfirmationData` _(type)_
|
|
30
|
-
- `ConfirmationDataPart` _(type)_
|
|
30
|
+
- `ConfirmationDataPart` _(type)_ — Confirmation request data part (wire format).
|
|
31
31
|
- `ConfirmationPart` _(type)_
|
|
32
|
-
- `ConfirmationResponseData` _(type)_
|
|
33
|
-
- `ConfirmationRiskLevel` _(type)_
|
|
34
|
-
- `ExecutionArtifactStatus` _(type)_
|
|
35
|
-
- `ExecutionResultData` _(type)_
|
|
36
|
-
- `ExecutionResultDataPart` _(type)_
|
|
37
|
-
- `ExecutionResultPart` _(type)_
|
|
38
|
-
- `ExecutionResultSummary` _(type)_
|
|
39
|
-
- `ExecutionUndoCapability` _(type)_
|
|
40
|
-
- `IntegrationArtifactContent` _(type)_
|
|
41
|
-
- `IntegrationKey` _(type)_
|
|
42
|
-
- `IntegrationProvider` _(type)_
|
|
43
|
-
- `InteractiveFieldDescriptor` _(type)_
|
|
44
|
-
- `InteractiveFieldType` _(type)_
|
|
45
|
-
- `InteractiveTaskData` _(type)_
|
|
46
|
-
- `InteractiveTaskDataPart` _(type)_
|
|
47
|
-
- `InteractiveTaskKind` _(type)_
|
|
48
|
-
- `InteractiveTaskPart` _(type)_
|
|
49
|
-
- `InteractiveTaskSubject` _(type)_
|
|
50
|
-
- `MessageCompleteDataPart` _(type)_
|
|
51
|
-
- `MessageCompleteEvent` _(type)_
|
|
52
|
-
- `MessageDeltaDataPart` _(type)_
|
|
53
|
-
- `MessageDeltaEvent` _(type)_
|
|
54
|
-
- `MessageLifecycleEvent` _(type)_
|
|
55
|
-
- `MessageLifecycleEventType` _(type)_
|
|
56
|
-
- `MessageStartDataPart` _(type)_
|
|
57
|
-
- `MessageStartEvent` _(type)_
|
|
58
|
-
- `PartBuilderState` _(type)_
|
|
59
|
-
- `PreviewArtifact` _(type)_
|
|
60
|
-
- `PreviewArtifactKind` _(type)_
|
|
61
|
-
- `PreviewData` _(type)_
|
|
62
|
-
- `PreviewDataPart` _(type)_
|
|
63
|
-
- `PreviewPart` _(type)_
|
|
64
|
-
- `StatusPanelEntry` _(type)_
|
|
65
|
-
- `StatusPanelPart` _(type)_
|
|
66
|
-
- `StreamPhase` _(type)_
|
|
67
|
-
- `SurfacePart` _(type)_
|
|
68
|
-
- `TablePart` _(type)_
|
|
69
|
-
- `TextPart` _(type)_
|
|
70
|
-
- `ToolListPart` _(type)_
|
|
71
|
-
- `ToolResultPart` _(type)_
|
|
72
|
-
- `ToolResultRenderClass` _(type)_
|
|
73
|
-
- `UndoResultData` _(type)_
|
|
74
|
-
- `UndoResultDataPart` _(type)_
|
|
75
|
-
- `WireSurfaceBuilder`
|
|
76
|
-
- `addPart`
|
|
77
|
-
- `addSurface`
|
|
78
|
-
- `addText`
|
|
79
|
-
- `buildParts`
|
|
80
|
-
- `createPartBuilder`
|
|
81
|
-
- `getConfirmationLabel`
|
|
82
|
-
- `getDroppedCount`
|
|
83
|
-
- `isSurfacePart`
|
|
84
|
-
- `isTextPart`
|
|
32
|
+
- `ConfirmationResponseData` _(type)_ — Data sent by the client to confirm or cancel a proposed action.
|
|
33
|
+
- `ConfirmationRiskLevel` _(type)_ — Risk level for confirmation prompts.
|
|
34
|
+
- `ExecutionArtifactStatus` _(type)_ — Status of a single artifact's execution.
|
|
35
|
+
- `ExecutionResultData` _(type)_ — Execution result data payload.
|
|
36
|
+
- `ExecutionResultDataPart` _(type)_ — Execution result data part (wire format).
|
|
37
|
+
- `ExecutionResultPart` _(type)_ — Execution result message part (semantic type).
|
|
38
|
+
- `ExecutionResultSummary` _(type)_ — Structured summary for generic UI rendering (executor-provided).
|
|
39
|
+
- `ExecutionUndoCapability` _(type)_ — Undo capability descriptor.
|
|
40
|
+
- `IntegrationArtifactContent` _(type)_ — Content structure for integration artifacts.
|
|
41
|
+
- `IntegrationKey` _(type)_ — Application-level composite integration identifier.
|
|
42
|
+
- `IntegrationProvider` _(type)_ — Integration provider types.
|
|
43
|
+
- `InteractiveFieldDescriptor` _(type)_ — One editable field within an interactive task.
|
|
44
|
+
- `InteractiveFieldType` _(type)_ — The input shape of an editable field. - `member-ref`: a workspace member id (backed by a member picker). -…
|
|
45
|
+
- `InteractiveTaskData` _(type)_ — Interactive task surface data payload.
|
|
46
|
+
- `InteractiveTaskDataPart` _(type)_ — Interactive task data part (wire format).
|
|
47
|
+
- `InteractiveTaskKind` _(type)_ — The set of editable tasks the assistant can present inline.
|
|
48
|
+
- `InteractiveTaskPart` _(type)_ — Interactive task message part (semantic type).
|
|
49
|
+
- `InteractiveTaskSubject` _(type)_ — Read-only subject the task acts upon (e.g. the member being edited).
|
|
50
|
+
- `MessageCompleteDataPart` _(type)_ — Wire format for message complete event.
|
|
51
|
+
- `MessageCompleteEvent` _(type)_ — Message complete event.
|
|
52
|
+
- `MessageDeltaDataPart` _(type)_ — Wire format for message delta event.
|
|
53
|
+
- `MessageDeltaEvent` _(type)_ — Message delta event.
|
|
54
|
+
- `MessageLifecycleEvent` _(type)_ — Base interface for all message lifecycle events.
|
|
55
|
+
- `MessageLifecycleEventType` _(type)_ — Lifecycle event type discriminator.
|
|
56
|
+
- `MessageStartDataPart` _(type)_ — Wire format for message start event.
|
|
57
|
+
- `MessageStartEvent` _(type)_ — Message start event.
|
|
58
|
+
- `PartBuilderState` _(type)_ — Immutable state for the part builder.
|
|
59
|
+
- `PreviewArtifact` _(type)_ — A single artifact within a preview.
|
|
60
|
+
- `PreviewArtifactKind` _(type)_ — Preview artifact kinds.
|
|
61
|
+
- `PreviewData` _(type)_ — Preview surface data payload.
|
|
62
|
+
- `PreviewDataPart` _(type)_ — Preview data part (wire format).
|
|
63
|
+
- `PreviewPart` _(type)_ — Preview message part (semantic type).
|
|
64
|
+
- `StatusPanelEntry` _(type)_ — Single entry in a status panel.
|
|
65
|
+
- `StatusPanelPart` _(type)_ — Status panel surface part.
|
|
66
|
+
- `StreamPhase` _(type)_ — Derived stream phase for UI state management.
|
|
67
|
+
- `SurfacePart` _(type)_ — Surface parts are rendered atomically (never streamed).
|
|
68
|
+
- `TablePart` _(type)_ — Table surface part.
|
|
69
|
+
- `TextPart` _(type)_ — Text content part.
|
|
70
|
+
- `ToolListPart` _(type)_ — Re-export ToolListMessagePart as ToolListPart for consistency.
|
|
71
|
+
- `ToolResultPart` _(type)_ — Tool result part with rendering classification.
|
|
72
|
+
- `ToolResultRenderClass` _(type)_ — Tool result rendering classification.
|
|
73
|
+
- `UndoResultData` _(type)_ — Undo result data payload.
|
|
74
|
+
- `UndoResultDataPart` _(type)_ — Undo result data part (wire format).
|
|
75
|
+
- `WireSurfaceBuilder` — Factory for creating wire-format surface parts.
|
|
76
|
+
- `addPart` — Add any message part to the builder.
|
|
77
|
+
- `addSurface` — Add a surface part to the builder.
|
|
78
|
+
- `addText` — Add a text part to the builder.
|
|
79
|
+
- `buildParts` — Extract the final parts array from the builder.
|
|
80
|
+
- `createPartBuilder` — Create a new part builder state.
|
|
81
|
+
- `getConfirmationLabel` — Look up the human-readable confirmation label for an execution kind.
|
|
82
|
+
- `getDroppedCount` — Get count of dropped parts (useful for logging/metrics).
|
|
83
|
+
- `isSurfacePart` — Type guard for SurfacePart.
|
|
84
|
+
- `isTextPart` — Type guard for TextPart.
|
|
85
85
|
|
|
86
86
|
<!-- END GENERATED: readme-public-api -->
|
|
87
87
|
|
|
@@ -48,6 +48,7 @@ export const CONFIRMATION_LABELS: Record<ExecutionKind, string> = {
|
|
|
48
48
|
"data.scope": "Update Scope",
|
|
49
49
|
"system.cleanup": "Cleanup Connections",
|
|
50
50
|
"member.changeManager": "Change Reporting Manager",
|
|
51
|
+
"companyMd.ingest": "Ingest Company Knowledge",
|
|
51
52
|
};
|
|
52
53
|
|
|
53
54
|
/**
|
package/src/org/README.md
CHANGED
|
@@ -16,51 +16,51 @@ Shared type vocabulary for organization ownership, type classification, and tran
|
|
|
16
16
|
|
|
17
17
|
## Public API
|
|
18
18
|
|
|
19
|
-
- `AcceptInviteRequest` _(type)_
|
|
20
|
-
- `AccessExplanation` _(type)_
|
|
21
|
-
- `AccessLevel` _(type)_
|
|
19
|
+
- `AcceptInviteRequest` _(type)_ — Request payload for accepting an organization invite.
|
|
20
|
+
- `AccessExplanation` _(type)_ — Full access explanation with evaluation trace.
|
|
21
|
+
- `AccessLevel` _(type)_ — Document access level.
|
|
22
22
|
- `AccessReason` _(type)_
|
|
23
|
-
- `AccessSource` _(type)_
|
|
23
|
+
- `AccessSource` _(type)_ — Source of an access grant.
|
|
24
24
|
- `AcknowledgeSystemEventResponse` _(type)_
|
|
25
25
|
- `AcknowledgeSystemEventResponseSchema`
|
|
26
26
|
- `AclEntry` _(type)_
|
|
27
27
|
- `ActionCapability` _(type)_
|
|
28
|
-
- `ActionCapabilitySchema`
|
|
29
|
-
- `AuthMethodConfig` _(type)_
|
|
28
|
+
- `ActionCapabilitySchema` — An action's gate: allowed, or blocked with the scope that would unlock it.
|
|
29
|
+
- `AuthMethodConfig` _(type)_ — Authentication method configuration.
|
|
30
30
|
- `AuthorityConfidence` _(type)_
|
|
31
31
|
- `AuthorityConfidenceSchema`
|
|
32
32
|
- `AuthorityLocality` _(type)_
|
|
33
|
-
- `AuthorityLocalitySchema`
|
|
33
|
+
- `AuthorityLocalitySchema` — Whether the grant lives on the target unit or is inherited from an ancestor.
|
|
34
34
|
- `AuthorityMechanism` _(type)_
|
|
35
|
-
- `AuthorityMechanismSchema`
|
|
35
|
+
- `AuthorityMechanismSchema` — How the authority arose.
|
|
36
36
|
- `AuthorityMutability` _(type)_
|
|
37
|
-
- `AuthorityMutabilitySchema`
|
|
37
|
+
- `AuthorityMutabilitySchema` — Whether the user can change this authority from this surface. - `derived`: change the upstream source instead…
|
|
38
38
|
- `AuthorityOrigin` _(type)_
|
|
39
39
|
- `AuthorityOriginSchema`
|
|
40
40
|
- `AuthoritySource` _(type)_
|
|
41
|
-
- `AuthoritySourceSchema`
|
|
42
|
-
- `AuthorizableView` _(type)_
|
|
41
|
+
- `AuthoritySourceSchema` — Engine-internal authority source.
|
|
42
|
+
- `AuthorizableView` _(type)_ — Type for views that can be checked against VIEWSCOPEMAP.
|
|
43
43
|
- `CapabilitiesResponse` _(type)_
|
|
44
|
-
- `CapabilitiesResponseSchema`
|
|
45
|
-
- `ChangeMemberRoleRequest` _(type)_
|
|
44
|
+
- `CapabilitiesResponseSchema` — The single validated capability surface the UI reads.
|
|
45
|
+
- `ChangeMemberRoleRequest` _(type)_ — Request payload for changing a member's role.
|
|
46
46
|
- `ChangeMemberRoleResponse` _(type)_
|
|
47
47
|
- `ChangeMemberRoleResponseSchema`
|
|
48
|
-
- `CompanyMdContextBankItem` _(type)_
|
|
48
|
+
- `CompanyMdContextBankItem` _(type)_ — A context bank item — a company.md doc associated with one or more parent nodes.
|
|
49
49
|
- `CompanyMdDependency` _(type)_
|
|
50
50
|
- `CompanyMdDoc` _(type)_
|
|
51
51
|
- `CompanyMdDocCollaborators` _(type)_
|
|
52
52
|
- `CompanyMdDocCore` _(type)_
|
|
53
|
-
- `CompanyMdDocKind` _(type)_
|
|
53
|
+
- `CompanyMdDocKind` _(type)_ — Structural discriminator for a Company.md document. - `'root'`: the single org-wide doc (one per org). -…
|
|
54
54
|
- `CompanyMdDocLevel` _(type)_
|
|
55
55
|
- `CompanyMdDocRelations` _(type)_
|
|
56
56
|
- `CompanyMdNodeIdentity` _(type)_
|
|
57
|
-
- `CompanyMdNodeType` _(type)_
|
|
57
|
+
- `CompanyMdNodeType` _(type)_ — Semantic node type used by the Company.md tree.
|
|
58
58
|
- `CompanyMdSource` _(type)_
|
|
59
59
|
- `CompanyMdTreeNode` _(type)_
|
|
60
|
-
- `CompanyMdVisibility` _(type)_
|
|
60
|
+
- `CompanyMdVisibility` _(type)_ — Visibility band for a Company.md document — the canonical AUTH `entity_visibility` vocabulary (, backend ). -…
|
|
61
61
|
- `CreateDelegationRequest` _(type)_
|
|
62
62
|
- `CreateDelegationRequestSchema`
|
|
63
|
-
- `CreateInviteRequest` _(type)_
|
|
63
|
+
- `CreateInviteRequest` _(type)_ — Request payload for creating an organization invite.
|
|
64
64
|
- `CreateOpenRoleRequest` _(type)_
|
|
65
65
|
- `CreateOpenRoleRequestSchema`
|
|
66
66
|
- `Delegation` _(type)_
|
|
@@ -71,28 +71,28 @@ Shared type vocabulary for organization ownership, type classification, and tran
|
|
|
71
71
|
- `DomainListResponseSchema`
|
|
72
72
|
- `DomainResponse` _(type)_
|
|
73
73
|
- `DomainResponseSchema`
|
|
74
|
-
- `DomainStatus` _(type)_
|
|
75
|
-
- `DomainVerificationMethod` _(type)_
|
|
76
|
-
- `EffectiveAccess` _(type)_
|
|
77
|
-
- `EvaluationStep` _(type)_
|
|
78
|
-
- `ExecutionScope` _(type)_
|
|
79
|
-
- `FACT_SOURCE_TIER_PRECEDENCE`
|
|
74
|
+
- `DomainStatus` _(type)_ — Status of a domain claim within an organization. - 'pending': Domain claimed but not yet verified -…
|
|
75
|
+
- `DomainVerificationMethod` _(type)_ — Method used to verify domain ownership. - 'dnstxt': DNS TXT record verification (primary method) - 'email'…
|
|
76
|
+
- `EffectiveAccess` _(type)_ — Effective access for a user on a document.
|
|
77
|
+
- `EvaluationStep` _(type)_ — Single step in the access evaluation trace.
|
|
78
|
+
- `ExecutionScope` _(type)_ — Execution scope determines whose identity is used when executing actions. - 'self': Actions execute under the…
|
|
79
|
+
- `FACT_SOURCE_TIER_PRECEDENCE` — Truth hierarchy, highest precedence first.
|
|
80
80
|
- `FactProvenance` _(type)_
|
|
81
|
-
- `FactProvenanceSchema`
|
|
81
|
+
- `FactProvenanceSchema` — Provenance envelope attached to a structural fact (reporting edge, org unit, membership, home assignment).
|
|
82
82
|
- `FactSourceTier` _(type)_
|
|
83
|
-
- `FactSourceTierSchema`
|
|
83
|
+
- `FactSourceTierSchema` — The precedence axis for a fact.
|
|
84
84
|
- `FieldCapability` _(type)_
|
|
85
|
-
- `FieldCapabilitySchema`
|
|
85
|
+
- `FieldCapabilitySchema` — A mutable field's gate: editable, or locked with attribution (sso vs rbac).
|
|
86
86
|
- `FillOpenRoleRequest` _(type)_
|
|
87
|
-
- `FillOpenRoleRequestSchema`
|
|
87
|
+
- `FillOpenRoleRequestSchema` — Fill an open role by seating an existing org member (`userId`) or inviting a new person by email.
|
|
88
88
|
- `HomeAssignment` _(type)_
|
|
89
|
-
- `HomeAssignmentSchema`
|
|
89
|
+
- `HomeAssignmentSchema` — A person's single structural home unit — at most one per person per org.
|
|
90
90
|
- `HomeUnitRole` _(type)_
|
|
91
|
-
- `HomeUnitRoleSchema`
|
|
91
|
+
- `HomeUnitRoleSchema` — Role the invitee takes in their home unit on acceptance.
|
|
92
92
|
- `IDENTITY_TRUST_LEVEL_LABELS`
|
|
93
|
-
- `IdentityTrustLevel` _(type)_
|
|
94
|
-
- `IntegrationRequest` _(type)_
|
|
95
|
-
- `IntegrationRequestStatus` _(type)_
|
|
93
|
+
- `IdentityTrustLevel` _(type)_ — Identity Trust Level — org's identity posture
|
|
94
|
+
- `IntegrationRequest` _(type)_ — Advisory integration request created by a member.
|
|
95
|
+
- `IntegrationRequestStatus` _(type)_ — Status of an integration request from a member.
|
|
96
96
|
- `InviteListResponse` _(type)_
|
|
97
97
|
- `InviteListResponseSchema`
|
|
98
98
|
- `InviteResponse` _(type)_
|
|
@@ -101,23 +101,23 @@ Shared type vocabulary for organization ownership, type classification, and tran
|
|
|
101
101
|
- `LeaveOrgResponseSchema`
|
|
102
102
|
- `ListOrgUnitPermissionsResponse` _(type)_
|
|
103
103
|
- `ListOrgUnitPermissionsResponseSchema`
|
|
104
|
-
- `MemberRecentAction` _(type)_
|
|
104
|
+
- `MemberRecentAction` _(type)_ — Recent audit action attached to a member-detail response.
|
|
105
105
|
- `MissingAtNextLevel` _(type)_
|
|
106
|
-
- `MissingAtNextLevelSchema`
|
|
107
|
-
- `ORG_UNITS_ROUTES`
|
|
108
|
-
- `OidcValidationResult` _(type)_
|
|
109
|
-
- `OidcValidationResultDto` _(type)_
|
|
106
|
+
- `MissingAtNextLevelSchema` — Active users home directly at this unit who have no level-(depth+1) home assignment within its subtree.
|
|
107
|
+
- `ORG_UNITS_ROUTES` — Canonical route path constants for the `/api/org-units` surface.
|
|
108
|
+
- `OidcValidationResult` _(type)_ — Result of validating an OIDC discovery URL.
|
|
109
|
+
- `OidcValidationResultDto` _(type)_ — Result of validating an OIDC discovery URL.
|
|
110
110
|
- `OidcValidationResultSchema`
|
|
111
111
|
- `OpenRole` _(type)_
|
|
112
112
|
- `OpenRoleListResponse` _(type)_
|
|
113
113
|
- `OpenRoleListResponseSchema`
|
|
114
114
|
- `OpenRoleResponse` _(type)_
|
|
115
115
|
- `OpenRoleResponseSchema`
|
|
116
|
-
- `OpenRoleSchema`
|
|
117
|
-
- `OpenRoleStatus` _(type)_
|
|
118
|
-
- `OpenRoleStatusSchema`
|
|
119
|
-
- `OrgAuthPolicy` _(type)_
|
|
120
|
-
- `OrgAuthPolicyDto` _(type)_
|
|
116
|
+
- `OpenRoleSchema` — An open role — a persisted placeholder for the person who will sit in a unit.
|
|
117
|
+
- `OpenRoleStatus` _(type)_ — Hiring lifecycle of an open role — a persisted placeholder for the person who will sit in an org unit (PRD…
|
|
118
|
+
- `OpenRoleStatusSchema` — Hiring lifecycle of an open role.
|
|
119
|
+
- `OrgAuthPolicy` _(type)_ — Organization authentication policy.
|
|
120
|
+
- `OrgAuthPolicyDto` _(type)_ — Organization authentication policy.
|
|
121
121
|
- `OrgAuthPolicySchema`
|
|
122
122
|
- `OrgBillingResponse` _(type)_
|
|
123
123
|
- `OrgBillingResponseSchema`
|
|
@@ -125,9 +125,9 @@ Shared type vocabulary for organization ownership, type classification, and tran
|
|
|
125
125
|
- `OrgBudgetConfigSchema`
|
|
126
126
|
- `OrgDeletionStatus` _(type)_
|
|
127
127
|
- `OrgDeletionStatusSchema`
|
|
128
|
-
- `OrgDomain` _(type)_
|
|
129
|
-
- `OrgInvite` _(type)_
|
|
130
|
-
- `OrgInviteStatus` _(type)_
|
|
128
|
+
- `OrgDomain` _(type)_ — Organization domain claim and verification status.
|
|
129
|
+
- `OrgInvite` _(type)_ — Organization invite for the workspace invites list.
|
|
130
|
+
- `OrgInviteStatus` _(type)_ — Status of an organization invite.
|
|
131
131
|
- `OrgLevelConfig` _(type)_
|
|
132
132
|
- `OrgLevelConfigResponse` _(type)_
|
|
133
133
|
- `OrgLevelConfigResponseSchema`
|
|
@@ -135,24 +135,24 @@ Shared type vocabulary for organization ownership, type classification, and tran
|
|
|
135
135
|
- `OrgLevelIcon` _(type)_
|
|
136
136
|
- `OrgLevelIconSchema`
|
|
137
137
|
- `OrgOwnerIcon` _(type)_
|
|
138
|
-
- `OrgOwnerIconSchema`
|
|
139
|
-
- `OrgScopedContext` _(type)_
|
|
138
|
+
- `OrgOwnerIconSchema` — Icon options for the `owner` org-chart role.
|
|
139
|
+
- `OrgScopedContext` _(type)_ — Validated organization-scoped context for policy implementations.
|
|
140
140
|
- `OrgSystemEventsList` _(type)_
|
|
141
141
|
- `OrgSystemEventsListSchema`
|
|
142
142
|
- `OrgTreeResponse` _(type)_
|
|
143
|
-
- `OrgType` _(type)_
|
|
143
|
+
- `OrgType` _(type)_ — Organization type distinguishes personal workspaces from shared organizations. - 'personal': Single-user…
|
|
144
144
|
- `OrgUnit` _(type)_
|
|
145
145
|
- `OrgUnitAncestorsResponse` _(type)_
|
|
146
146
|
- `OrgUnitAncestorsResponseSchema`
|
|
147
147
|
- `OrgUnitChildrenResponse` _(type)_
|
|
148
148
|
- `OrgUnitChildrenResponseSchema`
|
|
149
|
-
- `OrgUnitClassification` _(type)_
|
|
149
|
+
- `OrgUnitClassification` _(type)_ — Semantic classification — projection-only, never drives traversal.
|
|
150
150
|
- `OrgUnitClassificationSchema`
|
|
151
151
|
- `OrgUnitDescendantsResponse` _(type)_
|
|
152
152
|
- `OrgUnitDescendantsResponseSchema`
|
|
153
153
|
- `OrgUnitDesignation` _(type)_
|
|
154
|
-
- `OrgUnitDesignationSchema`
|
|
155
|
-
- `OrgUnitErrorCode` _(type)_
|
|
154
|
+
- `OrgUnitDesignationSchema` — Designation a member holds over a unit they manage.
|
|
155
|
+
- `OrgUnitErrorCode` _(type)_ — Error codes returned by `POST /api/org-units/:id/reparent` and related mutation endpoints.
|
|
156
156
|
- `OrgUnitErrorCodeSchema`
|
|
157
157
|
- `OrgUnitMembership` _(type)_
|
|
158
158
|
- `OrgUnitMembershipListResponse` _(type)_
|
|
@@ -160,56 +160,56 @@ Shared type vocabulary for organization ownership, type classification, and tran
|
|
|
160
160
|
- `OrgUnitMembershipResponse` _(type)_
|
|
161
161
|
- `OrgUnitMembershipResponseSchema`
|
|
162
162
|
- `OrgUnitMembershipSchema`
|
|
163
|
-
- `OrgUnitMembershipSource` _(type)_
|
|
163
|
+
- `OrgUnitMembershipSource` _(type)_ — External directory origin of a membership row.
|
|
164
164
|
- `OrgUnitMembershipSourceSchema`
|
|
165
|
-
- `OrgUnitMembershipStatus` _(type)_
|
|
165
|
+
- `OrgUnitMembershipStatus` _(type)_ — Active/pending/removed lifecycle for a unit membership.
|
|
166
166
|
- `OrgUnitMembershipStatusSchema`
|
|
167
167
|
- `OrgUnitOwner` _(type)_
|
|
168
168
|
- `OrgUnitOwnerSchema`
|
|
169
169
|
- `OrgUnitOwnersResponse` _(type)_
|
|
170
170
|
- `OrgUnitOwnersResponseSchema`
|
|
171
171
|
- `OrgUnitPermissionsEntry` _(type)_
|
|
172
|
-
- `OrgUnitPermissionsEntrySchema`
|
|
172
|
+
- `OrgUnitPermissionsEntrySchema` — Effective manager of an org unit — a user whose membership (direct or inherited from an ancestor) grants the…
|
|
173
173
|
- `OrgUnitRelationship` _(type)_
|
|
174
|
-
- `OrgUnitRelationshipRole` _(type)_
|
|
174
|
+
- `OrgUnitRelationshipRole` _(type)_ — Edge role — refines the collaboration nature on a graph edge.
|
|
175
175
|
- `OrgUnitRelationshipRoleSchema`
|
|
176
176
|
- `OrgUnitRelationshipSchema`
|
|
177
|
-
- `OrgUnitRelationshipType` _(type)_
|
|
177
|
+
- `OrgUnitRelationshipType` _(type)_ — Edge classification for `org_unit_relationships`.
|
|
178
178
|
- `OrgUnitRelationshipTypeSchema`
|
|
179
179
|
- `OrgUnitRelationshipsResponse` _(type)_
|
|
180
180
|
- `OrgUnitRelationshipsResponseSchema`
|
|
181
181
|
- `OrgUnitResponse` _(type)_
|
|
182
182
|
- `OrgUnitResponseSchema`
|
|
183
183
|
- `OrgUnitSchema`
|
|
184
|
-
- `OrgUnitSyncMode` _(type)_
|
|
184
|
+
- `OrgUnitSyncMode` _(type)_ — External directory reconciliation policy for a unit.
|
|
185
185
|
- `OrgUnitSyncModeSchema`
|
|
186
186
|
- `OrgUnitTreeNode` _(type)_
|
|
187
187
|
- `OrgUnitTreeNodeSchema`
|
|
188
188
|
- `OrgUnitTreeResponse` _(type)_
|
|
189
189
|
- `OrgUnitTreeResponseSchema`
|
|
190
|
-
- `OrgUnitVisibility` _(type)_
|
|
190
|
+
- `OrgUnitVisibility` _(type)_ — Default visibility inherited by new docs under this unit.
|
|
191
191
|
- `OrgUnitVisibilitySchema`
|
|
192
192
|
- `OrgUsageResponse` _(type)_
|
|
193
193
|
- `OrgUsageResponseSchema`
|
|
194
|
-
- `OrganizationInfo` _(type)_
|
|
194
|
+
- `OrganizationInfo` _(type)_ — Public organization information suitable for API responses.
|
|
195
195
|
- `OwnerAuthority` _(type)_
|
|
196
196
|
- `OwnerAuthoritySchema`
|
|
197
|
-
- `OwnerIdentityInfo` _(type)_
|
|
197
|
+
- `OwnerIdentityInfo` _(type)_ — Owner identity information for the SSO readiness surface.
|
|
198
198
|
- `OwnershipTransferPreview` _(type)_
|
|
199
199
|
- `OwnershipTransferPreviewSchema`
|
|
200
|
-
- `OwnershipTransferRequest` _(type)_
|
|
200
|
+
- `OwnershipTransferRequest` _(type)_ — Request payload for initiating ownership transfer.
|
|
201
201
|
- `OwnershipTransferResponse` _(type)_
|
|
202
202
|
- `OwnershipTransferResponseSchema`
|
|
203
|
-
- `OwnershipTransferStatus` _(type)_
|
|
204
|
-
- `PermissionAuditEntry` _(type)_
|
|
205
|
-
- `Phase3AuditAction` _(type)_
|
|
206
|
-
- `Phase4AuditAction` _(type)_
|
|
207
|
-
- `ProviderStatus` _(type)_
|
|
208
|
-
- `ProviderSuggestion` _(type)_
|
|
209
|
-
- `RemoveMemberRequest` _(type)_
|
|
203
|
+
- `OwnershipTransferStatus` _(type)_ — Status of pending ownership transfer for an organization.
|
|
204
|
+
- `PermissionAuditEntry` _(type)_ — Single entry in the permission change audit log.
|
|
205
|
+
- `Phase3AuditAction` _(type)_ — Audit actions for Phase 3 workspace expansion features.
|
|
206
|
+
- `Phase4AuditAction` _(type)_ — Audit actions for Phase 4 enterprise identity features.
|
|
207
|
+
- `ProviderStatus` _(type)_ — Provider-level configuration lifecycle.
|
|
208
|
+
- `ProviderSuggestion` _(type)_ — MX-based provider suggestion for SSO setup.
|
|
209
|
+
- `RemoveMemberRequest` _(type)_ — Request payload for removing a member from the workspace.
|
|
210
210
|
- `RemoveMemberResponse` _(type)_
|
|
211
211
|
- `RemoveMemberResponseSchema`
|
|
212
|
-
- `RoleCatalogEntry` _(type)_
|
|
212
|
+
- `RoleCatalogEntry` _(type)_ — Entry in the RBAC roles catalog (GET /api/rbac/roles).
|
|
213
213
|
- `RoleCatalogEntrySchema`
|
|
214
214
|
- `RoleCatalogResponseSchema`
|
|
215
215
|
- `ScopeCheckBatchResponse` _(type)_
|
|
@@ -219,78 +219,78 @@ Shared type vocabulary for organization ownership, type classification, and tran
|
|
|
219
219
|
- `SetActiveOrgResponse` _(type)_
|
|
220
220
|
- `SetActiveOrgResponseSchema`
|
|
221
221
|
- `SetMemberManagerResponse` _(type)_
|
|
222
|
-
- `SetMemberManagerResponseSchema`
|
|
223
|
-
- `SharePolicy` _(type)_
|
|
224
|
-
- `ShareState` _(type)_
|
|
225
|
-
- `SsoCredentialStatus` _(type)_
|
|
226
|
-
- `SsoDiscoveryConfig` _(type)_
|
|
227
|
-
- `SsoEnforcementStatus` _(type)_
|
|
228
|
-
- `SsoOperationalState` _(type)_
|
|
229
|
-
- `SsoReadiness` _(type)_
|
|
230
|
-
- `SsoReadinessCheck` _(type)_
|
|
231
|
-
- `SsoSetupInfo` _(type)_
|
|
232
|
-
- `SsoStepperStep` _(type)_
|
|
222
|
+
- `SetMemberManagerResponseSchema` — Response for setting (PATCH) or clearing (DELETE) a member's solid-line manager — the person-to-person…
|
|
223
|
+
- `SharePolicy` _(type)_ — Document sharing policy. - restricted: Only explicit ACL + owning unit + org admins - orgread: All org…
|
|
224
|
+
- `ShareState` _(type)_ — Complete sharing state for a document.
|
|
225
|
+
- `SsoCredentialStatus` _(type)_ — Boolean credential presence indicators (never expose actual values).
|
|
226
|
+
- `SsoDiscoveryConfig` _(type)_ — OIDC discovery configuration for the SSO provider.
|
|
227
|
+
- `SsoEnforcementStatus` _(type)_ — SSO enforcement status for the workspace.
|
|
228
|
+
- `SsoOperationalState` _(type)_ — Provider lifecycle and operational state.
|
|
229
|
+
- `SsoReadiness` _(type)_ — SSO readiness assessment aggregating individual checks.
|
|
230
|
+
- `SsoReadinessCheck` _(type)_ — Individual readiness check for SSO activation.
|
|
231
|
+
- `SsoSetupInfo` _(type)_ — SSO setup information for admin configuration UI.
|
|
232
|
+
- `SsoStepperStep` _(type)_ — Backend-authoritative stepper step.
|
|
233
233
|
- `SubmitInteractiveTaskResponse` _(type)_
|
|
234
|
-
- `SubmitInteractiveTaskResponseSchema`
|
|
235
|
-
- `TRANSFER_RESPONSIBILITIES`
|
|
236
|
-
- `TestSsoInitiation` _(type)_
|
|
237
|
-
- `TestSsoInitiationDto` _(type)_
|
|
234
|
+
- `SubmitInteractiveTaskResponseSchema` — Response for submitting a filled-in interactive chat task surface (e.g. the editable "change reporting…
|
|
235
|
+
- `TRANSFER_RESPONSIBILITIES` — Responsibility checklist items shown on the acceptance page.
|
|
236
|
+
- `TestSsoInitiation` _(type)_ — Initiation payload for a test SSO login attempt.
|
|
237
|
+
- `TestSsoInitiationDto` _(type)_ — Initiation payload for a test SSO login attempt.
|
|
238
238
|
- `TestSsoInitiationSchema`
|
|
239
|
-
- `TestSsoResult` _(type)_
|
|
240
|
-
- `TestSsoResultDto` _(type)_
|
|
239
|
+
- `TestSsoResult` _(type)_ — Result of a test SSO login attempt.
|
|
240
|
+
- `TestSsoResultDto` _(type)_ — Result of a test SSO login attempt.
|
|
241
241
|
- `TestSsoResultSchema`
|
|
242
|
-
- `TransferAcceptanceView` _(type)_
|
|
243
|
-
- `TransferEligibilityResult` _(type)_
|
|
244
|
-
- `TransferInitiateRequest` _(type)_
|
|
245
|
-
- `TransferMemberEligibility` _(type)_
|
|
242
|
+
- `TransferAcceptanceView` _(type)_ — Read-only view for the transfer acceptance page.
|
|
243
|
+
- `TransferEligibilityResult` _(type)_ — Transfer eligibility result with ITL context
|
|
244
|
+
- `TransferInitiateRequest` _(type)_ — Request body for initiating ownership transfer (extends existing to include optional note).
|
|
245
|
+
- `TransferMemberEligibility` _(type)_ — Per-member eligibility for transfer recipient picker
|
|
246
246
|
- `TransferResponsibility` _(type)_
|
|
247
|
-
- `TransferStatusResponse` _(type)_
|
|
248
|
-
- `TreeOrderableNode` _(type)_
|
|
247
|
+
- `TransferStatusResponse` _(type)_ — Response for transfer status queries — extends existing OwnershipTransferStatus.
|
|
248
|
+
- `TreeOrderableNode` _(type)_ — Canonical per-parent sibling ordering for OrgUnit trees.
|
|
249
249
|
- `UnitMembershipRole` _(type)_
|
|
250
|
-
- `UnitMembershipRoleSchema`
|
|
251
|
-
- `UpdateAuthPolicyRequest` _(type)_
|
|
250
|
+
- `UnitMembershipRoleSchema` — Positional slot a member holds in the org-unit tree.
|
|
251
|
+
- `UpdateAuthPolicyRequest` _(type)_ — Request payload for updating organization auth policy.
|
|
252
252
|
- `UpdateDelegationRequest` _(type)_
|
|
253
|
-
- `UpdateDelegationRequestSchema`
|
|
253
|
+
- `UpdateDelegationRequestSchema` — Change a delegation's expiry without revoking it: extend, shorten, or clear (set `expiresAt: null` to make it…
|
|
254
254
|
- `UpdateOpenRoleStatusRequest` _(type)_
|
|
255
|
-
- `UpdateOpenRoleStatusRequestSchema`
|
|
255
|
+
- `UpdateOpenRoleStatusRequestSchema` — Only the non-terminal client transitions are accepted; `fill` is its own endpoint and `open` is the seeded…
|
|
256
256
|
- `UpdateOrgUnitRequest` _(type)_
|
|
257
257
|
- `UpdateOrgUnitRequestSchema`
|
|
258
258
|
- `UpdateOrgUnitResponse` _(type)_
|
|
259
259
|
- `UpdateOrgUnitResponseSchema`
|
|
260
|
-
- `UserOrgMembership` _(type)_
|
|
260
|
+
- `UserOrgMembership` _(type)_ — User organization membership summary.
|
|
261
261
|
- `UserOrgsResponse` _(type)_
|
|
262
262
|
- `UserOrgsResponseSchema`
|
|
263
|
-
- `VIEW_SCOPE_MAP`
|
|
263
|
+
- `VIEW_SCOPE_MAP` — View-to-scope mapping for frontend authorization. - Views with string values require that scope for access -…
|
|
264
264
|
- `WorkspaceAccessResponse` _(type)_
|
|
265
265
|
- `WorkspaceAccessResponseSchema`
|
|
266
|
-
- `WorkspaceAuditEvent` _(type)_
|
|
267
|
-
- `WorkspaceAuditEventDto` _(type)_
|
|
266
|
+
- `WorkspaceAuditEvent` _(type)_ — Audit event for the workspace audit log.
|
|
267
|
+
- `WorkspaceAuditEventDto` _(type)_ — Audit event for the workspace audit log.
|
|
268
268
|
- `WorkspaceAuditEventSchema`
|
|
269
269
|
- `WorkspaceAuditResponseSchema`
|
|
270
|
-
- `WorkspaceAuthConfig` _(type)_
|
|
271
|
-
- `WorkspaceAuthConfigDto` _(type)_
|
|
270
|
+
- `WorkspaceAuthConfig` _(type)_ — Workspace authentication configuration.
|
|
271
|
+
- `WorkspaceAuthConfigDto` _(type)_ — Workspace authentication configuration.
|
|
272
272
|
- `WorkspaceAuthConfigSchema`
|
|
273
|
-
- `WorkspaceInfoOverview` _(type)_
|
|
274
|
-
- `WorkspaceMember` _(type)_
|
|
275
|
-
- `WorkspaceMemberDetail` _(type)_
|
|
273
|
+
- `WorkspaceInfoOverview` _(type)_ — Read-only workspace overview for the Info surface.
|
|
274
|
+
- `WorkspaceMember` _(type)_ — Workspace member for the members list.
|
|
275
|
+
- `WorkspaceMemberDetail` _(type)_ — Full member detail (GET /api/workspace/members/:userId and /api/me self-view).
|
|
276
276
|
- `WorkspaceMemberDetailSchema`
|
|
277
|
-
- `WorkspaceMemberInviteStatus` _(type)_
|
|
277
|
+
- `WorkspaceMemberInviteStatus` _(type)_ — Invite status for a workspace member row.
|
|
278
278
|
- `WorkspaceMemberUnitDesignationEntry` _(type)_
|
|
279
279
|
- `WorkspaceMemberUnitDesignationEntrySchema`
|
|
280
|
-
- `WorkspaceMemberUnitSummary` _(type)_
|
|
280
|
+
- `WorkspaceMemberUnitSummary` _(type)_ — Single OrgUnit membership summary attached to a WorkspaceMember row.
|
|
281
281
|
- `WorkspaceMembersResponse` _(type)_
|
|
282
282
|
- `WorkspaceMembersResponseSchema`
|
|
283
|
-
- `WorkspaceOverview` _(type)_
|
|
284
|
-
- `WorkspaceOverviewDto` _(type)_
|
|
283
|
+
- `WorkspaceOverview` _(type)_ — Workspace overview for the control plane UI.
|
|
284
|
+
- `WorkspaceOverviewDto` _(type)_ — Workspace overview for the control plane UI.
|
|
285
285
|
- `WorkspaceOverviewSchema`
|
|
286
286
|
- `WorkspaceResolvePathResponse` _(type)_
|
|
287
287
|
- `WorkspaceResolvePathResponseSchema`
|
|
288
288
|
- `WorkspaceResyncSlackLogoResponse` _(type)_
|
|
289
289
|
- `WorkspaceResyncSlackLogoResponseSchema`
|
|
290
|
-
- `WorkspaceSettingsOverview` _(type)_
|
|
291
|
-
- `WorkspaceSsoState` _(type)_
|
|
292
|
-
- `WorkspaceSurface` _(type)_
|
|
293
|
-
- `getViewScope`
|
|
290
|
+
- `WorkspaceSettingsOverview` _(type)_ — Full workspace overview for the Settings surface.
|
|
291
|
+
- `WorkspaceSsoState` _(type)_ — Workspace SSO state derived from provider status + policy.
|
|
292
|
+
- `WorkspaceSurface` _(type)_ — Discriminator for workspace surface routing. - 'info': Read-only surface, any member, org.view capabilities -…
|
|
293
|
+
- `getViewScope` — Get the required scope for a view, or null if public.
|
|
294
294
|
- `orderTreeNodes`
|
|
295
295
|
|
|
296
296
|
<!-- END GENERATED: readme-public-api -->
|
package/src/org/schemas.ts
CHANGED
|
@@ -599,7 +599,7 @@ export type ScopeCheckBatchResponse = z.infer<
|
|
|
599
599
|
|
|
600
600
|
/**
|
|
601
601
|
* Role the invitee takes in their home unit on acceptance. `unit_owner` is a
|
|
602
|
-
* deferred
|
|
602
|
+
* deferred unit-ownership grant applied at accept time. Source of truth
|
|
603
603
|
* for the hand-mirrored `OrgInvite`/`CreateInviteRequest` interface unions in
|
|
604
604
|
* `org/types.ts` (enforced by the `schema-type-mirror` guard).
|
|
605
605
|
*/
|
|
@@ -617,7 +617,7 @@ const OrgInviteSchema = z.object({
|
|
|
617
617
|
// Optional/nullable: legacy invites predate this field.
|
|
618
618
|
homeUnitId: z.string().uuid().optional(),
|
|
619
619
|
// Role the invitee takes in homeUnitId on acceptance ('unit_owner' is a
|
|
620
|
-
// deferred
|
|
620
|
+
// deferred unit-ownership grant). Optional/'member' for legacy +
|
|
621
621
|
// unit-less invites.
|
|
622
622
|
homeUnitRole: HomeUnitRoleSchema.optional(),
|
|
623
623
|
createdAt: z.string(),
|
|
@@ -1086,7 +1086,7 @@ export const OwnerAuthoritySchema = z.object({
|
|
|
1086
1086
|
derivedFromUnitName: z.string().min(1).optional(),
|
|
1087
1087
|
/**
|
|
1088
1088
|
* True when this authority derives from the org ROOT unit — i.e. the holder
|
|
1089
|
-
* is a CEO (a
|
|
1089
|
+
* is a CEO (a unit owner of the org root, observed locally on the root
|
|
1090
1090
|
* or as inherited authority on a descendant). Lets consumers classify CEO
|
|
1091
1091
|
* without a separate org-tree lookup, the same way `mechanism === 'rbac'`
|
|
1092
1092
|
* identifies an org admin. Omitted (falsy) for non-root derivations.
|
|
@@ -37,7 +37,7 @@ export const OrgChartRoleSchema = z.enum(ORG_CHART_ROLES);
|
|
|
37
37
|
* org-chart standing) renders as "Member" via {@link orgChartRoleLabel}.
|
|
38
38
|
*
|
|
39
39
|
* `owner` is the organization's highest-authority individual (the account
|
|
40
|
-
* owner, or a
|
|
40
|
+
* owner, or a unit owner of the root unit). Its DEFAULT label is
|
|
41
41
|
* "CEO" — what every new org sees — and is org-renamable via the
|
|
42
42
|
* `owner_title` org setting (ADR-CONTRACTS-061); pass the org's resolved
|
|
43
43
|
* title through {@link orgChartRoleLabel}'s `ownerTitle` option to apply it.
|