@fluidframework/routerlicious-driver 2.0.0-internal.7.1.1 → 2.0.0-internal.7.2.1
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 +4 -0
- package/dist/gitManager.d.ts +1 -5
- package/dist/gitManager.d.ts.map +1 -1
- package/dist/gitManager.js +1 -44
- package/dist/gitManager.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/lib/gitManager.d.ts +1 -5
- package/lib/gitManager.d.ts.map +1 -1
- package/lib/gitManager.js +1 -44
- package/lib/gitManager.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/package.json +13 -14
- package/src/gitManager.ts +2 -51
- package/src/packageVersion.ts +1 -1
- package/dist/routerlicious-driver-alpha.d.ts +0 -245
- package/dist/routerlicious-driver-beta.d.ts +0 -245
- package/dist/routerlicious-driver-public.d.ts +0 -245
- package/dist/routerlicious-driver.d.ts +0 -245
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
import { IDocumentService } from '@fluidframework/driver-definitions';
|
|
2
|
-
import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
|
|
3
|
-
import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
4
|
-
import { ISession } from '@fluidframework/server-services-client';
|
|
5
|
-
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
6
|
-
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
7
|
-
import { ITokenClaims } from '@fluidframework/protocol-definitions';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Default token provider in case the host does not provide one. It simply caches the provided jwt and returns it back.
|
|
11
|
-
*/
|
|
12
|
-
export declare class DefaultTokenProvider implements ITokenProvider {
|
|
13
|
-
private readonly jwt;
|
|
14
|
-
constructor(jwt: string);
|
|
15
|
-
fetchOrdererToken(): Promise<ITokenResponse>;
|
|
16
|
-
fetchStorageToken(): Promise<ITokenResponse>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Error returned by {@link RouterliciousDocumentServiceFactory.createContainer} when an error is thrown
|
|
21
|
-
* in {@link ITokenProvider.documentPostCreateCallback}.
|
|
22
|
-
* It is the consumer's responsibility to ensure that any state related to container creation is appropriately
|
|
23
|
-
* cleaned up in the event of failure.
|
|
24
|
-
* This includes the document itself, which will have been created by the time this error was thrown.
|
|
25
|
-
*
|
|
26
|
-
* @remarks TODO: examples of suggested actions for recovery.
|
|
27
|
-
* - How would a user delete the created document?
|
|
28
|
-
* - What would a retry pattern look like here?
|
|
29
|
-
*/
|
|
30
|
-
export declare class DocumentPostCreateError extends Error {
|
|
31
|
-
/**
|
|
32
|
-
* Inner error being wrapped.
|
|
33
|
-
*/
|
|
34
|
-
private readonly innerError;
|
|
35
|
-
constructor(
|
|
36
|
-
/**
|
|
37
|
-
* Inner error being wrapped.
|
|
38
|
-
*/
|
|
39
|
-
innerError: Error);
|
|
40
|
-
readonly name = "DocumentPostCreateError";
|
|
41
|
-
get stack(): string | undefined;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export declare interface IRouterliciousDriverPolicies {
|
|
45
|
-
/**
|
|
46
|
-
* Enable prefetching entire snapshot tree into memory before it is loaded by the runtime.
|
|
47
|
-
* Default: true
|
|
48
|
-
*/
|
|
49
|
-
enablePrefetch: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Rate limit concurrent storage requests.
|
|
52
|
-
* Default: 100
|
|
53
|
-
*/
|
|
54
|
-
maxConcurrentStorageRequests: number;
|
|
55
|
-
/**
|
|
56
|
-
* Rate limit concurrent orderer requests.
|
|
57
|
-
* Default: 100
|
|
58
|
-
*/
|
|
59
|
-
maxConcurrentOrdererRequests: number;
|
|
60
|
-
/**
|
|
61
|
-
* Enable uploading entire summary tree as a IWholeSummaryPayload to storage.
|
|
62
|
-
* Default: false
|
|
63
|
-
*/
|
|
64
|
-
enableWholeSummaryUpload: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Enable service endpoint discovery when creating or joining a session.
|
|
67
|
-
* Default: false
|
|
68
|
-
*/
|
|
69
|
-
enableDiscovery: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Enable using RestLess which avoids CORS preflight requests.
|
|
72
|
-
* Default: true
|
|
73
|
-
*/
|
|
74
|
-
enableRestLess: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Enable internal cache of summaries/snapshots.
|
|
77
|
-
* Reduces Summarizer boot time and reduces server load in E2E tests.
|
|
78
|
-
* Default: true
|
|
79
|
-
*/
|
|
80
|
-
enableInternalSummaryCaching: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Enable downgrading socket connection to long-polling
|
|
83
|
-
* when websocket connection cannot be established.
|
|
84
|
-
* Default: true
|
|
85
|
-
*/
|
|
86
|
-
enableLongPollingDowngrade: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Indicates that the container is ephemeral.
|
|
89
|
-
* Artifacts relates to the container are limited to container lifetime.
|
|
90
|
-
* Default: false
|
|
91
|
-
*/
|
|
92
|
-
isEphemeralContainer: boolean;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Abstracts the token fetching mechanism for a hosting application.
|
|
97
|
-
* The hosting application is responsible for providing an implementation.
|
|
98
|
-
*/
|
|
99
|
-
export declare interface ITokenProvider {
|
|
100
|
-
/**
|
|
101
|
-
* Fetches the orderer token from host.
|
|
102
|
-
*
|
|
103
|
-
* @param tenantId - Tenant ID.
|
|
104
|
-
* @param documentId - Optional. Document ID is only required for document-scoped requests.
|
|
105
|
-
* @param refresh - Optional flag indicating whether token fetch must bypass local cache.
|
|
106
|
-
* This likely indicates that some previous request failed authorization due to an expired token,
|
|
107
|
-
* and so a fresh token is required.
|
|
108
|
-
*
|
|
109
|
-
* Default: `false`.
|
|
110
|
-
*
|
|
111
|
-
* NOTE: This parameter will be made required in the future.
|
|
112
|
-
*/
|
|
113
|
-
fetchOrdererToken(tenantId: string, documentId?: string, refresh?: boolean): Promise<ITokenResponse>;
|
|
114
|
-
/**
|
|
115
|
-
* Fetches the storage token from host.
|
|
116
|
-
*
|
|
117
|
-
* @param tenantId - Tenant ID.
|
|
118
|
-
* @param documentId - Document ID.
|
|
119
|
-
* @param refresh - Optional flag indicating whether token fetch must bypass local cache.
|
|
120
|
-
* This likely indicates that some previous request failed authorization due to an expired token,
|
|
121
|
-
* and so a fresh token is required.
|
|
122
|
-
*
|
|
123
|
-
* Default: `false`.
|
|
124
|
-
*
|
|
125
|
-
* NOTE: This parameter will be made required in the future.
|
|
126
|
-
*/
|
|
127
|
-
fetchStorageToken(tenantId: string, documentId: string, refresh?: boolean): Promise<ITokenResponse>;
|
|
128
|
-
/**
|
|
129
|
-
* A callback triggered directly after creating the document. In this callback the client has the opportunity, to
|
|
130
|
-
* verify against an authorization service, if the user who claims to create the document is the same user who
|
|
131
|
-
* created it.
|
|
132
|
-
*
|
|
133
|
-
* @remarks Notes:
|
|
134
|
-
*
|
|
135
|
-
* * Using the callback may have performance impact on the document creation process.
|
|
136
|
-
*
|
|
137
|
-
* * Any exceptions thrown in the callback would fail the creation workflow
|
|
138
|
-
* (see {@link RouterliciousDocumentServiceFactory.createContainer} for more details).
|
|
139
|
-
*
|
|
140
|
-
* @param documentId - Document ID.
|
|
141
|
-
* @param creationToken - A special token that doesn't provide any kind of access, but it has the user's payload
|
|
142
|
-
* and document id. It can be used to validate the identity of the document creator.
|
|
143
|
-
*/
|
|
144
|
-
documentPostCreateCallback?(documentId: string, creationToken: string): Promise<void>;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export declare interface ITokenResponse {
|
|
148
|
-
/**
|
|
149
|
-
* {@link https://jwt.io/introduction/ | JSON Web Token (JWT)} value.
|
|
150
|
-
*/
|
|
151
|
-
jwt: string;
|
|
152
|
-
/**
|
|
153
|
-
* A flag indicating whether token was obtained from local cache.
|
|
154
|
-
*
|
|
155
|
-
* @remarks `undefined` indicates that the source of the token could not be determined.
|
|
156
|
-
*/
|
|
157
|
-
fromCache?: boolean;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Abstracts the discovery of claims contained within a token.
|
|
162
|
-
*/
|
|
163
|
-
export declare interface ITokenService {
|
|
164
|
-
/**
|
|
165
|
-
* Extracts the {@link @fluidframework/protocol-definitions#ITokenClaims | token claims} from the provided
|
|
166
|
-
* {@link https://jwt.io/introduction/ | JSON Web Token (JWT)} string representation.
|
|
167
|
-
*/
|
|
168
|
-
extractClaims(token: string): ITokenClaims;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Factory for creating the routerlicious document service. Use this if you want to
|
|
173
|
-
* use the routerlicious implementation.
|
|
174
|
-
*/
|
|
175
|
-
export declare class RouterliciousDocumentServiceFactory implements IDocumentServiceFactory {
|
|
176
|
-
private readonly tokenProvider;
|
|
177
|
-
private readonly driverPolicies;
|
|
178
|
-
private readonly blobCache;
|
|
179
|
-
private readonly wholeSnapshotTreeCache;
|
|
180
|
-
private readonly shreddedSummaryTreeCache;
|
|
181
|
-
constructor(tokenProvider: ITokenProvider, driverPolicies?: Partial<IRouterliciousDriverPolicies>);
|
|
182
|
-
/**
|
|
183
|
-
* {@inheritDoc @fluidframework/driver-definitions#IDocumentServiceFactory.createContainer}
|
|
184
|
-
*
|
|
185
|
-
* @throws {@link DocumentPostCreateError}
|
|
186
|
-
* If an exception is thrown while invoking the provided {@link ITokenProvider.documentPostCreateCallback}.
|
|
187
|
-
*/
|
|
188
|
-
createContainer(createNewSummary: ISummaryTree | undefined, resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
|
|
189
|
-
/**
|
|
190
|
-
* {@inheritDoc @fluidframework/driver-definitions#IDocumentServiceFactory.createDocumentService}
|
|
191
|
-
*
|
|
192
|
-
* @returns Routerlicious document service.
|
|
193
|
-
*/
|
|
194
|
-
createDocumentService(resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean, session?: ISession): Promise<IDocumentService>;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Routerlicious Error types
|
|
199
|
-
* Different error types that may be thrown by the routerlicious driver
|
|
200
|
-
*
|
|
201
|
-
* @deprecated Use {@link (RouterliciousErrorTypes:variable)} instead.
|
|
202
|
-
*/
|
|
203
|
-
export declare enum RouterliciousErrorType {
|
|
204
|
-
/**
|
|
205
|
-
* File not found, or file deleted during session
|
|
206
|
-
*/
|
|
207
|
-
fileNotFoundOrAccessDeniedError = "fileNotFoundOrAccessDeniedError",
|
|
208
|
-
/**
|
|
209
|
-
* SSL Certificate Error.
|
|
210
|
-
*/
|
|
211
|
-
sslCertError = "sslCertError"
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Routerlicious Error types
|
|
216
|
-
* Different error types that may be thrown by the routerlicious driver
|
|
217
|
-
*/
|
|
218
|
-
export declare const RouterliciousErrorTypes: {
|
|
219
|
-
/**
|
|
220
|
-
* SSL Certificate Error.
|
|
221
|
-
*/
|
|
222
|
-
readonly sslCertError: "sslCertError";
|
|
223
|
-
readonly genericNetworkError: "genericNetworkError";
|
|
224
|
-
readonly authorizationError: "authorizationError";
|
|
225
|
-
readonly fileNotFoundOrAccessDeniedError: "fileNotFoundOrAccessDeniedError";
|
|
226
|
-
readonly offlineError: "offlineError";
|
|
227
|
-
readonly unsupportedClientProtocolVersion: "unsupportedClientProtocolVersion";
|
|
228
|
-
readonly writeError: "writeError";
|
|
229
|
-
readonly fetchFailure: "fetchFailure";
|
|
230
|
-
readonly fetchTokenError: "fetchTokenError";
|
|
231
|
-
readonly incorrectServerResponse: "incorrectServerResponse";
|
|
232
|
-
readonly fileOverwrittenInStorage: "fileOverwrittenInStorage";
|
|
233
|
-
readonly deltaStreamConnectionForbidden: "deltaStreamConnectionForbidden";
|
|
234
|
-
readonly locationRedirection: "locationRedirection";
|
|
235
|
-
readonly fluidInvalidSchema: "fluidInvalidSchema";
|
|
236
|
-
readonly fileIsLocked: "fileIsLocked";
|
|
237
|
-
readonly outOfStorageError: "outOfStorageError";
|
|
238
|
-
readonly genericError: "genericError";
|
|
239
|
-
readonly throttlingError: "throttlingError";
|
|
240
|
-
readonly usageError: "usageError";
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
export declare type RouterliciousErrorTypes = (typeof RouterliciousErrorTypes)[keyof typeof RouterliciousErrorTypes];
|
|
244
|
-
|
|
245
|
-
export { }
|
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
import { IDocumentService } from '@fluidframework/driver-definitions';
|
|
2
|
-
import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
|
|
3
|
-
import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
4
|
-
import { ISession } from '@fluidframework/server-services-client';
|
|
5
|
-
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
6
|
-
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
7
|
-
import { ITokenClaims } from '@fluidframework/protocol-definitions';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Default token provider in case the host does not provide one. It simply caches the provided jwt and returns it back.
|
|
11
|
-
*/
|
|
12
|
-
export declare class DefaultTokenProvider implements ITokenProvider {
|
|
13
|
-
private readonly jwt;
|
|
14
|
-
constructor(jwt: string);
|
|
15
|
-
fetchOrdererToken(): Promise<ITokenResponse>;
|
|
16
|
-
fetchStorageToken(): Promise<ITokenResponse>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Error returned by {@link RouterliciousDocumentServiceFactory.createContainer} when an error is thrown
|
|
21
|
-
* in {@link ITokenProvider.documentPostCreateCallback}.
|
|
22
|
-
* It is the consumer's responsibility to ensure that any state related to container creation is appropriately
|
|
23
|
-
* cleaned up in the event of failure.
|
|
24
|
-
* This includes the document itself, which will have been created by the time this error was thrown.
|
|
25
|
-
*
|
|
26
|
-
* @remarks TODO: examples of suggested actions for recovery.
|
|
27
|
-
* - How would a user delete the created document?
|
|
28
|
-
* - What would a retry pattern look like here?
|
|
29
|
-
*/
|
|
30
|
-
export declare class DocumentPostCreateError extends Error {
|
|
31
|
-
/**
|
|
32
|
-
* Inner error being wrapped.
|
|
33
|
-
*/
|
|
34
|
-
private readonly innerError;
|
|
35
|
-
constructor(
|
|
36
|
-
/**
|
|
37
|
-
* Inner error being wrapped.
|
|
38
|
-
*/
|
|
39
|
-
innerError: Error);
|
|
40
|
-
readonly name = "DocumentPostCreateError";
|
|
41
|
-
get stack(): string | undefined;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export declare interface IRouterliciousDriverPolicies {
|
|
45
|
-
/**
|
|
46
|
-
* Enable prefetching entire snapshot tree into memory before it is loaded by the runtime.
|
|
47
|
-
* Default: true
|
|
48
|
-
*/
|
|
49
|
-
enablePrefetch: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Rate limit concurrent storage requests.
|
|
52
|
-
* Default: 100
|
|
53
|
-
*/
|
|
54
|
-
maxConcurrentStorageRequests: number;
|
|
55
|
-
/**
|
|
56
|
-
* Rate limit concurrent orderer requests.
|
|
57
|
-
* Default: 100
|
|
58
|
-
*/
|
|
59
|
-
maxConcurrentOrdererRequests: number;
|
|
60
|
-
/**
|
|
61
|
-
* Enable uploading entire summary tree as a IWholeSummaryPayload to storage.
|
|
62
|
-
* Default: false
|
|
63
|
-
*/
|
|
64
|
-
enableWholeSummaryUpload: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Enable service endpoint discovery when creating or joining a session.
|
|
67
|
-
* Default: false
|
|
68
|
-
*/
|
|
69
|
-
enableDiscovery: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Enable using RestLess which avoids CORS preflight requests.
|
|
72
|
-
* Default: true
|
|
73
|
-
*/
|
|
74
|
-
enableRestLess: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Enable internal cache of summaries/snapshots.
|
|
77
|
-
* Reduces Summarizer boot time and reduces server load in E2E tests.
|
|
78
|
-
* Default: true
|
|
79
|
-
*/
|
|
80
|
-
enableInternalSummaryCaching: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Enable downgrading socket connection to long-polling
|
|
83
|
-
* when websocket connection cannot be established.
|
|
84
|
-
* Default: true
|
|
85
|
-
*/
|
|
86
|
-
enableLongPollingDowngrade: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Indicates that the container is ephemeral.
|
|
89
|
-
* Artifacts relates to the container are limited to container lifetime.
|
|
90
|
-
* Default: false
|
|
91
|
-
*/
|
|
92
|
-
isEphemeralContainer: boolean;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Abstracts the token fetching mechanism for a hosting application.
|
|
97
|
-
* The hosting application is responsible for providing an implementation.
|
|
98
|
-
*/
|
|
99
|
-
export declare interface ITokenProvider {
|
|
100
|
-
/**
|
|
101
|
-
* Fetches the orderer token from host.
|
|
102
|
-
*
|
|
103
|
-
* @param tenantId - Tenant ID.
|
|
104
|
-
* @param documentId - Optional. Document ID is only required for document-scoped requests.
|
|
105
|
-
* @param refresh - Optional flag indicating whether token fetch must bypass local cache.
|
|
106
|
-
* This likely indicates that some previous request failed authorization due to an expired token,
|
|
107
|
-
* and so a fresh token is required.
|
|
108
|
-
*
|
|
109
|
-
* Default: `false`.
|
|
110
|
-
*
|
|
111
|
-
* NOTE: This parameter will be made required in the future.
|
|
112
|
-
*/
|
|
113
|
-
fetchOrdererToken(tenantId: string, documentId?: string, refresh?: boolean): Promise<ITokenResponse>;
|
|
114
|
-
/**
|
|
115
|
-
* Fetches the storage token from host.
|
|
116
|
-
*
|
|
117
|
-
* @param tenantId - Tenant ID.
|
|
118
|
-
* @param documentId - Document ID.
|
|
119
|
-
* @param refresh - Optional flag indicating whether token fetch must bypass local cache.
|
|
120
|
-
* This likely indicates that some previous request failed authorization due to an expired token,
|
|
121
|
-
* and so a fresh token is required.
|
|
122
|
-
*
|
|
123
|
-
* Default: `false`.
|
|
124
|
-
*
|
|
125
|
-
* NOTE: This parameter will be made required in the future.
|
|
126
|
-
*/
|
|
127
|
-
fetchStorageToken(tenantId: string, documentId: string, refresh?: boolean): Promise<ITokenResponse>;
|
|
128
|
-
/**
|
|
129
|
-
* A callback triggered directly after creating the document. In this callback the client has the opportunity, to
|
|
130
|
-
* verify against an authorization service, if the user who claims to create the document is the same user who
|
|
131
|
-
* created it.
|
|
132
|
-
*
|
|
133
|
-
* @remarks Notes:
|
|
134
|
-
*
|
|
135
|
-
* * Using the callback may have performance impact on the document creation process.
|
|
136
|
-
*
|
|
137
|
-
* * Any exceptions thrown in the callback would fail the creation workflow
|
|
138
|
-
* (see {@link RouterliciousDocumentServiceFactory.createContainer} for more details).
|
|
139
|
-
*
|
|
140
|
-
* @param documentId - Document ID.
|
|
141
|
-
* @param creationToken - A special token that doesn't provide any kind of access, but it has the user's payload
|
|
142
|
-
* and document id. It can be used to validate the identity of the document creator.
|
|
143
|
-
*/
|
|
144
|
-
documentPostCreateCallback?(documentId: string, creationToken: string): Promise<void>;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export declare interface ITokenResponse {
|
|
148
|
-
/**
|
|
149
|
-
* {@link https://jwt.io/introduction/ | JSON Web Token (JWT)} value.
|
|
150
|
-
*/
|
|
151
|
-
jwt: string;
|
|
152
|
-
/**
|
|
153
|
-
* A flag indicating whether token was obtained from local cache.
|
|
154
|
-
*
|
|
155
|
-
* @remarks `undefined` indicates that the source of the token could not be determined.
|
|
156
|
-
*/
|
|
157
|
-
fromCache?: boolean;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Abstracts the discovery of claims contained within a token.
|
|
162
|
-
*/
|
|
163
|
-
export declare interface ITokenService {
|
|
164
|
-
/**
|
|
165
|
-
* Extracts the {@link @fluidframework/protocol-definitions#ITokenClaims | token claims} from the provided
|
|
166
|
-
* {@link https://jwt.io/introduction/ | JSON Web Token (JWT)} string representation.
|
|
167
|
-
*/
|
|
168
|
-
extractClaims(token: string): ITokenClaims;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Factory for creating the routerlicious document service. Use this if you want to
|
|
173
|
-
* use the routerlicious implementation.
|
|
174
|
-
*/
|
|
175
|
-
export declare class RouterliciousDocumentServiceFactory implements IDocumentServiceFactory {
|
|
176
|
-
private readonly tokenProvider;
|
|
177
|
-
private readonly driverPolicies;
|
|
178
|
-
private readonly blobCache;
|
|
179
|
-
private readonly wholeSnapshotTreeCache;
|
|
180
|
-
private readonly shreddedSummaryTreeCache;
|
|
181
|
-
constructor(tokenProvider: ITokenProvider, driverPolicies?: Partial<IRouterliciousDriverPolicies>);
|
|
182
|
-
/**
|
|
183
|
-
* {@inheritDoc @fluidframework/driver-definitions#IDocumentServiceFactory.createContainer}
|
|
184
|
-
*
|
|
185
|
-
* @throws {@link DocumentPostCreateError}
|
|
186
|
-
* If an exception is thrown while invoking the provided {@link ITokenProvider.documentPostCreateCallback}.
|
|
187
|
-
*/
|
|
188
|
-
createContainer(createNewSummary: ISummaryTree | undefined, resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
|
|
189
|
-
/**
|
|
190
|
-
* {@inheritDoc @fluidframework/driver-definitions#IDocumentServiceFactory.createDocumentService}
|
|
191
|
-
*
|
|
192
|
-
* @returns Routerlicious document service.
|
|
193
|
-
*/
|
|
194
|
-
createDocumentService(resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean, session?: ISession): Promise<IDocumentService>;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Routerlicious Error types
|
|
199
|
-
* Different error types that may be thrown by the routerlicious driver
|
|
200
|
-
*
|
|
201
|
-
* @deprecated Use {@link (RouterliciousErrorTypes:variable)} instead.
|
|
202
|
-
*/
|
|
203
|
-
export declare enum RouterliciousErrorType {
|
|
204
|
-
/**
|
|
205
|
-
* File not found, or file deleted during session
|
|
206
|
-
*/
|
|
207
|
-
fileNotFoundOrAccessDeniedError = "fileNotFoundOrAccessDeniedError",
|
|
208
|
-
/**
|
|
209
|
-
* SSL Certificate Error.
|
|
210
|
-
*/
|
|
211
|
-
sslCertError = "sslCertError"
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Routerlicious Error types
|
|
216
|
-
* Different error types that may be thrown by the routerlicious driver
|
|
217
|
-
*/
|
|
218
|
-
export declare const RouterliciousErrorTypes: {
|
|
219
|
-
/**
|
|
220
|
-
* SSL Certificate Error.
|
|
221
|
-
*/
|
|
222
|
-
readonly sslCertError: "sslCertError";
|
|
223
|
-
readonly genericNetworkError: "genericNetworkError";
|
|
224
|
-
readonly authorizationError: "authorizationError";
|
|
225
|
-
readonly fileNotFoundOrAccessDeniedError: "fileNotFoundOrAccessDeniedError";
|
|
226
|
-
readonly offlineError: "offlineError";
|
|
227
|
-
readonly unsupportedClientProtocolVersion: "unsupportedClientProtocolVersion";
|
|
228
|
-
readonly writeError: "writeError";
|
|
229
|
-
readonly fetchFailure: "fetchFailure";
|
|
230
|
-
readonly fetchTokenError: "fetchTokenError";
|
|
231
|
-
readonly incorrectServerResponse: "incorrectServerResponse";
|
|
232
|
-
readonly fileOverwrittenInStorage: "fileOverwrittenInStorage";
|
|
233
|
-
readonly deltaStreamConnectionForbidden: "deltaStreamConnectionForbidden";
|
|
234
|
-
readonly locationRedirection: "locationRedirection";
|
|
235
|
-
readonly fluidInvalidSchema: "fluidInvalidSchema";
|
|
236
|
-
readonly fileIsLocked: "fileIsLocked";
|
|
237
|
-
readonly outOfStorageError: "outOfStorageError";
|
|
238
|
-
readonly genericError: "genericError";
|
|
239
|
-
readonly throttlingError: "throttlingError";
|
|
240
|
-
readonly usageError: "usageError";
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
export declare type RouterliciousErrorTypes = (typeof RouterliciousErrorTypes)[keyof typeof RouterliciousErrorTypes];
|
|
244
|
-
|
|
245
|
-
export { }
|