@mitralab.io/sdk-core 0.3.7 → 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
@@ -604,13 +604,6 @@ interface AppUpdateInput {
604
604
  icon?: string;
605
605
  /** Whether users may sign up through this app. Omission preserves the current value. */
606
606
  allowSignup?: boolean;
607
- /** Whether users may sign in with a code sent by email. Omission preserves the current value. */
608
- emailLoginEnabled?: boolean;
609
- /**
610
- * Whether users may sign in with a password. Omission preserves the current value. Code Studio
611
- * rejects `true` while the app inherits the platform login.
612
- */
613
- passwordLoginEnabled?: boolean;
614
607
  }
615
608
  interface AppDomain {
616
609
  hostname: string;
@@ -632,10 +625,6 @@ interface AppSummary {
632
625
  template: string | null;
633
626
  planId: string;
634
627
  allowSignup: boolean;
635
- /** Absent on a Code Studio that predates email login. */
636
- emailLoginEnabled?: boolean;
637
- /** Absent on a Code Studio that predates password login. */
638
- passwordLoginEnabled?: boolean;
639
628
  externalAccessEnabled: boolean;
640
629
  currentVersion: AppVersion | null;
641
630
  createdAt: string;
@@ -656,10 +645,6 @@ interface AppDefinition {
656
645
  planId: string;
657
646
  template: string | null;
658
647
  allowSignup: boolean;
659
- /** Absent on a Code Studio that predates email login. */
660
- emailLoginEnabled?: boolean;
661
- /** Absent on a Code Studio that predates password login. */
662
- passwordLoginEnabled?: boolean;
663
648
  externalAccessEnabled: boolean;
664
649
  currentVersion: AppVersion | null;
665
650
  createdAt: string;
@@ -1304,6 +1289,50 @@ interface AgentReadyProvider {
1304
1289
  */
1305
1290
  usage: CredentialUsage | null;
1306
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
+ }
1307
1336
  interface CredentialStatus {
1308
1337
  provider: CopilotProvider;
1309
1338
  connected: boolean;
@@ -1424,108 +1453,6 @@ interface SendEmailInput {
1424
1453
  /** Plain-text alternative for clients that do not render HTML. */
1425
1454
  text?: string;
1426
1455
  }
1427
- /**
1428
- * The account emails an app may rewrite with its own token. Messenger sends them from the app's
1429
- * sender settings or the brand, so a template never picks its sender.
1430
- */
1431
- type EmailTemplateType = "SIGN_IN" | "SSO_GUIDANCE" | "APP_USER_INVITED" | "APP_ACCESS_REQUIRED";
1432
- interface EmailTemplate {
1433
- id: string;
1434
- /**
1435
- * An `EmailTemplateType` with an app token. Kept as a string because a console token also
1436
- * lists the platform's other types, and a type Messenger opens later must not break the list.
1437
- */
1438
- type: string;
1439
- /** Always null for these types: their sender comes from the app settings or the brand. */
1440
- senderIdentityId: string | null;
1441
- subject: string;
1442
- htmlBody: string;
1443
- textBody: string | null;
1444
- /** True on a platform row. The list returns it next to the app's own row when the app rewrote the type. */
1445
- platformDefault: boolean;
1446
- createdAt: string;
1447
- updatedAt: string;
1448
- }
1449
- interface EmailTemplateVariable {
1450
- /** Referenced in a template as `$name`. */
1451
- name: string;
1452
- /** A required variable must appear in the subject or the HTML body. */
1453
- required: boolean;
1454
- description: string | null;
1455
- /** Sample value used to render the preview. */
1456
- preview: string | null;
1457
- }
1458
- interface EmailTemplateTypeCatalog {
1459
- type: string;
1460
- variables: EmailTemplateVariable[];
1461
- }
1462
- /** Replaces the app's version of the template as a whole. */
1463
- interface EmailTemplateInput {
1464
- subject: string;
1465
- htmlBody: string;
1466
- /** Left out, the plain-text version saved before is cleared. */
1467
- textBody?: string;
1468
- }
1469
- /** The template rendered with the preview values of its variables. */
1470
- interface EmailTemplatePreview {
1471
- subject: string;
1472
- htmlBody: string;
1473
- textBody: string | null;
1474
- }
1475
- interface EmailTemplateUpsertResult {
1476
- template: EmailTemplate;
1477
- /** Null when only the preview failed; the template is saved all the same. */
1478
- preview: EmailTemplatePreview | null;
1479
- /** The transport or response error of the preview, unchanged, when `preview` is null. */
1480
- previewError?: unknown;
1481
- }
1482
- /** An address of a person, available as a sender in the app's workspace. */
1483
- interface EmailSender {
1484
- id: string;
1485
- email: string;
1486
- displayName: string;
1487
- /**
1488
- * `PENDING`, `VERIFIED` or `FAILED`. Kept as a string so a status Messenger adds later does not
1489
- * break the list. Only a `VERIFIED` address signs the app's emails.
1490
- */
1491
- status: string;
1492
- sharedWithCurrentWorkspace: boolean;
1493
- /** True until the person confirms the 6-digit code Messenger sent to the address. */
1494
- ownerConfirmationPending: boolean;
1495
- createdAt: string;
1496
- updatedAt: string;
1497
- }
1498
- interface EmailSenderInput {
1499
- email: string;
1500
- /** Name of the address; the app settings may override it in the From header. */
1501
- displayName: string;
1502
- }
1503
- /** The From the app's emails use now, which falls back to the brand while the app sender cannot sign. */
1504
- interface EffectiveEmailSender {
1505
- email: string;
1506
- displayName: string | null;
1507
- /** `APP_SENDER` or `BRAND_DEFAULT`, as a string for the same reason as `EmailSender.status`. */
1508
- source: string;
1509
- /** Why the brand signs: `NO_SETTINGS`, `IDENTITY_NOT_VERIFIED` or `IDENTITY_NOT_SHARED`. */
1510
- reason: string | null;
1511
- }
1512
- interface EmailSettings {
1513
- appId: string;
1514
- senderIdentityId: string | null;
1515
- displayName: string | null;
1516
- replyTo: string | null;
1517
- effectiveSender: EffectiveEmailSender;
1518
- /** True when the app's own templates go out even while the brand signs. */
1519
- ownTemplateSendsFromBrand: boolean;
1520
- }
1521
- /** Replaces the app's settings as a whole: a field left out or null is cleared. */
1522
- interface EmailSettingsInput {
1523
- /** An `EmailSender.id` from `listEmailSenders`; without it the app sends from the brand. */
1524
- senderIdentityId?: string | null;
1525
- /** Single line, shown in the From header. */
1526
- displayName?: string | null;
1527
- replyTo?: string | null;
1528
- }
1529
1456
  interface AppContext {
1530
1457
  appId: string;
1531
1458
  app: AppDefinition;
@@ -1673,6 +1600,11 @@ interface AgentTasksModule {
1673
1600
  }
1674
1601
  declare function createAgentTasksModule(transport: Transport, errors?: SdkCoreErrorFactory): AgentTasksModule;
1675
1602
 
1603
+ interface AiProvidersModule {
1604
+ get(): Promise<AiProviders>;
1605
+ }
1606
+ declare function createAiProvidersModule(transport: Transport, errors?: SdkCoreErrorFactory): AiProvidersModule;
1607
+
1676
1608
  interface AppsModule {
1677
1609
  /** Lists tenant apps. App-scoped tokens cannot call this collection operation. */
1678
1610
  list(options?: AppListOptions): Promise<Page<AppSummary>>;
@@ -2026,48 +1958,8 @@ interface MessengerModule {
2026
1958
  notify(content: string): Promise<MessageAccepted>;
2027
1959
  /** Sends an email from the app's sender; only the app's backend token may send. */
2028
1960
  sendEmail(input: SendEmailInput): Promise<MessageAccepted>;
2029
- /**
2030
- * Lists the current app's email templates: the platform row (`platformDefault: true`) of every
2031
- * type and, beside it, the app's row for each type the app has rewritten.
2032
- */
2033
- listEmailTemplates(): Promise<EmailTemplate[]>;
2034
- /** Gets the variables a type accepts, referenced as `$name` in the subject and HTML body. */
2035
- getEmailTemplateType(type: EmailTemplateType): Promise<EmailTemplateTypeCatalog>;
2036
- /** Gets the current app's version of a template, or the platform text when it has none. */
2037
- getEmailTemplate(type: EmailTemplateType): Promise<EmailTemplate>;
2038
- /**
2039
- * Replaces the current app's version of a template and renders its preview. Every required
2040
- * variable must appear in the subject or the HTML body.
2041
- */
2042
- upsertEmailTemplate(type: EmailTemplateType, input: EmailTemplateInput): Promise<EmailTemplateUpsertResult>;
2043
- /**
2044
- * Renders the app's saved template, or the platform one, with the catalog's sample values. It
2045
- * does not prove which HTML goes out: the sender and the brand policy decide that at send time.
2046
- */
2047
- previewEmailTemplate(type: EmailTemplateType): Promise<EmailTemplatePreview>;
2048
- /** Deletes the current app's version of a template, so the platform text applies again. */
2049
- deleteEmailTemplate(type: EmailTemplateType): Promise<void>;
2050
- /** Lists the addresses available as senders in the workspace of the token. */
2051
- listEmailSenders(): Promise<EmailSender[]>;
2052
- /**
2053
- * Registers an address in the name of the person in the token and makes it available in the
2054
- * app's workspace. An address the person already owns comes back as saved, made available too.
2055
- * Messenger mails a verification link and a 6-digit code to the address.
2056
- */
2057
- registerEmailSender(input: EmailSenderInput): Promise<EmailSender>;
2058
- /**
2059
- * Mails the AWS link again while AWS has not verified the address, and a new code only while
2060
- * the person has not confirmed one yet.
2061
- */
2062
- resendEmailSenderVerification(senderId: string): Promise<EmailSender>;
2063
- /** Confirms the 6-digit code the person read in the mailbox of the address. */
2064
- confirmEmailSender(senderId: string, code: string): Promise<EmailSender>;
2065
- /** Gets the current app's sender settings and the From its emails use now. */
2066
- getEmailSettings(): Promise<EmailSettings>;
2067
- /** Replaces the current app's sender settings; a field left out is cleared. */
2068
- updateEmailSettings(input: EmailSettingsInput): Promise<EmailSettings>;
2069
1961
  }
2070
- declare function createMessengerModule(transport: Transport, errors?: SdkCoreErrorFactory, getAppId?: () => string | undefined): MessengerModule;
1962
+ declare function createMessengerModule(transport: Transport, errors?: SdkCoreErrorFactory): MessengerModule;
2071
1963
 
2072
1964
  interface PublicFunctionsModule {
2073
1965
  /**
@@ -2139,7 +2031,7 @@ interface SdkCoreTransports {
2139
2031
  codeStudio?: Transport;
2140
2032
  /** Copilot transport for tasks, credentials, models, and app connections. */
2141
2033
  copilot?: Transport;
2142
- /** Messenger transport for current-user notifications, app emails, and their templates. */
2034
+ /** Messenger transport for current-user notifications. */
2143
2035
  messenger?: Transport;
2144
2036
  /**
2145
2037
  * Anonymous Functions transport. It must not add Authorization or X-App-Id headers.
@@ -2159,6 +2051,7 @@ interface SdkCore {
2159
2051
  readonly agentCredentials: AgentCredentialsModule;
2160
2052
  readonly agents: AgentsModule;
2161
2053
  readonly agentTasks: AgentTasksModule;
2054
+ readonly aiProviders: AiProvidersModule;
2162
2055
  readonly apps: AppsModule;
2163
2056
  readonly auth: AuthModule;
2164
2057
  readonly context: ContextModule;
@@ -2752,4 +2645,4 @@ declare function expectPage<T extends object>(value: unknown, context: string, e
2752
2645
  declare function expectLegacyPage<T extends object>(value: unknown, context: string, errors?: SdkCoreErrorFactory, validateItem?: (value: unknown, context: string, errors: SdkCoreErrorFactory) => T): LegacyPage<T>;
2753
2646
  declare function expectEmpty(value: unknown, context: string, errors?: SdkCoreErrorFactory): void;
2754
2647
 
2755
- 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 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 };
package/dist/index.d.ts CHANGED
@@ -604,13 +604,6 @@ interface AppUpdateInput {
604
604
  icon?: string;
605
605
  /** Whether users may sign up through this app. Omission preserves the current value. */
606
606
  allowSignup?: boolean;
607
- /** Whether users may sign in with a code sent by email. Omission preserves the current value. */
608
- emailLoginEnabled?: boolean;
609
- /**
610
- * Whether users may sign in with a password. Omission preserves the current value. Code Studio
611
- * rejects `true` while the app inherits the platform login.
612
- */
613
- passwordLoginEnabled?: boolean;
614
607
  }
615
608
  interface AppDomain {
616
609
  hostname: string;
@@ -632,10 +625,6 @@ interface AppSummary {
632
625
  template: string | null;
633
626
  planId: string;
634
627
  allowSignup: boolean;
635
- /** Absent on a Code Studio that predates email login. */
636
- emailLoginEnabled?: boolean;
637
- /** Absent on a Code Studio that predates password login. */
638
- passwordLoginEnabled?: boolean;
639
628
  externalAccessEnabled: boolean;
640
629
  currentVersion: AppVersion | null;
641
630
  createdAt: string;
@@ -656,10 +645,6 @@ interface AppDefinition {
656
645
  planId: string;
657
646
  template: string | null;
658
647
  allowSignup: boolean;
659
- /** Absent on a Code Studio that predates email login. */
660
- emailLoginEnabled?: boolean;
661
- /** Absent on a Code Studio that predates password login. */
662
- passwordLoginEnabled?: boolean;
663
648
  externalAccessEnabled: boolean;
664
649
  currentVersion: AppVersion | null;
665
650
  createdAt: string;
@@ -1304,6 +1289,50 @@ interface AgentReadyProvider {
1304
1289
  */
1305
1290
  usage: CredentialUsage | null;
1306
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
+ }
1307
1336
  interface CredentialStatus {
1308
1337
  provider: CopilotProvider;
1309
1338
  connected: boolean;
@@ -1424,108 +1453,6 @@ interface SendEmailInput {
1424
1453
  /** Plain-text alternative for clients that do not render HTML. */
1425
1454
  text?: string;
1426
1455
  }
1427
- /**
1428
- * The account emails an app may rewrite with its own token. Messenger sends them from the app's
1429
- * sender settings or the brand, so a template never picks its sender.
1430
- */
1431
- type EmailTemplateType = "SIGN_IN" | "SSO_GUIDANCE" | "APP_USER_INVITED" | "APP_ACCESS_REQUIRED";
1432
- interface EmailTemplate {
1433
- id: string;
1434
- /**
1435
- * An `EmailTemplateType` with an app token. Kept as a string because a console token also
1436
- * lists the platform's other types, and a type Messenger opens later must not break the list.
1437
- */
1438
- type: string;
1439
- /** Always null for these types: their sender comes from the app settings or the brand. */
1440
- senderIdentityId: string | null;
1441
- subject: string;
1442
- htmlBody: string;
1443
- textBody: string | null;
1444
- /** True on a platform row. The list returns it next to the app's own row when the app rewrote the type. */
1445
- platformDefault: boolean;
1446
- createdAt: string;
1447
- updatedAt: string;
1448
- }
1449
- interface EmailTemplateVariable {
1450
- /** Referenced in a template as `$name`. */
1451
- name: string;
1452
- /** A required variable must appear in the subject or the HTML body. */
1453
- required: boolean;
1454
- description: string | null;
1455
- /** Sample value used to render the preview. */
1456
- preview: string | null;
1457
- }
1458
- interface EmailTemplateTypeCatalog {
1459
- type: string;
1460
- variables: EmailTemplateVariable[];
1461
- }
1462
- /** Replaces the app's version of the template as a whole. */
1463
- interface EmailTemplateInput {
1464
- subject: string;
1465
- htmlBody: string;
1466
- /** Left out, the plain-text version saved before is cleared. */
1467
- textBody?: string;
1468
- }
1469
- /** The template rendered with the preview values of its variables. */
1470
- interface EmailTemplatePreview {
1471
- subject: string;
1472
- htmlBody: string;
1473
- textBody: string | null;
1474
- }
1475
- interface EmailTemplateUpsertResult {
1476
- template: EmailTemplate;
1477
- /** Null when only the preview failed; the template is saved all the same. */
1478
- preview: EmailTemplatePreview | null;
1479
- /** The transport or response error of the preview, unchanged, when `preview` is null. */
1480
- previewError?: unknown;
1481
- }
1482
- /** An address of a person, available as a sender in the app's workspace. */
1483
- interface EmailSender {
1484
- id: string;
1485
- email: string;
1486
- displayName: string;
1487
- /**
1488
- * `PENDING`, `VERIFIED` or `FAILED`. Kept as a string so a status Messenger adds later does not
1489
- * break the list. Only a `VERIFIED` address signs the app's emails.
1490
- */
1491
- status: string;
1492
- sharedWithCurrentWorkspace: boolean;
1493
- /** True until the person confirms the 6-digit code Messenger sent to the address. */
1494
- ownerConfirmationPending: boolean;
1495
- createdAt: string;
1496
- updatedAt: string;
1497
- }
1498
- interface EmailSenderInput {
1499
- email: string;
1500
- /** Name of the address; the app settings may override it in the From header. */
1501
- displayName: string;
1502
- }
1503
- /** The From the app's emails use now, which falls back to the brand while the app sender cannot sign. */
1504
- interface EffectiveEmailSender {
1505
- email: string;
1506
- displayName: string | null;
1507
- /** `APP_SENDER` or `BRAND_DEFAULT`, as a string for the same reason as `EmailSender.status`. */
1508
- source: string;
1509
- /** Why the brand signs: `NO_SETTINGS`, `IDENTITY_NOT_VERIFIED` or `IDENTITY_NOT_SHARED`. */
1510
- reason: string | null;
1511
- }
1512
- interface EmailSettings {
1513
- appId: string;
1514
- senderIdentityId: string | null;
1515
- displayName: string | null;
1516
- replyTo: string | null;
1517
- effectiveSender: EffectiveEmailSender;
1518
- /** True when the app's own templates go out even while the brand signs. */
1519
- ownTemplateSendsFromBrand: boolean;
1520
- }
1521
- /** Replaces the app's settings as a whole: a field left out or null is cleared. */
1522
- interface EmailSettingsInput {
1523
- /** An `EmailSender.id` from `listEmailSenders`; without it the app sends from the brand. */
1524
- senderIdentityId?: string | null;
1525
- /** Single line, shown in the From header. */
1526
- displayName?: string | null;
1527
- replyTo?: string | null;
1528
- }
1529
1456
  interface AppContext {
1530
1457
  appId: string;
1531
1458
  app: AppDefinition;
@@ -1673,6 +1600,11 @@ interface AgentTasksModule {
1673
1600
  }
1674
1601
  declare function createAgentTasksModule(transport: Transport, errors?: SdkCoreErrorFactory): AgentTasksModule;
1675
1602
 
1603
+ interface AiProvidersModule {
1604
+ get(): Promise<AiProviders>;
1605
+ }
1606
+ declare function createAiProvidersModule(transport: Transport, errors?: SdkCoreErrorFactory): AiProvidersModule;
1607
+
1676
1608
  interface AppsModule {
1677
1609
  /** Lists tenant apps. App-scoped tokens cannot call this collection operation. */
1678
1610
  list(options?: AppListOptions): Promise<Page<AppSummary>>;
@@ -2026,48 +1958,8 @@ interface MessengerModule {
2026
1958
  notify(content: string): Promise<MessageAccepted>;
2027
1959
  /** Sends an email from the app's sender; only the app's backend token may send. */
2028
1960
  sendEmail(input: SendEmailInput): Promise<MessageAccepted>;
2029
- /**
2030
- * Lists the current app's email templates: the platform row (`platformDefault: true`) of every
2031
- * type and, beside it, the app's row for each type the app has rewritten.
2032
- */
2033
- listEmailTemplates(): Promise<EmailTemplate[]>;
2034
- /** Gets the variables a type accepts, referenced as `$name` in the subject and HTML body. */
2035
- getEmailTemplateType(type: EmailTemplateType): Promise<EmailTemplateTypeCatalog>;
2036
- /** Gets the current app's version of a template, or the platform text when it has none. */
2037
- getEmailTemplate(type: EmailTemplateType): Promise<EmailTemplate>;
2038
- /**
2039
- * Replaces the current app's version of a template and renders its preview. Every required
2040
- * variable must appear in the subject or the HTML body.
2041
- */
2042
- upsertEmailTemplate(type: EmailTemplateType, input: EmailTemplateInput): Promise<EmailTemplateUpsertResult>;
2043
- /**
2044
- * Renders the app's saved template, or the platform one, with the catalog's sample values. It
2045
- * does not prove which HTML goes out: the sender and the brand policy decide that at send time.
2046
- */
2047
- previewEmailTemplate(type: EmailTemplateType): Promise<EmailTemplatePreview>;
2048
- /** Deletes the current app's version of a template, so the platform text applies again. */
2049
- deleteEmailTemplate(type: EmailTemplateType): Promise<void>;
2050
- /** Lists the addresses available as senders in the workspace of the token. */
2051
- listEmailSenders(): Promise<EmailSender[]>;
2052
- /**
2053
- * Registers an address in the name of the person in the token and makes it available in the
2054
- * app's workspace. An address the person already owns comes back as saved, made available too.
2055
- * Messenger mails a verification link and a 6-digit code to the address.
2056
- */
2057
- registerEmailSender(input: EmailSenderInput): Promise<EmailSender>;
2058
- /**
2059
- * Mails the AWS link again while AWS has not verified the address, and a new code only while
2060
- * the person has not confirmed one yet.
2061
- */
2062
- resendEmailSenderVerification(senderId: string): Promise<EmailSender>;
2063
- /** Confirms the 6-digit code the person read in the mailbox of the address. */
2064
- confirmEmailSender(senderId: string, code: string): Promise<EmailSender>;
2065
- /** Gets the current app's sender settings and the From its emails use now. */
2066
- getEmailSettings(): Promise<EmailSettings>;
2067
- /** Replaces the current app's sender settings; a field left out is cleared. */
2068
- updateEmailSettings(input: EmailSettingsInput): Promise<EmailSettings>;
2069
1961
  }
2070
- declare function createMessengerModule(transport: Transport, errors?: SdkCoreErrorFactory, getAppId?: () => string | undefined): MessengerModule;
1962
+ declare function createMessengerModule(transport: Transport, errors?: SdkCoreErrorFactory): MessengerModule;
2071
1963
 
2072
1964
  interface PublicFunctionsModule {
2073
1965
  /**
@@ -2139,7 +2031,7 @@ interface SdkCoreTransports {
2139
2031
  codeStudio?: Transport;
2140
2032
  /** Copilot transport for tasks, credentials, models, and app connections. */
2141
2033
  copilot?: Transport;
2142
- /** Messenger transport for current-user notifications, app emails, and their templates. */
2034
+ /** Messenger transport for current-user notifications. */
2143
2035
  messenger?: Transport;
2144
2036
  /**
2145
2037
  * Anonymous Functions transport. It must not add Authorization or X-App-Id headers.
@@ -2159,6 +2051,7 @@ interface SdkCore {
2159
2051
  readonly agentCredentials: AgentCredentialsModule;
2160
2052
  readonly agents: AgentsModule;
2161
2053
  readonly agentTasks: AgentTasksModule;
2054
+ readonly aiProviders: AiProvidersModule;
2162
2055
  readonly apps: AppsModule;
2163
2056
  readonly auth: AuthModule;
2164
2057
  readonly context: ContextModule;
@@ -2752,4 +2645,4 @@ declare function expectPage<T extends object>(value: unknown, context: string, e
2752
2645
  declare function expectLegacyPage<T extends object>(value: unknown, context: string, errors?: SdkCoreErrorFactory, validateItem?: (value: unknown, context: string, errors: SdkCoreErrorFactory) => T): LegacyPage<T>;
2753
2646
  declare function expectEmpty(value: unknown, context: string, errors?: SdkCoreErrorFactory): void;
2754
2647
 
2755
- 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 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 };