@mitralab.io/sdk-core 0.2.15 → 0.2.17-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.cjs CHANGED
@@ -502,6 +502,14 @@ function expectAppSummary(value, context, errors = defaultSdkCoreErrorFactory) {
502
502
  if (typeof app.tenantId !== "string") invalidField(context, "tenantId", errors);
503
503
  return app;
504
504
  }
505
+ var LOGIN_THEME_FIELDS = [
506
+ "logoUrl",
507
+ "backgroundColor",
508
+ "colorScheme",
509
+ "title",
510
+ "subtitle",
511
+ "language"
512
+ ];
505
513
  function expectAppFields(app, context, errors) {
506
514
  for (const field of ["id", "shortId", "subdomain", "brand", "name", "planId"]) {
507
515
  if (typeof app[field] !== "string") invalidField(context, field, errors);
@@ -514,6 +522,15 @@ function expectAppFields(app, context, errors) {
514
522
  for (const field of ["emailLoginEnabled", "passwordLoginEnabled"]) {
515
523
  if (field in app && typeof app[field] !== "boolean") invalidField(context, field, errors);
516
524
  }
525
+ if ("passwordLoginMode" in app && typeof app.passwordLoginMode !== "string") {
526
+ invalidField(context, "passwordLoginMode", errors);
527
+ }
528
+ if ("loginTheme" in app && app.loginTheme !== null) {
529
+ const theme = expectObject(app.loginTheme, `${context} loginTheme`, errors);
530
+ for (const field of LOGIN_THEME_FIELDS) {
531
+ if (!isNullableString(theme[field])) invalidField(`${context} loginTheme`, field, errors);
532
+ }
533
+ }
517
534
  if (typeof app.externalAccessEnabled !== "boolean") {
518
535
  invalidField(context, "externalAccessEnabled", errors);
519
536
  }
@@ -798,6 +815,41 @@ function expectEmailTemplatePreview(value, context, errors = defaultSdkCoreError
798
815
  if (!isNullableString(preview.textBody)) invalidField(context, "textBody", errors);
799
816
  return preview;
800
817
  }
818
+ function expectEmailSender(value, context, errors = defaultSdkCoreErrorFactory) {
819
+ const sender = expectObject(value, context, errors);
820
+ if (typeof sender.id !== "string") invalidField(context, "id", errors);
821
+ if (typeof sender.email !== "string") invalidField(context, "email", errors);
822
+ if (typeof sender.displayName !== "string") invalidField(context, "displayName", errors);
823
+ if (!isNonEmptyString(sender.status)) invalidField(context, "status", errors);
824
+ if (typeof sender.sharedWithCurrentWorkspace !== "boolean") {
825
+ invalidField(context, "sharedWithCurrentWorkspace", errors);
826
+ }
827
+ if (typeof sender.ownerConfirmationPending !== "boolean") {
828
+ invalidField(context, "ownerConfirmationPending", errors);
829
+ }
830
+ if (typeof sender.createdAt !== "string") invalidField(context, "createdAt", errors);
831
+ if (typeof sender.updatedAt !== "string") invalidField(context, "updatedAt", errors);
832
+ return sender;
833
+ }
834
+ function expectEmailSettings(value, context, errors = defaultSdkCoreErrorFactory) {
835
+ const settings = expectObject(value, context, errors);
836
+ if (typeof settings.appId !== "string") invalidField(context, "appId", errors);
837
+ if (!isNullableString(settings.senderIdentityId)) {
838
+ invalidField(context, "senderIdentityId", errors);
839
+ }
840
+ if (!isNullableString(settings.displayName)) invalidField(context, "displayName", errors);
841
+ if (!isNullableString(settings.replyTo)) invalidField(context, "replyTo", errors);
842
+ if (typeof settings.ownTemplateSendsFromBrand !== "boolean") {
843
+ invalidField(context, "ownTemplateSendsFromBrand", errors);
844
+ }
845
+ const senderContext = `${context} effectiveSender`;
846
+ const sender = expectObject(settings.effectiveSender, senderContext, errors);
847
+ if (typeof sender.email !== "string") invalidField(senderContext, "email", errors);
848
+ if (!isNullableString(sender.displayName)) invalidField(senderContext, "displayName", errors);
849
+ if (!isNonEmptyString(sender.source)) invalidField(senderContext, "source", errors);
850
+ if (!isNullableString(sender.reason)) invalidField(senderContext, "reason", errors);
851
+ return settings;
852
+ }
801
853
  function expectAgentDefinition(value, context, errors = defaultSdkCoreErrorFactory) {
802
854
  const agent = expectObject(value, context, errors);
803
855
  if (typeof agent.id !== "string") invalidField(context, "id", errors);
@@ -2971,11 +3023,13 @@ function createMembersModule(transport, errors = defaultSdkCoreErrorFactory) {
2971
3023
  // src/modules/messenger.ts
2972
3024
  function createMessengerModule(transport, errors = defaultSdkCoreErrorFactory, getAppId) {
2973
3025
  const templatePath = (type) => `/api/v1/email/templates/${encodePathSegment(type, "email template type", errors)}`;
3026
+ const senderPath = (senderId) => `/api/v1/email/identities/${encodePathSegment(senderId, "email sender id", errors)}`;
2974
3027
  const currentAppId = () => {
2975
3028
  const appId = getAppId?.();
2976
- if (!appId) configurationError("An appId is required for email templates", errors);
3029
+ if (!appId) configurationError("An appId is required for app email calls", errors);
2977
3030
  return appId;
2978
3031
  };
3032
+ const settingsPath = () => `/api/v1/email/apps/${encodePathSegment(currentAppId(), "app id", errors)}/settings`;
2979
3033
  const preview = async (type, appId) => expectEmailTemplatePreview(
2980
3034
  await transport.request(`${templatePath(type)}/preview`, {
2981
3035
  method: "GET",
@@ -3064,6 +3118,60 @@ function createMessengerModule(transport, errors = defaultSdkCoreErrorFactory, g
3064
3118
  "Delete email template response",
3065
3119
  errors
3066
3120
  );
3121
+ },
3122
+ async listEmailSenders() {
3123
+ return expectObjectArray(
3124
+ await transport.request("/api/v1/email/identities/workspace", { method: "GET" }),
3125
+ "Email sender list response",
3126
+ errors,
3127
+ expectEmailSender
3128
+ );
3129
+ },
3130
+ async registerEmailSender(input) {
3131
+ return expectEmailSender(
3132
+ await transport.request("/api/v1/email/identities", {
3133
+ method: "POST",
3134
+ body: { email: input.email, displayName: input.displayName }
3135
+ }),
3136
+ "Register email sender response",
3137
+ errors
3138
+ );
3139
+ },
3140
+ async resendEmailSenderVerification(senderId) {
3141
+ return expectEmailSender(
3142
+ await transport.request(`${senderPath(senderId)}/resend-verification`, {
3143
+ method: "POST"
3144
+ }),
3145
+ "Resend email sender verification response",
3146
+ errors
3147
+ );
3148
+ },
3149
+ async confirmEmailSender(senderId, code) {
3150
+ return expectEmailSender(
3151
+ await transport.request(`${senderPath(senderId)}/confirm`, {
3152
+ method: "POST",
3153
+ body: { code }
3154
+ }),
3155
+ "Confirm email sender response",
3156
+ errors
3157
+ );
3158
+ },
3159
+ async getEmailSettings() {
3160
+ return expectEmailSettings(
3161
+ await transport.request(settingsPath(), { method: "GET" }),
3162
+ "Email settings response",
3163
+ errors
3164
+ );
3165
+ },
3166
+ async updateEmailSettings(input) {
3167
+ return expectEmailSettings(
3168
+ await transport.request(settingsPath(), {
3169
+ method: "PUT",
3170
+ body: settingsBody(input)
3171
+ }),
3172
+ "Update email settings response",
3173
+ errors
3174
+ );
3067
3175
  }
3068
3176
  };
3069
3177
  }
@@ -3087,6 +3195,13 @@ function templateBody(appId, input) {
3087
3195
  ...input.textBody === void 0 ? {} : { textBody: input.textBody }
3088
3196
  };
3089
3197
  }
3198
+ function settingsBody(input) {
3199
+ return {
3200
+ ...input.senderIdentityId === void 0 ? {} : { senderIdentityId: input.senderIdentityId },
3201
+ ...input.displayName === void 0 ? {} : { displayName: input.displayName },
3202
+ ...input.replyTo === void 0 ? {} : { replyTo: input.replyTo }
3203
+ };
3204
+ }
3090
3205
 
3091
3206
  // src/modules/publicFunctions.ts
3092
3207
  function createPublicFunctionsModule(transport, errors = defaultSdkCoreErrorFactory) {
package/dist/index.d.cts CHANGED
@@ -596,6 +596,42 @@ interface AppUpdateInput {
596
596
  * rejects `true` while the app inherits the platform login.
597
597
  */
598
598
  passwordLoginEnabled?: boolean;
599
+ /**
600
+ * Where users type the password. Omission preserves the current value. Code Studio rejects
601
+ * `APP_FORM` unless password login is on, in this update or already saved, and turning password
602
+ * login off sets the mode back to `POPUP`.
603
+ */
604
+ passwordLoginMode?: PasswordLoginMode;
605
+ /**
606
+ * Replaces the login theme whole: a field left out is cleared. `null`, or a theme without any
607
+ * field, clears it, and omission preserves it. A field set to `undefined` drops out of the JSON,
608
+ * so a theme whose fields are all `undefined` clears it too. Code Studio rejects a key it does not
609
+ * know, so a misspelled field cannot wipe the theme.
610
+ */
611
+ loginTheme?: Partial<AppLoginTheme> | null;
612
+ }
613
+ /**
614
+ * Where an app user types the password. `POPUP` keeps it on the Mitra origin; `APP_FORM` lets the
615
+ * app draw its own form, so the password passes through app code.
616
+ */
617
+ type PasswordLoginMode = "POPUP" | "APP_FORM";
618
+ /**
619
+ * Theme the Mitra password popup applies. A null or blank field falls back to the app name and the
620
+ * brand defaults. Code Studio checks the rules and rejects a value outside them.
621
+ */
622
+ interface AppLoginTheme {
623
+ /** An https URL with a host, at most 2048 characters. */
624
+ logoUrl: string | null;
625
+ /** `#rgb` or `#rrggbb`. */
626
+ backgroundColor: string | null;
627
+ /** `light`, `dark` or `system`. */
628
+ colorScheme: string | null;
629
+ /** Plain text without `<`, `>` or control characters, at most 80 characters. */
630
+ title: string | null;
631
+ /** Plain text without `<`, `>` or control characters, at most 160 characters. */
632
+ subtitle: string | null;
633
+ /** `auto`, `pt-BR` or `en`. */
634
+ language: string | null;
599
635
  }
600
636
  interface AppDomain {
601
637
  hostname: string;
@@ -621,6 +657,13 @@ interface AppSummary {
621
657
  emailLoginEnabled?: boolean;
622
658
  /** Absent on a Code Studio that predates password login. */
623
659
  passwordLoginEnabled?: boolean;
660
+ /**
661
+ * `POPUP` or `APP_FORM`, as a string so a mode Code Studio adds later does not break the read.
662
+ * Absent on a Code Studio that predates the password login mode.
663
+ */
664
+ passwordLoginMode?: string;
665
+ /** Null when the app has no theme. Absent on a Code Studio that predates the login theme. */
666
+ loginTheme?: AppLoginTheme | null;
624
667
  externalAccessEnabled: boolean;
625
668
  currentVersion: AppVersion | null;
626
669
  createdAt: string;
@@ -645,6 +688,13 @@ interface AppDefinition {
645
688
  emailLoginEnabled?: boolean;
646
689
  /** Absent on a Code Studio that predates password login. */
647
690
  passwordLoginEnabled?: boolean;
691
+ /**
692
+ * `POPUP` or `APP_FORM`, as a string so a mode Code Studio adds later does not break the read.
693
+ * Absent on a Code Studio that predates the password login mode.
694
+ */
695
+ passwordLoginMode?: string;
696
+ /** Null when the app has no theme. Absent on a Code Studio that predates the login theme. */
697
+ loginTheme?: AppLoginTheme | null;
648
698
  externalAccessEnabled: boolean;
649
699
  currentVersion: AppVersion | null;
650
700
  createdAt: string;
@@ -1307,7 +1357,7 @@ interface SendEmailInput {
1307
1357
  * The account emails an app may rewrite with its own token. Messenger sends them from the app's
1308
1358
  * sender settings or the brand, so a template never picks its sender.
1309
1359
  */
1310
- type EmailTemplateType = "SIGN_IN" | "SSO_GUIDANCE" | "APP_USER_INVITED" | "APP_ACCESS_REQUIRED";
1360
+ type EmailTemplateType = "SIGN_IN" | "SSO_GUIDANCE" | "APP_USER_INVITED" | "APP_ACCESS_REQUIRED" | "PASSWORD_RESET" | "PASSWORD_CHANGED" | "ACCOUNT_LOCKED";
1311
1361
  interface EmailTemplate {
1312
1362
  id: string;
1313
1363
  /**
@@ -1358,6 +1408,53 @@ interface EmailTemplateUpsertResult {
1358
1408
  /** The transport or response error of the preview, unchanged, when `preview` is null. */
1359
1409
  previewError?: unknown;
1360
1410
  }
1411
+ /** An address of a person, available as a sender in the app's workspace. */
1412
+ interface EmailSender {
1413
+ id: string;
1414
+ email: string;
1415
+ displayName: string;
1416
+ /**
1417
+ * `PENDING`, `VERIFIED` or `FAILED`. Kept as a string so a status Messenger adds later does not
1418
+ * break the list. Only a `VERIFIED` address signs the app's emails.
1419
+ */
1420
+ status: string;
1421
+ sharedWithCurrentWorkspace: boolean;
1422
+ /** True until the person confirms the 6-digit code Messenger sent to the address. */
1423
+ ownerConfirmationPending: boolean;
1424
+ createdAt: string;
1425
+ updatedAt: string;
1426
+ }
1427
+ interface EmailSenderInput {
1428
+ email: string;
1429
+ /** Name of the address; the app settings may override it in the From header. */
1430
+ displayName: string;
1431
+ }
1432
+ /** The From the app's emails use now, which falls back to the brand while the app sender cannot sign. */
1433
+ interface EffectiveEmailSender {
1434
+ email: string;
1435
+ displayName: string | null;
1436
+ /** `APP_SENDER` or `BRAND_DEFAULT`, as a string for the same reason as `EmailSender.status`. */
1437
+ source: string;
1438
+ /** Why the brand signs: `NO_SETTINGS`, `IDENTITY_NOT_VERIFIED` or `IDENTITY_NOT_SHARED`. */
1439
+ reason: string | null;
1440
+ }
1441
+ interface EmailSettings {
1442
+ appId: string;
1443
+ senderIdentityId: string | null;
1444
+ displayName: string | null;
1445
+ replyTo: string | null;
1446
+ effectiveSender: EffectiveEmailSender;
1447
+ /** True when the app's own templates go out even while the brand signs. */
1448
+ ownTemplateSendsFromBrand: boolean;
1449
+ }
1450
+ /** Replaces the app's settings as a whole: a field left out or null is cleared. */
1451
+ interface EmailSettingsInput {
1452
+ /** An `EmailSender.id` from `listEmailSenders`; without it the app sends from the brand. */
1453
+ senderIdentityId?: string | null;
1454
+ /** Single line, shown in the From header. */
1455
+ displayName?: string | null;
1456
+ replyTo?: string | null;
1457
+ }
1361
1458
  interface AppContext {
1362
1459
  appId: string;
1363
1460
  app: AppDefinition;
@@ -1871,6 +1968,25 @@ interface MessengerModule {
1871
1968
  previewEmailTemplate(type: EmailTemplateType): Promise<EmailTemplatePreview>;
1872
1969
  /** Deletes the current app's version of a template, so the platform text applies again. */
1873
1970
  deleteEmailTemplate(type: EmailTemplateType): Promise<void>;
1971
+ /** Lists the addresses available as senders in the workspace of the token. */
1972
+ listEmailSenders(): Promise<EmailSender[]>;
1973
+ /**
1974
+ * Registers an address in the name of the person in the token and makes it available in the
1975
+ * app's workspace. An address the person already owns comes back as saved, made available too.
1976
+ * Messenger mails a verification link and a 6-digit code to the address.
1977
+ */
1978
+ registerEmailSender(input: EmailSenderInput): Promise<EmailSender>;
1979
+ /**
1980
+ * Mails the AWS link again while AWS has not verified the address, and a new code only while
1981
+ * the person has not confirmed one yet.
1982
+ */
1983
+ resendEmailSenderVerification(senderId: string): Promise<EmailSender>;
1984
+ /** Confirms the 6-digit code the person read in the mailbox of the address. */
1985
+ confirmEmailSender(senderId: string, code: string): Promise<EmailSender>;
1986
+ /** Gets the current app's sender settings and the From its emails use now. */
1987
+ getEmailSettings(): Promise<EmailSettings>;
1988
+ /** Replaces the current app's sender settings; a field left out is cleared. */
1989
+ updateEmailSettings(input: EmailSettingsInput): Promise<EmailSettings>;
1874
1990
  }
1875
1991
  declare function createMessengerModule(transport: Transport, errors?: SdkCoreErrorFactory, getAppId?: () => string | undefined): MessengerModule;
1876
1992
 
@@ -2264,4 +2380,4 @@ declare function expectPage<T extends object>(value: unknown, context: string, e
2264
2380
  declare function expectLegacyPage<T extends object>(value: unknown, context: string, errors?: SdkCoreErrorFactory, validateItem?: (value: unknown, context: string, errors: SdkCoreErrorFactory) => T): LegacyPage<T>;
2265
2381
  declare function expectEmpty(value: unknown, context: string, errors?: SdkCoreErrorFactory): void;
2266
2382
 
2267
- export { API_KEY_EXCHANGE_PATH, 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 AgentInput, type AgentMessage, type AgentModel, type AgentProviderUsage, type AgentQueueItem, type AgentSendAndWaitOptions, type AgentSendOptions, type AgentSessionTransport, 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 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 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 };
2383
+ export { API_KEY_EXCHANGE_PATH, 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 AgentInput, type AgentMessage, type AgentModel, type AgentProviderUsage, type AgentQueueItem, type AgentSendAndWaitOptions, type AgentSendOptions, type AgentSessionTransport, 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 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 AppLoginTheme, 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 PasswordLoginMode, 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 };
package/dist/index.d.ts CHANGED
@@ -596,6 +596,42 @@ interface AppUpdateInput {
596
596
  * rejects `true` while the app inherits the platform login.
597
597
  */
598
598
  passwordLoginEnabled?: boolean;
599
+ /**
600
+ * Where users type the password. Omission preserves the current value. Code Studio rejects
601
+ * `APP_FORM` unless password login is on, in this update or already saved, and turning password
602
+ * login off sets the mode back to `POPUP`.
603
+ */
604
+ passwordLoginMode?: PasswordLoginMode;
605
+ /**
606
+ * Replaces the login theme whole: a field left out is cleared. `null`, or a theme without any
607
+ * field, clears it, and omission preserves it. A field set to `undefined` drops out of the JSON,
608
+ * so a theme whose fields are all `undefined` clears it too. Code Studio rejects a key it does not
609
+ * know, so a misspelled field cannot wipe the theme.
610
+ */
611
+ loginTheme?: Partial<AppLoginTheme> | null;
612
+ }
613
+ /**
614
+ * Where an app user types the password. `POPUP` keeps it on the Mitra origin; `APP_FORM` lets the
615
+ * app draw its own form, so the password passes through app code.
616
+ */
617
+ type PasswordLoginMode = "POPUP" | "APP_FORM";
618
+ /**
619
+ * Theme the Mitra password popup applies. A null or blank field falls back to the app name and the
620
+ * brand defaults. Code Studio checks the rules and rejects a value outside them.
621
+ */
622
+ interface AppLoginTheme {
623
+ /** An https URL with a host, at most 2048 characters. */
624
+ logoUrl: string | null;
625
+ /** `#rgb` or `#rrggbb`. */
626
+ backgroundColor: string | null;
627
+ /** `light`, `dark` or `system`. */
628
+ colorScheme: string | null;
629
+ /** Plain text without `<`, `>` or control characters, at most 80 characters. */
630
+ title: string | null;
631
+ /** Plain text without `<`, `>` or control characters, at most 160 characters. */
632
+ subtitle: string | null;
633
+ /** `auto`, `pt-BR` or `en`. */
634
+ language: string | null;
599
635
  }
600
636
  interface AppDomain {
601
637
  hostname: string;
@@ -621,6 +657,13 @@ interface AppSummary {
621
657
  emailLoginEnabled?: boolean;
622
658
  /** Absent on a Code Studio that predates password login. */
623
659
  passwordLoginEnabled?: boolean;
660
+ /**
661
+ * `POPUP` or `APP_FORM`, as a string so a mode Code Studio adds later does not break the read.
662
+ * Absent on a Code Studio that predates the password login mode.
663
+ */
664
+ passwordLoginMode?: string;
665
+ /** Null when the app has no theme. Absent on a Code Studio that predates the login theme. */
666
+ loginTheme?: AppLoginTheme | null;
624
667
  externalAccessEnabled: boolean;
625
668
  currentVersion: AppVersion | null;
626
669
  createdAt: string;
@@ -645,6 +688,13 @@ interface AppDefinition {
645
688
  emailLoginEnabled?: boolean;
646
689
  /** Absent on a Code Studio that predates password login. */
647
690
  passwordLoginEnabled?: boolean;
691
+ /**
692
+ * `POPUP` or `APP_FORM`, as a string so a mode Code Studio adds later does not break the read.
693
+ * Absent on a Code Studio that predates the password login mode.
694
+ */
695
+ passwordLoginMode?: string;
696
+ /** Null when the app has no theme. Absent on a Code Studio that predates the login theme. */
697
+ loginTheme?: AppLoginTheme | null;
648
698
  externalAccessEnabled: boolean;
649
699
  currentVersion: AppVersion | null;
650
700
  createdAt: string;
@@ -1307,7 +1357,7 @@ interface SendEmailInput {
1307
1357
  * The account emails an app may rewrite with its own token. Messenger sends them from the app's
1308
1358
  * sender settings or the brand, so a template never picks its sender.
1309
1359
  */
1310
- type EmailTemplateType = "SIGN_IN" | "SSO_GUIDANCE" | "APP_USER_INVITED" | "APP_ACCESS_REQUIRED";
1360
+ type EmailTemplateType = "SIGN_IN" | "SSO_GUIDANCE" | "APP_USER_INVITED" | "APP_ACCESS_REQUIRED" | "PASSWORD_RESET" | "PASSWORD_CHANGED" | "ACCOUNT_LOCKED";
1311
1361
  interface EmailTemplate {
1312
1362
  id: string;
1313
1363
  /**
@@ -1358,6 +1408,53 @@ interface EmailTemplateUpsertResult {
1358
1408
  /** The transport or response error of the preview, unchanged, when `preview` is null. */
1359
1409
  previewError?: unknown;
1360
1410
  }
1411
+ /** An address of a person, available as a sender in the app's workspace. */
1412
+ interface EmailSender {
1413
+ id: string;
1414
+ email: string;
1415
+ displayName: string;
1416
+ /**
1417
+ * `PENDING`, `VERIFIED` or `FAILED`. Kept as a string so a status Messenger adds later does not
1418
+ * break the list. Only a `VERIFIED` address signs the app's emails.
1419
+ */
1420
+ status: string;
1421
+ sharedWithCurrentWorkspace: boolean;
1422
+ /** True until the person confirms the 6-digit code Messenger sent to the address. */
1423
+ ownerConfirmationPending: boolean;
1424
+ createdAt: string;
1425
+ updatedAt: string;
1426
+ }
1427
+ interface EmailSenderInput {
1428
+ email: string;
1429
+ /** Name of the address; the app settings may override it in the From header. */
1430
+ displayName: string;
1431
+ }
1432
+ /** The From the app's emails use now, which falls back to the brand while the app sender cannot sign. */
1433
+ interface EffectiveEmailSender {
1434
+ email: string;
1435
+ displayName: string | null;
1436
+ /** `APP_SENDER` or `BRAND_DEFAULT`, as a string for the same reason as `EmailSender.status`. */
1437
+ source: string;
1438
+ /** Why the brand signs: `NO_SETTINGS`, `IDENTITY_NOT_VERIFIED` or `IDENTITY_NOT_SHARED`. */
1439
+ reason: string | null;
1440
+ }
1441
+ interface EmailSettings {
1442
+ appId: string;
1443
+ senderIdentityId: string | null;
1444
+ displayName: string | null;
1445
+ replyTo: string | null;
1446
+ effectiveSender: EffectiveEmailSender;
1447
+ /** True when the app's own templates go out even while the brand signs. */
1448
+ ownTemplateSendsFromBrand: boolean;
1449
+ }
1450
+ /** Replaces the app's settings as a whole: a field left out or null is cleared. */
1451
+ interface EmailSettingsInput {
1452
+ /** An `EmailSender.id` from `listEmailSenders`; without it the app sends from the brand. */
1453
+ senderIdentityId?: string | null;
1454
+ /** Single line, shown in the From header. */
1455
+ displayName?: string | null;
1456
+ replyTo?: string | null;
1457
+ }
1361
1458
  interface AppContext {
1362
1459
  appId: string;
1363
1460
  app: AppDefinition;
@@ -1871,6 +1968,25 @@ interface MessengerModule {
1871
1968
  previewEmailTemplate(type: EmailTemplateType): Promise<EmailTemplatePreview>;
1872
1969
  /** Deletes the current app's version of a template, so the platform text applies again. */
1873
1970
  deleteEmailTemplate(type: EmailTemplateType): Promise<void>;
1971
+ /** Lists the addresses available as senders in the workspace of the token. */
1972
+ listEmailSenders(): Promise<EmailSender[]>;
1973
+ /**
1974
+ * Registers an address in the name of the person in the token and makes it available in the
1975
+ * app's workspace. An address the person already owns comes back as saved, made available too.
1976
+ * Messenger mails a verification link and a 6-digit code to the address.
1977
+ */
1978
+ registerEmailSender(input: EmailSenderInput): Promise<EmailSender>;
1979
+ /**
1980
+ * Mails the AWS link again while AWS has not verified the address, and a new code only while
1981
+ * the person has not confirmed one yet.
1982
+ */
1983
+ resendEmailSenderVerification(senderId: string): Promise<EmailSender>;
1984
+ /** Confirms the 6-digit code the person read in the mailbox of the address. */
1985
+ confirmEmailSender(senderId: string, code: string): Promise<EmailSender>;
1986
+ /** Gets the current app's sender settings and the From its emails use now. */
1987
+ getEmailSettings(): Promise<EmailSettings>;
1988
+ /** Replaces the current app's sender settings; a field left out is cleared. */
1989
+ updateEmailSettings(input: EmailSettingsInput): Promise<EmailSettings>;
1874
1990
  }
1875
1991
  declare function createMessengerModule(transport: Transport, errors?: SdkCoreErrorFactory, getAppId?: () => string | undefined): MessengerModule;
1876
1992
 
@@ -2264,4 +2380,4 @@ declare function expectPage<T extends object>(value: unknown, context: string, e
2264
2380
  declare function expectLegacyPage<T extends object>(value: unknown, context: string, errors?: SdkCoreErrorFactory, validateItem?: (value: unknown, context: string, errors: SdkCoreErrorFactory) => T): LegacyPage<T>;
2265
2381
  declare function expectEmpty(value: unknown, context: string, errors?: SdkCoreErrorFactory): void;
2266
2382
 
2267
- export { API_KEY_EXCHANGE_PATH, 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 AgentInput, type AgentMessage, type AgentModel, type AgentProviderUsage, type AgentQueueItem, type AgentSendAndWaitOptions, type AgentSendOptions, type AgentSessionTransport, 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 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 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 };
2383
+ export { API_KEY_EXCHANGE_PATH, 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 AgentInput, type AgentMessage, type AgentModel, type AgentProviderUsage, type AgentQueueItem, type AgentSendAndWaitOptions, type AgentSendOptions, type AgentSessionTransport, 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 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 AppLoginTheme, 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 PasswordLoginMode, 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 };