@openfilz-sdk/typescript-ee 1.14.3 → 1.14.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/.openapi-generator/FILES +32 -0
  2. package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
  3. package/README.md +35 -2
  4. package/api/collaboration-controller-api.ts +8 -8
  5. package/api/directory-administration-api.ts +200 -0
  6. package/api/team-administration-api.ts +221 -4
  7. package/api/teams-api.ts +1090 -0
  8. package/api/user-privacy-api.ts +4 -4
  9. package/api.ts +2 -0
  10. package/dist/api/collaboration-controller-api.d.ts +8 -8
  11. package/dist/api/collaboration-controller-api.js +8 -8
  12. package/dist/api/directory-administration-api.d.ts +99 -0
  13. package/dist/api/directory-administration-api.js +201 -0
  14. package/dist/api/team-administration-api.d.ts +101 -4
  15. package/dist/api/team-administration-api.js +210 -4
  16. package/dist/api/teams-api.d.ts +499 -0
  17. package/dist/api/teams-api.js +1039 -0
  18. package/dist/api/user-privacy-api.d.ts +4 -4
  19. package/dist/api/user-privacy-api.js +4 -4
  20. package/dist/api.d.ts +2 -0
  21. package/dist/api.js +2 -0
  22. package/dist/esm/api/collaboration-controller-api.d.ts +8 -8
  23. package/dist/esm/api/collaboration-controller-api.js +8 -8
  24. package/dist/esm/api/directory-administration-api.d.ts +99 -0
  25. package/dist/esm/api/directory-administration-api.js +194 -0
  26. package/dist/esm/api/team-administration-api.d.ts +101 -4
  27. package/dist/esm/api/team-administration-api.js +210 -4
  28. package/dist/esm/api/teams-api.d.ts +499 -0
  29. package/dist/esm/api/teams-api.js +1032 -0
  30. package/dist/esm/api/user-privacy-api.d.ts +4 -4
  31. package/dist/esm/api/user-privacy-api.js +4 -4
  32. package/dist/esm/api.d.ts +2 -0
  33. package/dist/esm/api.js +2 -0
  34. package/dist/esm/models/add-team-owner-request.d.ts +14 -0
  35. package/dist/esm/models/add-team-owner-request.js +14 -0
  36. package/dist/esm/models/create-collaborative-team-request.d.ts +14 -0
  37. package/dist/esm/models/create-collaborative-team-request.js +14 -0
  38. package/dist/esm/models/directory-hidden-request.d.ts +14 -0
  39. package/dist/esm/models/directory-hidden-request.js +14 -0
  40. package/dist/esm/models/enriched-audit-log.d.ts +7 -0
  41. package/dist/esm/models/enriched-audit-log.js +7 -0
  42. package/dist/esm/models/index.d.ts +14 -0
  43. package/dist/esm/models/index.js +14 -0
  44. package/dist/esm/models/invite-to-team-request.d.ts +14 -0
  45. package/dist/esm/models/invite-to-team-request.js +14 -0
  46. package/dist/esm/models/my-team.d.ts +23 -0
  47. package/dist/esm/models/my-team.js +17 -0
  48. package/dist/esm/models/notification-dto.d.ts +5 -0
  49. package/dist/esm/models/notification-dto.js +5 -0
  50. package/dist/esm/models/rename-team-request.d.ts +14 -0
  51. package/dist/esm/models/rename-team-request.js +14 -0
  52. package/dist/esm/models/search-by-audit-log-request.d.ts +7 -0
  53. package/dist/esm/models/search-by-audit-log-request.js +7 -0
  54. package/dist/esm/models/team-capabilities.d.ts +18 -0
  55. package/dist/esm/models/team-capabilities.js +14 -0
  56. package/dist/esm/models/team-details.d.ts +28 -0
  57. package/dist/esm/models/team-details.js +17 -0
  58. package/dist/esm/models/team-invitation-view.d.ts +20 -0
  59. package/dist/esm/models/team-invitation-view.js +14 -0
  60. package/dist/esm/models/team-invite-result.d.ts +23 -0
  61. package/dist/esm/models/team-invite-result.js +20 -0
  62. package/dist/esm/models/team-kind-view.d.ts +23 -0
  63. package/dist/esm/models/team-kind-view.js +17 -0
  64. package/dist/esm/models/team-owner-view.d.ts +16 -0
  65. package/dist/esm/models/team-owner-view.js +14 -0
  66. package/dist/esm/models/team-pending-invitee.d.ts +19 -0
  67. package/dist/esm/models/team-pending-invitee.js +14 -0
  68. package/dist/esm/models/team-person.d.ts +17 -0
  69. package/dist/esm/models/team-person.js +14 -0
  70. package/dist/esm/models/update-user-privacy-request.d.ts +3 -1
  71. package/dist/esm/models/user-privacy-dto.d.ts +8 -0
  72. package/dist/esm/models/user-privacy-dto.js +4 -1
  73. package/dist/models/add-team-owner-request.d.ts +14 -0
  74. package/dist/models/add-team-owner-request.js +15 -0
  75. package/dist/models/create-collaborative-team-request.d.ts +14 -0
  76. package/dist/models/create-collaborative-team-request.js +15 -0
  77. package/dist/models/directory-hidden-request.d.ts +14 -0
  78. package/dist/models/directory-hidden-request.js +15 -0
  79. package/dist/models/enriched-audit-log.d.ts +7 -0
  80. package/dist/models/enriched-audit-log.js +7 -0
  81. package/dist/models/index.d.ts +14 -0
  82. package/dist/models/index.js +14 -0
  83. package/dist/models/invite-to-team-request.d.ts +14 -0
  84. package/dist/models/invite-to-team-request.js +15 -0
  85. package/dist/models/my-team.d.ts +23 -0
  86. package/dist/models/my-team.js +20 -0
  87. package/dist/models/notification-dto.d.ts +5 -0
  88. package/dist/models/notification-dto.js +5 -0
  89. package/dist/models/rename-team-request.d.ts +14 -0
  90. package/dist/models/rename-team-request.js +15 -0
  91. package/dist/models/search-by-audit-log-request.d.ts +7 -0
  92. package/dist/models/search-by-audit-log-request.js +7 -0
  93. package/dist/models/team-capabilities.d.ts +18 -0
  94. package/dist/models/team-capabilities.js +15 -0
  95. package/dist/models/team-details.d.ts +28 -0
  96. package/dist/models/team-details.js +20 -0
  97. package/dist/models/team-invitation-view.d.ts +20 -0
  98. package/dist/models/team-invitation-view.js +15 -0
  99. package/dist/models/team-invite-result.d.ts +23 -0
  100. package/dist/models/team-invite-result.js +23 -0
  101. package/dist/models/team-kind-view.d.ts +23 -0
  102. package/dist/models/team-kind-view.js +20 -0
  103. package/dist/models/team-owner-view.d.ts +16 -0
  104. package/dist/models/team-owner-view.js +15 -0
  105. package/dist/models/team-pending-invitee.d.ts +19 -0
  106. package/dist/models/team-pending-invitee.js +15 -0
  107. package/dist/models/team-person.d.ts +17 -0
  108. package/dist/models/team-person.js +15 -0
  109. package/dist/models/update-user-privacy-request.d.ts +3 -1
  110. package/dist/models/user-privacy-dto.d.ts +8 -0
  111. package/dist/models/user-privacy-dto.js +5 -0
  112. package/docs/AddTeamOwnerRequest.md +20 -0
  113. package/docs/CollaborationControllerApi.md +2 -2
  114. package/docs/CreateCollaborativeTeamRequest.md +20 -0
  115. package/docs/DirectoryAdministrationApi.md +107 -0
  116. package/docs/DirectoryHiddenRequest.md +20 -0
  117. package/docs/InviteToTeamRequest.md +20 -0
  118. package/docs/MyTeam.md +28 -0
  119. package/docs/RenameTeamRequest.md +20 -0
  120. package/docs/TeamAdministrationApi.md +153 -1
  121. package/docs/TeamCapabilities.md +28 -0
  122. package/docs/TeamDetails.md +34 -0
  123. package/docs/TeamInvitationView.md +32 -0
  124. package/docs/TeamInviteResult.md +22 -0
  125. package/docs/TeamKindView.md +26 -0
  126. package/docs/TeamOwnerView.md +24 -0
  127. package/docs/TeamPendingInvitee.md +30 -0
  128. package/docs/TeamPerson.md +26 -0
  129. package/docs/TeamsApi.md +724 -0
  130. package/docs/UpdateUserPrivacyRequest.md +5 -1
  131. package/docs/UserPrivacyApi.md +1 -1
  132. package/docs/UserPrivacyDTO.md +6 -0
  133. package/models/add-team-owner-request.ts +20 -0
  134. package/models/create-collaborative-team-request.ts +20 -0
  135. package/models/directory-hidden-request.ts +20 -0
  136. package/models/enriched-audit-log.ts +7 -0
  137. package/models/index.ts +14 -0
  138. package/models/invite-to-team-request.ts +20 -0
  139. package/models/my-team.ts +32 -0
  140. package/models/notification-dto.ts +5 -0
  141. package/models/rename-team-request.ts +20 -0
  142. package/models/search-by-audit-log-request.ts +7 -0
  143. package/models/team-capabilities.ts +24 -0
  144. package/models/team-details.ts +41 -0
  145. package/models/team-invitation-view.ts +26 -0
  146. package/models/team-invite-result.ts +32 -0
  147. package/models/team-kind-view.ts +34 -0
  148. package/models/team-owner-view.ts +22 -0
  149. package/models/team-pending-invitee.ts +25 -0
  150. package/models/team-person.ts +23 -0
  151. package/models/update-user-privacy-request.ts +3 -1
  152. package/models/user-privacy-dto.ts +11 -0
  153. package/package.json +1 -1
