@mitralab.io/functions-sdk 0.1.0 → 0.2.0-beta.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/dist/index.d.ts CHANGED
@@ -1,5 +1,27 @@
1
- import { AuthModule, EntitiesProxy, FunctionsModule, IntegrationModule, QueriesModule } from '@mitralab.io/sdk-core';
2
- export { EntityListOptions, EntityTable, FunctionExecution, Plan, ProxyInput, ProxyResult, QueryResult, Tenant, User } from '@mitralab.io/sdk-core';
1
+ import { AppsModule, AppGetOptions, AppDefinition, AppUpdateInput, AppFiles, AppDeploy, AppPublishOptions, PageOptions, Page, AppVersion, SdkCore, AgentTasksWithSessions, AuthModule } from '@mitralab.io/sdk-core';
2
+ export { AgentBulkDeleteResult, AgentConnectionCreateInput, AgentConnectionsModule, AgentCredentialsModule, AgentDefinition, AgentInput, AgentQueueItem, AgentSendAndWaitOptions, AgentSendOptions, AgentSessionTransport, AgentTask, AgentTaskCreateInput, AgentTaskEvent, AgentTaskEventConnection, AgentTaskEventObserver, AgentTaskEventSource, AgentTaskInput, AgentTaskListOptions, AgentTaskTurnError, AgentTasksModule, AgentTasksWithSessions, AgentTurnResult, AgentUpdateItem, AgentsModule, AppColor, AppContext, AppCreateInput, AppDefinition, AppDeploy, AppDomain, AppFiles, AppGetOptions, AppListOptions, AppMember, AppPublishOptions, AppSummary, AppUpdateInput, AppVersion, AppVersionStatus, AppsModule, AuthModule, AuthenticationResult, BatchExecution, BatchStatementResult, BulkUnsubscribeResult, ColumnInput, ConnectionConfig, ConnectionTestResult, ContextModule, CopilotProvider, AgentConnection as CoreAgentConnection, AgentMessage as CoreAgentMessage, AgentModel as CoreAgentModel, AgentTaskSession as CoreAgentTaskSession, AgentTaskSessionEventMap as CoreAgentTaskSessionEventMap, AgentTaskSessionOptions as CoreAgentTaskSessionOptions, AgentTaskSessionStatus as CoreAgentTaskSessionStatus, AgentTimelineItem as CoreAgentTimelineItem, AgentToolEvent as CoreAgentToolEvent, ListTablesOptions as CoreListTablesOptions, CredentialStatus, CustomQueriesModule, CustomQueryDefinition, CustomQueryInput, CustomQuerySummary, CustomQueryUpdateInput, DataSourceBulkItemResult, DataSourceBulkResult, DataSourceCreateInput, DataSourceDbType, DataSourceDefinition, DataSourceInstanceType, DataSourceUpdateInput, DataSourcesModule, DdlStatement, DeviceAuthorization, DmlStatement, EmptyFunctionInput, EntitiesModule, EntitiesProxy, EntityListOptions, EntityTable, ExistingAgentTaskSessionOptions, FunctionBulkCreateInput, FunctionBulkDeleteInput, FunctionBulkDeleteResult, FunctionBulkPatchInput, FunctionBulkPatchItem, FunctionBulkUpdateItem, FunctionCreateInput, FunctionDefinition, FunctionExecution, FunctionListOptions, FunctionPatchInput, FunctionRuntime, FunctionSecrets, FunctionSummary, FunctionUpdateInput, FunctionVersion, FunctionVersionListOptions, FunctionVisibility, FunctionsAdminModule, FunctionsModule, ImportColumnMapping, ImportDefinition, ImportExecution, ImportExecutionListOptions, ImportInput, ImportProcessing, ImportSchedule, ImportSource, ImportTarget, ImportsModule, IntegrationAdminModule, IntegrationConnectionStatus, IntegrationCredentialRule, IntegrationExecution, IntegrationFieldSchema, IntegrationLoginConfig, IntegrationModule, IntegrationProxyMode, IntegrationRequestConfig, IntegrationResource, IntegrationResourceInput, IntegrationResourceParam, IntegrationResourceSummary, IntegrationResourceUpdateInput, IntegrationResourcesModule, IntegrationTemplate, IntegrationTemplateSummary, IntegrationTemplateType, IntegrationTemplatesModule, IntegrationTokenExtraction, InviteAppUserInput, InvocationType, JsonValue, ListTemplateConfigsOptions, MembersModule, MessengerModule, NewAgentTaskSessionOptions, OAuthExchangeInput, OAuthStartResult, Page, PageOptions, PlanPrice, ProviderCredentialStatus, ProxyInput, ProxyResult, PublicFunctionAsyncResult, PublicFunctionResult, PublicFunctionsModule, QueriesModule, QueryResult, SchemaModule, SchemaScope, SchemaTables, SqlModule, TableColumn, TableDefinition, TableForeignKey, TemplateConfig, TemplateConfigBulkItemResult, TemplateConfigBulkResult, TemplateConfigCreateInput, TemplateConfigPage, TemplateConfigSummary, TemplateConfigUpdateInput, Tenant, TestCredentialsInput, User, UserPlan, WorkflowDefinition, WorkflowExecution, WorkflowInput, WorkflowSummary, WorkflowsModule } from '@mitralab.io/sdk-core';
3
+ import * as legacy from 'mitra-sdk';
4
+
5
+ type AppScopedAppsModule = AppsModule;
6
+ interface CurrentAppModule {
7
+ /** Gets the runtime app, optionally selecting its DRAFT or PUBLISHED version. */
8
+ get(options?: AppGetOptions): Promise<AppDefinition>;
9
+ delete(): Promise<void>;
10
+ update(input: AppUpdateInput): Promise<AppDefinition>;
11
+ getFiles(): Promise<AppFiles>;
12
+ replaceFiles(files: Record<string, string>): Promise<AppFiles>;
13
+ mergeFiles(files: Record<string, string | null>): Promise<AppFiles>;
14
+ /** Starts a preview build and returns the deploy that can be polled with `getDeploy`. */
15
+ build(): Promise<AppDeploy>;
16
+ /** Builds and publishes the current DRAFT, optionally updating external access. */
17
+ publish(options?: AppPublishOptions): Promise<AppDefinition>;
18
+ getDeploy(deployId: string): Promise<AppDeploy>;
19
+ getCurrentDeploy(): Promise<AppDeploy | null>;
20
+ cancelBuild(deployId: string): Promise<AppDeploy>;
21
+ rollback(targetVersionId: string): Promise<AppDefinition>;
22
+ listDeploys(options?: PageOptions): Promise<Page<AppDeploy>>;
23
+ listVersions(options?: PageOptions): Promise<Page<AppVersion>>;
24
+ }
3
25
 
4
26
  type Fetch = typeof globalThis.fetch;
