@objectstack/spec 2.0.6 → 2.0.7
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/dist/ai/index.d.mts +1 -1
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/index.js +230 -3
- package/dist/ai/index.js.map +1 -1
- package/dist/ai/index.mjs +218 -3
- package/dist/ai/index.mjs.map +1 -1
- package/dist/api/index.d.mts +2 -2
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +3409 -2841
- package/dist/api/index.js.map +1 -1
- package/dist/api/index.mjs +3386 -2841
- package/dist/api/index.mjs.map +1 -1
- package/dist/automation/index.d.mts +1 -1
- package/dist/automation/index.d.ts +1 -1
- package/dist/contracts/index.d.mts +2 -2
- package/dist/contracts/index.d.ts +2 -2
- package/dist/contracts/index.js.map +1 -1
- package/dist/data/index.d.mts +2 -2
- package/dist/data/index.d.ts +2 -2
- package/dist/data/index.js +58 -1
- package/dist/data/index.js.map +1 -1
- package/dist/data/index.mjs +58 -1
- package/dist/data/index.mjs.map +1 -1
- package/dist/{driver.zod-E3C6n0W-.d.ts → driver.zod-B3Q0oLlF.d.ts} +1 -1
- package/dist/{driver.zod-DnOPgUGi.d.mts → driver.zod-Bf2z72WQ.d.mts} +1 -1
- package/dist/{index-DyawwLFZ.d.ts → index-B3C8s_DZ.d.ts} +307 -29
- package/dist/{index-DTCkpGMm.d.mts → index-BliYpI46.d.mts} +879 -52
- package/dist/{index-BbtSaxHm.d.ts → index-BpE_xfkc.d.ts} +3289 -229
- package/dist/{index-E1mP_eoE.d.mts → index-C3cFLYII.d.mts} +307 -29
- package/dist/{index-BpP0MwlW.d.ts → index-CXtgLAue.d.ts} +879 -52
- package/dist/{index-D-tf4nDV.d.mts → index-CYbdd-mL.d.mts} +27 -1
- package/dist/{index-B-u2mVKn.d.mts → index-CeUUI-ym.d.mts} +151 -14
- package/dist/{index-BPhGHW32.d.ts → index-CfvdYFyf.d.ts} +27 -1
- package/dist/{index-CDN6TRx9.d.mts → index-ClHj1Tbo.d.mts} +71 -2
- package/dist/{index-CDN6TRx9.d.ts → index-ClHj1Tbo.d.ts} +71 -2
- package/dist/{index-BjxWBAB_.d.ts → index-CmY8tgpL.d.ts} +151 -14
- package/dist/{index-DRCh2NTZ.d.mts → index-CqDMk0T6.d.mts} +3289 -229
- package/dist/{index-d9wYlv-g.d.ts → index-DNKiU_-x.d.mts} +684 -18
- package/dist/{index-d9wYlv-g.d.mts → index-DNKiU_-x.d.ts} +684 -18
- package/dist/{index-CisfSmuF.d.ts → index-Dm4UfDKG.d.ts} +451 -19
- package/dist/index-KhvhiesR.d.mts +6902 -0
- package/dist/{index-BV0xBoer.d.mts → index-Onf8hbkX.d.mts} +451 -19
- package/dist/index-OqCqQSaH.d.ts +6902 -0
- package/dist/index.d.mts +2519 -222
- package/dist/index.d.ts +2519 -222
- package/dist/index.js +9957 -8069
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9957 -8069
- package/dist/index.mjs.map +1 -1
- package/dist/integration/index.d.mts +1 -1
- package/dist/integration/index.d.ts +1 -1
- package/dist/integration/index.js +67 -0
- package/dist/integration/index.js.map +1 -1
- package/dist/integration/index.mjs +61 -0
- package/dist/integration/index.mjs.map +1 -1
- package/dist/kernel/index.d.mts +2 -2
- package/dist/kernel/index.d.ts +2 -2
- package/dist/kernel/index.js +1698 -1474
- package/dist/kernel/index.js.map +1 -1
- package/dist/kernel/index.mjs +1690 -1474
- package/dist/kernel/index.mjs.map +1 -1
- package/dist/{package-registry.zod-CbS9FKeH.d.mts → package-registry.zod-BJQSiICj.d.mts} +78 -43
- package/dist/{package-registry.zod-CbS9FKeH.d.ts → package-registry.zod-BJQSiICj.d.ts} +78 -43
- package/dist/security/index.d.mts +1 -1
- package/dist/security/index.d.ts +1 -1
- package/dist/security/index.js +47 -1
- package/dist/security/index.js.map +1 -1
- package/dist/security/index.mjs +45 -1
- package/dist/security/index.mjs.map +1 -1
- package/dist/system/index.d.mts +1 -1
- package/dist/system/index.d.ts +1 -1
- package/dist/system/index.js +2189 -1821
- package/dist/system/index.js.map +1 -1
- package/dist/system/index.mjs +2168 -1821
- package/dist/system/index.mjs.map +1 -1
- package/dist/ui/index.d.mts +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1414 -767
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/index.mjs +1354 -767
- package/dist/ui/index.mjs.map +1 -1
- package/json-schema/ai/Agent.json +203 -0
- package/json-schema/ai/AgentCommunicationProtocol.json +9 -0
- package/json-schema/ai/AgentGroupMember.json +45 -0
- package/json-schema/ai/AgentGroupRole.json +10 -0
- package/json-schema/ai/DevOpsAgent.json +203 -0
- package/json-schema/ai/MCPClientConfig.json +168 -0
- package/json-schema/ai/MCPRootEntry.json +23 -0
- package/json-schema/ai/MCPRootsConfig.json +49 -0
- package/json-schema/ai/MCPSamplingConfig.json +46 -0
- package/json-schema/ai/MCPServerConfig.json +120 -0
- package/json-schema/ai/MCPStreamingConfig.json +38 -0
- package/json-schema/ai/MCPToolApproval.json +39 -0
- package/json-schema/ai/MultiAgentGroup.json +137 -0
- package/json-schema/ai/StructuredOutputConfig.json +75 -0
- package/json-schema/ai/StructuredOutputFormat.json +12 -0
- package/json-schema/ai/TransformPipelineStep.json +11 -0
- package/json-schema/api/AppDefinitionResponse.json +285 -7
- package/json-schema/api/BasePresence.json +40 -0
- package/json-schema/api/BatchLoadingStrategy.json +40 -0
- package/json-schema/api/Callback.json +39 -0
- package/json-schema/api/DataLoaderConfig.json +55 -0
- package/json-schema/api/DisablePackageResponse.json +26 -0
- package/json-schema/api/Discovery.json +4 -62
- package/json-schema/api/EnablePackageResponse.json +26 -0
- package/json-schema/api/FederationEntity.json +110 -0
- package/json-schema/api/FederationEntityKey.json +20 -0
- package/json-schema/api/FederationExternalField.json +18 -0
- package/json-schema/api/FederationGateway.json +327 -0
- package/json-schema/api/FederationProvides.json +19 -0
- package/json-schema/api/FederationRequires.json +19 -0
- package/json-schema/api/GetDiscoveryResponse.json +1 -60
- package/json-schema/api/GetPackageResponse.json +26 -0
- package/json-schema/api/GraphQLConfig.json +327 -0
- package/json-schema/api/GraphQLQueryAdapter.json +84 -0
- package/json-schema/api/InstallPackageRequest.json +26 -0
- package/json-schema/api/InstallPackageResponse.json +26 -0
- package/json-schema/api/ListPackagesResponse.json +26 -0
- package/json-schema/api/ODataQueryAdapter.json +66 -0
- package/json-schema/api/OpenApi31Extensions.json +139 -0
- package/json-schema/api/OperatorMapping.json +26 -0
- package/json-schema/api/PresenceStatus.json +10 -0
- package/json-schema/api/QueryAdapterConfig.json +272 -0
- package/json-schema/api/QueryAdapterTarget.json +9 -0
- package/json-schema/api/QueryOptimizationConfig.json +126 -0
- package/json-schema/api/RealtimeRecordAction.json +9 -0
- package/json-schema/api/RestQueryAdapter.json +86 -0
- package/json-schema/api/RestServerConfig.json +139 -0
- package/json-schema/api/SubgraphConfig.json +183 -0
- package/json-schema/api/WebhookConfig.json +129 -0
- package/json-schema/api/WebhookEvent.json +64 -0
- package/json-schema/data/ExternalLookup.json +128 -0
- package/json-schema/identity/SCIMBulkOperation.json +41 -0
- package/json-schema/identity/SCIMBulkRequest.json +73 -0
- package/json-schema/identity/SCIMBulkResponse.json +61 -0
- package/json-schema/identity/SCIMBulkResponseOperation.json +36 -0
- package/json-schema/integration/CircuitBreakerConfig.json +49 -0
- package/json-schema/integration/Connector.json +223 -0
- package/json-schema/integration/ConnectorHealth.json +113 -0
- package/json-schema/integration/DatabaseConnector.json +223 -0
- package/json-schema/integration/ErrorCategory.json +15 -0
- package/json-schema/integration/ErrorMappingConfig.json +112 -0
- package/json-schema/integration/ErrorMappingRule.json +66 -0
- package/json-schema/integration/FileStorageConnector.json +223 -0
- package/json-schema/integration/GitHubConnector.json +223 -0
- package/json-schema/integration/HealthCheckConfig.json +58 -0
- package/json-schema/integration/MessageQueueConnector.json +223 -0
- package/json-schema/integration/SaasConnector.json +223 -0
- package/json-schema/integration/VercelConnector.json +223 -0
- package/json-schema/kernel/CLICommandContribution.json +23 -0
- package/json-schema/kernel/CLIExtensionExport.json +22 -0
- package/json-schema/kernel/DevFixtureConfig.json +35 -0
- package/json-schema/kernel/DevPluginConfig.json +170 -0
- package/json-schema/kernel/DevPluginPreset.json +10 -0
- package/json-schema/kernel/DevServiceOverride.json +41 -0
- package/json-schema/kernel/DevToolsConfig.json +45 -0
- package/json-schema/kernel/DisablePackageResponse.json +26 -0
- package/json-schema/kernel/EnablePackageResponse.json +26 -0
- package/json-schema/kernel/GetPackageResponse.json +26 -0
- package/json-schema/kernel/InstallPackageRequest.json +26 -0
- package/json-schema/kernel/InstallPackageResponse.json +26 -0
- package/json-schema/kernel/InstalledPackage.json +26 -0
- package/json-schema/kernel/ListPackagesResponse.json +26 -0
- package/json-schema/kernel/Manifest.json +26 -0
- package/json-schema/kernel/MetadataFallbackStrategy.json +9 -0
- package/json-schema/kernel/MetadataLoaderContract.json +7 -0
- package/json-schema/kernel/MetadataManagerConfig.json +21 -0
- package/json-schema/security/RLSAuditConfig.json +62 -0
- package/json-schema/security/RLSAuditEvent.json +66 -0
- package/json-schema/security/RLSConfig.json +62 -0
- package/json-schema/system/AuthConfig.json +83 -0
- package/json-schema/system/BackupConfig.json +148 -0
- package/json-schema/system/BackupRetention.json +27 -0
- package/json-schema/system/BackupStrategy.json +10 -0
- package/json-schema/system/CacheAvalanchePrevention.json +77 -0
- package/json-schema/system/CacheConsistency.json +11 -0
- package/json-schema/system/CacheWarmup.json +44 -0
- package/json-schema/system/ComplianceAuditRequirement.json +43 -0
- package/json-schema/system/ComplianceEncryptionRequirement.json +58 -0
- package/json-schema/system/DataClassificationPolicy.json +46 -0
- package/json-schema/system/DisasterRecoveryPlan.json +414 -0
- package/json-schema/system/DistributedCacheConfig.json +269 -0
- package/json-schema/system/FailoverConfig.json +102 -0
- package/json-schema/system/FailoverMode.json +11 -0
- package/json-schema/system/MaskingVisibilityRule.json +56 -0
- package/json-schema/system/MetadataFallbackStrategy.json +9 -0
- package/json-schema/system/MetadataLoaderContract.json +9 -1
- package/json-schema/system/MetadataManagerConfig.json +52 -11
- package/json-schema/system/MetadataRecord.json +32 -1
- package/json-schema/system/MetadataSource.json +10 -0
- package/json-schema/system/MutualTLSConfig.json +83 -0
- package/json-schema/system/RPO.json +27 -0
- package/json-schema/system/RTO.json +27 -0
- package/json-schema/system/SecurityContextConfig.json +288 -0
- package/json-schema/system/SecurityEventCorrelation.json +40 -0
- package/json-schema/ui/Action.json +200 -5
- package/json-schema/ui/ActionParam.json +62 -2
- package/json-schema/ui/AnimationTrigger.json +14 -0
- package/json-schema/ui/App.json +285 -7
- package/json-schema/ui/AriaProps.json +49 -0
- package/json-schema/ui/BreakpointColumnMap.json +38 -0
- package/json-schema/ui/BreakpointName.json +12 -0
- package/json-schema/ui/BreakpointOrderMap.json +26 -0
- package/json-schema/ui/ChartAnnotation.json +31 -1
- package/json-schema/ui/ChartAxis.json +30 -1
- package/json-schema/ui/ChartConfig.json +259 -7
- package/json-schema/ui/ChartSeries.json +30 -1
- package/json-schema/ui/ColumnSummary.json +18 -0
- package/json-schema/ui/ComponentAnimation.json +246 -0
- package/json-schema/ui/ConflictResolution.json +11 -0
- package/json-schema/ui/Dashboard.json +627 -11
- package/json-schema/ui/DashboardNavItem.json +30 -1
- package/json-schema/ui/DashboardWidget.json +433 -8
- package/json-schema/ui/DateFormat.json +36 -0
- package/json-schema/ui/DensityMode.json +9 -0
- package/json-schema/ui/DndConfig.json +306 -0
- package/json-schema/ui/DragConstraint.json +44 -0
- package/json-schema/ui/DragHandle.json +10 -0
- package/json-schema/ui/DragItem.json +160 -0
- package/json-schema/ui/DropEffect.json +11 -0
- package/json-schema/ui/DropZone.json +114 -0
- package/json-schema/ui/EasingFunction.json +13 -0
- package/json-schema/ui/EvictionPolicy.json +10 -0
- package/json-schema/ui/FocusManagement.json +69 -0
- package/json-schema/ui/FocusTrapConfig.json +32 -0
- package/json-schema/ui/FormField.json +90 -3
- package/json-schema/ui/GalleryConfig.json +46 -0
- package/json-schema/ui/GestureConfig.json +128 -0
- package/json-schema/ui/GestureType.json +14 -0
- package/json-schema/ui/GroupNavItem.json +30 -1
- package/json-schema/ui/GroupingConfig.json +45 -0
- package/json-schema/ui/GroupingField.json +30 -0
- package/json-schema/ui/I18nLabel.json +34 -0
- package/json-schema/ui/I18nObject.json +26 -0
- package/json-schema/ui/KeyboardNavigationConfig.json +194 -0
- package/json-schema/ui/KeyboardShortcut.json +66 -0
- package/json-schema/ui/ListColumn.json +55 -1
- package/json-schema/ui/ListView.json +435 -4
- package/json-schema/ui/LocaleConfig.json +108 -0
- package/json-schema/ui/LongPressGestureConfig.json +20 -0
- package/json-schema/ui/MotionConfig.json +405 -0
- package/json-schema/ui/NavigationItem.json +150 -5
- package/json-schema/ui/Notification.json +232 -0
- package/json-schema/ui/NotificationAction.json +60 -0
- package/json-schema/ui/NotificationConfig.json +52 -0
- package/json-schema/ui/NotificationPosition.json +13 -0
- package/json-schema/ui/NotificationSeverity.json +11 -0
- package/json-schema/ui/NotificationType.json +12 -0
- package/json-schema/ui/NumberFormat.json +42 -0
- package/json-schema/ui/ObjectNavItem.json +30 -1
- package/json-schema/ui/OfflineCacheConfig.json +40 -0
- package/json-schema/ui/OfflineConfig.json +157 -0
- package/json-schema/ui/OfflineStrategy.json +12 -0
- package/json-schema/ui/Page.json +285 -3
- package/json-schema/ui/PageCardProps.json +79 -1
- package/json-schema/ui/PageComponent.json +175 -1
- package/json-schema/ui/PageHeaderProps.json +108 -2
- package/json-schema/ui/PageNavItem.json +30 -1
- package/json-schema/ui/PageRegion.json +175 -1
- package/json-schema/ui/PageTabsProps.json +79 -1
- package/json-schema/ui/PageTransition.json +53 -0
- package/json-schema/ui/PerformanceConfig.json +57 -0
- package/json-schema/ui/PersistStorage.json +10 -0
- package/json-schema/ui/PinchGestureConfig.json +16 -0
- package/json-schema/ui/PluralRule.json +40 -0
- package/json-schema/ui/Report.json +490 -8
- package/json-schema/ui/ReportChart.json +199 -5
- package/json-schema/ui/ReportColumn.json +126 -1
- package/json-schema/ui/ResponsiveConfig.json +97 -0
- package/json-schema/ui/RowColorConfig.json +25 -0
- package/json-schema/ui/RowHeight.json +12 -0
- package/json-schema/ui/SwipeDirection.json +10 -0
- package/json-schema/ui/SwipeGestureConfig.json +32 -0
- package/json-schema/ui/SyncConfig.json +47 -0
- package/json-schema/ui/Theme.json +137 -0
- package/json-schema/ui/TimelineConfig.json +46 -0
- package/json-schema/ui/TouchInteraction.json +232 -0
- package/json-schema/ui/TouchTargetConfig.json +49 -0
- package/json-schema/ui/TransitionConfig.json +47 -0
- package/json-schema/ui/TransitionPreset.json +16 -0
- package/json-schema/ui/UrlNavItem.json +30 -1
- package/json-schema/ui/ViewSharing.json +24 -0
- package/json-schema/ui/WcagContrastLevel.json +8 -0
- package/json-schema/ui/WidgetEvent.json +60 -2
- package/json-schema/ui/WidgetManifest.json +284 -6
- package/json-schema/ui/WidgetProperty.json +60 -2
- package/package.json +1 -1
- package/dist/index-CZjkpp75.d.mts +0 -3867
- package/dist/index-CgkjUheS.d.ts +0 -3867
- package/dist/{index-B08s7rEU.d.mts → index-DmhxH5jy.d.mts} +8 -8
- package/dist/{index-DqnBqATx.d.ts → index-y5JJvyML.d.ts} +8 -8
|
@@ -898,6 +898,229 @@
|
|
|
898
898
|
"description": "Enable connector",
|
|
899
899
|
"type": "boolean"
|
|
900
900
|
},
|
|
901
|
+
"errorMapping": {
|
|
902
|
+
"description": "Error mapping configuration",
|
|
903
|
+
"type": "object",
|
|
904
|
+
"properties": {
|
|
905
|
+
"rules": {
|
|
906
|
+
"type": "array",
|
|
907
|
+
"items": {
|
|
908
|
+
"type": "object",
|
|
909
|
+
"properties": {
|
|
910
|
+
"sourceCode": {
|
|
911
|
+
"anyOf": [
|
|
912
|
+
{
|
|
913
|
+
"type": "string"
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"type": "number"
|
|
917
|
+
}
|
|
918
|
+
],
|
|
919
|
+
"description": "External system error code"
|
|
920
|
+
},
|
|
921
|
+
"sourceMessage": {
|
|
922
|
+
"description": "Pattern to match against error message",
|
|
923
|
+
"type": "string"
|
|
924
|
+
},
|
|
925
|
+
"targetCode": {
|
|
926
|
+
"type": "string",
|
|
927
|
+
"description": "ObjectStack standard error code"
|
|
928
|
+
},
|
|
929
|
+
"targetCategory": {
|
|
930
|
+
"type": "string",
|
|
931
|
+
"enum": [
|
|
932
|
+
"validation",
|
|
933
|
+
"authorization",
|
|
934
|
+
"not_found",
|
|
935
|
+
"conflict",
|
|
936
|
+
"rate_limit",
|
|
937
|
+
"timeout",
|
|
938
|
+
"server_error",
|
|
939
|
+
"integration_error"
|
|
940
|
+
],
|
|
941
|
+
"description": "Error category"
|
|
942
|
+
},
|
|
943
|
+
"severity": {
|
|
944
|
+
"type": "string",
|
|
945
|
+
"enum": [
|
|
946
|
+
"low",
|
|
947
|
+
"medium",
|
|
948
|
+
"high",
|
|
949
|
+
"critical"
|
|
950
|
+
],
|
|
951
|
+
"description": "Error severity level"
|
|
952
|
+
},
|
|
953
|
+
"retryable": {
|
|
954
|
+
"type": "boolean",
|
|
955
|
+
"description": "Whether the error is retryable"
|
|
956
|
+
},
|
|
957
|
+
"userMessage": {
|
|
958
|
+
"description": "Human-readable message to show users",
|
|
959
|
+
"type": "string"
|
|
960
|
+
}
|
|
961
|
+
},
|
|
962
|
+
"required": [
|
|
963
|
+
"sourceCode",
|
|
964
|
+
"targetCode",
|
|
965
|
+
"targetCategory",
|
|
966
|
+
"severity",
|
|
967
|
+
"retryable"
|
|
968
|
+
],
|
|
969
|
+
"additionalProperties": false,
|
|
970
|
+
"description": "Error mapping rule"
|
|
971
|
+
},
|
|
972
|
+
"description": "Error mapping rules"
|
|
973
|
+
},
|
|
974
|
+
"defaultCategory": {
|
|
975
|
+
"default": "integration_error",
|
|
976
|
+
"description": "Default category for unmapped errors",
|
|
977
|
+
"type": "string",
|
|
978
|
+
"enum": [
|
|
979
|
+
"validation",
|
|
980
|
+
"authorization",
|
|
981
|
+
"not_found",
|
|
982
|
+
"conflict",
|
|
983
|
+
"rate_limit",
|
|
984
|
+
"timeout",
|
|
985
|
+
"server_error",
|
|
986
|
+
"integration_error"
|
|
987
|
+
]
|
|
988
|
+
},
|
|
989
|
+
"unmappedBehavior": {
|
|
990
|
+
"type": "string",
|
|
991
|
+
"enum": [
|
|
992
|
+
"passthrough",
|
|
993
|
+
"generic_error",
|
|
994
|
+
"throw"
|
|
995
|
+
],
|
|
996
|
+
"description": "What to do with unmapped errors"
|
|
997
|
+
},
|
|
998
|
+
"logUnmapped": {
|
|
999
|
+
"default": true,
|
|
1000
|
+
"description": "Log unmapped errors",
|
|
1001
|
+
"type": "boolean"
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
"required": [
|
|
1005
|
+
"rules",
|
|
1006
|
+
"defaultCategory",
|
|
1007
|
+
"unmappedBehavior",
|
|
1008
|
+
"logUnmapped"
|
|
1009
|
+
],
|
|
1010
|
+
"additionalProperties": false
|
|
1011
|
+
},
|
|
1012
|
+
"health": {
|
|
1013
|
+
"description": "Health and resilience configuration",
|
|
1014
|
+
"type": "object",
|
|
1015
|
+
"properties": {
|
|
1016
|
+
"healthCheck": {
|
|
1017
|
+
"description": "Health check configuration",
|
|
1018
|
+
"type": "object",
|
|
1019
|
+
"properties": {
|
|
1020
|
+
"enabled": {
|
|
1021
|
+
"type": "boolean",
|
|
1022
|
+
"description": "Enable health checks"
|
|
1023
|
+
},
|
|
1024
|
+
"intervalMs": {
|
|
1025
|
+
"default": 60000,
|
|
1026
|
+
"description": "Health check interval in milliseconds",
|
|
1027
|
+
"type": "number"
|
|
1028
|
+
},
|
|
1029
|
+
"timeoutMs": {
|
|
1030
|
+
"default": 5000,
|
|
1031
|
+
"description": "Health check timeout in milliseconds",
|
|
1032
|
+
"type": "number"
|
|
1033
|
+
},
|
|
1034
|
+
"endpoint": {
|
|
1035
|
+
"description": "Health check endpoint path",
|
|
1036
|
+
"type": "string"
|
|
1037
|
+
},
|
|
1038
|
+
"method": {
|
|
1039
|
+
"description": "HTTP method for health check",
|
|
1040
|
+
"type": "string",
|
|
1041
|
+
"enum": [
|
|
1042
|
+
"GET",
|
|
1043
|
+
"HEAD",
|
|
1044
|
+
"OPTIONS"
|
|
1045
|
+
]
|
|
1046
|
+
},
|
|
1047
|
+
"expectedStatus": {
|
|
1048
|
+
"default": 200,
|
|
1049
|
+
"description": "Expected HTTP status code",
|
|
1050
|
+
"type": "number"
|
|
1051
|
+
},
|
|
1052
|
+
"unhealthyThreshold": {
|
|
1053
|
+
"default": 3,
|
|
1054
|
+
"description": "Consecutive failures before marking unhealthy",
|
|
1055
|
+
"type": "number"
|
|
1056
|
+
},
|
|
1057
|
+
"healthyThreshold": {
|
|
1058
|
+
"default": 1,
|
|
1059
|
+
"description": "Consecutive successes before marking healthy",
|
|
1060
|
+
"type": "number"
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
"required": [
|
|
1064
|
+
"enabled",
|
|
1065
|
+
"intervalMs",
|
|
1066
|
+
"timeoutMs",
|
|
1067
|
+
"expectedStatus",
|
|
1068
|
+
"unhealthyThreshold",
|
|
1069
|
+
"healthyThreshold"
|
|
1070
|
+
],
|
|
1071
|
+
"additionalProperties": false
|
|
1072
|
+
},
|
|
1073
|
+
"circuitBreaker": {
|
|
1074
|
+
"description": "Circuit breaker configuration",
|
|
1075
|
+
"type": "object",
|
|
1076
|
+
"properties": {
|
|
1077
|
+
"enabled": {
|
|
1078
|
+
"type": "boolean",
|
|
1079
|
+
"description": "Enable circuit breaker"
|
|
1080
|
+
},
|
|
1081
|
+
"failureThreshold": {
|
|
1082
|
+
"default": 5,
|
|
1083
|
+
"description": "Failures before opening circuit",
|
|
1084
|
+
"type": "number"
|
|
1085
|
+
},
|
|
1086
|
+
"resetTimeoutMs": {
|
|
1087
|
+
"default": 30000,
|
|
1088
|
+
"description": "Time in open state before half-open",
|
|
1089
|
+
"type": "number"
|
|
1090
|
+
},
|
|
1091
|
+
"halfOpenMaxRequests": {
|
|
1092
|
+
"default": 1,
|
|
1093
|
+
"description": "Requests allowed in half-open state",
|
|
1094
|
+
"type": "number"
|
|
1095
|
+
},
|
|
1096
|
+
"monitoringWindow": {
|
|
1097
|
+
"default": 60000,
|
|
1098
|
+
"description": "Rolling window for failure count in ms",
|
|
1099
|
+
"type": "number"
|
|
1100
|
+
},
|
|
1101
|
+
"fallbackStrategy": {
|
|
1102
|
+
"description": "Fallback strategy when circuit is open",
|
|
1103
|
+
"type": "string",
|
|
1104
|
+
"enum": [
|
|
1105
|
+
"cache",
|
|
1106
|
+
"default_value",
|
|
1107
|
+
"error",
|
|
1108
|
+
"queue"
|
|
1109
|
+
]
|
|
1110
|
+
}
|
|
1111
|
+
},
|
|
1112
|
+
"required": [
|
|
1113
|
+
"enabled",
|
|
1114
|
+
"failureThreshold",
|
|
1115
|
+
"resetTimeoutMs",
|
|
1116
|
+
"halfOpenMaxRequests",
|
|
1117
|
+
"monitoringWindow"
|
|
1118
|
+
],
|
|
1119
|
+
"additionalProperties": false
|
|
1120
|
+
}
|
|
1121
|
+
},
|
|
1122
|
+
"additionalProperties": false
|
|
1123
|
+
},
|
|
901
1124
|
"metadata": {
|
|
902
1125
|
"description": "Custom connector metadata",
|
|
903
1126
|
"type": "object",
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"enabled": {
|
|
6
|
+
"type": "boolean",
|
|
7
|
+
"description": "Enable health checks"
|
|
8
|
+
},
|
|
9
|
+
"intervalMs": {
|
|
10
|
+
"default": 60000,
|
|
11
|
+
"description": "Health check interval in milliseconds",
|
|
12
|
+
"type": "number"
|
|
13
|
+
},
|
|
14
|
+
"timeoutMs": {
|
|
15
|
+
"default": 5000,
|
|
16
|
+
"description": "Health check timeout in milliseconds",
|
|
17
|
+
"type": "number"
|
|
18
|
+
},
|
|
19
|
+
"endpoint": {
|
|
20
|
+
"description": "Health check endpoint path",
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"method": {
|
|
24
|
+
"description": "HTTP method for health check",
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": [
|
|
27
|
+
"GET",
|
|
28
|
+
"HEAD",
|
|
29
|
+
"OPTIONS"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"expectedStatus": {
|
|
33
|
+
"default": 200,
|
|
34
|
+
"description": "Expected HTTP status code",
|
|
35
|
+
"type": "number"
|
|
36
|
+
},
|
|
37
|
+
"unhealthyThreshold": {
|
|
38
|
+
"default": 3,
|
|
39
|
+
"description": "Consecutive failures before marking unhealthy",
|
|
40
|
+
"type": "number"
|
|
41
|
+
},
|
|
42
|
+
"healthyThreshold": {
|
|
43
|
+
"default": 1,
|
|
44
|
+
"description": "Consecutive successes before marking healthy",
|
|
45
|
+
"type": "number"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": [
|
|
49
|
+
"enabled",
|
|
50
|
+
"intervalMs",
|
|
51
|
+
"timeoutMs",
|
|
52
|
+
"expectedStatus",
|
|
53
|
+
"unhealthyThreshold",
|
|
54
|
+
"healthyThreshold"
|
|
55
|
+
],
|
|
56
|
+
"additionalProperties": false,
|
|
57
|
+
"description": "Health check configuration"
|
|
58
|
+
}
|
|
@@ -898,6 +898,229 @@
|
|
|
898
898
|
"description": "Enable connector",
|
|
899
899
|
"type": "boolean"
|
|
900
900
|
},
|
|
901
|
+
"errorMapping": {
|
|
902
|
+
"description": "Error mapping configuration",
|
|
903
|
+
"type": "object",
|
|
904
|
+
"properties": {
|
|
905
|
+
"rules": {
|
|
906
|
+
"type": "array",
|
|
907
|
+
"items": {
|
|
908
|
+
"type": "object",
|
|
909
|
+
"properties": {
|
|
910
|
+
"sourceCode": {
|
|
911
|
+
"anyOf": [
|
|
912
|
+
{
|
|
913
|
+
"type": "string"
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"type": "number"
|
|
917
|
+
}
|
|
918
|
+
],
|
|
919
|
+
"description": "External system error code"
|
|
920
|
+
},
|
|
921
|
+
"sourceMessage": {
|
|
922
|
+
"description": "Pattern to match against error message",
|
|
923
|
+
"type": "string"
|
|
924
|
+
},
|
|
925
|
+
"targetCode": {
|
|
926
|
+
"type": "string",
|
|
927
|
+
"description": "ObjectStack standard error code"
|
|
928
|
+
},
|
|
929
|
+
"targetCategory": {
|
|
930
|
+
"type": "string",
|
|
931
|
+
"enum": [
|
|
932
|
+
"validation",
|
|
933
|
+
"authorization",
|
|
934
|
+
"not_found",
|
|
935
|
+
"conflict",
|
|
936
|
+
"rate_limit",
|
|
937
|
+
"timeout",
|
|
938
|
+
"server_error",
|
|
939
|
+
"integration_error"
|
|
940
|
+
],
|
|
941
|
+
"description": "Error category"
|
|
942
|
+
},
|
|
943
|
+
"severity": {
|
|
944
|
+
"type": "string",
|
|
945
|
+
"enum": [
|
|
946
|
+
"low",
|
|
947
|
+
"medium",
|
|
948
|
+
"high",
|
|
949
|
+
"critical"
|
|
950
|
+
],
|
|
951
|
+
"description": "Error severity level"
|
|
952
|
+
},
|
|
953
|
+
"retryable": {
|
|
954
|
+
"type": "boolean",
|
|
955
|
+
"description": "Whether the error is retryable"
|
|
956
|
+
},
|
|
957
|
+
"userMessage": {
|
|
958
|
+
"description": "Human-readable message to show users",
|
|
959
|
+
"type": "string"
|
|
960
|
+
}
|
|
961
|
+
},
|
|
962
|
+
"required": [
|
|
963
|
+
"sourceCode",
|
|
964
|
+
"targetCode",
|
|
965
|
+
"targetCategory",
|
|
966
|
+
"severity",
|
|
967
|
+
"retryable"
|
|
968
|
+
],
|
|
969
|
+
"additionalProperties": false,
|
|
970
|
+
"description": "Error mapping rule"
|
|
971
|
+
},
|
|
972
|
+
"description": "Error mapping rules"
|
|
973
|
+
},
|
|
974
|
+
"defaultCategory": {
|
|
975
|
+
"default": "integration_error",
|
|
976
|
+
"description": "Default category for unmapped errors",
|
|
977
|
+
"type": "string",
|
|
978
|
+
"enum": [
|
|
979
|
+
"validation",
|
|
980
|
+
"authorization",
|
|
981
|
+
"not_found",
|
|
982
|
+
"conflict",
|
|
983
|
+
"rate_limit",
|
|
984
|
+
"timeout",
|
|
985
|
+
"server_error",
|
|
986
|
+
"integration_error"
|
|
987
|
+
]
|
|
988
|
+
},
|
|
989
|
+
"unmappedBehavior": {
|
|
990
|
+
"type": "string",
|
|
991
|
+
"enum": [
|
|
992
|
+
"passthrough",
|
|
993
|
+
"generic_error",
|
|
994
|
+
"throw"
|
|
995
|
+
],
|
|
996
|
+
"description": "What to do with unmapped errors"
|
|
997
|
+
},
|
|
998
|
+
"logUnmapped": {
|
|
999
|
+
"default": true,
|
|
1000
|
+
"description": "Log unmapped errors",
|
|
1001
|
+
"type": "boolean"
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
"required": [
|
|
1005
|
+
"rules",
|
|
1006
|
+
"defaultCategory",
|
|
1007
|
+
"unmappedBehavior",
|
|
1008
|
+
"logUnmapped"
|
|
1009
|
+
],
|
|
1010
|
+
"additionalProperties": false
|
|
1011
|
+
},
|
|
1012
|
+
"health": {
|
|
1013
|
+
"description": "Health and resilience configuration",
|
|
1014
|
+
"type": "object",
|
|
1015
|
+
"properties": {
|
|
1016
|
+
"healthCheck": {
|
|
1017
|
+
"description": "Health check configuration",
|
|
1018
|
+
"type": "object",
|
|
1019
|
+
"properties": {
|
|
1020
|
+
"enabled": {
|
|
1021
|
+
"type": "boolean",
|
|
1022
|
+
"description": "Enable health checks"
|
|
1023
|
+
},
|
|
1024
|
+
"intervalMs": {
|
|
1025
|
+
"default": 60000,
|
|
1026
|
+
"description": "Health check interval in milliseconds",
|
|
1027
|
+
"type": "number"
|
|
1028
|
+
},
|
|
1029
|
+
"timeoutMs": {
|
|
1030
|
+
"default": 5000,
|
|
1031
|
+
"description": "Health check timeout in milliseconds",
|
|
1032
|
+
"type": "number"
|
|
1033
|
+
},
|
|
1034
|
+
"endpoint": {
|
|
1035
|
+
"description": "Health check endpoint path",
|
|
1036
|
+
"type": "string"
|
|
1037
|
+
},
|
|
1038
|
+
"method": {
|
|
1039
|
+
"description": "HTTP method for health check",
|
|
1040
|
+
"type": "string",
|
|
1041
|
+
"enum": [
|
|
1042
|
+
"GET",
|
|
1043
|
+
"HEAD",
|
|
1044
|
+
"OPTIONS"
|
|
1045
|
+
]
|
|
1046
|
+
},
|
|
1047
|
+
"expectedStatus": {
|
|
1048
|
+
"default": 200,
|
|
1049
|
+
"description": "Expected HTTP status code",
|
|
1050
|
+
"type": "number"
|
|
1051
|
+
},
|
|
1052
|
+
"unhealthyThreshold": {
|
|
1053
|
+
"default": 3,
|
|
1054
|
+
"description": "Consecutive failures before marking unhealthy",
|
|
1055
|
+
"type": "number"
|
|
1056
|
+
},
|
|
1057
|
+
"healthyThreshold": {
|
|
1058
|
+
"default": 1,
|
|
1059
|
+
"description": "Consecutive successes before marking healthy",
|
|
1060
|
+
"type": "number"
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
"required": [
|
|
1064
|
+
"enabled",
|
|
1065
|
+
"intervalMs",
|
|
1066
|
+
"timeoutMs",
|
|
1067
|
+
"expectedStatus",
|
|
1068
|
+
"unhealthyThreshold",
|
|
1069
|
+
"healthyThreshold"
|
|
1070
|
+
],
|
|
1071
|
+
"additionalProperties": false
|
|
1072
|
+
},
|
|
1073
|
+
"circuitBreaker": {
|
|
1074
|
+
"description": "Circuit breaker configuration",
|
|
1075
|
+
"type": "object",
|
|
1076
|
+
"properties": {
|
|
1077
|
+
"enabled": {
|
|
1078
|
+
"type": "boolean",
|
|
1079
|
+
"description": "Enable circuit breaker"
|
|
1080
|
+
},
|
|
1081
|
+
"failureThreshold": {
|
|
1082
|
+
"default": 5,
|
|
1083
|
+
"description": "Failures before opening circuit",
|
|
1084
|
+
"type": "number"
|
|
1085
|
+
},
|
|
1086
|
+
"resetTimeoutMs": {
|
|
1087
|
+
"default": 30000,
|
|
1088
|
+
"description": "Time in open state before half-open",
|
|
1089
|
+
"type": "number"
|
|
1090
|
+
},
|
|
1091
|
+
"halfOpenMaxRequests": {
|
|
1092
|
+
"default": 1,
|
|
1093
|
+
"description": "Requests allowed in half-open state",
|
|
1094
|
+
"type": "number"
|
|
1095
|
+
},
|
|
1096
|
+
"monitoringWindow": {
|
|
1097
|
+
"default": 60000,
|
|
1098
|
+
"description": "Rolling window for failure count in ms",
|
|
1099
|
+
"type": "number"
|
|
1100
|
+
},
|
|
1101
|
+
"fallbackStrategy": {
|
|
1102
|
+
"description": "Fallback strategy when circuit is open",
|
|
1103
|
+
"type": "string",
|
|
1104
|
+
"enum": [
|
|
1105
|
+
"cache",
|
|
1106
|
+
"default_value",
|
|
1107
|
+
"error",
|
|
1108
|
+
"queue"
|
|
1109
|
+
]
|
|
1110
|
+
}
|
|
1111
|
+
},
|
|
1112
|
+
"required": [
|
|
1113
|
+
"enabled",
|
|
1114
|
+
"failureThreshold",
|
|
1115
|
+
"resetTimeoutMs",
|
|
1116
|
+
"halfOpenMaxRequests",
|
|
1117
|
+
"monitoringWindow"
|
|
1118
|
+
],
|
|
1119
|
+
"additionalProperties": false
|
|
1120
|
+
}
|
|
1121
|
+
},
|
|
1122
|
+
"additionalProperties": false
|
|
1123
|
+
},
|
|
901
1124
|
"metadata": {
|
|
902
1125
|
"description": "Custom connector metadata",
|
|
903
1126
|
"type": "object",
|