@@ -35,7 +35,7 @@ const base_1 = require("../base");
35
35
  const TeamAdministrationApiAxiosParamCreator = function (configuration) {
36
36
  return {
37
37
  /**
38
- * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
38
+ * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy. New members are told (notification + e-mail); a collaborative team, or openfilz.teams.admin-add-requires-consent, turns the addition into invitations (docs/directory-visibility.md §3.7.2).
39
39
  * @summary Add members to a team
40
40
  * @param {string} teamId
41
41
  * @param {Array<string>} requestBody
@@ -71,6 +71,104 @@ const TeamAdministrationApiAxiosParamCreator = function (configuration) {
71
71
  options: localVarRequestOptions,
72
72
  };
73
73
  }),
74
+ /**
75
+ * Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
76
+ * @summary Turn a collaborative team into an organisation team
77
+ * @param {string} teamId
78
+ * @param {*} [options] Override http request option.
79
+ * @throws {RequiredError}
80
+ */
81
+ adminPromoteTeam: (teamId_1, ...args_1) => __awaiter(this, [teamId_1, ...args_1], void 0, function* (teamId, options = {}) {
82
+ // verify required parameter 'teamId' is not null or undefined
83
+ (0, common_1.assertParamExists)('adminPromoteTeam', 'teamId', teamId);
84
+ const localVarPath = `/api/v1/admin/teams/{teamId}/promote`
85
+ .replace('{teamId}', encodeURIComponent(String(teamId)));
86
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
87
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
88
+ let baseOptions;
89
+ if (configuration) {
90
+ baseOptions = configuration.baseOptions;
91
+ }
92
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
93
+ const localVarHeaderParameter = {};
94
+ const localVarQueryParameter = {};
95
+ // authentication keycloak_auth required
96
+ // http bearer authentication required
97
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
98
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
99
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
100
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
101
+ return {
102
+ url: (0, common_1.toPathString)(localVarUrlObj),
103
+ options: localVarRequestOptions,
104
+ };
105
+ }),
106
+ /**
107
+ * Each removed member is told (notification) and loses any ownership of the team.
108
+ * @summary Remove members from a team
109
+ * @param {string} teamId
110
+ * @param {Array<string>} requestBody
111
+ * @param {*} [options] Override http request option.
112
+ * @throws {RequiredError}
113
+ */
114
+ adminRemoveTeamMembers: (teamId_1, requestBody_1, ...args_1) => __awaiter(this, [teamId_1, requestBody_1, ...args_1], void 0, function* (teamId, requestBody, options = {}) {
115
+ // verify required parameter 'teamId' is not null or undefined
116
+ (0, common_1.assertParamExists)('adminRemoveTeamMembers', 'teamId', teamId);
117
+ // verify required parameter 'requestBody' is not null or undefined
118
+ (0, common_1.assertParamExists)('adminRemoveTeamMembers', 'requestBody', requestBody);
119
+ const localVarPath = `/api/v1/admin/teams/{teamId}/members`
120
+ .replace('{teamId}', encodeURIComponent(String(teamId)));
121
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
122
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
123
+ let baseOptions;
124
+ if (configuration) {
125
+ baseOptions = configuration.baseOptions;
126
+ }
127
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
128
+ const localVarHeaderParameter = {};
129
+ const localVarQueryParameter = {};
130
+ // authentication keycloak_auth required
131
+ // http bearer authentication required
132
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
133
+ localVarHeaderParameter['Content-Type'] = 'application/json';
134
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
137
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(requestBody, localVarRequestOptions, configuration);
138
+ return {
139
+ url: (0, common_1.toPathString)(localVarUrlObj),
140
+ options: localVarRequestOptions,
141
+ };
142
+ }),
143
+ /**
144
+ * ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
145
+ * @summary Kind and owners of every team
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ adminTeamKinds: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
150
+ const localVarPath = `/api/v1/admin/teams/kinds`;
151
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
152
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
153
+ let baseOptions;
154
+ if (configuration) {
155
+ baseOptions = configuration.baseOptions;
156
+ }
157
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
158
+ const localVarHeaderParameter = {};
159
+ const localVarQueryParameter = {};
160
+ // authentication keycloak_auth required
161
+ // http bearer authentication required
162
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
163
+ localVarHeaderParameter['Accept'] = '*/*';
164
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
165
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
166
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
167
+ return {
168
+ url: (0, common_1.toPathString)(localVarUrlObj),
169
+ options: localVarRequestOptions,
170
+ };
171
+ }),
74
172
  };
