@mitralab.io/sdk-core 0.3.6 → 0.3.8

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.cts CHANGED
@@ -536,6 +536,11 @@ interface AgentMessageListOptions extends PageOptions {
536
536
  * and `TOOL_USE` rows of the chat itself, as before.
537
537
  */
538
538
  kinds?: "all";
539
+ /**
540
+ * `plan` also asks for the `PLAN` rows, which `kinds: "all"` alone leaves out: 0.3.0 to 0.3.5 read
541
+ * a row of a type they do not know as text. A Copilot without them ignores it.
542
+ */
543
+ include?: "plan";
539
544
  /** Id of a message: only the rows recorded before it, so the next page back holds still. */
540
545
  before?: string;
541
546
  }
@@ -599,13 +604,6 @@ interface AppUpdateInput {
599
604
  icon?: string;
600
605
  /** Whether users may sign up through this app. Omission preserves the current value. */
601
606
  allowSignup?: boolean;
602
- /** Whether users may sign in with a code sent by email. Omission preserves the current value. */
603
- emailLoginEnabled?: boolean;
604
- /**
605
- * Whether users may sign in with a password. Omission preserves the current value. Code Studio
606
- * rejects `true` while the app inherits the platform login.
607
- */
608
- passwordLoginEnabled?: boolean;
609
607
  }
