@openfilz-sdk/typescript-ee 1.13.3 → 1.14.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/.openapi-generator/FILES +22 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +31 -2
- package/api/sharing-policy-api.ts +1471 -0
- package/api/team-administration-api.ts +133 -0
- package/api.ts +2 -0
- package/dist/api/sharing-policy-api.d.ts +662 -0
- package/dist/api/sharing-policy-api.js +1399 -0
- package/dist/api/team-administration-api.d.ts +70 -0
- package/dist/api/team-administration-api.js +139 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/esm/api/sharing-policy-api.d.ts +662 -0
- package/dist/esm/api/sharing-policy-api.js +1392 -0
- package/dist/esm/api/team-administration-api.d.ts +70 -0
- package/dist/esm/api/team-administration-api.js +132 -0
- package/dist/esm/api.d.ts +2 -0
- package/dist/esm/api.js +2 -0
- package/dist/esm/models/effective-policy.d.ts +31 -0
- package/dist/esm/models/effective-policy.js +24 -0
- package/dist/esm/models/enriched-audit-log.d.ts +2 -0
- package/dist/esm/models/enriched-audit-log.js +2 -0
- package/dist/esm/models/global-policy.d.ts +26 -0
- package/dist/esm/models/global-policy.js +19 -0
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/esm/models/item.d.ts +1 -7
- package/dist/esm/models/my-policy.d.ts +30 -0
- package/dist/esm/models/my-policy.js +24 -0
- package/dist/esm/models/notification-dto.d.ts +1 -0
- package/dist/esm/models/notification-dto.js +1 -0
- package/dist/esm/models/override-request.d.ts +21 -0
- package/dist/esm/models/override-request.js +19 -0
- package/dist/esm/models/override-view.d.ts +27 -0
- package/dist/esm/models/override-view.js +19 -0
- package/dist/esm/models/revoke-request.d.ts +16 -0
- package/dist/esm/models/revoke-request.js +14 -0
- package/dist/esm/models/revoke-result.d.ts +18 -0
- package/dist/esm/models/revoke-result.js +14 -0
- package/dist/esm/models/search-by-audit-log-request.d.ts +2 -0
- package/dist/esm/models/search-by-audit-log-request.js +2 -0
- package/dist/esm/models/share-result-error.d.ts +6 -0
- package/dist/esm/models/share-result-error.js +6 -0
- package/dist/esm/models/violation.d.ts +41 -0
- package/dist/esm/models/violation.js +28 -0
- package/dist/esm/models/violations-response.d.ts +17 -0
- package/dist/esm/models/violations-response.js +14 -0
- package/dist/models/effective-policy.d.ts +31 -0
- package/dist/models/effective-policy.js +27 -0
- package/dist/models/enriched-audit-log.d.ts +2 -0
- package/dist/models/enriched-audit-log.js +2 -0
- package/dist/models/global-policy.d.ts +26 -0
- package/dist/models/global-policy.js +22 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/dist/models/item.d.ts +1 -7
- package/dist/models/my-policy.d.ts +30 -0
- package/dist/models/my-policy.js +27 -0
- package/dist/models/notification-dto.d.ts +1 -0
- package/dist/models/notification-dto.js +1 -0
- package/dist/models/override-request.d.ts +21 -0
- package/dist/models/override-request.js +22 -0
- package/dist/models/override-view.d.ts +27 -0
- package/dist/models/override-view.js +22 -0
- package/dist/models/revoke-request.d.ts +16 -0
- package/dist/models/revoke-request.js +15 -0
- package/dist/models/revoke-result.d.ts +18 -0
- package/dist/models/revoke-result.js +15 -0
- package/dist/models/search-by-audit-log-request.d.ts +2 -0
- package/dist/models/search-by-audit-log-request.js +2 -0
- package/dist/models/share-result-error.d.ts +6 -0
- package/dist/models/share-result-error.js +6 -0
- package/dist/models/violation.d.ts +41 -0
- package/dist/models/violation.js +31 -0
- package/dist/models/violations-response.d.ts +17 -0
- package/dist/models/violations-response.js +15 -0
- package/docs/EffectivePolicy.md +28 -0
- package/docs/GlobalPolicy.md +30 -0
- package/docs/Item.md +2 -14
- package/docs/MyPolicy.md +26 -0
- package/docs/OverrideRequest.md +20 -0
- package/docs/OverrideView.md +32 -0
- package/docs/RevokeRequest.md +22 -0
- package/docs/RevokeResult.md +28 -0
- package/docs/SharingPolicyApi.md +988 -0
- package/docs/TeamAdministrationApi.md +62 -0
- package/docs/Violation.md +42 -0
- package/docs/ViolationsResponse.md +24 -0
- package/graphql/share.graphqls +2 -0
- package/models/effective-policy.ts +41 -0
- package/models/enriched-audit-log.ts +2 -0
- package/models/global-policy.ts +35 -0
- package/models/index.ts +9 -0
- package/models/item.ts +1 -7
- package/models/my-policy.ts +40 -0
- package/models/notification-dto.ts +1 -0
- package/models/override-request.ts +30 -0
- package/models/override-view.ts +36 -0
- package/models/revoke-request.ts +24 -0
- package/models/revoke-result.ts +24 -0
- package/models/search-by-audit-log-request.ts +2 -0
- package/models/share-result-error.ts +6 -0
- package/models/violation.ts +50 -0
- package/models/violations-response.ts +25 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1392 @@
|
|
|
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, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* SharingPolicyApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const SharingPolicyApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @summary A user\'s effective sharing rule and where it comes from (USER, TEAM or GLOBAL)
|
|
37
|
+
* @param {string} userId
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
adminGetEffectiveSharingPolicy: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
|
|
42
|
+
// verify required parameter 'userId' is not null or undefined
|
|
43
|
+
assertParamExists('adminGetEffectiveSharingPolicy', 'userId', userId);
|
|
44
|
+
const localVarPath = `/api/v1/admin/sharing-policy/effective/{userId}`
|
|
45
|
+
.replace('{userId}', encodeURIComponent(String(userId)));
|
|
46
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48
|
+
let baseOptions;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
}
|
|
52
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
53
|
+
const localVarHeaderParameter = {};
|
|
54
|
+
const localVarQueryParameter = {};
|
|
55
|
+
// authentication keycloak_auth required
|
|
56
|
+
// http bearer authentication required
|
|
57
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
58
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
59
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
60
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
62
|
+
return {
|
|
63
|
+
url: toPathString(localVarUrlObj),
|
|
64
|
+
options: localVarRequestOptions,
|
|
65
|
+
};
|
|
66
|
+
}),
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @summary The global mode, allowed domains, e-Sign switch, locked keys and number of overrides
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
adminGetSharingPolicy: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
74
|
+
const localVarPath = `/api/v1/admin/sharing-policy`;
|
|
75
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
76
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
77
|
+
let baseOptions;
|
|
78
|
+
if (configuration) {
|
|
79
|
+
baseOptions = configuration.baseOptions;
|
|
80
|
+
}
|
|
81
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
82
|
+
const localVarHeaderParameter = {};
|
|
83
|
+
const localVarQueryParameter = {};
|
|
84
|
+
// authentication keycloak_auth required
|
|
85
|
+
// http bearer authentication required
|
|
86
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
87
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
88
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
89
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
90
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
91
|
+
return {
|
|
92
|
+
url: toPathString(localVarUrlObj),
|
|
93
|
+
options: localVarRequestOptions,
|
|
94
|
+
};
|
|
95
|
+
}),
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @summary Progress of a background revocation
|
|
99
|
+
* @param {string} jobId
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
adminGetSharingPolicyRevokeJob: (jobId_1, ...args_1) => __awaiter(this, [jobId_1, ...args_1], void 0, function* (jobId, options = {}) {
|
|
104
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
105
|
+
assertParamExists('adminGetSharingPolicyRevokeJob', 'jobId', jobId);
|
|
106
|
+
const localVarPath = `/api/v1/admin/sharing-policy/violations/revoke/{jobId}`
|
|
107
|
+
.replace('{jobId}', encodeURIComponent(String(jobId)));
|
|
108
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
109
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
110
|
+
let baseOptions;
|
|
111
|
+
if (configuration) {
|
|
112
|
+
baseOptions = configuration.baseOptions;
|
|
113
|
+
}
|
|
114
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
115
|
+
const localVarHeaderParameter = {};
|
|
116
|
+
const localVarQueryParameter = {};
|
|
117
|
+
// authentication keycloak_auth required
|
|
118
|
+
// http bearer authentication required
|
|
119
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
120
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
121
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
122
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
123
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
124
|
+
return {
|
|
125
|
+
url: toPathString(localVarUrlObj),
|
|
126
|
+
options: localVarRequestOptions,
|
|
127
|
+
};
|
|
128
|
+
}),
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @summary Users and teams with their own sharing rule
|
|
132
|
+
* @param {string} [type]
|
|
133
|
+
* @param {*} [options] Override http request option.
|
|
134
|
+
* @throws {RequiredError}
|
|
135
|
+
*/
|
|
136
|
+
adminListSharingPolicyOverrides: (type_1, ...args_1) => __awaiter(this, [type_1, ...args_1], void 0, function* (type, options = {}) {
|
|
137
|
+
const localVarPath = `/api/v1/admin/sharing-policy/overrides`;
|
|
138
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
139
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
140
|
+
let baseOptions;
|
|
141
|
+
if (configuration) {
|
|
142
|
+
baseOptions = configuration.baseOptions;
|
|
143
|
+
}
|
|
144
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
145
|
+
const localVarHeaderParameter = {};
|
|
146
|
+
const localVarQueryParameter = {};
|
|
147
|
+
// authentication keycloak_auth required
|
|
148
|
+
// http bearer authentication required
|
|
149
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
150
|
+
if (type !== undefined) {
|
|
151
|
+
localVarQueryParameter['type'] = type;
|
|
152
|
+
}
|
|
153
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
154
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
155
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
156
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
157
|
+
return {
|
|
158
|
+
url: toPathString(localVarUrlObj),
|
|
159
|
+
options: localVarRequestOptions,
|
|
160
|
+
};
|
|
161
|
+
}),
|
|
162
|
+
/**
|
|
163
|
+
* Keyset-paginated (pass nextCursor back as cursor). A document\'s name is given only when the caller can already read it. count=true answers {count} only (cached 60 s).
|
|
164
|
+
* @summary Existing shares the current policies refuse
|
|
165
|
+
* @param {string} [cursor]
|
|
166
|
+
* @param {number} [size]
|
|
167
|
+
* @param {boolean} [count]
|
|
168
|
+
* @param {*} [options] Override http request option.
|
|
169
|
+
* @throws {RequiredError}
|
|
170
|
+
*/
|
|
171
|
+
adminListSharingPolicyViolations: (cursor_1, size_1, count_1, ...args_1) => __awaiter(this, [cursor_1, size_1, count_1, ...args_1], void 0, function* (cursor, size, count, options = {}) {
|
|
172
|
+
const localVarPath = `/api/v1/admin/sharing-policy/violations`;
|
|
173
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
174
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
175
|
+
let baseOptions;
|
|
176
|
+
if (configuration) {
|
|
177
|
+
baseOptions = configuration.baseOptions;
|
|
178
|
+
}
|
|
179
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
180
|
+
const localVarHeaderParameter = {};
|
|
181
|
+
const localVarQueryParameter = {};
|
|
182
|
+
// authentication keycloak_auth required
|
|
183
|
+
// http bearer authentication required
|
|
184
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
185
|
+
if (cursor !== undefined) {
|
|
186
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
187
|
+
}
|
|
188
|
+
if (size !== undefined) {
|
|
189
|
+
localVarQueryParameter['size'] = size;
|
|
190
|
+
}
|
|
191
|
+
if (count !== undefined) {
|
|
192
|
+
localVarQueryParameter['count'] = count;
|
|
193
|
+
}
|
|
194
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
195
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
196
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
197
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
198
|
+
return {
|
|
199
|
+
url: toPathString(localVarUrlObj),
|
|
200
|
+
options: localVarRequestOptions,
|
|
201
|
+
};
|
|
202
|
+
}),
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @summary Remove a user\'s or a team\'s own rule (back to their teams\', else the global mode)
|
|
206
|
+
* @param {string} subjectId
|
|
207
|
+
* @param {*} [options] Override http request option.
|
|
208
|
+
* @throws {RequiredError}
|
|
209
|
+
*/
|
|
210
|
+
adminRemoveSharingPolicyOverride: (subjectId_1, ...args_1) => __awaiter(this, [subjectId_1, ...args_1], void 0, function* (subjectId, options = {}) {
|
|
211
|
+
// verify required parameter 'subjectId' is not null or undefined
|
|
212
|
+
assertParamExists('adminRemoveSharingPolicyOverride', 'subjectId', subjectId);
|
|
213
|
+
const localVarPath = `/api/v1/admin/sharing-policy/overrides/{subjectId}`
|
|
214
|
+
.replace('{subjectId}', encodeURIComponent(String(subjectId)));
|
|
215
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
216
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
217
|
+
let baseOptions;
|
|
218
|
+
if (configuration) {
|
|
219
|
+
baseOptions = configuration.baseOptions;
|
|
220
|
+
}
|
|
221
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
222
|
+
const localVarHeaderParameter = {};
|
|
223
|
+
const localVarQueryParameter = {};
|
|
224
|
+
// authentication keycloak_auth required
|
|
225
|
+
// http bearer authentication required
|
|
226
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
227
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
228
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
229
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
230
|
+
return {
|
|
231
|
+
url: toPathString(localVarUrlObj),
|
|
232
|
+
options: localVarRequestOptions,
|
|
233
|
+
};
|
|
234
|
+
}),
|
|
235
|
+
/**
|
|
236
|
+
* items: the rows to revoke (each re-checked; a row that complies is skipped), or all=true. Each revocation is audited under the caller and notified to the document\'s owner. Above 500 rows, all=true runs in the background: 202 with a jobId to poll.
|
|
237
|
+
* @summary Revoke shares that break the policy
|
|
238
|
+
* @param {RevokeRequest} revokeRequest
|
|
239
|
+
* @param {*} [options] Override http request option.
|
|
240
|
+
* @throws {RequiredError}
|
|
241
|
+
*/
|
|
242
|
+
adminRevokeSharingPolicyViolations: (revokeRequest_1, ...args_1) => __awaiter(this, [revokeRequest_1, ...args_1], void 0, function* (revokeRequest, options = {}) {
|
|
243
|
+
// verify required parameter 'revokeRequest' is not null or undefined
|
|
244
|
+
assertParamExists('adminRevokeSharingPolicyViolations', 'revokeRequest', revokeRequest);
|
|
245
|
+
const localVarPath = `/api/v1/admin/sharing-policy/violations/revoke`;
|
|
246
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
247
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
248
|
+
let baseOptions;
|
|
249
|
+
if (configuration) {
|
|
250
|
+
baseOptions = configuration.baseOptions;
|
|
251
|
+
}
|
|
252
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
253
|
+
const localVarHeaderParameter = {};
|
|
254
|
+
const localVarQueryParameter = {};
|
|
255
|
+
// authentication keycloak_auth required
|
|
256
|
+
// http bearer authentication required
|
|
257
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
258
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
259
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
260
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
261
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
262
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
263
|
+
localVarRequestOptions.data = serializeDataIfNeeded(revokeRequest, localVarRequestOptions, configuration);
|
|
264
|
+
return {
|
|
265
|
+
url: toPathString(localVarUrlObj),
|
|
266
|
+
options: localVarRequestOptions,
|
|
267
|
+
};
|
|
268
|
+
}),
|
|
269
|
+
/**
|
|
270
|
+
* Writes only the three openfilz.sharing.external.* settings (audited ADMIN_SETTING_CHANGED; 409 when the deployment locks one). A DOMAIN mode needs at least one domain. The answer carries the number of existing shares that no longer comply (violations).
|
|
271
|
+
* @summary Change the global mode, allowed domains and e-Sign switch
|
|
272
|
+
* @param {GlobalPolicy} globalPolicy
|
|
273
|
+
* @param {*} [options] Override http request option.
|
|
274
|
+
* @throws {RequiredError}
|
|
275
|
+
*/
|
|
276
|
+
adminSetSharingPolicyGlobal: (globalPolicy_1, ...args_1) => __awaiter(this, [globalPolicy_1, ...args_1], void 0, function* (globalPolicy, options = {}) {
|
|
277
|
+
// verify required parameter 'globalPolicy' is not null or undefined
|
|
278
|
+
assertParamExists('adminSetSharingPolicyGlobal', 'globalPolicy', globalPolicy);
|
|
279
|
+
const localVarPath = `/api/v1/admin/sharing-policy/global`;
|
|
280
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
281
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
282
|
+
let baseOptions;
|
|
283
|
+
if (configuration) {
|
|
284
|
+
baseOptions = configuration.baseOptions;
|
|
285
|
+
}
|
|
286
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
287
|
+
const localVarHeaderParameter = {};
|
|
288
|
+
const localVarQueryParameter = {};
|
|
289
|
+
// authentication keycloak_auth required
|
|
290
|
+
// http bearer authentication required
|
|
291
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
292
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
293
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
294
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
295
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
296
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
297
|
+
localVarRequestOptions.data = serializeDataIfNeeded(globalPolicy, localVarRequestOptions, configuration);
|
|
298
|
+
return {
|
|
299
|
+
url: toPathString(localVarUrlObj),
|
|
300
|
+
options: localVarRequestOptions,
|
|
301
|
+
};
|
|
302
|
+
}),
|
|
303
|
+
/**
|
|
304
|
+
* A user\'s rule wins over their teams\'; several teams combine by union of their conditions; ALLOW on a team exempts its members from the global mode. Audited SHARING_POLICY_CHANGED. 404 outside the caller\'s organisation.
|
|
305
|
+
* @summary Set a user\'s or a team\'s sharing rule
|
|
306
|
+
* @param {string} subjectId
|
|
307
|
+
* @param {OverrideRequest} overrideRequest
|
|
308
|
+
* @param {*} [options] Override http request option.
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
*/
|
|
311
|
+
adminSetSharingPolicyOverride: (subjectId_1, overrideRequest_1, ...args_1) => __awaiter(this, [subjectId_1, overrideRequest_1, ...args_1], void 0, function* (subjectId, overrideRequest, options = {}) {
|
|
312
|
+
// verify required parameter 'subjectId' is not null or undefined
|
|
313
|
+
assertParamExists('adminSetSharingPolicyOverride', 'subjectId', subjectId);
|
|
314
|
+
// verify required parameter 'overrideRequest' is not null or undefined
|
|
315
|
+
assertParamExists('adminSetSharingPolicyOverride', 'overrideRequest', overrideRequest);
|
|
316
|
+
const localVarPath = `/api/v1/admin/sharing-policy/overrides/{subjectId}`
|
|
317
|
+
.replace('{subjectId}', encodeURIComponent(String(subjectId)));
|
|
318
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
319
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
320
|
+
let baseOptions;
|
|
321
|
+
if (configuration) {
|
|
322
|
+
baseOptions = configuration.baseOptions;
|
|
323
|
+
}
|
|
324
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
325
|
+
const localVarHeaderParameter = {};
|
|
326
|
+
const localVarQueryParameter = {};
|
|
327
|
+
// authentication keycloak_auth required
|
|
328
|
+
// http bearer authentication required
|
|
329
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
330
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
331
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
332
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
333
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
334
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
335
|
+
localVarRequestOptions.data = serializeDataIfNeeded(overrideRequest, localVarRequestOptions, configuration);
|
|
336
|
+
return {
|
|
337
|
+
url: toPathString(localVarUrlObj),
|
|
338
|
+
options: localVarRequestOptions,
|
|
339
|
+
};
|
|
340
|
+
}),
|
|
341
|
+
/**
|
|
342
|
+
*
|
|
343
|
+
* @summary A user\'s effective sharing rule and where it comes from (USER, TEAM or GLOBAL)
|
|
344
|
+
* @param {string} userId
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
*/
|
|
348
|
+
getEffectiveSharingPolicy: (userId_1, ...args_1) => __awaiter(this, [userId_1, ...args_1], void 0, function* (userId, options = {}) {
|
|
349
|
+
// verify required parameter 'userId' is not null or undefined
|
|
350
|
+
assertParamExists('getEffectiveSharingPolicy', 'userId', userId);
|
|
351
|
+
const localVarPath = `/api/v1/users/sharing-policy/effective/{userId}`
|
|
352
|
+
.replace('{userId}', encodeURIComponent(String(userId)));
|
|
353
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
354
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
355
|
+
let baseOptions;
|
|
356
|
+
if (configuration) {
|
|
357
|
+
baseOptions = configuration.baseOptions;
|
|
358
|
+
}
|
|
359
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
360
|
+
const localVarHeaderParameter = {};
|
|
361
|
+
const localVarQueryParameter = {};
|
|
362
|
+
// authentication keycloak_auth required
|
|
363
|
+
// http bearer authentication required
|
|
364
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
365
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
366
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
367
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
368
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
369
|
+
return {
|
|
370
|
+
url: toPathString(localVarUrlObj),
|
|
371
|
+
options: localVarRequestOptions,
|
|
372
|
+
};
|
|
373
|
+
}),
|
|
374
|
+
/**
|
|
375
|
+
* The allowed domains are listed only when the rule restricts domains.
|
|
376
|
+
* @summary The caller\'s own sharing rule (for the share dialog)
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @throws {RequiredError}
|
|
379
|
+
*/
|
|
380
|
+
getMySharingPolicy: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
381
|
+
const localVarPath = `/api/v1/users/me/sharing-policy`;
|
|
382
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
383
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
384
|
+
let baseOptions;
|
|
385
|
+
if (configuration) {
|
|
386
|
+
baseOptions = configuration.baseOptions;
|
|
387
|
+
}
|
|
388
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
389
|
+
const localVarHeaderParameter = {};
|
|
390
|
+
const localVarQueryParameter = {};
|
|
391
|
+
// authentication keycloak_auth required
|
|
392
|
+
// http bearer authentication required
|
|
393
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
394
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
395
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
396
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
397
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
398
|
+
return {
|
|
399
|
+
url: toPathString(localVarUrlObj),
|
|
400
|
+
options: localVarRequestOptions,
|
|
401
|
+
};
|
|
402
|
+
}),
|
|
403
|
+
/**
|
|
404
|
+
*
|
|
405
|
+
* @summary The global mode, allowed domains, e-Sign switch, locked keys and number of overrides
|
|
406
|
+
* @param {*} [options] Override http request option.
|
|
407
|
+
* @throws {RequiredError}
|
|
408
|
+
*/
|
|
409
|
+
getSharingPolicy: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
410
|
+
const localVarPath = `/api/v1/users/sharing-policy`;
|
|
411
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
412
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
413
|
+
let baseOptions;
|
|
414
|
+
if (configuration) {
|
|
415
|
+
baseOptions = configuration.baseOptions;
|
|
416
|
+
}
|
|
417
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
418
|
+
const localVarHeaderParameter = {};
|
|
419
|
+
const localVarQueryParameter = {};
|
|
420
|
+
// authentication keycloak_auth required
|
|
421
|
+
// http bearer authentication required
|
|
422
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
423
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
424
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
425
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
426
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
427
|
+
return {
|
|
428
|
+
url: toPathString(localVarUrlObj),
|
|
429
|
+
options: localVarRequestOptions,
|
|
430
|
+
};
|
|
431
|
+
}),
|
|
432
|
+
/**
|
|
433
|
+
*
|
|
434
|
+
* @summary Progress of a background revocation
|
|
435
|
+
* @param {string} jobId
|
|
436
|
+
* @param {*} [options] Override http request option.
|
|
437
|
+
* @throws {RequiredError}
|
|
438
|
+
*/
|
|
439
|
+
getSharingPolicyRevokeJob: (jobId_1, ...args_1) => __awaiter(this, [jobId_1, ...args_1], void 0, function* (jobId, options = {}) {
|
|
440
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
441
|
+
assertParamExists('getSharingPolicyRevokeJob', 'jobId', jobId);
|
|
442
|
+
const localVarPath = `/api/v1/users/sharing-policy/violations/revoke/{jobId}`
|
|
443
|
+
.replace('{jobId}', encodeURIComponent(String(jobId)));
|
|
444
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
445
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
446
|
+
let baseOptions;
|
|
447
|
+
if (configuration) {
|
|
448
|
+
baseOptions = configuration.baseOptions;
|
|
449
|
+
}
|
|
450
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
451
|
+
const localVarHeaderParameter = {};
|
|
452
|
+
const localVarQueryParameter = {};
|
|
453
|
+
// authentication keycloak_auth required
|
|
454
|
+
// http bearer authentication required
|
|
455
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
456
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
457
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
458
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
459
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
460
|
+
return {
|
|
461
|
+
url: toPathString(localVarUrlObj),
|
|
462
|
+
options: localVarRequestOptions,
|
|
463
|
+
};
|
|
464
|
+
}),
|
|
465
|
+
/**
|
|
466
|
+
*
|
|
467
|
+
* @summary Users and teams with their own sharing rule
|
|
468
|
+
* @param {string} [type]
|
|
469
|
+
* @param {*} [options] Override http request option.
|
|
470
|
+
* @throws {RequiredError}
|
|
471
|
+
*/
|
|
472
|
+
listSharingPolicyOverrides: (type_1, ...args_1) => __awaiter(this, [type_1, ...args_1], void 0, function* (type, options = {}) {
|
|
473
|
+
const localVarPath = `/api/v1/users/sharing-policy/overrides`;
|
|
474
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
475
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
476
|
+
let baseOptions;
|
|
477
|
+
if (configuration) {
|
|
478
|
+
baseOptions = configuration.baseOptions;
|
|
479
|
+
}
|
|
480
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
481
|
+
const localVarHeaderParameter = {};
|
|
482
|
+
const localVarQueryParameter = {};
|
|
483
|
+
// authentication keycloak_auth required
|
|
484
|
+
// http bearer authentication required
|
|
485
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
486
|
+
if (type !== undefined) {
|
|
487
|
+
localVarQueryParameter['type'] = type;
|
|
488
|
+
}
|
|
489
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
490
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
491
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
492
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
493
|
+
return {
|
|
494
|
+
url: toPathString(localVarUrlObj),
|
|
495
|
+
options: localVarRequestOptions,
|
|
496
|
+
};
|
|
497
|
+
}),
|
|
498
|
+
/**
|
|
499
|
+
* Keyset-paginated (pass nextCursor back as cursor). A document\'s name is given only when the caller can already read it. count=true answers {count} only (cached 60 s).
|
|
500
|
+
* @summary Existing shares the current policies refuse
|
|
501
|
+
* @param {string} [cursor]
|
|
502
|
+
* @param {number} [size]
|
|
503
|
+
* @param {boolean} [count]
|
|
504
|
+
* @param {*} [options] Override http request option.
|
|
505
|
+
* @throws {RequiredError}
|
|
506
|
+
*/
|
|
507
|
+
listSharingPolicyViolations: (cursor_1, size_1, count_1, ...args_1) => __awaiter(this, [cursor_1, size_1, count_1, ...args_1], void 0, function* (cursor, size, count, options = {}) {
|
|
508
|
+
const localVarPath = `/api/v1/users/sharing-policy/violations`;
|
|
509
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
510
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
511
|
+
let baseOptions;
|
|
512
|
+
if (configuration) {
|
|
513
|
+
baseOptions = configuration.baseOptions;
|
|
514
|
+
}
|
|
515
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
516
|
+
const localVarHeaderParameter = {};
|
|
517
|
+
const localVarQueryParameter = {};
|
|
518
|
+
// authentication keycloak_auth required
|
|
519
|
+
// http bearer authentication required
|
|
520
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
521
|
+
if (cursor !== undefined) {
|
|
522
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
523
|
+
}
|
|
524
|
+
if (size !== undefined) {
|
|
525
|
+
localVarQueryParameter['size'] = size;
|
|
526
|
+
}
|
|
527
|
+
if (count !== undefined) {
|
|
528
|
+
localVarQueryParameter['count'] = count;
|
|
529
|
+
}
|
|
530
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
531
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
532
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
533
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
534
|
+
return {
|
|
535
|
+
url: toPathString(localVarUrlObj),
|
|
536
|
+
options: localVarRequestOptions,
|
|
537
|
+
};
|
|
538
|
+
}),
|
|
539
|
+
/**
|
|
540
|
+
*
|
|
541
|
+
* @summary Remove a user\'s or a team\'s own rule (back to their teams\', else the global mode)
|
|
542
|
+
* @param {string} subjectId
|
|
543
|
+
* @param {*} [options] Override http request option.
|
|
544
|
+
* @throws {RequiredError}
|
|
545
|
+
*/
|
|
546
|
+
removeSharingPolicyOverride: (subjectId_1, ...args_1) => __awaiter(this, [subjectId_1, ...args_1], void 0, function* (subjectId, options = {}) {
|
|
547
|
+
// verify required parameter 'subjectId' is not null or undefined
|
|
548
|
+
assertParamExists('removeSharingPolicyOverride', 'subjectId', subjectId);
|
|
549
|
+
const localVarPath = `/api/v1/users/sharing-policy/overrides/{subjectId}`
|
|
550
|
+
.replace('{subjectId}', encodeURIComponent(String(subjectId)));
|
|
551
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
552
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
553
|
+
let baseOptions;
|
|
554
|
+
if (configuration) {
|
|
555
|
+
baseOptions = configuration.baseOptions;
|
|
556
|
+
}
|
|
557
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
558
|
+
const localVarHeaderParameter = {};
|
|
559
|
+
const localVarQueryParameter = {};
|
|
560
|
+
// authentication keycloak_auth required
|
|
561
|
+
// http bearer authentication required
|
|
562
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
563
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
564
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
565
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
566
|
+
return {
|
|
567
|
+
url: toPathString(localVarUrlObj),
|
|
568
|
+
options: localVarRequestOptions,
|
|
569
|
+
};
|
|
570
|
+
}),
|
|
571
|
+
/**
|
|
572
|
+
* items: the rows to revoke (each re-checked; a row that complies is skipped), or all=true. Each revocation is audited under the caller and notified to the document\'s owner. Above 500 rows, all=true runs in the background: 202 with a jobId to poll.
|
|
573
|
+
* @summary Revoke shares that break the policy
|
|
574
|
+
* @param {RevokeRequest} revokeRequest
|
|
575
|
+
* @param {*} [options] Override http request option.
|
|
576
|
+
* @throws {RequiredError}
|
|
577
|
+
*/
|
|
578
|
+
revokeSharingPolicyViolations: (revokeRequest_1, ...args_1) => __awaiter(this, [revokeRequest_1, ...args_1], void 0, function* (revokeRequest, options = {}) {
|
|
579
|
+
// verify required parameter 'revokeRequest' is not null or undefined
|
|
580
|
+
assertParamExists('revokeSharingPolicyViolations', 'revokeRequest', revokeRequest);
|
|
581
|
+
const localVarPath = `/api/v1/users/sharing-policy/violations/revoke`;
|
|
582
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
583
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
584
|
+
let baseOptions;
|
|
585
|
+
if (configuration) {
|
|
586
|
+
baseOptions = configuration.baseOptions;
|
|
587
|
+
}
|
|
588
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
589
|
+
const localVarHeaderParameter = {};
|
|
590
|
+
const localVarQueryParameter = {};
|
|
591
|
+
// authentication keycloak_auth required
|
|
592
|
+
// http bearer authentication required
|
|
593
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
594
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
595
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
596
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
597
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
598
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
599
|
+
localVarRequestOptions.data = serializeDataIfNeeded(revokeRequest, localVarRequestOptions, configuration);
|
|
600
|
+
return {
|
|
601
|
+
url: toPathString(localVarUrlObj),
|
|
602
|
+
options: localVarRequestOptions,
|
|
603
|
+
};
|
|
604
|
+
}),
|
|
605
|
+
/**
|
|
606
|
+
* Writes only the three openfilz.sharing.external.* settings (audited ADMIN_SETTING_CHANGED; 409 when the deployment locks one). A DOMAIN mode needs at least one domain. The answer carries the number of existing shares that no longer comply (violations).
|
|
607
|
+
* @summary Change the global mode, allowed domains and e-Sign switch
|
|
608
|
+
* @param {GlobalPolicy} globalPolicy
|
|
609
|
+
* @param {*} [options] Override http request option.
|
|
610
|
+
* @throws {RequiredError}
|
|
611
|
+
*/
|
|
612
|
+
setSharingPolicyGlobal: (globalPolicy_1, ...args_1) => __awaiter(this, [globalPolicy_1, ...args_1], void 0, function* (globalPolicy, options = {}) {
|
|
613
|
+
// verify required parameter 'globalPolicy' is not null or undefined
|
|
614
|
+
assertParamExists('setSharingPolicyGlobal', 'globalPolicy', globalPolicy);
|
|
615
|
+
const localVarPath = `/api/v1/users/sharing-policy/global`;
|
|
616
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
617
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
618
|
+
let baseOptions;
|
|
619
|
+
if (configuration) {
|
|
620
|
+
baseOptions = configuration.baseOptions;
|
|
621
|
+
}
|
|
622
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
623
|
+
const localVarHeaderParameter = {};
|
|
624
|
+
const localVarQueryParameter = {};
|
|
625
|
+
// authentication keycloak_auth required
|
|
626
|
+
// http bearer authentication required
|
|
627
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
628
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
629
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
630
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
631
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
632
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
633
|
+
localVarRequestOptions.data = serializeDataIfNeeded(globalPolicy, localVarRequestOptions, configuration);
|
|
634
|
+
return {
|
|
635
|
+
url: toPathString(localVarUrlObj),
|
|
636
|
+
options: localVarRequestOptions,
|
|
637
|
+
};
|
|
638
|
+
}),
|
|
639
|
+
/**
|
|
640
|
+
* A user\'s rule wins over their teams\'; several teams combine by union of their conditions; ALLOW on a team exempts its members from the global mode. Audited SHARING_POLICY_CHANGED. 404 outside the caller\'s organisation.
|
|
641
|
+
* @summary Set a user\'s or a team\'s sharing rule
|
|
642
|
+
* @param {string} subjectId
|
|
643
|
+
* @param {OverrideRequest} overrideRequest
|
|
644
|
+
* @param {*} [options] Override http request option.
|
|
645
|
+
* @throws {RequiredError}
|
|
646
|
+
*/
|
|
647
|
+
setSharingPolicyOverride: (subjectId_1, overrideRequest_1, ...args_1) => __awaiter(this, [subjectId_1, overrideRequest_1, ...args_1], void 0, function* (subjectId, overrideRequest, options = {}) {
|
|
648
|
+
// verify required parameter 'subjectId' is not null or undefined
|
|
649
|
+
assertParamExists('setSharingPolicyOverride', 'subjectId', subjectId);
|
|
650
|
+
// verify required parameter 'overrideRequest' is not null or undefined
|
|
651
|
+
assertParamExists('setSharingPolicyOverride', 'overrideRequest', overrideRequest);
|
|
652
|
+
const localVarPath = `/api/v1/users/sharing-policy/overrides/{subjectId}`
|
|
653
|
+
.replace('{subjectId}', encodeURIComponent(String(subjectId)));
|
|
654
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
655
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
656
|
+
let baseOptions;
|
|
657
|
+
if (configuration) {
|
|
658
|
+
baseOptions = configuration.baseOptions;
|
|
659
|
+
}
|
|
660
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
661
|
+
const localVarHeaderParameter = {};
|
|
662
|
+
const localVarQueryParameter = {};
|
|
663
|
+
// authentication keycloak_auth required
|
|
664
|
+
// http bearer authentication required
|
|
665
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
666
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
667
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
668
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
669
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
670
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
671
|
+
localVarRequestOptions.data = serializeDataIfNeeded(overrideRequest, localVarRequestOptions, configuration);
|
|
672
|
+
return {
|
|
673
|
+
url: toPathString(localVarUrlObj),
|
|
674
|
+
options: localVarRequestOptions,
|
|
675
|
+
};
|
|
676
|
+
}),
|
|
677
|
+
};
|
|
678
|
+
};
|
|
679
|
+
/**
|
|
680
|
+
* SharingPolicyApi - functional programming interface
|
|
681
|
+
*/
|
|
682
|
+
export const SharingPolicyApiFp = function (configuration) {
|
|
683
|
+
const localVarAxiosParamCreator = SharingPolicyApiAxiosParamCreator(configuration);
|
|
684
|
+
return {
|
|
685
|
+
/**
|
|
686
|
+
*
|
|
687
|
+
* @summary A user\'s effective sharing rule and where it comes from (USER, TEAM or GLOBAL)
|
|
688
|
+
* @param {string} userId
|
|
689
|
+
* @param {*} [options] Override http request option.
|
|
690
|
+
* @throws {RequiredError}
|
|
691
|
+
*/
|
|
692
|
+
adminGetEffectiveSharingPolicy(userId, options) {
|
|
693
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
694
|
+
var _a, _b, _c;
|
|
695
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminGetEffectiveSharingPolicy(userId, options);
|
|
696
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
697
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.adminGetEffectiveSharingPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
698
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
699
|
+
});
|
|
700
|
+
},
|
|
701
|
+
/**
|
|
702
|
+
*
|
|
703
|
+
* @summary The global mode, allowed domains, e-Sign switch, locked keys and number of overrides
|
|
704
|
+
* @param {*} [options] Override http request option.
|
|
705
|
+
* @throws {RequiredError}
|
|
706
|
+
*/
|
|
707
|
+
adminGetSharingPolicy(options) {
|
|
708
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
709
|
+
var _a, _b, _c;
|
|
710
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminGetSharingPolicy(options);
|
|
711
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
712
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.adminGetSharingPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
713
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
714
|
+
});
|
|
715
|
+
},
|
|
716
|
+
/**
|
|
717
|
+
*
|
|
718
|
+
* @summary Progress of a background revocation
|
|
719
|
+
* @param {string} jobId
|
|
720
|
+
* @param {*} [options] Override http request option.
|
|
721
|
+
* @throws {RequiredError}
|
|
722
|
+
*/
|
|
723
|
+
adminGetSharingPolicyRevokeJob(jobId, options) {
|
|
724
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
725
|
+
var _a, _b, _c;
|
|
726
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminGetSharingPolicyRevokeJob(jobId, options);
|
|
727
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
728
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.adminGetSharingPolicyRevokeJob']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
729
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
730
|
+
});
|
|
731
|
+
},
|
|
732
|
+
/**
|
|
733
|
+
*
|
|
734
|
+
* @summary Users and teams with their own sharing rule
|
|
735
|
+
* @param {string} [type]
|
|
736
|
+
* @param {*} [options] Override http request option.
|
|
737
|
+
* @throws {RequiredError}
|
|
738
|
+
*/
|
|
739
|
+
adminListSharingPolicyOverrides(type, options) {
|
|
740
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
741
|
+
var _a, _b, _c;
|
|
742
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminListSharingPolicyOverrides(type, options);
|
|
743
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
744
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.adminListSharingPolicyOverrides']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
745
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
746
|
+
});
|
|
747
|
+
},
|
|
748
|
+
/**
|
|
749
|
+
* Keyset-paginated (pass nextCursor back as cursor). A document\'s name is given only when the caller can already read it. count=true answers {count} only (cached 60 s).
|
|
750
|
+
* @summary Existing shares the current policies refuse
|
|
751
|
+
* @param {string} [cursor]
|
|
752
|
+
* @param {number} [size]
|
|
753
|
+
* @param {boolean} [count]
|
|
754
|
+
* @param {*} [options] Override http request option.
|
|
755
|
+
* @throws {RequiredError}
|
|
756
|
+
*/
|
|
757
|
+
adminListSharingPolicyViolations(cursor, size, count, options) {
|
|
758
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
759
|
+
var _a, _b, _c;
|
|
760
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminListSharingPolicyViolations(cursor, size, count, options);
|
|
761
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
762
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.adminListSharingPolicyViolations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
763
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
764
|
+
});
|
|
765
|
+
},
|
|
766
|
+
/**
|
|
767
|
+
*
|
|
768
|
+
* @summary Remove a user\'s or a team\'s own rule (back to their teams\', else the global mode)
|
|
769
|
+
* @param {string} subjectId
|
|
770
|
+
* @param {*} [options] Override http request option.
|
|
771
|
+
* @throws {RequiredError}
|
|
772
|
+
*/
|
|
773
|
+
adminRemoveSharingPolicyOverride(subjectId, options) {
|
|
774
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
775
|
+
var _a, _b, _c;
|
|
776
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRemoveSharingPolicyOverride(subjectId, options);
|
|
777
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
778
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.adminRemoveSharingPolicyOverride']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
779
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
780
|
+
});
|
|
781
|
+
},
|
|
782
|
+
/**
|
|
783
|
+
* items: the rows to revoke (each re-checked; a row that complies is skipped), or all=true. Each revocation is audited under the caller and notified to the document\'s owner. Above 500 rows, all=true runs in the background: 202 with a jobId to poll.
|
|
784
|
+
* @summary Revoke shares that break the policy
|
|
785
|
+
* @param {RevokeRequest} revokeRequest
|
|
786
|
+
* @param {*} [options] Override http request option.
|
|
787
|
+
* @throws {RequiredError}
|
|
788
|
+
*/
|
|
789
|
+
adminRevokeSharingPolicyViolations(revokeRequest, options) {
|
|
790
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
791
|
+
var _a, _b, _c;
|
|
792
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRevokeSharingPolicyViolations(revokeRequest, options);
|
|
793
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
794
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.adminRevokeSharingPolicyViolations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
795
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
796
|
+
});
|
|
797
|
+
},
|
|
798
|
+
/**
|
|
799
|
+
* Writes only the three openfilz.sharing.external.* settings (audited ADMIN_SETTING_CHANGED; 409 when the deployment locks one). A DOMAIN mode needs at least one domain. The answer carries the number of existing shares that no longer comply (violations).
|
|
800
|
+
* @summary Change the global mode, allowed domains and e-Sign switch
|
|
801
|
+
* @param {GlobalPolicy} globalPolicy
|
|
802
|
+
* @param {*} [options] Override http request option.
|
|
803
|
+
* @throws {RequiredError}
|
|
804
|
+
*/
|
|
805
|
+
adminSetSharingPolicyGlobal(globalPolicy, options) {
|
|
806
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
807
|
+
var _a, _b, _c;
|
|
808
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSetSharingPolicyGlobal(globalPolicy, options);
|
|
809
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
810
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.adminSetSharingPolicyGlobal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
811
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
812
|
+
});
|
|
813
|
+
},
|
|
814
|
+
/**
|
|
815
|
+
* A user\'s rule wins over their teams\'; several teams combine by union of their conditions; ALLOW on a team exempts its members from the global mode. Audited SHARING_POLICY_CHANGED. 404 outside the caller\'s organisation.
|
|
816
|
+
* @summary Set a user\'s or a team\'s sharing rule
|
|
817
|
+
* @param {string} subjectId
|
|
818
|
+
* @param {OverrideRequest} overrideRequest
|
|
819
|
+
* @param {*} [options] Override http request option.
|
|
820
|
+
* @throws {RequiredError}
|
|
821
|
+
*/
|
|
822
|
+
adminSetSharingPolicyOverride(subjectId, overrideRequest, options) {
|
|
823
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
824
|
+
var _a, _b, _c;
|
|
825
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminSetSharingPolicyOverride(subjectId, overrideRequest, options);
|
|
826
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
827
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.adminSetSharingPolicyOverride']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
828
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
829
|
+
});
|
|
830
|
+
},
|
|
831
|
+
/**
|
|
832
|
+
*
|
|
833
|
+
* @summary A user\'s effective sharing rule and where it comes from (USER, TEAM or GLOBAL)
|
|
834
|
+
* @param {string} userId
|
|
835
|
+
* @param {*} [options] Override http request option.
|
|
836
|
+
* @throws {RequiredError}
|
|
837
|
+
*/
|
|
838
|
+
getEffectiveSharingPolicy(userId, options) {
|
|
839
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
840
|
+
var _a, _b, _c;
|
|
841
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEffectiveSharingPolicy(userId, options);
|
|
842
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
843
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.getEffectiveSharingPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
844
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
845
|
+
});
|
|
846
|
+
},
|
|
847
|
+
/**
|
|
848
|
+
* The allowed domains are listed only when the rule restricts domains.
|
|
849
|
+
* @summary The caller\'s own sharing rule (for the share dialog)
|
|
850
|
+
* @param {*} [options] Override http request option.
|
|
851
|
+
* @throws {RequiredError}
|
|
852
|
+
*/
|
|
853
|
+
getMySharingPolicy(options) {
|
|
854
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
855
|
+
var _a, _b, _c;
|
|
856
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMySharingPolicy(options);
|
|
857
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
858
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.getMySharingPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
859
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
860
|
+
});
|
|
861
|
+
},
|
|
862
|
+
/**
|
|
863
|
+
*
|
|
864
|
+
* @summary The global mode, allowed domains, e-Sign switch, locked keys and number of overrides
|
|
865
|
+
* @param {*} [options] Override http request option.
|
|
866
|
+
* @throws {RequiredError}
|
|
867
|
+
*/
|
|
868
|
+
getSharingPolicy(options) {
|
|
869
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
870
|
+
var _a, _b, _c;
|
|
871
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSharingPolicy(options);
|
|
872
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
873
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.getSharingPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
874
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
875
|
+
});
|
|
876
|
+
},
|
|
877
|
+
/**
|
|
878
|
+
*
|
|
879
|
+
* @summary Progress of a background revocation
|
|
880
|
+
* @param {string} jobId
|
|
881
|
+
* @param {*} [options] Override http request option.
|
|
882
|
+
* @throws {RequiredError}
|
|
883
|
+
*/
|
|
884
|
+
getSharingPolicyRevokeJob(jobId, options) {
|
|
885
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
886
|
+
var _a, _b, _c;
|
|
887
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSharingPolicyRevokeJob(jobId, options);
|
|
888
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
889
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.getSharingPolicyRevokeJob']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
890
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
891
|
+
});
|
|
892
|
+
},
|
|
893
|
+
/**
|
|
894
|
+
*
|
|
895
|
+
* @summary Users and teams with their own sharing rule
|
|
896
|
+
* @param {string} [type]
|
|
897
|
+
* @param {*} [options] Override http request option.
|
|
898
|
+
* @throws {RequiredError}
|
|
899
|
+
*/
|
|
900
|
+
listSharingPolicyOverrides(type, options) {
|
|
901
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
902
|
+
var _a, _b, _c;
|
|
903
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSharingPolicyOverrides(type, options);
|
|
904
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
905
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.listSharingPolicyOverrides']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
906
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
907
|
+
});
|
|
908
|
+
},
|
|
909
|
+
/**
|
|
910
|
+
* Keyset-paginated (pass nextCursor back as cursor). A document\'s name is given only when the caller can already read it. count=true answers {count} only (cached 60 s).
|
|
911
|
+
* @summary Existing shares the current policies refuse
|
|
912
|
+
* @param {string} [cursor]
|
|
913
|
+
* @param {number} [size]
|
|
914
|
+
* @param {boolean} [count]
|
|
915
|
+
* @param {*} [options] Override http request option.
|
|
916
|
+
* @throws {RequiredError}
|
|
917
|
+
*/
|
|
918
|
+
listSharingPolicyViolations(cursor, size, count, options) {
|
|
919
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
920
|
+
var _a, _b, _c;
|
|
921
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listSharingPolicyViolations(cursor, size, count, options);
|
|
922
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
923
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.listSharingPolicyViolations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
924
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
925
|
+
});
|
|
926
|
+
},
|
|
927
|
+
/**
|
|
928
|
+
*
|
|
929
|
+
* @summary Remove a user\'s or a team\'s own rule (back to their teams\', else the global mode)
|
|
930
|
+
* @param {string} subjectId
|
|
931
|
+
* @param {*} [options] Override http request option.
|
|
932
|
+
* @throws {RequiredError}
|
|
933
|
+
*/
|
|
934
|
+
removeSharingPolicyOverride(subjectId, options) {
|
|
935
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
936
|
+
var _a, _b, _c;
|
|
937
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.removeSharingPolicyOverride(subjectId, options);
|
|
938
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
939
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.removeSharingPolicyOverride']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
940
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
941
|
+
});
|
|
942
|
+
},
|
|
943
|
+
/**
|
|
944
|
+
* items: the rows to revoke (each re-checked; a row that complies is skipped), or all=true. Each revocation is audited under the caller and notified to the document\'s owner. Above 500 rows, all=true runs in the background: 202 with a jobId to poll.
|
|
945
|
+
* @summary Revoke shares that break the policy
|
|
946
|
+
* @param {RevokeRequest} revokeRequest
|
|
947
|
+
* @param {*} [options] Override http request option.
|
|
948
|
+
* @throws {RequiredError}
|
|
949
|
+
*/
|
|
950
|
+
revokeSharingPolicyViolations(revokeRequest, options) {
|
|
951
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
952
|
+
var _a, _b, _c;
|
|
953
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.revokeSharingPolicyViolations(revokeRequest, options);
|
|
954
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
955
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.revokeSharingPolicyViolations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
956
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
957
|
+
});
|
|
958
|
+
},
|
|
959
|
+
/**
|
|
960
|
+
* Writes only the three openfilz.sharing.external.* settings (audited ADMIN_SETTING_CHANGED; 409 when the deployment locks one). A DOMAIN mode needs at least one domain. The answer carries the number of existing shares that no longer comply (violations).
|
|
961
|
+
* @summary Change the global mode, allowed domains and e-Sign switch
|
|
962
|
+
* @param {GlobalPolicy} globalPolicy
|
|
963
|
+
* @param {*} [options] Override http request option.
|
|
964
|
+
* @throws {RequiredError}
|
|
965
|
+
*/
|
|
966
|
+
setSharingPolicyGlobal(globalPolicy, options) {
|
|
967
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
968
|
+
var _a, _b, _c;
|
|
969
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setSharingPolicyGlobal(globalPolicy, options);
|
|
970
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
971
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.setSharingPolicyGlobal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
972
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
973
|
+
});
|
|
974
|
+
},
|
|
975
|
+
/**
|
|
976
|
+
* A user\'s rule wins over their teams\'; several teams combine by union of their conditions; ALLOW on a team exempts its members from the global mode. Audited SHARING_POLICY_CHANGED. 404 outside the caller\'s organisation.
|
|
977
|
+
* @summary Set a user\'s or a team\'s sharing rule
|
|
978
|
+
* @param {string} subjectId
|
|
979
|
+
* @param {OverrideRequest} overrideRequest
|
|
980
|
+
* @param {*} [options] Override http request option.
|
|
981
|
+
* @throws {RequiredError}
|
|
982
|
+
*/
|
|
983
|
+
setSharingPolicyOverride(subjectId, overrideRequest, options) {
|
|
984
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
985
|
+
var _a, _b, _c;
|
|
986
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setSharingPolicyOverride(subjectId, overrideRequest, options);
|
|
987
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
988
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SharingPolicyApi.setSharingPolicyOverride']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
989
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
990
|
+
});
|
|
991
|
+
},
|
|
992
|
+
};
|
|
993
|
+
};
|
|
994
|
+
/**
|
|
995
|
+
* SharingPolicyApi - factory interface
|
|
996
|
+
*/
|
|
997
|
+
export const SharingPolicyApiFactory = function (configuration, basePath, axios) {
|
|
998
|
+
const localVarFp = SharingPolicyApiFp(configuration);
|
|
999
|
+
return {
|
|
1000
|
+
/**
|
|
1001
|
+
*
|
|
1002
|
+
* @summary A user\'s effective sharing rule and where it comes from (USER, TEAM or GLOBAL)
|
|
1003
|
+
* @param {string} userId
|
|
1004
|
+
* @param {*} [options] Override http request option.
|
|
1005
|
+
* @throws {RequiredError}
|
|
1006
|
+
*/
|
|
1007
|
+
adminGetEffectiveSharingPolicy(userId, options) {
|
|
1008
|
+
return localVarFp.adminGetEffectiveSharingPolicy(userId, options).then((request) => request(axios, basePath));
|
|
1009
|
+
},
|
|
1010
|
+
/**
|
|
1011
|
+
*
|
|
1012
|
+
* @summary The global mode, allowed domains, e-Sign switch, locked keys and number of overrides
|
|
1013
|
+
* @param {*} [options] Override http request option.
|
|
1014
|
+
* @throws {RequiredError}
|
|
1015
|
+
*/
|
|
1016
|
+
adminGetSharingPolicy(options) {
|
|
1017
|
+
return localVarFp.adminGetSharingPolicy(options).then((request) => request(axios, basePath));
|
|
1018
|
+
},
|
|
1019
|
+
/**
|
|
1020
|
+
*
|
|
1021
|
+
* @summary Progress of a background revocation
|
|
1022
|
+
* @param {string} jobId
|
|
1023
|
+
* @param {*} [options] Override http request option.
|
|
1024
|
+
* @throws {RequiredError}
|
|
1025
|
+
*/
|
|
1026
|
+
adminGetSharingPolicyRevokeJob(jobId, options) {
|
|
1027
|
+
return localVarFp.adminGetSharingPolicyRevokeJob(jobId, options).then((request) => request(axios, basePath));
|
|
1028
|
+
},
|
|
1029
|
+
/**
|
|
1030
|
+
*
|
|
1031
|
+
* @summary Users and teams with their own sharing rule
|
|
1032
|
+
* @param {string} [type]
|
|
1033
|
+
* @param {*} [options] Override http request option.
|
|
1034
|
+
* @throws {RequiredError}
|
|
1035
|
+
*/
|
|
1036
|
+
adminListSharingPolicyOverrides(type, options) {
|
|
1037
|
+
return localVarFp.adminListSharingPolicyOverrides(type, options).then((request) => request(axios, basePath));
|
|
1038
|
+
},
|
|
1039
|
+
/**
|
|
1040
|
+
* Keyset-paginated (pass nextCursor back as cursor). A document\'s name is given only when the caller can already read it. count=true answers {count} only (cached 60 s).
|
|
1041
|
+
* @summary Existing shares the current policies refuse
|
|
1042
|
+
* @param {string} [cursor]
|
|
1043
|
+
* @param {number} [size]
|
|
1044
|
+
* @param {boolean} [count]
|
|
1045
|
+
* @param {*} [options] Override http request option.
|
|
1046
|
+
* @throws {RequiredError}
|
|
1047
|
+
*/
|
|
1048
|
+
adminListSharingPolicyViolations(cursor, size, count, options) {
|
|
1049
|
+
return localVarFp.adminListSharingPolicyViolations(cursor, size, count, options).then((request) => request(axios, basePath));
|
|
1050
|
+
},
|
|
1051
|
+
/**
|
|
1052
|
+
*
|
|
1053
|
+
* @summary Remove a user\'s or a team\'s own rule (back to their teams\', else the global mode)
|
|
1054
|
+
* @param {string} subjectId
|
|
1055
|
+
* @param {*} [options] Override http request option.
|
|
1056
|
+
* @throws {RequiredError}
|
|
1057
|
+
*/
|
|
1058
|
+
adminRemoveSharingPolicyOverride(subjectId, options) {
|
|
1059
|
+
return localVarFp.adminRemoveSharingPolicyOverride(subjectId, options).then((request) => request(axios, basePath));
|
|
1060
|
+
},
|
|
1061
|
+
/**
|
|
1062
|
+
* items: the rows to revoke (each re-checked; a row that complies is skipped), or all=true. Each revocation is audited under the caller and notified to the document\'s owner. Above 500 rows, all=true runs in the background: 202 with a jobId to poll.
|
|
1063
|
+
* @summary Revoke shares that break the policy
|
|
1064
|
+
* @param {RevokeRequest} revokeRequest
|
|
1065
|
+
* @param {*} [options] Override http request option.
|
|
1066
|
+
* @throws {RequiredError}
|
|
1067
|
+
*/
|
|
1068
|
+
adminRevokeSharingPolicyViolations(revokeRequest, options) {
|
|
1069
|
+
return localVarFp.adminRevokeSharingPolicyViolations(revokeRequest, options).then((request) => request(axios, basePath));
|
|
1070
|
+
},
|
|
1071
|
+
/**
|
|
1072
|
+
* Writes only the three openfilz.sharing.external.* settings (audited ADMIN_SETTING_CHANGED; 409 when the deployment locks one). A DOMAIN mode needs at least one domain. The answer carries the number of existing shares that no longer comply (violations).
|
|
1073
|
+
* @summary Change the global mode, allowed domains and e-Sign switch
|
|
1074
|
+
* @param {GlobalPolicy} globalPolicy
|
|
1075
|
+
* @param {*} [options] Override http request option.
|
|
1076
|
+
* @throws {RequiredError}
|
|
1077
|
+
*/
|
|
1078
|
+
adminSetSharingPolicyGlobal(globalPolicy, options) {
|
|
1079
|
+
return localVarFp.adminSetSharingPolicyGlobal(globalPolicy, options).then((request) => request(axios, basePath));
|
|
1080
|
+
},
|
|
1081
|
+
/**
|
|
1082
|
+
* A user\'s rule wins over their teams\'; several teams combine by union of their conditions; ALLOW on a team exempts its members from the global mode. Audited SHARING_POLICY_CHANGED. 404 outside the caller\'s organisation.
|
|
1083
|
+
* @summary Set a user\'s or a team\'s sharing rule
|
|
1084
|
+
* @param {string} subjectId
|
|
1085
|
+
* @param {OverrideRequest} overrideRequest
|
|
1086
|
+
* @param {*} [options] Override http request option.
|
|
1087
|
+
* @throws {RequiredError}
|
|
1088
|
+
*/
|
|
1089
|
+
adminSetSharingPolicyOverride(subjectId, overrideRequest, options) {
|
|
1090
|
+
return localVarFp.adminSetSharingPolicyOverride(subjectId, overrideRequest, options).then((request) => request(axios, basePath));
|
|
1091
|
+
},
|
|
1092
|
+
/**
|
|
1093
|
+
*
|
|
1094
|
+
* @summary A user\'s effective sharing rule and where it comes from (USER, TEAM or GLOBAL)
|
|
1095
|
+
* @param {string} userId
|
|
1096
|
+
* @param {*} [options] Override http request option.
|
|
1097
|
+
* @throws {RequiredError}
|
|
1098
|
+
*/
|
|
1099
|
+
getEffectiveSharingPolicy(userId, options) {
|
|
1100
|
+
return localVarFp.getEffectiveSharingPolicy(userId, options).then((request) => request(axios, basePath));
|
|
1101
|
+
},
|
|
1102
|
+
/**
|
|
1103
|
+
* The allowed domains are listed only when the rule restricts domains.
|
|
1104
|
+
* @summary The caller\'s own sharing rule (for the share dialog)
|
|
1105
|
+
* @param {*} [options] Override http request option.
|
|
1106
|
+
* @throws {RequiredError}
|
|
1107
|
+
*/
|
|
1108
|
+
getMySharingPolicy(options) {
|
|
1109
|
+
return localVarFp.getMySharingPolicy(options).then((request) => request(axios, basePath));
|
|
1110
|
+
},
|
|
1111
|
+
/**
|
|
1112
|
+
*
|
|
1113
|
+
* @summary The global mode, allowed domains, e-Sign switch, locked keys and number of overrides
|
|
1114
|
+
* @param {*} [options] Override http request option.
|
|
1115
|
+
* @throws {RequiredError}
|
|
1116
|
+
*/
|
|
1117
|
+
getSharingPolicy(options) {
|
|
1118
|
+
return localVarFp.getSharingPolicy(options).then((request) => request(axios, basePath));
|
|
1119
|
+
},
|
|
1120
|
+
/**
|
|
1121
|
+
*
|
|
1122
|
+
* @summary Progress of a background revocation
|
|
1123
|
+
* @param {string} jobId
|
|
1124
|
+
* @param {*} [options] Override http request option.
|
|
1125
|
+
* @throws {RequiredError}
|
|
1126
|
+
*/
|
|
1127
|
+
getSharingPolicyRevokeJob(jobId, options) {
|
|
1128
|
+
return localVarFp.getSharingPolicyRevokeJob(jobId, options).then((request) => request(axios, basePath));
|
|
1129
|
+
},
|
|
1130
|
+
/**
|
|
1131
|
+
*
|
|
1132
|
+
* @summary Users and teams with their own sharing rule
|
|
1133
|
+
* @param {string} [type]
|
|
1134
|
+
* @param {*} [options] Override http request option.
|
|
1135
|
+
* @throws {RequiredError}
|
|
1136
|
+
*/
|
|
1137
|
+
listSharingPolicyOverrides(type, options) {
|
|
1138
|
+
return localVarFp.listSharingPolicyOverrides(type, options).then((request) => request(axios, basePath));
|
|
1139
|
+
},
|
|
1140
|
+
/**
|
|
1141
|
+
* Keyset-paginated (pass nextCursor back as cursor). A document\'s name is given only when the caller can already read it. count=true answers {count} only (cached 60 s).
|
|
1142
|
+
* @summary Existing shares the current policies refuse
|
|
1143
|
+
* @param {string} [cursor]
|
|
1144
|
+
* @param {number} [size]
|
|
1145
|
+
* @param {boolean} [count]
|
|
1146
|
+
* @param {*} [options] Override http request option.
|
|
1147
|
+
* @throws {RequiredError}
|
|
1148
|
+
*/
|
|
1149
|
+
listSharingPolicyViolations(cursor, size, count, options) {
|
|
1150
|
+
return localVarFp.listSharingPolicyViolations(cursor, size, count, options).then((request) => request(axios, basePath));
|
|
1151
|
+
},
|
|
1152
|
+
/**
|
|
1153
|
+
*
|
|
1154
|
+
* @summary Remove a user\'s or a team\'s own rule (back to their teams\', else the global mode)
|
|
1155
|
+
* @param {string} subjectId
|
|
1156
|
+
* @param {*} [options] Override http request option.
|
|
1157
|
+
* @throws {RequiredError}
|
|
1158
|
+
*/
|
|
1159
|
+
removeSharingPolicyOverride(subjectId, options) {
|
|
1160
|
+
return localVarFp.removeSharingPolicyOverride(subjectId, options).then((request) => request(axios, basePath));
|
|
1161
|
+
},
|
|
1162
|
+
/**
|
|
1163
|
+
* items: the rows to revoke (each re-checked; a row that complies is skipped), or all=true. Each revocation is audited under the caller and notified to the document\'s owner. Above 500 rows, all=true runs in the background: 202 with a jobId to poll.
|
|
1164
|
+
* @summary Revoke shares that break the policy
|
|
1165
|
+
* @param {RevokeRequest} revokeRequest
|
|
1166
|
+
* @param {*} [options] Override http request option.
|
|
1167
|
+
* @throws {RequiredError}
|
|
1168
|
+
*/
|
|
1169
|
+
revokeSharingPolicyViolations(revokeRequest, options) {
|
|
1170
|
+
return localVarFp.revokeSharingPolicyViolations(revokeRequest, options).then((request) => request(axios, basePath));
|
|
1171
|
+
},
|
|
1172
|
+
/**
|
|
1173
|
+
* Writes only the three openfilz.sharing.external.* settings (audited ADMIN_SETTING_CHANGED; 409 when the deployment locks one). A DOMAIN mode needs at least one domain. The answer carries the number of existing shares that no longer comply (violations).
|
|
1174
|
+
* @summary Change the global mode, allowed domains and e-Sign switch
|
|
1175
|
+
* @param {GlobalPolicy} globalPolicy
|
|
1176
|
+
* @param {*} [options] Override http request option.
|
|
1177
|
+
* @throws {RequiredError}
|
|
1178
|
+
*/
|
|
1179
|
+
setSharingPolicyGlobal(globalPolicy, options) {
|
|
1180
|
+
return localVarFp.setSharingPolicyGlobal(globalPolicy, options).then((request) => request(axios, basePath));
|
|
1181
|
+
},
|
|
1182
|
+
/**
|
|
1183
|
+
* A user\'s rule wins over their teams\'; several teams combine by union of their conditions; ALLOW on a team exempts its members from the global mode. Audited SHARING_POLICY_CHANGED. 404 outside the caller\'s organisation.
|
|
1184
|
+
* @summary Set a user\'s or a team\'s sharing rule
|
|
1185
|
+
* @param {string} subjectId
|
|
1186
|
+
* @param {OverrideRequest} overrideRequest
|
|
1187
|
+
* @param {*} [options] Override http request option.
|
|
1188
|
+
* @throws {RequiredError}
|
|
1189
|
+
*/
|
|
1190
|
+
setSharingPolicyOverride(subjectId, overrideRequest, options) {
|
|
1191
|
+
return localVarFp.setSharingPolicyOverride(subjectId, overrideRequest, options).then((request) => request(axios, basePath));
|
|
1192
|
+
},
|
|
1193
|
+
};
|
|
1194
|
+
};
|
|
1195
|
+
/**
|
|
1196
|
+
* SharingPolicyApi - object-oriented interface
|
|
1197
|
+
*/
|
|
1198
|
+
export class SharingPolicyApi extends BaseAPI {
|
|
1199
|
+
/**
|
|
1200
|
+
*
|
|
1201
|
+
* @summary A user\'s effective sharing rule and where it comes from (USER, TEAM or GLOBAL)
|
|
1202
|
+
* @param {string} userId
|
|
1203
|
+
* @param {*} [options] Override http request option.
|
|
1204
|
+
* @throws {RequiredError}
|
|
1205
|
+
*/
|
|
1206
|
+
adminGetEffectiveSharingPolicy(userId, options) {
|
|
1207
|
+
return SharingPolicyApiFp(this.configuration).adminGetEffectiveSharingPolicy(userId, options).then((request) => request(this.axios, this.basePath));
|
|
1208
|
+
}
|
|
1209
|
+
/**
|
|
1210
|
+
*
|
|
1211
|
+
* @summary The global mode, allowed domains, e-Sign switch, locked keys and number of overrides
|
|
1212
|
+
* @param {*} [options] Override http request option.
|
|
1213
|
+
* @throws {RequiredError}
|
|
1214
|
+
*/
|
|
1215
|
+
adminGetSharingPolicy(options) {
|
|
1216
|
+
return SharingPolicyApiFp(this.configuration).adminGetSharingPolicy(options).then((request) => request(this.axios, this.basePath));
|
|
1217
|
+
}
|
|
1218
|
+
/**
|
|
1219
|
+
*
|
|
1220
|
+
* @summary Progress of a background revocation
|
|
1221
|
+
* @param {string} jobId
|
|
1222
|
+
* @param {*} [options] Override http request option.
|
|
1223
|
+
* @throws {RequiredError}
|
|
1224
|
+
*/
|
|
1225
|
+
adminGetSharingPolicyRevokeJob(jobId, options) {
|
|
1226
|
+
return SharingPolicyApiFp(this.configuration).adminGetSharingPolicyRevokeJob(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
1227
|
+
}
|
|
1228
|
+
/**
|
|
1229
|
+
*
|
|
1230
|
+
* @summary Users and teams with their own sharing rule
|
|
1231
|
+
* @param {string} [type]
|
|
1232
|
+
* @param {*} [options] Override http request option.
|
|
1233
|
+
* @throws {RequiredError}
|
|
1234
|
+
*/
|
|
1235
|
+
adminListSharingPolicyOverrides(type, options) {
|
|
1236
|
+
return SharingPolicyApiFp(this.configuration).adminListSharingPolicyOverrides(type, options).then((request) => request(this.axios, this.basePath));
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* Keyset-paginated (pass nextCursor back as cursor). A document\'s name is given only when the caller can already read it. count=true answers {count} only (cached 60 s).
|
|
1240
|
+
* @summary Existing shares the current policies refuse
|
|
1241
|
+
* @param {string} [cursor]
|
|
1242
|
+
* @param {number} [size]
|
|
1243
|
+
* @param {boolean} [count]
|
|
1244
|
+
* @param {*} [options] Override http request option.
|
|
1245
|
+
* @throws {RequiredError}
|
|
1246
|
+
*/
|
|
1247
|
+
adminListSharingPolicyViolations(cursor, size, count, options) {
|
|
1248
|
+
return SharingPolicyApiFp(this.configuration).adminListSharingPolicyViolations(cursor, size, count, options).then((request) => request(this.axios, this.basePath));
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
*
|
|
1252
|
+
* @summary Remove a user\'s or a team\'s own rule (back to their teams\', else the global mode)
|
|
1253
|
+
* @param {string} subjectId
|
|
1254
|
+
* @param {*} [options] Override http request option.
|
|
1255
|
+
* @throws {RequiredError}
|
|
1256
|
+
*/
|
|
1257
|
+
adminRemoveSharingPolicyOverride(subjectId, options) {
|
|
1258
|
+
return SharingPolicyApiFp(this.configuration).adminRemoveSharingPolicyOverride(subjectId, options).then((request) => request(this.axios, this.basePath));
|
|
1259
|
+
}
|
|
1260
|
+
/**
|
|
1261
|
+
* items: the rows to revoke (each re-checked; a row that complies is skipped), or all=true. Each revocation is audited under the caller and notified to the document\'s owner. Above 500 rows, all=true runs in the background: 202 with a jobId to poll.
|
|
1262
|
+
* @summary Revoke shares that break the policy
|
|
1263
|
+
* @param {RevokeRequest} revokeRequest
|
|
1264
|
+
* @param {*} [options] Override http request option.
|
|
1265
|
+
* @throws {RequiredError}
|
|
1266
|
+
*/
|
|
1267
|
+
adminRevokeSharingPolicyViolations(revokeRequest, options) {
|
|
1268
|
+
return SharingPolicyApiFp(this.configuration).adminRevokeSharingPolicyViolations(revokeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1269
|
+
}
|
|
1270
|
+
/**
|
|
1271
|
+
* Writes only the three openfilz.sharing.external.* settings (audited ADMIN_SETTING_CHANGED; 409 when the deployment locks one). A DOMAIN mode needs at least one domain. The answer carries the number of existing shares that no longer comply (violations).
|
|
1272
|
+
* @summary Change the global mode, allowed domains and e-Sign switch
|
|
1273
|
+
* @param {GlobalPolicy} globalPolicy
|
|
1274
|
+
* @param {*} [options] Override http request option.
|
|
1275
|
+
* @throws {RequiredError}
|
|
1276
|
+
*/
|
|
1277
|
+
adminSetSharingPolicyGlobal(globalPolicy, options) {
|
|
1278
|
+
return SharingPolicyApiFp(this.configuration).adminSetSharingPolicyGlobal(globalPolicy, options).then((request) => request(this.axios, this.basePath));
|
|
1279
|
+
}
|
|
1280
|
+
/**
|
|
1281
|
+
* A user\'s rule wins over their teams\'; several teams combine by union of their conditions; ALLOW on a team exempts its members from the global mode. Audited SHARING_POLICY_CHANGED. 404 outside the caller\'s organisation.
|
|
1282
|
+
* @summary Set a user\'s or a team\'s sharing rule
|
|
1283
|
+
* @param {string} subjectId
|
|
1284
|
+
* @param {OverrideRequest} overrideRequest
|
|
1285
|
+
* @param {*} [options] Override http request option.
|
|
1286
|
+
* @throws {RequiredError}
|
|
1287
|
+
*/
|
|
1288
|
+
adminSetSharingPolicyOverride(subjectId, overrideRequest, options) {
|
|
1289
|
+
return SharingPolicyApiFp(this.configuration).adminSetSharingPolicyOverride(subjectId, overrideRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1290
|
+
}
|
|
1291
|
+
/**
|
|
1292
|
+
*
|
|
1293
|
+
* @summary A user\'s effective sharing rule and where it comes from (USER, TEAM or GLOBAL)
|
|
1294
|
+
* @param {string} userId
|
|
1295
|
+
* @param {*} [options] Override http request option.
|
|
1296
|
+
* @throws {RequiredError}
|
|
1297
|
+
*/
|
|
1298
|
+
getEffectiveSharingPolicy(userId, options) {
|
|
1299
|
+
return SharingPolicyApiFp(this.configuration).getEffectiveSharingPolicy(userId, options).then((request) => request(this.axios, this.basePath));
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* The allowed domains are listed only when the rule restricts domains.
|
|
1303
|
+
* @summary The caller\'s own sharing rule (for the share dialog)
|
|
1304
|
+
* @param {*} [options] Override http request option.
|
|
1305
|
+
* @throws {RequiredError}
|
|
1306
|
+
*/
|
|
1307
|
+
getMySharingPolicy(options) {
|
|
1308
|
+
return SharingPolicyApiFp(this.configuration).getMySharingPolicy(options).then((request) => request(this.axios, this.basePath));
|
|
1309
|
+
}
|
|
1310
|
+
/**
|
|
1311
|
+
*
|
|
1312
|
+
* @summary The global mode, allowed domains, e-Sign switch, locked keys and number of overrides
|
|
1313
|
+
* @param {*} [options] Override http request option.
|
|
1314
|
+
* @throws {RequiredError}
|
|
1315
|
+
*/
|
|
1316
|
+
getSharingPolicy(options) {
|
|
1317
|
+
return SharingPolicyApiFp(this.configuration).getSharingPolicy(options).then((request) => request(this.axios, this.basePath));
|
|
1318
|
+
}
|
|
1319
|
+
/**
|
|
1320
|
+
*
|
|
1321
|
+
* @summary Progress of a background revocation
|
|
1322
|
+
* @param {string} jobId
|
|
1323
|
+
* @param {*} [options] Override http request option.
|
|
1324
|
+
* @throws {RequiredError}
|
|
1325
|
+
*/
|
|
1326
|
+
getSharingPolicyRevokeJob(jobId, options) {
|
|
1327
|
+
return SharingPolicyApiFp(this.configuration).getSharingPolicyRevokeJob(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
1328
|
+
}
|
|
1329
|
+
/**
|
|
1330
|
+
*
|
|
1331
|
+
* @summary Users and teams with their own sharing rule
|
|
1332
|
+
* @param {string} [type]
|
|
1333
|
+
* @param {*} [options] Override http request option.
|
|
1334
|
+
* @throws {RequiredError}
|
|
1335
|
+
*/
|
|
1336
|
+
listSharingPolicyOverrides(type, options) {
|
|
1337
|
+
return SharingPolicyApiFp(this.configuration).listSharingPolicyOverrides(type, options).then((request) => request(this.axios, this.basePath));
|
|
1338
|
+
}
|
|
1339
|
+
/**
|
|
1340
|
+
* Keyset-paginated (pass nextCursor back as cursor). A document\'s name is given only when the caller can already read it. count=true answers {count} only (cached 60 s).
|
|
1341
|
+
* @summary Existing shares the current policies refuse
|
|
1342
|
+
* @param {string} [cursor]
|
|
1343
|
+
* @param {number} [size]
|
|
1344
|
+
* @param {boolean} [count]
|
|
1345
|
+
* @param {*} [options] Override http request option.
|
|
1346
|
+
* @throws {RequiredError}
|
|
1347
|
+
*/
|
|
1348
|
+
listSharingPolicyViolations(cursor, size, count, options) {
|
|
1349
|
+
return SharingPolicyApiFp(this.configuration).listSharingPolicyViolations(cursor, size, count, options).then((request) => request(this.axios, this.basePath));
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
*
|
|
1353
|
+
* @summary Remove a user\'s or a team\'s own rule (back to their teams\', else the global mode)
|
|
1354
|
+
* @param {string} subjectId
|
|
1355
|
+
* @param {*} [options] Override http request option.
|
|
1356
|
+
* @throws {RequiredError}
|
|
1357
|
+
*/
|
|
1358
|
+
removeSharingPolicyOverride(subjectId, options) {
|
|
1359
|
+
return SharingPolicyApiFp(this.configuration).removeSharingPolicyOverride(subjectId, options).then((request) => request(this.axios, this.basePath));
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
* items: the rows to revoke (each re-checked; a row that complies is skipped), or all=true. Each revocation is audited under the caller and notified to the document\'s owner. Above 500 rows, all=true runs in the background: 202 with a jobId to poll.
|
|
1363
|
+
* @summary Revoke shares that break the policy
|
|
1364
|
+
* @param {RevokeRequest} revokeRequest
|
|
1365
|
+
* @param {*} [options] Override http request option.
|
|
1366
|
+
* @throws {RequiredError}
|
|
1367
|
+
*/
|
|
1368
|
+
revokeSharingPolicyViolations(revokeRequest, options) {
|
|
1369
|
+
return SharingPolicyApiFp(this.configuration).revokeSharingPolicyViolations(revokeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1370
|
+
}
|
|
1371
|
+
/**
|
|
1372
|
+
* Writes only the three openfilz.sharing.external.* settings (audited ADMIN_SETTING_CHANGED; 409 when the deployment locks one). A DOMAIN mode needs at least one domain. The answer carries the number of existing shares that no longer comply (violations).
|
|
1373
|
+
* @summary Change the global mode, allowed domains and e-Sign switch
|
|
1374
|
+
* @param {GlobalPolicy} globalPolicy
|
|
1375
|
+
* @param {*} [options] Override http request option.
|
|
1376
|
+
* @throws {RequiredError}
|
|
1377
|
+
*/
|
|
1378
|
+
setSharingPolicyGlobal(globalPolicy, options) {
|
|
1379
|
+
return SharingPolicyApiFp(this.configuration).setSharingPolicyGlobal(globalPolicy, options).then((request) => request(this.axios, this.basePath));
|
|
1380
|
+
}
|
|
1381
|
+
/**
|
|
1382
|
+
* A user\'s rule wins over their teams\'; several teams combine by union of their conditions; ALLOW on a team exempts its members from the global mode. Audited SHARING_POLICY_CHANGED. 404 outside the caller\'s organisation.
|
|
1383
|
+
* @summary Set a user\'s or a team\'s sharing rule
|
|
1384
|
+
* @param {string} subjectId
|
|
1385
|
+
* @param {OverrideRequest} overrideRequest
|
|
1386
|
+
* @param {*} [options] Override http request option.
|
|
1387
|
+
* @throws {RequiredError}
|
|
1388
|
+
*/
|
|
1389
|
+
setSharingPolicyOverride(subjectId, overrideRequest, options) {
|
|
1390
|
+
return SharingPolicyApiFp(this.configuration).setSharingPolicyOverride(subjectId, overrideRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1391
|
+
}
|
|
1392
|
+
}
|