75
173
  };
76
174
  exports.TeamAdministrationApiAxiosParamCreator = TeamAdministrationApiAxiosParamCreator;
@@ -81,7 +179,7 @@ const TeamAdministrationApiFp = function (configuration) {
81
179
  const localVarAxiosParamCreator = (0, exports.TeamAdministrationApiAxiosParamCreator)(configuration);
82
180
  return {
83
181
  /**
84
- * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
182
+ * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy. New members are told (notification + e-mail); a collaborative team, or openfilz.teams.admin-add-requires-consent, turns the addition into invitations (docs/directory-visibility.md §3.7.2).
85
183
  * @summary Add members to a team
86
184
  * @param {string} teamId
87
185
  * @param {Array<string>} requestBody
@@ -97,6 +195,54 @@ const TeamAdministrationApiFp = function (configuration) {
97
195
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
98
196
  });
99
197
  },
198
+ /**
199
+ * Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
200
+ * @summary Turn a collaborative team into an organisation team
201
+ * @param {string} teamId
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ */
205
+ adminPromoteTeam(teamId, options) {
206
+ return __awaiter(this, void 0, void 0, function* () {
207
+ var _a, _b, _c;
208
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPromoteTeam(teamId, options);
209
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
210
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TeamAdministrationApi.adminPromoteTeam']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
211
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
212
+ });
213
+ },
214
+ /**
215
+ * Each removed member is told (notification) and loses any ownership of the team.
216
+ * @summary Remove members from a team
217
+ * @param {string} teamId
218
+ * @param {Array<string>} requestBody
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ */
222
+ adminRemoveTeamMembers(teamId, requestBody, options) {
223
+ return __awaiter(this, void 0, void 0, function* () {
224
+ var _a, _b, _c;
225
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminRemoveTeamMembers(teamId, requestBody, options);
226
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
227
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TeamAdministrationApi.adminRemoveTeamMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
228
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
229
+ });
230
+ },
231
+ /**
232
+ * ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
233
+ * @summary Kind and owners of every team
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ adminTeamKinds(options) {
238
+ return __awaiter(this, void 0, void 0, function* () {
239
+ var _a, _b, _c;
240
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminTeamKinds(options);
241
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
242
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TeamAdministrationApi.adminTeamKinds']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
243
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
244
+ });
245
+ },
100
246
  };
101
247
  };
102
248
  exports.TeamAdministrationApiFp = TeamAdministrationApiFp;
@@ -107,7 +253,7 @@ const TeamAdministrationApiFactory = function (configuration, basePath, axios) {
107
253
  const localVarFp = (0, exports.TeamAdministrationApiFp)(configuration);
108
254
  return {
109
255
  /**
110
- * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
256
+ * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy. New members are told (notification + e-mail); a collaborative team, or openfilz.teams.admin-add-requires-consent, turns the addition into invitations (docs/directory-visibility.md §3.7.2).
111
257
  * @summary Add members to a team
112
258
  * @param {string} teamId
113
259
  * @param {Array<string>} requestBody
@@ -117,6 +263,36 @@ const TeamAdministrationApiFactory = function (configuration, basePath, axios) {
117
263
  adminAddTeamMembers(teamId, requestBody, options) {
118
264
  return localVarFp.adminAddTeamMembers(teamId, requestBody, options).then((request) => request(axios, basePath));
119
265
  },
266
+ /**
267
+ * Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
268
+ * @summary Turn a collaborative team into an organisation team
269
+ * @param {string} teamId
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ adminPromoteTeam(teamId, options) {
274
+ return localVarFp.adminPromoteTeam(teamId, options).then((request) => request(axios, basePath));
275
+ },
276
+ /**
277
+ * Each removed member is told (notification) and loses any ownership of the team.
278
+ * @summary Remove members from a team
279
+ * @param {string} teamId
280
+ * @param {Array<string>} requestBody
281
+ * @param {*} [options] Override http request option.
282
+ * @throws {RequiredError}
283
+ */
284
+ adminRemoveTeamMembers(teamId, requestBody, options) {
285
+ return localVarFp.adminRemoveTeamMembers(teamId, requestBody, options).then((request) => request(axios, basePath));
286
+ },
287
+ /**
288
+ * ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
289
+ * @summary Kind and owners of every team
290
+ * @param {*} [options] Override http request option.
291
+ * @throws {RequiredError}
292
+ */
293
+ adminTeamKinds(options) {
294
+ return localVarFp.adminTeamKinds(options).then((request) => request(axios, basePath));
295
+ },
120
296
  };
121
297
  };
