@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.
Files changed (105) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +31 -2
  4. package/api/sharing-policy-api.ts +1471 -0
  5. package/api/team-administration-api.ts +133 -0
  6. package/api.ts +2 -0
  7. package/dist/api/sharing-policy-api.d.ts +662 -0
  8. package/dist/api/sharing-policy-api.js +1399 -0
  9. package/dist/api/team-administration-api.d.ts +70 -0
  10. package/dist/api/team-administration-api.js +139 -0
  11. package/dist/api.d.ts +2 -0
  12. package/dist/api.js +2 -0
  13. package/dist/esm/api/sharing-policy-api.d.ts +662 -0
  14. package/dist/esm/api/sharing-policy-api.js +1392 -0
  15. package/dist/esm/api/team-administration-api.d.ts +70 -0
  16. package/dist/esm/api/team-administration-api.js +132 -0
  17. package/dist/esm/api.d.ts +2 -0
  18. package/dist/esm/api.js +2 -0
  19. package/dist/esm/models/effective-policy.d.ts +31 -0
  20. package/dist/esm/models/effective-policy.js +24 -0
  21. package/dist/esm/models/enriched-audit-log.d.ts +2 -0
  22. package/dist/esm/models/enriched-audit-log.js +2 -0
  23. package/dist/esm/models/global-policy.d.ts +26 -0
  24. package/dist/esm/models/global-policy.js +19 -0
  25. package/dist/esm/models/index.d.ts +9 -0
  26. package/dist/esm/models/index.js +9 -0
  27. package/dist/esm/models/item.d.ts +1 -7
  28. package/dist/esm/models/my-policy.d.ts +30 -0
  29. package/dist/esm/models/my-policy.js +24 -0
  30. package/dist/esm/models/notification-dto.d.ts +1 -0
  31. package/dist/esm/models/notification-dto.js +1 -0
  32. package/dist/esm/models/override-request.d.ts +21 -0
  33. package/dist/esm/models/override-request.js +19 -0
  34. package/dist/esm/models/override-view.d.ts +27 -0
  35. package/dist/esm/models/override-view.js +19 -0
  36. package/dist/esm/models/revoke-request.d.ts +16 -0
  37. package/dist/esm/models/revoke-request.js +14 -0
  38. package/dist/esm/models/revoke-result.d.ts +18 -0
  39. package/dist/esm/models/revoke-result.js +14 -0
  40. package/dist/esm/models/search-by-audit-log-request.d.ts +2 -0
  41. package/dist/esm/models/search-by-audit-log-request.js +2 -0
  42. package/dist/esm/models/share-result-error.d.ts +6 -0
  43. package/dist/esm/models/share-result-error.js +6 -0
  44. package/dist/esm/models/violation.d.ts +41 -0
  45. package/dist/esm/models/violation.js +28 -0
  46. package/dist/esm/models/violations-response.d.ts +17 -0
  47. package/dist/esm/models/violations-response.js +14 -0
  48. package/dist/models/effective-policy.d.ts +31 -0
  49. package/dist/models/effective-policy.js +27 -0
  50. package/dist/models/enriched-audit-log.d.ts +2 -0
  51. package/dist/models/enriched-audit-log.js +2 -0
  52. package/dist/models/global-policy.d.ts +26 -0
  53. package/dist/models/global-policy.js +22 -0
  54. package/dist/models/index.d.ts +9 -0
  55. package/dist/models/index.js +9 -0
  56. package/dist/models/item.d.ts +1 -7
  57. package/dist/models/my-policy.d.ts +30 -0
  58. package/dist/models/my-policy.js +27 -0
  59. package/dist/models/notification-dto.d.ts +1 -0
  60. package/dist/models/notification-dto.js +1 -0
  61. package/dist/models/override-request.d.ts +21 -0
  62. package/dist/models/override-request.js +22 -0
  63. package/dist/models/override-view.d.ts +27 -0
  64. package/dist/models/override-view.js +22 -0
  65. package/dist/models/revoke-request.d.ts +16 -0
  66. package/dist/models/revoke-request.js +15 -0
  67. package/dist/models/revoke-result.d.ts +18 -0
  68. package/dist/models/revoke-result.js +15 -0
  69. package/dist/models/search-by-audit-log-request.d.ts +2 -0
  70. package/dist/models/search-by-audit-log-request.js +2 -0
  71. package/dist/models/share-result-error.d.ts +6 -0
  72. package/dist/models/share-result-error.js +6 -0
  73. package/dist/models/violation.d.ts +41 -0
  74. package/dist/models/violation.js +31 -0
  75. package/dist/models/violations-response.d.ts +17 -0
  76. package/dist/models/violations-response.js +15 -0
  77. package/docs/EffectivePolicy.md +28 -0
  78. package/docs/GlobalPolicy.md +30 -0
  79. package/docs/Item.md +2 -14
  80. package/docs/MyPolicy.md +26 -0
  81. package/docs/OverrideRequest.md +20 -0
  82. package/docs/OverrideView.md +32 -0
  83. package/docs/RevokeRequest.md +22 -0
  84. package/docs/RevokeResult.md +28 -0
  85. package/docs/SharingPolicyApi.md +988 -0
  86. package/docs/TeamAdministrationApi.md +62 -0
  87. package/docs/Violation.md +42 -0
  88. package/docs/ViolationsResponse.md +24 -0
  89. package/graphql/share.graphqls +2 -0
  90. package/models/effective-policy.ts +41 -0
  91. package/models/enriched-audit-log.ts +2 -0
  92. package/models/global-policy.ts +35 -0
  93. package/models/index.ts +9 -0
  94. package/models/item.ts +1 -7
  95. package/models/my-policy.ts +40 -0
  96. package/models/notification-dto.ts +1 -0
  97. package/models/override-request.ts +30 -0
  98. package/models/override-view.ts +36 -0
  99. package/models/revoke-request.ts +24 -0
  100. package/models/revoke-result.ts +24 -0
  101. package/models/search-by-audit-log-request.ts +2 -0
  102. package/models/share-result-error.ts +6 -0
  103. package/models/violation.ts +50 -0
  104. package/models/violations-response.ts +25 -0
  105. package/package.json +1 -1
