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