610
608
  interface AppDomain {
611
609
  hostname: string;
@@ -627,10 +625,6 @@ interface AppSummary {
627
625
  template: string | null;
628
626
  planId: string;
629
627
  allowSignup: boolean;
630
- /** Absent on a Code Studio that predates email login. */
631
- emailLoginEnabled?: boolean;
632
- /** Absent on a Code Studio that predates password login. */
633
- passwordLoginEnabled?: boolean;
634
628
  externalAccessEnabled: boolean;
635
629
  currentVersion: AppVersion | null;
636
630
  createdAt: string;
@@ -651,10 +645,6 @@ interface AppDefinition {
651
645
  planId: string;
652
646
  template: string | null;
653
647
  allowSignup: boolean;
654
- /** Absent on a Code Studio that predates email login. */
655
- emailLoginEnabled?: boolean;
656
- /** Absent on a Code Studio that predates password login. */
657
- passwordLoginEnabled?: boolean;
658
648
  externalAccessEnabled: boolean;
659
649
  currentVersion: AppVersion | null;
660
650
  createdAt: string;
@@ -1232,7 +1222,7 @@ interface AgentMessage {
1232
1222
  sender: string;
1233
1223
  /**
1234
1224
  * `TEXT`, `ERROR`, `TOOL_USE`; asked with `kinds: "all"`, also `REASONING`, `SUBAGENT_TEXT`,
1235
- * `APPROVAL`, `USER_INPUT_REQUEST` and `NOTIFICATION`.
1225
+ * `APPROVAL`, `USER_INPUT_REQUEST` and `NOTIFICATION`; with `include: "plan"`, also `PLAN`.
1236
1226
  */
1237
1227
  type: string;
1238
1228
  content: string;
@@ -1299,6 +1289,50 @@ interface AgentReadyProvider {
1299
1289
  */
1300
1290
  usage: CredentialUsage | null;
1301
1291
  }
1292
+ interface AiProviders {
1293
+ activeEngine: "FREE" | "CLAUDE" | "CODEX" | "CUSTOM" | "OPENCODE" | (string & {});
1294
+ includedAiAvailable: boolean;
1295
+ includedAiQuota: IncludedAiQuota | null;
1296
+ activeCustomProviderId: string | null;
1297
+ customProviders: AgentConnectionCustomProvider[];
1298
+ opencode: OpencodeAiProvider;
1299
+ /** Null when ineligible; absent on a Copilot that predates managed profiles. */
1300
+ managedAiProfile?: ManagedAiProfile | null;
1301
+ }
1302
+ interface IncludedAiQuota {
1303
+ planCode: string;
1304
+ /** Omitted when no window is exhausted. */
1305
+ blockingWindow?: "DAY" | "MONTH" | (string & {});
1306
+ /** A window the plan does not have is omitted, never null. */
1307
+ windows: {
1308
+ day?: IncludedAiQuotaWindow;
1309
+ month?: IncludedAiQuotaWindow;
1310
+ };
1311
+ /** Omitted when no token reading is available. */
1312
+ remainingTokens?: number;
1313
+ }
1314
+ interface IncludedAiQuotaWindow {
1315
+ limit: number;
1316
+ left: number;
1317
+ leftCenticredits: number;
1318
+ resetsAt: string;
1319
+ }
1320
+ interface OpencodeAiProvider {
1321
+ connected: boolean;
1322
+ presetId: string | null;
1323
+ presetName: string | null;
1324
+ authMethod: "API_KEY" | "ENDPOINT" | (string & {}) | null;
1325
+ providerId: string | null;
1326
+ baseUrl: string | null;
1327
+ models: string[] | null;
1328
+ }
1329
+ interface ManagedAiProfile {
1330
+ profile: "IMMERSION" | (string & {});
1331
+ agentType: "IMMERSION" | (string & {});
1332
+ selectionMode: "FORCED" | (string & {});
1333
+ model: string;
1334
+ requiredScope: "ACCOUNT" | (string & {});
1335
+ }
1302
1336
  interface CredentialStatus {
1303
1337
  provider: CopilotProvider;
1304
1338
  connected: boolean;
@@ -1419,108 +1453,6 @@ interface SendEmailInput {
1419
1453
  /** Plain-text alternative for clients that do not render HTML. */
1420
1454
  text?: string;
1421
1455
  }
1422
- /**
1423
- * The account emails an app may rewrite with its own token. Messenger sends them from the app's
1424
- * sender settings or the brand, so a template never picks its sender.
1425
- */
1426
- type EmailTemplateType = "SIGN_IN" | "SSO_GUIDANCE" | "APP_USER_INVITED" | "APP_ACCESS_REQUIRED";
1427
- interface EmailTemplate {
1428
- id: string;
1429
- /**
1430
- * An `EmailTemplateType` with an app token. Kept as a string because a console token also
1431
- * lists the platform's other types, and a type Messenger opens later must not break the list.
1432
- */
1433
- type: string;
1434
- /** Always null for these types: their sender comes from the app settings or the brand. */
1435
- senderIdentityId: string | null;
1436
- subject: string;
1437
- htmlBody: string;
1438
- textBody: string | null;
1439
- /** True on a platform row. The list returns it next to the app's own row when the app rewrote the type. */
1440
- platformDefault: boolean;
1441
- createdAt: string;
1442
- updatedAt: string;
1443
- }
1444
- interface EmailTemplateVariable {
1445
- /** Referenced in a template as `$name`. */
1446
- name: string;
1447
- /** A required variable must appear in the subject or the HTML body. */
1448
- required: boolean;
1449
- description: string | null;
1450
- /** Sample value used to render the preview. */
1451
- preview: string | null;
1452
- }
1453
- interface EmailTemplateTypeCatalog {
1454
- type: string;
1455
- variables: EmailTemplateVariable[];
1456
- }
1457
- /** Replaces the app's version of the template as a whole. */
1458
- interface EmailTemplateInput {
1459
- subject: string;
1460
- htmlBody: string;
1461
- /** Left out, the plain-text version saved before is cleared. */
1462
- textBody?: string;
1463
- }
1464
- /** The template rendered with the preview values of its variables. */
1465
- interface EmailTemplatePreview {
1466
- subject: string;
1467
- htmlBody: string;
1468
- textBody: string | null;
1469
- }
1470
- interface EmailTemplateUpsertResult {
1471
- template: EmailTemplate;
1472
- /** Null when only the preview failed; the template is saved all the same. */
1473
- preview: EmailTemplatePreview | null;
1474
- /** The transport or response error of the preview, unchanged, when `preview` is null. */
1475
- previewError?: unknown;
1476
- }
1477
- /** An address of a person, available as a sender in the app's workspace. */
1478
- interface EmailSender {
1479
- id: string;
1480
- email: string;
1481
- displayName: string;
1482
- /**
1483
- * `PENDING`, `VERIFIED` or `FAILED`. Kept as a string so a status Messenger adds later does not
1484
- * break the list. Only a `VERIFIED` address signs the app's emails.
1485
- */
1486
- status: string;
1487
- sharedWithCurrentWorkspace: boolean;
1488
- /** True until the person confirms the 6-digit code Messenger sent to the address. */
1489
- ownerConfirmationPending: boolean;
1490
- createdAt: string;
1491
- updatedAt: string;
1492
- }
1493
- interface EmailSenderInput {
1494
- email: string;
1495
- /** Name of the address; the app settings may override it in the From header. */
1496
- displayName: string;
1497
- }
1498
- /** The From the app's emails use now, which falls back to the brand while the app sender cannot sign. */
1499
- interface EffectiveEmailSender {
1500
- email: string;
1501
- displayName: string | null;
1502
- /** `APP_SENDER` or `BRAND_DEFAULT`, as a string for the same reason as `EmailSender.status`. */
1503
- source: string;
1504
- /** Why the brand signs: `NO_SETTINGS`, `IDENTITY_NOT_VERIFIED` or `IDENTITY_NOT_SHARED`. */
1505
- reason: string | null;
1506
- }
1507
- interface EmailSettings {
1508
- appId: string;
1509
- senderIdentityId: string | null;
1510
- displayName: string | null;
1511
- replyTo: string | null;
1512
- effectiveSender: EffectiveEmailSender;
1513
- /** True when the app's own templates go out even while the brand signs. */
1514
- ownTemplateSendsFromBrand: boolean;
1515
- }
1516
- /** Replaces the app's settings as a whole: a field left out or null is cleared. */
1517
- interface EmailSettingsInput {
1518
- /** An `EmailSender.id` from `listEmailSenders`; without it the app sends from the brand. */
1519
- senderIdentityId?: string | null;
1520
- /** Single line, shown in the From header. */
1521
- displayName?: string | null;
1522
- replyTo?: string | null;
1523
- }
1524
1456
  interface AppContext {
1525
1457
  appId: string;
1526
1458
  app: AppDefinition;
@@ -1668,6 +1600,11 @@ interface AgentTasksModule {
1668
1600
  }
1669
1601
  declare function createAgentTasksModule(transport: Transport, errors?: SdkCoreErrorFactory): AgentTasksModule;
1670
1602
 
1603
+ interface AiProvidersModule {
1604
+ get(): Promise<AiProviders>;
1605
+ }
1606
+ declare function createAiProvidersModule(transport: Transport, errors?: SdkCoreErrorFactory): AiProvidersModule;
1607
+
1671
1608
  interface AppsModule {
1672
1609
  /** Lists tenant apps. App-scoped tokens cannot call this collection operation. */
1673
1610
  list(options?: AppListOptions): Promise<Page<AppSummary>>;
@@ -2021,48 +1958,8 @@ interface MessengerModule {
2021
1958
  notify(content: string): Promise<MessageAccepted>;
2022
1959
  /** Sends an email from the app's sender; only the app's backend token may send. */
2023
1960
  sendEmail(input: SendEmailInput): Promise<MessageAccepted>;
2024
- /**
2025
- * Lists the current app's email templates: the platform row (`platformDefault: true`) of every
2026
- * type and, beside it, the app's row for each type the app has rewritten.
2027
- */
2028
- listEmailTemplates(): Promise<EmailTemplate[]>;
2029
- /** Gets the variables a type accepts, referenced as `$name` in the subject and HTML body. */
2030
- getEmailTemplateType(type: EmailTemplateType): Promise<EmailTemplateTypeCatalog>;
2031
- /** Gets the current app's version of a template, or the platform text when it has none. */
2032
- getEmailTemplate(type: EmailTemplateType): Promise<EmailTemplate>;
2033
- /**
2034
- * Replaces the current app's version of a template and renders its preview. Every required
2035
- * variable must appear in the subject or the HTML body.
2036
- */
2037
- upsertEmailTemplate(type: EmailTemplateType, input: EmailTemplateInput): Promise<EmailTemplateUpsertResult>;
2038
- /**
2039
- * Renders the app's saved template, or the platform one, with the catalog's sample values. It
2040
- * does not prove which HTML goes out: the sender and the brand policy decide that at send time.
2041
- */
2042
- previewEmailTemplate(type: EmailTemplateType): Promise<EmailTemplatePreview>;
2043
- /** Deletes the current app's version of a template, so the platform text applies again. */
2044
- deleteEmailTemplate(type: EmailTemplateType): Promise<void>;
2045
- /** Lists the addresses available as senders in the workspace of the token. */
2046
- listEmailSenders(): Promise<EmailSender[]>;
2047
- /**
2048
- * Registers an address in the name of the person in the token and makes it available in the
2049
- * app's workspace. An address the person already owns comes back as saved, made available too.
2050
- * Messenger mails a verification link and a 6-digit code to the address.
2051
- */
2052
- registerEmailSender(input: EmailSenderInput): Promise<EmailSender>;
2053
- /**
2054
- * Mails the AWS link again while AWS has not verified the address, and a new code only while
2055
- * the person has not confirmed one yet.
2056
- */
2057
- resendEmailSenderVerification(senderId: string): Promise<EmailSender>;
2058
- /** Confirms the 6-digit code the person read in the mailbox of the address. */
2059
- confirmEmailSender(senderId: string, code: string): Promise<EmailSender>;
2060
- /** Gets the current app's sender settings and the From its emails use now. */
2061
- getEmailSettings(): Promise<EmailSettings>;
2062
- /** Replaces the current app's sender settings; a field left out is cleared. */
2063
- updateEmailSettings(input: EmailSettingsInput): Promise<EmailSettings>;
2064
1961
  }
2065
- declare function createMessengerModule(transport: Transport, errors?: SdkCoreErrorFactory, getAppId?: () => string | undefined): MessengerModule;
1962
+ declare function createMessengerModule(transport: Transport, errors?: SdkCoreErrorFactory): MessengerModule;
2066
1963
 
2067
1964
  interface PublicFunctionsModule {
2068
1965
  /**
@@ -2134,7 +2031,7 @@ interface SdkCoreTransports {
2134
2031
  codeStudio?: Transport;
2135
2032
  /** Copilot transport for tasks, credentials, models, and app connections. */
2136
2033
  copilot?: Transport;
2137
- /** Messenger transport for current-user notifications, app emails, and their templates. */
2034
+ /** Messenger transport for current-user notifications. */
2138
2035
  messenger?: Transport;
2139
2036
  /**
2140
2037
  * Anonymous Functions transport. It must not add Authorization or X-App-Id headers.
@@ -2154,6 +2051,7 @@ interface SdkCore {
2154
2051
  readonly agentCredentials: AgentCredentialsModule;
2155
2052
  readonly agents: AgentsModule;
2156
2053
  readonly agentTasks: AgentTasksModule;
2054
+ readonly aiProviders: AiProvidersModule;
2157
2055
  readonly apps: AppsModule;
2158
2056
  readonly auth: AuthModule;
2159
2057
  readonly context: ContextModule;
@@ -2374,6 +2272,31 @@ interface AgentNotification {
2374
2272
  itemId?: string;
2375
2273
  [field: string]: unknown;
2376
2274
  }
2275
+ /**
2276
+ * One step of the turn's list, as T3 has it: `status` `pending`, `running` or `completed`, and
2277
+ * `durationMs` once T3 timed a completed step. Values are passed as they come, an unknown one
2278
+ * included.
2279
+ */
2280
+ interface AgentPlanStep {
2281
+ id: string;
2282
+ text: string;
2283
+ status: string;
2284
+ durationMs?: number;
2285
+ [field: string]: unknown;
2286
+ }
2287
+ /**
2288
+ * The turn's list of steps as it stands, T3's `todo_list` item: Claude's TodoWrite and tasks and
2289
+ * Codex's plan. Each update carries the whole list; the same `itemId` is the same list. `status`
2290
+ * is the item's own, as T3 sends it.
2291
+ */
2292
+ interface AgentPlan {
2293
+ planId: string | null;
2294
+ steps: AgentPlanStep[];
2295
+ explanation?: string;
2296
+ status: string | null;
2297
+ itemId?: string;
2298
+ [field: string]: unknown;
2299
+ }
2377
2300
  interface AgentToolEvent extends AgentPieceIdentity {
2378
2301
  tool: string;
2379
2302
  /** The title the box gave the tool: a subagent's own name (its description), as T3 shows it. */
@@ -2450,6 +2373,17 @@ type AgentTimelineItem = ({
2450
2373
  at: string;
2451
2374
  parentToolId?: string;
2452
2375
  } & Pick<AgentNotification, "source" | "outcome" | "summary" | "detail"> & AgentTimelineItemIdentity) | ({
2376
+ id: string;
2377
+ /**
2378
+ * The turn's list of steps (`PLAN` row), one item per T3 item with its last state: `planId`,
2379
+ * `steps`, `explanation` and `status` as the live `plan` event carries them, and the box's
2380
+ * frame as it came in `payload`. Live, each update replaces the item in place.
2381
+ */
2382
+ kind: "plan";
2383
+ payload: Record<string, unknown>;
2384
+ at: string;
2385
+ parentToolId?: string;
2386
+ } & Pick<AgentPlan, "planId" | "steps" | "explanation" | "status"> & AgentTimelineItemIdentity) | ({
2453
2387
  id: string;
2454
2388
  kind: "tool";
2455
2389
  tool: AgentToolEvent;
@@ -2522,6 +2456,8 @@ interface AgentTaskSessionEventMap {
2522
2456
  };
2523
2457
  /** Background work ended: what it was, how it ended and T3's line for it. */
2524
2458
  notification: AgentNotification & AgentPieceIdentity;
2459
+ /** The turn's list of steps changed: the whole list, as T3 shows it. */
2460
+ plan: AgentPlan & AgentPieceIdentity;
2525
2461
  /**
2526
2462
  * The box took a message into the running turn at this point, with no turn of its own: the
2527
2463
  * place the app shows it in that turn. The turn's `turnEnd` answers it.
@@ -2709,4 +2645,4 @@ declare function expectPage<T extends object>(value: unknown, context: string, e
2709
2645
  declare function expectLegacyPage<T extends object>(value: unknown, context: string, errors?: SdkCoreErrorFactory, validateItem?: (value: unknown, context: string, errors: SdkCoreErrorFactory) => T): LegacyPage<T>;
2710
2646
  declare function expectEmpty(value: unknown, context: string, errors?: SdkCoreErrorFactory): void;
2711
2647
 
2712
- export { API_KEY_EXCHANGE_PATH, type AgentBackgroundTask, type AgentBulkDeleteResult, type AgentConnection, type AgentConnectionCreateInput, type AgentConnectionCustomProvider, type AgentConnectionCustomProviderInput, type AgentConnectionsModule, type AgentCredentialOptions, type AgentCredentialScope, type AgentCredentialsModule, type AgentDefinition, type AgentDirectChannelOptions, type AgentFetch, type AgentFetchResponse, type AgentHistoryCursor, type AgentInput, type AgentMessage, type AgentMessageListOptions, type AgentModel, type AgentNotification, type AgentPieceIdentity, type AgentProviderUsage, type AgentQueueItem, type AgentReadyProvider, type AgentSendAndWaitOptions, type AgentSendOptions, type AgentSessionTransport, type AgentSubagent, type AgentSubagentFrame, type AgentSubagentStatus, type AgentTask, type AgentTaskChannel, type AgentTaskCreateInput, type AgentTaskEvent, type AgentTaskEventConnection, type AgentTaskEventObserver, type AgentTaskEventSource, type AgentTaskInput, type AgentTaskListOptions, type AgentTaskRuntime, type AgentTaskSession, type AgentTaskSessionEventMap, type AgentTaskSessionManager, type AgentTaskSessionManagerOptions, type AgentTaskSessionOptions, type AgentTaskSessionStatus, AgentTaskTurnError, type AgentTasksModule, type AgentTasksWithSessions, type AgentTimelineItem, type AgentTimelineItemIdentity, type AgentToolEvent, type AgentTurnResult, type AgentTurnUsage, type AgentTurnUsageRequest, type AgentUpdateItem, type AgentWebSocket, type AgentWebSocketConstructor, type AgentsModule, type ApiKeyExchangeCaller, type AppColor, type AppContext, type AppCreateInput, type AppDefinition, type AppDeploy, type AppDomain, type AppFiles, type AppGetOptions, type AppListOptions, type AppMember, type AppPublishOptions, type AppSummary, type AppUpdateInput, type AppVersion, type AppVersionStatus, type AppsModule, type AuthModule, type AuthenticationResult, type BatchExecution, type BatchStatementResult, type BulkUnsubscribeResult, type ColumnInput, type ConnectionConfig, type ConnectionConfigResponse, type ConnectionTestResult, type ContextModule, type ContextModuleDependencies, type CopilotProvider, type CredentialStatus, type CredentialUsage, type CredentialUsageWindow, type CustomQueriesModule, type CustomQueryDefinition, type CustomQueryInput, type CustomQuerySummary, type CustomQueryUpdateInput, type DataSourceBulkItemResult, type DataSourceBulkResult, type DataSourceCreateInput, type DataSourceDbType, type DataSourceDefinition, type DataSourceInstanceType, type DataSourceUpdateInput, type DataSourcesModule, type DdlStatement, type DeviceAuthorization, type DmlStatement, type EffectiveEmailSender, type EmailSender, type EmailSenderInput, type EmailSettings, type EmailSettingsInput, type EmailTemplate, type EmailTemplateInput, type EmailTemplatePreview, type EmailTemplateType, type EmailTemplateTypeCatalog, type EmailTemplateUpsertResult, type EmailTemplateVariable, type EmptyFunctionInput, type EntitiesModule, type EntitiesProxy, type EntityListOptions, type EntityListResponse, type EntityTable, type ExistingAgentTaskSessionOptions, type FunctionBulkCreateInput, type FunctionBulkDeleteInput, type FunctionBulkDeleteResult, type FunctionBulkPatchInput, type FunctionBulkPatchItem, type FunctionBulkUpdateItem, type FunctionCreateInput, type FunctionDefinition, type FunctionExecution, type FunctionListOptions, type FunctionPatchInput, type FunctionRuntime, type FunctionSecrets, type FunctionSummary, type FunctionUpdateInput, type FunctionVersion, type FunctionVersionListOptions, type FunctionVisibility, type FunctionsAdminModule, type FunctionsModule, type FunctionsModuleOptions, type HttpMethod, type ImportColumnMapping, type ImportDefinition, type ImportExecution, type ImportExecutionListOptions, type ImportInput, type ImportProcessing, type ImportSchedule, type ImportSource, type ImportSourceResponse, type ImportTarget, type ImportsModule, type IntegrationAdminModule, type IntegrationConnectionStatus, type IntegrationCredentialRule, type IntegrationExecution, type IntegrationFieldSchema, type IntegrationFieldSchemaInput, type IntegrationLoginConfig, type IntegrationModule, type IntegrationProxyMode, type IntegrationRequestConfig, type IntegrationResource, type IntegrationResourceInput, type IntegrationResourceParam, type IntegrationResourceSummary, type IntegrationResourceUpdateInput, type IntegrationResourcesModule, type IntegrationTemplate, type IntegrationTemplateSummary, type IntegrationTemplateType, type IntegrationTemplatesModule, type IntegrationTokenExtraction, type InviteAppUserInput, type InvocationType, type JsonValue, type LegacyPage, type ListTablesOptions, type ListTemplateConfigsOptions, type MembersModule, type MessageAccepted, type MessengerModule, type NewAgentTaskSessionOptions, type OAuthExchangeInput, type OAuthStartResult, type Page, type PageOptions, type PlanPrice, type ProviderCredentialStatus, type ProxyInput, type ProxyResult, type PublicFunctionAsyncResult, type PublicFunctionResult, type PublicFunctionsModule, type QueriesModule, type QueryParamPrimitive, type QueryParamValue, type QueryResult, type SchemaModule, type SchemaScope, type SchemaTables, type SdkCore, SdkCoreConfigurationError, type SdkCoreErrorFactory, type SdkCoreOptions, SdkCoreResponseError, type SdkCoreTransports, type SendEmailInput, type SqlModule, type TableColumn, type TableDefinition, type TableForeignKey, type TemplateConfig, type TemplateConfigBulkItemResult, type TemplateConfigBulkResult, type TemplateConfigCreateInput, type TemplateConfigPage, type TemplateConfigSummary, type TemplateConfigUpdateInput, type Tenant, type TestCredentialsInput, type Transport, type TransportRequestOptions, type User, type UserPlan, type WorkflowDefinition, type WorkflowExecution, type WorkflowInput, type WorkflowSummary, type WorkflowsModule, appAccessTokenPath, createAgentConnectionsModule, createAgentCredentialsModule, createAgentTaskSessionManager, createAgentTasksModule, createAgentsModule, createAppsModule, createAuthModule, createContextModule, createCustomQueriesModule, createDataSourcesModule, createEntitiesModule, createFunctionsAdminModule, createFunctionsModule, createImportsModule, createIntegrationAdminModule, createIntegrationModule, createIntegrationResourcesModule, createIntegrationTemplatesModule, createMembersModule, createMessengerModule, createPublicFunctionsModule, createQueriesModule, createSchemaModule, createSdkCore, createSqlModule, createWorkflowsModule, defaultSdkCoreErrorFactory, encodePathSegment, expectEmpty, expectLegacyPage, expectNullableObject, expectObject, expectObjectArray, expectPage, expectStringArray, isWorkspaceSession, readTokenAppId, readTokenExpiry, resolveApiKeyToken, toAgentTimelineItem, tokenAuthorizesApp, withAgentTaskSessions };
2648
+ export { API_KEY_EXCHANGE_PATH, type AgentBackgroundTask, type AgentBulkDeleteResult, type AgentConnection, type AgentConnectionCreateInput, type AgentConnectionCustomProvider, type AgentConnectionCustomProviderInput, type AgentConnectionsModule, type AgentCredentialOptions, type AgentCredentialScope, type AgentCredentialsModule, type AgentDefinition, type AgentDirectChannelOptions, type AgentFetch, type AgentFetchResponse, type AgentHistoryCursor, type AgentInput, type AgentMessage, type AgentMessageListOptions, type AgentModel, type AgentNotification, type AgentPieceIdentity, type AgentPlan, type AgentPlanStep, type AgentProviderUsage, type AgentQueueItem, type AgentReadyProvider, type AgentSendAndWaitOptions, type AgentSendOptions, type AgentSessionTransport, type AgentSubagent, type AgentSubagentFrame, type AgentSubagentStatus, type AgentTask, type AgentTaskChannel, type AgentTaskCreateInput, type AgentTaskEvent, type AgentTaskEventConnection, type AgentTaskEventObserver, type AgentTaskEventSource, type AgentTaskInput, type AgentTaskListOptions, type AgentTaskRuntime, type AgentTaskSession, type AgentTaskSessionEventMap, type AgentTaskSessionManager, type AgentTaskSessionManagerOptions, type AgentTaskSessionOptions, type AgentTaskSessionStatus, AgentTaskTurnError, type AgentTasksModule, type AgentTasksWithSessions, type AgentTimelineItem, type AgentTimelineItemIdentity, type AgentToolEvent, type AgentTurnResult, type AgentTurnUsage, type AgentTurnUsageRequest, type AgentUpdateItem, type AgentWebSocket, type AgentWebSocketConstructor, type AgentsModule, type AiProviders, type AiProvidersModule, type ApiKeyExchangeCaller, type AppColor, type AppContext, type AppCreateInput, type AppDefinition, type AppDeploy, type AppDomain, type AppFiles, type AppGetOptions, type AppListOptions, type AppMember, type AppPublishOptions, type AppSummary, type AppUpdateInput, type AppVersion, type AppVersionStatus, type AppsModule, type AuthModule, type AuthenticationResult, type BatchExecution, type BatchStatementResult, type BulkUnsubscribeResult, type ColumnInput, type ConnectionConfig, type ConnectionConfigResponse, type ConnectionTestResult, type ContextModule, type ContextModuleDependencies, type CopilotProvider, type CredentialStatus, type CredentialUsage, type CredentialUsageWindow, type CustomQueriesModule, type CustomQueryDefinition, type CustomQueryInput, type CustomQuerySummary, type CustomQueryUpdateInput, type DataSourceBulkItemResult, type DataSourceBulkResult, type DataSourceCreateInput, type DataSourceDbType, type DataSourceDefinition, type DataSourceInstanceType, type DataSourceUpdateInput, type DataSourcesModule, type DdlStatement, type DeviceAuthorization, type DmlStatement, type EmptyFunctionInput, type EntitiesModule, type EntitiesProxy, type EntityListOptions, type EntityListResponse, type EntityTable, type ExistingAgentTaskSessionOptions, type FunctionBulkCreateInput, type FunctionBulkDeleteInput, type FunctionBulkDeleteResult, type FunctionBulkPatchInput, type FunctionBulkPatchItem, type FunctionBulkUpdateItem, type FunctionCreateInput, type FunctionDefinition, type FunctionExecution, type FunctionListOptions, type FunctionPatchInput, type FunctionRuntime, type FunctionSecrets, type FunctionSummary, type FunctionUpdateInput, type FunctionVersion, type FunctionVersionListOptions, type FunctionVisibility, type FunctionsAdminModule, type FunctionsModule, type FunctionsModuleOptions, type HttpMethod, type ImportColumnMapping, type ImportDefinition, type ImportExecution, type ImportExecutionListOptions, type ImportInput, type ImportProcessing, type ImportSchedule, type ImportSource, type ImportSourceResponse, type ImportTarget, type ImportsModule, type IncludedAiQuota, type IncludedAiQuotaWindow, type IntegrationAdminModule, type IntegrationConnectionStatus, type IntegrationCredentialRule, type IntegrationExecution, type IntegrationFieldSchema, type IntegrationFieldSchemaInput, type IntegrationLoginConfig, type IntegrationModule, type IntegrationProxyMode, type IntegrationRequestConfig, type IntegrationResource, type IntegrationResourceInput, type IntegrationResourceParam, type IntegrationResourceSummary, type IntegrationResourceUpdateInput, type IntegrationResourcesModule, type IntegrationTemplate, type IntegrationTemplateSummary, type IntegrationTemplateType, type IntegrationTemplatesModule, type IntegrationTokenExtraction, type InviteAppUserInput, type InvocationType, type JsonValue, type LegacyPage, type ListTablesOptions, type ListTemplateConfigsOptions, type ManagedAiProfile, type MembersModule, type MessageAccepted, type MessengerModule, type NewAgentTaskSessionOptions, type OAuthExchangeInput, type OAuthStartResult, type OpencodeAiProvider, type Page, type PageOptions, type PlanPrice, type ProviderCredentialStatus, type ProxyInput, type ProxyResult, type PublicFunctionAsyncResult, type PublicFunctionResult, type PublicFunctionsModule, type QueriesModule, type QueryParamPrimitive, type QueryParamValue, type QueryResult, type SchemaModule, type SchemaScope, type SchemaTables, type SdkCore, SdkCoreConfigurationError, type SdkCoreErrorFactory, type SdkCoreOptions, SdkCoreResponseError, type SdkCoreTransports, type SendEmailInput, type SqlModule, type TableColumn, type TableDefinition, type TableForeignKey, type TemplateConfig, type TemplateConfigBulkItemResult, type TemplateConfigBulkResult, type TemplateConfigCreateInput, type TemplateConfigPage, type TemplateConfigSummary, type TemplateConfigUpdateInput, type Tenant, type TestCredentialsInput, type Transport, type TransportRequestOptions, type User, type UserPlan, type WorkflowDefinition, type WorkflowExecution, type WorkflowInput, type WorkflowSummary, type WorkflowsModule, appAccessTokenPath, createAgentConnectionsModule, createAgentCredentialsModule, createAgentTaskSessionManager, createAgentTasksModule, createAgentsModule, createAiProvidersModule, createAppsModule, createAuthModule, createContextModule, createCustomQueriesModule, createDataSourcesModule, createEntitiesModule, createFunctionsAdminModule, createFunctionsModule, createImportsModule, createIntegrationAdminModule, createIntegrationModule, createIntegrationResourcesModule, createIntegrationTemplatesModule, createMembersModule, createMessengerModule, createPublicFunctionsModule, createQueriesModule, createSchemaModule, createSdkCore, createSqlModule, createWorkflowsModule, defaultSdkCoreErrorFactory, encodePathSegment, expectEmpty, expectLegacyPage, expectNullableObject, expectObject, expectObjectArray, expectPage, expectStringArray, isWorkspaceSession, readTokenAppId, readTokenExpiry, resolveApiKeyToken, toAgentTimelineItem, tokenAuthorizesApp, withAgentTaskSessions };