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