@@ -0,0 +1,662 @@
1
+ /**
2
+ * openfilz-api
3
+ * API for Document Management System
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from '../configuration';
13
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { EffectivePolicy } from '../models';
16
+ import type { GlobalPolicy } from '../models';
17
+ import type { MyPolicy } from '../models';
18
+ import type { OverrideRequest } from '../models';
19
+ import type { OverrideView } from '../models';
20
+ import type { RevokeRequest } from '../models';
21
+ import type { RevokeResult } from '../models';
22
+ import type { ViolationsResponse } from '../models';
23
+ /**
24
+ * SharingPolicyApi - axios parameter creator
25
+ */
26
+ export declare const SharingPolicyApiAxiosParamCreator: (configuration?: Configuration) => {
27
+ /**
28
+ *
29
+ * @summary A user\'s effective sharing rule and where it comes from (USER, TEAM or GLOBAL)
30
+ * @param {string} userId
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ adminGetEffectiveSharingPolicy: (userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
35
+ /**
36
+ *
37
+ * @summary The global mode, allowed domains, e-Sign switch, locked keys and number of overrides
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ adminGetSharingPolicy: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
42
+ /**
43
+ *
44
+ * @summary Progress of a background revocation
45
+ * @param {string} jobId
46
+ * @param {*} [options] Override http request option.
47
+ * @throws {RequiredError}
48
+ */
49
+ adminGetSharingPolicyRevokeJob: (jobId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
50
+ /**
51
+ *
52
+ * @summary Users and teams with their own sharing rule
53
+ * @param {string} [type]
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ adminListSharingPolicyOverrides: (type?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
58
+ /**
59
+ * 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).
60
+ * @summary Existing shares the current policies refuse
61
+ * @param {string} [cursor]
62
+ * @param {number} [size]
63
+ * @param {boolean} [count]
64
+ * @param {*} [options] Override http request option.
65
+ * @throws {RequiredError}
66
+ */
67
+ adminListSharingPolicyViolations: (cursor?: string, size?: number, count?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
68
+ /**
69
+ *
70
+ * @summary Remove a user\'s or a team\'s own rule (back to their teams\', else the global mode)
71
+ * @param {string} subjectId
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ adminRemoveSharingPolicyOverride: (subjectId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
76
+ /**
77
+ * 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.
78
+ * @summary Revoke shares that break the policy
79
+ * @param {RevokeRequest} revokeRequest
80
+ * @param {*} [options] Override http request option.
81
+ * @throws {RequiredError}
82
+ */
83
+ adminRevokeSharingPolicyViolations: (revokeRequest: RevokeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
84
+ /**
85
+ * 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).
86
+ * @summary Change the global mode, allowed domains and e-Sign switch
87
+ * @param {GlobalPolicy} globalPolicy
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ */
91
+ adminSetSharingPolicyGlobal: (globalPolicy: GlobalPolicy, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
92
+ /**
93
+ * 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.
94
+ * @summary Set a user\'s or a team\'s sharing rule
95
+ * @param {string} subjectId
96
+ * @param {OverrideRequest} overrideRequest
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ adminSetSharingPolicyOverride: (subjectId: string, overrideRequest: OverrideRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
101
+ /**
102
+ *
103
+ * @summary A user\'s effective sharing rule and where it comes from (USER, TEAM or GLOBAL)
104
+ * @param {string} userId
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ getEffectiveSharingPolicy: (userId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
109
+ /**
110
+ * The allowed domains are listed only when the rule restricts domains.
111
+ * @summary The caller\'s own sharing rule (for the share dialog)
112
+ * @param {*} [options] Override http request option.
113
+ * @throws {RequiredError}
114
+ */
115
+ getMySharingPolicy: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
116
+ /**
117
+ *
118
+ * @summary The global mode, allowed domains, e-Sign switch, locked keys and number of overrides
119
+ * @param {*} [options] Override http request option.
120
+ * @throws {RequiredError}
121
+ */
122
+ getSharingPolicy: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
123
+ /**
124
+ *
125
+ * @summary Progress of a background revocation
126
+ * @param {string} jobId
127
+ * @param {*} [options] Override http request option.
128
+ * @throws {RequiredError}
129
+ */
130
+ getSharingPolicyRevokeJob: (jobId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
131
+ /**
132
+ *
133
+ * @summary Users and teams with their own sharing rule
134
+ * @param {string} [type]
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ */
138
+ listSharingPolicyOverrides: (type?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
139
+ /**
140
+ * 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).
141
+ * @summary Existing shares the current policies refuse
142
+ * @param {string} [cursor]
143
+ * @param {number} [size]
144
+ * @param {boolean} [count]
145
+ * @param {*} [options] Override http request option.
146
+ * @throws {RequiredError}
147
+ */
148
+ listSharingPolicyViolations: (cursor?: string, size?: number, count?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
149
+ /**
150
+ *
151
+ * @summary Remove a user\'s or a team\'s own rule (back to their teams\', else the global mode)
152
+ * @param {string} subjectId
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ removeSharingPolicyOverride: (subjectId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
157
+ /**
158
+ * 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.
159
+ * @summary Revoke shares that break the policy
160
+ * @param {RevokeRequest} revokeRequest
161
+ * @param {*} [options] Override http request option.
162
+ * @throws {RequiredError}
163
+ */
164
+ revokeSharingPolicyViolations: (revokeRequest: RevokeRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
165
+ /**
166
+ * 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).
167
+ * @summary Change the global mode, allowed domains and e-Sign switch
168
+ * @param {GlobalPolicy} globalPolicy
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ setSharingPolicyGlobal: (globalPolicy: GlobalPolicy, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
173
+ /**
174
+ * 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.
175
+ * @summary Set a user\'s or a team\'s sharing rule
176
+ * @param {string} subjectId
177
+ * @param {OverrideRequest} overrideRequest
178
+ * @param {*} [options] Override http request option.
179
+ * @throws {RequiredError}
180
+ */
181
+ setSharingPolicyOverride: (subjectId: string, overrideRequest: OverrideRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
182
+ };
183
+ /**
184
+ * SharingPolicyApi - functional programming interface
185
+ */
186
+ export declare const SharingPolicyApiFp: (configuration?: Configuration) => {
187
+ /**
188
+ *
189
+ * @summary A user\'s effective sharing rule and where it comes from (USER, TEAM or GLOBAL)
190
+ * @param {string} userId
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ adminGetEffectiveSharingPolicy(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EffectivePolicy>>;
195
+ /**
196
+ *
197
+ * @summary The global mode, allowed domains, e-Sign switch, locked keys and number of overrides
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ */
201
+ adminGetSharingPolicy(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GlobalPolicy>>;
202
+ /**
203
+ *
204
+ * @summary Progress of a background revocation
205
+ * @param {string} jobId
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ adminGetSharingPolicyRevokeJob(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RevokeResult>>;
210
+ /**
211
+ *
212
+ * @summary Users and teams with their own sharing rule
213
+ * @param {string} [type]
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ */
217
+ adminListSharingPolicyOverrides(type?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OverrideView>>>;
218
+ /**
219
+ * 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).
220
+ * @summary Existing shares the current policies refuse
221
+ * @param {string} [cursor]
222
+ * @param {number} [size]
223
+ * @param {boolean} [count]
224
+ * @param {*} [options] Override http request option.
225
+ * @throws {RequiredError}
226
+ */
227
+ adminListSharingPolicyViolations(cursor?: string, size?: number, count?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ViolationsResponse>>;
228
+ /**
229
+ *
230
+ * @summary Remove a user\'s or a team\'s own rule (back to their teams\', else the global mode)
231
+ * @param {string} subjectId
232
+ * @param {*} [options] Override http request option.
233
+ * @throws {RequiredError}
234
+ */
235
+ adminRemoveSharingPolicyOverride(subjectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
236
+ /**
237
+ * 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.
238
+ * @summary Revoke shares that break the policy
239
+ * @param {RevokeRequest} revokeRequest
240
+ * @param {*} [options] Override http request option.
241
+ * @throws {RequiredError}
242
+ */
243
+ adminRevokeSharingPolicyViolations(revokeRequest: RevokeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RevokeResult>>;
244
+ /**
245
+ * 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).
246
+ * @summary Change the global mode, allowed domains and e-Sign switch
247
+ * @param {GlobalPolicy} globalPolicy
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ adminSetSharingPolicyGlobal(globalPolicy: GlobalPolicy, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GlobalPolicy>>;
252
+ /**
253
+ * 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.
254
+ * @summary Set a user\'s or a team\'s sharing rule
255
+ * @param {string} subjectId
256
+ * @param {OverrideRequest} overrideRequest
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ adminSetSharingPolicyOverride(subjectId: string, overrideRequest: OverrideRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OverrideView>>;
261
+ /**
262
+ *
263
+ * @summary A user\'s effective sharing rule and where it comes from (USER, TEAM or GLOBAL)
264
+ * @param {string} userId
265
+ * @param {*} [options] Override http request option.
266
+ * @throws {RequiredError}
267
+ */
268
+ getEffectiveSharingPolicy(userId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EffectivePolicy>>;
269
+ /**
270
+ * The allowed domains are listed only when the rule restricts domains.
271
+ * @summary The caller\'s own sharing rule (for the share dialog)
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ getMySharingPolicy(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MyPolicy>>;
276
+ /**
277
+ *
278
+ * @summary The global mode, allowed domains, e-Sign switch, locked keys and number of overrides
279
+ * @param {*} [options] Override http request option.
280
+ * @throws {RequiredError}
281
+ */
282
+ getSharingPolicy(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GlobalPolicy>>;
283
+ /**
284
+ *
285
+ * @summary Progress of a background revocation
286
+ * @param {string} jobId
287
+ * @param {*} [options] Override http request option.
288
+ * @throws {RequiredError}
289
+ */
290
+ getSharingPolicyRevokeJob(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RevokeResult>>;
291
+ /**
292
+ *
293
+ * @summary Users and teams with their own sharing rule
294
+ * @param {string} [type]
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ listSharingPolicyOverrides(type?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OverrideView>>>;
299
+ /**
300
+ * 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).
301
+ * @summary Existing shares the current policies refuse
302
+ * @param {string} [cursor]
303
+ * @param {number} [size]
304
+ * @param {boolean} [count]
305
+ * @param {*} [options] Override http request option.
306
+ * @throws {RequiredError}
307
+ */
308
+ listSharingPolicyViolations(cursor?: string, size?: number, count?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ViolationsResponse>>;
309
+ /**
310
+ *
311
+ * @summary Remove a user\'s or a team\'s own rule (back to their teams\', else the global mode)
312
+ * @param {string} subjectId
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ removeSharingPolicyOverride(subjectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
317
+ /**
318
+ * 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.
319
+ * @summary Revoke shares that break the policy
320
+ * @param {RevokeRequest} revokeRequest
321
+ * @param {*} [options] Override http request option.
322
+ * @throws {RequiredError}
323
+ */
324
+ revokeSharingPolicyViolations(revokeRequest: RevokeRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RevokeResult>>;
325
+ /**
326
+ * 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).
327
+ * @summary Change the global mode, allowed domains and e-Sign switch
328
+ * @param {GlobalPolicy} globalPolicy
329
+ * @param {*} [options] Override http request option.
330
+ * @throws {RequiredError}
331
+ */
332
+ setSharingPolicyGlobal(globalPolicy: GlobalPolicy, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GlobalPolicy>>;
333
+ /**
334
+ * 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.
335
+ * @summary Set a user\'s or a team\'s sharing rule
336
+ * @param {string} subjectId
337
+ * @param {OverrideRequest} overrideRequest
338
+ * @param {*} [options] Override http request option.
339
+ * @throws {RequiredError}
340
+ */
341
+ setSharingPolicyOverride(subjectId: string, overrideRequest: OverrideRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OverrideView>>;
342
+ };
343
+ /**
344
+ * SharingPolicyApi - factory interface
345
+ */
346
+ export declare const SharingPolicyApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
347
+ /**
348
+ *
349
+ * @summary A user\'s effective sharing rule and where it comes from (USER, TEAM or GLOBAL)
350
+ * @param {string} userId
351
+ * @param {*} [options] Override http request option.
352
+ * @throws {RequiredError}
353
+ */
354
+ adminGetEffectiveSharingPolicy(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<EffectivePolicy>;
355
+ /**
356
+ *
357
+ * @summary The global mode, allowed domains, e-Sign switch, locked keys and number of overrides
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ */
361
+ adminGetSharingPolicy(options?: RawAxiosRequestConfig): AxiosPromise<GlobalPolicy>;
362
+ /**
363
+ *
364
+ * @summary Progress of a background revocation
365
+ * @param {string} jobId
366
+ * @param {*} [options] Override http request option.
367
+ * @throws {RequiredError}
368
+ */
369
+ adminGetSharingPolicyRevokeJob(jobId: string, options?: RawAxiosRequestConfig): AxiosPromise<RevokeResult>;
370
+ /**
371
+ *
372
+ * @summary Users and teams with their own sharing rule
373
+ * @param {string} [type]
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ adminListSharingPolicyOverrides(type?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OverrideView>>;
378
+ /**
379
+ * 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).
380
+ * @summary Existing shares the current policies refuse
381
+ * @param {string} [cursor]
382
+ * @param {number} [size]
383
+ * @param {boolean} [count]
384
+ * @param {*} [options] Override http request option.
385
+ * @throws {RequiredError}
386
+ */
387
+ adminListSharingPolicyViolations(cursor?: string, size?: number, count?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<ViolationsResponse>;
388
+ /**
389
+ *
390
+ * @summary Remove a user\'s or a team\'s own rule (back to their teams\', else the global mode)
391
+ * @param {string} subjectId
392
+ * @param {*} [options] Override http request option.
393
+ * @throws {RequiredError}
394
+ */
395
+ adminRemoveSharingPolicyOverride(subjectId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
396
+ /**
397
+ * 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.
398
+ * @summary Revoke shares that break the policy
399
+ * @param {RevokeRequest} revokeRequest
400
+ * @param {*} [options] Override http request option.
401
+ * @throws {RequiredError}
402
+ */
403
+ adminRevokeSharingPolicyViolations(revokeRequest: RevokeRequest, options?: RawAxiosRequestConfig): AxiosPromise<RevokeResult>;
404
+ /**
405
+ * 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).
406
+ * @summary Change the global mode, allowed domains and e-Sign switch
407
+ * @param {GlobalPolicy} globalPolicy
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ adminSetSharingPolicyGlobal(globalPolicy: GlobalPolicy, options?: RawAxiosRequestConfig): AxiosPromise<GlobalPolicy>;
412
+ /**
413
+ * 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.
414
+ * @summary Set a user\'s or a team\'s sharing rule
415
+ * @param {string} subjectId
416
+ * @param {OverrideRequest} overrideRequest
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ */
420
+ adminSetSharingPolicyOverride(subjectId: string, overrideRequest: OverrideRequest, options?: RawAxiosRequestConfig): AxiosPromise<OverrideView>;
421
+ /**
422
+ *
423
+ * @summary A user\'s effective sharing rule and where it comes from (USER, TEAM or GLOBAL)
424
+ * @param {string} userId
425
+ * @param {*} [options] Override http request option.
426
+ * @throws {RequiredError}
427
+ */
428
+ getEffectiveSharingPolicy(userId: string, options?: RawAxiosRequestConfig): AxiosPromise<EffectivePolicy>;
429
+ /**
430
+ * The allowed domains are listed only when the rule restricts domains.
431
+ * @summary The caller\'s own sharing rule (for the share dialog)
432
+ * @param {*} [options] Override http request option.
433
+ * @throws {RequiredError}
434
+ */
435
+ getMySharingPolicy(options?: RawAxiosRequestConfig): AxiosPromise<MyPolicy>;
436
+ /**
437
+ *
438
+ * @summary The global mode, allowed domains, e-Sign switch, locked keys and number of overrides
439
+ * @param {*} [options] Override http request option.
440
+ * @throws {RequiredError}
441
+ */
442
+ getSharingPolicy(options?: RawAxiosRequestConfig): AxiosPromise<GlobalPolicy>;
443
+ /**
444
+ *
445
+ * @summary Progress of a background revocation
446
+ * @param {string} jobId
447
+ * @param {*} [options] Override http request option.
448
+ * @throws {RequiredError}
449
+ */
450
+ getSharingPolicyRevokeJob(jobId: string, options?: RawAxiosRequestConfig): AxiosPromise<RevokeResult>;
451
+ /**
452
+ *
453
+ * @summary Users and teams with their own sharing rule
454
+ * @param {string} [type]
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ */
458
+ listSharingPolicyOverrides(type?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OverrideView>>;
459
+ /**
460
+ * 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).
461
+ * @summary Existing shares the current policies refuse
462
+ * @param {string} [cursor]
463
+ * @param {number} [size]
464
+ * @param {boolean} [count]
465
+ * @param {*} [options] Override http request option.
466
+ * @throws {RequiredError}
467
+ */
468
+ listSharingPolicyViolations(cursor?: string, size?: number, count?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<ViolationsResponse>;
469
+ /**
470
+ *
471
+ * @summary Remove a user\'s or a team\'s own rule (back to their teams\', else the global mode)
472
+ * @param {string} subjectId
473
+ * @param {*} [options] Override http request option.
474
+ * @throws {RequiredError}
475
+ */
476
+ removeSharingPolicyOverride(subjectId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
477
+ /**
478
+ * 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.
479
+ * @summary Revoke shares that break the policy
480
+ * @param {RevokeRequest} revokeRequest
481
+ * @param {*} [options] Override http request option.
482
+ * @throws {RequiredError}
483
+ */
484
+ revokeSharingPolicyViolations(revokeRequest: RevokeRequest, options?: RawAxiosRequestConfig): AxiosPromise<RevokeResult>;
485
+ /**
486
+ * 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).
487
+ * @summary Change the global mode, allowed domains and e-Sign switch
488
+ * @param {GlobalPolicy} globalPolicy
489
+ * @param {*} [options] Override http request option.
490
+ * @throws {RequiredError}
491
+ */
492
+ setSharingPolicyGlobal(globalPolicy: GlobalPolicy, options?: RawAxiosRequestConfig): AxiosPromise<GlobalPolicy>;
493
+ /**
494
+ * 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.
495
+ * @summary Set a user\'s or a team\'s sharing rule
496
+ * @param {string} subjectId
497
+ * @param {OverrideRequest} overrideRequest
498
+ * @param {*} [options] Override http request option.
499
+ * @throws {RequiredError}
500
+ */
501
+ setSharingPolicyOverride(subjectId: string, overrideRequest: OverrideRequest, options?: RawAxiosRequestConfig): AxiosPromise<OverrideView>;
502
+ };
503
+ /**
504
+ * SharingPolicyApi - object-oriented interface
505
+ */
506
+ export declare class SharingPolicyApi extends BaseAPI {
507
+ /**
508
+ *
509
+ * @summary A user\'s effective sharing rule and where it comes from (USER, TEAM or GLOBAL)
510
+ * @param {string} userId
511
+ * @param {*} [options] Override http request option.
512
+ * @throws {RequiredError}
513
+ */
514
+ adminGetEffectiveSharingPolicy(userId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EffectivePolicy, any, {}, any>>;
515
+ /**
516
+ *
517
+ * @summary The global mode, allowed domains, e-Sign switch, locked keys and number of overrides
518
+ * @param {*} [options] Override http request option.
519
+ * @throws {RequiredError}
520
+ */
521
+ adminGetSharingPolicy(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GlobalPolicy, any, {}, any>>;
522
+ /**
523
+ *
524
+ * @summary Progress of a background revocation
525
+ * @param {string} jobId
526
+ * @param {*} [options] Override http request option.
527
+ * @throws {RequiredError}
528
+ */
529
+ adminGetSharingPolicyRevokeJob(jobId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RevokeResult, any, {}, any>>;
530
+ /**
531
+ *
532
+ * @summary Users and teams with their own sharing rule
533
+ * @param {string} [type]
534
+ * @param {*} [options] Override http request option.
535
+ * @throws {RequiredError}
536
+ */
537
+ adminListSharingPolicyOverrides(type?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OverrideView[], any, {}, any>>;
538
+ /**
539
+ * 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).
540
+ * @summary Existing shares the current policies refuse
541
+ * @param {string} [cursor]
542
+ * @param {number} [size]
543
+ * @param {boolean} [count]
544
+ * @param {*} [options] Override http request option.
545
+ * @throws {RequiredError}
546
+ */
547
+ adminListSharingPolicyViolations(cursor?: string, size?: number, count?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ViolationsResponse, any, {}, any>>;
548
+ /**
549
+ *
550
+ * @summary Remove a user\'s or a team\'s own rule (back to their teams\', else the global mode)
551
+ * @param {string} subjectId
552
+ * @param {*} [options] Override http request option.
553
+ * @throws {RequiredError}
554
+ */
555
+ adminRemoveSharingPolicyOverride(subjectId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
556
+ /**
557
+ * 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.
558
+ * @summary Revoke shares that break the policy
559
+ * @param {RevokeRequest} revokeRequest
560
+ * @param {*} [options] Override http request option.
561
+ * @throws {RequiredError}
562
+ */
563
+ adminRevokeSharingPolicyViolations(revokeRequest: RevokeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RevokeResult, any, {}, any>>;
564
+ /**
565
+ * 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).
566
+ * @summary Change the global mode, allowed domains and e-Sign switch
567
+ * @param {GlobalPolicy} globalPolicy
568
+ * @param {*} [options] Override http request option.
569
+ * @throws {RequiredError}
570
+ */
571
+ adminSetSharingPolicyGlobal(globalPolicy: GlobalPolicy, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GlobalPolicy, any, {}, any>>;
572
+ /**
573
+ * 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.
574
+ * @summary Set a user\'s or a team\'s sharing rule
575
+ * @param {string} subjectId
576
+ * @param {OverrideRequest} overrideRequest
577
+ * @param {*} [options] Override http request option.
578
+ * @throws {RequiredError}
579
+ */
580
+ adminSetSharingPolicyOverride(subjectId: string, overrideRequest: OverrideRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OverrideView, any, {}, any>>;
581
+ /**
582
+ *
583
+ * @summary A user\'s effective sharing rule and where it comes from (USER, TEAM or GLOBAL)
584
+ * @param {string} userId
585
+ * @param {*} [options] Override http request option.
586
+ * @throws {RequiredError}
587
+ */
588
+ getEffectiveSharingPolicy(userId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EffectivePolicy, any, {}, any>>;
589
+ /**
590
+ * The allowed domains are listed only when the rule restricts domains.
591
+ * @summary The caller\'s own sharing rule (for the share dialog)
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ */
595
+ getMySharingPolicy(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MyPolicy, any, {}, any>>;
596
+ /**
597
+ *
598
+ * @summary The global mode, allowed domains, e-Sign switch, locked keys and number of overrides
599
+ * @param {*} [options] Override http request option.
600
+ * @throws {RequiredError}
601
+ */
602
+ getSharingPolicy(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GlobalPolicy, any, {}, any>>;
603
+ /**
604
+ *
605
+ * @summary Progress of a background revocation
606
+ * @param {string} jobId
607
+ * @param {*} [options] Override http request option.
608
+ * @throws {RequiredError}
609
+ */
610
+ getSharingPolicyRevokeJob(jobId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RevokeResult, any, {}, any>>;
611
+ /**
612
+ *
613
+ * @summary Users and teams with their own sharing rule
614
+ * @param {string} [type]
615
+ * @param {*} [options] Override http request option.
616
+ * @throws {RequiredError}
617
+ */
618
+ listSharingPolicyOverrides(type?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OverrideView[], any, {}, any>>;
619
+ /**
620
+ * 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).
621
+ * @summary Existing shares the current policies refuse
622
+ * @param {string} [cursor]
623
+ * @param {number} [size]
624
+ * @param {boolean} [count]
625
+ * @param {*} [options] Override http request option.
626
+ * @throws {RequiredError}
627
+ */
628
+ listSharingPolicyViolations(cursor?: string, size?: number, count?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ViolationsResponse, any, {}, any>>;
629
+ /**
630
+ *
631
+ * @summary Remove a user\'s or a team\'s own rule (back to their teams\', else the global mode)
632
+ * @param {string} subjectId
633
+ * @param {*} [options] Override http request option.
634
+ * @throws {RequiredError}
635
+ */
636
+ removeSharingPolicyOverride(subjectId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
637
+ /**
638
+ * 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.
639
+ * @summary Revoke shares that break the policy
640
+ * @param {RevokeRequest} revokeRequest
641
+ * @param {*} [options] Override http request option.
642
+ * @throws {RequiredError}
643
+ */
644
+ revokeSharingPolicyViolations(revokeRequest: RevokeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RevokeResult, any, {}, any>>;
645
+ /**
646
+ * 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).
647
+ * @summary Change the global mode, allowed domains and e-Sign switch
648
+ * @param {GlobalPolicy} globalPolicy
649
+ * @param {*} [options] Override http request option.
650
+ * @throws {RequiredError}
651
+ */
652
+ setSharingPolicyGlobal(globalPolicy: GlobalPolicy, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GlobalPolicy, any, {}, any>>;
653
+ /**
654
+ * 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.
655
+ * @summary Set a user\'s or a team\'s sharing rule
656
+ * @param {string} subjectId
657
+ * @param {OverrideRequest} overrideRequest
658
+ * @param {*} [options] Override http request option.
659
+ * @throws {RequiredError}
660
+ */
661
+ setSharingPolicyOverride(subjectId: string, overrideRequest: OverrideRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OverrideView, any, {}, any>>;
662
+ }