@fluidframework/driver-definitions 2.13.0 → 2.21.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @fluidframework/driver-definitions
2
2
 
3
+ ## 2.21.0
4
+
5
+ Dependency updates only.
6
+
7
+ ## 2.20.0
8
+
9
+ Dependency updates only.
10
+
3
11
  ## 2.13.0
4
12
 
5
13
  Dependency updates only.
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export type { FiveDaysMs, IDeltasFetchResult, IDeltaStorageService, IDocumentDel
8
8
  export { FetchSource, LoaderCachingPolicy } from "./storage.js";
9
9
  export type { DriverPreCheckInfo, IContainerPackageInfo, IDriverHeader, IResolvedUrl, IUrlResolver, } from "./urlResolver.js";
10
10
  export { DriverHeader } from "./urlResolver.js";
11
- export type { ConnectionMode, IActorClient, IApprovedProposal, IAttachment, IBlob, IBranchOrigin, ICapabilities, IClient, IClientConfiguration, IClientDetails, IClientJoin, ICommittedProposal, IConnect, IConnected, ICreateBlobResponse, IDocumentAttributes, IDocumentMessage, IDocumentSystemMessage, INack, INackContent, IProcessMessageResult, IProposal, IProtocolState, IQuorum, IQuorumClients, IQuorumClientsEvents, IQuorumEvents, IQuorumProposals, IQuorumProposalsEvents, ISentSignalMessage, ISequencedClient, ISequencedDocumentAugmentedMessage, ISequencedDocumentMessage, ISequencedDocumentMessageExperimental, ISequencedDocumentSystemMessage, ISequencedProposal, IServerError, ISignalClient, ISignalMessage, ISignalMessageBase, ISnapshotTree, ISnapshotTreeEx, IsoDate, ISummaryAck, ISummaryAttachment, ISummaryBlob, ISummaryContent, ISummaryHandle, ISummaryNack, ISummaryProposal, ISummaryTokenClaims, ISummaryTree, ITokenClaims, ITokenProvider, ITokenService, ITrace, ITree, ITreeEntry, IUploadedSummaryDetails, IUser, IVersion, SummaryObject, SummaryTree, SummaryTypeNoHandle, } from "./protocol/index.js";
11
+ export type { ConnectionMode, IApprovedProposal, IAttachment, IBlob, IBranchOrigin, ICapabilities, IClient, IClientConfiguration, IClientDetails, IClientJoin, ICommittedProposal, IConnect, IConnected, ICreateBlobResponse, IDocumentAttributes, IDocumentMessage, IDocumentSystemMessage, INack, INackContent, IProcessMessageResult, IProposal, IProtocolState, IQuorum, IQuorumClients, IQuorumProposals, ISentSignalMessage, ISequencedClient, ISequencedDocumentAugmentedMessage, ISequencedDocumentMessage, ISequencedDocumentMessageExperimental, ISequencedDocumentSystemMessage, ISequencedProposal, IServerError, ISignalClient, ISignalMessage, ISignalMessageBase, ISnapshotTree, ISnapshotTreeEx, IsoDate, ISummaryAck, ISummaryAttachment, ISummaryBlob, ISummaryContent, ISummaryHandle, ISummaryNack, ISummaryProposal, ISummaryTree, ITokenClaims, ITrace, ITree, ITreeEntry, IUploadedSummaryDetails, IUser, IVersion, SummaryObject, SummaryTree, SummaryTypeNoHandle, } from "./protocol/index.js";
12
12
  export { FileMode, MessageType, NackErrorType, ScopeType, SignalType, SummaryType, TreeEntry, } from "./protocol/index.js";
13
13
  export type { IGitAuthor, IGitBlob, IGitCommitDetails, IGitCommitHash, IGitCommitter, IGitCreateBlobParams, IGitCreateBlobResponse, IGitCreateTreeEntry, IGitCreateTreeParams, IGitTree, IGitTreeEntry, } from "./git/index.js";
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EACX,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,GAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EACX,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,8BAA8B,EAC9B,4B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AO,EACN,QAAQ,EACR,WAAW,EACX,aAAa,EACb,SAAS,EACT,UAAU,EACV,WAAW,EACX,SAAS,GACT,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACX,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,QAAQ,EACR,aAAa,GACb,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EACX,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,GAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EACX,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,8BAA8B,EAC9B,4BAA4B,EAC5B,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,+BAA+B,EAC/B,SAAS,EACT,qBAAqB,EACrB,OAAO,EACP,aAAa,EACb,eAAe,GACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAChE,YAAY,EACX,kBAAkB,EAClB,qBAAqB,EACrB,aAAa,EACb,YAAY,EACZ,YAAY,GACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,YAAY,EACX,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,KAAK,EACL,aAAa,EACb,aAAa,EACb,OAAO,EACP,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,KAAK,EACL,YAAY,EACZ,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,kCAAkC,EAClC,yBAAyB,EACzB,qCAAqC,EACrC,+BAA+B,EAC/B,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,OAAO,EACP,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,KAAK,EACL,UAAU,EACV,uBAAuB,EACvB,KAAK,EACL,QAAQ,EACR,aAAa,EACb,WAAW,EACX,mBAAmB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,QAAQ,EACR,WAAW,EACX,aAAa,EACb,SAAS,EACT,UAAU,EACV,WAAW,EACX,SAAS,GACT,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACX,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,QAAQ,EACR,aAAa,GACb,MAAM,gBAAgB,CAAC"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAYH,mDAAoD;AAA3C,kHAAA,gBAAgB,OAAA;AAoBzB,2CAAgE;AAAvD,yGAAA,WAAW,OAAA;AAAE,iHAAA,mBAAmB,OAAA;AAQzC,mDAAgD;AAAvC,8GAAA,YAAY,OAAA;AAoErB,gDAQ6B;AAP5B,oGAAA,QAAQ,OAAA;AACR,uGAAA,WAAW,OAAA;AACX,yGAAA,aAAa,OAAA;AACb,qGAAA,SAAS,OAAA;AACT,sGAAA,UAAU,OAAA;AACV,uGAAA,WAAW,OAAA;AACX,qGAAA,SAAS,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport type {\n\tDriverError,\n\tIAnyDriverError,\n\tIAuthorizationError,\n\tIDriverErrorBase,\n\tIDriverBasicError,\n\tIGenericNetworkError,\n\tILocationRedirectionError,\n\tIThrottlingWarning,\n} from \"./driverError.js\";\nexport { DriverErrorTypes } from \"./driverError.js\";\nexport type {\n\tFiveDaysMs,\n\tIDeltasFetchResult,\n\tIDeltaStorageService,\n\tIDocumentDeltaConnection,\n\tIDocumentDeltaConnectionEvents,\n\tIDocumentDeltaStorageService,\n\tIDocumentService,\n\tIDocumentServiceEvents,\n\tIDocumentServiceFactory,\n\tIDocumentServicePolicies,\n\tIDocumentStorageService,\n\tIDocumentStorageServicePolicies,\n\tISnapshot,\n\tISnapshotFetchOptions,\n\tIStream,\n\tIStreamResult,\n\tISummaryContext,\n} from \"./storage.js\";\nexport { FetchSource, LoaderCachingPolicy } from \"./storage.js\";\nexport type {\n\tDriverPreCheckInfo,\n\tIContainerPackageInfo,\n\tIDriverHeader,\n\tIResolvedUrl,\n\tIUrlResolver,\n} from \"./urlResolver.js\";\nexport { DriverHeader } from \"./urlResolver.js\";\n\nexport type {\n\tConnectionMode,\n\tIActorClient,\n\tIApprovedProposal,\n\tIAttachment,\n\tIBlob,\n\tIBranchOrigin,\n\tICapabilities,\n\tIClient,\n\tIClientConfiguration,\n\tIClientDetails,\n\tIClientJoin,\n\tICommittedProposal,\n\tIConnect,\n\tIConnected,\n\tICreateBlobResponse,\n\tIDocumentAttributes,\n\tIDocumentMessage,\n\tIDocumentSystemMessage,\n\tINack,\n\tINackContent,\n\tIProcessMessageResult,\n\tIProposal,\n\tIProtocolState,\n\tIQuorum,\n\tIQuorumClients,\n\tIQuorumClientsEvents,\n\tIQuorumEvents,\n\tIQuorumProposals,\n\tIQuorumProposalsEvents,\n\tISentSignalMessage,\n\tISequencedClient,\n\tISequencedDocumentAugmentedMessage,\n\tISequencedDocumentMessage,\n\tISequencedDocumentMessageExperimental,\n\tISequencedDocumentSystemMessage,\n\tISequencedProposal,\n\tIServerError,\n\tISignalClient,\n\tISignalMessage,\n\tISignalMessageBase,\n\tISnapshotTree,\n\tISnapshotTreeEx,\n\tIsoDate,\n\tISummaryAck,\n\tISummaryAttachment,\n\tISummaryBlob,\n\tISummaryContent,\n\tISummaryHandle,\n\tISummaryNack,\n\tISummaryProposal,\n\tISummaryTokenClaims,\n\tISummaryTree,\n\tITokenClaims,\n\tITokenProvider,\n\tITokenService,\n\tITrace,\n\tITree,\n\tITreeEntry,\n\tIUploadedSummaryDetails,\n\tIUser,\n\tIVersion,\n\tSummaryObject,\n\tSummaryTree,\n\tSummaryTypeNoHandle,\n} from \"./protocol/index.js\";\nexport {\n\tFileMode,\n\tMessageType,\n\tNackErrorType,\n\tScopeType,\n\tSignalType,\n\tSummaryType,\n\tTreeEntry,\n} from \"./protocol/index.js\";\nexport type {\n\tIGitAuthor,\n\tIGitBlob,\n\tIGitCommitDetails,\n\tIGitCommitHash,\n\tIGitCommitter,\n\tIGitCreateBlobParams,\n\tIGitCreateBlobResponse,\n\tIGitCreateTreeEntry,\n\tIGitCreateTreeParams,\n\tIGitTree,\n\tIGitTreeEntry,\n} from \"./git/index.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAYH,mDAAoD;AAA3C,kHAAA,gBAAgB,OAAA;AAoBzB,2CAAgE;AAAvD,yGAAA,WAAW,OAAA;AAAE,iHAAA,mBAAmB,OAAA;AAQzC,mDAAgD;AAAvC,8GAAA,YAAY,OAAA;AA6DrB,gDAQ6B;AAP5B,oGAAA,QAAQ,OAAA;AACR,uGAAA,WAAW,OAAA;AACX,yGAAA,aAAa,OAAA;AACb,qGAAA,SAAS,OAAA;AACT,sGAAA,UAAU,OAAA;AACV,uGAAA,WAAW,OAAA;AACX,qGAAA,SAAS,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport type {\n\tDriverError,\n\tIAnyDriverError,\n\tIAuthorizationError,\n\tIDriverErrorBase,\n\tIDriverBasicError,\n\tIGenericNetworkError,\n\tILocationRedirectionError,\n\tIThrottlingWarning,\n} from \"./driverError.js\";\nexport { DriverErrorTypes } from \"./driverError.js\";\nexport type {\n\tFiveDaysMs,\n\tIDeltasFetchResult,\n\tIDeltaStorageService,\n\tIDocumentDeltaConnection,\n\tIDocumentDeltaConnectionEvents,\n\tIDocumentDeltaStorageService,\n\tIDocumentService,\n\tIDocumentServiceEvents,\n\tIDocumentServiceFactory,\n\tIDocumentServicePolicies,\n\tIDocumentStorageService,\n\tIDocumentStorageServicePolicies,\n\tISnapshot,\n\tISnapshotFetchOptions,\n\tIStream,\n\tIStreamResult,\n\tISummaryContext,\n} from \"./storage.js\";\nexport { FetchSource, LoaderCachingPolicy } from \"./storage.js\";\nexport type {\n\tDriverPreCheckInfo,\n\tIContainerPackageInfo,\n\tIDriverHeader,\n\tIResolvedUrl,\n\tIUrlResolver,\n} from \"./urlResolver.js\";\nexport { DriverHeader } from \"./urlResolver.js\";\n\nexport type {\n\tConnectionMode,\n\tIApprovedProposal,\n\tIAttachment,\n\tIBlob,\n\tIBranchOrigin,\n\tICapabilities,\n\tIClient,\n\tIClientConfiguration,\n\tIClientDetails,\n\tIClientJoin,\n\tICommittedProposal,\n\tIConnect,\n\tIConnected,\n\tICreateBlobResponse,\n\tIDocumentAttributes,\n\tIDocumentMessage,\n\tIDocumentSystemMessage,\n\tINack,\n\tINackContent,\n\tIProcessMessageResult,\n\tIProposal,\n\tIProtocolState,\n\tIQuorum,\n\tIQuorumClients,\n\tIQuorumProposals,\n\tISentSignalMessage,\n\tISequencedClient,\n\tISequencedDocumentAugmentedMessage,\n\tISequencedDocumentMessage,\n\tISequencedDocumentMessageExperimental,\n\tISequencedDocumentSystemMessage,\n\tISequencedProposal,\n\tIServerError,\n\tISignalClient,\n\tISignalMessage,\n\tISignalMessageBase,\n\tISnapshotTree,\n\tISnapshotTreeEx,\n\tIsoDate,\n\tISummaryAck,\n\tISummaryAttachment,\n\tISummaryBlob,\n\tISummaryContent,\n\tISummaryHandle,\n\tISummaryNack,\n\tISummaryProposal,\n\tISummaryTree,\n\tITokenClaims,\n\tITrace,\n\tITree,\n\tITreeEntry,\n\tIUploadedSummaryDetails,\n\tIUser,\n\tIVersion,\n\tSummaryObject,\n\tSummaryTree,\n\tSummaryTypeNoHandle,\n} from \"./protocol/index.js\";\nexport {\n\tFileMode,\n\tMessageType,\n\tNackErrorType,\n\tScopeType,\n\tSignalType,\n\tSummaryType,\n\tTreeEntry,\n} from \"./protocol/index.js\";\nexport type {\n\tIGitAuthor,\n\tIGitBlob,\n\tIGitCommitDetails,\n\tIGitCommitHash,\n\tIGitCommitter,\n\tIGitCreateBlobParams,\n\tIGitCreateBlobResponse,\n\tIGitCreateTreeEntry,\n\tIGitCreateTreeParams,\n\tIGitTree,\n\tIGitTreeEntry,\n} from \"./git/index.js\";\n"]}
package/dist/package.json CHANGED
@@ -1,3 +1,4 @@
1
1
  {
2
- "type": "commonjs"
2
+ "type": "commonjs",
3
+ "sideEffects": false
3
4
  }
