@contractspec/bundle.library 3.4.2 → 3.5.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/.turbo/turbo-build.log +494 -488
- package/CHANGELOG.md +61 -0
- package/dist/application/index.js +8 -8
- package/dist/application/mcp/cliMcp.js +8 -8
- package/dist/application/mcp/contractsMcp.js +8 -8
- package/dist/application/mcp/docsMcp.js +8 -8
- package/dist/application/mcp/index.js +8 -8
- package/dist/application/mcp/internalMcp.js +8 -8
- package/dist/application/mcp/providerRankingMcp.js +8 -8
- package/dist/bundles/LibraryBundle.d.ts +126 -0
- package/dist/bundles/LibraryBundle.js +139 -0
- package/dist/bundles/index.d.ts +1 -0
- package/dist/bundles/index.js +139 -0
- package/dist/components/docs/DocsIndexPage.js +91 -91
- package/dist/components/docs/advanced/AdvancedMCPPage.js +125 -125
- package/dist/components/docs/advanced/AdvancedOverlayEditorPage.js +49 -49
- package/dist/components/docs/advanced/AdvancedRenderersPage.js +51 -51
- package/dist/components/docs/advanced/AdvancedSpecExperimentsPage.js +35 -35
- package/dist/components/docs/advanced/AdvancedTelemetryPage.js +177 -177
- package/dist/components/docs/advanced/AdvancedWorkflowMonitoringPage.js +45 -45
- package/dist/components/docs/advanced/index.js +482 -482
- package/dist/components/docs/architecture/ArchitectureAppConfigPage.js +107 -107
- package/dist/components/docs/architecture/ArchitectureControlPlanePage.js +73 -73
- package/dist/components/docs/architecture/ArchitectureIntegrationBindingPage.js +117 -117
- package/dist/components/docs/architecture/ArchitectureKnowledgeBindingPage.js +175 -175
- package/dist/components/docs/architecture/ArchitectureMultiTenancyPage.js +71 -71
- package/dist/components/docs/architecture/ArchitectureOverviewPage.js +205 -205
- package/dist/components/docs/architecture/index.js +748 -748
- package/dist/components/docs/comparison/ComparisonAutomationPlatformsPage.js +117 -117
- package/dist/components/docs/comparison/ComparisonEnterprisePlatformsPage.js +111 -111
- package/dist/components/docs/comparison/ComparisonInternalToolBuildersPage.js +117 -117
- package/dist/components/docs/comparison/ComparisonOverviewPage.js +97 -97
- package/dist/components/docs/comparison/ComparisonWindmillPage.js +125 -125
- package/dist/components/docs/comparison/ComparisonWorkflowEnginesPage.js +171 -171
- package/dist/components/docs/comparison/index.js +738 -738
- package/dist/components/docs/ecosystem/IntegrationsPage.js +45 -45
- package/dist/components/docs/ecosystem/PluginsPage.js +73 -73
- package/dist/components/docs/ecosystem/RegistryPage.js +37 -37
- package/dist/components/docs/ecosystem/TemplatesPage.js +56 -56
- package/dist/components/docs/ecosystem/index.js +211 -211
- package/dist/components/docs/examples/DocsExamplesPage.js +21 -21
- package/dist/components/docs/examples/index.js +21 -21
- package/dist/components/docs/getting-started/CLIPage.js +95 -95
- package/dist/components/docs/getting-started/CompatibilityPage.js +81 -81
- package/dist/components/docs/getting-started/DataViewTutorialPage.js +57 -57
- package/dist/components/docs/getting-started/DeveloperToolsPage.js +61 -61
- package/dist/components/docs/getting-started/HelloWorldPage.js +77 -77
- package/dist/components/docs/getting-started/InstallationPage.js +65 -65
- package/dist/components/docs/getting-started/StartHerePage.js +51 -51
- package/dist/components/docs/getting-started/TroubleshootingPage.js +73 -73
- package/dist/components/docs/getting-started/VSCodeExtensionPage.js +171 -171
- package/dist/components/docs/getting-started/index.js +731 -731
- package/dist/components/docs/guides/GuideCIDiffGatingPage.js +80 -80
- package/dist/components/docs/guides/GuideContractTypesPage.js +232 -232
- package/dist/components/docs/guides/GuideDocsPipelinePage.js +82 -82
- package/dist/components/docs/guides/GuideGenerateDocsClientsSchemasPage.js +84 -84
- package/dist/components/docs/guides/GuideImportExistingCodebasesPage.js +324 -324
- package/dist/components/docs/guides/GuideNextjsOneEndpointPage.js +106 -106
- package/dist/components/docs/guides/GuideSpecValidationTypingPage.js +78 -78
- package/dist/components/docs/guides/GuidesIndexPage.js +43 -43
- package/dist/components/docs/guides/index.js +975 -975
- package/dist/components/docs/index.js +10791 -10791
- package/dist/components/docs/integrations/IntegrationsCircuitBreakersPage.js +17 -17
- package/dist/components/docs/integrations/IntegrationsElevenLabsPage.js +47 -47
- package/dist/components/docs/integrations/IntegrationsGithubPage.js +61 -61
- package/dist/components/docs/integrations/IntegrationsGmailPage.js +49 -49
- package/dist/components/docs/integrations/IntegrationsGoogleCalendarPage.js +33 -33
- package/dist/components/docs/integrations/IntegrationsHealthRoutingPage.js +65 -65
- package/dist/components/docs/integrations/IntegrationsMistralPage.js +69 -69
- package/dist/components/docs/integrations/IntegrationsOpenAIPage.js +65 -65
- package/dist/components/docs/integrations/IntegrationsOverviewPage.js +313 -313
- package/dist/components/docs/integrations/IntegrationsPostmarkPage.js +101 -101
- package/dist/components/docs/integrations/IntegrationsPowensPage.js +121 -121
- package/dist/components/docs/integrations/IntegrationsQdrantPage.js +49 -49
- package/dist/components/docs/integrations/IntegrationsResendPage.js +45 -45
- package/dist/components/docs/integrations/IntegrationsS3Page.js +57 -57
- package/dist/components/docs/integrations/IntegrationsSlackPage.js +63 -63
- package/dist/components/docs/integrations/IntegrationsSpecModelPage.js +139 -139
- package/dist/components/docs/integrations/IntegrationsStripePage.js +159 -159
- package/dist/components/docs/integrations/IntegrationsTwilioPage.js +61 -61
- package/dist/components/docs/integrations/IntegrationsWhatsappMetaPage.js +63 -63
- package/dist/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +65 -65
- package/dist/components/docs/integrations/index.js +1642 -1642
- package/dist/components/docs/intent/ContractFirstApiPage.js +51 -51
- package/dist/components/docs/intent/DeterministicCodegenPage.js +59 -59
- package/dist/components/docs/intent/GenerateClientFromSchemaPage.js +85 -85
- package/dist/components/docs/intent/OpenapiAlternativePage.js +91 -91
- package/dist/components/docs/intent/SchemaValidationTypescriptPage.js +59 -59
- package/dist/components/docs/intent/SpecDrivenDevelopmentPage.js +51 -51
- package/dist/components/docs/intent/index.js +396 -396
- package/dist/components/docs/knowledge/KnowledgeCategoriesPage.js +371 -371
- package/dist/components/docs/knowledge/KnowledgeExamplesPage.js +79 -79
- package/dist/components/docs/knowledge/KnowledgeOverviewPage.js +185 -185
- package/dist/components/docs/knowledge/KnowledgeSourcesPage.js +187 -187
- package/dist/components/docs/knowledge/KnowledgeSpacesPage.js +141 -141
- package/dist/components/docs/knowledge/index.js +963 -963
- package/dist/components/docs/libraries/LibrariesAccessibilityPage.js +85 -85
- package/dist/components/docs/libraries/LibrariesAiAgentPage.js +63 -63
- package/dist/components/docs/libraries/LibrariesAnalyticsPage.js +33 -33
- package/dist/components/docs/libraries/LibrariesContentGenPage.js +43 -43
- package/dist/components/docs/libraries/LibrariesContractsPage.js +125 -125
- package/dist/components/docs/libraries/LibrariesCostTrackingPage.js +45 -45
- package/dist/components/docs/libraries/LibrariesDataBackendPage.js +69 -69
- package/dist/components/docs/libraries/LibrariesDataViewsPage.js +79 -79
- package/dist/components/docs/libraries/LibrariesDesignSystemPage.js +129 -129
- package/dist/components/docs/libraries/LibrariesEvolutionPage.js +49 -49
- package/dist/components/docs/libraries/LibrariesGraphQLPage.js +73 -73
- package/dist/components/docs/libraries/LibrariesGrowthPage.js +35 -35
- package/dist/components/docs/libraries/LibrariesMultiTenancyPage.js +43 -43
- package/dist/components/docs/libraries/LibrariesObservabilityPage.js +53 -53
- package/dist/components/docs/libraries/LibrariesOverlayEnginePage.js +45 -45
- package/dist/components/docs/libraries/LibrariesOverviewPage.js +191 -191
- package/dist/components/docs/libraries/LibrariesPersonalizationPage.js +47 -47
- package/dist/components/docs/libraries/LibrariesProgressiveDeliveryPage.js +53 -53
- package/dist/components/docs/libraries/LibrariesResiliencePage.js +49 -49
- package/dist/components/docs/libraries/LibrariesRuntimePage.js +87 -87
- package/dist/components/docs/libraries/LibrariesSLOPage.js +47 -47
- package/dist/components/docs/libraries/LibrariesSchemaPage.js +139 -139
- package/dist/components/docs/libraries/LibrariesSupportBotPage.js +57 -57
- package/dist/components/docs/libraries/LibrariesTestingPage.js +49 -49
- package/dist/components/docs/libraries/LibrariesUIKitPage.js +107 -107
- package/dist/components/docs/libraries/LibrariesWorkflowComposerPage.js +35 -35
- package/dist/components/docs/libraries/LibrariesWorkflowsPage.js +89 -89
- package/dist/components/docs/libraries/index.js +1919 -1919
- package/dist/components/docs/manifesto/ManifestoPage.js +79 -79
- package/dist/components/docs/ops/AutoEvolutionOpsPage.js +59 -59
- package/dist/components/docs/ops/DistributedTracingOpsPage.js +33 -33
- package/dist/components/docs/ops/index.js +92 -92
- package/dist/components/docs/reference/DocsMarkdownContent.js +27 -27
- package/dist/components/docs/reference/DocsReferenceContent.js +34 -34
- package/dist/components/docs/reference/DocsReferenceIndexClient.js +23 -23
- package/dist/components/docs/reference/DocsReferenceIndexPage.js +26 -26
- package/dist/components/docs/reference/DocsReferencePage.js +37 -37
- package/dist/components/docs/reference/index.js +63 -63
- package/dist/components/docs/safety/SafetyAuditingPage.js +161 -161
- package/dist/components/docs/safety/SafetyMigrationsPage.js +169 -169
- package/dist/components/docs/safety/SafetyOverviewPage.js +99 -99
- package/dist/components/docs/safety/SafetyPDPPage.js +137 -137
- package/dist/components/docs/safety/SafetySecurityTrustPage.js +95 -95
- package/dist/components/docs/safety/SafetySigningPage.js +39 -39
- package/dist/components/docs/safety/SafetyTenantIsolationPage.js +33 -33
- package/dist/components/docs/safety/index.js +733 -733
- package/dist/components/docs/shared/StudioPrompt.js +9 -9
- package/dist/components/docs/specs/SpecsCapabilitiesPage.js +61 -61
- package/dist/components/docs/specs/SpecsDataViewsPage.js +119 -119
- package/dist/components/docs/specs/SpecsOverlaysPage.js +171 -171
- package/dist/components/docs/specs/SpecsOverviewPage.js +167 -167
- package/dist/components/docs/specs/SpecsPolicyPage.js +179 -179
- package/dist/components/docs/specs/SpecsWorkflowsPage.js +141 -141
- package/dist/components/docs/specs/index.js +838 -838
- package/dist/components/docs/studio/StudioBYOKPage.js +9 -9
- package/dist/components/docs/studio/StudioDeploymentsPage.js +9 -9
- package/dist/components/docs/studio/StudioGettingStartedPage.js +9 -9
- package/dist/components/docs/studio/StudioIntegrationsPage.js +9 -9
- package/dist/components/docs/studio/StudioOverviewPage.js +33 -33
- package/dist/components/docs/studio/StudioVisualBuilderPage.js +9 -9
- package/dist/components/docs/studio/index.js +78 -78
- package/dist/components/integrations/index.js +209 -209
- package/dist/components/integrations/molecules/IntegrationCard.js +33 -33
- package/dist/components/integrations/organisms/IntegrationMarketplace.js +71 -71
- package/dist/components/integrations/organisms/IntegrationSettings.js +98 -98
- package/dist/components/integrations/organisms/KnowledgeSourceList.js +40 -40
- package/dist/components/legal/PrivacyTemplate.js +477 -477
- package/dist/components/legal/TermsTemplate.js +421 -421
- package/dist/components/legal/index.js +898 -898
- package/dist/components/shared/FeatureGateNotice.js +13 -13
- package/dist/components/shared/index.js +13 -13
- package/dist/components/shell/WorkspaceHeader.js +37 -37
- package/dist/components/shell/WorkspaceProjectShellLayout.js +77 -77
- package/dist/components/shell/WorkspaceShellRenderer.d.ts +17 -0
- package/dist/components/shell/WorkspaceShellRenderer.js +229 -0
- package/dist/components/shell/WorkspaceSidebar.js +27 -27
- package/dist/components/shell/index.d.ts +1 -0
- package/dist/components/shell/index.js +140 -77
- package/dist/components/templates/index.js +272 -272
- package/dist/components/templates/messaging/ConversationList.js +27 -27
- package/dist/components/templates/messaging/MessageComposer.js +27 -27
- package/dist/components/templates/messaging/MessageThread.js +18 -18
- package/dist/components/templates/messaging/MessagingWorkspace.js +65 -65
- package/dist/components/templates/messaging/index.js +65 -65
- package/dist/components/templates/recipes/LanguageSwitcher.js +5 -5
- package/dist/components/templates/recipes/RecipeCard.js +26 -26
- package/dist/components/templates/recipes/RecipeDetail.js +33 -33
- package/dist/components/templates/recipes/RecipeList.js +80 -80
- package/dist/components/templates/recipes/index.js +80 -80
- package/dist/components/templates/todos/FilterBar.js +39 -39
- package/dist/components/templates/todos/TaskForm.js +43 -43
- package/dist/components/templates/todos/TaskItem.js +30 -30
- package/dist/components/templates/todos/TaskList.js +127 -127
- package/dist/components/templates/todos/index.js +127 -127
- package/dist/index.js +12323 -12260
- package/dist/infrastructure/elysia/index.js +8 -8
- package/dist/infrastructure/elysia/logger.js +8 -8
- package/dist/infrastructure/index.js +8 -8
- package/dist/libs/posthog/client.js +2 -2
- package/dist/node/application/index.js +8 -8
- package/dist/node/application/mcp/cliMcp.js +8 -8
- package/dist/node/application/mcp/contractsMcp.js +8 -8
- package/dist/node/application/mcp/docsMcp.js +8 -8
- package/dist/node/application/mcp/index.js +8 -8
- package/dist/node/application/mcp/internalMcp.js +8 -8
- package/dist/node/application/mcp/providerRankingMcp.js +8 -8
- package/dist/node/bundles/LibraryBundle.js +138 -0
- package/dist/node/bundles/index.js +138 -0
- package/dist/node/components/docs/DocsIndexPage.js +91 -91
- package/dist/node/components/docs/advanced/AdvancedMCPPage.js +125 -125
- package/dist/node/components/docs/advanced/AdvancedOverlayEditorPage.js +49 -49
- package/dist/node/components/docs/advanced/AdvancedRenderersPage.js +51 -51
- package/dist/node/components/docs/advanced/AdvancedSpecExperimentsPage.js +35 -35
- package/dist/node/components/docs/advanced/AdvancedTelemetryPage.js +177 -177
- package/dist/node/components/docs/advanced/AdvancedWorkflowMonitoringPage.js +45 -45
- package/dist/node/components/docs/advanced/index.js +482 -482
- package/dist/node/components/docs/architecture/ArchitectureAppConfigPage.js +107 -107
- package/dist/node/components/docs/architecture/ArchitectureControlPlanePage.js +73 -73
- package/dist/node/components/docs/architecture/ArchitectureIntegrationBindingPage.js +117 -117
- package/dist/node/components/docs/architecture/ArchitectureKnowledgeBindingPage.js +175 -175
- package/dist/node/components/docs/architecture/ArchitectureMultiTenancyPage.js +71 -71
- package/dist/node/components/docs/architecture/ArchitectureOverviewPage.js +205 -205
- package/dist/node/components/docs/architecture/index.js +748 -748
- package/dist/node/components/docs/comparison/ComparisonAutomationPlatformsPage.js +117 -117
- package/dist/node/components/docs/comparison/ComparisonEnterprisePlatformsPage.js +111 -111
- package/dist/node/components/docs/comparison/ComparisonInternalToolBuildersPage.js +117 -117
- package/dist/node/components/docs/comparison/ComparisonOverviewPage.js +97 -97
- package/dist/node/components/docs/comparison/ComparisonWindmillPage.js +125 -125
- package/dist/node/components/docs/comparison/ComparisonWorkflowEnginesPage.js +171 -171
- package/dist/node/components/docs/comparison/index.js +738 -738
- package/dist/node/components/docs/ecosystem/IntegrationsPage.js +45 -45
- package/dist/node/components/docs/ecosystem/PluginsPage.js +73 -73
- package/dist/node/components/docs/ecosystem/RegistryPage.js +37 -37
- package/dist/node/components/docs/ecosystem/TemplatesPage.js +56 -56
- package/dist/node/components/docs/ecosystem/index.js +211 -211
- package/dist/node/components/docs/examples/DocsExamplesPage.js +21 -21
- package/dist/node/components/docs/examples/index.js +21 -21
- package/dist/node/components/docs/getting-started/CLIPage.js +95 -95
- package/dist/node/components/docs/getting-started/CompatibilityPage.js +81 -81
- package/dist/node/components/docs/getting-started/DataViewTutorialPage.js +57 -57
- package/dist/node/components/docs/getting-started/DeveloperToolsPage.js +61 -61
- package/dist/node/components/docs/getting-started/HelloWorldPage.js +77 -77
- package/dist/node/components/docs/getting-started/InstallationPage.js +65 -65
- package/dist/node/components/docs/getting-started/StartHerePage.js +51 -51
- package/dist/node/components/docs/getting-started/TroubleshootingPage.js +73 -73
- package/dist/node/components/docs/getting-started/VSCodeExtensionPage.js +171 -171
- package/dist/node/components/docs/getting-started/index.js +731 -731
- package/dist/node/components/docs/guides/GuideCIDiffGatingPage.js +80 -80
- package/dist/node/components/docs/guides/GuideContractTypesPage.js +232 -232
- package/dist/node/components/docs/guides/GuideDocsPipelinePage.js +82 -82
- package/dist/node/components/docs/guides/GuideGenerateDocsClientsSchemasPage.js +84 -84
- package/dist/node/components/docs/guides/GuideImportExistingCodebasesPage.js +324 -324
- package/dist/node/components/docs/guides/GuideNextjsOneEndpointPage.js +106 -106
- package/dist/node/components/docs/guides/GuideSpecValidationTypingPage.js +78 -78
- package/dist/node/components/docs/guides/GuidesIndexPage.js +43 -43
- package/dist/node/components/docs/guides/index.js +975 -975
- package/dist/node/components/docs/index.js +10791 -10791
- package/dist/node/components/docs/integrations/IntegrationsCircuitBreakersPage.js +17 -17
- package/dist/node/components/docs/integrations/IntegrationsElevenLabsPage.js +47 -47
- package/dist/node/components/docs/integrations/IntegrationsGithubPage.js +61 -61
- package/dist/node/components/docs/integrations/IntegrationsGmailPage.js +49 -49
- package/dist/node/components/docs/integrations/IntegrationsGoogleCalendarPage.js +33 -33
- package/dist/node/components/docs/integrations/IntegrationsHealthRoutingPage.js +65 -65
- package/dist/node/components/docs/integrations/IntegrationsMistralPage.js +69 -69
- package/dist/node/components/docs/integrations/IntegrationsOpenAIPage.js +65 -65
- package/dist/node/components/docs/integrations/IntegrationsOverviewPage.js +313 -313
- package/dist/node/components/docs/integrations/IntegrationsPostmarkPage.js +101 -101
- package/dist/node/components/docs/integrations/IntegrationsPowensPage.js +121 -121
- package/dist/node/components/docs/integrations/IntegrationsQdrantPage.js +49 -49
- package/dist/node/components/docs/integrations/IntegrationsResendPage.js +45 -45
- package/dist/node/components/docs/integrations/IntegrationsS3Page.js +57 -57
- package/dist/node/components/docs/integrations/IntegrationsSlackPage.js +63 -63
- package/dist/node/components/docs/integrations/IntegrationsSpecModelPage.js +139 -139
- package/dist/node/components/docs/integrations/IntegrationsStripePage.js +159 -159
- package/dist/node/components/docs/integrations/IntegrationsTwilioPage.js +61 -61
- package/dist/node/components/docs/integrations/IntegrationsWhatsappMetaPage.js +63 -63
- package/dist/node/components/docs/integrations/IntegrationsWhatsappTwilioPage.js +65 -65
- package/dist/node/components/docs/integrations/index.js +1642 -1642
- package/dist/node/components/docs/intent/ContractFirstApiPage.js +51 -51
- package/dist/node/components/docs/intent/DeterministicCodegenPage.js +59 -59
- package/dist/node/components/docs/intent/GenerateClientFromSchemaPage.js +85 -85
- package/dist/node/components/docs/intent/OpenapiAlternativePage.js +91 -91
- package/dist/node/components/docs/intent/SchemaValidationTypescriptPage.js +59 -59
- package/dist/node/components/docs/intent/SpecDrivenDevelopmentPage.js +51 -51
- package/dist/node/components/docs/intent/index.js +396 -396
- package/dist/node/components/docs/knowledge/KnowledgeCategoriesPage.js +371 -371
- package/dist/node/components/docs/knowledge/KnowledgeExamplesPage.js +79 -79
- package/dist/node/components/docs/knowledge/KnowledgeOverviewPage.js +185 -185
- package/dist/node/components/docs/knowledge/KnowledgeSourcesPage.js +187 -187
- package/dist/node/components/docs/knowledge/KnowledgeSpacesPage.js +141 -141
- package/dist/node/components/docs/knowledge/index.js +963 -963
- package/dist/node/components/docs/libraries/LibrariesAccessibilityPage.js +85 -85
- package/dist/node/components/docs/libraries/LibrariesAiAgentPage.js +63 -63
- package/dist/node/components/docs/libraries/LibrariesAnalyticsPage.js +33 -33
- package/dist/node/components/docs/libraries/LibrariesContentGenPage.js +43 -43
- package/dist/node/components/docs/libraries/LibrariesContractsPage.js +125 -125
- package/dist/node/components/docs/libraries/LibrariesCostTrackingPage.js +45 -45
- package/dist/node/components/docs/libraries/LibrariesDataBackendPage.js +69 -69
- package/dist/node/components/docs/libraries/LibrariesDataViewsPage.js +79 -79
- package/dist/node/components/docs/libraries/LibrariesDesignSystemPage.js +129 -129
- package/dist/node/components/docs/libraries/LibrariesEvolutionPage.js +49 -49
- package/dist/node/components/docs/libraries/LibrariesGraphQLPage.js +73 -73
- package/dist/node/components/docs/libraries/LibrariesGrowthPage.js +35 -35
- package/dist/node/components/docs/libraries/LibrariesMultiTenancyPage.js +43 -43
- package/dist/node/components/docs/libraries/LibrariesObservabilityPage.js +53 -53
- package/dist/node/components/docs/libraries/LibrariesOverlayEnginePage.js +45 -45
- package/dist/node/components/docs/libraries/LibrariesOverviewPage.js +191 -191
- package/dist/node/components/docs/libraries/LibrariesPersonalizationPage.js +47 -47
- package/dist/node/components/docs/libraries/LibrariesProgressiveDeliveryPage.js +53 -53
- package/dist/node/components/docs/libraries/LibrariesResiliencePage.js +49 -49
- package/dist/node/components/docs/libraries/LibrariesRuntimePage.js +87 -87
- package/dist/node/components/docs/libraries/LibrariesSLOPage.js +47 -47
- package/dist/node/components/docs/libraries/LibrariesSchemaPage.js +139 -139
- package/dist/node/components/docs/libraries/LibrariesSupportBotPage.js +57 -57
- package/dist/node/components/docs/libraries/LibrariesTestingPage.js +49 -49
- package/dist/node/components/docs/libraries/LibrariesUIKitPage.js +107 -107
- package/dist/node/components/docs/libraries/LibrariesWorkflowComposerPage.js +35 -35
- package/dist/node/components/docs/libraries/LibrariesWorkflowsPage.js +89 -89
- package/dist/node/components/docs/libraries/index.js +1919 -1919
- package/dist/node/components/docs/manifesto/ManifestoPage.js +79 -79
- package/dist/node/components/docs/ops/AutoEvolutionOpsPage.js +59 -59
- package/dist/node/components/docs/ops/DistributedTracingOpsPage.js +33 -33
- package/dist/node/components/docs/ops/index.js +92 -92
- package/dist/node/components/docs/reference/DocsMarkdownContent.js +27 -27
- package/dist/node/components/docs/reference/DocsReferenceContent.js +34 -34
- package/dist/node/components/docs/reference/DocsReferenceIndexClient.js +23 -23
- package/dist/node/components/docs/reference/DocsReferenceIndexPage.js +26 -26
- package/dist/node/components/docs/reference/DocsReferencePage.js +37 -37
- package/dist/node/components/docs/reference/index.js +63 -63
- package/dist/node/components/docs/safety/SafetyAuditingPage.js +161 -161
- package/dist/node/components/docs/safety/SafetyMigrationsPage.js +169 -169
- package/dist/node/components/docs/safety/SafetyOverviewPage.js +99 -99
- package/dist/node/components/docs/safety/SafetyPDPPage.js +137 -137
- package/dist/node/components/docs/safety/SafetySecurityTrustPage.js +95 -95
- package/dist/node/components/docs/safety/SafetySigningPage.js +39 -39
- package/dist/node/components/docs/safety/SafetyTenantIsolationPage.js +33 -33
- package/dist/node/components/docs/safety/index.js +733 -733
- package/dist/node/components/docs/shared/StudioPrompt.js +9 -9
- package/dist/node/components/docs/specs/SpecsCapabilitiesPage.js +61 -61
- package/dist/node/components/docs/specs/SpecsDataViewsPage.js +119 -119
- package/dist/node/components/docs/specs/SpecsOverlaysPage.js +171 -171
- package/dist/node/components/docs/specs/SpecsOverviewPage.js +167 -167
- package/dist/node/components/docs/specs/SpecsPolicyPage.js +179 -179
- package/dist/node/components/docs/specs/SpecsWorkflowsPage.js +141 -141
- package/dist/node/components/docs/specs/index.js +838 -838
- package/dist/node/components/docs/studio/StudioBYOKPage.js +9 -9
- package/dist/node/components/docs/studio/StudioDeploymentsPage.js +9 -9
- package/dist/node/components/docs/studio/StudioGettingStartedPage.js +9 -9
- package/dist/node/components/docs/studio/StudioIntegrationsPage.js +9 -9
- package/dist/node/components/docs/studio/StudioOverviewPage.js +33 -33
- package/dist/node/components/docs/studio/StudioVisualBuilderPage.js +9 -9
- package/dist/node/components/docs/studio/index.js +78 -78
- package/dist/node/components/integrations/index.js +209 -209
- package/dist/node/components/integrations/molecules/IntegrationCard.js +33 -33
- package/dist/node/components/integrations/organisms/IntegrationMarketplace.js +71 -71
- package/dist/node/components/integrations/organisms/IntegrationSettings.js +98 -98
- package/dist/node/components/integrations/organisms/KnowledgeSourceList.js +40 -40
- package/dist/node/components/legal/PrivacyTemplate.js +477 -477
- package/dist/node/components/legal/TermsTemplate.js +421 -421
- package/dist/node/components/legal/index.js +898 -898
- package/dist/node/components/shared/FeatureGateNotice.js +13 -13
- package/dist/node/components/shared/index.js +13 -13
- package/dist/node/components/shell/WorkspaceHeader.js +37 -37
- package/dist/node/components/shell/WorkspaceProjectShellLayout.js +77 -77
- package/dist/node/components/shell/WorkspaceShellRenderer.js +228 -0
- package/dist/node/components/shell/WorkspaceSidebar.js +27 -27
- package/dist/node/components/shell/index.js +140 -77
- package/dist/node/components/templates/index.js +272 -272
- package/dist/node/components/templates/messaging/ConversationList.js +27 -27
- package/dist/node/components/templates/messaging/MessageComposer.js +27 -27
- package/dist/node/components/templates/messaging/MessageThread.js +18 -18
- package/dist/node/components/templates/messaging/MessagingWorkspace.js +65 -65
- package/dist/node/components/templates/messaging/index.js +65 -65
- package/dist/node/components/templates/recipes/LanguageSwitcher.js +5 -5
- package/dist/node/components/templates/recipes/RecipeCard.js +26 -26
- package/dist/node/components/templates/recipes/RecipeDetail.js +33 -33
- package/dist/node/components/templates/recipes/RecipeList.js +80 -80
- package/dist/node/components/templates/recipes/index.js +80 -80
- package/dist/node/components/templates/todos/FilterBar.js +39 -39
- package/dist/node/components/templates/todos/TaskForm.js +43 -43
- package/dist/node/components/templates/todos/TaskItem.js +30 -30
- package/dist/node/components/templates/todos/TaskList.js +127 -127
- package/dist/node/components/templates/todos/index.js +127 -127
- package/dist/node/index.js +12323 -12260
- package/dist/node/infrastructure/elysia/index.js +8 -8
- package/dist/node/infrastructure/elysia/logger.js +8 -8
- package/dist/node/infrastructure/index.js +8 -8
- package/dist/node/libs/posthog/client.js +2 -2
- package/dist/node/presentation/features/atoms/FeatureIcon/FeatureIcon.js +3 -3
- package/dist/node/presentation/features/atoms/FeatureIcon/index.js +3 -3
- package/dist/node/presentation/features/atoms/index.js +3 -3
- package/dist/node/presentation/features/index.js +915 -915
- package/dist/node/presentation/features/molecules/FeatureCard/FeatureCard.js +101 -101
- package/dist/node/presentation/features/molecules/FeatureCard/index.js +101 -101
- package/dist/node/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.js +15 -15
- package/dist/node/presentation/features/molecules/FeatureCategoryHeader/index.js +15 -15
- package/dist/node/presentation/features/molecules/FeatureFilters/FeatureFilters.js +23 -23
- package/dist/node/presentation/features/molecules/FeatureFilters/index.js +23 -23
- package/dist/node/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.js +67 -67
- package/dist/node/presentation/features/molecules/FeatureHoverPreview/index.js +67 -67
- package/dist/node/presentation/features/molecules/index.js +139 -139
- package/dist/node/presentation/features/organisms/FeatureDataViewsList.js +7 -7
- package/dist/node/presentation/features/organisms/FeatureDetail/FeatureDetail.js +57 -57
- package/dist/node/presentation/features/organisms/FeatureDetail/index.js +57 -57
- package/dist/node/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +183 -183
- package/dist/node/presentation/features/organisms/FeatureDiscovery/index.js +183 -183
- package/dist/node/presentation/features/organisms/FeatureEventsList.js +7 -7
- package/dist/node/presentation/features/organisms/FeatureFormsList.js +7 -7
- package/dist/node/presentation/features/organisms/FeatureOperationsList.js +7 -7
- package/dist/node/presentation/features/organisms/FeaturePresentationsList.js +7 -7
- package/dist/node/presentation/features/organisms/index.js +275 -275
- package/dist/node/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.js +126 -126
- package/dist/node/presentation/features/templates/FeatureDataViewDetailTemplate/index.js +126 -126
- package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +16 -16
- package/dist/node/presentation/features/templates/FeatureDataViewsTemplate/index.js +16 -16
- package/dist/node/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.js +112 -112
- package/dist/node/presentation/features/templates/FeatureEventDetailTemplate/index.js +112 -112
- package/dist/node/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +16 -16
- package/dist/node/presentation/features/templates/FeatureEventsTemplate/index.js +16 -16
- package/dist/node/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.js +126 -126
- package/dist/node/presentation/features/templates/FeatureFormDetailTemplate/index.js +126 -126
- package/dist/node/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +16 -16
- package/dist/node/presentation/features/templates/FeatureFormsTemplate/index.js +16 -16
- package/dist/node/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.js +110 -110
- package/dist/node/presentation/features/templates/FeatureOperationDetailTemplate/index.js +110 -110
- package/dist/node/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.js +16 -16
- package/dist/node/presentation/features/templates/FeatureOperationsTemplate/index.js +16 -16
- package/dist/node/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.js +66 -66
- package/dist/node/presentation/features/templates/FeatureOverviewTemplate/index.js +66 -66
- package/dist/node/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.js +112 -112
- package/dist/node/presentation/features/templates/FeaturePresentationDetailTemplate/index.js +112 -112
- package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +16 -16
- package/dist/node/presentation/features/templates/FeaturePresentationsTemplate/index.js +16 -16
- package/dist/presentation/features/atoms/FeatureIcon/FeatureIcon.js +3 -3
- package/dist/presentation/features/atoms/FeatureIcon/index.js +3 -3
- package/dist/presentation/features/atoms/index.js +3 -3
- package/dist/presentation/features/index.js +915 -915
- package/dist/presentation/features/molecules/FeatureCard/FeatureCard.js +101 -101
- package/dist/presentation/features/molecules/FeatureCard/index.js +101 -101
- package/dist/presentation/features/molecules/FeatureCategoryHeader/FeatureCategoryHeader.js +15 -15
- package/dist/presentation/features/molecules/FeatureCategoryHeader/index.js +15 -15
- package/dist/presentation/features/molecules/FeatureFilters/FeatureFilters.js +23 -23
- package/dist/presentation/features/molecules/FeatureFilters/index.js +23 -23
- package/dist/presentation/features/molecules/FeatureHoverPreview/FeatureHoverPreview.js +67 -67
- package/dist/presentation/features/molecules/FeatureHoverPreview/index.js +67 -67
- package/dist/presentation/features/molecules/index.js +139 -139
- package/dist/presentation/features/organisms/FeatureDataViewsList.js +7 -7
- package/dist/presentation/features/organisms/FeatureDetail/FeatureDetail.js +57 -57
- package/dist/presentation/features/organisms/FeatureDetail/index.js +57 -57
- package/dist/presentation/features/organisms/FeatureDiscovery/FeatureDiscovery.js +183 -183
- package/dist/presentation/features/organisms/FeatureDiscovery/index.js +183 -183
- package/dist/presentation/features/organisms/FeatureEventsList.js +7 -7
- package/dist/presentation/features/organisms/FeatureFormsList.js +7 -7
- package/dist/presentation/features/organisms/FeatureOperationsList.js +7 -7
- package/dist/presentation/features/organisms/FeaturePresentationsList.js +7 -7
- package/dist/presentation/features/organisms/index.js +275 -275
- package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/FeatureDataViewDetailTemplate.js +126 -126
- package/dist/presentation/features/templates/FeatureDataViewDetailTemplate/index.js +126 -126
- package/dist/presentation/features/templates/FeatureDataViewsTemplate/FeatureDataViewsTemplate.js +16 -16
- package/dist/presentation/features/templates/FeatureDataViewsTemplate/index.js +16 -16
- package/dist/presentation/features/templates/FeatureEventDetailTemplate/FeatureEventDetailTemplate.js +112 -112
- package/dist/presentation/features/templates/FeatureEventDetailTemplate/index.js +112 -112
- package/dist/presentation/features/templates/FeatureEventsTemplate/FeatureEventsTemplate.js +16 -16
- package/dist/presentation/features/templates/FeatureEventsTemplate/index.js +16 -16
- package/dist/presentation/features/templates/FeatureFormDetailTemplate/FeatureFormDetailTemplate.js +126 -126
- package/dist/presentation/features/templates/FeatureFormDetailTemplate/index.js +126 -126
- package/dist/presentation/features/templates/FeatureFormsTemplate/FeatureFormsTemplate.js +16 -16
- package/dist/presentation/features/templates/FeatureFormsTemplate/index.js +16 -16
- package/dist/presentation/features/templates/FeatureOperationDetailTemplate/FeatureOperationDetailTemplate.js +110 -110
- package/dist/presentation/features/templates/FeatureOperationDetailTemplate/index.js +110 -110
- package/dist/presentation/features/templates/FeatureOperationsTemplate/FeatureOperationsTemplate.js +16 -16
- package/dist/presentation/features/templates/FeatureOperationsTemplate/index.js +16 -16
- package/dist/presentation/features/templates/FeatureOverviewTemplate/FeatureOverviewTemplate.js +66 -66
- package/dist/presentation/features/templates/FeatureOverviewTemplate/index.js +66 -66
- package/dist/presentation/features/templates/FeaturePresentationDetailTemplate/FeaturePresentationDetailTemplate.js +112 -112
- package/dist/presentation/features/templates/FeaturePresentationDetailTemplate/index.js +112 -112
- package/dist/presentation/features/templates/FeaturePresentationsTemplate/FeaturePresentationsTemplate.js +16 -16
- package/dist/presentation/features/templates/FeaturePresentationsTemplate/index.js +16 -16
- package/package.json +71 -22
- package/src/bundles/LibraryBundle.ts +152 -0
- package/src/bundles/index.ts +1 -0
- package/src/components/shell/WorkspaceShellRenderer.tsx +90 -0
- package/src/components/shell/index.ts +1 -0
|
@@ -1,121 +1,121 @@
|
|
|
1
1
|
// src/components/docs/specs/SpecsPolicyPage.tsx
|
|
2
2
|
import Link from "@contractspec/lib.ui-link";
|
|
3
3
|
import { ChevronRight } from "lucide-react";
|
|
4
|
-
import {
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
function SpecsPolicyPage() {
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
7
7
|
className: "space-y-8",
|
|
8
8
|
children: [
|
|
9
|
-
/* @__PURE__ */
|
|
9
|
+
/* @__PURE__ */ jsxs("div", {
|
|
10
10
|
className: "space-y-4",
|
|
11
11
|
children: [
|
|
12
|
-
/* @__PURE__ */
|
|
12
|
+
/* @__PURE__ */ jsx("h1", {
|
|
13
13
|
className: "text-4xl font-bold",
|
|
14
14
|
children: "Policy"
|
|
15
|
-
}
|
|
16
|
-
/* @__PURE__ */
|
|
15
|
+
}),
|
|
16
|
+
/* @__PURE__ */ jsxs("p", {
|
|
17
17
|
className: "text-muted-foreground",
|
|
18
18
|
children: [
|
|
19
19
|
"A ",
|
|
20
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ jsx("strong", {
|
|
21
21
|
children: "PolicySpec"
|
|
22
|
-
}
|
|
22
|
+
}),
|
|
23
23
|
" defines who can do what, when, and under what conditions. ContractSpec uses attribute-based access control (ABAC) to enforce policies across your entire application—from API endpoints to UI components."
|
|
24
24
|
]
|
|
25
|
-
}
|
|
25
|
+
})
|
|
26
26
|
]
|
|
27
|
-
}
|
|
28
|
-
/* @__PURE__ */
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ jsxs("div", {
|
|
29
29
|
className: "space-y-4",
|
|
30
30
|
children: [
|
|
31
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ jsx("h2", {
|
|
32
32
|
className: "text-2xl font-bold",
|
|
33
33
|
children: "Why policies matter"
|
|
34
|
-
}
|
|
35
|
-
/* @__PURE__ */
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ jsx("p", {
|
|
36
36
|
className: "text-muted-foreground",
|
|
37
37
|
children: "Traditional access control relies on roles (RBAC), which can become unwieldy as applications grow. ABAC is more flexible—it evaluates policies based on attributes of the user, resource, action, and context."
|
|
38
|
-
}
|
|
39
|
-
/* @__PURE__ */
|
|
38
|
+
}),
|
|
39
|
+
/* @__PURE__ */ jsxs("p", {
|
|
40
40
|
className: "text-muted-foreground",
|
|
41
41
|
children: [
|
|
42
42
|
"ContractSpec's policy engine ensures that access control is consistent across all surfaces. You don't have to remember to add authorization checks in every API endpoint or UI component—the",
|
|
43
43
|
" ",
|
|
44
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ jsx(Link, {
|
|
45
45
|
href: "/docs/safety/pdp",
|
|
46
46
|
className: "text-violet-400 hover:text-violet-300",
|
|
47
47
|
children: "Policy Decision Point"
|
|
48
|
-
}
|
|
48
|
+
}),
|
|
49
49
|
" ",
|
|
50
50
|
"enforces policies automatically."
|
|
51
51
|
]
|
|
52
|
-
}
|
|
52
|
+
})
|
|
53
53
|
]
|
|
54
|
-
}
|
|
55
|
-
/* @__PURE__ */
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ jsxs("div", {
|
|
56
56
|
className: "space-y-4",
|
|
57
57
|
children: [
|
|
58
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ jsx("h2", {
|
|
59
59
|
className: "text-2xl font-bold",
|
|
60
60
|
children: "Policy structure"
|
|
61
|
-
}
|
|
62
|
-
/* @__PURE__ */
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ jsx("p", {
|
|
63
63
|
className: "text-muted-foreground",
|
|
64
64
|
children: "A PolicySpec contains one or more rules. Each rule has:"
|
|
65
|
-
}
|
|
66
|
-
/* @__PURE__ */
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ jsxs("ul", {
|
|
67
67
|
className: "text-muted-foreground list-inside list-disc space-y-2",
|
|
68
68
|
children: [
|
|
69
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ jsxs("li", {
|
|
70
70
|
children: [
|
|
71
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ jsx("strong", {
|
|
72
72
|
children: "Effect"
|
|
73
|
-
}
|
|
73
|
+
}),
|
|
74
74
|
" – PERMIT, DENY, or REDACT"
|
|
75
75
|
]
|
|
76
|
-
}
|
|
77
|
-
/* @__PURE__ */
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ jsxs("li", {
|
|
78
78
|
children: [
|
|
79
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ jsx("strong", {
|
|
80
80
|
children: "Condition"
|
|
81
|
-
}
|
|
81
|
+
}),
|
|
82
82
|
" – A boolean expression that determines when the rule applies"
|
|
83
83
|
]
|
|
84
|
-
}
|
|
85
|
-
/* @__PURE__ */
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ jsxs("li", {
|
|
86
86
|
children: [
|
|
87
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ jsx("strong", {
|
|
88
88
|
children: "Scope"
|
|
89
|
-
}
|
|
89
|
+
}),
|
|
90
90
|
" – Which resources, actions, or fields the rule applies to"
|
|
91
91
|
]
|
|
92
|
-
}
|
|
93
|
-
/* @__PURE__ */
|
|
92
|
+
}),
|
|
93
|
+
/* @__PURE__ */ jsxs("li", {
|
|
94
94
|
children: [
|
|
95
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ jsx("strong", {
|
|
96
96
|
children: "Priority"
|
|
97
|
-
}
|
|
97
|
+
}),
|
|
98
98
|
" – Rules are evaluated in priority order; the first matching rule wins"
|
|
99
99
|
]
|
|
100
|
-
}
|
|
100
|
+
})
|
|
101
101
|
]
|
|
102
|
-
}
|
|
102
|
+
})
|
|
103
103
|
]
|
|
104
|
-
}
|
|
105
|
-
/* @__PURE__ */
|
|
104
|
+
}),
|
|
105
|
+
/* @__PURE__ */ jsxs("div", {
|
|
106
106
|
className: "space-y-4",
|
|
107
107
|
children: [
|
|
108
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ jsx("h2", {
|
|
109
109
|
className: "text-2xl font-bold",
|
|
110
110
|
children: "Example PolicySpec"
|
|
111
|
-
}
|
|
112
|
-
/* @__PURE__ */
|
|
111
|
+
}),
|
|
112
|
+
/* @__PURE__ */ jsx("p", {
|
|
113
113
|
className: "text-muted-foreground",
|
|
114
114
|
children: "Here's a policy that controls access to customer data in TypeScript:"
|
|
115
|
-
}
|
|
116
|
-
/* @__PURE__ */
|
|
115
|
+
}),
|
|
116
|
+
/* @__PURE__ */ jsx("div", {
|
|
117
117
|
className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
|
|
118
|
-
children: /* @__PURE__ */
|
|
118
|
+
children: /* @__PURE__ */ jsx("pre", {
|
|
119
119
|
children: `import { definePolicy } from '@contractspec/lib.contracts-spec';
|
|
120
120
|
|
|
121
121
|
export const CustomerDataAccess = definePolicy({
|
|
@@ -159,179 +159,179 @@ export const CustomerDataAccess = definePolicy({
|
|
|
159
159
|
},
|
|
160
160
|
],
|
|
161
161
|
});`
|
|
162
|
-
}
|
|
163
|
-
}
|
|
162
|
+
})
|
|
163
|
+
})
|
|
164
164
|
]
|
|
165
|
-
}
|
|
166
|
-
/* @__PURE__ */
|
|
165
|
+
}),
|
|
166
|
+
/* @__PURE__ */ jsxs("div", {
|
|
167
167
|
className: "space-y-4",
|
|
168
168
|
children: [
|
|
169
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ jsx("h2", {
|
|
170
170
|
className: "text-2xl font-bold",
|
|
171
171
|
children: "Attributes"
|
|
172
|
-
}
|
|
173
|
-
/* @__PURE__ */
|
|
172
|
+
}),
|
|
173
|
+
/* @__PURE__ */ jsx("p", {
|
|
174
174
|
className: "text-muted-foreground",
|
|
175
175
|
children: "Policy conditions can reference attributes from four categories:"
|
|
176
|
-
}
|
|
177
|
-
/* @__PURE__ */
|
|
176
|
+
}),
|
|
177
|
+
/* @__PURE__ */ jsxs("div", {
|
|
178
178
|
className: "space-y-3",
|
|
179
179
|
children: [
|
|
180
|
-
/* @__PURE__ */
|
|
180
|
+
/* @__PURE__ */ jsxs("div", {
|
|
181
181
|
children: [
|
|
182
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ jsx("h3", {
|
|
183
183
|
className: "text-lg font-semibold",
|
|
184
184
|
children: "User attributes"
|
|
185
|
-
}
|
|
186
|
-
/* @__PURE__ */
|
|
185
|
+
}),
|
|
186
|
+
/* @__PURE__ */ jsxs("p", {
|
|
187
187
|
className: "text-muted-foreground",
|
|
188
188
|
children: [
|
|
189
|
-
/* @__PURE__ */
|
|
189
|
+
/* @__PURE__ */ jsx("code", {
|
|
190
190
|
className: "bg-background/50 rounded px-2 py-1",
|
|
191
191
|
children: "user.id"
|
|
192
|
-
}
|
|
192
|
+
}),
|
|
193
193
|
",",
|
|
194
194
|
" ",
|
|
195
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ jsx("code", {
|
|
196
196
|
className: "bg-background/50 rounded px-2 py-1",
|
|
197
197
|
children: "user.role"
|
|
198
|
-
}
|
|
198
|
+
}),
|
|
199
199
|
",",
|
|
200
200
|
" ",
|
|
201
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ jsx("code", {
|
|
202
202
|
className: "bg-background/50 rounded px-2 py-1",
|
|
203
203
|
children: "user.groups"
|
|
204
|
-
}
|
|
204
|
+
}),
|
|
205
205
|
",",
|
|
206
206
|
" ",
|
|
207
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ jsx("code", {
|
|
208
208
|
className: "bg-background/50 rounded px-2 py-1",
|
|
209
209
|
children: "user.department"
|
|
210
|
-
}
|
|
210
|
+
}),
|
|
211
211
|
", custom attributes"
|
|
212
212
|
]
|
|
213
|
-
}
|
|
213
|
+
})
|
|
214
214
|
]
|
|
215
|
-
}
|
|
216
|
-
/* @__PURE__ */
|
|
215
|
+
}),
|
|
216
|
+
/* @__PURE__ */ jsxs("div", {
|
|
217
217
|
children: [
|
|
218
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ jsx("h3", {
|
|
219
219
|
className: "text-lg font-semibold",
|
|
220
220
|
children: "Resource attributes"
|
|
221
|
-
}
|
|
222
|
-
/* @__PURE__ */
|
|
221
|
+
}),
|
|
222
|
+
/* @__PURE__ */ jsxs("p", {
|
|
223
223
|
className: "text-muted-foreground",
|
|
224
224
|
children: [
|
|
225
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ jsx("code", {
|
|
226
226
|
className: "bg-background/50 rounded px-2 py-1",
|
|
227
227
|
children: "resource.type"
|
|
228
|
-
}
|
|
228
|
+
}),
|
|
229
229
|
",",
|
|
230
230
|
" ",
|
|
231
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ jsx("code", {
|
|
232
232
|
className: "bg-background/50 rounded px-2 py-1",
|
|
233
233
|
children: "resource.owner"
|
|
234
|
-
}
|
|
234
|
+
}),
|
|
235
235
|
",",
|
|
236
236
|
" ",
|
|
237
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ jsx("code", {
|
|
238
238
|
className: "bg-background/50 rounded px-2 py-1",
|
|
239
239
|
children: "resource.sensitivity"
|
|
240
|
-
}
|
|
240
|
+
}),
|
|
241
241
|
", custom attributes"
|
|
242
242
|
]
|
|
243
|
-
}
|
|
243
|
+
})
|
|
244
244
|
]
|
|
245
|
-
}
|
|
246
|
-
/* @__PURE__ */
|
|
245
|
+
}),
|
|
246
|
+
/* @__PURE__ */ jsxs("div", {
|
|
247
247
|
children: [
|
|
248
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ jsx("h3", {
|
|
249
249
|
className: "text-lg font-semibold",
|
|
250
250
|
children: "Action attributes"
|
|
251
|
-
}
|
|
252
|
-
/* @__PURE__ */
|
|
251
|
+
}),
|
|
252
|
+
/* @__PURE__ */ jsxs("p", {
|
|
253
253
|
className: "text-muted-foreground",
|
|
254
254
|
children: [
|
|
255
|
-
/* @__PURE__ */
|
|
255
|
+
/* @__PURE__ */ jsx("code", {
|
|
256
256
|
className: "bg-background/50 rounded px-2 py-1",
|
|
257
257
|
children: "action"
|
|
258
|
-
}
|
|
258
|
+
}),
|
|
259
259
|
" ",
|
|
260
260
|
"(read, write, delete, execute, export, etc.)"
|
|
261
261
|
]
|
|
262
|
-
}
|
|
262
|
+
})
|
|
263
263
|
]
|
|
264
|
-
}
|
|
265
|
-
/* @__PURE__ */
|
|
264
|
+
}),
|
|
265
|
+
/* @__PURE__ */ jsxs("div", {
|
|
266
266
|
children: [
|
|
267
|
-
/* @__PURE__ */
|
|
267
|
+
/* @__PURE__ */ jsx("h3", {
|
|
268
268
|
className: "text-lg font-semibold",
|
|
269
269
|
children: "Context attributes"
|
|
270
|
-
}
|
|
271
|
-
/* @__PURE__ */
|
|
270
|
+
}),
|
|
271
|
+
/* @__PURE__ */ jsxs("p", {
|
|
272
272
|
className: "text-muted-foreground",
|
|
273
273
|
children: [
|
|
274
|
-
/* @__PURE__ */
|
|
274
|
+
/* @__PURE__ */ jsx("code", {
|
|
275
275
|
className: "bg-background/50 rounded px-2 py-1",
|
|
276
276
|
children: "time.hour"
|
|
277
|
-
}
|
|
277
|
+
}),
|
|
278
278
|
",",
|
|
279
279
|
" ",
|
|
280
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ jsx("code", {
|
|
281
281
|
className: "bg-background/50 rounded px-2 py-1",
|
|
282
282
|
children: "time.dayOfWeek"
|
|
283
|
-
}
|
|
283
|
+
}),
|
|
284
284
|
",",
|
|
285
285
|
" ",
|
|
286
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ jsx("code", {
|
|
287
287
|
className: "bg-background/50 rounded px-2 py-1",
|
|
288
288
|
children: "request.ipAddress"
|
|
289
|
-
}
|
|
289
|
+
}),
|
|
290
290
|
",",
|
|
291
291
|
" ",
|
|
292
|
-
/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ jsx("code", {
|
|
293
293
|
className: "bg-background/50 rounded px-2 py-1",
|
|
294
294
|
children: "request.userAgent"
|
|
295
|
-
}
|
|
295
|
+
})
|
|
296
296
|
]
|
|
297
|
-
}
|
|
297
|
+
})
|
|
298
298
|
]
|
|
299
|
-
}
|
|
299
|
+
})
|
|
300
300
|
]
|
|
301
|
-
}
|
|
301
|
+
})
|
|
302
302
|
]
|
|
303
|
-
}
|
|
304
|
-
/* @__PURE__ */
|
|
303
|
+
}),
|
|
304
|
+
/* @__PURE__ */ jsxs("div", {
|
|
305
305
|
className: "space-y-4",
|
|
306
306
|
children: [
|
|
307
|
-
/* @__PURE__ */
|
|
307
|
+
/* @__PURE__ */ jsx("h2", {
|
|
308
308
|
className: "text-2xl font-bold",
|
|
309
309
|
children: "Data classification"
|
|
310
|
-
}
|
|
311
|
-
/* @__PURE__ */
|
|
310
|
+
}),
|
|
311
|
+
/* @__PURE__ */ jsxs("p", {
|
|
312
312
|
className: "text-muted-foreground",
|
|
313
313
|
children: [
|
|
314
314
|
"You can tag fields with sensitivity levels in your",
|
|
315
315
|
" ",
|
|
316
|
-
/* @__PURE__ */
|
|
316
|
+
/* @__PURE__ */ jsx(Link, {
|
|
317
317
|
href: "/docs/specs/capabilities",
|
|
318
318
|
className: "text-violet-400 hover:text-violet-300",
|
|
319
319
|
children: "CapabilitySpecs"
|
|
320
|
-
}
|
|
320
|
+
}),
|
|
321
321
|
" ",
|
|
322
322
|
"and",
|
|
323
323
|
" ",
|
|
324
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ jsx(Link, {
|
|
325
325
|
href: "/docs/specs/dataviews",
|
|
326
326
|
className: "text-violet-400 hover:text-violet-300",
|
|
327
327
|
children: "DataViewSpecs"
|
|
328
|
-
}
|
|
328
|
+
}),
|
|
329
329
|
":"
|
|
330
330
|
]
|
|
331
|
-
}
|
|
332
|
-
/* @__PURE__ */
|
|
331
|
+
}),
|
|
332
|
+
/* @__PURE__ */ jsx("div", {
|
|
333
333
|
className: "bg-background/50 border-border text-muted-foreground overflow-x-auto rounded-lg border p-4 font-mono text-sm",
|
|
334
|
-
children: /* @__PURE__ */
|
|
334
|
+
children: /* @__PURE__ */ jsx("pre", {
|
|
335
335
|
children: `fields:
|
|
336
336
|
- name: email
|
|
337
337
|
type: string
|
|
@@ -346,127 +346,127 @@ export const CustomerDataAccess = definePolicy({
|
|
|
346
346
|
- name: salary
|
|
347
347
|
type: number
|
|
348
348
|
sensitivity: confidential`
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
/* @__PURE__ */
|
|
349
|
+
})
|
|
350
|
+
}),
|
|
351
|
+
/* @__PURE__ */ jsx("p", {
|
|
352
352
|
className: "text-muted-foreground",
|
|
353
353
|
children: 'Policies can then reference these tags to enforce blanket rules like "support staff cannot see PII" or "PHI can only be accessed from approved IP addresses."'
|
|
354
|
-
}
|
|
354
|
+
})
|
|
355
355
|
]
|
|
356
|
-
}
|
|
357
|
-
/* @__PURE__ */
|
|
356
|
+
}),
|
|
357
|
+
/* @__PURE__ */ jsxs("div", {
|
|
358
358
|
className: "space-y-4",
|
|
359
359
|
children: [
|
|
360
|
-
/* @__PURE__ */
|
|
360
|
+
/* @__PURE__ */ jsx("h2", {
|
|
361
361
|
className: "text-2xl font-bold",
|
|
362
362
|
children: "Testing policies"
|
|
363
|
-
}
|
|
364
|
-
/* @__PURE__ */
|
|
363
|
+
}),
|
|
364
|
+
/* @__PURE__ */ jsx("p", {
|
|
365
365
|
className: "text-muted-foreground",
|
|
366
366
|
children: "ContractSpec provides tools for testing policies before deployment:"
|
|
367
|
-
}
|
|
368
|
-
/* @__PURE__ */
|
|
367
|
+
}),
|
|
368
|
+
/* @__PURE__ */ jsxs("ul", {
|
|
369
369
|
className: "text-muted-foreground list-inside list-disc space-y-2",
|
|
370
370
|
children: [
|
|
371
|
-
/* @__PURE__ */
|
|
371
|
+
/* @__PURE__ */ jsxs("li", {
|
|
372
372
|
children: [
|
|
373
|
-
/* @__PURE__ */
|
|
373
|
+
/* @__PURE__ */ jsx("strong", {
|
|
374
374
|
children: "Policy simulator"
|
|
375
|
-
}
|
|
375
|
+
}),
|
|
376
376
|
" – Test how policies evaluate for different users and scenarios"
|
|
377
377
|
]
|
|
378
|
-
}
|
|
379
|
-
/* @__PURE__ */
|
|
378
|
+
}),
|
|
379
|
+
/* @__PURE__ */ jsxs("li", {
|
|
380
380
|
children: [
|
|
381
|
-
/* @__PURE__ */
|
|
381
|
+
/* @__PURE__ */ jsx("strong", {
|
|
382
382
|
children: "Coverage analysis"
|
|
383
|
-
}
|
|
383
|
+
}),
|
|
384
384
|
" – Identify resources or actions that aren't covered by any policy"
|
|
385
385
|
]
|
|
386
|
-
}
|
|
387
|
-
/* @__PURE__ */
|
|
386
|
+
}),
|
|
387
|
+
/* @__PURE__ */ jsxs("li", {
|
|
388
388
|
children: [
|
|
389
|
-
/* @__PURE__ */
|
|
389
|
+
/* @__PURE__ */ jsx("strong", {
|
|
390
390
|
children: "Conflict detection"
|
|
391
|
-
}
|
|
391
|
+
}),
|
|
392
392
|
" – Find rules that might conflict or produce unexpected results"
|
|
393
393
|
]
|
|
394
|
-
}
|
|
395
|
-
/* @__PURE__ */
|
|
394
|
+
}),
|
|
395
|
+
/* @__PURE__ */ jsxs("li", {
|
|
396
396
|
children: [
|
|
397
|
-
/* @__PURE__ */
|
|
397
|
+
/* @__PURE__ */ jsx("strong", {
|
|
398
398
|
children: "Audit mode"
|
|
399
|
-
}
|
|
399
|
+
}),
|
|
400
400
|
" – Run policies in audit-only mode to see what would be blocked without actually blocking it"
|
|
401
401
|
]
|
|
402
|
-
}
|
|
402
|
+
})
|
|
403
403
|
]
|
|
404
|
-
}
|
|
404
|
+
})
|
|
405
405
|
]
|
|
406
|
-
}
|
|
407
|
-
/* @__PURE__ */
|
|
406
|
+
}),
|
|
407
|
+
/* @__PURE__ */ jsxs("div", {
|
|
408
408
|
className: "space-y-4",
|
|
409
409
|
children: [
|
|
410
|
-
/* @__PURE__ */
|
|
410
|
+
/* @__PURE__ */ jsx("h2", {
|
|
411
411
|
className: "text-2xl font-bold",
|
|
412
412
|
children: "Best practices"
|
|
413
|
-
}
|
|
414
|
-
/* @__PURE__ */
|
|
413
|
+
}),
|
|
414
|
+
/* @__PURE__ */ jsxs("ul", {
|
|
415
415
|
className: "text-muted-foreground list-inside list-disc space-y-2",
|
|
416
416
|
children: [
|
|
417
|
-
/* @__PURE__ */
|
|
417
|
+
/* @__PURE__ */ jsx("li", {
|
|
418
418
|
children: "Start with a deny-by-default policy—explicitly permit what should be allowed."
|
|
419
|
-
}
|
|
420
|
-
/* @__PURE__ */
|
|
419
|
+
}),
|
|
420
|
+
/* @__PURE__ */ jsx("li", {
|
|
421
421
|
children: "Use clear, descriptive rule IDs that explain what the rule does."
|
|
422
|
-
}
|
|
423
|
-
/* @__PURE__ */
|
|
422
|
+
}),
|
|
423
|
+
/* @__PURE__ */ jsx("li", {
|
|
424
424
|
children: "Set priorities carefully to ensure rules are evaluated in the right order."
|
|
425
|
-
}
|
|
426
|
-
/* @__PURE__ */
|
|
425
|
+
}),
|
|
426
|
+
/* @__PURE__ */ jsx("li", {
|
|
427
427
|
children: "Test policies thoroughly with realistic user scenarios before deploying."
|
|
428
|
-
}
|
|
429
|
-
/* @__PURE__ */
|
|
428
|
+
}),
|
|
429
|
+
/* @__PURE__ */ jsxs("li", {
|
|
430
430
|
children: [
|
|
431
431
|
"Monitor policy decisions in production using",
|
|
432
432
|
" ",
|
|
433
|
-
/* @__PURE__ */
|
|
433
|
+
/* @__PURE__ */ jsx(Link, {
|
|
434
434
|
href: "/docs/safety/auditing",
|
|
435
435
|
className: "text-violet-400 hover:text-violet-300",
|
|
436
436
|
children: "audit logs"
|
|
437
|
-
}
|
|
437
|
+
}),
|
|
438
438
|
"."
|
|
439
439
|
]
|
|
440
|
-
}
|
|
441
|
-
/* @__PURE__ */
|
|
440
|
+
}),
|
|
441
|
+
/* @__PURE__ */ jsx("li", {
|
|
442
442
|
children: "Review and update policies regularly as your application and requirements evolve."
|
|
443
|
-
}
|
|
443
|
+
})
|
|
444
444
|
]
|
|
445
|
-
}
|
|
445
|
+
})
|
|
446
446
|
]
|
|
447
|
-
}
|
|
448
|
-
/* @__PURE__ */
|
|
447
|
+
}),
|
|
448
|
+
/* @__PURE__ */ jsxs("div", {
|
|
449
449
|
className: "flex items-center gap-4 pt-4",
|
|
450
450
|
children: [
|
|
451
|
-
/* @__PURE__ */
|
|
451
|
+
/* @__PURE__ */ jsx(Link, {
|
|
452
452
|
href: "/docs/specs/workflows",
|
|
453
453
|
className: "btn-ghost",
|
|
454
454
|
children: "Previous: Workflows"
|
|
455
|
-
}
|
|
456
|
-
/* @__PURE__ */
|
|
455
|
+
}),
|
|
456
|
+
/* @__PURE__ */ jsxs(Link, {
|
|
457
457
|
href: "/docs/specs/overlays",
|
|
458
458
|
className: "btn-primary",
|
|
459
459
|
children: [
|
|
460
460
|
"Next: Overlays ",
|
|
461
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ jsx(ChevronRight, {
|
|
462
462
|
size: 16
|
|
463
|
-
}
|
|
463
|
+
})
|
|
464
464
|
]
|
|
465
|
-
}
|
|
465
|
+
})
|
|
466
466
|
]
|
|
467
|
-
}
|
|
467
|
+
})
|
|
468
468
|
]
|
|
469
|
-
}
|
|
469
|
+
});
|
|
470
470
|
}
|
|
471
471
|
export {
|
|
472
472
|
SpecsPolicyPage
|