@databricks/appkit 0.72.0 → 0.73.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.
Files changed (117) hide show
  1. package/CLAUDE.md +17 -0
  2. package/NOTICE.md +1 -0
  3. package/dist/appkit/package.js +1 -1
  4. package/dist/beta.d.ts +7 -4
  5. package/dist/beta.js +3 -2
  6. package/dist/cli/commands/agent/eval.js +9 -1
  7. package/dist/cli/commands/agent/eval.js.map +1 -1
  8. package/dist/connectors/index.js +1 -1
  9. package/dist/connectors/mlflow/auth.d.ts +11 -1
  10. package/dist/connectors/mlflow/auth.d.ts.map +1 -1
  11. package/dist/connectors/mlflow/auth.js +22 -2
  12. package/dist/connectors/mlflow/auth.js.map +1 -1
  13. package/dist/connectors/mlflow/index.d.ts +2 -0
  14. package/dist/database/errors.js +15 -5
  15. package/dist/database/errors.js.map +1 -1
  16. package/dist/database/runtime/data-path.d.ts +7 -0
  17. package/dist/database/runtime/data-path.d.ts.map +1 -0
  18. package/dist/database/runtime/data-path.js.map +1 -1
  19. package/dist/database/runtime/engine/drizzle-data-path.js +7 -5
  20. package/dist/database/runtime/engine/drizzle-data-path.js.map +1 -1
  21. package/dist/database/schema-builder/define-schema.d.ts +1 -1
  22. package/dist/database/schema-builder/define-schema.js +1 -1
  23. package/dist/database/schema-builder/define-schema.js.map +1 -1
  24. package/dist/errors/database-validation.d.ts +23 -0
  25. package/dist/errors/database-validation.d.ts.map +1 -0
  26. package/dist/errors/database-validation.js +24 -0
  27. package/dist/errors/database-validation.js.map +1 -0
  28. package/dist/errors/index.js +1 -0
  29. package/dist/evals/dataset.d.ts +36 -0
  30. package/dist/evals/dataset.d.ts.map +1 -0
  31. package/dist/evals/dataset.js +36 -0
  32. package/dist/evals/dataset.js.map +1 -0
  33. package/dist/evals/http-driver.js +56 -51
  34. package/dist/evals/http-driver.js.map +1 -1
  35. package/dist/evals/index.d.ts +14 -0
  36. package/dist/evals/index.js +2 -1
  37. package/dist/evals/judge.d.ts +1 -0
  38. package/dist/evals/judge.d.ts.map +1 -1
  39. package/dist/evals/mlflow-report.d.ts +1 -0
  40. package/dist/evals/mlflow-report.d.ts.map +1 -1
  41. package/dist/evals/mlflow-run.d.ts +2 -0
  42. package/dist/evals/mlflow-run.d.ts.map +1 -1
  43. package/dist/evals/run-eval.d.ts +3 -0
  44. package/dist/evals/run-eval.d.ts.map +1 -1
  45. package/dist/evals/run-eval.js +10 -2
  46. package/dist/evals/run-eval.js.map +1 -1
  47. package/dist/evals/run-evals.d.ts +9 -0
  48. package/dist/evals/run-evals.d.ts.map +1 -1
  49. package/dist/evals/run-evals.js +101 -22
  50. package/dist/evals/run-evals.js.map +1 -1
  51. package/dist/evals/types.d.ts +40 -4
  52. package/dist/evals/types.d.ts.map +1 -1
  53. package/dist/index.d.ts +2 -1
  54. package/dist/index.js +2 -1
  55. package/dist/plugin/plugin.d.ts.map +1 -1
  56. package/dist/plugin/plugin.js +1 -1
  57. package/dist/plugin/plugin.js.map +1 -1
  58. package/dist/plugins/database/crud/contract.js +17 -8
  59. package/dist/plugins/database/crud/contract.js.map +1 -1
  60. package/dist/plugins/database/crud/exposure.js +63 -22
  61. package/dist/plugins/database/crud/exposure.js.map +1 -1
  62. package/dist/plugins/database/crud/request.js +50 -0
  63. package/dist/plugins/database/crud/request.js.map +1 -0
  64. package/dist/plugins/database/crud/response.js +77 -0
  65. package/dist/plugins/database/crud/response.js.map +1 -0
  66. package/dist/plugins/database/crud/routes.js +71 -52
  67. package/dist/plugins/database/crud/routes.js.map +1 -1
  68. package/dist/plugins/database/database.d.ts +6 -4
  69. package/dist/plugins/database/database.d.ts.map +1 -1
  70. package/dist/plugins/database/database.js +46 -16
  71. package/dist/plugins/database/database.js.map +1 -1
  72. package/dist/plugins/database/defaults.js +5 -1
  73. package/dist/plugins/database/defaults.js.map +1 -1
  74. package/dist/plugins/database/entity-client.js +143 -10
  75. package/dist/plugins/database/entity-client.js.map +1 -1
  76. package/dist/plugins/database/entity-types.d.ts +1 -1
  77. package/dist/plugins/database/hooks.d.ts +38 -0
  78. package/dist/plugins/database/hooks.d.ts.map +1 -0
  79. package/dist/plugins/database/index.d.ts +3 -2
  80. package/dist/plugins/database/lifecycle.js +67 -28
  81. package/dist/plugins/database/lifecycle.js.map +1 -1
  82. package/dist/plugins/database/scope.js +58 -0
  83. package/dist/plugins/database/scope.js.map +1 -0
  84. package/dist/plugins/database/types.d.ts +40 -12
  85. package/dist/plugins/database/types.d.ts.map +1 -1
  86. package/dist/shared/src/schemas/manifest.d.ts +33 -33
  87. package/docs/api/appkit/Class.AppKitError.md +1 -0
  88. package/docs/api/appkit/Class.DatabaseValidationError.md +191 -0
  89. package/docs/api/appkit/Function.defineSchema.md +1 -1
  90. package/docs/api/appkit/Function.readEvalDataset.md +21 -0
  91. package/docs/api/appkit/Function.resolveWorkspaceClient.md +18 -0
  92. package/docs/api/appkit/Interface.AssertionHandle.md +1 -1
  93. package/docs/api/appkit/Interface.DatabaseValidationIssue.md +21 -0
  94. package/docs/api/appkit/Interface.DatasetRow.md +21 -0
  95. package/docs/api/appkit/Interface.EntityMutationHooks.md +173 -0
  96. package/docs/api/appkit/Interface.EvalDefinition.md +28 -0
  97. package/docs/api/appkit/Interface.EvalDriver.md +16 -1
  98. package/docs/api/appkit/Interface.HookApp.md +12 -0
  99. package/docs/api/appkit/Interface.HookContext.md +21 -0
  100. package/docs/api/appkit/Interface.ReadEvalDatasetOptions.md +34 -0
  101. package/docs/api/appkit/Interface.ReadSerializerContext.md +21 -0
  102. package/docs/api/appkit/Interface.RunEvalOptions.md +11 -0
  103. package/docs/api/appkit/Interface.RunEvalsOptions.md +22 -0
  104. package/docs/api/appkit/Interface.TestContext.md +41 -4
  105. package/docs/api/appkit/TypeAlias.DatabaseApiConfig.md +53 -0
  106. package/docs/api/appkit/TypeAlias.DatabaseApiWriteOperation.md +8 -0
  107. package/docs/api/appkit/TypeAlias.DatabaseApiWritesConfig.md +49 -0
  108. package/docs/api/appkit/TypeAlias.DatabaseExports.md +3 -3
  109. package/docs/api/appkit/TypeAlias.EntityHooks.md +25 -0
  110. package/docs/api/appkit/TypeAlias.IDatabaseConfig.md +16 -5
  111. package/docs/api/appkit/TypeAlias.ReadSerializer.md +19 -0
  112. package/docs/api/appkit/TypeAlias.TransactionClient.md +19 -0
  113. package/docs/api/appkit.md +135 -119
  114. package/docs/plugins/database.md +144 -0
  115. package/llms.txt +17 -0
  116. package/package.json +2 -2
  117. package/sbom.cdx.json +1 -1
