Mosaia Node.js SDK - v0.0.28

Main entry point for the Mosaia Node.js SDK

This module provides the primary interface for interacting with the Mosaia API. It exports the main MosaiaClient class, all collection classes for API operations, model classes for data structures, authentication utilities, and configuration management tools.

The SDK supports both API key and OAuth2 authentication methods, and provides comprehensive access to all Mosaia platform features including user management, organization management, AI agents, tools, applications, and more.

Classes - Authentication

MosaiaAuth
OAuth

Classes - Models

Agent
AppConnector
AppWebhook
App
BaseModel
Client
DriveItem
Drive
Log
Message
Model
OrgUser
Organization
Plan
Session
Snapshot
Task
Tool
UploadJob
User
VectorIndex

Classes - Collections

Agents

Classes - Other

AppConnectors
AppWebhooks
Apps
Clients
DriveItems
Drives
Logs
Messages
Models
Notifications
OrgUsers
Organizations
Plans
Scopes
Search
Snapshots
SSO
Tasks
Tools
UploadJobs
Users
VectorIndexes
ConfigurationManager
MosaiaClient

Interfaces

MosaiaConfig
AuthInterface
SessionCredentials
APIResponse
BatchAPIResponse
ErrorResponse
PagingInterface
QueryParams
BaseEntity
RecordHistory
UserInterface
OrganizationInterface
SessionInterface
SessionPermissionsInterface
PermissionParamsInterface
AppInterface
ToolInterface
AgentInterface
ModelInterface
ClientInterface
AppConnectorInterface
WalletInterface
MeterInterface
AccessPolicyInterface
OrgPermissionInterface
UserPermissionInterface
OrgUserInterface
ObjectiveInterface
OfferingInterface
SnapshotInterface
DriveInterface
DriveItemInterface
UploadJobInterface
VectorIndexInterface
LikeInterface
AgentLogInterface
AgentToolInterface
GroupAgentInterface
AppUserInterface
AppWebhookInterface
ClientSessionInterface
ApiRequestLogInterface
ChatMessage
ChatCompletionRequest
ChatCompletionResponse
RerankRequest
RerankResult
RerankResponse
EmbeddingRequest
EmbeddingData
EmbeddingResponse
AuthRequest
AuthResponse
SearchQueryParams
SearchResults
SearchPaging
MessageInterface
ScopeInterface
TaskInterface
PlanInterface
SSORequestInterface
SSOResponseInterface
NotificationEmailInterface
NotificationResponseInterface
OAuthConfig
OAuthTokenResponse
OAuthErrorResponse

Type Aliases

DehydratedAppConnectorInterface
GetUsersPayload
GetUserPayload
GetOrgsPayload
GetOrgPayload
GetAppsPayload
GetAppPayload
GetToolsPayload
GetToolPayload
GetAgentsPayload
GetAgentPayload
GetModelsPayload
GetModelPayload
GetClientsPayload
GetClientPayload
GetAppConnectorsPayload
GetAppConnectorPayload
SearchResponse
GetDrivesPayload
GetDrivePayload
GetDriveItemsPayload
GetDriveItemPayload
GetUploadJobsPayload
GetUploadJobPayload
GetWalletsPayload
GetWalletPayload
GetMetersPayload
GetMeterPayload
GetAccessPoliciesPayload
GetAccessPolicyPayload
GetOrgPermissionsPayload
GetOrgPermissionPayload
GetUserPermissionsPayload
GetUserPermissionPayload
GetOrgUsersPayload
GetOrgUserPayload
GetObjectivesPayload
GetObjectivePayload
GetOfferingsPayload
GetOfferingPayload
GetSnapshotsPayload
GetSnapshotPayload
GetVectorIndexesPayload
GetVectorIndexPayload
GetLikesPayload
GetLikePayload
GetAgentLogsPayload
GetAgentLogPayload
GetAgentToolsPayload
GetAgentToolPayload
GetGroupAgentsPayload
GetGroupAgentPayload
GetAppUsersPayload
GetAppUserPayload
GetAppWebhooksPayload
GetAppWebhookPayload
GetClientSessionsPayload
GetClientSessionPayload
GetApiRequestLogsPayload
GetApiRequestLogPayload
GetLogsPayload
GetLogPayload
GetMessagesPayload
GetMessagePayload
GetScopesPayload
GetTasksPayload
GetTaskPayload
GetPlansPayload
GetPlanPayload

Variables

DEFAULT_CONFIG

Functions - Utilities

isValidObjectId
parseError
queryGenerator

Functions - Other

isTimestampExpired
failure
success
serverErrorToString
isSdkError

References

default → MosaiaClient