Skip to main content

@fluidframework/driver-definitions Package

Interfaces

InterfaceAlertsDescription
DriverPreCheckInfoLegacyInformation that can be returned by a lightweight, seperately exported driver function. Used to preanalyze a URL for driver compatibility and preload information.
IAnyDriverErrorLegacyInterface describing errors and warnings raised by any driver code.
IAttachmentLegacy
IAuthorizationErrorLegacy
IBlobLegacyRaw blob stored within the tree.
IBranchOriginLegacyBranch origin information.
ICacheEntryLegacyCache entry. Identifies file that this entry belongs to, and type of content stored in it.
ICapabilitiesCapabilities of a Client. In particular, whether or not the client is interactive.
IClientRepresents a client connected to a Fluid service, including associated user details, permissions, and connection mode.
IClientConfigurationLegacyKey value store of service configuration properties provided to the client as part of connection.
IClientDetailsIClient connection / environment metadata.
IConnectLegacyMessage sent to connect to the given document.
IConnectedLegacyMessage sent to indicate a client has connected to the server.
IContainerPackageInfoLegacyContainer package info handed off to resolver.
ICreateBlobResponseLegacy
IDocumentAttributesLegacy
IDocumentDeltaConnectionLegacy
IDocumentDeltaConnectionEventsLegacy
IDocumentDeltaStorageServiceLegacyInterface to provide access to stored deltas for a shared object
IDocumentMessageLegacyDocument-specific message.
IDocumentServiceLegacy
IDocumentServiceEventsLegacyEvents emitted by IDocumentService.
IDocumentServiceFactoryLegacy
IDocumentServicePoliciesLegacy
IDocumentStorageServiceLegacyInterface to provide access to snapshots saved for a shared object
IDocumentStorageServicePoliciesLegacyPolicies describing attributes or characteristics of the driver's storage service, to direct how other components interact with the driver
IDriverBasicErrorLegacyHaving this uber interface without types that have their own interfaces allows compiler to differentiate interfaces based on error type
IDriverErrorBaseLegacyBase interface for all errors and warnings
IEntryLegacyCache entry. Identifies file that this entry belongs to, and type of content stored in it.
IFileEntryLegacyFile / container identifier. There is overlapping information here - host can use all of it or parts to implement storage / identify files.
IGenericNetworkErrorLegacy
ILocationRedirectionErrorLegacy
INackLegacy
INackContentLegacyInterface for nack content.
IPersistedCacheLegacyPersistent cache. This interface can be implemented by the host to provide durable caching across sessions. If not provided at driver factory construction, factory will use in-memory cache implementation that does not survive across sessions. Snapshot entires stored in the IPersistedCache will be considered stale and removed after 2 days. Read the README for more information.
IProcessMessageResultLegacy
IProposalLegacyProposal to set the given key/value pair.
IQuorumLegacyInterface combining tracking of clients as well as proposals in the Quorum.
IQuorumClientsInterface for tracking clients in the Quorum.
IQuorumProposalsLegacyInterface for tracking proposals in the Quorum.
IResolvedUrlLegacy
ISequencedClientA IClient that has been acknowledged by the sequencer.
ISequencedDocumentMessageLegacySequenced message for a distributed document.
ISignalClientLegacy
ISignalMessageLegacyInterface for signals sent by the server to clients.
ISignalMessageBaseLegacyCommon interface between incoming and outgoing signals.
ISnapshotLegacyA "Full" container Snapshot, including ISnapshotTree, blobs and outstanding ops (and other metadata)
ISnapshotFetchOptionsLegacySnapshot fetch options which are used to communicate different things to the driver when fetching the snapshot.
ISnapshotTreeLegacy
IStreamLegacyRead interface for the Queue
ISummaryAckLegacyContents of summary ack expected from the server.
ISummaryAttachmentUnique identifier for blobs uploaded outside of the summary.
ISummaryBlobString or Binary data to be uploaded to the server as part of the container's Summary.
ISummaryContentLegacy
ISummaryContextLegacyContext for uploading a summary to storage. Indicates the previously acked summary.
ISummaryHandle

Path to a summary tree object from the last successful summary indicating the summary object hasn't changed since it was uploaded.

Special characters include '/'. '/' is used as a separator between different parts of the path as a way to traverse different nodes in the previous summary/snapshot tree.

Note, our algorithms use encodeURIComponent and decodeURIComponent to handle special characters in the path. If a string causes this path to fail, the id will be invalid.

ISummaryNackLegacyContents of summary nack expected from the server.
ISummaryProposalLegacyData about the original proposed summary message.
ISummaryTreeTree Node data structure with children that are nodes of SummaryObject type: Blob, Handle, Attachment or another Tree.
IThrottlingWarningLegacy
ITokenClaimsLegacy

JSON Web Token (JWT) Claims

See https://datatracker.ietf.org/doc/html/rfc7519\#section\-4

ITraceLegacyMessages to track latency trace.
ITreeLegacy
IUploadedSummaryDetailsLegacy
IUrlResolverLegacy
IUserBase user definition. It is valid to extend this interface when adding new details to the user object.
IVersionLegacyRepresents a version of the snapshot of a data store.