5
27
  interface MitraEnvironment {
@@ -7,24 +29,53 @@ interface MitraEnvironment {
7
29
  MITRA_PLATFORM_ACCESS_TOKEN?: string;
8
30
  MITRA_APP_ID?: string;
9
31
  MITRA_DATA_SOURCE_ID?: string;
32
+ /** Existing Server Function base URL. Used to derive the native API root when needed. */
33
+ MITRA_BASE_URL?: string;
34
+ /** Existing app-scoped Server Function token. */
35
+ MITRA_TOKEN?: string;
36
+ /** Existing Server Function app identifier. */
37
+ MITRA_PROJECT_ID?: string;
10
38
  [key: string]: string | undefined;
11
39
  }
12
40
  interface MitraClientConfig {
13
41
  apiUrl?: string;
42
+ /** Optional BFF base URL used only to configure deprecated reexports. */
43
+ legacyBaseUrl?: string;
14
44
  accessToken?: string;
15
45
  appId?: string;
16
46
  dataSourceId?: string;
47
+ /** Optional request deadline. By default, the Functions runtime owns operation time limits. */
17
48
  timeoutMs?: number;
18
49
  fetch?: Fetch;
19
50
  }
20
51
 
21
52
  interface MitraClient {
22
53
  init(): Promise<void>;
54
+ readonly agentConnections: SdkCore["agentConnections"];
55
+ readonly agentCredentials: SdkCore["agentCredentials"];
56
+ readonly agents: SdkCore["agents"];
57
+ readonly agentTasks: AgentTasksWithSessions;
58
+ readonly apps: AppScopedAppsModule;
23
59
  readonly auth: AuthModule;
24
- readonly entities: EntitiesProxy;
25
- readonly functions: FunctionsModule;
26
- readonly integration: IntegrationModule;
27
- readonly queries: QueriesModule;
60
+ readonly context: SdkCore["context"];
61
+ readonly currentApp: CurrentAppModule;
62
+ readonly customQueries: SdkCore["customQueries"];
63
+ readonly dataSources: SdkCore["dataSources"];
64
+ readonly entities: SdkCore["entities"];
65
+ readonly functions: SdkCore["functions"];
66
+ readonly functionsAdmin: SdkCore["functionsAdmin"];
67
+ readonly imports: SdkCore["imports"];
68
+ readonly integration: SdkCore["integration"];
69
+ readonly integrationAdmin: SdkCore["integrationAdmin"];
70
+ readonly integrationResources: SdkCore["integrationResources"];
71
+ readonly integrationTemplates: SdkCore["integrationTemplates"];
72
+ readonly members: SdkCore["members"];
73
+ readonly messenger: SdkCore["messenger"];
74
+ readonly publicFunctions: SdkCore["publicFunctions"];
75
+ readonly queries: SdkCore["queries"];
76
+ readonly schema: SdkCore["schema"];
77
+ readonly sql: SdkCore["sql"];
78
+ readonly workflows: SdkCore["workflows"];
28
79
  }
29
80
  declare function createClient(config?: MitraClientConfig): MitraClient;
30
81
  declare function createClientFromEnvironment(environment?: MitraEnvironment): MitraClient;
@@ -47,4 +98,929 @@ declare class MitraApiError extends Error {
47
98
  constructor(message: string, status: number, options?: MitraApiErrorOptions);
48
99
  }
49
100
 
50
- export { type Fetch, MitraApiError, type MitraClient, type MitraClientConfig, MitraConfigurationError, type MitraEnvironment, createClient, createClientFromEnvironment };
101
+ /**
102
+ * Backward compatible surface of the legacy `mitra-sdk` package.
103
+ *
104
+ * Every export here is the legacy binding itself, re-exported unchanged and marked
105
+ * `@deprecated` so existing Server Function code keeps working while the new
106
+ * `@mitralab.io` family grows. Nothing in this module wraps, adapts, or renames a
107
+ * legacy API.
108
+ *
109
+ * The legacy SDK talks to the platform through the BFF gateway, whose routes live
110
+ * under `/agentAiShortcut` and `/interactions`. The native client derives `/iam`,
111
+ * `/functions`, and the other direct-to-service prefixes from the same platform
112
+ * origin without using the BFF. Deprecated bindings use the separate legacy base URL.
113
+ *
114
+ * `createClient()` wires the legacy SDK to the same runtime environment, so legacy
115
+ * Server Function code runs without reading the environment itself.
116
+ */
117
+
118
+ /**
119
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
120
+ * `createClient()` from this package already configures the legacy SDK from the same environment.
121
+ * Call this only to override that configuration; it is still supported.
122
+ */
123
+ declare const configureSdkMitra: typeof legacy.configureSdkMitra;
124
+ /**
125
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
126
+ * Use `createClient()` for the new surface. The legacy standalone instance has no equivalent. There
127
+ * is no replacement yet; this API is still supported.
128
+ */
129
+ declare const createMitraSdkInstance: typeof legacy.createMitraSdkInstance;
130
+ /**
131
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
132
+ * Legacy project id helper. There is no replacement yet; this API is still supported.
133
+ */
134
+ declare const resolveProjectId: typeof legacy.resolveProjectId;
135
+ /** @deprecated Configuration type of the legacy `mitra-sdk` client. */
136
+ type MitraConfig = legacy.MitraConfig;
137
+ /** @deprecated Configuration type of the legacy `mitra-sdk` client. */
138
+ type MitraSdkInstance = legacy.MitraSdkInstance;
139
+ /**
140
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
141
+ * Use `mitra.entities.<Table>.create` instead.
142
+ */
143
+ declare const createRecordMitra: typeof legacy.createRecordMitra;
144
+ /**
145
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
146
+ * Use `mitra.entities.<Table>.bulkCreate` instead.
147
+ */
148
+ declare const createRecordsBatchMitra: typeof legacy.createRecordsBatchMitra;
149
+ /**
150
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
151
+ * Use `mitra.entities.<Table>.get` instead.
152
+ */
153
+ declare const getRecordMitra: typeof legacy.getRecordMitra;
154
+ /**
155
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
156
+ * Use `mitra.entities.<Table>.list` or `mitra.entities.<Table>.filter` instead.
157
+ */
158
+ declare const listRecordsMitra: typeof legacy.listRecordsMitra;
159
+ /**
160
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
161
+ * Use `mitra.entities.<Table>.update` instead.
162
+ */
163
+ declare const updateRecordMitra: typeof legacy.updateRecordMitra;
164
+ /**
165
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
166
+ * Use `mitra.entities.<Table>.update` instead.
167
+ */
168
+ declare const patchRecordMitra: typeof legacy.patchRecordMitra;
169
+ /**
170
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
171
+ * Use `mitra.entities.<Table>.delete` instead.
172
+ */
173
+ declare const deleteRecordMitra: typeof legacy.deleteRecordMitra;
174
+ /** @deprecated Legacy record type. Use `mitra.entities` instead. */
175
+ type CreateRecordOptions = legacy.CreateRecordOptions;
176
+ /** @deprecated Legacy record type. Use `mitra.entities` instead. */
177
+ type CreateRecordsBatchOptions = legacy.CreateRecordsBatchOptions;
178
+ /** @deprecated Legacy record type. Use `mitra.entities` instead. */
179
+ type DeleteRecordOptions = legacy.DeleteRecordOptions;
180
+ /** @deprecated Legacy record type. Use `mitra.entities` instead. */
181
+ type GetRecordOptions = legacy.GetRecordOptions;
182
+ /** @deprecated Legacy record type. Use `mitra.entities` instead. */
183
+ type ListRecordsOptions = legacy.ListRecordsOptions;
184
+ /** @deprecated Legacy record type. Use `mitra.entities` instead. */
185
+ type ListRecordsResponse = legacy.ListRecordsResponse;
186
+ /** @deprecated Legacy record type. Use `mitra.entities` instead. */
187
+ type PatchRecordOptions = legacy.PatchRecordOptions;
188
+ /** @deprecated Legacy record type. Use `mitra.entities` instead. */
189
+ type UpdateRecordOptions = legacy.UpdateRecordOptions;
190
+ /**
191
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
192
+ * Use `mitra.functions.execute` instead.
193
+ */
194
+ declare const executeServerFunctionMitra: typeof legacy.executeServerFunctionMitra;
195
+ /**
196
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
197
+ * Use `mitra.functions.executeAsync` instead.
198
+ */
199
+ declare const executeServerFunctionAsyncMitra: typeof legacy.executeServerFunctionAsyncMitra;
200
+ /**
201
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
202
+ * Use `mitra.functions.getExecution` instead.
203
+ */
204
+ declare const getServerFunctionExecutionMitra: typeof legacy.getServerFunctionExecutionMitra;
205
+ /**
206
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
207
+ * Use `mitra.functions.cancelExecution` instead.
208
+ */
209
+ declare const stopServerFunctionExecutionMitra: typeof legacy.stopServerFunctionExecutionMitra;
210
+ /**
211
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
212
+ * Use `mitra.publicFunctions.executeAsync` for fire-and-forget public execution. The direct public
213
+ * API does not expose anonymous polling; use the authenticated `mitra.functions` module when the
214
+ * caller needs async status.
215
+ */
216
+ declare const executePublicServerFunctionAsyncMitra: typeof legacy.executePublicServerFunctionAsyncMitra;
217
+ /** @deprecated Legacy Server Function execution type. Use `mitra.functions` instead. */
218
+ type ExecuteServerFunctionOptions = legacy.ExecuteServerFunctionOptions;
219
+ /** @deprecated Legacy Server Function execution type. Use `mitra.functions` instead. */
220
+ type ExecuteServerFunctionResponse = legacy.ExecuteServerFunctionResponse;
221
+ /** @deprecated Legacy Server Function execution type. Use `mitra.functions` instead. */
222
+ type ExecuteServerFunctionAsyncOptions = legacy.ExecuteServerFunctionAsyncOptions;
223
+ /** @deprecated Legacy Server Function execution type. Use `mitra.functions` instead. */
224
+ type ExecuteServerFunctionAsyncResponse = legacy.ExecuteServerFunctionAsyncResponse;
225
+ /** @deprecated Legacy Server Function execution type. Use `mitra.functions` instead. */
226
+ type GetServerFunctionExecutionOptions = legacy.GetServerFunctionExecutionOptions;
227
+ /** @deprecated Legacy Server Function execution type. Use `mitra.functions` instead. */
228
+ type GetServerFunctionExecutionResponse = legacy.GetServerFunctionExecutionResponse;
229
+ /** @deprecated Legacy Server Function execution type. Use `mitra.functions` instead. */
230
+ type StopServerFunctionExecutionOptions = legacy.StopServerFunctionExecutionOptions;
231
+ /** @deprecated Legacy Server Function execution type. Use `mitra.functions` instead. */
232
+ type StopServerFunctionExecutionResponse = legacy.StopServerFunctionExecutionResponse;
233
+ /** @deprecated Legacy Server Function execution type. Use `mitra.functions` instead. */
234
+ type ExecutePublicServerFunctionOptions = legacy.ExecutePublicServerFunctionOptions;
235
+ /** @deprecated Legacy Server Function execution type. Use `mitra.functions` instead. */
236
+ type ExecutePublicServerFunctionAsyncResponse = legacy.ExecutePublicServerFunctionAsyncResponse;
237
+ /**
238
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
239
+ * Use `mitra.integration.execute` instead.
240
+ */
241
+ declare const callIntegrationMitra: typeof legacy.callIntegrationMitra;
242
+ /**
243
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
244
+ * Use `mitra.integrationAdmin.list` instead. It returns the native paginated config shape rather
245
+ * than the legacy BFF envelope.
246
+ */
247
+ declare const listIntegrationsMitra: typeof legacy.listIntegrationsMitra;
248
+ /** @deprecated Legacy integration type. Use `mitra.integration` instead. */
249
+ type CallIntegrationOptions = legacy.CallIntegrationOptions;
250
+ /** @deprecated Legacy integration type. Use `mitra.integration` instead. */
251
+ type CallIntegrationResponse = legacy.CallIntegrationResponse;
252
+ /** @deprecated Legacy integration type. Use `mitra.integration` instead. */
253
+ type IntegrationResponse = legacy.IntegrationResponse;
254
+ /** @deprecated Legacy integration type. Use `mitra.integration` instead. */
255
+ type ListIntegrationsOptions = legacy.ListIntegrationsOptions;
256
+ /**
257
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
258
+ * Use `mitra.apps.list` in a tenant-scoped client. Functions runtimes reject this tenant-level
259
+ * operation because they are fixed to one app, and the native response shape differs.
260
+ */
261
+ declare const getProjectsMitra: typeof legacy.getProjectsMitra;
262
+ /**
263
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
264
+ * Use `mitra.context.getAppContext` instead. The native method composes safe app-scoped summaries
265
+ * and returns the native context shape.
266
+ */
267
+ declare const getProjectContextMitra: typeof legacy.getProjectContextMitra;
268
+ /**
269
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
270
+ * Use `mitra.apps.list` in a tenant-scoped client. Functions runtimes reject this tenant-level
271
+ * operation because they are fixed to one app, and pagination differs.
272
+ */
273
+ declare const listProjectsMitra: typeof legacy.listProjectsMitra;
274
+ /**
275
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
276
+ * Use `mitra.apps.create` in a tenant-scoped client. Functions runtimes reject app creation, and
277
+ * the native input and response types differ from the legacy project contract.
278
+ */
279
+ declare const createProjectMitra: typeof legacy.createProjectMitra;
280
+ /**
281
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
282
+ * Use `mitra.currentApp.update` instead. It updates only native app metadata and returns an
283
+ * `AppDefinition`, not the legacy project settings envelope.
284
+ */
285
+ declare const updateProjectSettingsMitra: typeof legacy.updateProjectSettingsMitra;
286
+ /**
287
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
288
+ * There is no replacement yet; this API is still supported.
289
+ */
290
+ declare const getGitConfigMitra: typeof legacy.getGitConfigMitra;
291
+ /**
292
+ * @deprecated Legacy project creation type. Use `AppCreateInput`; native app creation is not
293
+ * available in the app-scoped Functions runtime and the fields differ.
294
+ */
295
+ type CreateProjectOptions = legacy.CreateProjectOptions;
296
+ /**
297
+ * @deprecated Legacy project creation response. Use `AppDefinition`; its native shape differs.
298
+ */
299
+ type CreateProjectResponse = legacy.CreateProjectResponse;
300
+ /**
301
+ * @deprecated Legacy project context input. Use `AppGetOptions`; native app context comes from `context.getAppContext()`.
302
+ */
303
+ type GetProjectContextOptions = legacy.GetProjectContextOptions;
304
+ /**
305
+ * @deprecated Legacy project context response. Use `AppContext`; it contains safe native summaries.
306
+ */
307
+ type GetProjectContextResponse = legacy.GetProjectContextResponse;
308
+ /**
309
+ * @deprecated Legacy project collection response. Use `Page<AppSummary>` from `apps.list`.
310
+ */
311
+ type GetProjectsResponse = legacy.GetProjectsResponse;
312
+ /**
313
+ * @deprecated Legacy project list input. Use `AppListOptions`; tenant-level listing is unavailable
314
+ * in the app-scoped Functions runtime.
315
+ */
316
+ type ListProjectsOptions = legacy.ListProjectsOptions;
317
+ /**
318
+ * @deprecated Legacy project list response. Use `Page<AppSummary>`; pagination and fields differ.
319
+ */
320
+ type ListProjectsResponse = legacy.ListProjectsResponse;
321
+ /**
322
+ * @deprecated Legacy project settings input. Use `AppUpdateInput`; unsupported legacy settings are
323
+ * not silently translated.
324
+ */
325
+ type UpdateProjectSettingsOptions = legacy.UpdateProjectSettingsOptions;
326
+ /**
327
+ * @deprecated Legacy project settings response. Use `AppDefinition`.
328
+ */
329
+ type UpdateProjectSettingsResponse = legacy.UpdateProjectSettingsResponse;
330
+ /**
331
+ * @deprecated Legacy Git configuration type. There is no native replacement; this API remains
332
+ * supported through the legacy bridge.
333
+ */
334
+ type GetGitConfigOptions = legacy.GetGitConfigOptions;
335
+ /**
336
+ * @deprecated Legacy Git configuration response. There is no native replacement; this API remains
337
+ * supported through the legacy bridge.
338
+ */
339
+ type GetGitConfigResponse = legacy.GetGitConfigResponse;
340
+ /**
341
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
342
+ * Use `mitra.dataSources.create` instead. The native authoring API accepts EXTERNAL Data Sources
343
+ * only and uses `ConnectionConfig`, not the legacy JDBC payload.
344
+ */
345
+ declare const createJdbcConnectionMitra: typeof legacy.createJdbcConnectionMitra;
346
+ /**
347
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
348
+ * Use `mitra.dataSources.list` instead. It returns a native page without the legacy BFF envelope.
349
+ */
350
+ declare const listJdbcConnectionsMitra: typeof legacy.listJdbcConnectionsMitra;
351
+ /**
352
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
353
+ * Use `mitra.dataSources.update` instead. The native method replaces the supplied connection
354
+ * configuration and accepts EXTERNAL Data Sources only.
355
+ */
356
+ declare const updateJdbcConnectionMitra: typeof legacy.updateJdbcConnectionMitra;
357
+ /**
358
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
359
+ * Use `mitra.dataSources.delete` instead. The native method uses the Data Source UUID directly.
360
+ */
361
+ declare const deleteJdbcConnectionMitra: typeof legacy.deleteJdbcConnectionMitra;
362
+ /**
363
+ * @deprecated Legacy JDBC create input. Use `DataSourceCreateInput`; the native API supports
364
+ * EXTERNAL Data Sources and a different connection shape.
365
+ */
366
+ type CreateJdbcConnectionOptions = legacy.CreateJdbcConnectionOptions;
367
+ /**
368
+ * @deprecated Legacy JDBC create response. Use `DataSourceDefinition`.
369
+ */
370
+ type CreateJdbcConnectionResponse = legacy.CreateJdbcConnectionResponse;
371
+ /**
372
+ * @deprecated Legacy JDBC delete input. Use the native Data Source UUID directly.
373
+ */
374
+ type DeleteJdbcConnectionOptions = legacy.DeleteJdbcConnectionOptions;
375
+ /**
376
+ * @deprecated Legacy JDBC delete response. `dataSources.delete` resolves with no response body.
377
+ */
378
+ type DeleteJdbcConnectionResponse = legacy.DeleteJdbcConnectionResponse;
379
+ /**
380
+ * @deprecated Legacy JDBC list input. Use `PageOptions` with `dataSources.list`.
381
+ */
382
+ type ListJdbcConnectionsOptions = legacy.ListJdbcConnectionsOptions;
383
+ /**
384
+ * @deprecated Legacy JDBC list response. Use `Page<DataSourceDefinition>`.
385
+ */
386
+ type ListJdbcConnectionsResponse = legacy.ListJdbcConnectionsResponse;
387
+ /**
388
+ * @deprecated Legacy JDBC update input. Use `DataSourceUpdateInput`; fields and replacement
389
+ * semantics differ.
390
+ */
391
+ type UpdateJdbcConnectionOptions = legacy.UpdateJdbcConnectionOptions;
392
+ /**
393
+ * @deprecated Legacy JDBC update response. Use `DataSourceDefinition`.
394
+ */
395
+ type UpdateJdbcConnectionResponse = legacy.UpdateJdbcConnectionResponse;
396
+ /**
397
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
398
+ * Use `mitra.sql.executeQuery` instead. It runs against the runtime app Data Source and returns the
399
+ * native query result rather than the legacy BFF envelope.
400
+ */
401
+ declare const runQueryMitra: typeof legacy.runQueryMitra;
402
+ /**
403
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
404
+ * Use `mitra.sql.executeDdl` instead. The native API accepts a batch of typed DDL statements and
405
+ * returns per-statement results.
406
+ */
407
+ declare const runDdlMitra: typeof legacy.runDdlMitra;
408
+ /**
409
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
410
+ * Use `mitra.sql.executeDml` instead. The native API accepts a batch of typed DML statements and
411
+ * returns per-statement results.
412
+ */
413
+ declare const runDmlMitra: typeof legacy.runDmlMitra;
414
+ /**
415
+ * @deprecated Legacy raw-query input. Call `mitra.sql.executeQuery(sql, parameters)` directly.
416
+ */
417
+ type RunQueryOptions = legacy.RunQueryOptions;
418
+ /**
419
+ * @deprecated Legacy raw-query response. Use `QueryResult`.
420
+ */
421
+ type RunQueryResponse = legacy.RunQueryResponse;
422
+ /**
423
+ * @deprecated Legacy DDL input. Use `DdlStatement[]` with `mitra.sql.executeDdl`.
424
+ */
425
+ type RunDdlOptions = legacy.RunDdlOptions;
426
+ /**
427
+ * @deprecated Legacy DDL response. Use `BatchExecution`.
428
+ */
429
+ type RunDdlResponse = legacy.RunDdlResponse;
430
+ /**
431
+ * @deprecated Legacy DML input. Use `DmlStatement[]` with `mitra.sql.executeDml`.
432
+ */
433
+ type RunDmlOptions = legacy.RunDmlOptions;
434
+ /**
435
+ * @deprecated Legacy DML response. Use `BatchExecution`.
436
+ */
437
+ type RunDmlResponse = legacy.RunDmlResponse;
438
+ /**
439
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
440
+ * Use `mitra.schema.listTables` instead. Its native filters and response shape differ from the
441
+ * legacy project-scoped payload.
442
+ */
443
+ declare const listTablesMitra: typeof legacy.listTablesMitra;
444
+ /**
445
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
446
+ * Use `mitra.customQueries.create({ name, sql, isVirtualTable: true, connectionId })` instead.
447
+ * Map legacy `sqlQuery` to `sql` and `jdbcId` to `connectionId`; the native response uses UUIDs.
448
+ */
449
+ declare const createOnlineTableMitra: typeof legacy.createOnlineTableMitra;
450
+ /**
451
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
452
+ * Use `mitra.customQueries.list` and keep entries whose `isVirtualTable` is true. The native page
453
+ * uses UUIDs and does not include SQL; call `get(id)` when the query definition is required.
454
+ */
455
+ declare const listOnlineTablesMitra: typeof legacy.listOnlineTablesMitra;
456
+ /**
457
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
458
+ * Use `mitra.customQueries.update(id, { name, sql, isVirtualTable, connectionId })` instead. The
459
+ * native method identifies the Virtual Table by UUID rather than by name.
460
+ */
461
+ declare const updateOnlineTableMitra: typeof legacy.updateOnlineTableMitra;
462
+ /**
463
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
464
+ * Use `mitra.customQueries.delete(id)` instead. The native method identifies the Virtual Table by
465
+ * UUID and returns no legacy response envelope.
466
+ */
467
+ declare const deleteOnlineTableMitra: typeof legacy.deleteOnlineTableMitra;
468
+ /**
469
+ * @deprecated Legacy table-list input preserved under its original name. Use
470
+ * `CoreListTablesOptions` with `mitra.schema.listTables`; scopes and response shapes differ.
471
+ */
472
+ type ListTablesOptions = legacy.ListTablesOptions;
473
+ /**
474
+ * @deprecated Legacy table-list response. Use `SchemaTables[]`.
475
+ */
476
+ type ListTablesResponse = legacy.ListTablesResponse;
477
+ /**
478
+ * @deprecated Legacy online-table create input. Use `CustomQueryInput`, mapping `sqlQuery` to
479
+ * `sql`, `jdbcId` to `connectionId`, and setting `isVirtualTable: true`.
480
+ */
481
+ type CreateOnlineTableOptions = legacy.CreateOnlineTableOptions;
482
+ /**
483
+ * @deprecated Legacy online-table create response. Use `CustomQueryDefinition`.
484
+ */
485
+ type CreateOnlineTableResponse = legacy.CreateOnlineTableResponse;
486
+ /**
487
+ * @deprecated Legacy online-table delete input. Pass the native query UUID to
488
+ * `customQueries.delete`.
489
+ */
490
+ type DeleteOnlineTableOptions = legacy.DeleteOnlineTableOptions;
491
+ /**
492
+ * @deprecated Legacy online-table delete response. `customQueries.delete` has no response body.
493
+ */
494
+ type DeleteOnlineTableResponse = legacy.DeleteOnlineTableResponse;
495
+ /**
496
+ * @deprecated Legacy online-table list input. Use `PageOptions` with `customQueries.list`.
497
+ */
498
+ type ListOnlineTablesOptions = legacy.ListOnlineTablesOptions;
499
+ /**
500
+ * @deprecated Legacy online-table list response. Use `Page<CustomQuerySummary>` and filter
501
+ * `isVirtualTable`.
502
+ */
503
+ type ListOnlineTablesResponse = legacy.ListOnlineTablesResponse;
504
+ /**
505
+ * @deprecated Legacy online-table update input. Use `CustomQueryUpdateInput` with the native query
506
+ * UUID and keep `isVirtualTable: true`.
507
+ */
508
+ type UpdateOnlineTableOptions = legacy.UpdateOnlineTableOptions;
509
+ /**
510
+ * @deprecated Legacy online-table update response. Use `CustomQueryDefinition`.
511
+ */
512
+ type UpdateOnlineTableResponse = legacy.UpdateOnlineTableResponse;
513
+ /**
514
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
515
+ * Use `mitra.functionsAdmin.create` instead. The native input names the runtime explicitly and
516
+ * returns the complete Function definition.
517
+ */
518
+ declare const createServerFunctionMitra: typeof legacy.createServerFunctionMitra;
519
+ /**
520
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
521
+ * Use `mitra.functionsAdmin.get` instead. It returns the native Function and current version DTO.
522
+ */
523
+ declare const readServerFunctionMitra: typeof legacy.readServerFunctionMitra;
524
+ /**
525
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
526
+ * Use `mitra.functionsAdmin.list` instead. It is paginated and does not return the legacy envelope.
527
+ */
528
+ declare const listServerFunctionsMitra: typeof legacy.listServerFunctionsMitra;
529
+ /**
530
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
531
+ * Use `mitra.functionsAdmin.patch`; it preserves fields omitted from the partial update.
532
+ */
533
+ declare const updateServerFunctionMitra: typeof legacy.updateServerFunctionMitra;
534
+ /**
535
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
536
+ * Use `mitra.functionsAdmin.delete` instead. It returns no legacy response envelope.
537
+ */
538
+ declare const deleteServerFunctionMitra: typeof legacy.deleteServerFunctionMitra;
539
+ /**
540
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
541
+ * Use `mitra.functionsAdmin.setVisibility` instead. Map the legacy toggle to `PUBLIC` or `PRIVATE`.
542
+ */
543
+ declare const togglePublicExecutionMitra: typeof legacy.togglePublicExecutionMitra;
544
+ /**
545
+ * @deprecated Legacy Function create input. Use `FunctionCreateInput`; runtime and data-source
546
+ * semantics are explicit in the native type.
547
+ */
548
+ type CreateServerFunctionOptions = legacy.CreateServerFunctionOptions;
549
+ /**
550
+ * @deprecated Legacy Function create response. Use `FunctionDefinition`.
551
+ */
552
+ type CreateServerFunctionResponse = legacy.CreateServerFunctionResponse;
553
+ /**
554
+ * @deprecated Legacy Function delete input. Pass the Function UUID to `functionsAdmin.delete`.
555
+ */
556
+ type DeleteServerFunctionOptions = legacy.DeleteServerFunctionOptions;
557
+ /**
558
+ * @deprecated Legacy Function delete response. The native delete has no response body.
559
+ */
560
+ type DeleteServerFunctionResponse = legacy.DeleteServerFunctionResponse;
561
+ /**
562
+ * @deprecated Legacy Function list input. Use `FunctionListOptions`.
563
+ */
564
+ type ListServerFunctionsOptions = legacy.ListServerFunctionsOptions;
565
+ /**
566
+ * @deprecated Legacy Function list response. Use `Page<FunctionSummary>`.
567
+ */
568
+ type ListServerFunctionsResponse = legacy.ListServerFunctionsResponse;
569
+ /**
570
+ * @deprecated Legacy Function read input. Pass the Function UUID to `functionsAdmin.get`.
571
+ */
572
+ type ReadServerFunctionOptions = legacy.ReadServerFunctionOptions;
573
+ /**
574
+ * @deprecated Legacy Function read response. Use `FunctionDefinition`.
575
+ */
576
+ type ReadServerFunctionResponse = legacy.ReadServerFunctionResponse;
577
+ /**
578
+ * @deprecated Legacy Function update input. Use `FunctionPatchInput`; the native single-Function
579
+ * surface preserves omitted fields through PATCH.
580
+ */
581
+ type UpdateServerFunctionOptions = legacy.UpdateServerFunctionOptions;
582
+ /**
583
+ * @deprecated Legacy Function update response. Use `FunctionDefinition`.
584
+ */
585
+ type UpdateServerFunctionResponse = legacy.UpdateServerFunctionResponse;
586
+ /**
587
+ * @deprecated Legacy visibility toggle input. Use `FunctionVisibility` with
588
+ * `functionsAdmin.setVisibility`.
589
+ */
590
+ type TogglePublicExecutionOptions = legacy.TogglePublicExecutionOptions;
591
+ /**
592
+ * @deprecated Legacy visibility toggle response. Use `FunctionDefinition`.
593
+ */
594
+ type TogglePublicExecutionResponse = legacy.TogglePublicExecutionResponse;
595
+ /**
596
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
597
+ * Use `mitra.integrationAdmin.create` instead. The native method consumes a template UUID, alias,
598
+ * and complete values map rather than the legacy authorization structure.
599
+ */
600
+ declare const createIntegrationMitra: typeof legacy.createIntegrationMitra;
601
+ /**
602
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
603
+ * Use `mitra.integrationAdmin.update` instead. Omitting `values` preserves stored credentials.
604
+ */
605
+ declare const updateIntegrationMitra: typeof legacy.updateIntegrationMitra;
606
+ /**
607
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
608
+ * Use `mitra.integrationAdmin.delete` instead. It returns no legacy response envelope.
609
+ */
610
+ declare const deleteIntegrationMitra: typeof legacy.deleteIntegrationMitra;
611
+ /**
612
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
613
+ * Use `mitra.integrationAdmin.testCredentials` instead. The native method tests a template and
614
+ * values map without storing them and returns `ConnectionTestResult`.
615
+ */
616
+ declare const testIntegrationMitra: typeof legacy.testIntegrationMitra;
617
+ /**
618
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
619
+ * Use `mitra.integrationAdmin.testConfig` instead. It tests an already stored config by UUID.
620
+ */
621
+ declare const testIntegrationByIdMitra: typeof legacy.testIntegrationByIdMitra;
622
+ /**
623
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
624
+ * Use `mitra.integrationTemplates.list` instead. It is paginated and returns native summaries.
625
+ */
626
+ declare const listIntegrationTemplatesMitra: typeof legacy.listIntegrationTemplatesMitra;
627
+ /**
628
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
629
+ * Use `mitra.integrationTemplates.get` instead. The native template schema differs from the legacy
630
+ * connector template response.
631
+ */
632
+ declare const getIntegrationTemplateMitra: typeof legacy.getIntegrationTemplateMitra;
633
+ /**
634
+ * @deprecated Legacy integration authorization fields. Use the native template field schema and
635
+ * a values map; credentials remain write-only.
636
+ */
637
+ type AuthorizationConfig = legacy.AuthorizationConfig;
638
+ /**
639
+ * @deprecated Legacy connector template response. Use `IntegrationTemplate`.
640
+ */
641
+ type ConnectorTemplateResponse = legacy.ConnectorTemplateResponse;
642
+ /**
643
+ * @deprecated Legacy integration create input. Use `TemplateConfigCreateInput`; fields differ.
644
+ */
645
+ type CreateIntegrationOptions = legacy.CreateIntegrationOptions;
646
+ /**
647
+ * @deprecated Legacy integration delete input. Pass the config UUID to `integrationAdmin.delete`.
648
+ */
649
+ type DeleteIntegrationOptions = legacy.DeleteIntegrationOptions;
650
+ /**
651
+ * @deprecated Legacy integration template read input. Pass the template UUID to
652
+ * `integrationTemplates.get`.
653
+ */
654
+ type GetIntegrationTemplateOptions = legacy.GetIntegrationTemplateOptions;
655
+ /**
656
+ * @deprecated Legacy template list input. Use `PageOptions` with `integrationTemplates.list`.
657
+ */
658
+ type ListIntegrationTemplatesOptions = legacy.ListIntegrationTemplatesOptions;
659
+ /**
660
+ * @deprecated Legacy template field. Use `IntegrationFieldSchema`; the native union is richer.
661
+ */
662
+ type TemplateField = legacy.TemplateField;
663
+ /**
664
+ * @deprecated Legacy test response. Use `ConnectionTestResult`.
665
+ */
666
+ type TestConnectionResponse = legacy.TestConnectionResponse;
667
+ /**
668
+ * @deprecated Legacy stored-config test input. Pass the config UUID to `integrationAdmin.testConfig`.
669
+ */
670
+ type TestIntegrationByIdOptions = legacy.TestIntegrationByIdOptions;
671
+ /**
672
+ * @deprecated Legacy credential test input. Use `TestCredentialsInput`; payload fields differ.
673
+ */
674
+ type TestIntegrationOptions = legacy.TestIntegrationOptions;
675
+ /**
676
+ * @deprecated Legacy integration update input. Use `TemplateConfigUpdateInput`; omitted values
677
+ * preserve stored credentials.
678
+ */
679
+ type UpdateIntegrationOptions = legacy.UpdateIntegrationOptions;
680
+ /**
681
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
682
+ * Use `mitra.agents.create` instead. It accepts native Function UUIDs and returns `AgentDefinition`.
683
+ */
684
+ declare const createAgentMitra: typeof legacy.createAgentMitra;
685
+ /**
686
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
687
+ * Use `mitra.agents.get` instead. The native response does not use the legacy BFF envelope.
688
+ */
689
+ declare const readAgentMitra: typeof legacy.readAgentMitra;
690
+ /**
691
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
692
+ * Use `mitra.agents.list` instead. It returns a native page.
693
+ */
694
+ declare const listAgentsMitra: typeof legacy.listAgentsMitra;
695
+ /**
696
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
697
+ * Use `mitra.agents.update` instead. Its input is a complete native replacement, including the
698
+ * complete Function ID list.
699
+ */
700
+ declare const updateAgentMitra: typeof legacy.updateAgentMitra;
701
+ /**
702
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
703
+ * Use `mitra.agents.delete` instead. It returns no legacy response envelope.
704
+ */
705
+ declare const deleteAgentMitra: typeof legacy.deleteAgentMitra;
706
+ /**
707
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
708
+ * Use the explicit `mitra.agentTasks.create` or `get` method. The legacy action multiplexer and
709
+ * session transport are not preserved by the native HTTP API.
710
+ */
711
+ declare const getAgentTaskMitra: typeof legacy.getAgentTaskMitra;
712
+ /**
713
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
714
+ * Use the explicit `mitra.agentTasks.list`, `rename`, `archive`, `sendInput`, or `listMessages`
715
+ * method. Live session streaming is not part of these HTTP methods.
716
+ */
717
+ declare const manageAgentChatMitra: typeof legacy.manageAgentChatMitra;
718
+ /**
719
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
720
+ * Use the explicit methods on `mitra.agentCredentials`. OAuth and device authorization are
721
+ * separate native calls rather than one action multiplexer.
722
+ */
723
+ declare const manageAgentCredentialMitra: typeof legacy.manageAgentCredentialMitra;
724
+ /**
725
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
726
+ * Use the explicit methods on `mitra.agentConnections`. The native API returns provider status
727
+ * metadata and keeps credential values write-only.
728
+ */
729
+ declare const manageAgentConnectionMitra: typeof legacy.manageAgentConnectionMitra;
730
+ /**
731
+ * @deprecated Legacy business Agent. Use `AgentDefinition`; Function link field names differ.
732
+ */
733
+ type Agent = legacy.Agent;
734
+ /**
735
+ * @deprecated Legacy Copilot task/chat summary. Use `AgentTask` from `mitra.agentTasks.list` or
736
+ * `get`; the native DTO uses `title` instead of `name` and includes ownership metadata.
737
+ */
738
+ type AgentChat = legacy.AgentChat;
739
+ /**
740
+ * @deprecated Legacy Agent connection preserved under its original name. Use
741
+ * `CoreAgentConnection` with `mitra.agentConnections`; credential metadata differs.
742
+ */
743
+ type AgentConnection = legacy.AgentConnection;
744
+ /**
745
+ * @deprecated Legacy provider credential status. Use `CredentialStatus` from
746
+ * `mitra.agentCredentials.list`; native provider values use `CopilotProvider` casing.
747
+ */
748
+ type AgentCredentialStatus = legacy.AgentCredentialStatus;
749
+ /**
750
+ * @deprecated Use the `delta` payload from `CoreAgentTaskSessionEventMap` through
751
+ * `mitra.agentTasks.session()`.
752
+ */
753
+ type AgentDeltaEvent = legacy.AgentDeltaEvent;
754
+ /**
755
+ * @deprecated Use the `error` payload from `CoreAgentTaskSessionEventMap`.
756
+ */
757
+ type AgentErrorEvent = legacy.AgentErrorEvent;
758
+ /**
759
+ * @deprecated Legacy live-session message preserved under its original name. Use
760
+ * `CoreAgentMessage` for persisted messages from `mitra.agentTasks.listMessages`.
761
+ */
762
+ type AgentMessage = legacy.AgentMessage;
763
+ /**
764
+ * @deprecated Legacy credential model preserved under its original name. Use `CoreAgentModel` for
765
+ * models returned by `mitra.agentCredentials.listModels` or `mitra.agents.listModels`.
766
+ */
767
+ type AgentModel = legacy.AgentModel;
768
+ /**
769
+ * @deprecated Legacy lowercase provider name. Use `CopilotProvider`; native values are uppercase
770
+ * and may include providers added by the service.
771
+ */
772
+ type AgentProvider = legacy.AgentProvider;
773
+ /**
774
+ * @deprecated Use the `queueChange` payload from `CoreAgentTaskSessionEventMap`.
775
+ */
776
+ type AgentQueueChangeEvent = legacy.AgentQueueChangeEvent;
777
+ /**
778
+ * @deprecated Use `AgentTaskEvent` from the native session `raw` event.
779
+ */
780
+ type AgentRawEvent = legacy.AgentRawEvent;
781
+ /**
782
+ * @deprecated Use the `statusChange` payload from `CoreAgentTaskSessionEventMap`.
783
+ */
784
+ type AgentStatusChangeEvent = legacy.AgentStatusChangeEvent;
785
+ /**
786
+ * @deprecated Use the `taskCreated` payload from `CoreAgentTaskSessionEventMap`.
787
+ */
788
+ type AgentTaskCreatedEvent = legacy.AgentTaskCreatedEvent;
789
+ /**
790
+ * @deprecated Use `CoreAgentTaskSessionEventMap`.
791
+ */
792
+ type AgentTaskEventMap = legacy.AgentTaskEventMap;
793
+ /**
794
+ * @deprecated Use `keyof CoreAgentTaskSessionEventMap`.
795
+ */
796
+ type AgentTaskEventName = legacy.AgentTaskEventName;
797
+ /**
798
+ * @deprecated Use `CoreAgentTaskSession` from `mitra.agentTasks.session()`.
799
+ */
800
+ type AgentTaskSession = legacy.AgentTaskSession;
801
+ /**
802
+ * @deprecated Use `CoreAgentTaskSessionStatus`.
803
+ */
804
+ type AgentTaskStatus = legacy.AgentTaskStatus;
805
+ /**
806
+ * @deprecated Use `AgentSessionTransport`. The Functions adapter supports `auto` and `http`.
807
+ */
808
+ type AgentTaskTransport = legacy.AgentTaskTransport;
809
+ /**
810
+ * @deprecated Use `CoreAgentTimelineItem`.
811
+ */
812
+ type AgentTimelineItem = legacy.AgentTimelineItem;
813
+ /**
814
+ * @deprecated Use `CoreAgentToolEvent`.
815
+ */
816
+ type AgentToolEvent = legacy.AgentToolEvent;
817
+ /**
818
+ * @deprecated Use `AgentTurnResult` from `sendAndWait()`.
819
+ */
820
+ type AgentTurnEndEvent = legacy.AgentTurnEndEvent;
821
+ /**
822
+ * @deprecated Legacy `mitra-sdk` type. There is no replacement yet; this API is still supported.
823
+ */
824
+ type AgentType = legacy.AgentType;
825
+ /**
826
+ * @deprecated Legacy provider OAuth-start response. Use `OAuthStartResult` from
827
+ * `agentCredentials.startOAuth` or `agentConnections.startOAuth`.
828
+ */
829
+ type AuthAgentCredentialResult = legacy.AuthAgentCredentialResult;
830
+ /**
831
+ * @deprecated Legacy chat action union. Use explicit `agentTasks.list`, `rename`, and `archive`
832
+ * methods instead of an action discriminator.
833
+ */
834
+ type ChatManageAction = legacy.ChatManageAction;
835
+ /**
836
+ * @deprecated Legacy OAuth or device-flow completion response. Use `AuthenticationResult`.
837
+ */
838
+ type ConnectAgentCredentialResult = legacy.ConnectAgentCredentialResult;
839
+ /**
840
+ * @deprecated Legacy Agent create input. Use `AgentInput`; `serverFunctionIds` becomes `functionIds`.
841
+ */
842
+ type CreateAgentOptions = legacy.CreateAgentOptions;
843
+ /**
844
+ * @deprecated Legacy Agent create response. Use `AgentDefinition`.
845
+ */
846
+ type CreateAgentResponse = legacy.CreateAgentResponse;
847
+ /**
848
+ * @deprecated Legacy credential action union. Use the explicit methods on
849
+ * `mitra.agentCredentials` instead.
850
+ */
851
+ type CredentialAction = legacy.CredentialAction;
852
+ /**
853
+ * @deprecated Legacy chat archive response. `agentTasks.archive(taskId)` performs the same native
854
+ * operation and resolves without a response body.
855
+ */
856
+ type DeleteAgentChatResult = legacy.DeleteAgentChatResult;
857
+ /**
858
+ * @deprecated Legacy Agent delete input. Pass the Agent UUID directly to `mitra.agents.delete`;
859
+ * native app scope comes from the runtime token and client configuration.
860
+ */
861
+ type DeleteAgentOptions = legacy.DeleteAgentOptions;
862
+ /**
863
+ * @deprecated Legacy Agent delete response. The native delete has no response body.
864
+ */
865
+ type DeleteAgentResponse = legacy.DeleteAgentResponse;
866
+ /**
867
+ * @deprecated Legacy device authorization response. Use `DeviceAuthorization`.
868
+ */
869
+ type DeviceAuthAgentCredentialResult = legacy.DeviceAuthAgentCredentialResult;
870
+ /**
871
+ * @deprecated Legacy task-create input. Use `AgentTaskCreateInput`.
872
+ */
873
+ type GetAgentTaskCreateOptions = legacy.GetAgentTaskCreateOptions;
874
+ /**
875
+ * @deprecated Legacy task-open input. Pass the task UUID to `agentTasks.get`.
876
+ */
877
+ type GetAgentTaskOpenOptions = legacy.GetAgentTaskOpenOptions;
878
+ /**
879
+ * @deprecated Legacy create/open action union. Use explicit `agentTasks.create` or `get` methods.
880
+ */
881
+ type GetAgentTaskOptions = legacy.GetAgentTaskOptions;
882
+ /**
883
+ * @deprecated Legacy connection-list envelope. Use `CoreAgentConnection[]`.
884
+ */
885
+ type ListAgentConnectionsResult = legacy.ListAgentConnectionsResult;
886
+ /**
887
+ * @deprecated Legacy model-list envelope. Use `CoreAgentModel[]`.
888
+ */
889
+ type ListAgentModelsResult = legacy.ListAgentModelsResult;
890
+ /**
891
+ * @deprecated Legacy provider-status envelope. Use `CredentialStatus[]` returned directly by
892
+ * `mitra.agentCredentials.list`.
893
+ */
894
+ type ListAgentProvidersResult = legacy.ListAgentProvidersResult;
895
+ /**
896
+ * @deprecated Legacy Agent list input. Use `PageOptions` with `mitra.agents.list`; native app scope
897
+ * comes from the runtime token and client configuration.
898
+ */
899
+ type ListAgentsOptions = legacy.ListAgentsOptions;
900
+ /**
901
+ * @deprecated Legacy Agent list response. Use `Page<AgentDefinition>`.
902
+ */
903
+ type ListAgentsResponse = legacy.ListAgentsResponse;
904
+ /**
905
+ * @deprecated Legacy chat archive action input. Pass `taskId` to `mitra.agentTasks.archive`;
906
+ * native app scope is implicit and the method has no action discriminator.
907
+ */
908
+ type ManageAgentChatDeleteOptions = legacy.ManageAgentChatDeleteOptions;
909
+ /**
910
+ * @deprecated Legacy chat list action input. Use `AgentTaskListOptions` with
911
+ * `mitra.agentTasks.list`; native pagination returns `Page<AgentTask>`.
912
+ */
913
+ type ManageAgentChatListOptions = legacy.ManageAgentChatListOptions;
914
+ /**
915
+ * @deprecated Legacy chat action union. Use explicit `mitra.agentTasks.list`, `rename`, or
916
+ * `archive` calls; their inputs and return types are operation-specific.
917
+ */
918
+ type ManageAgentChatOptions = legacy.ManageAgentChatOptions;
919
+ /**
920
+ * @deprecated Legacy chat rename action input. Call `mitra.agentTasks.rename(taskId, title)`;
921
+ * native app scope is implicit and `title` replaces `name`.
922
+ */
923
+ type ManageAgentChatRenameOptions = legacy.ManageAgentChatRenameOptions;
924
+ /**
925
+ * @deprecated Legacy connection action union. Use explicit methods on `mitra.agentConnections`,
926
+ * including `list`, `create`, `delete`, `saveApiKey`, OAuth, and device authorization methods.
927
+ */
928
+ type ManageAgentConnectionOptions = legacy.ManageAgentConnectionOptions;
929
+ /**
930
+ * @deprecated Legacy credential action union. Use explicit methods on `agentCredentials`.
931
+ */
932
+ type ManageAgentCredentialOptions = legacy.ManageAgentCredentialOptions;
933
+ /**
934
+ * @deprecated Legacy client-side queued prompt. Native `agentTasks.sendInput` sends immediately
935
+ * through the HTTP channel and does not expose this queue item.
936
+ */
937
+ type QueuedItem = legacy.QueuedItem;
938
+ /**
939
+ * @deprecated Legacy Agent read input. Pass the Agent UUID directly to `mitra.agents.get`; native
940
+ * app scope comes from the runtime token and client configuration.
941
+ */
942
+ type ReadAgentOptions = legacy.ReadAgentOptions;
943
+ /**
944
+ * @deprecated Legacy Agent read response. Use `AgentDefinition`.
945
+ */
946
+ type ReadAgentResponse = legacy.ReadAgentResponse;
947
+ /**
948
+ * @deprecated Legacy chat rename response `{ taskId, name }`. Use the `AgentTask` returned by
949
+ * `mitra.agentTasks.rename`, whose field is named `title`.
950
+ */
951
+ type RenameAgentChatResult = legacy.RenameAgentChatResult;
952
+ /**
953
+ * @deprecated Legacy live-session send options. Use an `AgentTaskInput` message with
954
+ * `mitra.agentTasks.sendInput`; the native input carries content, model, and reasoning options.
955
+ */
956
+ type SendOptions = legacy.SendOptions;
957
+ /**
958
+ * @deprecated Legacy Agent update input. Use `AgentInput`; the native method is a complete
959
+ * replacement and uses `functionIds`.
960
+ */
961
+ type UpdateAgentOptions = legacy.UpdateAgentOptions;
962
+ /**
963
+ * @deprecated Legacy Agent update response. Use `AgentDefinition`.
964
+ */
965
+ type UpdateAgentResponse = legacy.UpdateAgentResponse;
966
+ /**
967
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
968
+ * Use `mitra.members.invite` instead. The native method receives the app UUID explicitly and
969
+ * returns no legacy BFF envelope. The default runtime token has MEMBER_WRITE but not MEMBER_READ.
970
+ */
971
+ declare const inviteUserMitra: typeof legacy.inviteUserMitra;
972
+ /**
973
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
974
+ * Use `mitra.members.unsubscribe` instead. It receives native app and user UUIDs and returns no
975
+ * legacy BFF envelope.
976
+ */
977
+ declare const unsubscribeUserMitra: typeof legacy.unsubscribeUserMitra;
978
+ /**
979
+ * @deprecated Legacy `mitra-sdk` type. There is no replacement yet; this API is still supported.
980
+ */
981
+ type InviteUserOptions = legacy.InviteUserOptions;
982
+ /**
983
+ * @deprecated Legacy invite response. `members.invite` has no response body.
984
+ */
985
+ type InviteUserResult = legacy.InviteUserResult;
986
+ /**
987
+ * @deprecated Legacy unsubscribe input. Pass native app and user UUIDs to `members.unsubscribe`.
988
+ */
989
+ type UnsubscribeUserOptions = legacy.UnsubscribeUserOptions;
990
+ /**
991
+ * @deprecated Legacy unsubscribe response. `members.unsubscribe` has no response body.
992
+ */
993
+ type UnsubscribeUserResult = legacy.UnsubscribeUserResult;
994
+ /**
995
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
996
+ * There is no one-call native replacement for the legacy archive upload. Convert the package to a
997
+ * text file map, call `mitra.currentApp.replaceFiles` or `mergeFiles`, then call `build` for a
998
+ * preview build or `publish` for a published build.
999
+ */
1000
+ declare const deployToS3Mitra: typeof legacy.deployToS3Mitra;
1001
+ /**
1002
+ * @deprecated Legacy `mitra-sdk` API kept for backward compatibility.
1003
+ * Use `mitra.currentApp.getDeploy` instead. It polls by stable deploy UUID and returns `AppDeploy`.
1004
+ */
1005
+ declare const getDeployStatusMitra: typeof legacy.getDeployStatusMitra;
1006
+ /**
1007
+ * @deprecated Legacy direct-S3 archive input. Native deployment accepts a text file map through
1008
+ * `currentApp.replaceFiles` or `mergeFiles`, followed by `build` or `publish`.
1009
+ */
1010
+ type DeployToS3Options = legacy.DeployToS3Options;
1011
+ /**
1012
+ * @deprecated Legacy direct-S3 deploy response. Use `AppDefinition` from publish or `AppDeploy`
1013
+ * from preview build.
1014
+ */
1015
+ type DeployToS3Response = legacy.DeployToS3Response;
1016
+ /**
1017
+ * @deprecated Legacy deploy-status input. Pass app and deploy UUIDs to `apps.getDeploy`, or only
1018
+ * the deploy UUID to `currentApp.getDeploy`.
1019
+ */
1020
+ type GetDeployStatusOptions = legacy.GetDeployStatusOptions;
1021
+ /**
1022
+ * @deprecated Legacy deploy-status response. Use `AppDeploy`.
1023
+ */
1024
+ type GetDeployStatusResponse = legacy.GetDeployStatusResponse;
1025
+
1026
+ export { type Agent, type AgentChat, type AgentConnection, type AgentCredentialStatus, type AgentDeltaEvent, type AgentErrorEvent, type AgentMessage, type AgentModel, type AgentProvider, type AgentQueueChangeEvent, type AgentRawEvent, type AgentStatusChangeEvent, type AgentTaskCreatedEvent, type AgentTaskEventMap, type AgentTaskEventName, type AgentTaskSession, type AgentTaskStatus, type AgentTaskTransport, type AgentTimelineItem, type AgentToolEvent, type AgentTurnEndEvent, type AgentType, type AppScopedAppsModule, type AuthAgentCredentialResult, type AuthorizationConfig, type CallIntegrationOptions, type CallIntegrationResponse, type ChatManageAction, type ConnectAgentCredentialResult, type ConnectorTemplateResponse, type CreateAgentOptions, type CreateAgentResponse, type CreateIntegrationOptions, type CreateJdbcConnectionOptions, type CreateJdbcConnectionResponse, type CreateOnlineTableOptions, type CreateOnlineTableResponse, type CreateProjectOptions, type CreateProjectResponse, type CreateRecordOptions, type CreateRecordsBatchOptions, type CreateServerFunctionOptions, type CreateServerFunctionResponse, type CredentialAction, type CurrentAppModule, type DeleteAgentChatResult, type DeleteAgentOptions, type DeleteAgentResponse, type DeleteIntegrationOptions, type DeleteJdbcConnectionOptions, type DeleteJdbcConnectionResponse, type DeleteOnlineTableOptions, type DeleteOnlineTableResponse, type DeleteRecordOptions, type DeleteServerFunctionOptions, type DeleteServerFunctionResponse, type DeployToS3Options, type DeployToS3Response, type DeviceAuthAgentCredentialResult, type ExecutePublicServerFunctionAsyncResponse, type ExecutePublicServerFunctionOptions, type ExecuteServerFunctionAsyncOptions, type ExecuteServerFunctionAsyncResponse, type ExecuteServerFunctionOptions, type ExecuteServerFunctionResponse, type Fetch, type GetAgentTaskCreateOptions, type GetAgentTaskOpenOptions, type GetAgentTaskOptions, type GetDeployStatusOptions, type GetDeployStatusResponse, type GetGitConfigOptions, type GetGitConfigResponse, type GetIntegrationTemplateOptions, type GetProjectContextOptions, type GetProjectContextResponse, type GetProjectsResponse, type GetRecordOptions, type GetServerFunctionExecutionOptions, type GetServerFunctionExecutionResponse, type IntegrationResponse, type InviteUserOptions, type InviteUserResult, type ListAgentConnectionsResult, type ListAgentModelsResult, type ListAgentProvidersResult, type ListAgentsOptions, type ListAgentsResponse, type ListIntegrationTemplatesOptions, type ListIntegrationsOptions, type ListJdbcConnectionsOptions, type ListJdbcConnectionsResponse, type ListOnlineTablesOptions, type ListOnlineTablesResponse, type ListProjectsOptions, type ListProjectsResponse, type ListRecordsOptions, type ListRecordsResponse, type ListServerFunctionsOptions, type ListServerFunctionsResponse, type ListTablesOptions, type ListTablesResponse, type ManageAgentChatDeleteOptions, type ManageAgentChatListOptions, type ManageAgentChatOptions, type ManageAgentChatRenameOptions, type ManageAgentConnectionOptions, type ManageAgentCredentialOptions, MitraApiError, type MitraClient, type MitraClientConfig, type MitraConfig, MitraConfigurationError, type MitraEnvironment, type MitraSdkInstance, type PatchRecordOptions, type QueuedItem, type ReadAgentOptions, type ReadAgentResponse, type ReadServerFunctionOptions, type ReadServerFunctionResponse, type RenameAgentChatResult, type RunDdlOptions, type RunDdlResponse, type RunDmlOptions, type RunDmlResponse, type RunQueryOptions, type RunQueryResponse, type SendOptions, type StopServerFunctionExecutionOptions, type StopServerFunctionExecutionResponse, type TemplateField, type TestConnectionResponse, type TestIntegrationByIdOptions, type TestIntegrationOptions, type TogglePublicExecutionOptions, type TogglePublicExecutionResponse, type UnsubscribeUserOptions, type UnsubscribeUserResult, type UpdateAgentOptions, type UpdateAgentResponse, type UpdateIntegrationOptions, type UpdateJdbcConnectionOptions, type UpdateJdbcConnectionResponse, type UpdateOnlineTableOptions, type UpdateOnlineTableResponse, type UpdateProjectSettingsOptions, type UpdateProjectSettingsResponse, type UpdateRecordOptions, type UpdateServerFunctionOptions, type UpdateServerFunctionResponse, callIntegrationMitra, configureSdkMitra, createAgentMitra, createClient, createClientFromEnvironment, createIntegrationMitra, createJdbcConnectionMitra, createMitraSdkInstance, createOnlineTableMitra, createProjectMitra, createRecordMitra, createRecordsBatchMitra, createServerFunctionMitra, deleteAgentMitra, deleteIntegrationMitra, deleteJdbcConnectionMitra, deleteOnlineTableMitra, deleteRecordMitra, deleteServerFunctionMitra, deployToS3Mitra, executePublicServerFunctionAsyncMitra, executeServerFunctionAsyncMitra, executeServerFunctionMitra, getAgentTaskMitra, getDeployStatusMitra, getGitConfigMitra, getIntegrationTemplateMitra, getProjectContextMitra, getProjectsMitra, getRecordMitra, getServerFunctionExecutionMitra, inviteUserMitra, listAgentsMitra, listIntegrationTemplatesMitra, listIntegrationsMitra, listJdbcConnectionsMitra, listOnlineTablesMitra, listProjectsMitra, listRecordsMitra, listServerFunctionsMitra, listTablesMitra, manageAgentChatMitra, manageAgentConnectionMitra, manageAgentCredentialMitra, patchRecordMitra, readAgentMitra, readServerFunctionMitra, resolveProjectId, runDdlMitra, runDmlMitra, runQueryMitra, stopServerFunctionExecutionMitra, testIntegrationByIdMitra, testIntegrationMitra, togglePublicExecutionMitra, unsubscribeUserMitra, updateAgentMitra, updateIntegrationMitra, updateJdbcConnectionMitra, updateOnlineTableMitra, updateProjectSettingsMitra, updateRecordMitra, updateServerFunctionMitra };