@openfilz-sdk/typescript-ee 1.14.4 → 1.14.6

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 (159) 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 +36 -3
  4. package/api/collaboration-controller-api.ts +12 -12
  5. package/api/directory-administration-api.ts +200 -0
  6. package/api/notifications-api.ts +8 -8
  7. package/api/team-administration-api.ts +221 -4
  8. package/api/teams-api.ts +1090 -0
  9. package/api/user-privacy-api.ts +4 -4
  10. package/api.ts +2 -0
  11. package/dist/api/collaboration-controller-api.d.ts +12 -12
  12. package/dist/api/collaboration-controller-api.js +12 -12
  13. package/dist/api/directory-administration-api.d.ts +99 -0
  14. package/dist/api/directory-administration-api.js +201 -0
  15. package/dist/api/notifications-api.d.ts +8 -8
  16. package/dist/api/notifications-api.js +8 -8
  17. package/dist/api/team-administration-api.d.ts +101 -4
  18. package/dist/api/team-administration-api.js +210 -4
  19. package/dist/api/teams-api.d.ts +499 -0
  20. package/dist/api/teams-api.js +1039 -0
  21. package/dist/api/user-privacy-api.d.ts +4 -4
  22. package/dist/api/user-privacy-api.js +4 -4
  23. package/dist/api.d.ts +2 -0
  24. package/dist/api.js +2 -0
  25. package/dist/esm/api/collaboration-controller-api.d.ts +12 -12
  26. package/dist/esm/api/collaboration-controller-api.js +12 -12
  27. package/dist/esm/api/directory-administration-api.d.ts +99 -0
  28. package/dist/esm/api/directory-administration-api.js +194 -0
  29. package/dist/esm/api/notifications-api.d.ts +8 -8
  30. package/dist/esm/api/notifications-api.js +8 -8
  31. package/dist/esm/api/team-administration-api.d.ts +101 -4
  32. package/dist/esm/api/team-administration-api.js +210 -4
  33. package/dist/esm/api/teams-api.d.ts +499 -0
  34. package/dist/esm/api/teams-api.js +1032 -0
  35. package/dist/esm/api/user-privacy-api.d.ts +4 -4
  36. package/dist/esm/api/user-privacy-api.js +4 -4
  37. package/dist/esm/api.d.ts +2 -0
  38. package/dist/esm/api.js +2 -0
  39. package/dist/esm/models/add-team-owner-request.d.ts +14 -0
  40. package/dist/esm/models/add-team-owner-request.js +14 -0
  41. package/dist/esm/models/create-collaborative-team-request.d.ts +14 -0
  42. package/dist/esm/models/create-collaborative-team-request.js +14 -0
  43. package/dist/esm/models/directory-hidden-request.d.ts +14 -0
  44. package/dist/esm/models/directory-hidden-request.js +14 -0
  45. package/dist/esm/models/enriched-audit-log.d.ts +7 -0
  46. package/dist/esm/models/enriched-audit-log.js +7 -0
  47. package/dist/esm/models/index.d.ts +14 -0
  48. package/dist/esm/models/index.js +14 -0
  49. package/dist/esm/models/invite-to-team-request.d.ts +14 -0
  50. package/dist/esm/models/invite-to-team-request.js +14 -0
  51. package/dist/esm/models/my-team.d.ts +23 -0
  52. package/dist/esm/models/my-team.js +17 -0
  53. package/dist/esm/models/notification-dto.d.ts +5 -0
  54. package/dist/esm/models/notification-dto.js +5 -0
  55. package/dist/esm/models/rename-team-request.d.ts +14 -0
  56. package/dist/esm/models/rename-team-request.js +14 -0
  57. package/dist/esm/models/search-by-audit-log-request.d.ts +7 -0
  58. package/dist/esm/models/search-by-audit-log-request.js +7 -0
  59. package/dist/esm/models/team-capabilities.d.ts +18 -0
  60. package/dist/esm/models/team-capabilities.js +14 -0
  61. package/dist/esm/models/team-details.d.ts +28 -0
  62. package/dist/esm/models/team-details.js +17 -0
  63. package/dist/esm/models/team-invitation-view.d.ts +20 -0
  64. package/dist/esm/models/team-invitation-view.js +14 -0
  65. package/dist/esm/models/team-invite-result.d.ts +23 -0
  66. package/dist/esm/models/team-invite-result.js +20 -0
  67. package/dist/esm/models/team-kind-view.d.ts +23 -0
  68. package/dist/esm/models/team-kind-view.js +17 -0
  69. package/dist/esm/models/team-owner-view.d.ts +16 -0
  70. package/dist/esm/models/team-owner-view.js +14 -0
  71. package/dist/esm/models/team-pending-invitee.d.ts +19 -0
  72. package/dist/esm/models/team-pending-invitee.js +14 -0
  73. package/dist/esm/models/team-person.d.ts +17 -0
  74. package/dist/esm/models/team-person.js +14 -0
  75. package/dist/esm/models/update-user-privacy-request.d.ts +3 -1
  76. package/dist/esm/models/user-privacy-dto.d.ts +8 -0
  77. package/dist/esm/models/user-privacy-dto.js +4 -1
  78. package/dist/models/add-team-owner-request.d.ts +14 -0
  79. package/dist/models/add-team-owner-request.js +15 -0
  80. package/dist/models/create-collaborative-team-request.d.ts +14 -0
  81. package/dist/models/create-collaborative-team-request.js +15 -0
  82. package/dist/models/directory-hidden-request.d.ts +14 -0
  83. package/dist/models/directory-hidden-request.js +15 -0
  84. package/dist/models/enriched-audit-log.d.ts +7 -0
  85. package/dist/models/enriched-audit-log.js +7 -0
  86. package/dist/models/index.d.ts +14 -0
  87. package/dist/models/index.js +14 -0
  88. package/dist/models/invite-to-team-request.d.ts +14 -0
  89. package/dist/models/invite-to-team-request.js +15 -0
  90. package/dist/models/my-team.d.ts +23 -0
  91. package/dist/models/my-team.js +20 -0
  92. package/dist/models/notification-dto.d.ts +5 -0
  93. package/dist/models/notification-dto.js +5 -0
  94. package/dist/models/rename-team-request.d.ts +14 -0
  95. package/dist/models/rename-team-request.js +15 -0
  96. package/dist/models/search-by-audit-log-request.d.ts +7 -0
  97. package/dist/models/search-by-audit-log-request.js +7 -0
  98. package/dist/models/team-capabilities.d.ts +18 -0
  99. package/dist/models/team-capabilities.js +15 -0
  100. package/dist/models/team-details.d.ts +28 -0
  101. package/dist/models/team-details.js +20 -0
  102. package/dist/models/team-invitation-view.d.ts +20 -0
  103. package/dist/models/team-invitation-view.js +15 -0
  104. package/dist/models/team-invite-result.d.ts +23 -0
  105. package/dist/models/team-invite-result.js +23 -0
  106. package/dist/models/team-kind-view.d.ts +23 -0
  107. package/dist/models/team-kind-view.js +20 -0
  108. package/dist/models/team-owner-view.d.ts +16 -0
  109. package/dist/models/team-owner-view.js +15 -0
  110. package/dist/models/team-pending-invitee.d.ts +19 -0
  111. package/dist/models/team-pending-invitee.js +15 -0
  112. package/dist/models/team-person.d.ts +17 -0
  113. package/dist/models/team-person.js +15 -0
  114. package/dist/models/update-user-privacy-request.d.ts +3 -1
  115. package/dist/models/user-privacy-dto.d.ts +8 -0
  116. package/dist/models/user-privacy-dto.js +5 -0
  117. package/docs/AddTeamOwnerRequest.md +20 -0
  118. package/docs/CollaborationControllerApi.md +3 -3
  119. package/docs/CreateCollaborativeTeamRequest.md +20 -0
  120. package/docs/DirectoryAdministrationApi.md +107 -0
  121. package/docs/DirectoryHiddenRequest.md +20 -0
  122. package/docs/InviteToTeamRequest.md +20 -0
  123. package/docs/MyTeam.md +28 -0
  124. package/docs/NotificationsApi.md +2 -2
  125. package/docs/RenameTeamRequest.md +20 -0
  126. package/docs/TeamAdministrationApi.md +153 -1
  127. package/docs/TeamCapabilities.md +28 -0
  128. package/docs/TeamDetails.md +34 -0
  129. package/docs/TeamInvitationView.md +32 -0
  130. package/docs/TeamInviteResult.md +22 -0
  131. package/docs/TeamKindView.md +26 -0
  132. package/docs/TeamOwnerView.md +24 -0
  133. package/docs/TeamPendingInvitee.md +30 -0
  134. package/docs/TeamPerson.md +26 -0
  135. package/docs/TeamsApi.md +724 -0
  136. package/docs/UpdateUserPrivacyRequest.md +5 -1
  137. package/docs/UserPrivacyApi.md +1 -1
  138. package/docs/UserPrivacyDTO.md +6 -0
  139. package/models/add-team-owner-request.ts +20 -0
  140. package/models/create-collaborative-team-request.ts +20 -0
  141. package/models/directory-hidden-request.ts +20 -0
  142. package/models/enriched-audit-log.ts +7 -0
  143. package/models/index.ts +14 -0
  144. package/models/invite-to-team-request.ts +20 -0
  145. package/models/my-team.ts +32 -0
  146. package/models/notification-dto.ts +5 -0
  147. package/models/rename-team-request.ts +20 -0
  148. package/models/search-by-audit-log-request.ts +7 -0
  149. package/models/team-capabilities.ts +24 -0
  150. package/models/team-details.ts +41 -0
  151. package/models/team-invitation-view.ts +26 -0
  152. package/models/team-invite-result.ts +32 -0
  153. package/models/team-kind-view.ts +34 -0
  154. package/models/team-owner-view.ts +22 -0
  155. package/models/team-pending-invitee.ts +25 -0
  156. package/models/team-person.ts +23 -0
  157. package/models/update-user-privacy-request.ts +3 -1
  158. package/models/user-privacy-dto.ts +11 -0
  159. package/package.json +1 -1
