mitra-interactions-sdk 1.0.58-beta.6 → 1.0.58-beta.7
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.mts +40 -2
- package/dist/index.d.ts +40 -2
- package/dist/index.js +22 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -540,6 +540,30 @@ interface GetAgentChatsOptions {
|
|
|
540
540
|
/** Sobrescreve o projectId configurado globalmente. */
|
|
541
541
|
projectId?: number;
|
|
542
542
|
}
|
|
543
|
+
type ChatManageAction = 'list' | 'rename' | 'delete';
|
|
544
|
+
interface ManageAgentChatListOptions {
|
|
545
|
+
action: 'list';
|
|
546
|
+
/** Sobrescreve o projectId configurado globalmente. */
|
|
547
|
+
projectId?: number;
|
|
548
|
+
}
|
|
549
|
+
interface ManageAgentChatRenameOptions {
|
|
550
|
+
action: 'rename';
|
|
551
|
+
taskId: string;
|
|
552
|
+
name: string;
|
|
553
|
+
}
|
|
554
|
+
interface ManageAgentChatDeleteOptions {
|
|
555
|
+
action: 'delete';
|
|
556
|
+
taskId: string;
|
|
557
|
+
}
|
|
558
|
+
type ManageAgentChatOptions = ManageAgentChatListOptions | ManageAgentChatRenameOptions | ManageAgentChatDeleteOptions;
|
|
559
|
+
interface RenameAgentChatResult {
|
|
560
|
+
taskId: string;
|
|
561
|
+
name: string;
|
|
562
|
+
}
|
|
563
|
+
interface DeleteAgentChatResult {
|
|
564
|
+
taskId: string;
|
|
565
|
+
deleted: boolean;
|
|
566
|
+
}
|
|
543
567
|
interface GetAgentTaskCreateOptions {
|
|
544
568
|
/** Cria chat novo. taskId é preenchido depois do primeiro send(). */
|
|
545
569
|
create: true;
|
|
@@ -851,6 +875,7 @@ interface MitraInstance {
|
|
|
851
875
|
resetPassword(options: ResetPasswordOptions): Promise<Record<string, unknown>>;
|
|
852
876
|
getAgentChats(options?: GetAgentChatsOptions): Promise<AgentChat[]>;
|
|
853
877
|
getAgentTask(options: GetAgentTaskOptions): AgentTaskSession;
|
|
878
|
+
manageAgentChat(options: ManageAgentChatOptions): Promise<unknown>;
|
|
854
879
|
manageAgentCredential(options: ManageAgentCredentialOptions | ConnectAgentCredentialOptions): Promise<unknown>;
|
|
855
880
|
openChat(): void;
|
|
856
881
|
closeChat(): void;
|
|
@@ -995,7 +1020,20 @@ declare function resetPasswordMitra(options: ResetPasswordOptions): Promise<Reco
|
|
|
995
1020
|
*/
|
|
996
1021
|
|
|
997
1022
|
/**
|
|
998
|
-
*
|
|
1023
|
+
* Gerencia os chats do user (coleção) — espelha `manageAgentCredentialMitra`.
|
|
1024
|
+
* Operações stateless: listar, renomear, deletar.
|
|
1025
|
+
*
|
|
1026
|
+
* @example
|
|
1027
|
+
* const chats = await manageAgentChatMitra({ action: 'list' });
|
|
1028
|
+
* await manageAgentChatMitra({ action: 'rename', taskId, name: 'Novo nome' });
|
|
1029
|
+
* await manageAgentChatMitra({ action: 'delete', taskId });
|
|
1030
|
+
*/
|
|
1031
|
+
declare function manageAgentChatMitra(options: ManageAgentChatListOptions): Promise<AgentChat[]>;
|
|
1032
|
+
declare function manageAgentChatMitra(options: ManageAgentChatRenameOptions): Promise<RenameAgentChatResult>;
|
|
1033
|
+
declare function manageAgentChatMitra(options: ManageAgentChatDeleteOptions): Promise<DeleteAgentChatResult>;
|
|
1034
|
+
/**
|
|
1035
|
+
* Lista chats do user para um projeto. Alias fino de
|
|
1036
|
+
* manageAgentChatMitra({ action: 'list' }).
|
|
999
1037
|
*/
|
|
1000
1038
|
declare function getAgentChatsMitra(options?: GetAgentChatsOptions): Promise<AgentChat[]>;
|
|
1001
1039
|
/**
|
|
@@ -1218,4 +1256,4 @@ declare function setProfileScreensMitra(options: SetProfileScreensOptions): Prom
|
|
|
1218
1256
|
*/
|
|
1219
1257
|
declare function setProfileServerFunctionsMitra(options: SetProfileServerFunctionsOptions): Promise<SetProfilePermissionResponse>;
|
|
1220
1258
|
|
|
1221
|
-
export { type AgentApiKeyTarget, type AgentAuthMeta, type AgentChat, type AgentDeltaEvent, type AgentErrorEvent, type AgentMessage, type AgentModelGroup, type AgentModelOption, type AgentProviderListItem, type AgentQueueChangeEvent, type AgentStatusChangeEvent, type AgentSubscriptionAccount, type AgentSubscriptionTarget, type AgentTaskCreatedEvent, type AgentTaskEventMap, type AgentTaskEventName, type AgentTaskSession, type AgentTaskStatus, type AgentToolEvent, type AgentTurnEndEvent, type AgentType, type AuthAgentCredentialOptions, type AuthAgentCredentialResult, type AuthClaudeResult, type AuthCodexResult, type AuthMethod, type CallIntegrationOptions, type CallIntegrationResponse, type ConnectAgentCredentialOptions, type ConnectAgentSubscriptionResult, type ConnectableSubscriptionTarget, type CreateProfileOptions, type CreateProfileResponse, type CreateRecordOptions, type CreateRecordsBatchOptions, type CredentialAccessType, type CredentialAction, type CredentialTarget, type DeleteProfileOptions, type DeleteProfileResponse, type DeleteRecordOptions, type EmailLoginOptions, type EmailResendCodeOptions, type EmailSignupOptions, type EmailVerifyCodeOptions, type ExecuteDataLoaderOptions, type ExecuteDataLoaderResponse, type ExecuteDbActionOptions, type ExecuteDbActionResponse, type ExecutePublicServerFunctionAsyncResponse, type ExecutePublicServerFunctionOptions, type ExecutePublicServerFunctionResponse, type ExecuteServerFunctionAsyncOptions, type ExecuteServerFunctionAsyncResponse, type ExecuteServerFunctionOptions, type ExecuteServerFunctionResponse, type GetAgentChatsOptions, type GetAgentTaskCreateOptions, type GetAgentTaskOpenOptions, type GetAgentTaskOptions, type GetProfileDetailsOptions, type GetProfileDetailsResponse, type GetPublicServerFunctionExecutionOptions, type GetPublicServerFunctionExecutionResponse, type GetRecordOptions, type GetVariableOptions, type GetVariableResponse, type IntegrationResponse, type ListAgentModelsResult, type ListAgentProvidersResult, type ListIntegrationsOptions, type ListProfilesOptions, type ListProfilesResponse, type ListRecordsOptions, type ListRecordsResponse, type ListVariablesOptions, type ListVariablesResponse, type LoginOptions, type LoginResponse, type ManageAgentCredentialOptions, type ManageAgentCredentialResult, type MitraConfig, type MitraInstance, type PatchRecordOptions, type ProfileTableRef, type QueuedItem, type ResetPasswordOptions, type RunActionOptions, type RunActionResponse, type SendOptions, type SendPasswordResetCodeOptions, type SetFileStatusOptions, type SetFileStatusResponse, type SetProfileActionsOptions, type SetProfileDmlTablesOptions, type SetProfilePermissionResponse, type SetProfileScreensOptions, type SetProfileSelectTablesOptions, type SetProfileServerFunctionsOptions, type SetProfileUsersOptions, type SetVariableOptions, type SetVariableResponse, type StopServerFunctionExecutionOptions, type StopServerFunctionExecutionResponse, type UpdateProfileOptions, type UpdateProfileResponse, type UpdateRecordOptions, type UploadFileOptions, type UploadFileResponse, type ValidatePasswordResetCodeOptions, callIntegrationMitra, closeChatMitra, configureSdkMitra, createMitraInstance, createProfileMitra, createRecordMitra, createRecordsBatchMitra, deleteProfileMitra, deleteRecordMitra, emailLoginMitra, emailResendCodeMitra, emailSignupMitra, emailVerifyCodeMitra, executeDataLoaderMitra, executeDbActionMitra, executePublicServerFunctionAsyncMitra, executePublicServerFunctionMitra, executeServerFunctionAsyncMitra, executeServerFunctionMitra, getAgentChatsMitra, getAgentTaskMitra, getConfig, getProfileDetailsMitra, getPublicServerFunctionExecutionMitra, getRecordMitra, getVariableMitra, listIntegrationsMitra, listProfilesMitra, listRecordsMitra, listVariablesMitra, loginMitra, loginWithEmailMitra, loginWithGoogleMitra, loginWithMicrosoftMitra, manageAgentCredentialMitra, openChatMitra, patchRecordMitra, refreshTokenSilently, resetPasswordMitra, resolveProjectId, runActionMitra, sendPasswordResetCodeMitra, setFileStatusMitra, setProfileActionsMitra, setProfileDmlTablesMitra, setProfileScreensMitra, setProfileSelectTablesMitra, setProfileServerFunctionsMitra, setProfileUsersMitra, setVariableMitra, stopServerFunctionExecutionMitra, updateProfileMitra, updateRecordMitra, uploadFileLoadableMitra, uploadFilePublicMitra, validatePasswordResetCodeMitra };
|
|
1259
|
+
export { type AgentApiKeyTarget, type AgentAuthMeta, type AgentChat, type AgentDeltaEvent, type AgentErrorEvent, type AgentMessage, type AgentModelGroup, type AgentModelOption, type AgentProviderListItem, type AgentQueueChangeEvent, type AgentStatusChangeEvent, type AgentSubscriptionAccount, type AgentSubscriptionTarget, type AgentTaskCreatedEvent, type AgentTaskEventMap, type AgentTaskEventName, type AgentTaskSession, type AgentTaskStatus, type AgentToolEvent, type AgentTurnEndEvent, type AgentType, type AuthAgentCredentialOptions, type AuthAgentCredentialResult, type AuthClaudeResult, type AuthCodexResult, type AuthMethod, type CallIntegrationOptions, type CallIntegrationResponse, type ChatManageAction, type ConnectAgentCredentialOptions, type ConnectAgentSubscriptionResult, type ConnectableSubscriptionTarget, type CreateProfileOptions, type CreateProfileResponse, type CreateRecordOptions, type CreateRecordsBatchOptions, type CredentialAccessType, type CredentialAction, type CredentialTarget, type DeleteAgentChatResult, type DeleteProfileOptions, type DeleteProfileResponse, type DeleteRecordOptions, type EmailLoginOptions, type EmailResendCodeOptions, type EmailSignupOptions, type EmailVerifyCodeOptions, type ExecuteDataLoaderOptions, type ExecuteDataLoaderResponse, type ExecuteDbActionOptions, type ExecuteDbActionResponse, type ExecutePublicServerFunctionAsyncResponse, type ExecutePublicServerFunctionOptions, type ExecutePublicServerFunctionResponse, type ExecuteServerFunctionAsyncOptions, type ExecuteServerFunctionAsyncResponse, type ExecuteServerFunctionOptions, type ExecuteServerFunctionResponse, type GetAgentChatsOptions, type GetAgentTaskCreateOptions, type GetAgentTaskOpenOptions, type GetAgentTaskOptions, type GetProfileDetailsOptions, type GetProfileDetailsResponse, type GetPublicServerFunctionExecutionOptions, type GetPublicServerFunctionExecutionResponse, type GetRecordOptions, type GetVariableOptions, type GetVariableResponse, type IntegrationResponse, type ListAgentModelsResult, type ListAgentProvidersResult, type ListIntegrationsOptions, type ListProfilesOptions, type ListProfilesResponse, type ListRecordsOptions, type ListRecordsResponse, type ListVariablesOptions, type ListVariablesResponse, type LoginOptions, type LoginResponse, type ManageAgentChatDeleteOptions, type ManageAgentChatListOptions, type ManageAgentChatOptions, type ManageAgentChatRenameOptions, type ManageAgentCredentialOptions, type ManageAgentCredentialResult, type MitraConfig, type MitraInstance, type PatchRecordOptions, type ProfileTableRef, type QueuedItem, type RenameAgentChatResult, type ResetPasswordOptions, type RunActionOptions, type RunActionResponse, type SendOptions, type SendPasswordResetCodeOptions, type SetFileStatusOptions, type SetFileStatusResponse, type SetProfileActionsOptions, type SetProfileDmlTablesOptions, type SetProfilePermissionResponse, type SetProfileScreensOptions, type SetProfileSelectTablesOptions, type SetProfileServerFunctionsOptions, type SetProfileUsersOptions, type SetVariableOptions, type SetVariableResponse, type StopServerFunctionExecutionOptions, type StopServerFunctionExecutionResponse, type UpdateProfileOptions, type UpdateProfileResponse, type UpdateRecordOptions, type UploadFileOptions, type UploadFileResponse, type ValidatePasswordResetCodeOptions, callIntegrationMitra, closeChatMitra, configureSdkMitra, createMitraInstance, createProfileMitra, createRecordMitra, createRecordsBatchMitra, deleteProfileMitra, deleteRecordMitra, emailLoginMitra, emailResendCodeMitra, emailSignupMitra, emailVerifyCodeMitra, executeDataLoaderMitra, executeDbActionMitra, executePublicServerFunctionAsyncMitra, executePublicServerFunctionMitra, executeServerFunctionAsyncMitra, executeServerFunctionMitra, getAgentChatsMitra, getAgentTaskMitra, getConfig, getProfileDetailsMitra, getPublicServerFunctionExecutionMitra, getRecordMitra, getVariableMitra, listIntegrationsMitra, listProfilesMitra, listRecordsMitra, listVariablesMitra, loginMitra, loginWithEmailMitra, loginWithGoogleMitra, loginWithMicrosoftMitra, manageAgentChatMitra, manageAgentCredentialMitra, openChatMitra, patchRecordMitra, refreshTokenSilently, resetPasswordMitra, resolveProjectId, runActionMitra, sendPasswordResetCodeMitra, setFileStatusMitra, setProfileActionsMitra, setProfileDmlTablesMitra, setProfileScreensMitra, setProfileSelectTablesMitra, setProfileServerFunctionsMitra, setProfileUsersMitra, setVariableMitra, stopServerFunctionExecutionMitra, updateProfileMitra, updateRecordMitra, uploadFileLoadableMitra, uploadFilePublicMitra, validatePasswordResetCodeMitra };
|
package/dist/index.d.ts
CHANGED
|
@@ -540,6 +540,30 @@ interface GetAgentChatsOptions {
|
|
|
540
540
|
/** Sobrescreve o projectId configurado globalmente. */
|
|
541
541
|
projectId?: number;
|
|
542
542
|
}
|
|
543
|
+
type ChatManageAction = 'list' | 'rename' | 'delete';
|
|
544
|
+
interface ManageAgentChatListOptions {
|
|
545
|
+
action: 'list';
|
|
546
|
+
/** Sobrescreve o projectId configurado globalmente. */
|
|
547
|
+
projectId?: number;
|
|
548
|
+
}
|
|
549
|
+
interface ManageAgentChatRenameOptions {
|
|
550
|
+
action: 'rename';
|
|
551
|
+
taskId: string;
|
|
552
|
+
name: string;
|
|
553
|
+
}
|
|
554
|
+
interface ManageAgentChatDeleteOptions {
|
|
555
|
+
action: 'delete';
|
|
556
|
+
taskId: string;
|
|
557
|
+
}
|
|
558
|
+
type ManageAgentChatOptions = ManageAgentChatListOptions | ManageAgentChatRenameOptions | ManageAgentChatDeleteOptions;
|
|
559
|
+
interface RenameAgentChatResult {
|
|
560
|
+
taskId: string;
|
|
561
|
+
name: string;
|
|
562
|
+
}
|
|
563
|
+
interface DeleteAgentChatResult {
|
|
564
|
+
taskId: string;
|
|
565
|
+
deleted: boolean;
|
|
566
|
+
}
|
|
543
567
|
interface GetAgentTaskCreateOptions {
|
|
544
568
|
/** Cria chat novo. taskId é preenchido depois do primeiro send(). */
|
|
545
569
|
create: true;
|
|
@@ -851,6 +875,7 @@ interface MitraInstance {
|
|
|
851
875
|
resetPassword(options: ResetPasswordOptions): Promise<Record<string, unknown>>;
|
|
852
876
|
getAgentChats(options?: GetAgentChatsOptions): Promise<AgentChat[]>;
|
|
853
877
|
getAgentTask(options: GetAgentTaskOptions): AgentTaskSession;
|
|
878
|
+
manageAgentChat(options: ManageAgentChatOptions): Promise<unknown>;
|
|
854
879
|
manageAgentCredential(options: ManageAgentCredentialOptions | ConnectAgentCredentialOptions): Promise<unknown>;
|
|
855
880
|
openChat(): void;
|
|
856
881
|
closeChat(): void;
|
|
@@ -995,7 +1020,20 @@ declare function resetPasswordMitra(options: ResetPasswordOptions): Promise<Reco
|
|
|
995
1020
|
*/
|
|
996
1021
|
|
|
997
1022
|
/**
|
|
998
|
-
*
|
|
1023
|
+
* Gerencia os chats do user (coleção) — espelha `manageAgentCredentialMitra`.
|
|
1024
|
+
* Operações stateless: listar, renomear, deletar.
|
|
1025
|
+
*
|
|
1026
|
+
* @example
|
|
1027
|
+
* const chats = await manageAgentChatMitra({ action: 'list' });
|
|
1028
|
+
* await manageAgentChatMitra({ action: 'rename', taskId, name: 'Novo nome' });
|
|
1029
|
+
* await manageAgentChatMitra({ action: 'delete', taskId });
|
|
1030
|
+
*/
|
|
1031
|
+
declare function manageAgentChatMitra(options: ManageAgentChatListOptions): Promise<AgentChat[]>;
|
|
1032
|
+
declare function manageAgentChatMitra(options: ManageAgentChatRenameOptions): Promise<RenameAgentChatResult>;
|
|
1033
|
+
declare function manageAgentChatMitra(options: ManageAgentChatDeleteOptions): Promise<DeleteAgentChatResult>;
|
|
1034
|
+
/**
|
|
1035
|
+
* Lista chats do user para um projeto. Alias fino de
|
|
1036
|
+
* manageAgentChatMitra({ action: 'list' }).
|
|
999
1037
|
*/
|
|
1000
1038
|
declare function getAgentChatsMitra(options?: GetAgentChatsOptions): Promise<AgentChat[]>;
|
|
1001
1039
|
/**
|
|
@@ -1218,4 +1256,4 @@ declare function setProfileScreensMitra(options: SetProfileScreensOptions): Prom
|
|
|
1218
1256
|
*/
|
|
1219
1257
|
declare function setProfileServerFunctionsMitra(options: SetProfileServerFunctionsOptions): Promise<SetProfilePermissionResponse>;
|
|
1220
1258
|
|
|
1221
|
-
export { type AgentApiKeyTarget, type AgentAuthMeta, type AgentChat, type AgentDeltaEvent, type AgentErrorEvent, type AgentMessage, type AgentModelGroup, type AgentModelOption, type AgentProviderListItem, type AgentQueueChangeEvent, type AgentStatusChangeEvent, type AgentSubscriptionAccount, type AgentSubscriptionTarget, type AgentTaskCreatedEvent, type AgentTaskEventMap, type AgentTaskEventName, type AgentTaskSession, type AgentTaskStatus, type AgentToolEvent, type AgentTurnEndEvent, type AgentType, type AuthAgentCredentialOptions, type AuthAgentCredentialResult, type AuthClaudeResult, type AuthCodexResult, type AuthMethod, type CallIntegrationOptions, type CallIntegrationResponse, type ConnectAgentCredentialOptions, type ConnectAgentSubscriptionResult, type ConnectableSubscriptionTarget, type CreateProfileOptions, type CreateProfileResponse, type CreateRecordOptions, type CreateRecordsBatchOptions, type CredentialAccessType, type CredentialAction, type CredentialTarget, type DeleteProfileOptions, type DeleteProfileResponse, type DeleteRecordOptions, type EmailLoginOptions, type EmailResendCodeOptions, type EmailSignupOptions, type EmailVerifyCodeOptions, type ExecuteDataLoaderOptions, type ExecuteDataLoaderResponse, type ExecuteDbActionOptions, type ExecuteDbActionResponse, type ExecutePublicServerFunctionAsyncResponse, type ExecutePublicServerFunctionOptions, type ExecutePublicServerFunctionResponse, type ExecuteServerFunctionAsyncOptions, type ExecuteServerFunctionAsyncResponse, type ExecuteServerFunctionOptions, type ExecuteServerFunctionResponse, type GetAgentChatsOptions, type GetAgentTaskCreateOptions, type GetAgentTaskOpenOptions, type GetAgentTaskOptions, type GetProfileDetailsOptions, type GetProfileDetailsResponse, type GetPublicServerFunctionExecutionOptions, type GetPublicServerFunctionExecutionResponse, type GetRecordOptions, type GetVariableOptions, type GetVariableResponse, type IntegrationResponse, type ListAgentModelsResult, type ListAgentProvidersResult, type ListIntegrationsOptions, type ListProfilesOptions, type ListProfilesResponse, type ListRecordsOptions, type ListRecordsResponse, type ListVariablesOptions, type ListVariablesResponse, type LoginOptions, type LoginResponse, type ManageAgentCredentialOptions, type ManageAgentCredentialResult, type MitraConfig, type MitraInstance, type PatchRecordOptions, type ProfileTableRef, type QueuedItem, type ResetPasswordOptions, type RunActionOptions, type RunActionResponse, type SendOptions, type SendPasswordResetCodeOptions, type SetFileStatusOptions, type SetFileStatusResponse, type SetProfileActionsOptions, type SetProfileDmlTablesOptions, type SetProfilePermissionResponse, type SetProfileScreensOptions, type SetProfileSelectTablesOptions, type SetProfileServerFunctionsOptions, type SetProfileUsersOptions, type SetVariableOptions, type SetVariableResponse, type StopServerFunctionExecutionOptions, type StopServerFunctionExecutionResponse, type UpdateProfileOptions, type UpdateProfileResponse, type UpdateRecordOptions, type UploadFileOptions, type UploadFileResponse, type ValidatePasswordResetCodeOptions, callIntegrationMitra, closeChatMitra, configureSdkMitra, createMitraInstance, createProfileMitra, createRecordMitra, createRecordsBatchMitra, deleteProfileMitra, deleteRecordMitra, emailLoginMitra, emailResendCodeMitra, emailSignupMitra, emailVerifyCodeMitra, executeDataLoaderMitra, executeDbActionMitra, executePublicServerFunctionAsyncMitra, executePublicServerFunctionMitra, executeServerFunctionAsyncMitra, executeServerFunctionMitra, getAgentChatsMitra, getAgentTaskMitra, getConfig, getProfileDetailsMitra, getPublicServerFunctionExecutionMitra, getRecordMitra, getVariableMitra, listIntegrationsMitra, listProfilesMitra, listRecordsMitra, listVariablesMitra, loginMitra, loginWithEmailMitra, loginWithGoogleMitra, loginWithMicrosoftMitra, manageAgentCredentialMitra, openChatMitra, patchRecordMitra, refreshTokenSilently, resetPasswordMitra, resolveProjectId, runActionMitra, sendPasswordResetCodeMitra, setFileStatusMitra, setProfileActionsMitra, setProfileDmlTablesMitra, setProfileScreensMitra, setProfileSelectTablesMitra, setProfileServerFunctionsMitra, setProfileUsersMitra, setVariableMitra, stopServerFunctionExecutionMitra, updateProfileMitra, updateRecordMitra, uploadFileLoadableMitra, uploadFilePublicMitra, validatePasswordResetCodeMitra };
|
|
1259
|
+
export { type AgentApiKeyTarget, type AgentAuthMeta, type AgentChat, type AgentDeltaEvent, type AgentErrorEvent, type AgentMessage, type AgentModelGroup, type AgentModelOption, type AgentProviderListItem, type AgentQueueChangeEvent, type AgentStatusChangeEvent, type AgentSubscriptionAccount, type AgentSubscriptionTarget, type AgentTaskCreatedEvent, type AgentTaskEventMap, type AgentTaskEventName, type AgentTaskSession, type AgentTaskStatus, type AgentToolEvent, type AgentTurnEndEvent, type AgentType, type AuthAgentCredentialOptions, type AuthAgentCredentialResult, type AuthClaudeResult, type AuthCodexResult, type AuthMethod, type CallIntegrationOptions, type CallIntegrationResponse, type ChatManageAction, type ConnectAgentCredentialOptions, type ConnectAgentSubscriptionResult, type ConnectableSubscriptionTarget, type CreateProfileOptions, type CreateProfileResponse, type CreateRecordOptions, type CreateRecordsBatchOptions, type CredentialAccessType, type CredentialAction, type CredentialTarget, type DeleteAgentChatResult, type DeleteProfileOptions, type DeleteProfileResponse, type DeleteRecordOptions, type EmailLoginOptions, type EmailResendCodeOptions, type EmailSignupOptions, type EmailVerifyCodeOptions, type ExecuteDataLoaderOptions, type ExecuteDataLoaderResponse, type ExecuteDbActionOptions, type ExecuteDbActionResponse, type ExecutePublicServerFunctionAsyncResponse, type ExecutePublicServerFunctionOptions, type ExecutePublicServerFunctionResponse, type ExecuteServerFunctionAsyncOptions, type ExecuteServerFunctionAsyncResponse, type ExecuteServerFunctionOptions, type ExecuteServerFunctionResponse, type GetAgentChatsOptions, type GetAgentTaskCreateOptions, type GetAgentTaskOpenOptions, type GetAgentTaskOptions, type GetProfileDetailsOptions, type GetProfileDetailsResponse, type GetPublicServerFunctionExecutionOptions, type GetPublicServerFunctionExecutionResponse, type GetRecordOptions, type GetVariableOptions, type GetVariableResponse, type IntegrationResponse, type ListAgentModelsResult, type ListAgentProvidersResult, type ListIntegrationsOptions, type ListProfilesOptions, type ListProfilesResponse, type ListRecordsOptions, type ListRecordsResponse, type ListVariablesOptions, type ListVariablesResponse, type LoginOptions, type LoginResponse, type ManageAgentChatDeleteOptions, type ManageAgentChatListOptions, type ManageAgentChatOptions, type ManageAgentChatRenameOptions, type ManageAgentCredentialOptions, type ManageAgentCredentialResult, type MitraConfig, type MitraInstance, type PatchRecordOptions, type ProfileTableRef, type QueuedItem, type RenameAgentChatResult, type ResetPasswordOptions, type RunActionOptions, type RunActionResponse, type SendOptions, type SendPasswordResetCodeOptions, type SetFileStatusOptions, type SetFileStatusResponse, type SetProfileActionsOptions, type SetProfileDmlTablesOptions, type SetProfilePermissionResponse, type SetProfileScreensOptions, type SetProfileSelectTablesOptions, type SetProfileServerFunctionsOptions, type SetProfileUsersOptions, type SetVariableOptions, type SetVariableResponse, type StopServerFunctionExecutionOptions, type StopServerFunctionExecutionResponse, type UpdateProfileOptions, type UpdateProfileResponse, type UpdateRecordOptions, type UploadFileOptions, type UploadFileResponse, type ValidatePasswordResetCodeOptions, callIntegrationMitra, closeChatMitra, configureSdkMitra, createMitraInstance, createProfileMitra, createRecordMitra, createRecordsBatchMitra, deleteProfileMitra, deleteRecordMitra, emailLoginMitra, emailResendCodeMitra, emailSignupMitra, emailVerifyCodeMitra, executeDataLoaderMitra, executeDbActionMitra, executePublicServerFunctionAsyncMitra, executePublicServerFunctionMitra, executeServerFunctionAsyncMitra, executeServerFunctionMitra, getAgentChatsMitra, getAgentTaskMitra, getConfig, getProfileDetailsMitra, getPublicServerFunctionExecutionMitra, getRecordMitra, getVariableMitra, listIntegrationsMitra, listProfilesMitra, listRecordsMitra, listVariablesMitra, loginMitra, loginWithEmailMitra, loginWithGoogleMitra, loginWithMicrosoftMitra, manageAgentChatMitra, manageAgentCredentialMitra, openChatMitra, patchRecordMitra, refreshTokenSilently, resetPasswordMitra, resolveProjectId, runActionMitra, sendPasswordResetCodeMitra, setFileStatusMitra, setProfileActionsMitra, setProfileDmlTablesMitra, setProfileScreensMitra, setProfileSelectTablesMitra, setProfileServerFunctionsMitra, setProfileUsersMitra, setVariableMitra, stopServerFunctionExecutionMitra, updateProfileMitra, updateRecordMitra, uploadFileLoadableMitra, uploadFilePublicMitra, validatePasswordResetCodeMitra };
|
package/dist/index.js
CHANGED
|
@@ -919,9 +919,25 @@ var transport = {
|
|
|
919
919
|
function getTransport() {
|
|
920
920
|
return transport;
|
|
921
921
|
}
|
|
922
|
+
function manageAgentChatMitra(options) {
|
|
923
|
+
var _a;
|
|
924
|
+
if (options.action === "list") {
|
|
925
|
+
const projectId = resolveProjectId2(options.projectId);
|
|
926
|
+
return transport.request("chats", { action: "list", projectId });
|
|
927
|
+
}
|
|
928
|
+
if (options.action === "rename") {
|
|
929
|
+
if (!options.taskId) throw new Error("manageAgentChatMitra(rename): taskId obrigat\xF3rio.");
|
|
930
|
+
if (!((_a = options.name) == null ? void 0 : _a.trim())) throw new Error("manageAgentChatMitra(rename): name obrigat\xF3rio.");
|
|
931
|
+
return transport.request("chats", { action: "rename", taskId: options.taskId, name: options.name.trim() });
|
|
932
|
+
}
|
|
933
|
+
if (options.action === "delete") {
|
|
934
|
+
if (!options.taskId) throw new Error("manageAgentChatMitra(delete): taskId obrigat\xF3rio.");
|
|
935
|
+
return transport.request("chats", { action: "delete", taskId: options.taskId });
|
|
936
|
+
}
|
|
937
|
+
throw new Error(`manageAgentChatMitra: action inv\xE1lida (${options.action}).`);
|
|
938
|
+
}
|
|
922
939
|
async function getAgentChatsMitra(options) {
|
|
923
|
-
|
|
924
|
-
return transport.request("get_chats", { projectId });
|
|
940
|
+
return manageAgentChatMitra({ action: "list", projectId: options == null ? void 0 : options.projectId });
|
|
925
941
|
}
|
|
926
942
|
function getAgentTaskMitra(options) {
|
|
927
943
|
if ("taskId" in options && options.taskId) {
|
|
@@ -1397,6 +1413,9 @@ function createMitraInstance(initialConfig) {
|
|
|
1397
1413
|
getAgentTask(options) {
|
|
1398
1414
|
return getAgentTaskMitra(options);
|
|
1399
1415
|
},
|
|
1416
|
+
manageAgentChat(options) {
|
|
1417
|
+
return manageAgentChatMitra(options);
|
|
1418
|
+
},
|
|
1400
1419
|
manageAgentCredential(options) {
|
|
1401
1420
|
return manageAgentCredentialMitra(options);
|
|
1402
1421
|
},
|
|
@@ -1940,6 +1959,7 @@ exports.loginMitra = loginMitra;
|
|
|
1940
1959
|
exports.loginWithEmailMitra = loginWithEmailMitra;
|
|
1941
1960
|
exports.loginWithGoogleMitra = loginWithGoogleMitra;
|
|
1942
1961
|
exports.loginWithMicrosoftMitra = loginWithMicrosoftMitra;
|
|
1962
|
+
exports.manageAgentChatMitra = manageAgentChatMitra;
|
|
1943
1963
|
exports.manageAgentCredentialMitra = manageAgentCredentialMitra;
|
|
1944
1964
|
exports.openChatMitra = openChatMitra;
|
|
1945
1965
|
exports.patchRecordMitra = patchRecordMitra;
|