@ckeditor/ckeditor5-cloud-services 0.0.0-internal-20241017.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.
@@ -0,0 +1,88 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module cloud-services/cloudservices
7
+ */
8
+ import { ContextPlugin } from 'ckeditor5/src/core.js';
9
+ import CloudServicesCore from './cloudservicescore.js';
10
+ import type { CloudServicesConfig, TokenUrl } from './cloudservicesconfig.js';
11
+ import type { InitializedToken } from './token/token.js';
12
+ /**
13
+ * Plugin introducing the integration between CKEditor 5 and CKEditor Cloud Services .
14
+ *
15
+ * It initializes the token provider based on
16
+ * the {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudService`}.
17
+ */
18
+ export default class CloudServices extends ContextPlugin implements CloudServicesConfig {
19
+ /**
20
+ * The authentication token URL for CKEditor Cloud Services or a callback to the token value promise. See the
21
+ * {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl} for more details.
22
+ */
23
+ readonly tokenUrl?: TokenUrl;
24
+ /**
25
+ * The URL to which the files should be uploaded.
26
+ */
27
+ readonly uploadUrl?: string;
28
+ /**
29
+ * The URL for web socket communication, used by the `RealTimeCollaborativeEditing` plugin. Every customer (organization in the CKEditor
30
+ * Ecosystem dashboard) has their own, unique URLs to communicate with CKEditor Cloud Services. The URL can be found in the
31
+ * CKEditor Ecosystem customer dashboard.
32
+ *
33
+ * Note: Unlike most plugins, `RealTimeCollaborativeEditing` is not included in any CKEditor 5 build and needs to be installed manually.
34
+ * Check [Collaboration overview](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/overview.html) for more details.
35
+ */
36
+ readonly webSocketUrl?: string;
37
+ /**
38
+ * An optional parameter used for integration with CKEditor Cloud Services when uploading the editor build to cloud services.
39
+ *
40
+ * Whenever the editor build or the configuration changes, this parameter should be set to a new, unique value to differentiate
41
+ * the new bundle (build + configuration) from the old ones.
42
+ */
43
+ readonly bundleVersion?: string;
44
+ /**
45
+ * Other plugins use this token for the authorization process. It handles token requesting and refreshing.
46
+ * Its value is `null` when {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl} is not provided.
47
+ *
48
+ * @readonly
49
+ */
50
+ token: InitializedToken | null;
51
+ /**
52
+ * A map of token object instances keyed by the token URLs.
53
+ */
54
+ private readonly _tokens;
55
+ /**
56
+ * @inheritDoc
57
+ */
58
+ static get pluginName(): "CloudServices";
59
+ /**
60
+ * @inheritDoc
61
+ */
62
+ static get isOfficialPlugin(): true;
63
+ /**
64
+ * @inheritDoc
65
+ */
66
+ static get requires(): readonly [typeof CloudServicesCore];
67
+ /**
68
+ * @inheritDoc
69
+ */
70
+ init(): Promise<void>;
71
+ /**
72
+ * Registers an additional authentication token URL for CKEditor Cloud Services or a callback to the token value promise. See the
73
+ * {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl} for more details.
74
+ *
75
+ * @param tokenUrl The authentication token URL for CKEditor Cloud Services or a callback to the token value promise.
76
+ */
77
+ registerTokenUrl(tokenUrl: TokenUrl): Promise<InitializedToken>;
78
+ /**
79
+ * Returns an authentication token provider previously registered by {@link #registerTokenUrl}.
80
+ *
81
+ * @param tokenUrl The authentication token URL for CKEditor Cloud Services or a callback to the token value promise.
82
+ */
83
+ getTokenFor(tokenUrl: TokenUrl): InitializedToken;
84
+ /**
85
+ * @inheritDoc
86
+ */
87
+ destroy(): void;
88
+ }
@@ -0,0 +1,109 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module cloud-services/cloudservices
7
+ */
8
+ import { ContextPlugin } from 'ckeditor5/src/core.js';
9
+ import { CKEditorError } from 'ckeditor5/src/utils.js';
10
+ import CloudServicesCore from './cloudservicescore.js';
11
+ /**
12
+ * Plugin introducing the integration between CKEditor 5 and CKEditor Cloud Services .
13
+ *
14
+ * It initializes the token provider based on
15
+ * the {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig `config.cloudService`}.
16
+ */
17
+ export default class CloudServices extends ContextPlugin {
18
+ constructor() {
19
+ super(...arguments);
20
+ /**
21
+ * Other plugins use this token for the authorization process. It handles token requesting and refreshing.
22
+ * Its value is `null` when {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl} is not provided.
23
+ *
24
+ * @readonly
25
+ */
26
+ this.token = null;
27
+ /**
28
+ * A map of token object instances keyed by the token URLs.
29
+ */
30
+ this._tokens = new Map();
31
+ }
32
+ /**
33
+ * @inheritDoc
34
+ */
35
+ static get pluginName() {
36
+ return 'CloudServices';
37
+ }
38
+ /**
39
+ * @inheritDoc
40
+ */
41
+ static get isOfficialPlugin() {
42
+ return true;
43
+ }
44
+ /**
45
+ * @inheritDoc
46
+ */
47
+ static get requires() {
48
+ return [CloudServicesCore];
49
+ }
50
+ /**
51
+ * @inheritDoc
52
+ */
53
+ async init() {
54
+ const config = this.context.config;
55
+ const options = config.get('cloudServices') || {};
56
+ for (const [key, value] of Object.entries(options)) {
57
+ this[key] = value;
58
+ }
59
+ if (!this.tokenUrl) {
60
+ this.token = null;
61
+ return;
62
+ }
63
+ const cloudServicesCore = this.context.plugins.get('CloudServicesCore');
64
+ this.token = await cloudServicesCore.createToken(this.tokenUrl).init();
65
+ this._tokens.set(this.tokenUrl, this.token);
66
+ }
67
+ /**
68
+ * Registers an additional authentication token URL for CKEditor Cloud Services or a callback to the token value promise. See the
69
+ * {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl} for more details.
70
+ *
71
+ * @param tokenUrl The authentication token URL for CKEditor Cloud Services or a callback to the token value promise.
72
+ */
73
+ async registerTokenUrl(tokenUrl) {
74
+ // Reuse the token instance in case of multiple features using the same token URL.
75
+ if (this._tokens.has(tokenUrl)) {
76
+ return this.getTokenFor(tokenUrl);
77
+ }
78
+ const cloudServicesCore = this.context.plugins.get('CloudServicesCore');
79
+ const token = await cloudServicesCore.createToken(tokenUrl).init();
80
+ this._tokens.set(tokenUrl, token);
81
+ return token;
82
+ }
83
+ /**
84
+ * Returns an authentication token provider previously registered by {@link #registerTokenUrl}.
85
+ *
86
+ * @param tokenUrl The authentication token URL for CKEditor Cloud Services or a callback to the token value promise.
87
+ */
88
+ getTokenFor(tokenUrl) {
89
+ const token = this._tokens.get(tokenUrl);
90
+ if (!token) {
91
+ /**
92
+ * The provided `tokenUrl` was not registered by {@link module:cloud-services/cloudservices~CloudServices#registerTokenUrl}.
93
+ *
94
+ * @error cloudservices-token-not-registered
95
+ */
96
+ throw new CKEditorError('cloudservices-token-not-registered', this);
97
+ }
98
+ return token;
99
+ }
100
+ /**
101
+ * @inheritDoc
102
+ */
103
+ destroy() {
104
+ super.destroy();
105
+ for (const token of this._tokens.values()) {
106
+ token.destroy();
107
+ }
108
+ }
109
+ }
@@ -0,0 +1,124 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module cloud-services/cloudservicesconfig
7
+ */
8
+ /**
9
+ * Endpoint address to download the token or a callback that provides the token.
10
+ */
11
+ export type TokenUrl = string | (() => Promise<string>);
12
+ /**
13
+ * The configuration for all plugins using CKEditor Cloud Services.
14
+ *
15
+ * ```ts
16
+ * ClassicEditor
17
+ * .create( document.querySelector( '#editor' ), {
18
+ * cloudServices: {
19
+ * tokenUrl: 'https://example.com/cs-token-endpoint',
20
+ * uploadUrl: 'https://your-organization-id.cke-cs.com/easyimage/upload/'
21
+ * }
22
+ * } )
23
+ * .then( ... )
24
+ * .catch( ... );
25
+ * ```
26
+ *
27
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
28
+ */
29
+ export interface CloudServicesConfig {
30
+ /**
31
+ * A token URL or a token request function.
32
+ *
33
+ * As a string, it should be a URL to the security token endpoint in your application.
34
+ * The role of this endpoint is to securely authorize
35
+ * the end users of your application to use [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services) only
36
+ * if they should have access e.g. to upload files with {@glink features/file-management/ckbox CKBox} or to use the
37
+ * {@glink @cs guides/collaboration/quick-start Collaboration} service.
38
+ *
39
+ * ```ts
40
+ * ClassicEditor
41
+ * .create( document.querySelector( '#editor' ), {
42
+ * cloudServices: {
43
+ * tokenUrl: 'https://example.com/cs-token-endpoint',
44
+ * ...
45
+ * }
46
+ * } )
47
+ * .then( ... )
48
+ * .catch( ... );
49
+ * ```
50
+ *
51
+ * As a function, it should provide a promise to the token value,
52
+ * so you can highly customize the token and provide your token URL endpoint.
53
+ * By using this approach you can set your own headers for the request.
54
+ *
55
+ * ```ts
56
+ * ClassicEditor
57
+ * .create( document.querySelector( '#editor' ), {
58
+ * cloudServices: {
59
+ * tokenUrl: () => new Promise( ( resolve, reject ) => {
60
+ * const xhr = new XMLHttpRequest();
61
+ *
62
+ * xhr.open( 'GET', 'https://example.com/cs-token-endpoint' );
63
+ *
64
+ * xhr.addEventListener( 'load', () => {
65
+ * const statusCode = xhr.status;
66
+ * const xhrResponse = xhr.response;
67
+ *
68
+ * if ( statusCode < 200 || statusCode > 299 ) {
69
+ * return reject( new Error( 'Cannot download new token!' ) );
70
+ * }
71
+ *
72
+ * return resolve( xhrResponse );
73
+ * } );
74
+ *
75
+ * xhr.addEventListener( 'error', () => reject( new Error( 'Network Error' ) ) );
76
+ * xhr.addEventListener( 'abort', () => reject( new Error( 'Abort' ) ) );
77
+ *
78
+ * xhr.setRequestHeader( customHeader, customValue );
79
+ *
80
+ * xhr.send();
81
+ * } ),
82
+ * ...
83
+ * }
84
+ * } )
85
+ * ```
86
+ *
87
+ * If the request to the token endpoint fails, the editor will call the token request function every 5 seconds in attempt
88
+ * to refresh the token.
89
+ *
90
+ * You can find more information about token endpoints in the
91
+ * {@glink @cs guides/easy-image/quick-start##configuration Cloud Services - Quick start}
92
+ * and {@glink @cs developer-resources/security/token-endpoint Cloud Services - Token endpoint} documentation.
93
+ *
94
+ * Without a properly working token endpoint (token URL) CKEditor plugins will not be able to connect to CKEditor Cloud Services.
95
+ */
96
+ tokenUrl?: TokenUrl;
97
+ /**
98
+ * The endpoint URL for [CKEditor Cloud Services](https://ckeditor.com/ckeditor-cloud-services) uploads.
99
+ * This option must be set for Easy Image to work correctly.
100
+ *
101
+ * The upload URL is unique for each customer and can be found in the
102
+ * [CKEditor Ecosystem customer dashboard](https://dashboard.ckeditor.com) after subscribing to the Easy Image service.
103
+ * To learn how to start using Easy Image, check the {@glink @cs guides/easy-image/quick-start Easy Image - Quick start} documentation.
104
+ *
105
+ * Note: Make sure to also set the {@link module:cloud-services/cloudservicesconfig~CloudServicesConfig#tokenUrl} configuration option.
106
+ */
107
+ uploadUrl?: string;
108
+ /**
109
+ * The URL for web socket communication, used by the `RealTimeCollaborativeEditing` plugin. Every customer (organization in the CKEditor
110
+ * Ecosystem dashboard) has their own, unique URLs to communicate with CKEditor Cloud Services. The URL can be found in the
111
+ * CKEditor Ecosystem customer dashboard.
112
+ *
113
+ * Note: Unlike most plugins, `RealTimeCollaborativeEditing` is not included in any CKEditor 5 build and needs to be installed manually.
114
+ * Check [Collaboration overview](https://ckeditor.com/docs/ckeditor5/latest/features/collaboration/overview.html) for more details.
115
+ */
116
+ webSocketUrl?: string;
117
+ /**
118
+ * An optional parameter used for integration with CKEditor Cloud Services when uploading the editor build to cloud services.
119
+ *
120
+ * Whenever the editor build or the configuration changes, this parameter should be set to a new, unique value to differentiate
121
+ * the new bundle (build + configuration) from the old ones.
122
+ */
123
+ bundleVersion?: string;
124
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ export {};
@@ -0,0 +1,40 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module cloud-services/cloudservicescore
7
+ */
8
+ import { ContextPlugin } from 'ckeditor5/src/core.js';
9
+ import type { TokenUrl } from './cloudservicesconfig.js';
10
+ import Token, { type InitializedToken, type TokenOptions } from './token/token.js';
11
+ import UploadGateway from './uploadgateway/uploadgateway.js';
12
+ /**
13
+ * The `CloudServicesCore` plugin exposes the base API for communication with CKEditor Cloud Services.
14
+ */
15
+ export default class CloudServicesCore extends ContextPlugin {
16
+ /**
17
+ * @inheritDoc
18
+ */
19
+ static get pluginName(): "CloudServicesCore";
20
+ /**
21
+ * @inheritDoc
22
+ */
23
+ static get isOfficialPlugin(): true;
24
+ /**
25
+ * Creates the {@link module:cloud-services/token/token~Token} instance.
26
+ *
27
+ * @param tokenUrlOrRefreshToken Endpoint address to download the token or a callback that provides the token. If the
28
+ * value is a function it has to match the {@link module:cloud-services/token/token~Token#refreshToken} interface.
29
+ * @param options.initValue Initial value of the token.
30
+ * @param options.autoRefresh Specifies whether to start the refresh automatically.
31
+ */
32
+ createToken(tokenUrlOrRefreshToken: TokenUrl, options?: TokenOptions): Token;
33
+ /**
34
+ * Creates the {@link module:cloud-services/uploadgateway/uploadgateway~UploadGateway} instance.
35
+ *
36
+ * @param token Token used for authentication.
37
+ * @param apiAddress API address.
38
+ */
39
+ createUploadGateway(token: InitializedToken, apiAddress: string): UploadGateway;
40
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module cloud-services/cloudservicescore
7
+ */
8
+ import { ContextPlugin } from 'ckeditor5/src/core.js';
9
+ import Token from './token/token.js';
10
+ import UploadGateway from './uploadgateway/uploadgateway.js';
11
+ /**
12
+ * The `CloudServicesCore` plugin exposes the base API for communication with CKEditor Cloud Services.
13
+ */
14
+ export default class CloudServicesCore extends ContextPlugin {
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ static get pluginName() {
19
+ return 'CloudServicesCore';
20
+ }
21
+ /**
22
+ * @inheritDoc
23
+ */
24
+ static get isOfficialPlugin() {
25
+ return true;
26
+ }
27
+ /**
28
+ * Creates the {@link module:cloud-services/token/token~Token} instance.
29
+ *
30
+ * @param tokenUrlOrRefreshToken Endpoint address to download the token or a callback that provides the token. If the
31
+ * value is a function it has to match the {@link module:cloud-services/token/token~Token#refreshToken} interface.
32
+ * @param options.initValue Initial value of the token.
33
+ * @param options.autoRefresh Specifies whether to start the refresh automatically.
34
+ */
35
+ createToken(tokenUrlOrRefreshToken, options) {
36
+ return new Token(tokenUrlOrRefreshToken, options);
37
+ }
38
+ /**
39
+ * Creates the {@link module:cloud-services/uploadgateway/uploadgateway~UploadGateway} instance.
40
+ *
41
+ * @param token Token used for authentication.
42
+ * @param apiAddress API address.
43
+ */
44
+ createUploadGateway(token, apiAddress) {
45
+ return new UploadGateway(token, apiAddress);
46
+ }
47
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module cloud-services
7
+ */
8
+ export { default as CloudServices } from './cloudservices.js';
9
+ export { default as CloudServicesCore } from './cloudservicescore.js';
10
+ export type { TokenUrl, CloudServicesConfig } from './cloudservicesconfig.js';
11
+ export type { default as Token, InitializedToken } from './token/token.js';
12
+ export type { default as UploadGateway } from './uploadgateway/uploadgateway.js';
13
+ export type { default as FileUploader } from './uploadgateway/fileuploader.js';
14
+ import './augmentation.js';
package/src/index.js ADDED
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module cloud-services
7
+ */
8
+ export { default as CloudServices } from './cloudservices.js';
9
+ export { default as CloudServicesCore } from './cloudservicescore.js';
10
+ import './augmentation.js';
@@ -0,0 +1,109 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import type { TokenUrl } from '../cloudservicesconfig.js';
6
+ declare const Token_base: {
7
+ new (): import("ckeditor5/src/utils.js").Observable;
8
+ prototype: import("ckeditor5/src/utils.js").Observable;
9
+ };
10
+ /**
11
+ * The class representing the token used for communication with CKEditor Cloud Services.
12
+ * The value of the token is retrieved from the specified URL and refreshed every 1 hour by default.
13
+ * If the token retrieval fails, the token will automatically retry in 5 seconds intervals.
14
+ */
15
+ export default class Token extends /* #__PURE__ */ Token_base {
16
+ /**
17
+ * Value of the token.
18
+ * The value of the token is undefined if `initValue` is not provided or `init` method was not called.
19
+ * `create` method creates token with initialized value from url.
20
+ *
21
+ * @see module:cloud-services/token/token~InitializedToken
22
+ * @observable
23
+ * @readonly
24
+ */
25
+ value: string | undefined;
26
+ /**
27
+ * Base refreshing function.
28
+ */
29
+ private _refresh;
30
+ /**
31
+ * Cached token options.
32
+ */
33
+ private _options;
34
+ /**
35
+ * `setTimeout()` id for a token refresh when {@link module:cloud-services/token/token~TokenOptions auto refresh} is enabled.
36
+ */
37
+ private _tokenRefreshTimeout?;
38
+ /**
39
+ * Creates `Token` instance.
40
+ * Method `init` should be called after using the constructor or use `create` method instead.
41
+ *
42
+ * @param tokenUrlOrRefreshToken Endpoint address to download the token or a callback that provides the token. If the
43
+ * value is a function it has to match the {@link module:cloud-services/token/token~Token#refreshToken} interface.
44
+ */
45
+ constructor(tokenUrlOrRefreshToken: TokenUrl, options?: TokenOptions);
46
+ /**
47
+ * Initializes the token.
48
+ */
49
+ init(): Promise<InitializedToken>;
50
+ /**
51
+ * Refresh token method. Useful in a method form as it can be overridden in tests.
52
+ *
53
+ * This method will be invoked periodically based on the token expiry date after first call to keep the token up-to-date
54
+ * (requires {@link module:cloud-services/token/token~TokenOptions auto refresh option} to be set).
55
+ *
56
+ * If the token refresh fails, the method will retry in 5 seconds intervals until success or the token gets
57
+ * {@link #destroy destroyed}.
58
+ */
59
+ refreshToken(): Promise<InitializedToken>;
60
+ /**
61
+ * Destroys token instance. Stops refreshing.
62
+ */
63
+ destroy(): void;
64
+ /**
65
+ * Checks whether the provided token follows the JSON Web Tokens (JWT) format.
66
+ *
67
+ * @param tokenValue The token to validate.
68
+ */
69
+ private _validateTokenValue;
70
+ /**
71
+ * Registers a refresh token timeout for the time taken from token.
72
+ */
73
+ private _registerRefreshTokenTimeout;
74
+ /**
75
+ * Returns token refresh timeout time calculated from expire time in the token payload.
76
+ *
77
+ * If the token parse fails or the token payload doesn't contain, the default DEFAULT_TOKEN_REFRESH_TIMEOUT_TIME is returned.
78
+ */
79
+ private _getTokenRefreshTimeoutTime;
80
+ /**
81
+ * Creates a initialized {@link module:cloud-services/token/token~Token} instance.
82
+ *
83
+ * @param tokenUrlOrRefreshToken Endpoint address to download the token or a callback that provides the token. If the
84
+ * value is a function it has to match the {@link module:cloud-services/token/token~Token#refreshToken} interface.
85
+ */
86
+ static create(tokenUrlOrRefreshToken: TokenUrl, options?: TokenOptions): Promise<InitializedToken>;
87
+ }
88
+ /**
89
+ * A {@link ~Token} instance that has been initialized.
90
+ */
91
+ export type InitializedToken = Token & {
92
+ value: string;
93
+ };
94
+ /**
95
+ * Options for creating tokens.
96
+ */
97
+ export interface TokenOptions {
98
+ /**
99
+ * Initial value of the token.
100
+ */
101
+ initValue?: string;
102
+ /**
103
+ * Specifies whether to start the refresh automatically.
104
+ *
105
+ * @default true
106
+ */
107
+ autoRefresh?: boolean;
108
+ }
109
+ export {};