@@ -0,0 +1,144 @@
1
+ # Database plugin
2
+
3
+ Beta plugin
4
+
5
+ This plugin is currently **beta**. APIs may change between minor releases. Import from `@databricks/appkit/beta`. See [Plugin Stability Tiers](./docs/plugins/stability.md).
6
+
7
+ Declare a schema and use `database({ schema })` to get generated HTTP CRUD and a server-side database client. CRUD is enabled for every declared table by default. Use `api` to restrict the generated routes without disabling server-side access.
8
+
9
+ Shared application access
10
+
11
+ This plugin uses the app's service principal in deployed Databricks Apps. It does not support OBO and does not apply per-user or per-row authorization. Every caller who can reach the generated API can perform every enabled operation on every exposed row, including delete.
12
+
13
+ Restrict access to the app and grant its service principal only the database permissions it needs. If users need different permissions or row ownership checks, disable the relevant generated routes and implement authorization in custom server routes. App admission alone does not provide row-level isolation.
14
+
15
+ ## Basic usage[​](#basic-usage "Direct link to Basic usage")
16
+
17
+ Configure a Lakebase `postgres` resource and its connection environment variables as described in [Lakebase configuration](./docs/plugins/lakebase.md#environment-variables). The database tables must already exist and match the declared schema. This plugin checks connectivity during setup; it does not create or migrate tables.
18
+
19
+ ```ts
20
+ import { createApp, server } from "@databricks/appkit";
21
+ import { database, defineSchema, id, text } from "@databricks/appkit/beta";
22
+
23
+ const schema = defineSchema((builder) => ({
24
+ notes: builder.table("notes", {
25
+ id: id(),
26
+ body: text().notNull(),
27
+ }),
28
+ }));
29
+
30
+ const AppKit = await createApp({
31
+ plugins: [server(), database({ schema })],
32
+ });
33
+
34
+ ```
35
+
36
+ With the server plugin enabled, this registers:
37
+
38
+ | Method | Path | Operation |
39
+ | ------ | ------------------------- | ------------ |
40
+ | GET | `/api/database/notes` | List rows |
41
+ | GET | `/api/database/notes/:id` | Find one row |
42
+ | POST | `/api/database/notes` | Create a row |
43
+ | PATCH | `/api/database/notes/:id` | Update a row |
44
+ | DELETE | `/api/database/notes/:id` | Delete a row |
45
+
46
+ A table without a public primary key supports list and create only. `upsert` is available to server code but has no generated HTTP route.
47
+
48
+ ## Restrict the generated API[​](#restrict-the-generated-api "Direct link to Restrict the generated API")
49
+
50
+ Omitting `api`, or setting it to `true` or `{}`, enables full CRUD. Restrictions are optional. There is no separate write opt-in.
51
+
52
+ ```ts
53
+ // No generated HTTP routes. The server-side client still works.
54
+ database({ schema, api: false });
55
+
56
+ // Read-only routes for every table.
57
+ database({ schema, api: { writes: false } });
58
+
59
+ // Full CRUD for selected tables only.
60
+ database({ schema, api: { tables: ["notes"] } });
61
+
62
+ // Allow reads, create, and update, but not delete.
63
+ database({
64
+ schema,
65
+ api: { writes: { operations: ["create", "update"] } },
66
+ });
67
+
68
+ // Read every table, but allow writes only to notes.
69
+ database({
70
+ schema,
71
+ api: { writes: { tables: ["notes"] } },
72
+ });
73
+
74
+ ```
75
+
76
+ | Option | Default | Effect |
77
+ | ----------------------- | ---------------------------- | ----------------------------------------- |
78
+ | `api` | `true` | `false` disables all generated routes |
79
+ | `api.tables` | All declared tables | Limits which tables have routes |
80
+ | `api.writes` | `true` | `false` keeps only read routes |
81
+ | `api.writes.tables` | All exposed tables | Limits which exposed tables accept writes |
82
+ | `api.writes.operations` | `create`, `update`, `delete` | Limits which writes are enabled |
83
+
84
+ `api.tables: []` disables all generated routes. An empty write-table or write-operation list keeps reads and disables writes. Tables omitted from `api.tables` also cannot be included through relations on exposed tables. These restrictions apply to HTTP only, not to the server-side client or hooks.
85
+
86
+ An omitted restriction uses its default. A malformed restriction fails setup. For example, `{ api: { write: false } }` is an error, not permission to generate all writes. Unknown tables, duplicate names, and unsupported operations also fail setup before the plugin creates a connection pool.
87
+
88
+ Replace the former `crudRoutes` option with `api`. The old name is rejected at runtime so an old opt-out cannot silently enable the API. To preserve read-only behavior, specify `api: { writes: false }`.
89
+
90
+ ### Table names and setup errors[​](#table-names-and-setup-errors "Direct link to Table names and setup errors")
91
+
92
+ Generated route names must:
93
+
94
+ * Start with an ASCII letter.
95
+ * Contain only ASCII letters, digits, underscores, or hyphens.
96
+ * Be at most 64 characters long.
97
+ * Be unique without regard to case, because Express routes are case-insensitive.
98
+
99
+ The default API validates every declared table. A table such as `_events` fails setup instead of being silently omitted. The error names the table and suggests renaming it, excluding it with `api.tables`, or disabling routes with `api: false`. An excluded table remains available to server code.
100
+
101
+ Configuration errors include actionable details in the server-side error message. Client-facing messages do not expose those details.
102
+
103
+ ## Validation and private columns[​](#validation-and-private-columns "Direct link to Validation and private columns")
104
+
105
+ The generated API validates request bodies and rejects unknown or read-only fields. Columns marked `.private()` are not available through generated routes. Database-generated primary keys, including `uuid().primaryKey().defaultRandom()`, cannot be supplied by HTTP callers. A natural primary key may be supplied on create, but primary keys cannot be updated through HTTP.
106
+
107
+ Validation is not authorization. A valid request can still read or change any exposed row. Use custom authorized routes when that is not the desired access model.
108
+
109
+ ## Mutation hooks[​](#mutation-hooks "Direct link to Mutation hooks")
110
+
111
+ A table can declare `beforeCreate`, `afterCreate`, `beforeUpdate`, `afterUpdate`, `beforeUpsert`, `afterUpsert`, `beforeDelete`, and `afterDelete`. Hooks and the mutation run in one database transaction. Related writes through `ctx.app.database` join that same transaction. This does not make writes through other plugins or external services transactional.
112
+
113
+ ```ts
114
+ import { DatabaseValidationError } from "@databricks/appkit";
115
+
116
+ database({
117
+ schema,
118
+ hooks: {
119
+ notes: {
120
+ beforeCreate(values) {
121
+ if (typeof values.body === "string" && values.body.length > 5_000) {
122
+ throw new DatabaseValidationError("Note too long", [
123
+ { path: ["body"], message: "Must be at most 5000 characters" },
124
+ ]);
125
+ }
126
+ },
127
+ },
128
+ },
129
+ });
130
+
131
+ ```
132
+
133
+ A `before*` hook can return replacement values, which are validated again before persistence. `DatabaseValidationError` produces HTTP 422 with issues limited to public columns. Other hook failures return an opaque server error.
134
+
135
+ Keep hooks short and await all database work. A transaction has a 30-second callback deadline, a shared budget of 100 database operations, and a maximum mutation nesting depth of 8. Repeating the same entity and mutation operation in a nested hook chain is rejected. PostgreSQL also enforces a 30-second `statement_timeout` and a 30-second `idle_in_transaction_session_timeout`.
136
+
137
+ The callback deadline does not cancel arbitrary JavaScript, HTTP requests, or other external side effects. Avoid putting external side effects in hooks that need database rollback semantics.
138
+
139
+ ## API reference[​](#api-reference "Direct link to API reference")
140
+
141
+ * [`database`](./docs/api/appkit/Function.database.md)
142
+ * [`IDatabaseConfig`](./docs/api/appkit/TypeAlias.IDatabaseConfig.md)
143
+ * [`DatabaseApiConfig`](./docs/api/appkit/TypeAlias.DatabaseApiConfig.md)
144
+ * [`EntityHooks`](./docs/api/appkit/TypeAlias.EntityHooks.md)
package/llms.txt CHANGED
@@ -48,6 +48,7 @@ npx @databricks/appkit docs <query>
48
48
  - [Analytics plugin](./docs/plugins/analytics.md): Enables SQL query execution against Databricks SQL Warehouses.
49
49
  - [Caching](./docs/plugins/caching.md): AppKit provides both global and plugin-level caching capabilities.
50
50
  - [Creating custom plugins](./docs/plugins/custom-plugins.md): If you need custom API routes or background logic, implement an AppKit plugin. The fastest way is to use the CLI:
51
+ - [Database plugin](./docs/plugins/database.md): This plugin is currently beta. APIs may change between minor releases. Import from @databricks/appkit/beta. See Plugin Stability Tiers.
51
52
  - [Execution context](./docs/plugins/execution-context.md): AppKit manages Databricks authentication via two contexts:
52
53
  - [Files plugin](./docs/plugins/files.md): File operations against Databricks Unity Catalog Volumes. Supports listing, reading, downloading, uploading, deleting, and previewing files with built-in caching, retry, and timeout handling via the execution interceptor pipeline.
53
54
  - [Genie plugin](./docs/plugins/genie.md): Integrates Databricks AI/BI Genie spaces into your AppKit application, enabling natural language data queries via a conversational interface.
@@ -68,6 +69,7 @@ npx @databricks/appkit docs <query>
68
69
  - [Class: AuthenticationError](./docs/api/appkit/Class.AuthenticationError.md): Error thrown when authentication fails.
69
70
  - [Class: ConfigurationError](./docs/api/appkit/Class.ConfigurationError.md): Error thrown when configuration is missing or invalid.
70
71
  - [Class: ConnectionError](./docs/api/appkit/Class.ConnectionError.md): Error thrown when a connection or network operation fails.
72
+ - [Class: DatabaseValidationError](./docs/api/appkit/Class.DatabaseValidationError.md): Deliberate validation failure raised by a database mutation hook. Generated
71
73
  - [Class: DatabricksAdapter](./docs/api/appkit/Class.DatabricksAdapter.md): Adapter that talks directly to Databricks Model Serving /invocations endpoint.
72
74
  - [Class: ExecutionError](./docs/api/appkit/Class.ExecutionError.md): Error thrown when an operation execution fails.
73
75
  - [Class: InitializationError](./docs/api/appkit/Class.InitializationError.md): Error thrown when a service or component is not properly initialized.
@@ -138,9 +140,11 @@ npx @databricks/appkit docs <query>
138
140
  - [Function: mcpServer()](./docs/api/appkit/Function.mcpServer.md): Factory for declaring a custom MCP server tool.
139
141
  - [Function: normalizeHost()](./docs/api/appkit/Function.normalizeHost.md): Ensure the host has a scheme (Databricks env often lacks https://).
140
142
  - [Function: parseTextToolCalls()](./docs/api/appkit/Function.parseTextToolCalls.md): Parses text-based tool calls from model output.
143
+ - [Function: readEvalDataset()](./docs/api/appkit/Function.readEvalDataset.md): Read a Databricks managed evaluation dataset (a Unity Catalog table with
141
144
  - [Function: reportToMlflow()](./docs/api/appkit/Function.reportToMlflow.md): Write one pass/fail assessment per eval result to the Databricks MLflow REST
142
145
  - [Function: resolveDatabricksAuth()](./docs/api/appkit/Function.resolveDatabricksAuth.md): Parameters
143
146
  - [Function: resolveHostedTools()](./docs/api/appkit/Function.resolveHostedTools.md): Parameters
147
+ - [Function: resolveWorkspaceClient()](./docs/api/appkit/Function.resolveWorkspaceClient.md): Construct a Databricks WorkspaceClient for the eval runner — the object the
144
148
  - [Function: runAgent()](./docs/api/appkit/Function.runAgent.md): Standalone agent execution without createApp. Resolves the adapter, binds
145
149
  - [Function: runEval()](./docs/api/appkit/Function.runEval.md): Run a single eval against a driver. Never throws for assertion or agent
146
150
  - [Function: runEvalsInDir()](./docs/api/appkit/Function.runEvalsInDir.md): Discover, load, and run every eval under each agent's evals/ dir, driving
@@ -166,10 +170,13 @@ npx @databricks/appkit docs <query>
166
170
  - [Interface: CustomJudgeSpec](./docs/api/appkit/Interface.CustomJudgeSpec.md): A custom LLM-judge definition: a prompt template and choice→score mapping.
167
171
  - [Interface: DatabaseCredential](./docs/api/appkit/Interface.DatabaseCredential.md): Database credentials with OAuth token for Postgres connection
168
172
  - [Interface: DatabaseRegistry](./docs/api/appkit/Interface.DatabaseRegistry.md): CANONICAL augmentation target. Empty by default; the generated database.d.ts
173
+ - [Interface: DatabaseValidationIssue](./docs/api/appkit/Interface.DatabaseValidationIssue.md): One rejected field; path names public columns, never their values.
169
174
  - [Interface: DatabricksAuth](./docs/api/appkit/Interface.DatabricksAuth.md): Resolved Databricks host + bearer token for the eval runner's REST calls.
175
+ - [Interface: DatasetRow](./docs/api/appkit/Interface.DatasetRow.md): One row of a managed evaluation dataset. inputs are the kwargs passed to the
170
176
  - [Interface: DiscoveredEval](./docs/api/appkit/Interface.DiscoveredEval.md): An eval file found under server/agents//evals/.
171
177
  - [Interface: DriveResult](./docs/api/appkit/Interface.DriveResult.md): What a driver returns for a single t.send.
172
178
  - [Interface: EndpointConfig](./docs/api/appkit/Interface.EndpointConfig.md): Properties
179
+ - [Interface: EntityMutationHooks<TTable>](./docs/api/appkit/Interface.EntityMutationHooks.md): Mutation lifecycle for one entity. A before hook may return a replacement
173
180
  - [Interface: EvalDefinition](./docs/api/appkit/Interface.EvalDefinition.md): A single eval, default-exported from a *.eval.ts file.
174
181
  - [Interface: EvalDriver](./docs/api/appkit/Interface.EvalDriver.md): Abstraction over how the agent is driven. The HTTP driver posts to a running
175
182
  - [Interface: EvalResult](./docs/api/appkit/Interface.EvalResult.md): The outcome of running one eval.
@@ -180,6 +187,8 @@ npx @databricks/appkit docs <query>
180
187
  - [Interface: FunctionTool](./docs/api/appkit/Interface.FunctionTool.md): Properties
181
188
  - [Interface: GenerateDatabaseCredentialRequest](./docs/api/appkit/Interface.GenerateDatabaseCredentialRequest.md): Request parameters for generating database OAuth credentials
182
189
  - [Interface: GenerationParams](./docs/api/appkit/Interface.GenerationParams.md): Optional generation parameters forwarded to the OpenAI-compatible serving
190
+ - [Interface: HookApp](./docs/api/appkit/Interface.HookApp.md): The only capability a hook receives: entities bound to its transaction.
191
+ - [Interface: HookContext](./docs/api/appkit/Interface.HookContext.md): Which entity is being mutated, and the surface a hook may write through.
183
192
  - [Interface: HostedSupervisorTool](./docs/api/appkit/Interface.HostedSupervisorTool.md): Tagged record returned by every supervisorTools factory. The
184
193
  - [Interface: HttpDriverOptions](./docs/api/appkit/Interface.HttpDriverOptions.md): Properties
185
194
  - [Interface: IAiSearchConfig](./docs/api/appkit/Interface.IAiSearchConfig.md): Base configuration interface for AppKit plugins
@@ -201,6 +210,8 @@ npx @databricks/appkit docs <query>
201
210
  - [Interface: PluginToolkitProvider](./docs/api/appkit/Interface.PluginToolkitProvider.md): Minimum shape every entry in the Plugins map must expose. Core
202
211
  - [Interface: PostResult](./docs/api/appkit/Interface.PostResult.md): Structured result for a best-effort POST that must not throw.
203
212
  - [Interface: PromptContext](./docs/api/appkit/Interface.PromptContext.md): Context passed to baseSystemPrompt callbacks.
213
+ - [Interface: ReadEvalDatasetOptions](./docs/api/appkit/Interface.ReadEvalDatasetOptions.md): Properties
214
+ - [Interface: ReadSerializerContext](./docs/api/appkit/Interface.ReadSerializerContext.md): Which entity and generated operation produced the row being shaped.
204
215
  - [Interface: RegisteredAgent](./docs/api/appkit/Interface.RegisteredAgent.md): Properties
205
216
  - [Interface: ReportOutcome](./docs/api/appkit/Interface.ReportOutcome.md): Properties
206
217
  - [Interface: RequestedClaims](./docs/api/appkit/Interface.RequestedClaims.md): Optional claims for fine-grained Unity Catalog table permissions
@@ -242,7 +253,11 @@ npx @databricks/appkit docs <query>
242
253
  - [Type Alias: AgentToolsFn()](./docs/api/appkit/TypeAlias.AgentToolsFn.md): Function form of AgentDefinition.tools. Receives the typed
243
254
  - [Type Alias: BaseSystemPromptOption](./docs/api/appkit/TypeAlias.BaseSystemPromptOption.md)
244
255
  - [Type Alias: ConfigSchema](./docs/api/appkit/TypeAlias.ConfigSchema.md): Configuration schema definition for plugin config.
256
+ - [Type Alias: DatabaseApiConfig<TSchema>](./docs/api/appkit/TypeAlias.DatabaseApiConfig.md): Full generated CRUD for every declared table by default. Set false to disable
257
+ - [Type Alias: DatabaseApiWriteOperation](./docs/api/appkit/TypeAlias.DatabaseApiWriteOperation.md): Generated HTTP write operations.
258
+ - [Type Alias: DatabaseApiWritesConfig<TSchema>](./docs/api/appkit/TypeAlias.DatabaseApiWritesConfig.md): All writes by default; false keeps reads only, and an object narrows writes.
245
259
  - [Type Alias: DatabaseExports](./docs/api/appkit/TypeAlias.DatabaseExports.md): Typed database API published by the plugin.
260
+ - [Type Alias: EntityHooks<TTable>](./docs/api/appkit/TypeAlias.EntityHooks.md): Response shaping and mutation lifecycle declared for one table.
246
261
  - [Type Alias: EvalProgress](./docs/api/appkit/TypeAlias.EvalProgress.md)
247
262
  - [Type Alias: ExecutionResult<T>](./docs/api/appkit/TypeAlias.ExecutionResult.md): Discriminated union for plugin execution results.
248
263
  - [Type Alias: FileAction](./docs/api/appkit/TypeAlias.FileAction.md): Every action the files plugin can perform.
@@ -254,6 +269,7 @@ npx @databricks/appkit docs <query>
254
269
  - [Type Alias: Matcher()](./docs/api/appkit/TypeAlias.Matcher.md): A deterministic matcher: inspects a string value and returns a result.
255
270
  - [Type Alias: PluginData<T, U, N>](./docs/api/appkit/TypeAlias.PluginData.md): Tuple of plugin class, config, and name. Created by toPlugin() and passed to createApp().
256
271
  - [Type Alias: Plugins](./docs/api/appkit/TypeAlias.Plugins.md): Plugin map passed to the function form of AgentDefinition.tools.
272
+ - [Type Alias: ReadSerializer()](./docs/api/appkit/TypeAlias.ReadSerializer.md): Shape one already private-safe row before it reaches the wire. A Promise
257
273
  - [Type Alias: ResolvedToolEntry](./docs/api/appkit/TypeAlias.ResolvedToolEntry.md): Internal tool-index entry after a tool record has been resolved to a dispatchable form.
258
274
  - [Type Alias: ResourceFieldEntry](./docs/api/appkit/TypeAlias.ResourceFieldEntry.md)
259
275
  - [Type Alias: ResourcePermission](./docs/api/appkit/TypeAlias.ResourcePermission.md): Union of all possible permission levels across all resource types.
@@ -263,6 +279,7 @@ npx @databricks/appkit docs <query>
263
279
  - [Type Alias: SupervisorTool](./docs/api/appkit/TypeAlias.SupervisorTool.md): Tools supported by the Databricks AI Gateway Responses API. The shapes match
264
280
  - [Type Alias: ToolRegistry](./docs/api/appkit/TypeAlias.ToolRegistry.md)
265
281
  - [Type Alias: ToPlugin()<T, U, N>](./docs/api/appkit/TypeAlias.ToPlugin.md): Factory function type returned by toPlugin(). Accepts optional config and returns a PluginData tuple.
282
+ - [Type Alias: TransactionClient](./docs/api/appkit/TypeAlias.TransactionClient.md): Entity and SQL capabilities bound to one transaction.
266
283
  - [Variable: agents](./docs/api/appkit/Variable.agents.md): Plugin factory for the agents plugin. Discovers agents from
267
284
  - [Variable: aiSearch](./docs/api/appkit/Variable.aiSearch.md)
268
285
  - [Variable: READ_ACTIONS](./docs/api/appkit/Variable.READ_ACTIONS.md): Actions that only read data.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@databricks/appkit",
3
3
  "type": "module",
4
- "version": "0.72.0",
4
+ "version": "0.73.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "bin": {
@@ -56,7 +56,7 @@
56
56
  },
57
57
  "dependencies": {
58
58
  "@ast-grep/napi": "0.37.0",
59
- "@databricks/lakebase": "0.5.0",
59
+ "@databricks/lakebase": "0.6.0",
60
60
  "@databricks/sdk-experimental": "0.17.0",
61
61
  "@mlflow/core": "0.4.0",
62
62
  "@opentelemetry/api": "1.9.0",