@@ -47,33 +47,6 @@ export type IApprovedProposal = {
47
47
  export type ICommittedProposal = {
48
48
  commitSequenceNumber: number;
49
49
  } & IApprovedProposal;
50
- /**
51
- * @deprecated This type is now unused and will be removed
52
- * Events fired by a Quorum in response to client tracking.
53
- * @internal
54
- *
55
- */
56
- export interface IQuorumClientsEvents {
57
- (event: "addMember", listener: (clientId: string, details: ISequencedClient) => void): any;
58
- (event: "removeMember", listener: (clientId: string) => void): any;
59
- (event: "error", listener: (message: any) => void): any;
60
- }
61
- /**
62
- * Events fired by a Quorum in response to proposal tracking.
63
- * @internal
64
- * @deprecated This type is now unused and will be removed
65
- */
66
- export interface IQuorumProposalsEvents {
67
- (event: "addProposal", listener: (proposal: ISequencedProposal) => void): any;
68
- (event: "approveProposal", listener: (sequenceNumber: number, key: string, value: unknown, approvalSequenceNumber: number) => void): any;
69
- (event: "error", listener: (message: any) => void): void;
70
- }
71
- /**
72
- * All events fired by {@link IQuorum}, both client tracking and proposal tracking.
73
- * @internal
74
- * @deprecated This type is now unused and will be removed
75
- */
76
- export type IQuorumEvents = IQuorumClientsEvents & IQuorumProposalsEvents;
77
50
  /**
78
51
  * Interface for tracking clients in the Quorum.
79
52
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"consensus.d.ts","sourceRoot":"","sources":["../../src/protocol/consensus.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD;;;;;;;;;GASG;AACH,MAAM,WAAW,SAAS;IACzB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;CACf;AAED;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAAE,cAAc,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAAC;AAExE;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAAE,sBAAsB,EAAE,MAAM,CAAA;CAAE,GAAG,kBAAkB,CAAC;AAExF;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAAE,oBAAoB,EAAE,MAAM,CAAA;CAAE,GAAG,iBAAiB,CAAC;AAEtF;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACpC,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,KAAK,IAAI,OAAE;IACtF,CAAC,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,OAAE;IAE9D,CAAC,K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I,CAAC,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,OAAO,EAAE,CAAC,MAAM,EAAE,gBAAgB,CAAC,EAAE,CAAC;IACtC,SAAS,EAAE,CAAC,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;IACpD,MAAM,EAAE,CAAC,MAAM,EAAE,kBAAkB,CAAC,EAAE,CAAC;CACvC;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACrC,aAAa,CAAC,EAAE,OAAO,CAAC;CACxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"consensus.js","sourceRoot":"","sources":["../../src/protocol/consensus.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { ISequencedClient } from \"./clients.js\";\n\n/**\n * Proposal to set the given key/value pair.\n *\n * @remarks\n * Consensus on the proposal is achieved if the MSN is \\>= the sequence number\n * at which the proposal is made and no client within the collaboration window rejects\n * the proposal.\n * @legacy\n * @alpha\n */\nexport interface IProposal {\n\t/**\n\t * The key for the proposal.\n\t */\n\tkey: string;\n\n\t/**\n\t * The value of the proposal.\n\t */\n\tvalue: unknown;\n}\n\n/**\n * Similar to {@link IProposal} except it also includes the sequence number when it was made.\n * @legacy\n * @alpha\n */\nexport type ISequencedProposal = { sequenceNumber: number } & IProposal;\n\n/**\n * Adds the sequence number at which the message was approved to an {@link ISequencedProposal}.\n * @legacy\n * @alpha\n */\nexport type IApprovedProposal = { approvalSequenceNumber: number } & ISequencedProposal;\n\n/**\n * Adds the sequence number at which the message was committed to an {@link IApprovedProposal}.\n * @legacy\n * @alpha\n */\nexport type ICommittedProposal = { commitSequenceNumber: number } & IApprovedProposal;\n\n/**\n * @deprecated This type is now unused and will be removed\n * Events fired by a Quorum in response to client tracking.\n * @internal\n *\n */\nexport interface IQuorumClientsEvents {\n\t(event: \"addMember\", listener: (clientId: string, details: ISequencedClient) => void);\n\t(event: \"removeMember\", listener: (clientId: string) => void);\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t(event: \"error\", listener: (message: any) => void);\n}\n\n/**\n * Events fired by a Quorum in response to proposal tracking.\n * @internal\n * @deprecated This type is now unused and will be removed\n */\nexport interface IQuorumProposalsEvents {\n\t(event: \"addProposal\", listener: (proposal: ISequencedProposal) => void);\n\t(\n\t\tevent: \"approveProposal\",\n\t\tlistener: (\n\t\t\tsequenceNumber: number,\n\t\t\tkey: string,\n\t\t\tvalue: unknown,\n\t\t\tapprovalSequenceNumber: number,\n\t\t) => void,\n\t);\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t(event: \"error\", listener: (message: any) => void): void;\n}\n\n/**\n * All events fired by {@link IQuorum}, both client tracking and proposal tracking.\n * @internal\n * @deprecated This type is now unused and will be removed\n */\nexport type IQuorumEvents = IQuorumClientsEvents & IQuorumProposalsEvents;\n\n/**\n * Interface for tracking clients in the Quorum.\n * @public\n */\nexport interface IQuorumClients {\n\tgetMembers(): Map<string, ISequencedClient>;\n\tgetMember(clientId: string): ISequencedClient | undefined;\n\ton(event: \"addMember\", listener: (clientId: string, details: ISequencedClient) => void);\n\ton(event: \"removeMember\", listener: (clientId: string) => void);\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\ton(event: \"error\", listener: (message: any) => void);\n\tonce: IQuorumClients[\"on\"];\n\toff: IQuorumClients[\"on\"];\n}\n\n/**\n * Interface for tracking proposals in the Quorum.\n * @legacy\n * @alpha\n */\nexport interface IQuorumProposals {\n\tpropose(key: string, value: unknown): Promise<void>;\n\n\thas(key: string): boolean;\n\n\tget(key: string): unknown;\n\n\ton(event: \"addProposal\", listener: (proposal: ISequencedProposal) => void);\n\ton(\n\t\tevent: \"approveProposal\",\n\t\tlistener: (\n\t\t\tsequenceNumber: number,\n\t\t\tkey: string,\n\t\t\tvalue: unknown,\n\t\t\tapprovalSequenceNumber: number,\n\t\t) => void,\n\t);\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\ton(event: \"error\", listener: (message: any) => void): void;\n\tonce: IQuorumProposals[\"on\"];\n\toff: IQuorumProposals[\"on\"];\n}\n\n/**\n * Interface combining tracking of clients as well as proposals in the Quorum.\n * @legacy\n * @alpha\n */\nexport interface IQuorum\n\textends Omit<IQuorumClients, \"on\" | \"once\" | \"off\">,\n\t\tOmit<IQuorumProposals, \"on\" | \"once\" | \"off\"> {\n\ton: IQuorumClients[\"on\"] & IQuorumProposals[\"on\"];\n\tonce: IQuorum[\"on\"];\n\toff: IQuorum[\"on\"];\n}\n\n/**\n * @internal\n */\nexport interface IProtocolState {\n\tsequenceNumber: number;\n\tminimumSequenceNumber: number;\n\tmembers: [string, ISequencedClient][];\n\tproposals: [number, ISequencedProposal, string[]][];\n\tvalues: [string, ICommittedProposal][];\n}\n\n/**\n * @legacy\n * @alpha\n */\nexport interface IProcessMessageResult {\n\timmediateNoOp?: boolean;\n}\n"]}
1
+ {"version":3,"file":"consensus.js","sourceRoot":"","sources":["../../src/protocol/consensus.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { ISequencedClient } from \"./clients.js\";\n\n/**\n * Proposal to set the given key/value pair.\n *\n * @remarks\n * Consensus on the proposal is achieved if the MSN is \\>= the sequence number\n * at which the proposal is made and no client within the collaboration window rejects\n * the proposal.\n * @legacy\n * @alpha\n */\nexport interface IProposal {\n\t/**\n\t * The key for the proposal.\n\t */\n\tkey: string;\n\n\t/**\n\t * The value of the proposal.\n\t */\n\tvalue: unknown;\n}\n\n/**\n * Similar to {@link IProposal} except it also includes the sequence number when it was made.\n * @legacy\n * @alpha\n */\nexport type ISequencedProposal = { sequenceNumber: number } & IProposal;\n\n/**\n * Adds the sequence number at which the message was approved to an {@link ISequencedProposal}.\n * @legacy\n * @alpha\n */\nexport type IApprovedProposal = { approvalSequenceNumber: number } & ISequencedProposal;\n\n/**\n * Adds the sequence number at which the message was committed to an {@link IApprovedProposal}.\n * @legacy\n * @alpha\n */\nexport type ICommittedProposal = { commitSequenceNumber: number } & IApprovedProposal;\n\n/**\n * Interface for tracking clients in the Quorum.\n * @public\n */\nexport interface IQuorumClients {\n\tgetMembers(): Map<string, ISequencedClient>;\n\tgetMember(clientId: string): ISequencedClient | undefined;\n\ton(event: \"addMember\", listener: (clientId: string, details: ISequencedClient) => void);\n\ton(event: \"removeMember\", listener: (clientId: string) => void);\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\ton(event: \"error\", listener: (message: any) => void);\n\tonce: IQuorumClients[\"on\"];\n\toff: IQuorumClients[\"on\"];\n}\n\n/**\n * Interface for tracking proposals in the Quorum.\n * @legacy\n * @alpha\n */\nexport interface IQuorumProposals {\n\tpropose(key: string, value: unknown): Promise<void>;\n\n\thas(key: string): boolean;\n\n\tget(key: string): unknown;\n\n\ton(event: \"addProposal\", listener: (proposal: ISequencedProposal) => void);\n\ton(\n\t\tevent: \"approveProposal\",\n\t\tlistener: (\n\t\t\tsequenceNumber: number,\n\t\t\tkey: string,\n\t\t\tvalue: unknown,\n\t\t\tapprovalSequenceNumber: number,\n\t\t) => void,\n\t);\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\ton(event: \"error\", listener: (message: any) => void): void;\n\tonce: IQuorumProposals[\"on\"];\n\toff: IQuorumProposals[\"on\"];\n}\n\n/**\n * Interface combining tracking of clients as well as proposals in the Quorum.\n * @legacy\n * @alpha\n */\nexport interface IQuorum\n\textends Omit<IQuorumClients, \"on\" | \"once\" | \"off\">,\n\t\tOmit<IQuorumProposals, \"on\" | \"once\" | \"off\"> {\n\ton: IQuorumClients[\"on\"] & IQuorumProposals[\"on\"];\n\tonce: IQuorum[\"on\"];\n\toff: IQuorum[\"on\"];\n}\n\n/**\n * @internal\n */\nexport interface IProtocolState {\n\tsequenceNumber: number;\n\tminimumSequenceNumber: number;\n\tmembers: [string, ISequencedClient][];\n\tproposals: [number, ISequencedProposal, string[]][];\n\tvalues: [string, ICommittedProposal][];\n}\n\n/**\n * @legacy\n * @alpha\n */\nexport interface IProcessMessageResult {\n\timmediateNoOp?: boolean;\n}\n"]}
@@ -10,7 +10,7 @@
10
10
  */
11
11
  export type { ConnectionMode, ICapabilities, IClient, IClientDetails, IClientJoin, ISequencedClient, ISignalClient, } from "./clients.js";
12
12
  export type { IClientConfiguration } from "./config.js";
13
- export type { IApprovedProposal, ICommittedProposal, IProcessMessageResult, IProposal, IProtocolState, IQuorum, IQuorumClients, IQuorumClientsEvents, IQuorumEvents, IQuorumProposals, IQuorumProposalsEvents, ISequencedProposal, } from "./consensus.js";
13
+ export type { IApprovedProposal, ICommittedProposal, IProcessMessageResult, IProposal, IProtocolState, IQuorum, IQuorumClients, IQuorumProposals, ISequencedProposal, } from "./consensus.js";
14
14
  export type { IsoDate } from "./date.js";
15
15
  export type { IBranchOrigin, IDocumentMessage, IDocumentSystemMessage, INack, INackContent, ISentSignalMessage, ISequencedDocumentAugmentedMessage, ISequencedDocumentMessage, ISequencedDocumentMessageExperimental, ISequencedDocumentSystemMessage, IServerError, ISignalMessage, ISignalMessageBase, ISummaryAck, ISummaryContent, ISummaryNack, ISummaryProposal, ITrace, IUploadedSummaryDetails, } from "./protocol.js";
16
16
  export { MessageType, NackErrorType, SignalType } from "./protocol.js";
@@ -20,6 +20,6 @@ export type { IAttachment, IBlob, ICreateBlobResponse, IDocumentAttributes, ISna
20
20
  export { FileMode, TreeEntry } from "./storage.js";
21
21
  export type { ISummaryAttachment, ISummaryBlob, ISummaryHandle, ISummaryTree, SummaryObject, SummaryTree, SummaryTypeNoHandle, } from "./summary.js";
22
22
  export { SummaryType } from "./summary.js";
23
- export type { IActorClient, ISummaryTokenClaims, ITokenClaims, ITokenProvider, ITokenService, } from "./tokens.js";
23
+ export type { ITokenClaims } from "./tokens.js";
24
24
  export type { IUser } from "./users.js";
25
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/protocol/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AAEH,YAAY,EACX,cAAc,EACd,aAAa,EACb,OAAO,EACP,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,aAAa,GACb,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,YAAY,EACX,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,OAAO,EACP,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,kBAAkB,GAClB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,YAAY,EACX,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,KAAK,EACL,YAAY,EACZ,kBAAkB,EAClB,kCAAkC,EAClC,yBAAyB,EACzB,qCAAqC,EACrC,+BAA+B,EAC/B,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,MAAM,EACN,uBAAuB,GACvB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACzD,YAAY,EACX,WAAW,EACX,KAAK,EACL,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,KAAK,EACL,UAAU,EACV,QAAQ,GACR,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACnD,YAAY,EACX,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,aAAa,EACb,WAAW,EACX,mBAAmB,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EACX,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,aAAa,GACb,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/protocol/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AAEH,YAAY,EACX,cAAc,EACd,aAAa,EACb,OAAO,EACP,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,aAAa,GACb,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,YAAY,EACX,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,kBAAkB,GAClB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,YAAY,EACX,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,KAAK,EACL,YAAY,EACZ,kBAAkB,EAClB,kCAAkC,EAClC,yBAAyB,EACzB,qCAAqC,EACrC,+BAA+B,EAC/B,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,MAAM,EACN,uBAAuB,GACvB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACzD,YAAY,EACX,WAAW,EACX,KAAK,EACL,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,EACb,eAAe,EACf,KAAK,EACL,UAAU,EACV,QAAQ,GACR,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACnD,YAAY,EACX,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,aAAa,EACb,WAAW,EACX,mBAAmB,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/protocol/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAuDH,6CAAuE;AAA9D,0GAAA,WAAW,OAAA;AAAE,4GAAA,aAAa,OAAA;AAAE,yGAAA,UAAU,OAAA;AAC/C,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAalB,2CAAmD;AAA1C,sGAAA,QAAQ,OAAA;AAAE,uGAAA,SAAS,OAAA;AAU5B,2CAA2C;AAAlC,yGAAA,WAAW,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * Core set of Fluid protocol interfaces shared between services and clients.\n * These interfaces must always be back and forward compatible.\n *\n * @packageDocumentation\n */\n\nexport type {\n\tConnectionMode,\n\tICapabilities,\n\tIClient,\n\tIClientDetails,\n\tIClientJoin,\n\tISequencedClient,\n\tISignalClient,\n} from \"./clients.js\";\nexport type { IClientConfiguration } from \"./config.js\";\nexport type {\n\tIApprovedProposal,\n\tICommittedProposal,\n\tIProcessMessageResult,\n\tIProposal,\n\tIProtocolState,\n\tIQuorum,\n\tIQuorumClients,\n\tIQuorumClientsEvents,\n\tIQuorumEvents,\n\tIQuorumProposals,\n\tIQuorumProposalsEvents,\n\tISequencedProposal,\n} from \"./consensus.js\";\nexport type { IsoDate } from \"./date.js\";\nexport type {\n\tIBranchOrigin,\n\tIDocumentMessage,\n\tIDocumentSystemMessage,\n\tINack,\n\tINackContent,\n\tISentSignalMessage,\n\tISequencedDocumentAugmentedMessage,\n\tISequencedDocumentMessage,\n\tISequencedDocumentMessageExperimental,\n\tISequencedDocumentSystemMessage,\n\tIServerError,\n\tISignalMessage,\n\tISignalMessageBase,\n\tISummaryAck,\n\tISummaryContent,\n\tISummaryNack,\n\tISummaryProposal,\n\tITrace,\n\tIUploadedSummaryDetails,\n} from \"./protocol.js\";\nexport { MessageType, NackErrorType, SignalType } from \"./protocol.js\";\nexport { ScopeType } from \"./scopes.js\";\nexport type { IConnect, IConnected } from \"./sockets.js\";\nexport type {\n\tIAttachment,\n\tIBlob,\n\tICreateBlobResponse,\n\tIDocumentAttributes,\n\tISnapshotTree,\n\tISnapshotTreeEx,\n\tITree,\n\tITreeEntry,\n\tIVersion,\n} from \"./storage.js\";\nexport { FileMode, TreeEntry } from \"./storage.js\";\nexport type {\n\tISummaryAttachment,\n\tISummaryBlob,\n\tISummaryHandle,\n\tISummaryTree,\n\tSummaryObject,\n\tSummaryTree,\n\tSummaryTypeNoHandle,\n} from \"./summary.js\";\nexport { SummaryType } from \"./summary.js\";\nexport type {\n\tIActorClient,\n\tISummaryTokenClaims,\n\tITokenClaims,\n\tITokenProvider,\n\tITokenService,\n} from \"./tokens.js\";\nexport type { IUser } from \"./users.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/protocol/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAoDH,6CAAuE;AAA9D,0GAAA,WAAW,OAAA;AAAE,4GAAA,aAAa,OAAA;AAAE,yGAAA,UAAU,OAAA;AAC/C,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAalB,2CAAmD;AAA1C,sGAAA,QAAQ,OAAA;AAAE,uGAAA,SAAS,OAAA;AAU5B,2CAA2C;AAAlC,yGAAA,WAAW,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * Core set of Fluid protocol interfaces shared between services and clients.\n * These interfaces must always be back and forward compatible.\n *\n * @packageDocumentation\n */\n\nexport type {\n\tConnectionMode,\n\tICapabilities,\n\tIClient,\n\tIClientDetails,\n\tIClientJoin,\n\tISequencedClient,\n\tISignalClient,\n} from \"./clients.js\";\nexport type { IClientConfiguration } from \"./config.js\";\nexport type {\n\tIApprovedProposal,\n\tICommittedProposal,\n\tIProcessMessageResult,\n\tIProposal,\n\tIProtocolState,\n\tIQuorum,\n\tIQuorumClients,\n\tIQuorumProposals,\n\tISequencedProposal,\n} from \"./consensus.js\";\nexport type { IsoDate } from \"./date.js\";\nexport type {\n\tIBranchOrigin,\n\tIDocumentMessage,\n\tIDocumentSystemMessage,\n\tINack,\n\tINackContent,\n\tISentSignalMessage,\n\tISequencedDocumentAugmentedMessage,\n\tISequencedDocumentMessage,\n\tISequencedDocumentMessageExperimental,\n\tISequencedDocumentSystemMessage,\n\tIServerError,\n\tISignalMessage,\n\tISignalMessageBase,\n\tISummaryAck,\n\tISummaryContent,\n\tISummaryNack,\n\tISummaryProposal,\n\tITrace,\n\tIUploadedSummaryDetails,\n} from \"./protocol.js\";\nexport { MessageType, NackErrorType, SignalType } from \"./protocol.js\";\nexport { ScopeType } from \"./scopes.js\";\nexport type { IConnect, IConnected } from \"./sockets.js\";\nexport type {\n\tIAttachment,\n\tIBlob,\n\tICreateBlobResponse,\n\tIDocumentAttributes,\n\tISnapshotTree,\n\tISnapshotTreeEx,\n\tITree,\n\tITreeEntry,\n\tIVersion,\n} from \"./storage.js\";\nexport { FileMode, TreeEntry } from \"./storage.js\";\nexport type {\n\tISummaryAttachment,\n\tISummaryBlob,\n\tISummaryHandle,\n\tISummaryTree,\n\tSummaryObject,\n\tSummaryTree,\n\tSummaryTypeNoHandle,\n} from \"./summary.js\";\nexport { SummaryType } from \"./summary.js\";\nexport type { ITokenClaims } from \"./tokens.js\";\nexport type { IUser } from \"./users.js\";\n"]}
@@ -58,37 +58,4 @@ export interface ITokenClaims {
58
58
  */
59
59
  jti?: string;
60
60
  }