@@ -0,0 +1,1032 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * openfilz-api
5
+ * API for Document Management System
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * TeamsApi - axios parameter creator
31
+ */
32
+ export const TeamsApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ * 410 when the invitation was answered, cancelled or expired; 409 when the sharing policy refuses the membership.
36
+ * @summary Join the team
37
+ * @param {string} invitationId
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ acceptTeamInvitation: (invitationId_1, ...args_1) => __awaiter(this, [invitationId_1, ...args_1], void 0, function* (invitationId, options = {}) {
42
+ // verify required parameter 'invitationId' is not null or undefined
43
+ assertParamExists('acceptTeamInvitation', 'invitationId', invitationId);
44
+ const localVarPath = `/api/v1/users/me/team-invitations/{invitationId}/accept`
45
+ .replace('{invitationId}', encodeURIComponent(String(invitationId)));
46
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
+ let baseOptions;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ }
52
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
53
+ const localVarHeaderParameter = {};
54
+ const localVarQueryParameter = {};
55
+ // authentication keycloak_auth required
56
+ // http bearer authentication required
57
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
58
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
59
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
60
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
61
+ return {
62
+ url: toPathString(localVarUrlObj),
63
+ options: localVarRequestOptions,
64
+ };
65
+ }),
66
+ /**
67
+ *
68
+ * @summary Make a licensed member a co-owner of a collaborative team
69
+ * @param {string} teamId
70
+ * @param {AddTeamOwnerRequest} addTeamOwnerRequest
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ addTeamOwner: (teamId_1, addTeamOwnerRequest_1, ...args_1) => __awaiter(this, [teamId_1, addTeamOwnerRequest_1, ...args_1], void 0, function* (teamId, addTeamOwnerRequest, options = {}) {
75
+ // verify required parameter 'teamId' is not null or undefined
76
+ assertParamExists('addTeamOwner', 'teamId', teamId);
77
+ // verify required parameter 'addTeamOwnerRequest' is not null or undefined
78
+ assertParamExists('addTeamOwner', 'addTeamOwnerRequest', addTeamOwnerRequest);
79
+ const localVarPath = `/api/v1/teams/{teamId}/owners`
80
+ .replace('{teamId}', encodeURIComponent(String(teamId)));
81
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
82
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
83
+ let baseOptions;
84
+ if (configuration) {
85
+ baseOptions = configuration.baseOptions;
86
+ }
87
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
88
+ const localVarHeaderParameter = {};
89
+ const localVarQueryParameter = {};
90
+ // authentication keycloak_auth required
91
+ // http bearer authentication required
92
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
93
+ localVarHeaderParameter['Content-Type'] = 'application/json';
94
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
95
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
96
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
97
+ localVarRequestOptions.data = serializeDataIfNeeded(addTeamOwnerRequest, localVarRequestOptions, configuration);
98
+ return {
99
+ url: toPathString(localVarUrlObj),
100
+ options: localVarRequestOptions,
101
+ };
102
+ }),
103
+ /**
104
+ *
105
+ * @summary Cancel a pending invitation
106
+ * @param {string} teamId
107
+ * @param {string} invitationId
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ cancelTeamInvitation: (teamId_1, invitationId_1, ...args_1) => __awaiter(this, [teamId_1, invitationId_1, ...args_1], void 0, function* (teamId, invitationId, options = {}) {
112
+ // verify required parameter 'teamId' is not null or undefined
113
+ assertParamExists('cancelTeamInvitation', 'teamId', teamId);
114
+ // verify required parameter 'invitationId' is not null or undefined
115
+ assertParamExists('cancelTeamInvitation', 'invitationId', invitationId);
116
+ const localVarPath = `/api/v1/teams/{teamId}/invitations/{invitationId}`
117
+ .replace('{teamId}', encodeURIComponent(String(teamId)))
118
+ .replace('{invitationId}', encodeURIComponent(String(invitationId)));
119
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
120
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
121
+ let baseOptions;
122
+ if (configuration) {
123
+ baseOptions = configuration.baseOptions;
124
+ }
125
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
126
+ const localVarHeaderParameter = {};
127
+ const localVarQueryParameter = {};
128
+ // authentication keycloak_auth required
129
+ // http bearer authentication required
130
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
131
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
132
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
134
+ return {
135
+ url: toPathString(localVarUrlObj),
136
+ options: localVarRequestOptions,
137
+ };
138
+ }),
139
+ /**
140
+ * 404 unless openfilz.teams.user-managed is on; LICENSED contributors only; 409 when the name is taken or the caller already owns openfilz.teams.max-owned-per-user teams.
141
+ * @summary Create a collaborative team (I become its owner)
142
+ * @param {CreateCollaborativeTeamRequest} createCollaborativeTeamRequest
143
+ * @param {*} [options] Override http request option.
144
+ * @throws {RequiredError}
145
+ */
146
+ createCollaborativeTeam: (createCollaborativeTeamRequest_1, ...args_1) => __awaiter(this, [createCollaborativeTeamRequest_1, ...args_1], void 0, function* (createCollaborativeTeamRequest, options = {}) {
147
+ // verify required parameter 'createCollaborativeTeamRequest' is not null or undefined
148
+ assertParamExists('createCollaborativeTeam', 'createCollaborativeTeamRequest', createCollaborativeTeamRequest);
149
+ const localVarPath = `/api/v1/teams`;
150
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
151
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
152
+ let baseOptions;
153
+ if (configuration) {
154
+ baseOptions = configuration.baseOptions;
155
+ }
156
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
157
+ const localVarHeaderParameter = {};
158
+ const localVarQueryParameter = {};
159
+ // authentication keycloak_auth required
160
+ // http bearer authentication required
161
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
162
+ localVarHeaderParameter['Content-Type'] = 'application/json';
163
+ localVarHeaderParameter['Accept'] = '*/*';
164
+ 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
+ localVarRequestOptions.data = serializeDataIfNeeded(createCollaborativeTeamRequest, localVarRequestOptions, configuration);
168
+ return {
169
+ url: toPathString(localVarUrlObj),
170
+ options: localVarRequestOptions,
171
+ };
172
+ }),
173
+ /**
174
+ *
175
+ * @summary Decline the invitation
176
+ * @param {string} invitationId
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ */
180
+ declineTeamInvitation: (invitationId_1, ...args_1) => __awaiter(this, [invitationId_1, ...args_1], void 0, function* (invitationId, options = {}) {
181
+ // verify required parameter 'invitationId' is not null or undefined
182
+ assertParamExists('declineTeamInvitation', 'invitationId', invitationId);
183
+ const localVarPath = `/api/v1/users/me/team-invitations/{invitationId}/decline`
184
+ .replace('{invitationId}', encodeURIComponent(String(invitationId)));
185
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
186
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
187
+ let baseOptions;
188
+ if (configuration) {
189
+ baseOptions = configuration.baseOptions;
190
+ }
191
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
192
+ const localVarHeaderParameter = {};
193
+ const localVarQueryParameter = {};
194
+ // authentication keycloak_auth required
195
+ // http bearer authentication required
196
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
197
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
198
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
199
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
200
+ return {
201
+ url: toPathString(localVarUrlObj),
202
+ options: localVarRequestOptions,
203
+ };
204
+ }),
205
+ /**
206
+ *
207
+ * @summary Delete a team (owner of a collaborative team, or administrator)
208
+ * @param {string} teamId
209
+ * @param {*} [options] Override http request option.
210
+ * @throws {RequiredError}
211
+ */
212
+ deleteCollaborativeTeam: (teamId_1, ...args_1) => __awaiter(this, [teamId_1, ...args_1], void 0, function* (teamId, options = {}) {
213
+ // verify required parameter 'teamId' is not null or undefined
214
+ assertParamExists('deleteCollaborativeTeam', 'teamId', teamId);
215
+ const localVarPath = `/api/v1/teams/{teamId}`
216
+ .replace('{teamId}', encodeURIComponent(String(teamId)));
217
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
218
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
219
+ let baseOptions;
220
+ if (configuration) {
221
+ baseOptions = configuration.baseOptions;
222
+ }
223
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
224
+ const localVarHeaderParameter = {};
225
+ const localVarQueryParameter = {};
226
+ // authentication keycloak_auth required
227
+ // http bearer authentication required
228
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
229
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
230
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
231
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
232
+ return {
233
+ url: toPathString(localVarUrlObj),
234
+ options: localVarRequestOptions,
235
+ };
236
+ }),
237
+ /**
238
+ * One outcome per address: INVITED, ALREADY_MEMBER, ALREADY_INVITED, NOT_FOUND, BLOCKED_BY_POLICY. Membership starts when the invitee accepts. At most 50 addresses per call.
239
+ * @summary Invite people by exact e-mail address
240
+ * @param {string} teamId
241
+ * @param {InviteToTeamRequest} inviteToTeamRequest
242
+ * @param {*} [options] Override http request option.
243
+ * @throws {RequiredError}
244
+ */
245
+ inviteToTeam: (teamId_1, inviteToTeamRequest_1, ...args_1) => __awaiter(this, [teamId_1, inviteToTeamRequest_1, ...args_1], void 0, function* (teamId, inviteToTeamRequest, options = {}) {
246
+ // verify required parameter 'teamId' is not null or undefined
247
+ assertParamExists('inviteToTeam', 'teamId', teamId);
248
+ // verify required parameter 'inviteToTeamRequest' is not null or undefined
249
+ assertParamExists('inviteToTeam', 'inviteToTeamRequest', inviteToTeamRequest);
250
+ const localVarPath = `/api/v1/teams/{teamId}/invitations`
251
+ .replace('{teamId}', encodeURIComponent(String(teamId)));
252
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
253
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
254
+ let baseOptions;
255
+ if (configuration) {
256
+ baseOptions = configuration.baseOptions;
257
+ }
258
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
259
+ const localVarHeaderParameter = {};
260
+ const localVarQueryParameter = {};
261
+ // authentication keycloak_auth required
262
+ // http bearer authentication required
263
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
264
+ localVarHeaderParameter['Content-Type'] = 'application/json';
265
+ localVarHeaderParameter['Accept'] = '*/*';
266
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
267
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
268
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
269
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteToTeamRequest, localVarRequestOptions, configuration);
270
+ return {
271
+ url: toPathString(localVarUrlObj),
272
+ options: localVarRequestOptions,
273
+ };
274
+ }),
275
+ /**
276
+ * 403 for an organisation team (an administrator removes members); 409 for its last owner.
277
+ * @summary Leave a collaborative team
278
+ * @param {string} teamId
279
+ * @param {*} [options] Override http request option.
280
+ * @throws {RequiredError}
281
+ */
282
+ leaveTeam: (teamId_1, ...args_1) => __awaiter(this, [teamId_1, ...args_1], void 0, function* (teamId, options = {}) {
283
+ // verify required parameter 'teamId' is not null or undefined
284
+ assertParamExists('leaveTeam', 'teamId', teamId);
285
+ const localVarPath = `/api/v1/users/me/teams/{teamId}/leave`
286
+ .replace('{teamId}', encodeURIComponent(String(teamId)));
287
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
288
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
289
+ let baseOptions;
290
+ if (configuration) {
291
+ baseOptions = configuration.baseOptions;
292
+ }
293
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
294
+ const localVarHeaderParameter = {};
295
+ const localVarQueryParameter = {};
296
+ // authentication keycloak_auth required
297
+ // http bearer authentication required
298
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
299
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
300
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
301
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
302
+ return {
303
+ url: toPathString(localVarUrlObj),
304
+ options: localVarRequestOptions,
305
+ };
306
+ }),
307
+ /**
308
+ *
309
+ * @summary My pending team invitations
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ myTeamInvitations: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
314
+ const localVarPath = `/api/v1/users/me/team-invitations`;
315
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
316
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
317
+ let baseOptions;
318
+ if (configuration) {
319
+ baseOptions = configuration.baseOptions;
320
+ }
321
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
322
+ const localVarHeaderParameter = {};
323
+ const localVarQueryParameter = {};
324
+ // authentication keycloak_auth required
325
+ // http bearer authentication required
326
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
327
+ localVarHeaderParameter['Accept'] = '*/*';
328
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
329
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
330
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
331
+ return {
332
+ url: toPathString(localVarUrlObj),
333
+ options: localVarRequestOptions,
334
+ };
335
+ }),
336
+ /**
337
+ *
338
+ * @summary The teams I belong to, with their kind and whether I own them
339
+ * @param {*} [options] Override http request option.
340
+ * @throws {RequiredError}
341
+ */
342
+ myTeams: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
343
+ const localVarPath = `/api/v1/teams/mine`;
344
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
345
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
346
+ let baseOptions;
347
+ if (configuration) {
348
+ baseOptions = configuration.baseOptions;
349
+ }
350
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
351
+ const localVarHeaderParameter = {};
352
+ const localVarQueryParameter = {};
353
+ // authentication keycloak_auth required
354
+ // http bearer authentication required
355
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
356
+ localVarHeaderParameter['Accept'] = '*/*';
357
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
358
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
359
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
360
+ return {
361
+ url: toPathString(localVarUrlObj),
362
+ options: localVarRequestOptions,
363
+ };
364
+ }),
365
+ /**
366
+ *
367
+ * @summary Remove a member (the last owner cannot be removed)
368
+ * @param {string} teamId
369
+ * @param {string} userId
370
+ * @param {*} [options] Override http request option.
371
+ * @throws {RequiredError}
372
+ */
373
+ removeTeamMember: (teamId_1, userId_1, ...args_1) => __awaiter(this, [teamId_1, userId_1, ...args_1], void 0, function* (teamId, userId, options = {}) {
374
+ // verify required parameter 'teamId' is not null or undefined
375
+ assertParamExists('removeTeamMember', 'teamId', teamId);
376
+ // verify required parameter 'userId' is not null or undefined
377
+ assertParamExists('removeTeamMember', 'userId', userId);
378
+ const localVarPath = `/api/v1/teams/{teamId}/members/{userId}`
379
+ .replace('{teamId}', encodeURIComponent(String(teamId)))
380
+ .replace('{userId}', encodeURIComponent(String(userId)));
381
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
382
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
383
+ let baseOptions;
384
+ if (configuration) {
385
+ baseOptions = configuration.baseOptions;
386
+ }
387
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
388
+ const localVarHeaderParameter = {};
389
+ const localVarQueryParameter = {};
390
+ // authentication keycloak_auth required
391
+ // http bearer authentication required
392
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
393
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
394
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
395
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
396
+ return {
397
+ url: toPathString(localVarUrlObj),
398
+ options: localVarRequestOptions,
399
+ };
400
+ }),
401
+ /**
402
+ *
403
+ * @summary Rename a team (owner of a collaborative team, or administrator)
404
+ * @param {string} teamId
405
+ * @param {RenameTeamRequest} renameTeamRequest
406
+ * @param {*} [options] Override http request option.
407
+ * @throws {RequiredError}
408
+ */
409
+ renameTeam: (teamId_1, renameTeamRequest_1, ...args_1) => __awaiter(this, [teamId_1, renameTeamRequest_1, ...args_1], void 0, function* (teamId, renameTeamRequest, options = {}) {
410
+ // verify required parameter 'teamId' is not null or undefined
411
+ assertParamExists('renameTeam', 'teamId', teamId);
412
+ // verify required parameter 'renameTeamRequest' is not null or undefined
413
+ assertParamExists('renameTeam', 'renameTeamRequest', renameTeamRequest);
414
+ const localVarPath = `/api/v1/teams/{teamId}`
415
+ .replace('{teamId}', encodeURIComponent(String(teamId)));
416
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
417
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
418
+ let baseOptions;
419
+ if (configuration) {
420
+ baseOptions = configuration.baseOptions;
421
+ }
422
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
423
+ const localVarHeaderParameter = {};
424
+ const localVarQueryParameter = {};
425
+ // authentication keycloak_auth required
426
+ // http bearer authentication required
427
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
428
+ localVarHeaderParameter['Content-Type'] = 'application/json';
429
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
430
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
431
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
432
+ localVarRequestOptions.data = serializeDataIfNeeded(renameTeamRequest, localVarRequestOptions, configuration);
433
+ return {
434
+ url: toPathString(localVarUrlObj),
435
+ options: localVarRequestOptions,
436
+ };
437
+ }),
438
+ /**
439
+ *
440
+ * @summary May I create teams, and how many do I own
441
+ * @param {*} [options] Override http request option.
442
+ * @throws {RequiredError}
443
+ */
444
+ teamCapabilities: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
445
+ const localVarPath = `/api/v1/teams/capabilities`;
446
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
447
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
448
+ let baseOptions;
449
+ if (configuration) {
450
+ baseOptions = configuration.baseOptions;
451
+ }
452
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
453
+ const localVarHeaderParameter = {};
454
+ const localVarQueryParameter = {};
455
+ // authentication keycloak_auth required
456
+ // http bearer authentication required
457
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
458
+ localVarHeaderParameter['Accept'] = '*/*';
459
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
460
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
461
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
462
+ return {
463
+ url: toPathString(localVarUrlObj),
464
+ options: localVarRequestOptions,
465
+ };
466
+ }),
467
+ /**
468
+ * LICENSED members and administrators. 403 for a FREE caller (who never gets other users), 404 for anyone else.
469
+ * @summary Members, owners and (for its managers) pending invitations of a team
470
+ * @param {string} teamId
471
+ * @param {*} [options] Override http request option.
472
+ * @throws {RequiredError}
473
+ */
474
+ teamDetails: (teamId_1, ...args_1) => __awaiter(this, [teamId_1, ...args_1], void 0, function* (teamId, options = {}) {
475
+ // verify required parameter 'teamId' is not null or undefined
476
+ assertParamExists('teamDetails', 'teamId', teamId);
477
+ const localVarPath = `/api/v1/teams/{teamId}`
478
+ .replace('{teamId}', encodeURIComponent(String(teamId)));
479
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
480
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
481
+ let baseOptions;
482
+ if (configuration) {
483
+ baseOptions = configuration.baseOptions;
484
+ }
485
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
486
+ const localVarHeaderParameter = {};
487
+ const localVarQueryParameter = {};
488
+ // authentication keycloak_auth required
489
+ // http bearer authentication required
490
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
491
+ localVarHeaderParameter['Accept'] = '*/*';
492
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
493
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
494
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
495
+ return {
496
+ url: toPathString(localVarUrlObj),
497
+ options: localVarRequestOptions,
498
+ };
499
+ }),
500
+ };
501
+ };
502
+ /**
503
+ * TeamsApi - functional programming interface
504
+ */
505
+ export const TeamsApiFp = function (configuration) {
506
+ const localVarAxiosParamCreator = TeamsApiAxiosParamCreator(configuration);
507
+ return {
508
+ /**
509
+ * 410 when the invitation was answered, cancelled or expired; 409 when the sharing policy refuses the membership.
510
+ * @summary Join the team
511
+ * @param {string} invitationId
512
+ * @param {*} [options] Override http request option.
513
+ * @throws {RequiredError}
514
+ */
515
+ acceptTeamInvitation(invitationId, options) {
516
+ return __awaiter(this, void 0, void 0, function* () {
517
+ var _a, _b, _c;
518
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.acceptTeamInvitation(invitationId, options);
519
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
520
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamsApi.acceptTeamInvitation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
521
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
522
+ });
523
+ },
524
+ /**
525
+ *
526
+ * @summary Make a licensed member a co-owner of a collaborative team
527
+ * @param {string} teamId
528
+ * @param {AddTeamOwnerRequest} addTeamOwnerRequest
529
+ * @param {*} [options] Override http request option.
530
+ * @throws {RequiredError}
531
+ */
532
+ addTeamOwner(teamId, addTeamOwnerRequest, options) {
533
+ return __awaiter(this, void 0, void 0, function* () {
534
+ var _a, _b, _c;
535
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.addTeamOwner(teamId, addTeamOwnerRequest, options);
536
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
537
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamsApi.addTeamOwner']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
538
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
539
+ });
540
+ },
541
+ /**
542
+ *
543
+ * @summary Cancel a pending invitation
544
+ * @param {string} teamId
545
+ * @param {string} invitationId
546
+ * @param {*} [options] Override http request option.
547
+ * @throws {RequiredError}
548
+ */
549
+ cancelTeamInvitation(teamId, invitationId, options) {
550
+ return __awaiter(this, void 0, void 0, function* () {
551
+ var _a, _b, _c;
552
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelTeamInvitation(teamId, invitationId, options);
553
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
554
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamsApi.cancelTeamInvitation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
555
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
556
+ });
557
+ },
558
+ /**
559
+ * 404 unless openfilz.teams.user-managed is on; LICENSED contributors only; 409 when the name is taken or the caller already owns openfilz.teams.max-owned-per-user teams.
560
+ * @summary Create a collaborative team (I become its owner)
561
+ * @param {CreateCollaborativeTeamRequest} createCollaborativeTeamRequest
562
+ * @param {*} [options] Override http request option.
563
+ * @throws {RequiredError}
564
+ */
565
+ createCollaborativeTeam(createCollaborativeTeamRequest, options) {
566
+ return __awaiter(this, void 0, void 0, function* () {
567
+ var _a, _b, _c;
568
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createCollaborativeTeam(createCollaborativeTeamRequest, options);
569
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
570
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamsApi.createCollaborativeTeam']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
571
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
572
+ });
573
+ },
574
+ /**
575
+ *
576
+ * @summary Decline the invitation
577
+ * @param {string} invitationId
578
+ * @param {*} [options] Override http request option.
579
+ * @throws {RequiredError}
580
+ */
581
+ declineTeamInvitation(invitationId, options) {
582
+ return __awaiter(this, void 0, void 0, function* () {
583
+ var _a, _b, _c;
584
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.declineTeamInvitation(invitationId, options);
585
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
586
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamsApi.declineTeamInvitation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
587
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
588
+ });
589
+ },
590
+ /**
591
+ *
592
+ * @summary Delete a team (owner of a collaborative team, or administrator)
593
+ * @param {string} teamId
594
+ * @param {*} [options] Override http request option.
595
+ * @throws {RequiredError}
596
+ */
597
+ deleteCollaborativeTeam(teamId, options) {
598
+ return __awaiter(this, void 0, void 0, function* () {
599
+ var _a, _b, _c;
600
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteCollaborativeTeam(teamId, options);
601
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
602
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamsApi.deleteCollaborativeTeam']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
603
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
604
+ });
605
+ },
606
+ /**
607
+ * One outcome per address: INVITED, ALREADY_MEMBER, ALREADY_INVITED, NOT_FOUND, BLOCKED_BY_POLICY. Membership starts when the invitee accepts. At most 50 addresses per call.
608
+ * @summary Invite people by exact e-mail address
609
+ * @param {string} teamId
610
+ * @param {InviteToTeamRequest} inviteToTeamRequest
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ */
614
+ inviteToTeam(teamId, inviteToTeamRequest, options) {
615
+ return __awaiter(this, void 0, void 0, function* () {
616
+ var _a, _b, _c;
617
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.inviteToTeam(teamId, inviteToTeamRequest, options);
618
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
619
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamsApi.inviteToTeam']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
620
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
621
+ });
622
+ },
623
+ /**
624
+ * 403 for an organisation team (an administrator removes members); 409 for its last owner.
625
+ * @summary Leave a collaborative team
626
+ * @param {string} teamId
627
+ * @param {*} [options] Override http request option.
628
+ * @throws {RequiredError}
629
+ */
630
+ leaveTeam(teamId, options) {
631
+ return __awaiter(this, void 0, void 0, function* () {
632
+ var _a, _b, _c;
633
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.leaveTeam(teamId, options);
634
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
635
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamsApi.leaveTeam']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
636
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
637
+ });
638
+ },
639
+ /**
640
+ *
641
+ * @summary My pending team invitations
642
+ * @param {*} [options] Override http request option.
643
+ * @throws {RequiredError}
644
+ */
645
+ myTeamInvitations(options) {
646
+ return __awaiter(this, void 0, void 0, function* () {
647
+ var _a, _b, _c;
648
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.myTeamInvitations(options);
649
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
650
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamsApi.myTeamInvitations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
651
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
652
+ });
653
+ },
654
+ /**
655
+ *
656
+ * @summary The teams I belong to, with their kind and whether I own them
657
+ * @param {*} [options] Override http request option.
658
+ * @throws {RequiredError}
659
+ */
660
+ myTeams(options) {
661
+ return __awaiter(this, void 0, void 0, function* () {
662
+ var _a, _b, _c;
663
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.myTeams(options);
664
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
665
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamsApi.myTeams']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
666
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
667
+ });
668
+ },
669
+ /**
670
+ *
671
+ * @summary Remove a member (the last owner cannot be removed)
672
+ * @param {string} teamId
673
+ * @param {string} userId
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ */
677
+ removeTeamMember(teamId, userId, options) {
678
+ return __awaiter(this, void 0, void 0, function* () {
679
+ var _a, _b, _c;
680
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.removeTeamMember(teamId, userId, options);
681
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
682
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamsApi.removeTeamMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
683
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
684
+ });
685
+ },
686
+ /**
687
+ *
688
+ * @summary Rename a team (owner of a collaborative team, or administrator)
689
+ * @param {string} teamId
690
+ * @param {RenameTeamRequest} renameTeamRequest
691
+ * @param {*} [options] Override http request option.
692
+ * @throws {RequiredError}
693
+ */
694
+ renameTeam(teamId, renameTeamRequest, options) {
695
+ return __awaiter(this, void 0, void 0, function* () {
696
+ var _a, _b, _c;
697
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.renameTeam(teamId, renameTeamRequest, options);
698
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
699
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamsApi.renameTeam']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
700
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
701
+ });
702
+ },
703
+ /**
704
+ *
705
+ * @summary May I create teams, and how many do I own
706
+ * @param {*} [options] Override http request option.
707
+ * @throws {RequiredError}
708
+ */
709
+ teamCapabilities(options) {
710
+ return __awaiter(this, void 0, void 0, function* () {
711
+ var _a, _b, _c;
712
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.teamCapabilities(options);
713
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
714
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamsApi.teamCapabilities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
715
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
716
+ });
717
+ },
718
+ /**
719
+ * LICENSED members and administrators. 403 for a FREE caller (who never gets other users), 404 for anyone else.
720
+ * @summary Members, owners and (for its managers) pending invitations of a team
721
+ * @param {string} teamId
722
+ * @param {*} [options] Override http request option.
723
+ * @throws {RequiredError}
724
+ */
725
+ teamDetails(teamId, options) {
726
+ return __awaiter(this, void 0, void 0, function* () {
727
+ var _a, _b, _c;
728
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.teamDetails(teamId, options);
729
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
730
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['TeamsApi.teamDetails']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
731
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
732
+ });
733
+ },
734
+ };
735
+ };
736
+ /**
737
+ * TeamsApi - factory interface
738
+ */
739
+ export const TeamsApiFactory = function (configuration, basePath, axios) {
740
+ const localVarFp = TeamsApiFp(configuration);
741
+ return {
742
+ /**
743
+ * 410 when the invitation was answered, cancelled or expired; 409 when the sharing policy refuses the membership.
744
+ * @summary Join the team
745
+ * @param {string} invitationId
746
+ * @param {*} [options] Override http request option.
747
+ * @throws {RequiredError}
748
+ */
749
+ acceptTeamInvitation(invitationId, options) {
750
+ return localVarFp.acceptTeamInvitation(invitationId, options).then((request) => request(axios, basePath));
751
+ },
752
+ /**
753
+ *
754
+ * @summary Make a licensed member a co-owner of a collaborative team
755
+ * @param {string} teamId
756
+ * @param {AddTeamOwnerRequest} addTeamOwnerRequest
757
+ * @param {*} [options] Override http request option.
758
+ * @throws {RequiredError}
759
+ */
760
+ addTeamOwner(teamId, addTeamOwnerRequest, options) {
761
+ return localVarFp.addTeamOwner(teamId, addTeamOwnerRequest, options).then((request) => request(axios, basePath));
762
+ },
763
+ /**
764
+ *
765
+ * @summary Cancel a pending invitation
766
+ * @param {string} teamId
767
+ * @param {string} invitationId
768
+ * @param {*} [options] Override http request option.
769
+ * @throws {RequiredError}
770
+ */
771
+ cancelTeamInvitation(teamId, invitationId, options) {
772
+ return localVarFp.cancelTeamInvitation(teamId, invitationId, options).then((request) => request(axios, basePath));
773
+ },
774
+ /**
775
+ * 404 unless openfilz.teams.user-managed is on; LICENSED contributors only; 409 when the name is taken or the caller already owns openfilz.teams.max-owned-per-user teams.
776
+ * @summary Create a collaborative team (I become its owner)
777
+ * @param {CreateCollaborativeTeamRequest} createCollaborativeTeamRequest
778
+ * @param {*} [options] Override http request option.
779
+ * @throws {RequiredError}
780
+ */
781
+ createCollaborativeTeam(createCollaborativeTeamRequest, options) {
782
+ return localVarFp.createCollaborativeTeam(createCollaborativeTeamRequest, options).then((request) => request(axios, basePath));
783
+ },
784
+ /**
785
+ *
786
+ * @summary Decline the invitation
787
+ * @param {string} invitationId
788
+ * @param {*} [options] Override http request option.
789
+ * @throws {RequiredError}
790
+ */
791
+ declineTeamInvitation(invitationId, options) {
792
+ return localVarFp.declineTeamInvitation(invitationId, options).then((request) => request(axios, basePath));
793
+ },
794
+ /**
795
+ *
796
+ * @summary Delete a team (owner of a collaborative team, or administrator)
797
+ * @param {string} teamId
798
+ * @param {*} [options] Override http request option.
799
+ * @throws {RequiredError}
800
+ */
801
+ deleteCollaborativeTeam(teamId, options) {
802
+ return localVarFp.deleteCollaborativeTeam(teamId, options).then((request) => request(axios, basePath));
803
+ },
804
+ /**
805
+ * One outcome per address: INVITED, ALREADY_MEMBER, ALREADY_INVITED, NOT_FOUND, BLOCKED_BY_POLICY. Membership starts when the invitee accepts. At most 50 addresses per call.
806
+ * @summary Invite people by exact e-mail address
807
+ * @param {string} teamId
808
+ * @param {InviteToTeamRequest} inviteToTeamRequest
809
+ * @param {*} [options] Override http request option.
810
+ * @throws {RequiredError}
811
+ */
812
+ inviteToTeam(teamId, inviteToTeamRequest, options) {
813
+ return localVarFp.inviteToTeam(teamId, inviteToTeamRequest, options).then((request) => request(axios, basePath));
814
+ },
815
+ /**
816
+ * 403 for an organisation team (an administrator removes members); 409 for its last owner.
817
+ * @summary Leave a collaborative team
818
+ * @param {string} teamId
819
+ * @param {*} [options] Override http request option.
820
+ * @throws {RequiredError}
821
+ */
822
+ leaveTeam(teamId, options) {
823
+ return localVarFp.leaveTeam(teamId, options).then((request) => request(axios, basePath));
824
+ },
825
+ /**
826
+ *
827
+ * @summary My pending team invitations
828
+ * @param {*} [options] Override http request option.
829
+ * @throws {RequiredError}
830
+ */
831
+ myTeamInvitations(options) {
832
+ return localVarFp.myTeamInvitations(options).then((request) => request(axios, basePath));
833
+ },
834
+ /**
835
+ *
836
+ * @summary The teams I belong to, with their kind and whether I own them
837
+ * @param {*} [options] Override http request option.
838
+ * @throws {RequiredError}
839
+ */
840
+ myTeams(options) {
841
+ return localVarFp.myTeams(options).then((request) => request(axios, basePath));
842
+ },
843
+ /**
844
+ *
845
+ * @summary Remove a member (the last owner cannot be removed)
846
+ * @param {string} teamId
847
+ * @param {string} userId
848
+ * @param {*} [options] Override http request option.
849
+ * @throws {RequiredError}
850
+ */
851
+ removeTeamMember(teamId, userId, options) {
852
+ return localVarFp.removeTeamMember(teamId, userId, options).then((request) => request(axios, basePath));
853
+ },
854
+ /**
855
+ *
856
+ * @summary Rename a team (owner of a collaborative team, or administrator)
857
+ * @param {string} teamId
858
+ * @param {RenameTeamRequest} renameTeamRequest
859
+ * @param {*} [options] Override http request option.
860
+ * @throws {RequiredError}
861
+ */
862
+ renameTeam(teamId, renameTeamRequest, options) {
863
+ return localVarFp.renameTeam(teamId, renameTeamRequest, options).then((request) => request(axios, basePath));
864
+ },
865
+ /**
866
+ *
867
+ * @summary May I create teams, and how many do I own
868
+ * @param {*} [options] Override http request option.
869
+ * @throws {RequiredError}
870
+ */
871
+ teamCapabilities(options) {
872
+ return localVarFp.teamCapabilities(options).then((request) => request(axios, basePath));
873
+ },
874
+ /**
875
+ * LICENSED members and administrators. 403 for a FREE caller (who never gets other users), 404 for anyone else.
876
+ * @summary Members, owners and (for its managers) pending invitations of a team
877
+ * @param {string} teamId
878
+ * @param {*} [options] Override http request option.
879
+ * @throws {RequiredError}
880
+ */
881
+ teamDetails(teamId, options) {
882
+ return localVarFp.teamDetails(teamId, options).then((request) => request(axios, basePath));
883
+ },
884
+ };
885
+ };
886
+ /**
887
+ * TeamsApi - object-oriented interface
888
+ */
889
+ export class TeamsApi extends BaseAPI {
890
+ /**
891
+ * 410 when the invitation was answered, cancelled or expired; 409 when the sharing policy refuses the membership.
892
+ * @summary Join the team
893
+ * @param {string} invitationId
894
+ * @param {*} [options] Override http request option.
895
+ * @throws {RequiredError}
896
+ */
897
+ acceptTeamInvitation(invitationId, options) {
898
+ return TeamsApiFp(this.configuration).acceptTeamInvitation(invitationId, options).then((request) => request(this.axios, this.basePath));
899
+ }
900
+ /**
901
+ *
902
+ * @summary Make a licensed member a co-owner of a collaborative team
903
+ * @param {string} teamId
904
+ * @param {AddTeamOwnerRequest} addTeamOwnerRequest
905
+ * @param {*} [options] Override http request option.
906
+ * @throws {RequiredError}
907
+ */
908
+ addTeamOwner(teamId, addTeamOwnerRequest, options) {
909
+ return TeamsApiFp(this.configuration).addTeamOwner(teamId, addTeamOwnerRequest, options).then((request) => request(this.axios, this.basePath));
910
+ }
911
+ /**
912
+ *
913
+ * @summary Cancel a pending invitation
914
+ * @param {string} teamId
915
+ * @param {string} invitationId
916
+ * @param {*} [options] Override http request option.
917
+ * @throws {RequiredError}
918
+ */
919
+ cancelTeamInvitation(teamId, invitationId, options) {
920
+ return TeamsApiFp(this.configuration).cancelTeamInvitation(teamId, invitationId, options).then((request) => request(this.axios, this.basePath));
921
+ }
922
+ /**
923
+ * 404 unless openfilz.teams.user-managed is on; LICENSED contributors only; 409 when the name is taken or the caller already owns openfilz.teams.max-owned-per-user teams.
924
+ * @summary Create a collaborative team (I become its owner)
925
+ * @param {CreateCollaborativeTeamRequest} createCollaborativeTeamRequest
926
+ * @param {*} [options] Override http request option.
927
+ * @throws {RequiredError}
928
+ */
929
+ createCollaborativeTeam(createCollaborativeTeamRequest, options) {
930
+ return TeamsApiFp(this.configuration).createCollaborativeTeam(createCollaborativeTeamRequest, options).then((request) => request(this.axios, this.basePath));
931
+ }
932
+ /**
933
+ *
934
+ * @summary Decline the invitation
935
+ * @param {string} invitationId
936
+ * @param {*} [options] Override http request option.
937
+ * @throws {RequiredError}
938
+ */
939
+ declineTeamInvitation(invitationId, options) {
940
+ return TeamsApiFp(this.configuration).declineTeamInvitation(invitationId, options).then((request) => request(this.axios, this.basePath));
941
+ }
942
+ /**
943
+ *
944
+ * @summary Delete a team (owner of a collaborative team, or administrator)
945
+ * @param {string} teamId
946
+ * @param {*} [options] Override http request option.
947
+ * @throws {RequiredError}
948
+ */
949
+ deleteCollaborativeTeam(teamId, options) {
950
+ return TeamsApiFp(this.configuration).deleteCollaborativeTeam(teamId, options).then((request) => request(this.axios, this.basePath));
951
+ }
952
+ /**
953
+ * One outcome per address: INVITED, ALREADY_MEMBER, ALREADY_INVITED, NOT_FOUND, BLOCKED_BY_POLICY. Membership starts when the invitee accepts. At most 50 addresses per call.
954
+ * @summary Invite people by exact e-mail address
955
+ * @param {string} teamId
956
+ * @param {InviteToTeamRequest} inviteToTeamRequest
957
+ * @param {*} [options] Override http request option.
958
+ * @throws {RequiredError}
959
+ */
960
+ inviteToTeam(teamId, inviteToTeamRequest, options) {
961
+ return TeamsApiFp(this.configuration).inviteToTeam(teamId, inviteToTeamRequest, options).then((request) => request(this.axios, this.basePath));
962
+ }
963
+ /**
964
+ * 403 for an organisation team (an administrator removes members); 409 for its last owner.
965
+ * @summary Leave a collaborative team
966
+ * @param {string} teamId
967
+ * @param {*} [options] Override http request option.
968
+ * @throws {RequiredError}
969
+ */
970
+ leaveTeam(teamId, options) {
971
+ return TeamsApiFp(this.configuration).leaveTeam(teamId, options).then((request) => request(this.axios, this.basePath));
972
+ }
973
+ /**
974
+ *
975
+ * @summary My pending team invitations
976
+ * @param {*} [options] Override http request option.
977
+ * @throws {RequiredError}
978
+ */
979
+ myTeamInvitations(options) {
980
+ return TeamsApiFp(this.configuration).myTeamInvitations(options).then((request) => request(this.axios, this.basePath));
981
+ }
982
+ /**
983
+ *
984
+ * @summary The teams I belong to, with their kind and whether I own them
985
+ * @param {*} [options] Override http request option.
986
+ * @throws {RequiredError}
987
+ */
988
+ myTeams(options) {
989
+ return TeamsApiFp(this.configuration).myTeams(options).then((request) => request(this.axios, this.basePath));
990
+ }
991
+ /**
992
+ *
993
+ * @summary Remove a member (the last owner cannot be removed)
994
+ * @param {string} teamId
995
+ * @param {string} userId
996
+ * @param {*} [options] Override http request option.
997
+ * @throws {RequiredError}
998
+ */
999
+ removeTeamMember(teamId, userId, options) {
1000
+ return TeamsApiFp(this.configuration).removeTeamMember(teamId, userId, options).then((request) => request(this.axios, this.basePath));
1001
+ }
1002
+ /**
1003
+ *
1004
+ * @summary Rename a team (owner of a collaborative team, or administrator)
1005
+ * @param {string} teamId
1006
+ * @param {RenameTeamRequest} renameTeamRequest
1007
+ * @param {*} [options] Override http request option.
1008
+ * @throws {RequiredError}
1009
+ */
1010
+ renameTeam(teamId, renameTeamRequest, options) {
1011
+ return TeamsApiFp(this.configuration).renameTeam(teamId, renameTeamRequest, options).then((request) => request(this.axios, this.basePath));
1012
+ }
1013
+ /**
1014
+ *
1015
+ * @summary May I create teams, and how many do I own
1016
+ * @param {*} [options] Override http request option.
1017
+ * @throws {RequiredError}
1018
+ */
1019
+ teamCapabilities(options) {
1020
+ return TeamsApiFp(this.configuration).teamCapabilities(options).then((request) => request(this.axios, this.basePath));
1021
+ }
1022
+ /**
1023
+ * LICENSED members and administrators. 403 for a FREE caller (who never gets other users), 404 for anyone else.
1024
+ * @summary Members, owners and (for its managers) pending invitations of a team
1025
+ * @param {string} teamId
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ teamDetails(teamId, options) {
1030
+ return TeamsApiFp(this.configuration).teamDetails(teamId, options).then((request) => request(this.axios, this.basePath));
1031
+ }
1032
+ }