122
298
  exports.TeamAdministrationApiFactory = TeamAdministrationApiFactory;
@@ -125,7 +301,7 @@ exports.TeamAdministrationApiFactory = TeamAdministrationApiFactory;
125
301
  */
126
302
  class TeamAdministrationApi extends base_1.BaseAPI {
127
303
  /**
128
- * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy.
304
+ * Idempotent for existing members. 409 TEAM_MEMBER_EXTERNAL (counts of members, owners and documents) when documents shared with the team may not be shared with a new member under the sharing policy. New members are told (notification + e-mail); a collaborative team, or openfilz.teams.admin-add-requires-consent, turns the addition into invitations (docs/directory-visibility.md §3.7.2).
129
305
  * @summary Add members to a team
130
306
  * @param {string} teamId
131
307
  * @param {Array<string>} requestBody
@@ -135,5 +311,35 @@ class TeamAdministrationApi extends base_1.BaseAPI {
135
311
  adminAddTeamMembers(teamId, requestBody, options) {
136
312
  return (0, exports.TeamAdministrationApiFp)(this.configuration).adminAddTeamMembers(teamId, requestBody, options).then((request) => request(this.axios, this.basePath));
137
313
  }
314
+ /**
315
+ * Its owners are dropped and its pending invitations cancelled; administrators manage it from then on.
316
+ * @summary Turn a collaborative team into an organisation team
317
+ * @param {string} teamId
318
+ * @param {*} [options] Override http request option.
319
+ * @throws {RequiredError}
320
+ */
321
+ adminPromoteTeam(teamId, options) {
322
+ return (0, exports.TeamAdministrationApiFp)(this.configuration).adminPromoteTeam(teamId, options).then((request) => request(this.axios, this.basePath));
323
+ }
324
+ /**
325
+ * Each removed member is told (notification) and loses any ownership of the team.
326
+ * @summary Remove members from a team
327
+ * @param {string} teamId
328
+ * @param {Array<string>} requestBody
329
+ * @param {*} [options] Override http request option.
330
+ * @throws {RequiredError}
331
+ */
332
+ adminRemoveTeamMembers(teamId, requestBody, options) {
333
+ return (0, exports.TeamAdministrationApiFp)(this.configuration).adminRemoveTeamMembers(teamId, requestBody, options).then((request) => request(this.axios, this.basePath));
334
+ }
335
+ /**
336
+ * ORGANISATION (managed by administrators) or COLLABORATIVE (created by a contributor, owned). A collaborative team with no owner left needs an administrator.
337
+ * @summary Kind and owners of every team
338
+ * @param {*} [options] Override http request option.
339
+ * @throws {RequiredError}
340
+ */
341
+ adminTeamKinds(options) {
342
+ return (0, exports.TeamAdministrationApiFp)(this.configuration).adminTeamKinds(options).then((request) => request(this.axios, this.basePath));
343
+ }
138
344
  }
139
345
  exports.TeamAdministrationApi = TeamAdministrationApi;