mitra-interactions-sdk 1.0.68 → 1.0.69
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/README.md +779 -777
- package/dist/index.d.mts +40 -25
- package/dist/index.d.ts +40 -25
- package/dist/index.js +17 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +52 -52
package/dist/index.d.mts
CHANGED
|
@@ -472,36 +472,43 @@ interface GetProfileDetailsOptions {
|
|
|
472
472
|
projectId?: number;
|
|
473
473
|
profileId: number;
|
|
474
474
|
}
|
|
475
|
+
interface ProfileUserItem {
|
|
476
|
+
id: number;
|
|
477
|
+
userId: number;
|
|
478
|
+
name: string;
|
|
479
|
+
email: string;
|
|
480
|
+
/** Login (= email), mantido por compatibilidade. */
|
|
481
|
+
username: string;
|
|
482
|
+
}
|
|
483
|
+
interface ProfileTableItem {
|
|
484
|
+
tableName: string;
|
|
485
|
+
jdbcConnectionConfigId?: number | null;
|
|
486
|
+
onlineTable?: boolean | null;
|
|
487
|
+
}
|
|
488
|
+
/** Formato conferido no mitraapi (getProfileDetails). */
|
|
475
489
|
interface GetProfileDetailsResponse {
|
|
476
490
|
status: string;
|
|
477
491
|
projectId: number;
|
|
478
492
|
result: {
|
|
479
493
|
id: number;
|
|
480
494
|
name: string;
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
tableName: string;
|
|
488
|
-
jdbcConnectionConfigId?: number;
|
|
489
|
-
}[];
|
|
490
|
-
dmlTables: {
|
|
491
|
-
tableName: string;
|
|
492
|
-
jdbcConnectionConfigId?: number;
|
|
493
|
-
}[];
|
|
495
|
+
color?: string | null;
|
|
496
|
+
homeScreenId?: number | null;
|
|
497
|
+
/** Usuários ativos do perfil (mitraapi ≥ #8735; antes o campo não vinha). */
|
|
498
|
+
users?: ProfileUserItem[];
|
|
499
|
+
selectTables: ProfileTableItem[];
|
|
500
|
+
dmlTables: ProfileTableItem[];
|
|
494
501
|
actions: {
|
|
495
|
-
|
|
496
|
-
|
|
502
|
+
actionId: number;
|
|
503
|
+
actionName: string | null;
|
|
497
504
|
}[];
|
|
498
505
|
screens: {
|
|
499
|
-
|
|
500
|
-
|
|
506
|
+
screenId: number;
|
|
507
|
+
screenName: string | null;
|
|
501
508
|
}[];
|
|
502
509
|
serverFunctions: {
|
|
503
|
-
|
|
504
|
-
|
|
510
|
+
serverFunctionId: number;
|
|
511
|
+
serverFunctionName: string | null;
|
|
505
512
|
}[];
|
|
506
513
|
};
|
|
507
514
|
}
|
|
@@ -514,8 +521,12 @@ interface CreateProfileOptions {
|
|
|
514
521
|
interface CreateProfileResponse {
|
|
515
522
|
status: string;
|
|
516
523
|
result: {
|
|
517
|
-
|
|
518
|
-
|
|
524
|
+
/** Id do novo perfil: use este campo. */
|
|
525
|
+
profileId: number;
|
|
526
|
+
/** Igual a profileId (mitraapi ≥ #8735). */
|
|
527
|
+
id?: number;
|
|
528
|
+
/** mitraapi ≥ #8735 */
|
|
529
|
+
name?: string;
|
|
519
530
|
message: string;
|
|
520
531
|
};
|
|
521
532
|
}
|
|
@@ -529,8 +540,7 @@ interface UpdateProfileOptions {
|
|
|
529
540
|
interface UpdateProfileResponse {
|
|
530
541
|
status: string;
|
|
531
542
|
result: {
|
|
532
|
-
|
|
533
|
-
name: string;
|
|
543
|
+
profileId: number;
|
|
534
544
|
message: string;
|
|
535
545
|
};
|
|
536
546
|
}
|
|
@@ -547,10 +557,15 @@ interface DeleteProfileResponse {
|
|
|
547
557
|
interface SetProfileUsersOptions {
|
|
548
558
|
projectId?: number;
|
|
549
559
|
profileId: number;
|
|
550
|
-
userIds
|
|
560
|
+
/** IDs dos usuários no tenant (INT_USERS.ID) — ao menos um de userIds ou emails deve ser informado */
|
|
561
|
+
userIds?: number[];
|
|
562
|
+
/** Emails dos usuários (resolvidos para userId no tenant) — ao menos um de userIds ou emails deve ser informado */
|
|
563
|
+
emails?: string[];
|
|
551
564
|
}
|
|
552
565
|
interface ProfileTableRef {
|
|
553
566
|
tableName: string;
|
|
567
|
+
/** true = online table (query alias), sem conexão JDBC */
|
|
568
|
+
onlineTable?: boolean;
|
|
554
569
|
}
|
|
555
570
|
interface SetProfileSelectTablesOptions {
|
|
556
571
|
projectId?: number;
|
|
@@ -1436,4 +1451,4 @@ type EnvLike = Record<string, string | undefined> | undefined;
|
|
|
1436
1451
|
*/
|
|
1437
1452
|
declare function readServerFunctionProof(env?: EnvLike, hasWindow?: boolean): string | null;
|
|
1438
1453
|
|
|
1439
|
-
export { type AgentApiKeyTarget, type AgentAttachment, type AgentAttachmentType, 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 DeleteFileOptions, type DeleteFileResponse, type DeleteProfileOptions, type DeleteProfileResponse, type DeleteRecordOptions, type DownloadFileOptions, 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 FileLinkOptions, type FileLinkResponse, 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, SF_EXECUTION_TOKEN_ENV, SF_EXECUTION_TOKEN_HEADER, 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, deleteFileMitra, deleteProfileMitra, deleteRecordMitra, downloadFilePrivateMitra, emailLoginMitra, emailResendCodeMitra, emailSignupMitra, emailVerifyCodeMitra, executeDataLoaderMitra, executeDbActionMitra, executePublicServerFunctionAsyncMitra, executePublicServerFunctionMitra, executeServerFunctionAsyncMitra, executeServerFunctionMitra, getAgentTaskMitra, getConfig, getFileLinkMitra, getProfileDetailsMitra, getPublicServerFunctionExecutionMitra, getRecordMitra, getVariableMitra, listIntegrationsMitra, listProfilesMitra, listRecordsMitra, listVariablesMitra, loginMitra, loginWithEmailMitra, loginWithGoogleMitra, loginWithMicrosoftMitra, manageAgentChatMitra, manageAgentCredentialMitra, openChatMitra, patchRecordMitra, readServerFunctionProof, refreshTokenSilently, resetPasswordMitra, resolveProjectId, runActionMitra, sendPasswordResetCodeMitra, setFileStatusMitra, setProfileActionsMitra, setProfileDmlTablesMitra, setProfileScreensMitra, setProfileSelectTablesMitra, setProfileServerFunctionsMitra, setProfileUsersMitra, setVariableMitra, stopServerFunctionExecutionMitra, updateProfileMitra, updateRecordMitra, uploadFileLoadableMitra, uploadFilePrivateMitra, uploadFilePublicMitra, validatePasswordResetCodeMitra };
|
|
1454
|
+
export { type AgentApiKeyTarget, type AgentAttachment, type AgentAttachmentType, 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 DeleteFileOptions, type DeleteFileResponse, type DeleteProfileOptions, type DeleteProfileResponse, type DeleteRecordOptions, type DownloadFileOptions, 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 FileLinkOptions, type FileLinkResponse, 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 ProfileTableItem, type ProfileTableRef, type ProfileUserItem, type QueuedItem, type RenameAgentChatResult, type ResetPasswordOptions, type RunActionOptions, type RunActionResponse, SF_EXECUTION_TOKEN_ENV, SF_EXECUTION_TOKEN_HEADER, 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, deleteFileMitra, deleteProfileMitra, deleteRecordMitra, downloadFilePrivateMitra, emailLoginMitra, emailResendCodeMitra, emailSignupMitra, emailVerifyCodeMitra, executeDataLoaderMitra, executeDbActionMitra, executePublicServerFunctionAsyncMitra, executePublicServerFunctionMitra, executeServerFunctionAsyncMitra, executeServerFunctionMitra, getAgentTaskMitra, getConfig, getFileLinkMitra, getProfileDetailsMitra, getPublicServerFunctionExecutionMitra, getRecordMitra, getVariableMitra, listIntegrationsMitra, listProfilesMitra, listRecordsMitra, listVariablesMitra, loginMitra, loginWithEmailMitra, loginWithGoogleMitra, loginWithMicrosoftMitra, manageAgentChatMitra, manageAgentCredentialMitra, openChatMitra, patchRecordMitra, readServerFunctionProof, refreshTokenSilently, resetPasswordMitra, resolveProjectId, runActionMitra, sendPasswordResetCodeMitra, setFileStatusMitra, setProfileActionsMitra, setProfileDmlTablesMitra, setProfileScreensMitra, setProfileSelectTablesMitra, setProfileServerFunctionsMitra, setProfileUsersMitra, setVariableMitra, stopServerFunctionExecutionMitra, updateProfileMitra, updateRecordMitra, uploadFileLoadableMitra, uploadFilePrivateMitra, uploadFilePublicMitra, validatePasswordResetCodeMitra };
|
package/dist/index.d.ts
CHANGED
|
@@ -472,36 +472,43 @@ interface GetProfileDetailsOptions {
|
|
|
472
472
|
projectId?: number;
|
|
473
473
|
profileId: number;
|
|
474
474
|
}
|
|
475
|
+
interface ProfileUserItem {
|
|
476
|
+
id: number;
|
|
477
|
+
userId: number;
|
|
478
|
+
name: string;
|
|
479
|
+
email: string;
|
|
480
|
+
/** Login (= email), mantido por compatibilidade. */
|
|
481
|
+
username: string;
|
|
482
|
+
}
|
|
483
|
+
interface ProfileTableItem {
|
|
484
|
+
tableName: string;
|
|
485
|
+
jdbcConnectionConfigId?: number | null;
|
|
486
|
+
onlineTable?: boolean | null;
|
|
487
|
+
}
|
|
488
|
+
/** Formato conferido no mitraapi (getProfileDetails). */
|
|
475
489
|
interface GetProfileDetailsResponse {
|
|
476
490
|
status: string;
|
|
477
491
|
projectId: number;
|
|
478
492
|
result: {
|
|
479
493
|
id: number;
|
|
480
494
|
name: string;
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
tableName: string;
|
|
488
|
-
jdbcConnectionConfigId?: number;
|
|
489
|
-
}[];
|
|
490
|
-
dmlTables: {
|
|
491
|
-
tableName: string;
|
|
492
|
-
jdbcConnectionConfigId?: number;
|
|
493
|
-
}[];
|
|
495
|
+
color?: string | null;
|
|
496
|
+
homeScreenId?: number | null;
|
|
497
|
+
/** Usuários ativos do perfil (mitraapi ≥ #8735; antes o campo não vinha). */
|
|
498
|
+
users?: ProfileUserItem[];
|
|
499
|
+
selectTables: ProfileTableItem[];
|
|
500
|
+
dmlTables: ProfileTableItem[];
|
|
494
501
|
actions: {
|
|
495
|
-
|
|
496
|
-
|
|
502
|
+
actionId: number;
|
|
503
|
+
actionName: string | null;
|
|
497
504
|
}[];
|
|
498
505
|
screens: {
|
|
499
|
-
|
|
500
|
-
|
|
506
|
+
screenId: number;
|
|
507
|
+
screenName: string | null;
|
|
501
508
|
}[];
|
|
502
509
|
serverFunctions: {
|
|
503
|
-
|
|
504
|
-
|
|
510
|
+
serverFunctionId: number;
|
|
511
|
+
serverFunctionName: string | null;
|
|
505
512
|
}[];
|
|
506
513
|
};
|
|
507
514
|
}
|
|
@@ -514,8 +521,12 @@ interface CreateProfileOptions {
|
|
|
514
521
|
interface CreateProfileResponse {
|
|
515
522
|
status: string;
|
|
516
523
|
result: {
|
|
517
|
-
|
|
518
|
-
|
|
524
|
+
/** Id do novo perfil: use este campo. */
|
|
525
|
+
profileId: number;
|
|
526
|
+
/** Igual a profileId (mitraapi ≥ #8735). */
|
|
527
|
+
id?: number;
|
|
528
|
+
/** mitraapi ≥ #8735 */
|
|
529
|
+
name?: string;
|
|
519
530
|
message: string;
|
|
520
531
|
};
|
|
521
532
|
}
|
|
@@ -529,8 +540,7 @@ interface UpdateProfileOptions {
|
|
|
529
540
|
interface UpdateProfileResponse {
|
|
530
541
|
status: string;
|
|
531
542
|
result: {
|
|
532
|
-
|
|
533
|
-
name: string;
|
|
543
|
+
profileId: number;
|
|
534
544
|
message: string;
|
|
535
545
|
};
|
|
536
546
|
}
|
|
@@ -547,10 +557,15 @@ interface DeleteProfileResponse {
|
|
|
547
557
|
interface SetProfileUsersOptions {
|
|
548
558
|
projectId?: number;
|
|
549
559
|
profileId: number;
|
|
550
|
-
userIds
|
|
560
|
+
/** IDs dos usuários no tenant (INT_USERS.ID) — ao menos um de userIds ou emails deve ser informado */
|
|
561
|
+
userIds?: number[];
|
|
562
|
+
/** Emails dos usuários (resolvidos para userId no tenant) — ao menos um de userIds ou emails deve ser informado */
|
|
563
|
+
emails?: string[];
|
|
551
564
|
}
|
|
552
565
|
interface ProfileTableRef {
|
|
553
566
|
tableName: string;
|
|
567
|
+
/** true = online table (query alias), sem conexão JDBC */
|
|
568
|
+
onlineTable?: boolean;
|
|
554
569
|
}
|
|
555
570
|
interface SetProfileSelectTablesOptions {
|
|
556
571
|
projectId?: number;
|
|
@@ -1436,4 +1451,4 @@ type EnvLike = Record<string, string | undefined> | undefined;
|
|
|
1436
1451
|
*/
|
|
1437
1452
|
declare function readServerFunctionProof(env?: EnvLike, hasWindow?: boolean): string | null;
|
|
1438
1453
|
|
|
1439
|
-
export { type AgentApiKeyTarget, type AgentAttachment, type AgentAttachmentType, 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 DeleteFileOptions, type DeleteFileResponse, type DeleteProfileOptions, type DeleteProfileResponse, type DeleteRecordOptions, type DownloadFileOptions, 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 FileLinkOptions, type FileLinkResponse, 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, SF_EXECUTION_TOKEN_ENV, SF_EXECUTION_TOKEN_HEADER, 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, deleteFileMitra, deleteProfileMitra, deleteRecordMitra, downloadFilePrivateMitra, emailLoginMitra, emailResendCodeMitra, emailSignupMitra, emailVerifyCodeMitra, executeDataLoaderMitra, executeDbActionMitra, executePublicServerFunctionAsyncMitra, executePublicServerFunctionMitra, executeServerFunctionAsyncMitra, executeServerFunctionMitra, getAgentTaskMitra, getConfig, getFileLinkMitra, getProfileDetailsMitra, getPublicServerFunctionExecutionMitra, getRecordMitra, getVariableMitra, listIntegrationsMitra, listProfilesMitra, listRecordsMitra, listVariablesMitra, loginMitra, loginWithEmailMitra, loginWithGoogleMitra, loginWithMicrosoftMitra, manageAgentChatMitra, manageAgentCredentialMitra, openChatMitra, patchRecordMitra, readServerFunctionProof, refreshTokenSilently, resetPasswordMitra, resolveProjectId, runActionMitra, sendPasswordResetCodeMitra, setFileStatusMitra, setProfileActionsMitra, setProfileDmlTablesMitra, setProfileScreensMitra, setProfileSelectTablesMitra, setProfileServerFunctionsMitra, setProfileUsersMitra, setVariableMitra, stopServerFunctionExecutionMitra, updateProfileMitra, updateRecordMitra, uploadFileLoadableMitra, uploadFilePrivateMitra, uploadFilePublicMitra, validatePasswordResetCodeMitra };
|
|
1454
|
+
export { type AgentApiKeyTarget, type AgentAttachment, type AgentAttachmentType, 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 DeleteFileOptions, type DeleteFileResponse, type DeleteProfileOptions, type DeleteProfileResponse, type DeleteRecordOptions, type DownloadFileOptions, 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 FileLinkOptions, type FileLinkResponse, 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 ProfileTableItem, type ProfileTableRef, type ProfileUserItem, type QueuedItem, type RenameAgentChatResult, type ResetPasswordOptions, type RunActionOptions, type RunActionResponse, SF_EXECUTION_TOKEN_ENV, SF_EXECUTION_TOKEN_HEADER, 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, deleteFileMitra, deleteProfileMitra, deleteRecordMitra, downloadFilePrivateMitra, emailLoginMitra, emailResendCodeMitra, emailSignupMitra, emailVerifyCodeMitra, executeDataLoaderMitra, executeDbActionMitra, executePublicServerFunctionAsyncMitra, executePublicServerFunctionMitra, executeServerFunctionAsyncMitra, executeServerFunctionMitra, getAgentTaskMitra, getConfig, getFileLinkMitra, getProfileDetailsMitra, getPublicServerFunctionExecutionMitra, getRecordMitra, getVariableMitra, listIntegrationsMitra, listProfilesMitra, listRecordsMitra, listVariablesMitra, loginMitra, loginWithEmailMitra, loginWithGoogleMitra, loginWithMicrosoftMitra, manageAgentChatMitra, manageAgentCredentialMitra, openChatMitra, patchRecordMitra, readServerFunctionProof, refreshTokenSilently, resetPasswordMitra, resolveProjectId, runActionMitra, sendPasswordResetCodeMitra, setFileStatusMitra, setProfileActionsMitra, setProfileDmlTablesMitra, setProfileScreensMitra, setProfileSelectTablesMitra, setProfileServerFunctionsMitra, setProfileUsersMitra, setVariableMitra, stopServerFunctionExecutionMitra, updateProfileMitra, updateRecordMitra, uploadFileLoadableMitra, uploadFilePrivateMitra, uploadFilePublicMitra, validatePasswordResetCodeMitra };
|
package/dist/index.js
CHANGED
|
@@ -826,11 +826,13 @@ async function deleteProfileMitra(options) {
|
|
|
826
826
|
});
|
|
827
827
|
}
|
|
828
828
|
async function setProfileUsersMitra(options) {
|
|
829
|
-
|
|
829
|
+
const body = {
|
|
830
830
|
projectId: resolveProjectId2(options.projectId),
|
|
831
|
-
profileId: options.profileId
|
|
832
|
-
|
|
833
|
-
|
|
831
|
+
profileId: options.profileId
|
|
832
|
+
};
|
|
833
|
+
if (options.userIds !== void 0) body.userIds = options.userIds;
|
|
834
|
+
if (options.emails !== void 0) body.emails = options.emails;
|
|
835
|
+
return http.post("/interactions/profiles/users", body);
|
|
834
836
|
}
|
|
835
837
|
async function setProfileSelectTablesMitra(options) {
|
|
836
838
|
const body = {
|
|
@@ -2188,19 +2190,21 @@ function createMitraInstance(initialConfig) {
|
|
|
2188
2190
|
return request("DELETE", "/interactions/profiles", { body: { projectId: resolveProjectId4(options.projectId), profileId: options.profileId } });
|
|
2189
2191
|
},
|
|
2190
2192
|
async setProfileUsers(options) {
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2193
|
+
const body = { projectId: resolveProjectId4(options.projectId), profileId: options.profileId };
|
|
2194
|
+
if (options.userIds !== void 0) body.userIds = options.userIds;
|
|
2195
|
+
if (options.emails !== void 0) body.emails = options.emails;
|
|
2196
|
+
return request("POST", "/interactions/profiles/users", { body });
|
|
2194
2197
|
},
|
|
2198
|
+
// jdbcConnectionConfigId era descartado nos dois abaixo (as funções soltas repassavam).
|
|
2195
2199
|
async setProfileSelectTables(options) {
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
});
|
|
2200
|
+
const body = { projectId: resolveProjectId4(options.projectId), profileId: options.profileId, tables: options.tables };
|
|
2201
|
+
if (options.jdbcConnectionConfigId !== void 0) body.jdbcConnectionConfigId = options.jdbcConnectionConfigId;
|
|
2202
|
+
return request("POST", "/interactions/profiles/selectTables", { body });
|
|
2199
2203
|
},
|
|
2200
2204
|
async setProfileDmlTables(options) {
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
});
|
|
2205
|
+
const body = { projectId: resolveProjectId4(options.projectId), profileId: options.profileId, tables: options.tables };
|
|
2206
|
+
if (options.jdbcConnectionConfigId !== void 0) body.jdbcConnectionConfigId = options.jdbcConnectionConfigId;
|
|
2207
|
+
return request("POST", "/interactions/profiles/dmlTables", { body });
|
|
2204
2208
|
},
|
|
2205
2209
|
async setProfileActions(options) {
|
|
2206
2210
|
return request("POST", "/interactions/profiles/actions", {
|