You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: improve JSDoc comments for exported appkit types
Add meaningful descriptions to execution, cache, plugin, and telemetry
types that were previously missing or too vague in the public API surface.
Signed-off-by: Pawel Kosiec <pawel.kosiec@databricks.com>
Copy file name to clipboardExpand all lines: docs/docs/api/appkit/index.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ plugin architecture, and React integration.
31
31
| Interface | Description |
32
32
| ------ | ------ |
33
33
|[BasePluginConfig](Interface.BasePluginConfig.md)| Base configuration interface for AppKit plugins |
34
-
|[CacheConfig](Interface.CacheConfig.md)| Configuration for caching|
34
+
|[CacheConfig](Interface.CacheConfig.md)| Configuration for the CacheInterceptor. Controls TTL, size limits, storage backend, and probabilistic cleanup.|
35
35
|[DatabaseCredential](Interface.DatabaseCredential.md)| Database credentials with OAuth token for Postgres connection |
36
36
|[GenerateDatabaseCredentialRequest](Interface.GenerateDatabaseCredentialRequest.md)| Request parameters for generating database OAuth credentials |
37
37
|[ITelemetry](Interface.ITelemetry.md)| Plugin-facing interface for OpenTelemetry instrumentation. Provides a thin abstraction over OpenTelemetry APIs for plugins. |
@@ -42,7 +42,7 @@ plugin architecture, and React integration.
42
42
|[ResourceEntry](Interface.ResourceEntry.md)| Internal representation of a resource in the registry. Extends ResourceRequirement with resolution state and plugin ownership. |
43
43
|[ResourceFieldEntry](Interface.ResourceFieldEntry.md)| Defines a single field for a resource. Each field has its own environment variable and optional description. Single-value types use one key (e.g. id); multi-value types (database, secret) use multiple (e.g. instance_name, database_name or scope, key). |
44
44
|[ResourceRequirement](Interface.ResourceRequirement.md)| Declares a resource requirement for a plugin. Can be defined statically in a manifest or dynamically via getResourceRequirements(). Narrows the generated base: type → ResourceType enum, permission → ResourcePermission union. |
45
-
|[StreamExecutionSettings](Interface.StreamExecutionSettings.md)|Configuration for streaming execution with default and user-scoped settings|
45
+
|[StreamExecutionSettings](Interface.StreamExecutionSettings.md)|Execution settings for streaming endpoints. Extends PluginExecutionSettings with SSE stream configuration.|
46
46
|[TelemetryConfig](Interface.TelemetryConfig.md)| OpenTelemetry configuration for AppKit applications |
47
47
|[ValidationResult](Interface.ValidationResult.md)| Result of validating all registered resources against the environment. |
48
48
@@ -52,9 +52,9 @@ plugin architecture, and React integration.
52
52
| ------ | ------ |
53
53
|[ConfigSchema](TypeAlias.ConfigSchema.md)| Configuration schema definition for plugin config. Re-exported from the standard JSON Schema Draft 7 types. |
54
54
|[IAppRouter](TypeAlias.IAppRouter.md)| Express router type for plugin route registration |
55
-
|[PluginData](TypeAlias.PluginData.md)|-|
55
+
|[PluginData](TypeAlias.PluginData.md)|Tuple of plugin class, config, and name. Created by `toPlugin()` and passed to `createApp()`.|
56
56
|[ResourcePermission](TypeAlias.ResourcePermission.md)| Union of all possible permission levels across all resource types. |
57
-
|[ToPlugin](TypeAlias.ToPlugin.md)|-|
57
+
|[ToPlugin](TypeAlias.ToPlugin.md)|Factory function type returned by `toPlugin()`. Accepts optional config and returns a PluginData tuple.|
/** Converts a TelemetryOptions value (boolean, object, or undefined) into a fully resolved config with explicit traces/metrics/logs flags. Defaults to all enabled. */
0 commit comments