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