@openfilz-sdk/typescript-ee 1.10.4 → 1.10.5

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.
Files changed (108) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +20 -2
  4. package/api/desktop-sync-administration-api.ts +186 -0
  5. package/api/desktop-sync-api.ts +617 -0
  6. package/api/document-controller-api.ts +8 -8
  7. package/api/file-controller-api.ts +82 -0
  8. package/api.ts +2 -0
  9. package/dist/api/desktop-sync-administration-api.d.ts +91 -0
  10. package/dist/api/desktop-sync-administration-api.js +187 -0
  11. package/dist/api/desktop-sync-api.d.ts +282 -0
  12. package/dist/api/desktop-sync-api.js +590 -0
  13. package/dist/api/document-controller-api.d.ts +8 -8
  14. package/dist/api/document-controller-api.js +8 -8
  15. package/dist/api/file-controller-api.d.ts +38 -0
  16. package/dist/api/file-controller-api.js +75 -0
  17. package/dist/api.d.ts +2 -0
  18. package/dist/api.js +2 -0
  19. package/dist/esm/api/desktop-sync-administration-api.d.ts +91 -0
  20. package/dist/esm/api/desktop-sync-administration-api.js +180 -0
  21. package/dist/esm/api/desktop-sync-api.d.ts +282 -0
  22. package/dist/esm/api/desktop-sync-api.js +583 -0
  23. package/dist/esm/api/document-controller-api.d.ts +8 -8
  24. package/dist/esm/api/document-controller-api.js +8 -8
  25. package/dist/esm/api/file-controller-api.d.ts +38 -0
  26. package/dist/esm/api/file-controller-api.js +75 -0
  27. package/dist/esm/api.d.ts +2 -0
  28. package/dist/esm/api.js +2 -0
  29. package/dist/esm/models/copy-request.d.ts +1 -1
  30. package/dist/esm/models/desktop-sync-client-info.d.ts +20 -0
  31. package/dist/esm/models/desktop-sync-client-info.js +14 -0
  32. package/dist/esm/models/enriched-audit-log.d.ts +1 -0
  33. package/dist/esm/models/enriched-audit-log.js +1 -0
  34. package/dist/esm/models/index.d.ts +8 -0
  35. package/dist/esm/models/index.js +8 -0
  36. package/dist/esm/models/move-request.d.ts +1 -1
  37. package/dist/esm/models/search-by-audit-log-request.d.ts +1 -0
  38. package/dist/esm/models/search-by-audit-log-request.js +1 -0
  39. package/dist/esm/models/settings.d.ts +3 -0
  40. package/dist/esm/models/sync-backfill-status.d.ts +21 -0
  41. package/dist/esm/models/sync-backfill-status.js +14 -0
  42. package/dist/esm/models/sync-changes-response.d.ts +17 -0
  43. package/dist/esm/models/sync-changes-response.js +14 -0
  44. package/dist/esm/models/sync-item.d.ts +29 -0
  45. package/dist/esm/models/sync-item.js +17 -0
  46. package/dist/esm/models/sync-snapshot-response.d.ts +17 -0
  47. package/dist/esm/models/sync-snapshot-response.js +14 -0
  48. package/dist/esm/models/unzip-request.d.ts +29 -0
  49. package/dist/esm/models/unzip-request.js +14 -0
  50. package/dist/esm/models/unzip-response.d.ts +34 -0
  51. package/dist/esm/models/unzip-response.js +14 -0
  52. package/dist/esm/models/unzip-skipped-entry.d.ts +34 -0
  53. package/dist/esm/models/unzip-skipped-entry.js +21 -0
  54. package/dist/models/copy-request.d.ts +1 -1
  55. package/dist/models/desktop-sync-client-info.d.ts +20 -0
  56. package/dist/models/desktop-sync-client-info.js +15 -0
  57. package/dist/models/enriched-audit-log.d.ts +1 -0
  58. package/dist/models/enriched-audit-log.js +1 -0
  59. package/dist/models/index.d.ts +8 -0
  60. package/dist/models/index.js +8 -0
  61. package/dist/models/move-request.d.ts +1 -1
  62. package/dist/models/search-by-audit-log-request.d.ts +1 -0
  63. package/dist/models/search-by-audit-log-request.js +1 -0
  64. package/dist/models/settings.d.ts +3 -0
  65. package/dist/models/sync-backfill-status.d.ts +21 -0
  66. package/dist/models/sync-backfill-status.js +15 -0
  67. package/dist/models/sync-changes-response.d.ts +17 -0
  68. package/dist/models/sync-changes-response.js +15 -0
  69. package/dist/models/sync-item.d.ts +29 -0
  70. package/dist/models/sync-item.js +20 -0
  71. package/dist/models/sync-snapshot-response.d.ts +17 -0
  72. package/dist/models/sync-snapshot-response.js +15 -0
  73. package/dist/models/unzip-request.d.ts +29 -0
  74. package/dist/models/unzip-request.js +15 -0
  75. package/dist/models/unzip-response.d.ts +34 -0
  76. package/dist/models/unzip-response.js +15 -0
  77. package/dist/models/unzip-skipped-entry.d.ts +34 -0
  78. package/dist/models/unzip-skipped-entry.js +24 -0
  79. package/docs/CopyRequest.md +1 -1
  80. package/docs/DesktopSyncAdministrationApi.md +96 -0
  81. package/docs/DesktopSyncApi.md +376 -0
  82. package/docs/DesktopSyncClientInfo.md +32 -0
  83. package/docs/DocumentControllerApi.md +4 -4
  84. package/docs/FileControllerApi.md +56 -0
  85. package/docs/MoveRequest.md +1 -1
  86. package/docs/Settings.md +2 -0
  87. package/docs/SyncBackfillStatus.md +34 -0
  88. package/docs/SyncChangesResponse.md +24 -0
  89. package/docs/SyncItem.md +40 -0
  90. package/docs/SyncSnapshotResponse.md +24 -0
  91. package/docs/UnzipRequest.md +26 -0
  92. package/docs/UnzipResponse.md +28 -0
  93. package/docs/UnzipSkippedEntry.md +24 -0
  94. package/models/copy-request.ts +1 -1
  95. package/models/desktop-sync-client-info.ts +26 -0
  96. package/models/enriched-audit-log.ts +1 -0
  97. package/models/index.ts +8 -0
  98. package/models/move-request.ts +1 -1
  99. package/models/search-by-audit-log-request.ts +1 -0
  100. package/models/settings.ts +1 -0
  101. package/models/sync-backfill-status.ts +27 -0
  102. package/models/sync-changes-response.ts +25 -0
  103. package/models/sync-item.ts +38 -0
  104. package/models/sync-snapshot-response.ts +25 -0
  105. package/models/unzip-request.ts +35 -0
  106. package/models/unzip-response.ts +42 -0
  107. package/models/unzip-skipped-entry.ts +43 -0
  108. package/package.json +1 -1