61
- /**
62
- * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.
63
- * @internal
64
- */
65
- export interface ISummaryTokenClaims {
66
- sub: string;
67
- act: IActorClient;
68
- claims: ITokenClaims;
69
- }
70
- /**
71
- * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.
72
- * @internal
73
- */
74
- export interface IActorClient {
75
- sub: string;
76
- }
77
- /**
78
- * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.
79
- * @internal
80
- */
81
- export interface ITokenService {
82
- extractClaims(token: string): ITokenClaims;
83
- }
84
- /**
85
- * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.
86
- * @internal
87
- */
88
- export interface ITokenProvider {
89
- /**
90
- * Whether or not the token is still valid to use.
91
- */
92
- isValid(): boolean;
93
- }
94
61
  //# sourceMappingURL=tokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/protocol/tokens.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC5B;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;IAEZ;;;;;;OAMG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;;OAMG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,YAAY,CAAC;IAClB,MAAM,EAAE,YAAY,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC5B,GAAG,EAAE,MAAM,CAAC;CACZ;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC7B,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CAAC;CAC3C;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC9B;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC;CACnB"}
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/protocol/tokens.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC5B;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;IAEZ;;;;;;OAMG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;;OAMG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACb"}
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/protocol/tokens.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { IUser } from \"./users.js\";\n\n/**\n * {@link https://jwt.io/introduction/ | JSON Web Token (JWT)} Claims\n *\n * See {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4}\n * @legacy\n * @alpha\n */\nexport interface ITokenClaims {\n\t/**\n\t * Identifies the document (a.k.a container) for which the token is being generated.\n\t * Generated by the service.\n\t */\n\tdocumentId: string;\n\n\t/**\n\t * Identifies the permissions required by the client on the document or summary.\n\t * For every scope, you can define the permissions you want to give to the client.\n\t */\n\tscopes: string[];\n\n\t/**\n\t * Unique tenant identifier.\n\t */\n\ttenantId: string;\n\n\t/**\n\t * User for whom the token was created.\n\t */\n\tuser: IUser;\n\n\t/**\n\t * \"Issued At\"\n\t * Indicates when the authentication for this token occurred.\n\t * Expressed in {@link https://en.wikipedia.org/wiki/Unix_time | Unix Time}.\n\t *\n\t * See {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6}\n\t */\n\tiat: number;\n\n\t/**\n\t * \"Expiration Time\"\n\t * Identifies the expiration time on or after which the token must not be accepted for processing.\n\t * Expressed in {@link https://en.wikipedia.org/wiki/Unix_time | Unix Time}.\n\t *\n\t * See {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4}\n\t */\n\texp: number;\n\n\t/**\n\t * \"Version\"\n\t * Version of the access token.\n\t */\n\tver: string;\n\n\t/**\n\t * \"JWT ID\"\n\t * A unique identifier for the token.\n\t *\n\t * See {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.7}\n\t */\n\tjti?: string;\n}\n\n/**\n * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.\n * @internal\n */\nexport interface ISummaryTokenClaims {\n\tsub: string;\n\tact: IActorClient;\n\tclaims: ITokenClaims;\n}\n\n/**\n * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.\n * @internal\n */\nexport interface IActorClient {\n\tsub: string;\n}\n\n/**\n * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.\n * @internal\n */\nexport interface ITokenService {\n\textractClaims(token: string): ITokenClaims;\n}\n\n/**\n * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.\n * @internal\n */\nexport interface ITokenProvider {\n\t/**\n\t * Whether or not the token is still valid to use.\n\t */\n\tisValid(): boolean;\n}\n"]}
1
+ {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/protocol/tokens.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { IUser } from \"./users.js\";\n\n/**\n * {@link https://jwt.io/introduction/ | JSON Web Token (JWT)} Claims\n *\n * See {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4}\n * @legacy\n * @alpha\n */\nexport interface ITokenClaims {\n\t/**\n\t * Identifies the document (a.k.a container) for which the token is being generated.\n\t * Generated by the service.\n\t */\n\tdocumentId: string;\n\n\t/**\n\t * Identifies the permissions required by the client on the document or summary.\n\t * For every scope, you can define the permissions you want to give to the client.\n\t */\n\tscopes: string[];\n\n\t/**\n\t * Unique tenant identifier.\n\t */\n\ttenantId: string;\n\n\t/**\n\t * User for whom the token was created.\n\t */\n\tuser: IUser;\n\n\t/**\n\t * \"Issued At\"\n\t * Indicates when the authentication for this token occurred.\n\t * Expressed in {@link https://en.wikipedia.org/wiki/Unix_time | Unix Time}.\n\t *\n\t * See {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6}\n\t */\n\tiat: number;\n\n\t/**\n\t * \"Expiration Time\"\n\t * Identifies the expiration time on or after which the token must not be accepted for processing.\n\t * Expressed in {@link https://en.wikipedia.org/wiki/Unix_time | Unix Time}.\n\t *\n\t * See {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4}\n\t */\n\texp: number;\n\n\t/**\n\t * \"Version\"\n\t * Version of the access token.\n\t */\n\tver: string;\n\n\t/**\n\t * \"JWT ID\"\n\t * A unique identifier for the token.\n\t *\n\t * See {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.7}\n\t */\n\tjti?: string;\n}\n"]}
package/lib/index.d.ts CHANGED
@@ -8,7 +8,7 @@ export type { FiveDaysMs, IDeltasFetchResult, IDeltaStorageService, IDocumentDel
8
8
  export { FetchSource, LoaderCachingPolicy } from "./storage.js";
9
9
  export type { DriverPreCheckInfo, IContainerPackageInfo, IDriverHeader, IResolvedUrl, IUrlResolver, } from "./urlResolver.js";
10
10
  export { DriverHeader } from "./urlResolver.js";
11
- export type { ConnectionMode, IActorClient, IApprovedProposal, IAttachment, IBlob, IBranchOrigin, ICapabilities, IClient, IClientConfiguration, IClientDetails, IClientJoin, ICommittedProposal, IConnect, IConnected, ICreateBlobResponse, IDocumentAttributes, IDocumentMessage, IDocumentSystemMessage, INack, INackContent, IProcessMessageResult, IProposal, IProtocolState, IQuorum, IQuorumClients, IQuorumClientsEvents, IQuorumEvents, IQuorumProposals, IQuorumProposalsEvents, ISentSignalMessage, ISequencedClient, ISequencedDocumentAugmentedMessage, ISequencedDocumentMessage, ISequencedDocumentMessageExperimental, ISequencedDocumentSystemMessage, ISequencedProposal, IServerError, ISignalClient, ISignalMessage, ISignalMessageBase, ISnapshotTree, ISnapshotTreeEx, IsoDate, ISummaryAck, ISummaryAttachment, ISummaryBlob, ISummaryContent, ISummaryHandle, ISummaryNack, ISummaryProposal, ISummaryTokenClaims, ISummaryTree, ITokenClaims, ITokenProvider, ITokenService, ITrace, ITree, ITreeEntry, IUploadedSummaryDetails, IUser, IVersion, SummaryObject, SummaryTree, SummaryTypeNoHandle, } from "./protocol/index.js";
11
+ export type { ConnectionMode, IApprovedProposal, IAttachment, IBlob, IBranchOrigin, ICapabilities, IClient, IClientConfiguration, IClientDetails, IClientJoin, ICommittedProposal, IConnect, IConnected, ICreateBlobResponse, IDocumentAttributes, IDocumentMessage, IDocumentSystemMessage, INack, INackContent, IProcessMessageResult, IProposal, IProtocolState, IQuorum, IQuorumClients, IQuorumProposals, ISentSignalMessage, ISequencedClient, ISequencedDocumentAugmentedMessage, ISequencedDocumentMessage, ISequencedDocumentMessageExperimental, ISequencedDocumentSystemMessage, ISequencedProposal, IServerError, ISignalClient, ISignalMessage, ISignalMessageBase, ISnapshotTree, ISnapshotTreeEx, IsoDate, ISummaryAck, ISummaryAttachment, ISummaryBlob, ISummaryContent, ISummaryHandle, ISummaryNack, ISummaryProposal, ISummaryTree, ITokenClaims, ITrace, ITree, ITreeEntry, IUploadedSummaryDetails, IUser, IVersion, SummaryObject, SummaryTree, SummaryTypeNoHandle, } from "./protocol/index.js";
12
12
  export { FileMode, MessageType, NackErrorType, ScopeType, SignalType, SummaryType, TreeEntry, } from "./protocol/index.js";
13
13
  export type { IGitAuthor, IGitBlob, IGitCommitDetails, IGitCommitHash, IGitCommitter, IGitCreateBlobParams, IGitCreateBlobResponse, IGitCreateTreeEntry, IGitCreateTreeParams, IGitTree, IGitTreeEntry, } from "./git/index.js";
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EACX,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,GAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EACX,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,8BAA8B,EAC9B,4BAA4B,EAC5B,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,+BAA+B,EAC/B,SAAS,EACT,qBAAqB,EACrB,OAAO,EACP,aAAa,EACb,eAAe,GACf,MAA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AAc,EACd,aAAa,EACb,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,QAAQ,EACR,aAAa,GACb,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EACX,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,EACzB,kBAAkB,GAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,YAAY,EACX,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,8BAA8B,EAC9B,4BAA4B,EAC5B,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,+BAA+B,EAC/B,SAAS,EACT,qBAAqB,EACrB,OAAO,EACP,aAAa,EACb,eAAe,GACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAChE,YAAY,EACX,kBAAkB,EAClB,qBAAqB,EACrB,aAAa,EACb,YAAY,EACZ,YAAY,GACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,YAAY,EACX,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,KAAK,EACL,aAAa,EACb,aAAa,EACb,OAAO,EACP,oBAAoB,EACpB,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,sBAAsB,EACtB,KAAK,EACL,YAAY,EACZ,qBAAqB,EACrB,SAAS,EACT,cAAc,EACd,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,kCAAkC,EAClC,yBAAyB,EACzB,qCAAqC,EACrC,+BAA+B,EAC/B,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,OAAO,EACP,WAAW,EACX,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,KAAK,EACL,UAAU,EACV,uBAAuB,EACvB,KAAK,EACL,QAAQ,EACR,aAAa,EACb,WAAW,EACX,mBAAmB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,QAAQ,EACR,WAAW,EACX,aAAa,EACb,SAAS,EACT,UAAU,EACV,WAAW,EACX,SAAS,GACT,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACX,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,QAAQ,EACR,aAAa,GACb,MAAM,gBAAgB,CAAC"}
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAYH,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAoBpD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAQhE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAoEhD,OAAO,EACN,QAAQ,EACR,WAAW,EACX,aAAa,EACb,SAAS,EACT,UAAU,EACV,WAAW,EACX,SAAS,GACT,MAAM,qBAAqB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport type {\n\tDriverError,\n\tIAnyDriverError,\n\tIAuthorizationError,\n\tIDriverErrorBase,\n\tIDriverBasicError,\n\tIGenericNetworkError,\n\tILocationRedirectionError,\n\tIThrottlingWarning,\n} from \"./driverError.js\";\nexport { DriverErrorTypes } from \"./driverError.js\";\nexport type {\n\tFiveDaysMs,\n\tIDeltasFetchResult,\n\tIDeltaStorageService,\n\tIDocumentDeltaConnection,\n\tIDocumentDeltaConnectionEvents,\n\tIDocumentDeltaStorageService,\n\tIDocumentService,\n\tIDocumentServiceEvents,\n\tIDocumentServiceFactory,\n\tIDocumentServicePolicies,\n\tIDocumentStorageService,\n\tIDocumentStorageServicePolicies,\n\tISnapshot,\n\tISnapshotFetchOptions,\n\tIStream,\n\tIStreamResult,\n\tISummaryContext,\n} from \"./storage.js\";\nexport { FetchSource, LoaderCachingPolicy } from \"./storage.js\";\nexport type {\n\tDriverPreCheckInfo,\n\tIContainerPackageInfo,\n\tIDriverHeader,\n\tIResolvedUrl,\n\tIUrlResolver,\n} from \"./urlResolver.js\";\nexport { DriverHeader } from \"./urlResolver.js\";\n\nexport type {\n\tConnectionMode,\n\tIActorClient,\n\tIApprovedProposal,\n\tIAttachment,\n\tIBlob,\n\tIBranchOrigin,\n\tICapabilities,\n\tIClient,\n\tIClientConfiguration,\n\tIClientDetails,\n\tIClientJoin,\n\tICommittedProposal,\n\tIConnect,\n\tIConnected,\n\tICreateBlobResponse,\n\tIDocumentAttributes,\n\tIDocumentMessage,\n\tIDocumentSystemMessage,\n\tINack,\n\tINackContent,\n\tIProcessMessageResult,\n\tIProposal,\n\tIProtocolState,\n\tIQuorum,\n\tIQuorumClients,\n\tIQuorumClientsEvents,\n\tIQuorumEvents,\n\tIQuorumProposals,\n\tIQuorumProposalsEvents,\n\tISentSignalMessage,\n\tISequencedClient,\n\tISequencedDocumentAugmentedMessage,\n\tISequencedDocumentMessage,\n\tISequencedDocumentMessageExperimental,\n\tISequencedDocumentSystemMessage,\n\tISequencedProposal,\n\tIServerError,\n\tISignalClient,\n\tISignalMessage,\n\tISignalMessageBase,\n\tISnapshotTree,\n\tISnapshotTreeEx,\n\tIsoDate,\n\tISummaryAck,\n\tISummaryAttachment,\n\tISummaryBlob,\n\tISummaryContent,\n\tISummaryHandle,\n\tISummaryNack,\n\tISummaryProposal,\n\tISummaryTokenClaims,\n\tISummaryTree,\n\tITokenClaims,\n\tITokenProvider,\n\tITokenService,\n\tITrace,\n\tITree,\n\tITreeEntry,\n\tIUploadedSummaryDetails,\n\tIUser,\n\tIVersion,\n\tSummaryObject,\n\tSummaryTree,\n\tSummaryTypeNoHandle,\n} from \"./protocol/index.js\";\nexport {\n\tFileMode,\n\tMessageType,\n\tNackErrorType,\n\tScopeType,\n\tSignalType,\n\tSummaryType,\n\tTreeEntry,\n} from \"./protocol/index.js\";\nexport type {\n\tIGitAuthor,\n\tIGitBlob,\n\tIGitCommitDetails,\n\tIGitCommitHash,\n\tIGitCommitter,\n\tIGitCreateBlobParams,\n\tIGitCreateBlobResponse,\n\tIGitCreateTreeEntry,\n\tIGitCreateTreeParams,\n\tIGitTree,\n\tIGitTreeEntry,\n} from \"./git/index.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAYH,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAoBpD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAQhE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AA6DhD,OAAO,EACN,QAAQ,EACR,WAAW,EACX,aAAa,EACb,SAAS,EACT,UAAU,EACV,WAAW,EACX,SAAS,GACT,MAAM,qBAAqB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport type {\n\tDriverError,\n\tIAnyDriverError,\n\tIAuthorizationError,\n\tIDriverErrorBase,\n\tIDriverBasicError,\n\tIGenericNetworkError,\n\tILocationRedirectionError,\n\tIThrottlingWarning,\n} from \"./driverError.js\";\nexport { DriverErrorTypes } from \"./driverError.js\";\nexport type {\n\tFiveDaysMs,\n\tIDeltasFetchResult,\n\tIDeltaStorageService,\n\tIDocumentDeltaConnection,\n\tIDocumentDeltaConnectionEvents,\n\tIDocumentDeltaStorageService,\n\tIDocumentService,\n\tIDocumentServiceEvents,\n\tIDocumentServiceFactory,\n\tIDocumentServicePolicies,\n\tIDocumentStorageService,\n\tIDocumentStorageServicePolicies,\n\tISnapshot,\n\tISnapshotFetchOptions,\n\tIStream,\n\tIStreamResult,\n\tISummaryContext,\n} from \"./storage.js\";\nexport { FetchSource, LoaderCachingPolicy } from \"./storage.js\";\nexport type {\n\tDriverPreCheckInfo,\n\tIContainerPackageInfo,\n\tIDriverHeader,\n\tIResolvedUrl,\n\tIUrlResolver,\n} from \"./urlResolver.js\";\nexport { DriverHeader } from \"./urlResolver.js\";\n\nexport type {\n\tConnectionMode,\n\tIApprovedProposal,\n\tIAttachment,\n\tIBlob,\n\tIBranchOrigin,\n\tICapabilities,\n\tIClient,\n\tIClientConfiguration,\n\tIClientDetails,\n\tIClientJoin,\n\tICommittedProposal,\n\tIConnect,\n\tIConnected,\n\tICreateBlobResponse,\n\tIDocumentAttributes,\n\tIDocumentMessage,\n\tIDocumentSystemMessage,\n\tINack,\n\tINackContent,\n\tIProcessMessageResult,\n\tIProposal,\n\tIProtocolState,\n\tIQuorum,\n\tIQuorumClients,\n\tIQuorumProposals,\n\tISentSignalMessage,\n\tISequencedClient,\n\tISequencedDocumentAugmentedMessage,\n\tISequencedDocumentMessage,\n\tISequencedDocumentMessageExperimental,\n\tISequencedDocumentSystemMessage,\n\tISequencedProposal,\n\tIServerError,\n\tISignalClient,\n\tISignalMessage,\n\tISignalMessageBase,\n\tISnapshotTree,\n\tISnapshotTreeEx,\n\tIsoDate,\n\tISummaryAck,\n\tISummaryAttachment,\n\tISummaryBlob,\n\tISummaryContent,\n\tISummaryHandle,\n\tISummaryNack,\n\tISummaryProposal,\n\tISummaryTree,\n\tITokenClaims,\n\tITrace,\n\tITree,\n\tITreeEntry,\n\tIUploadedSummaryDetails,\n\tIUser,\n\tIVersion,\n\tSummaryObject,\n\tSummaryTree,\n\tSummaryTypeNoHandle,\n} from \"./protocol/index.js\";\nexport {\n\tFileMode,\n\tMessageType,\n\tNackErrorType,\n\tScopeType,\n\tSignalType,\n\tSummaryType,\n\tTreeEntry,\n} from \"./protocol/index.js\";\nexport type {\n\tIGitAuthor,\n\tIGitBlob,\n\tIGitCommitDetails,\n\tIGitCommitHash,\n\tIGitCommitter,\n\tIGitCreateBlobParams,\n\tIGitCreateBlobResponse,\n\tIGitCreateTreeEntry,\n\tIGitCreateTreeParams,\n\tIGitTree,\n\tIGitTreeEntry,\n} from \"./git/index.js\";\n"]}
@@ -47,33 +47,6 @@ export type IApprovedProposal = {
47
47
  export type ICommittedProposal = {
48
48
  commitSequenceNumber: number;
49
49
  } & IApprovedProposal;
50
- /**
51
- * @deprecated This type is now unused and will be removed
52
- * Events fired by a Quorum in response to client tracking.
53
- * @internal
54
- *
55
- */
56
- export interface IQuorumClientsEvents {
57
- (event: "addMember", listener: (clientId: string, details: ISequencedClient) => void): any;
58
- (event: "removeMember", listener: (clientId: string) => void): any;
59
- (event: "error", listener: (message: any) => void): any;
60
- }
61
- /**
62
- * Events fired by a Quorum in response to proposal tracking.
63
- * @internal
64
- * @deprecated This type is now unused and will be removed
65
- */
66
- export interface IQuorumProposalsEvents {
67
- (event: "addProposal", listener: (proposal: ISequencedProposal) => void): any;
68
- (event: "approveProposal", listener: (sequenceNumber: number, key: string, value: unknown, approvalSequenceNumber: number) => void): any;
69
- (event: "error", listener: (message: any) => void): void;
70
- }
71
- /**
72
- * All events fired by {@link IQuorum}, both client tracking and proposal tracking.
73
- * @internal
74
- * @deprecated This type is now unused and will be removed
75
- */
76
- export type IQuorumEvents = IQuorumClientsEvents & IQuorumProposalsEvents;
77
50
  /**
78
51
  * Interface for tracking clients in the Quorum.
79
52
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"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,EAAE,OAAO,CAAC;CACxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"consensus.js","sourceRoot":"","sources":["../../src/protocol/consensus.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { ISequencedClient } from \"./clients.js\";\n\n/**\n * Proposal to set the given key/value pair.\n *\n * @remarks\n * Consensus on the proposal is achieved if the MSN is \\>= the sequence number\n * at which the proposal is made and no client within the collaboration window rejects\n * the proposal.\n * @legacy\n * @alpha\n */\nexport interface IProposal {\n\t/**\n\t * The key for the proposal.\n\t */\n\tkey: string;\n\n\t/**\n\t * The value of the proposal.\n\t */\n\tvalue: unknown;\n}\n\n/**\n * Similar to {@link IProposal} except it also includes the sequence number when it was made.\n * @legacy\n * @alpha\n */\nexport type ISequencedProposal = { sequenceNumber: number } & IProposal;\n\n/**\n * Adds the sequence number at which the message was approved to an {@link ISequencedProposal}.\n * @legacy\n * @alpha\n */\nexport type IApprovedProposal = { approvalSequenceNumber: number } & ISequencedProposal;\n\n/**\n * Adds the sequence number at which the message was committed to an {@link IApprovedProposal}.\n * @legacy\n * @alpha\n */\nexport type ICommittedProposal = { commitSequenceNumber: number } & IApprovedProposal;\n\n/**\n * @deprecated This type is now unused and will be removed\n * Events fired by a Quorum in response to client tracking.\n * @internal\n *\n */\nexport interface IQuorumClientsEvents {\n\t(event: \"addMember\", listener: (clientId: string, details: ISequencedClient) => void);\n\t(event: \"removeMember\", listener: (clientId: string) => void);\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t(event: \"error\", listener: (message: any) => void);\n}\n\n/**\n * Events fired by a Quorum in response to proposal tracking.\n * @internal\n * @deprecated This type is now unused and will be removed\n */\nexport interface IQuorumProposalsEvents {\n\t(event: \"addProposal\", listener: (proposal: ISequencedProposal) => void);\n\t(\n\t\tevent: \"approveProposal\",\n\t\tlistener: (\n\t\t\tsequenceNumber: number,\n\t\t\tkey: string,\n\t\t\tvalue: unknown,\n\t\t\tapprovalSequenceNumber: number,\n\t\t) => void,\n\t);\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t(event: \"error\", listener: (message: any) => void): void;\n}\n\n/**\n * All events fired by {@link IQuorum}, both client tracking and proposal tracking.\n * @internal\n * @deprecated This type is now unused and will be removed\n */\nexport type IQuorumEvents = IQuorumClientsEvents & IQuorumProposalsEvents;\n\n/**\n * Interface for tracking clients in the Quorum.\n * @public\n */\nexport interface IQuorumClients {\n\tgetMembers(): Map<string, ISequencedClient>;\n\tgetMember(clientId: string): ISequencedClient | undefined;\n\ton(event: \"addMember\", listener: (clientId: string, details: ISequencedClient) => void);\n\ton(event: \"removeMember\", listener: (clientId: string) => void);\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\ton(event: \"error\", listener: (message: any) => void);\n\tonce: IQuorumClients[\"on\"];\n\toff: IQuorumClients[\"on\"];\n}\n\n/**\n * Interface for tracking proposals in the Quorum.\n * @legacy\n * @alpha\n */\nexport interface IQuorumProposals {\n\tpropose(key: string, value: unknown): Promise<void>;\n\n\thas(key: string): boolean;\n\n\tget(key: string): unknown;\n\n\ton(event: \"addProposal\", listener: (proposal: ISequencedProposal) => void);\n\ton(\n\t\tevent: \"approveProposal\",\n\t\tlistener: (\n\t\t\tsequenceNumber: number,\n\t\t\tkey: string,\n\t\t\tvalue: unknown,\n\t\t\tapprovalSequenceNumber: number,\n\t\t) => void,\n\t);\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\ton(event: \"error\", listener: (message: any) => void): void;\n\tonce: IQuorumProposals[\"on\"];\n\toff: IQuorumProposals[\"on\"];\n}\n\n/**\n * Interface combining tracking of clients as well as proposals in the Quorum.\n * @legacy\n * @alpha\n */\nexport interface IQuorum\n\textends Omit<IQuorumClients, \"on\" | \"once\" | \"off\">,\n\t\tOmit<IQuorumProposals, \"on\" | \"once\" | \"off\"> {\n\ton: IQuorumClients[\"on\"] & IQuorumProposals[\"on\"];\n\tonce: IQuorum[\"on\"];\n\toff: IQuorum[\"on\"];\n}\n\n/**\n * @internal\n */\nexport interface IProtocolState {\n\tsequenceNumber: number;\n\tminimumSequenceNumber: number;\n\tmembers: [string, ISequencedClient][];\n\tproposals: [number, ISequencedProposal, string[]][];\n\tvalues: [string, ICommittedProposal][];\n}\n\n/**\n * @legacy\n * @alpha\n */\nexport interface IProcessMessageResult {\n\timmediateNoOp?: boolean;\n}\n"]}
1
+ {"version":3,"file":"consensus.js","sourceRoot":"","sources":["../../src/protocol/consensus.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { ISequencedClient } from \"./clients.js\";\n\n/**\n * Proposal to set the given key/value pair.\n *\n * @remarks\n * Consensus on the proposal is achieved if the MSN is \\>= the sequence number\n * at which the proposal is made and no client within the collaboration window rejects\n * the proposal.\n * @legacy\n * @alpha\n */\nexport interface IProposal {\n\t/**\n\t * The key for the proposal.\n\t */\n\tkey: string;\n\n\t/**\n\t * The value of the proposal.\n\t */\n\tvalue: unknown;\n}\n\n/**\n * Similar to {@link IProposal} except it also includes the sequence number when it was made.\n * @legacy\n * @alpha\n */\nexport type ISequencedProposal = { sequenceNumber: number } & IProposal;\n\n/**\n * Adds the sequence number at which the message was approved to an {@link ISequencedProposal}.\n * @legacy\n * @alpha\n */\nexport type IApprovedProposal = { approvalSequenceNumber: number } & ISequencedProposal;\n\n/**\n * Adds the sequence number at which the message was committed to an {@link IApprovedProposal}.\n * @legacy\n * @alpha\n */\nexport type ICommittedProposal = { commitSequenceNumber: number } & IApprovedProposal;\n\n/**\n * Interface for tracking clients in the Quorum.\n * @public\n */\nexport interface IQuorumClients {\n\tgetMembers(): Map<string, ISequencedClient>;\n\tgetMember(clientId: string): ISequencedClient | undefined;\n\ton(event: \"addMember\", listener: (clientId: string, details: ISequencedClient) => void);\n\ton(event: \"removeMember\", listener: (clientId: string) => void);\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\ton(event: \"error\", listener: (message: any) => void);\n\tonce: IQuorumClients[\"on\"];\n\toff: IQuorumClients[\"on\"];\n}\n\n/**\n * Interface for tracking proposals in the Quorum.\n * @legacy\n * @alpha\n */\nexport interface IQuorumProposals {\n\tpropose(key: string, value: unknown): Promise<void>;\n\n\thas(key: string): boolean;\n\n\tget(key: string): unknown;\n\n\ton(event: \"addProposal\", listener: (proposal: ISequencedProposal) => void);\n\ton(\n\t\tevent: \"approveProposal\",\n\t\tlistener: (\n\t\t\tsequenceNumber: number,\n\t\t\tkey: string,\n\t\t\tvalue: unknown,\n\t\t\tapprovalSequenceNumber: number,\n\t\t) => void,\n\t);\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\ton(event: \"error\", listener: (message: any) => void): void;\n\tonce: IQuorumProposals[\"on\"];\n\toff: IQuorumProposals[\"on\"];\n}\n\n/**\n * Interface combining tracking of clients as well as proposals in the Quorum.\n * @legacy\n * @alpha\n */\nexport interface IQuorum\n\textends Omit<IQuorumClients, \"on\" | \"once\" | \"off\">,\n\t\tOmit<IQuorumProposals, \"on\" | \"once\" | \"off\"> {\n\ton: IQuorumClients[\"on\"] & IQuorumProposals[\"on\"];\n\tonce: IQuorum[\"on\"];\n\toff: IQuorum[\"on\"];\n}\n\n/**\n * @internal\n */\nexport interface IProtocolState {\n\tsequenceNumber: number;\n\tminimumSequenceNumber: number;\n\tmembers: [string, ISequencedClient][];\n\tproposals: [number, ISequencedProposal, string[]][];\n\tvalues: [string, ICommittedProposal][];\n}\n\n/**\n * @legacy\n * @alpha\n */\nexport interface IProcessMessageResult {\n\timmediateNoOp?: boolean;\n}\n"]}
@@ -10,7 +10,7 @@
10
10
  */
11
11
  export type { ConnectionMode, ICapabilities, IClient, IClientDetails, IClientJoin, ISequencedClient, ISignalClient, } from "./clients.js";
12
12
  export type { IClientConfiguration } from "./config.js";
13
- export type { IApprovedProposal, ICommittedProposal, IProcessMessageResult, IProposal, IProtocolState, IQuorum, IQuorumClients, IQuorumClientsEvents, IQuorumEvents, IQuorumProposals, IQuorumProposalsEvents, ISequencedProposal, } from "./consensus.js";
13
+ export type { IApprovedProposal, ICommittedProposal, IProcessMessageResult, IProposal, IProtocolState, IQuorum, IQuorumClients, IQuorumProposals, ISequencedProposal, } from "./consensus.js";
14
14
  export type { IsoDate } from "./date.js";
15
15
  export type { IBranchOrigin, IDocumentMessage, IDocumentSystemMessage, INack, INackContent, ISentSignalMessage, ISequencedDocumentAugmentedMessage, ISequencedDocumentMessage, ISequencedDocumentMessageExperimental, ISequencedDocumentSystemMessage, IServerError, ISignalMessage, ISignalMessageBase, ISummaryAck, ISummaryContent, ISummaryNack, ISummaryProposal, ITrace, IUploadedSummaryDetails, } from "./protocol.js";
16
16
  export { MessageType, NackErrorType, SignalType } from "./protocol.js";
@@ -20,6 +20,6 @@ export type { IAttachment, IBlob, ICreateBlobResponse, IDocumentAttributes, ISna
20
20
  export { FileMode, TreeEntry } from "./storage.js";
21
21
  export type { ISummaryAttachment, ISummaryBlob, ISummaryHandle, ISummaryTree, SummaryObject, SummaryTree, SummaryTypeNoHandle, } from "./summary.js";
22
22
  export { SummaryType } from "./summary.js";
23
- export type { IActorClient, ISummaryTokenClaims, ITokenClaims, ITokenProvider, ITokenService, } from "./tokens.js";
23
+ export type { ITokenClaims } from "./tokens.js";
24
24
  export type { IUser } from "./users.js";
25
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/protocol/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AAEH,YAAY,EACX,cAAc,EACd,aAAa,EACb,OAAO,EACP,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,aAAa,GACb,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,YAAY,EACX,iBAAiB,EACj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WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/protocol/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuDH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAaxC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAUnD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * Core set of Fluid protocol interfaces shared between services and clients.\n * These interfaces must always be back and forward compatible.\n *\n * @packageDocumentation\n */\n\nexport type {\n\tConnectionMode,\n\tICapabilities,\n\tIClient,\n\tIClientDetails,\n\tIClientJoin,\n\tISequencedClient,\n\tISignalClient,\n} from \"./clients.js\";\nexport type { IClientConfiguration } from \"./config.js\";\nexport type {\n\tIApprovedProposal,\n\tICommittedProposal,\n\tIProcessMessageResult,\n\tIProposal,\n\tIProtocolState,\n\tIQuorum,\n\tIQuorumClients,\n\tIQuorumClientsEvents,\n\tIQuorumEvents,\n\tIQuorumProposals,\n\tIQuorumProposalsEvents,\n\tISequencedProposal,\n} from \"./consensus.js\";\nexport type { IsoDate } from \"./date.js\";\nexport type {\n\tIBranchOrigin,\n\tIDocumentMessage,\n\tIDocumentSystemMessage,\n\tINack,\n\tINackContent,\n\tISentSignalMessage,\n\tISequencedDocumentAugmentedMessage,\n\tISequencedDocumentMessage,\n\tISequencedDocumentMessageExperimental,\n\tISequencedDocumentSystemMessage,\n\tIServerError,\n\tISignalMessage,\n\tISignalMessageBase,\n\tISummaryAck,\n\tISummaryContent,\n\tISummaryNack,\n\tISummaryProposal,\n\tITrace,\n\tIUploadedSummaryDetails,\n} from \"./protocol.js\";\nexport { MessageType, NackErrorType, SignalType } from \"./protocol.js\";\nexport { ScopeType } from \"./scopes.js\";\nexport type { IConnect, IConnected } from \"./sockets.js\";\nexport type {\n\tIAttachment,\n\tIBlob,\n\tICreateBlobResponse,\n\tIDocumentAttributes,\n\tISnapshotTree,\n\tISnapshotTreeEx,\n\tITree,\n\tITreeEntry,\n\tIVersion,\n} from \"./storage.js\";\nexport { FileMode, TreeEntry } from \"./storage.js\";\nexport type {\n\tISummaryAttachment,\n\tISummaryBlob,\n\tISummaryHandle,\n\tISummaryTree,\n\tSummaryObject,\n\tSummaryTree,\n\tSummaryTypeNoHandle,\n} from \"./summary.js\";\nexport { SummaryType } from \"./summary.js\";\nexport type {\n\tIActorClient,\n\tISummaryTokenClaims,\n\tITokenClaims,\n\tITokenProvider,\n\tITokenService,\n} from \"./tokens.js\";\nexport type { IUser } from \"./users.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/protocol/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAoDH,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAaxC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAUnD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * Core set of Fluid protocol interfaces shared between services and clients.\n * These interfaces must always be back and forward compatible.\n *\n * @packageDocumentation\n */\n\nexport type {\n\tConnectionMode,\n\tICapabilities,\n\tIClient,\n\tIClientDetails,\n\tIClientJoin,\n\tISequencedClient,\n\tISignalClient,\n} from \"./clients.js\";\nexport type { IClientConfiguration } from \"./config.js\";\nexport type {\n\tIApprovedProposal,\n\tICommittedProposal,\n\tIProcessMessageResult,\n\tIProposal,\n\tIProtocolState,\n\tIQuorum,\n\tIQuorumClients,\n\tIQuorumProposals,\n\tISequencedProposal,\n} from \"./consensus.js\";\nexport type { IsoDate } from \"./date.js\";\nexport type {\n\tIBranchOrigin,\n\tIDocumentMessage,\n\tIDocumentSystemMessage,\n\tINack,\n\tINackContent,\n\tISentSignalMessage,\n\tISequencedDocumentAugmentedMessage,\n\tISequencedDocumentMessage,\n\tISequencedDocumentMessageExperimental,\n\tISequencedDocumentSystemMessage,\n\tIServerError,\n\tISignalMessage,\n\tISignalMessageBase,\n\tISummaryAck,\n\tISummaryContent,\n\tISummaryNack,\n\tISummaryProposal,\n\tITrace,\n\tIUploadedSummaryDetails,\n} from \"./protocol.js\";\nexport { MessageType, NackErrorType, SignalType } from \"./protocol.js\";\nexport { ScopeType } from \"./scopes.js\";\nexport type { IConnect, IConnected } from \"./sockets.js\";\nexport type {\n\tIAttachment,\n\tIBlob,\n\tICreateBlobResponse,\n\tIDocumentAttributes,\n\tISnapshotTree,\n\tISnapshotTreeEx,\n\tITree,\n\tITreeEntry,\n\tIVersion,\n} from \"./storage.js\";\nexport { FileMode, TreeEntry } from \"./storage.js\";\nexport type {\n\tISummaryAttachment,\n\tISummaryBlob,\n\tISummaryHandle,\n\tISummaryTree,\n\tSummaryObject,\n\tSummaryTree,\n\tSummaryTypeNoHandle,\n} from \"./summary.js\";\nexport { SummaryType } from \"./summary.js\";\nexport type { ITokenClaims } from \"./tokens.js\";\nexport type { IUser } from \"./users.js\";\n"]}
@@ -58,37 +58,4 @@ export interface ITokenClaims {
58
58
  */
59
59
  jti?: string;
60
60
  }