Enumerations

EnumAlertsDescription
DriverHeaderLegacyAdditional key in the loader request header
FetchSourceLegacy
FileModeLegacy
LoaderCachingPolicyLegacy
MessageTypeLegacy
NackErrorTypeLegacyType of the nack.
ScopeTypeLegacyDefines scope access for a Container/Document.
TreeEntryLegacyType of entries that can be stored in a tree.

Types

TypeAliasAlertsDescription
ConnectionModeA client's connection mode - either view-only ("read") or allowing edits ("write").
DriverErrorLegacy
DriverErrorTypesLegacyDifferent error types the Driver may report out to the Host.
FiveDaysMsLegacy
IApprovedProposalLegacyAdds the sequence number at which the message was approved to an ISequencedProposal.
ICommittedProposalLegacyAdds the sequence number at which the message was committed to an IApprovedProposal.
ISequencedProposalLegacySimilar to IProposal except it also includes the sequence number when it was made.
IsoDateLegacyISO 8601 format date: YYYY-MM-DDTHH:MM:SSZ.
IStreamResultLegacy
ITreeEntryLegacyA tree entry wraps a path with a type of node.
SummaryObjectObject representing a node within a summary tree.
SummaryTreeLegacyThe root of the summary tree.
SummaryTypeType tag used to distinguish different types of nodes in a ISummaryTree.
SummaryTypeNoHandleSummary type that ISummaryHandle points to.

Variables

VariableAlertsModifiersTypeDescription
DriverErrorTypesLegacyreadonly{ readonly genericNetworkError: "genericNetworkError"; readonly authorizationError: "authorizationError"; readonly fileNotFoundOrAccessDeniedError: "fileNotFoundOrAccessDeniedError"; readonly offlineError: "offlineError"; readonly unsupportedClientProtocolVersion: "unsupportedClientProtocolVersion"; readonly writeError: "writeError"; readonly fetchFailure: "fetchFailure"; readonly fetchTokenError: "fetchTokenError"; readonly incorrectServerResponse: "incorrectServerResponse"; readonly fileOverwrittenInStorage: "fileOverwrittenInStorage"; readonly deltaStreamConnectionForbidden: "deltaStreamConnectionForbidden"; readonly locationRedirection: "locationRedirection"; readonly fluidInvalidSchema: "fluidInvalidSchema"; readonly fileIsLocked: "fileIsLocked"; readonly outOfStorageError: "outOfStorageError"; readonly genericError: "genericError"; readonly throttlingError: "throttlingError"; readonly usageError: "usageError"; }Different error types the Driver may report out to the Host.

Namespaces

NamespaceDescription
SummaryTypeType tag used to distinguish different types of nodes in a ISummaryTree.

Variable Details

DriverErrorTypes

Different error types the Driver may report out to the Host.

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/driver-definitions/legacy.

For more information about our API support guarantees, see here.

Signature

DriverErrorTypes: {
readonly genericNetworkError: "genericNetworkError";
readonly authorizationError: "authorizationError";
readonly fileNotFoundOrAccessDeniedError: "fileNotFoundOrAccessDeniedError";
readonly offlineError: "offlineError";
readonly unsupportedClientProtocolVersion: "unsupportedClientProtocolVersion";
readonly writeError: "writeError";
readonly fetchFailure: "fetchFailure";
readonly fetchTokenError: "fetchTokenError";
readonly incorrectServerResponse: "incorrectServerResponse";
readonly fileOverwrittenInStorage: "fileOverwrittenInStorage";
readonly deltaStreamConnectionForbidden: "deltaStreamConnectionForbidden";
readonly locationRedirection: "locationRedirection";
readonly fluidInvalidSchema: "fluidInvalidSchema";
readonly fileIsLocked: "fileIsLocked";
readonly outOfStorageError: "outOfStorageError";
readonly genericError: "genericError";
readonly throttlingError: "throttlingError";
readonly usageError: "usageError";
}

Type: { readonly genericNetworkError: "genericNetworkError"; readonly authorizationError: "authorizationError"; readonly fileNotFoundOrAccessDeniedError: "fileNotFoundOrAccessDeniedError"; readonly offlineError: "offlineError"; readonly unsupportedClientProtocolVersion: "unsupportedClientProtocolVersion"; readonly writeError: "writeError"; readonly fetchFailure: "fetchFailure"; readonly fetchTokenError: "fetchTokenError"; readonly incorrectServerResponse: "incorrectServerResponse"; readonly fileOverwrittenInStorage: "fileOverwrittenInStorage"; readonly deltaStreamConnectionForbidden: "deltaStreamConnectionForbidden"; readonly locationRedirection: "locationRedirection"; readonly fluidInvalidSchema: "fluidInvalidSchema"; readonly fileIsLocked: "fileIsLocked"; readonly outOfStorageError: "outOfStorageError"; readonly genericError: "genericError"; readonly throttlingError: "throttlingError"; readonly usageError: "usageError"; }