@@ -0,0 +1,180 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, setBearerAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * DesktopSyncAdministrationApi - axios parameter creator
31
+ */
32
+ export const DesktopSyncAdministrationApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ * 202 with the status once started in the background; 409 while a run is in progress.
36
+ * @summary Run the backfill again over every file
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ start1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
41
+ const localVarPath = `/api/v1/admin/sync/backfill`;
42
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44
+ let baseOptions;
45
+ if (configuration) {
46
+ baseOptions = configuration.baseOptions;
47
+ }
48
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
49
+ const localVarHeaderParameter = {};
50
+ const localVarQueryParameter = {};
51
+ // authentication keycloak_auth required
52
+ // http bearer authentication required
53
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
54
+ localVarHeaderParameter['Accept'] = '*/*';
55
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
56
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
58
+ return {
59
+ url: toPathString(localVarUrlObj),
60
+ options: localVarRequestOptions,
61
+ };
62
+ }),
63
+ /**
64
+ *
65
+ * @summary Progress of the size and hash backfill
66
+ * @param {*} [options] Override http request option.
67
+ * @throws {RequiredError}
68
+ */
69
+ status: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
70
+ const localVarPath = `/api/v1/admin/sync/backfill`;
71
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
72
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
73
+ let baseOptions;
74
+ if (configuration) {
75
+ baseOptions = configuration.baseOptions;
76
+ }
77
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
78
+ const localVarHeaderParameter = {};
79
+ const localVarQueryParameter = {};
80
+ // authentication keycloak_auth required
81
+ // http bearer authentication required
82
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
83
+ localVarHeaderParameter['Accept'] = '*/*';
84
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
85
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
86
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
87
+ return {
88
+ url: toPathString(localVarUrlObj),
89
+ options: localVarRequestOptions,
90
+ };
91
+ }),
92
+ };
93
+ };
94
+ /**
95
+ * DesktopSyncAdministrationApi - functional programming interface
96
+ */
97
+ export const DesktopSyncAdministrationApiFp = function (configuration) {
98
+ const localVarAxiosParamCreator = DesktopSyncAdministrationApiAxiosParamCreator(configuration);
99
+ return {
100
+ /**
101
+ * 202 with the status once started in the background; 409 while a run is in progress.
102
+ * @summary Run the backfill again over every file
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ start1(options) {
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ var _a, _b, _c;
109
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.start1(options);
110
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
111
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DesktopSyncAdministrationApi.start1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
112
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
113
+ });
114
+ },
115
+ /**
116
+ *
117
+ * @summary Progress of the size and hash backfill
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ */
121
+ status(options) {
122
+ return __awaiter(this, void 0, void 0, function* () {
123
+ var _a, _b, _c;
124
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.status(options);
125
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
126
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DesktopSyncAdministrationApi.status']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
127
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
128
+ });
129
+ },
130
+ };
131
+ };
132
+ /**
133
+ * DesktopSyncAdministrationApi - factory interface
134
+ */
135
+ export const DesktopSyncAdministrationApiFactory = function (configuration, basePath, axios) {
136
+ const localVarFp = DesktopSyncAdministrationApiFp(configuration);
137
+ return {
138
+ /**
139
+ * 202 with the status once started in the background; 409 while a run is in progress.
140
+ * @summary Run the backfill again over every file
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ start1(options) {
145
+ return localVarFp.start1(options).then((request) => request(axios, basePath));
146
+ },
147
+ /**
148
+ *
149
+ * @summary Progress of the size and hash backfill
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ status(options) {
154
+ return localVarFp.status(options).then((request) => request(axios, basePath));
155
+ },
156
+ };
157
+ };
158
+ /**
159
+ * DesktopSyncAdministrationApi - object-oriented interface
160
+ */
161
+ export class DesktopSyncAdministrationApi extends BaseAPI {
162
+ /**
163
+ * 202 with the status once started in the background; 409 while a run is in progress.
164
+ * @summary Run the backfill again over every file
165
+ * @param {*} [options] Override http request option.
166
+ * @throws {RequiredError}
167
+ */
168
+ start1(options) {
169
+ return DesktopSyncAdministrationApiFp(this.configuration).start1(options).then((request) => request(this.axios, this.basePath));
170
+ }
171
+ /**
172
+ *
173
+ * @summary Progress of the size and hash backfill
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ status(options) {
178
+ return DesktopSyncAdministrationApiFp(this.configuration).status(options).then((request) => request(this.axios, this.basePath));
179
+ }
180
+ }
@@ -0,0 +1,282 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { DesktopSyncClientInfo } from '../models';
16
+ import type { SyncChangesResponse } from '../models';
17
+ import type { SyncItem } from '../models';
18
+ import type { SyncSnapshotResponse } from '../models';
19
+ /**
20
+ * DesktopSyncApi - axios parameter creator
21
+ */
22
+ export declare const DesktopSyncApiAxiosParamCreator: (configuration?: Configuration) => {
23
+ /**
24
+ * Without a cursor: no items, only the cursor of the present moment. An item is either the document\'s current state or {gone: true}. Call again while hasMore is true.
25
+ * @summary Documents that changed since a cursor, as the caller sees them now
26
+ * @param {number} [cursor]
27
+ * @param {number} [limit]
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ changes: (cursor?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
32
+ /**
33
+ * If-None-Match with the hash the client already holds answers 304 without a body.
34
+ * @summary Download a file; its ETag is the SHA-256 of the content
35
+ * @param {string} documentId
36
+ * @param {string} [ifNoneMatch]
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ content: (documentId: string, ifNoneMatch?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
41
+ /**
42
+ *
43
+ * @summary Connection details for the desktop application (public)
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ discover: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
48
+ /**
49
+ *
50
+ * @summary Where to get the desktop application, and the address to give it
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ forWebApplication: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
55
+ /**
56
+ * What /changes would answer for these ids: a client asks after its own upload, or to settle a conflict. Ids the caller cannot see come back as {gone: true}. At most 200 ids.
57
+ * @summary Current state of the given documents, as the caller sees them
58
+ * @param {Array<string>} ids
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ items: (ids: Array<string>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
63
+ /**
64
+ * If-Match carries the SHA-256 the client last saw. 412 = the content changed on the server in the meantime: keep both. 428 = no If-Match. Answers the document\'s new state.
65
+ * @summary Replace a file\'s content, only if it is still the content the edit was based on
66
+ * @param {string} documentId
67
+ * @param {File} file
68
+ * @param {string} [ifMatch]
69
+ * @param {number} [contentLength]
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ replaceContent: (documentId: string, file: File, ifMatch?: string, contentLength?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
74
+ /**
75
+ * The root holds the caller\'s own top-level items and the entry point of everything shared with them. Keep the cursor of the first page and start /changes from it.
76
+ * @summary One page of a folder\'s children; without folderId, the caller\'s root
77
+ * @param {string} [folderId]
78
+ * @param {string} [after]
79
+ * @param {number} [limit]
80
+ * @param {*} [options] Override http request option.
81
+ * @throws {RequiredError}
82
+ */
83
+ snapshot: (folderId?: string, after?: string, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
84
+ };
85
+ /**
86
+ * DesktopSyncApi - functional programming interface
87
+ */
88
+ export declare const DesktopSyncApiFp: (configuration?: Configuration) => {
89
+ /**
90
+ * Without a cursor: no items, only the cursor of the present moment. An item is either the document\'s current state or {gone: true}. Call again while hasMore is true.
91
+ * @summary Documents that changed since a cursor, as the caller sees them now
92
+ * @param {number} [cursor]
93
+ * @param {number} [limit]
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ */
97
+ changes(cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncChangesResponse>>;
98
+ /**
99
+ * If-None-Match with the hash the client already holds answers 304 without a body.
100
+ * @summary Download a file; its ETag is the SHA-256 of the content
101
+ * @param {string} documentId
102
+ * @param {string} [ifNoneMatch]
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ content(documentId: string, ifNoneMatch?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
107
+ /**
108
+ *
109
+ * @summary Connection details for the desktop application (public)
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ */
113
+ discover(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DesktopSyncClientInfo>>;
114
+ /**
115
+ *
116
+ * @summary Where to get the desktop application, and the address to give it
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ forWebApplication(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DesktopSyncClientInfo>>;
121
+ /**
122
+ * What /changes would answer for these ids: a client asks after its own upload, or to settle a conflict. Ids the caller cannot see come back as {gone: true}. At most 200 ids.
123
+ * @summary Current state of the given documents, as the caller sees them
124
+ * @param {Array<string>} ids
125
+ * @param {*} [options] Override http request option.
126
+ * @throws {RequiredError}
127
+ */
128
+ items(ids: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SyncItem>>>;
129
+ /**
130
+ * If-Match carries the SHA-256 the client last saw. 412 = the content changed on the server in the meantime: keep both. 428 = no If-Match. Answers the document\'s new state.
131
+ * @summary Replace a file\'s content, only if it is still the content the edit was based on
132
+ * @param {string} documentId
133
+ * @param {File} file
134
+ * @param {string} [ifMatch]
135
+ * @param {number} [contentLength]
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ replaceContent(documentId: string, file: File, ifMatch?: string, contentLength?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncItem>>;
140
+ /**
141
+ * The root holds the caller\'s own top-level items and the entry point of everything shared with them. Keep the cursor of the first page and start /changes from it.
142
+ * @summary One page of a folder\'s children; without folderId, the caller\'s root
143
+ * @param {string} [folderId]
144
+ * @param {string} [after]
145
+ * @param {number} [limit]
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ snapshot(folderId?: string, after?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SyncSnapshotResponse>>;
150
+ };
151
+ /**
152
+ * DesktopSyncApi - factory interface
153
+ */
154
+ export declare const DesktopSyncApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
155
+ /**
156
+ * Without a cursor: no items, only the cursor of the present moment. An item is either the document\'s current state or {gone: true}. Call again while hasMore is true.
157
+ * @summary Documents that changed since a cursor, as the caller sees them now
158
+ * @param {number} [cursor]
159
+ * @param {number} [limit]
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ changes(cursor?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<SyncChangesResponse>;
164
+ /**
165
+ * If-None-Match with the hash the client already holds answers 304 without a body.
166
+ * @summary Download a file; its ETag is the SHA-256 of the content
167
+ * @param {string} documentId
168
+ * @param {string} [ifNoneMatch]
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ content(documentId: string, ifNoneMatch?: string, options?: RawAxiosRequestConfig): AxiosPromise<File>;
173
+ /**
174
+ *
175
+ * @summary Connection details for the desktop application (public)
176
+ * @param {*} [options] Override http request option.
177
+ * @throws {RequiredError}
178
+ */
179
+ discover(options?: RawAxiosRequestConfig): AxiosPromise<DesktopSyncClientInfo>;
180
+ /**
181
+ *
182
+ * @summary Where to get the desktop application, and the address to give it
183
+ * @param {*} [options] Override http request option.
184
+ * @throws {RequiredError}
185
+ */
186
+ forWebApplication(options?: RawAxiosRequestConfig): AxiosPromise<DesktopSyncClientInfo>;
187
+ /**
188
+ * What /changes would answer for these ids: a client asks after its own upload, or to settle a conflict. Ids the caller cannot see come back as {gone: true}. At most 200 ids.
189
+ * @summary Current state of the given documents, as the caller sees them
190
+ * @param {Array<string>} ids
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ items(ids: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<Array<SyncItem>>;
195
+ /**
196
+ * If-Match carries the SHA-256 the client last saw. 412 = the content changed on the server in the meantime: keep both. 428 = no If-Match. Answers the document\'s new state.
197
+ * @summary Replace a file\'s content, only if it is still the content the edit was based on
198
+ * @param {string} documentId
199
+ * @param {File} file
200
+ * @param {string} [ifMatch]
201
+ * @param {number} [contentLength]
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ */
205
+ replaceContent(documentId: string, file: File, ifMatch?: string, contentLength?: number, options?: RawAxiosRequestConfig): AxiosPromise<SyncItem>;
206
+ /**
207
+ * The root holds the caller\'s own top-level items and the entry point of everything shared with them. Keep the cursor of the first page and start /changes from it.
208
+ * @summary One page of a folder\'s children; without folderId, the caller\'s root
209
+ * @param {string} [folderId]
210
+ * @param {string} [after]
211
+ * @param {number} [limit]
212
+ * @param {*} [options] Override http request option.
213
+ * @throws {RequiredError}
214
+ */
215
+ snapshot(folderId?: string, after?: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<SyncSnapshotResponse>;
216
+ };
217
+ /**
218
+ * DesktopSyncApi - object-oriented interface
219
+ */
220
+ export declare class DesktopSyncApi extends BaseAPI {
221
+ /**
222
+ * Without a cursor: no items, only the cursor of the present moment. An item is either the document\'s current state or {gone: true}. Call again while hasMore is true.
223
+ * @summary Documents that changed since a cursor, as the caller sees them now
224
+ * @param {number} [cursor]
225
+ * @param {number} [limit]
226
+ * @param {*} [options] Override http request option.
227
+ * @throws {RequiredError}
228
+ */
229
+ changes(cursor?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SyncChangesResponse, any, {}, any>>;
230
+ /**
231
+ * If-None-Match with the hash the client already holds answers 304 without a body.
232
+ * @summary Download a file; its ETag is the SHA-256 of the content
233
+ * @param {string} documentId
234
+ * @param {string} [ifNoneMatch]
235
+ * @param {*} [options] Override http request option.
236
+ * @throws {RequiredError}
237
+ */
238
+ content(documentId: string, ifNoneMatch?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}, any>>;
239
+ /**
240
+ *
241
+ * @summary Connection details for the desktop application (public)
242
+ * @param {*} [options] Override http request option.
243
+ * @throws {RequiredError}
244
+ */
245
+ discover(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DesktopSyncClientInfo, any, {}, any>>;
246
+ /**
247
+ *
248
+ * @summary Where to get the desktop application, and the address to give it
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ */
252
+ forWebApplication(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DesktopSyncClientInfo, any, {}, any>>;
253
+ /**
254
+ * What /changes would answer for these ids: a client asks after its own upload, or to settle a conflict. Ids the caller cannot see come back as {gone: true}. At most 200 ids.
255
+ * @summary Current state of the given documents, as the caller sees them
256
+ * @param {Array<string>} ids
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ items(ids: Array<string>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SyncItem[], any, {}, any>>;
261
+ /**
262
+ * If-Match carries the SHA-256 the client last saw. 412 = the content changed on the server in the meantime: keep both. 428 = no If-Match. Answers the document\'s new state.
263
+ * @summary Replace a file\'s content, only if it is still the content the edit was based on
264
+ * @param {string} documentId
265
+ * @param {File} file
266
+ * @param {string} [ifMatch]
267
+ * @param {number} [contentLength]
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
271
+ replaceContent(documentId: string, file: File, ifMatch?: string, contentLength?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SyncItem, any, {}, any>>;
272
+ /**
273
+ * The root holds the caller\'s own top-level items and the entry point of everything shared with them. Keep the cursor of the first page and start /changes from it.
274
+ * @summary One page of a folder\'s children; without folderId, the caller\'s root
275
+ * @param {string} [folderId]
276
+ * @param {string} [after]
277
+ * @param {number} [limit]
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ snapshot(folderId?: string, after?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SyncSnapshotResponse, any, {}, any>>;
282
+ }