61
- /**
62
- * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.
63
- * @internal
64
- */
65
- export interface ISummaryTokenClaims {
66
- sub: string;
67
- act: IActorClient;
68
- claims: ITokenClaims;
69
- }
70
- /**
71
- * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.
72
- * @internal
73
- */
74
- export interface IActorClient {
75
- sub: string;
76
- }
77
- /**
78
- * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.
79
- * @internal
80
- */
81
- export interface ITokenService {
82
- extractClaims(token: string): ITokenClaims;
83
- }
84
- /**
85
- * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.
86
- * @internal
87
- */
88
- export interface ITokenProvider {
89
- /**
90
- * Whether or not the token is still valid to use.
91
- */
92
- isValid(): boolean;
93
- }
94
61
  //# sourceMappingURL=tokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/protocol/tokens.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC5B;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;IAEZ;;;;;;OAMG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;;OAMG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACb;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,YAAY,CAAC;IAClB,MAAM,EAAE,YAAY,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC5B,GAAG,EAAE,MAAM,CAAC;CACZ;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC7B,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CAAC;CAC3C;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC9B;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC;CACnB"}
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/protocol/tokens.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC5B;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;IAEZ;;;;;;OAMG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;;OAMG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACb"}
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/protocol/tokens.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { IUser } from \"./users.js\";\n\n/**\n * {@link https://jwt.io/introduction/ | JSON Web Token (JWT)} Claims\n *\n * See {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4}\n * @legacy\n * @alpha\n */\nexport interface ITokenClaims {\n\t/**\n\t * Identifies the document (a.k.a container) for which the token is being generated.\n\t * Generated by the service.\n\t */\n\tdocumentId: string;\n\n\t/**\n\t * Identifies the permissions required by the client on the document or summary.\n\t * For every scope, you can define the permissions you want to give to the client.\n\t */\n\tscopes: string[];\n\n\t/**\n\t * Unique tenant identifier.\n\t */\n\ttenantId: string;\n\n\t/**\n\t * User for whom the token was created.\n\t */\n\tuser: IUser;\n\n\t/**\n\t * \"Issued At\"\n\t * Indicates when the authentication for this token occurred.\n\t * Expressed in {@link https://en.wikipedia.org/wiki/Unix_time | Unix Time}.\n\t *\n\t * See {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6}\n\t */\n\tiat: number;\n\n\t/**\n\t * \"Expiration Time\"\n\t * Identifies the expiration time on or after which the token must not be accepted for processing.\n\t * Expressed in {@link https://en.wikipedia.org/wiki/Unix_time | Unix Time}.\n\t *\n\t * See {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4}\n\t */\n\texp: number;\n\n\t/**\n\t * \"Version\"\n\t * Version of the access token.\n\t */\n\tver: string;\n\n\t/**\n\t * \"JWT ID\"\n\t * A unique identifier for the token.\n\t *\n\t * See {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.7}\n\t */\n\tjti?: string;\n}\n\n/**\n * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.\n * @internal\n */\nexport interface ISummaryTokenClaims {\n\tsub: string;\n\tact: IActorClient;\n\tclaims: ITokenClaims;\n}\n\n/**\n * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.\n * @internal\n */\nexport interface IActorClient {\n\tsub: string;\n}\n\n/**\n * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.\n * @internal\n */\nexport interface ITokenService {\n\textractClaims(token: string): ITokenClaims;\n}\n\n/**\n * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.\n * @internal\n */\nexport interface ITokenProvider {\n\t/**\n\t * Whether or not the token is still valid to use.\n\t */\n\tisValid(): boolean;\n}\n"]}
1
+ {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/protocol/tokens.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type { IUser } from \"./users.js\";\n\n/**\n * {@link https://jwt.io/introduction/ | JSON Web Token (JWT)} Claims\n *\n * See {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4}\n * @legacy\n * @alpha\n */\nexport interface ITokenClaims {\n\t/**\n\t * Identifies the document (a.k.a container) for which the token is being generated.\n\t * Generated by the service.\n\t */\n\tdocumentId: string;\n\n\t/**\n\t * Identifies the permissions required by the client on the document or summary.\n\t * For every scope, you can define the permissions you want to give to the client.\n\t */\n\tscopes: string[];\n\n\t/**\n\t * Unique tenant identifier.\n\t */\n\ttenantId: string;\n\n\t/**\n\t * User for whom the token was created.\n\t */\n\tuser: IUser;\n\n\t/**\n\t * \"Issued At\"\n\t * Indicates when the authentication for this token occurred.\n\t * Expressed in {@link https://en.wikipedia.org/wiki/Unix_time | Unix Time}.\n\t *\n\t * See {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6}\n\t */\n\tiat: number;\n\n\t/**\n\t * \"Expiration Time\"\n\t * Identifies the expiration time on or after which the token must not be accepted for processing.\n\t * Expressed in {@link https://en.wikipedia.org/wiki/Unix_time | Unix Time}.\n\t *\n\t * See {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4}\n\t */\n\texp: number;\n\n\t/**\n\t * \"Version\"\n\t * Version of the access token.\n\t */\n\tver: string;\n\n\t/**\n\t * \"JWT ID\"\n\t * A unique identifier for the token.\n\t *\n\t * See {@link https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.7}\n\t */\n\tjti?: string;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/driver-definitions",
3
- "version": "2.13.0",
3
+ "version": "2.21.0",
4
4
  "description": "Fluid driver definitions",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -47,7 +47,7 @@
47
47
  "main": "lib/index.js",
48
48
  "types": "lib/public.d.ts",
49
49
  "dependencies": {
50
- "@fluidframework/core-interfaces": "~2.13.0"
50
+ "@fluidframework/core-interfaces": "~2.21.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@arethetypeswrong/cli": "^0.17.1",
@@ -55,8 +55,8 @@
55
55
  "@fluid-tools/build-cli": "^0.51.0",
56
56
  "@fluidframework/build-common": "^2.0.3",
57
57
  "@fluidframework/build-tools": "^0.51.0",
58
- "@fluidframework/driver-definitions-previous": "npm:@fluidframework/driver-definitions@2.12.0",
59
- "@fluidframework/eslint-config-fluid": "^5.6.0",
58
+ "@fluidframework/driver-definitions-previous": "npm:@fluidframework/driver-definitions@2.20.0",
59
+ "@fluidframework/eslint-config-fluid": "^5.7.3",
60
60
  "@microsoft/api-extractor": "7.47.8",
61
61
  "concurrently": "^8.2.1",
62
62
  "copyfiles": "^2.4.1",
@@ -109,7 +109,7 @@
109
109
  "ci:build:docs": "api-extractor run",
110
110
  "ci:test": "echo No test for this package",
111
111
  "ci:test:coverage": "echo No test for this package",
112
- "clean": "rimraf --glob dist lib \"*.d.ts\" \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp",
112
+ "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp",
113
113
  "eslint": "eslint --format stylish src",
114
114
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
115
115
  "format": "npm run format:biome",
package/src/index.ts CHANGED
@@ -45,7 +45,6 @@ export { DriverHeader } from "./urlResolver.js";
45
45
 
46
46
  export type {
47
47
  ConnectionMode,
48
- IActorClient,
49
48
  IApprovedProposal,
50
49
  IAttachment,
51
50
  IBlob,
@@ -69,10 +68,7 @@ export type {
69
68
  IProtocolState,
70
69
  IQuorum,
71
70
  IQuorumClients,
72
- IQuorumClientsEvents,
73
- IQuorumEvents,
74
71
  IQuorumProposals,
75
- IQuorumProposalsEvents,
76
72
  ISentSignalMessage,
77
73
  ISequencedClient,
78
74
  ISequencedDocumentAugmentedMessage,
@@ -94,11 +90,8 @@ export type {
94
90
  ISummaryHandle,
95
91
  ISummaryNack,
96
92
  ISummaryProposal,
97
- ISummaryTokenClaims,
98
93
  ISummaryTree,
99
94
  ITokenClaims,
100
- ITokenProvider,
101
- ITokenService,
102
95
  ITrace,
103
96
  ITree,
104
97
  ITreeEntry,
@@ -48,46 +48,6 @@ export type IApprovedProposal = { approvalSequenceNumber: number } & ISequencedP
48
48
  */
49
49
  export type ICommittedProposal = { commitSequenceNumber: number } & IApprovedProposal;
50
50
 
51
- /**
52
- * @deprecated This type is now unused and will be removed
53
- * Events fired by a Quorum in response to client tracking.
54
- * @internal
55
- *
56
- */
57
- export interface IQuorumClientsEvents {
58
- (event: "addMember", listener: (clientId: string, details: ISequencedClient) => void);
59
- (event: "removeMember", listener: (clientId: string) => void);
60
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
61
- (event: "error", listener: (message: any) => void);
62
- }
63
-
64
- /**
65
- * Events fired by a Quorum in response to proposal tracking.
66
- * @internal
67
- * @deprecated This type is now unused and will be removed
68
- */
69
- export interface IQuorumProposalsEvents {
70
- (event: "addProposal", listener: (proposal: ISequencedProposal) => void);
71
- (
72
- event: "approveProposal",
73
- listener: (
74
- sequenceNumber: number,
75
- key: string,
76
- value: unknown,
77
- approvalSequenceNumber: number,
78
- ) => void,
79
- );
80
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
81
- (event: "error", listener: (message: any) => void): void;
82
- }
83
-
84
- /**
85
- * All events fired by {@link IQuorum}, both client tracking and proposal tracking.
86
- * @internal
87
- * @deprecated This type is now unused and will be removed
88
- */
89
- export type IQuorumEvents = IQuorumClientsEvents & IQuorumProposalsEvents;
90
-
91
51
  /**
92
52
  * Interface for tracking clients in the Quorum.
93
53
  * @public
@@ -28,10 +28,7 @@ export type {
28
28
  IProtocolState,
29
29
  IQuorum,
30
30
  IQuorumClients,
31
- IQuorumClientsEvents,
32
- IQuorumEvents,
33
31
  IQuorumProposals,
34
- IQuorumProposalsEvents,
35
32
  ISequencedProposal,
36
33
  } from "./consensus.js";
37
34
  export type { IsoDate } from "./date.js";
@@ -81,11 +78,5 @@ export type {
81
78
  SummaryTypeNoHandle,
82
79
  } from "./summary.js";
83
80
  export { SummaryType } from "./summary.js";
84
- export type {
85
- IActorClient,
86
- ISummaryTokenClaims,
87
- ITokenClaims,
88
- ITokenProvider,
89
- ITokenService,
90
- } from "./tokens.js";
81
+ export type { ITokenClaims } from "./tokens.js";
91
82
  export type { IUser } from "./users.js";
@@ -67,40 +67,3 @@ export interface ITokenClaims {
67
67
  */
68
68
  jti?: string;
69
69
  }
70
-
71
- /**
72
- * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.
73
- * @internal
74
- */
75
- export interface ISummaryTokenClaims {
76
- sub: string;
77
- act: IActorClient;
78
- claims: ITokenClaims;
79
- }
80
-
81
- /**
82
- * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.
83
- * @internal
84
- */
85
- export interface IActorClient {
86
- sub: string;
87
- }
88
-
89
- /**
90
- * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.
91
- * @internal
92
- */
93
- export interface ITokenService {
94
- extractClaims(token: string): ITokenClaims;
95
- }
96
-
97
- /**
98
- * @deprecated Please use client-specific types instead. E.g. from `@fluidframework/routerlicious-driver`.
99
- * @internal
100
- */
101
- export interface ITokenProvider {
102
- /**
103
- * Whether or not the token is still valid to use.
104
- */
105
- isValid(): boolean;
106
- }