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