Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/dev-playground/server/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "reflect-metadata";
import { analytics, createApp, server } from "@databricks/appkit";
import { analytics, createApp, files, server } from "@databricks/appkit";
import { WorkspaceClient } from "@databricks/sdk-experimental";
import { lakebaseExamples } from "./lakebase-examples-plugin";
import { reconnect } from "./reconnect-plugin";
Expand All @@ -22,6 +22,7 @@ createApp({
telemetryExamples(),
analytics({}),
lakebaseExamples(),
files({ defaultVolume: process.env.DATABRICKS_DEFAULT_VOLUME }),
],
...(process.env.APPKIT_E2E_TEST && { client: createMockClient() }),
}).then((appkit) => {
Expand Down
18 changes: 18 additions & 0 deletions docs/docs/api/appkit/Class.Plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,24 @@ BasePlugin.getEndpoints

***

### getSkipBodyParsingPaths()

```ts
getSkipBodyParsingPaths(): ReadonlySet<string>;
```

#### Returns

`ReadonlySet`\<`string`\>

#### Implementation of

```ts
BasePlugin.getSkipBodyParsingPaths
```

***

### injectRoutes()

```ts
Expand Down
24 changes: 24 additions & 0 deletions docs/docs/api/appkit/Function.contentTypeFromPath.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Function: contentTypeFromPath()

```ts
function contentTypeFromPath(
filePath: string,
reported?: string,
customTypes?: Record<string, string>): string;
```

Resolve the MIME content type for a file path.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `filePath` | `string` | Path to the file (only the extension is inspected). |
| `reported?` | `string` | Optional MIME type reported by the caller; used as fallback when the extension is unknown. |
| `customTypes?` | `Record`\<`string`, `string`\> | Optional map of extension → MIME type overrides (e.g. `{ ".csv": "text/csv" }`). |

## Returns

`string`

The resolved MIME content type string.
1 change: 1 addition & 0 deletions docs/docs/api/appkit/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ plugin architecture, and React integration.
| Function | Description |
| ------ | ------ |
| [appKitTypesPlugin](Function.appKitTypesPlugin.md) | Vite plugin to generate types for AppKit queries. Calls generateFromEntryPoint under the hood. |
| [contentTypeFromPath](Function.contentTypeFromPath.md) | Resolve the MIME content type for a file path. |
| [createApp](Function.createApp.md) | Bootstraps AppKit with the provided configuration. |
| [createLakebasePool](Function.createLakebasePool.md) | Create a Lakebase pool with appkit's logger integration. Telemetry automatically uses appkit's OpenTelemetry configuration via global registry. |
| [generateDatabaseCredential](Function.generateDatabaseCredential.md) | Generate OAuth credentials for Postgres database connection using the proper Postgres API. |
Expand Down
5 changes: 5 additions & 0 deletions docs/docs/api/appkit/typedoc-sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ const typedocSidebar: SidebarsConfig = {
id: "api/appkit/Function.appKitTypesPlugin",
label: "appKitTypesPlugin"
},
{
type: "doc",
id: "api/appkit/Function.contentTypeFromPath",
label: "contentTypeFromPath"
},
{
type: "doc",
id: "api/appkit/Function.createApp",
Expand Down
Loading