@daytonaio/api-client 0.13.0 → 0.15.0

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 (188) hide show
  1. package/.openapi-generator/FILES +19 -0
  2. package/README.md +2 -2
  3. package/api/api-keys-api.ts +60 -28
  4. package/api/docker-registry-api.ts +182 -58
  5. package/api/images-api.ts +60 -28
  6. package/api/organizations-api.ts +1858 -0
  7. package/api/toolbox-api.ts +548 -252
  8. package/api/users-api.ts +14 -14
  9. package/api/workspace-api.ts +334 -161
  10. package/api.ts +1 -0
  11. package/dist/api/api-keys-api.d.ts +32 -16
  12. package/dist/api/api-keys-api.js +56 -28
  13. package/dist/api/docker-registry-api.d.ts +98 -40
  14. package/dist/api/docker-registry-api.js +169 -58
  15. package/dist/api/images-api.d.ts +32 -16
  16. package/dist/api/images-api.js +56 -28
  17. package/dist/api/organizations-api.d.ts +856 -0
  18. package/dist/api/organizations-api.js +1741 -0
  19. package/dist/api/toolbox-api.d.ts +292 -144
  20. package/dist/api/toolbox-api.js +511 -252
  21. package/dist/api/users-api.d.ts +9 -9
  22. package/dist/api/users-api.js +13 -13
  23. package/dist/api/workspace-api.d.ts +182 -97
  24. package/dist/api/workspace-api.js +319 -162
  25. package/dist/api.d.ts +1 -0
  26. package/dist/api.js +1 -0
  27. package/dist/common.d.ts +1 -1
  28. package/dist/esm/api/api-keys-api.d.ts +32 -16
  29. package/dist/esm/api/api-keys-api.js +56 -28
  30. package/dist/esm/api/docker-registry-api.d.ts +98 -40
  31. package/dist/esm/api/docker-registry-api.js +169 -58
  32. package/dist/esm/api/images-api.d.ts +32 -16
  33. package/dist/esm/api/images-api.js +56 -28
  34. package/dist/esm/api/organizations-api.d.ts +856 -0
  35. package/dist/esm/api/organizations-api.js +1734 -0
  36. package/dist/esm/api/toolbox-api.d.ts +292 -144
  37. package/dist/esm/api/toolbox-api.js +511 -252
  38. package/dist/esm/api/users-api.d.ts +9 -9
  39. package/dist/esm/api/users-api.js +13 -13
  40. package/dist/esm/api/workspace-api.d.ts +182 -97
  41. package/dist/esm/api/workspace-api.js +319 -162
  42. package/dist/esm/api.d.ts +1 -0
  43. package/dist/esm/api.js +1 -0
  44. package/dist/esm/common.d.ts +1 -1
  45. package/dist/esm/models/api-key-list.d.ts +15 -0
  46. package/dist/esm/models/api-key-list.js +8 -1
  47. package/dist/esm/models/api-key-response.d.ts +15 -0
  48. package/dist/esm/models/api-key-response.js +8 -1
  49. package/dist/esm/models/create-api-key.d.ts +15 -0
  50. package/dist/esm/models/create-api-key.js +8 -1
  51. package/dist/esm/models/create-docker-registry.d.ts +19 -0
  52. package/dist/esm/models/create-docker-registry.js +6 -1
  53. package/dist/esm/models/create-node.d.ts +72 -0
  54. package/dist/esm/models/create-node.js +10 -1
  55. package/dist/esm/models/create-organization-invitation.d.ts +47 -0
  56. package/dist/esm/models/create-organization-invitation.js +17 -0
  57. package/dist/esm/models/create-organization-quota.d.ts +84 -0
  58. package/dist/esm/models/create-organization-quota.js +14 -0
  59. package/dist/esm/models/create-organization-role.d.ts +45 -0
  60. package/dist/esm/models/create-organization-role.js +21 -0
  61. package/dist/esm/models/create-organization.d.ts +90 -0
  62. package/dist/esm/models/create-organization.js +14 -0
  63. package/dist/esm/models/create-user.d.ts +13 -0
  64. package/dist/esm/models/create-workspace.d.ts +6 -6
  65. package/dist/esm/models/create-workspace.js +6 -6
  66. package/dist/esm/models/docker-registry.d.ts +13 -0
  67. package/dist/esm/models/docker-registry.js +6 -1
  68. package/dist/esm/models/image-dto.d.ts +4 -12
  69. package/dist/esm/models/image-dto.js +1 -8
  70. package/dist/esm/models/image-state.d.ts +26 -0
  71. package/dist/esm/models/image-state.js +27 -0
  72. package/dist/esm/models/index.d.ts +18 -0
  73. package/dist/esm/models/index.js +18 -0
  74. package/dist/esm/models/organization-invitation.d.ts +91 -0
  75. package/dist/esm/models/organization-invitation.js +23 -0
  76. package/dist/esm/models/organization-role.d.ts +69 -0
  77. package/dist/esm/models/organization-role.js +21 -0
  78. package/dist/esm/models/organization-user.d.ts +72 -0
  79. package/dist/esm/models/organization-user.js +17 -0
  80. package/dist/esm/models/organization.d.ts +54 -0
  81. package/dist/esm/models/organization.js +14 -0
  82. package/dist/esm/models/registry-push-access-dto.d.ts +54 -0
  83. package/dist/esm/models/registry-push-access-dto.js +14 -0
  84. package/dist/esm/models/update-assigned-organization-roles.d.ts +24 -0
  85. package/dist/esm/models/update-assigned-organization-roles.js +14 -0
  86. package/dist/esm/models/update-organization-invitation.d.ts +41 -0
  87. package/dist/esm/models/update-organization-invitation.js +17 -0
  88. package/dist/esm/models/update-organization-member-role.d.ts +29 -0
  89. package/dist/esm/models/update-organization-member-role.js +17 -0
  90. package/dist/esm/models/update-organization-quota.d.ts +84 -0
  91. package/dist/esm/models/update-organization-quota.js +14 -0
  92. package/dist/esm/models/update-organization-role.d.ts +45 -0
  93. package/dist/esm/models/update-organization-role.js +21 -0
  94. package/dist/esm/models/user-public-key.d.ts +30 -0
  95. package/dist/esm/models/user-public-key.js +14 -0
  96. package/dist/esm/models/user.d.ts +43 -0
  97. package/dist/esm/models/user.js +14 -0
  98. package/dist/esm/models/workspace-state.d.ts +33 -0
  99. package/dist/esm/models/workspace-state.js +34 -0
  100. package/dist/esm/models/workspace.d.ts +12 -3
  101. package/dist/esm/models/workspace.js +7 -1
  102. package/dist/models/api-key-list.d.ts +15 -0
  103. package/dist/models/api-key-list.js +9 -0
  104. package/dist/models/api-key-response.d.ts +15 -0
  105. package/dist/models/api-key-response.js +9 -0
  106. package/dist/models/create-api-key.d.ts +15 -0
  107. package/dist/models/create-api-key.js +9 -0
  108. package/dist/models/create-docker-registry.d.ts +19 -0
  109. package/dist/models/create-docker-registry.js +7 -0
  110. package/dist/models/create-node.d.ts +72 -0
  111. package/dist/models/create-node.js +11 -0
  112. package/dist/models/create-organization-invitation.d.ts +47 -0
  113. package/dist/models/create-organization-invitation.js +20 -0
  114. package/dist/models/create-organization-quota.d.ts +84 -0
  115. package/dist/models/create-organization-quota.js +15 -0
  116. package/dist/models/create-organization-role.d.ts +45 -0
  117. package/dist/models/create-organization-role.js +24 -0
  118. package/dist/models/create-organization.d.ts +90 -0
  119. package/dist/models/create-organization.js +15 -0
  120. package/dist/models/create-user.d.ts +13 -0
  121. package/dist/models/create-workspace.d.ts +6 -6
  122. package/dist/models/create-workspace.js +6 -6
  123. package/dist/models/docker-registry.d.ts +13 -0
  124. package/dist/models/docker-registry.js +7 -0
  125. package/dist/models/image-dto.d.ts +4 -12
  126. package/dist/models/image-dto.js +0 -9
  127. package/dist/models/image-state.d.ts +26 -0
  128. package/dist/models/image-state.js +30 -0
  129. package/dist/models/index.d.ts +18 -0
  130. package/dist/models/index.js +18 -0
  131. package/dist/models/organization-invitation.d.ts +91 -0
  132. package/dist/models/organization-invitation.js +26 -0
  133. package/dist/models/organization-role.d.ts +69 -0
  134. package/dist/models/organization-role.js +24 -0
  135. package/dist/models/organization-user.d.ts +72 -0
  136. package/dist/models/organization-user.js +20 -0
  137. package/dist/models/organization.d.ts +54 -0
  138. package/dist/models/organization.js +15 -0
  139. package/dist/models/registry-push-access-dto.d.ts +54 -0
  140. package/dist/models/registry-push-access-dto.js +15 -0
  141. package/dist/models/update-assigned-organization-roles.d.ts +24 -0
  142. package/dist/models/update-assigned-organization-roles.js +15 -0
  143. package/dist/models/update-organization-invitation.d.ts +41 -0
  144. package/dist/models/update-organization-invitation.js +20 -0
  145. package/dist/models/update-organization-member-role.d.ts +29 -0
  146. package/dist/models/update-organization-member-role.js +20 -0
  147. package/dist/models/update-organization-quota.d.ts +84 -0
  148. package/dist/models/update-organization-quota.js +15 -0
  149. package/dist/models/update-organization-role.d.ts +45 -0
  150. package/dist/models/update-organization-role.js +24 -0
  151. package/dist/models/user-public-key.d.ts +30 -0
  152. package/dist/models/user-public-key.js +15 -0
  153. package/dist/models/user.d.ts +43 -0
  154. package/dist/models/user.js +15 -0
  155. package/dist/models/workspace-state.d.ts +33 -0
  156. package/dist/models/workspace-state.js +37 -0
  157. package/dist/models/workspace.d.ts +12 -3
  158. package/dist/models/workspace.js +8 -0
  159. package/models/api-key-list.ts +18 -0
  160. package/models/api-key-response.ts +18 -0
  161. package/models/create-api-key.ts +18 -0
  162. package/models/create-docker-registry.ts +22 -0
  163. package/models/create-node.ts +76 -0
  164. package/models/create-organization-invitation.ts +56 -0
  165. package/models/create-organization-quota.ts +90 -0
  166. package/models/create-organization-role.ts +54 -0
  167. package/models/create-organization.ts +96 -0
  168. package/models/create-user.ts +15 -0
  169. package/models/create-workspace.ts +6 -6
  170. package/models/docker-registry.ts +16 -0
  171. package/models/image-dto.ts +6 -13
  172. package/models/image-state.ts +36 -0
  173. package/models/index.ts +18 -0
  174. package/models/organization-invitation.ts +103 -0
  175. package/models/organization-role.ts +78 -0
  176. package/models/organization-user.ts +83 -0
  177. package/models/organization.ts +60 -0
  178. package/models/registry-push-access-dto.ts +60 -0
  179. package/models/update-assigned-organization-roles.ts +30 -0
  180. package/models/update-organization-invitation.ts +50 -0
  181. package/models/update-organization-member-role.ts +38 -0
  182. package/models/update-organization-quota.ts +90 -0
  183. package/models/update-organization-role.ts +54 -0
  184. package/models/user-public-key.ts +36 -0
  185. package/models/user.ts +51 -0
  186. package/models/workspace-state.ts +43 -0
  187. package/models/workspace.ts +17 -3
  188. package/package.json +1 -1
@@ -0,0 +1,1734 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Daytona Workspaces
5
+ * Daytona Workspaces API Docs
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * OrganizationsApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const OrganizationsApiAxiosParamCreator = function (configuration) {
34
+ return {
35
+ /**
36
+ *
37
+ * @summary Accept organization invitation
38
+ * @param {string} invitationId Invitation ID
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ acceptOrganizationInvitation: (invitationId_1, ...args_1) => __awaiter(this, [invitationId_1, ...args_1], void 0, function* (invitationId, options = {}) {
43
+ // verify required parameter 'invitationId' is not null or undefined
44
+ assertParamExists('acceptOrganizationInvitation', 'invitationId', invitationId);
45
+ const localVarPath = `/organizations/invitations/{invitationId}/accept`
46
+ .replace(`{${"invitationId"}}`, encodeURIComponent(String(invitationId)));
47
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
49
+ let baseOptions;
50
+ if (configuration) {
51
+ baseOptions = configuration.baseOptions;
52
+ }
53
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
54
+ const localVarHeaderParameter = {};
55
+ const localVarQueryParameter = {};
56
+ // authentication oauth2 required
57
+ // oauth required
58
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ return {
63
+ url: toPathString(localVarUrlObj),
64
+ options: localVarRequestOptions,
65
+ };
66
+ }),
67
+ /**
68
+ *
69
+ * @summary Cancel organization invitation
70
+ * @param {string} organizationId Organization ID
71
+ * @param {string} invitationId Invitation ID
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ cancelOrganizationInvitation: (organizationId_1, invitationId_1, ...args_1) => __awaiter(this, [organizationId_1, invitationId_1, ...args_1], void 0, function* (organizationId, invitationId, options = {}) {
76
+ // verify required parameter 'organizationId' is not null or undefined
77
+ assertParamExists('cancelOrganizationInvitation', 'organizationId', organizationId);
78
+ // verify required parameter 'invitationId' is not null or undefined
79
+ assertParamExists('cancelOrganizationInvitation', 'invitationId', invitationId);
80
+ const localVarPath = `/organizations/{organizationId}/invitations/{invitationId}/cancel`
81
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
82
+ .replace(`{${"invitationId"}}`, encodeURIComponent(String(invitationId)));
83
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
84
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
85
+ let baseOptions;
86
+ if (configuration) {
87
+ baseOptions = configuration.baseOptions;
88
+ }
89
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
90
+ const localVarHeaderParameter = {};
91
+ const localVarQueryParameter = {};
92
+ // authentication oauth2 required
93
+ // oauth required
94
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
95
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
96
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
97
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
98
+ return {
99
+ url: toPathString(localVarUrlObj),
100
+ options: localVarRequestOptions,
101
+ };
102
+ }),
103
+ /**
104
+ *
105
+ * @summary Create organization
106
+ * @param {CreateOrganization} createOrganization
107
+ * @param {*} [options] Override http request option.
108
+ * @throws {RequiredError}
109
+ */
110
+ createOrganization: (createOrganization_1, ...args_1) => __awaiter(this, [createOrganization_1, ...args_1], void 0, function* (createOrganization, options = {}) {
111
+ // verify required parameter 'createOrganization' is not null or undefined
112
+ assertParamExists('createOrganization', 'createOrganization', createOrganization);
113
+ const localVarPath = `/organizations`;
114
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
115
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
116
+ let baseOptions;
117
+ if (configuration) {
118
+ baseOptions = configuration.baseOptions;
119
+ }
120
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
121
+ const localVarHeaderParameter = {};
122
+ const localVarQueryParameter = {};
123
+ // authentication oauth2 required
124
+ // oauth required
125
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
126
+ localVarHeaderParameter['Content-Type'] = 'application/json';
127
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
128
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
130
+ localVarRequestOptions.data = serializeDataIfNeeded(createOrganization, localVarRequestOptions, configuration);
131
+ return {
132
+ url: toPathString(localVarUrlObj),
133
+ options: localVarRequestOptions,
134
+ };
135
+ }),
136
+ /**
137
+ *
138
+ * @summary Create organization invitation
139
+ * @param {string} organizationId Organization ID
140
+ * @param {CreateOrganizationInvitation} createOrganizationInvitation
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ createOrganizationInvitation: (organizationId_1, createOrganizationInvitation_1, ...args_1) => __awaiter(this, [organizationId_1, createOrganizationInvitation_1, ...args_1], void 0, function* (organizationId, createOrganizationInvitation, options = {}) {
145
+ // verify required parameter 'organizationId' is not null or undefined
146
+ assertParamExists('createOrganizationInvitation', 'organizationId', organizationId);
147
+ // verify required parameter 'createOrganizationInvitation' is not null or undefined
148
+ assertParamExists('createOrganizationInvitation', 'createOrganizationInvitation', createOrganizationInvitation);
149
+ const localVarPath = `/organizations/{organizationId}/invitations`
150
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
151
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
152
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
153
+ let baseOptions;
154
+ if (configuration) {
155
+ baseOptions = configuration.baseOptions;
156
+ }
157
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
158
+ const localVarHeaderParameter = {};
159
+ const localVarQueryParameter = {};
160
+ // authentication oauth2 required
161
+ // oauth required
162
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
163
+ localVarHeaderParameter['Content-Type'] = 'application/json';
164
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
165
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
166
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
167
+ localVarRequestOptions.data = serializeDataIfNeeded(createOrganizationInvitation, localVarRequestOptions, configuration);
168
+ return {
169
+ url: toPathString(localVarUrlObj),
170
+ options: localVarRequestOptions,
171
+ };
172
+ }),
173
+ /**
174
+ *
175
+ * @summary Create organization role
176
+ * @param {string} organizationId Organization ID
177
+ * @param {CreateOrganizationRole} createOrganizationRole
178
+ * @param {*} [options] Override http request option.
179
+ * @throws {RequiredError}
180
+ */
181
+ createOrganizationRole: (organizationId_1, createOrganizationRole_1, ...args_1) => __awaiter(this, [organizationId_1, createOrganizationRole_1, ...args_1], void 0, function* (organizationId, createOrganizationRole, options = {}) {
182
+ // verify required parameter 'organizationId' is not null or undefined
183
+ assertParamExists('createOrganizationRole', 'organizationId', organizationId);
184
+ // verify required parameter 'createOrganizationRole' is not null or undefined
185
+ assertParamExists('createOrganizationRole', 'createOrganizationRole', createOrganizationRole);
186
+ const localVarPath = `/organizations/{organizationId}/roles`
187
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
188
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
189
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
190
+ let baseOptions;
191
+ if (configuration) {
192
+ baseOptions = configuration.baseOptions;
193
+ }
194
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
195
+ const localVarHeaderParameter = {};
196
+ const localVarQueryParameter = {};
197
+ // authentication oauth2 required
198
+ // oauth required
199
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
200
+ localVarHeaderParameter['Content-Type'] = 'application/json';
201
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
202
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
203
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
204
+ localVarRequestOptions.data = serializeDataIfNeeded(createOrganizationRole, localVarRequestOptions, configuration);
205
+ return {
206
+ url: toPathString(localVarUrlObj),
207
+ options: localVarRequestOptions,
208
+ };
209
+ }),
210
+ /**
211
+ *
212
+ * @summary Decline organization invitation
213
+ * @param {string} invitationId Invitation ID
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ */
217
+ declineOrganizationInvitation: (invitationId_1, ...args_1) => __awaiter(this, [invitationId_1, ...args_1], void 0, function* (invitationId, options = {}) {
218
+ // verify required parameter 'invitationId' is not null or undefined
219
+ assertParamExists('declineOrganizationInvitation', 'invitationId', invitationId);
220
+ const localVarPath = `/organizations/invitations/{invitationId}/decline`
221
+ .replace(`{${"invitationId"}}`, encodeURIComponent(String(invitationId)));
222
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
223
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
224
+ let baseOptions;
225
+ if (configuration) {
226
+ baseOptions = configuration.baseOptions;
227
+ }
228
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
229
+ const localVarHeaderParameter = {};
230
+ const localVarQueryParameter = {};
231
+ // authentication oauth2 required
232
+ // oauth required
233
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
234
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
235
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
236
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
237
+ return {
238
+ url: toPathString(localVarUrlObj),
239
+ options: localVarRequestOptions,
240
+ };
241
+ }),
242
+ /**
243
+ *
244
+ * @summary Delete organization
245
+ * @param {string} organizationId Organization ID
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ */
249
+ deleteOrganization: (organizationId_1, ...args_1) => __awaiter(this, [organizationId_1, ...args_1], void 0, function* (organizationId, options = {}) {
250
+ // verify required parameter 'organizationId' is not null or undefined
251
+ assertParamExists('deleteOrganization', 'organizationId', organizationId);
252
+ const localVarPath = `/organizations/{organizationId}`
253
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
254
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
255
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
256
+ let baseOptions;
257
+ if (configuration) {
258
+ baseOptions = configuration.baseOptions;
259
+ }
260
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
261
+ const localVarHeaderParameter = {};
262
+ const localVarQueryParameter = {};
263
+ // authentication oauth2 required
264
+ // oauth required
265
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
266
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
267
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
268
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
269
+ return {
270
+ url: toPathString(localVarUrlObj),
271
+ options: localVarRequestOptions,
272
+ };
273
+ }),
274
+ /**
275
+ *
276
+ * @summary Delete organization member
277
+ * @param {string} organizationId Organization ID
278
+ * @param {string} userId User ID
279
+ * @param {*} [options] Override http request option.
280
+ * @throws {RequiredError}
281
+ */
282
+ deleteOrganizationMember: (organizationId_1, userId_1, ...args_1) => __awaiter(this, [organizationId_1, userId_1, ...args_1], void 0, function* (organizationId, userId, options = {}) {
283
+ // verify required parameter 'organizationId' is not null or undefined
284
+ assertParamExists('deleteOrganizationMember', 'organizationId', organizationId);
285
+ // verify required parameter 'userId' is not null or undefined
286
+ assertParamExists('deleteOrganizationMember', 'userId', userId);
287
+ const localVarPath = `/organizations/{organizationId}/users/{userId}`
288
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
289
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
290
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
291
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
292
+ let baseOptions;
293
+ if (configuration) {
294
+ baseOptions = configuration.baseOptions;
295
+ }
296
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
297
+ const localVarHeaderParameter = {};
298
+ const localVarQueryParameter = {};
299
+ // authentication oauth2 required
300
+ // oauth required
301
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
302
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
303
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
304
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
305
+ return {
306
+ url: toPathString(localVarUrlObj),
307
+ options: localVarRequestOptions,
308
+ };
309
+ }),
310
+ /**
311
+ *
312
+ * @summary Delete organization role
313
+ * @param {string} organizationId Organization ID
314
+ * @param {string} roleId Role ID
315
+ * @param {*} [options] Override http request option.
316
+ * @throws {RequiredError}
317
+ */
318
+ deleteOrganizationRole: (organizationId_1, roleId_1, ...args_1) => __awaiter(this, [organizationId_1, roleId_1, ...args_1], void 0, function* (organizationId, roleId, options = {}) {
319
+ // verify required parameter 'organizationId' is not null or undefined
320
+ assertParamExists('deleteOrganizationRole', 'organizationId', organizationId);
321
+ // verify required parameter 'roleId' is not null or undefined
322
+ assertParamExists('deleteOrganizationRole', 'roleId', roleId);
323
+ const localVarPath = `/organizations/{organizationId}/roles/{roleId}`
324
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
325
+ .replace(`{${"roleId"}}`, encodeURIComponent(String(roleId)));
326
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
327
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
328
+ let baseOptions;
329
+ if (configuration) {
330
+ baseOptions = configuration.baseOptions;
331
+ }
332
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
333
+ const localVarHeaderParameter = {};
334
+ const localVarQueryParameter = {};
335
+ // authentication oauth2 required
336
+ // oauth required
337
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
338
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
339
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
340
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
341
+ return {
342
+ url: toPathString(localVarUrlObj),
343
+ options: localVarRequestOptions,
344
+ };
345
+ }),
346
+ /**
347
+ *
348
+ * @summary Get organization by ID
349
+ * @param {string} organizationId Organization ID
350
+ * @param {*} [options] Override http request option.
351
+ * @throws {RequiredError}
352
+ */
353
+ getOrganization: (organizationId_1, ...args_1) => __awaiter(this, [organizationId_1, ...args_1], void 0, function* (organizationId, options = {}) {
354
+ // verify required parameter 'organizationId' is not null or undefined
355
+ assertParamExists('getOrganization', 'organizationId', organizationId);
356
+ const localVarPath = `/organizations/{organizationId}`
357
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
358
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
359
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
360
+ let baseOptions;
361
+ if (configuration) {
362
+ baseOptions = configuration.baseOptions;
363
+ }
364
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
365
+ const localVarHeaderParameter = {};
366
+ const localVarQueryParameter = {};
367
+ // authentication oauth2 required
368
+ // oauth required
369
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
370
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
371
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
372
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
373
+ return {
374
+ url: toPathString(localVarUrlObj),
375
+ options: localVarRequestOptions,
376
+ };
377
+ }),
378
+ /**
379
+ *
380
+ * @summary Get count of organization invitations for authenticated user
381
+ * @param {*} [options] Override http request option.
382
+ * @throws {RequiredError}
383
+ */
384
+ getOrganizationInvitationsCountForAuthenticatedUser: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
385
+ const localVarPath = `/organizations/invitations/count`;
386
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
387
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
388
+ let baseOptions;
389
+ if (configuration) {
390
+ baseOptions = configuration.baseOptions;
391
+ }
392
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
393
+ const localVarHeaderParameter = {};
394
+ const localVarQueryParameter = {};
395
+ // authentication oauth2 required
396
+ // oauth required
397
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
398
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
399
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
400
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
401
+ return {
402
+ url: toPathString(localVarUrlObj),
403
+ options: localVarRequestOptions,
404
+ };
405
+ }),
406
+ /**
407
+ *
408
+ * @summary Get organization current usage overview
409
+ * @param {string} organizationId Organization ID
410
+ * @param {*} [options] Override http request option.
411
+ * @throws {RequiredError}
412
+ */
413
+ getOrganizationUsageOverview: (organizationId_1, ...args_1) => __awaiter(this, [organizationId_1, ...args_1], void 0, function* (organizationId, options = {}) {
414
+ // verify required parameter 'organizationId' is not null or undefined
415
+ assertParamExists('getOrganizationUsageOverview', 'organizationId', organizationId);
416
+ const localVarPath = `/organizations/{organizationId}/usage`
417
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
418
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
419
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
420
+ let baseOptions;
421
+ if (configuration) {
422
+ baseOptions = configuration.baseOptions;
423
+ }
424
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
425
+ const localVarHeaderParameter = {};
426
+ const localVarQueryParameter = {};
427
+ // authentication oauth2 required
428
+ // oauth required
429
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
430
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
431
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
432
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
433
+ return {
434
+ url: toPathString(localVarUrlObj),
435
+ options: localVarRequestOptions,
436
+ };
437
+ }),
438
+ /**
439
+ *
440
+ * @summary Leave organization
441
+ * @param {string} organizationId Organization ID
442
+ * @param {*} [options] Override http request option.
443
+ * @throws {RequiredError}
444
+ */
445
+ leaveOrganization: (organizationId_1, ...args_1) => __awaiter(this, [organizationId_1, ...args_1], void 0, function* (organizationId, options = {}) {
446
+ // verify required parameter 'organizationId' is not null or undefined
447
+ assertParamExists('leaveOrganization', 'organizationId', organizationId);
448
+ const localVarPath = `/organizations/{organizationId}/leave`
449
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
450
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
451
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
452
+ let baseOptions;
453
+ if (configuration) {
454
+ baseOptions = configuration.baseOptions;
455
+ }
456
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
457
+ const localVarHeaderParameter = {};
458
+ const localVarQueryParameter = {};
459
+ // authentication oauth2 required
460
+ // oauth required
461
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
462
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
463
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
464
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
465
+ return {
466
+ url: toPathString(localVarUrlObj),
467
+ options: localVarRequestOptions,
468
+ };
469
+ }),
470
+ /**
471
+ *
472
+ * @summary List pending organization invitations
473
+ * @param {string} organizationId Organization ID
474
+ * @param {*} [options] Override http request option.
475
+ * @throws {RequiredError}
476
+ */
477
+ listOrganizationInvitations: (organizationId_1, ...args_1) => __awaiter(this, [organizationId_1, ...args_1], void 0, function* (organizationId, options = {}) {
478
+ // verify required parameter 'organizationId' is not null or undefined
479
+ assertParamExists('listOrganizationInvitations', 'organizationId', organizationId);
480
+ const localVarPath = `/organizations/{organizationId}/invitations`
481
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
482
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
483
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
484
+ let baseOptions;
485
+ if (configuration) {
486
+ baseOptions = configuration.baseOptions;
487
+ }
488
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
489
+ const localVarHeaderParameter = {};
490
+ const localVarQueryParameter = {};
491
+ // authentication oauth2 required
492
+ // oauth required
493
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
494
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
495
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
496
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
497
+ return {
498
+ url: toPathString(localVarUrlObj),
499
+ options: localVarRequestOptions,
500
+ };
501
+ }),
502
+ /**
503
+ *
504
+ * @summary List organization invitations for authenticated user
505
+ * @param {*} [options] Override http request option.
506
+ * @throws {RequiredError}
507
+ */
508
+ listOrganizationInvitationsForAuthenticatedUser: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
509
+ const localVarPath = `/organizations/invitations`;
510
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
511
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
512
+ let baseOptions;
513
+ if (configuration) {
514
+ baseOptions = configuration.baseOptions;
515
+ }
516
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
517
+ const localVarHeaderParameter = {};
518
+ const localVarQueryParameter = {};
519
+ // authentication oauth2 required
520
+ // oauth required
521
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
522
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
523
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
524
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
525
+ return {
526
+ url: toPathString(localVarUrlObj),
527
+ options: localVarRequestOptions,
528
+ };
529
+ }),
530
+ /**
531
+ *
532
+ * @summary List organization members
533
+ * @param {string} organizationId Organization ID
534
+ * @param {*} [options] Override http request option.
535
+ * @throws {RequiredError}
536
+ */
537
+ listOrganizationMembers: (organizationId_1, ...args_1) => __awaiter(this, [organizationId_1, ...args_1], void 0, function* (organizationId, options = {}) {
538
+ // verify required parameter 'organizationId' is not null or undefined
539
+ assertParamExists('listOrganizationMembers', 'organizationId', organizationId);
540
+ const localVarPath = `/organizations/{organizationId}/users`
541
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
542
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
543
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
544
+ let baseOptions;
545
+ if (configuration) {
546
+ baseOptions = configuration.baseOptions;
547
+ }
548
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
549
+ const localVarHeaderParameter = {};
550
+ const localVarQueryParameter = {};
551
+ // authentication oauth2 required
552
+ // oauth required
553
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
554
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
555
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
556
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
557
+ return {
558
+ url: toPathString(localVarUrlObj),
559
+ options: localVarRequestOptions,
560
+ };
561
+ }),
562
+ /**
563
+ *
564
+ * @summary List organization roles
565
+ * @param {string} organizationId Organization ID
566
+ * @param {*} [options] Override http request option.
567
+ * @throws {RequiredError}
568
+ */
569
+ listOrganizationRoles: (organizationId_1, ...args_1) => __awaiter(this, [organizationId_1, ...args_1], void 0, function* (organizationId, options = {}) {
570
+ // verify required parameter 'organizationId' is not null or undefined
571
+ assertParamExists('listOrganizationRoles', 'organizationId', organizationId);
572
+ const localVarPath = `/organizations/{organizationId}/roles`
573
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
574
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
575
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
576
+ let baseOptions;
577
+ if (configuration) {
578
+ baseOptions = configuration.baseOptions;
579
+ }
580
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
581
+ const localVarHeaderParameter = {};
582
+ const localVarQueryParameter = {};
583
+ // authentication oauth2 required
584
+ // oauth required
585
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
586
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
587
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
588
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
589
+ return {
590
+ url: toPathString(localVarUrlObj),
591
+ options: localVarRequestOptions,
592
+ };
593
+ }),
594
+ /**
595
+ *
596
+ * @summary List organizations
597
+ * @param {*} [options] Override http request option.
598
+ * @throws {RequiredError}
599
+ */
600
+ listOrganizations: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
601
+ const localVarPath = `/organizations`;
602
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
603
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
604
+ let baseOptions;
605
+ if (configuration) {
606
+ baseOptions = configuration.baseOptions;
607
+ }
608
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
609
+ const localVarHeaderParameter = {};
610
+ const localVarQueryParameter = {};
611
+ // authentication oauth2 required
612
+ // oauth required
613
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
614
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
615
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
616
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
617
+ return {
618
+ url: toPathString(localVarUrlObj),
619
+ options: localVarRequestOptions,
620
+ };
621
+ }),
622
+ /**
623
+ *
624
+ * @summary Update assigned roles to organization member
625
+ * @param {string} organizationId Organization ID
626
+ * @param {string} userId User ID
627
+ * @param {UpdateAssignedOrganizationRoles} updateAssignedOrganizationRoles
628
+ * @param {*} [options] Override http request option.
629
+ * @throws {RequiredError}
630
+ */
631
+ updateAssignedOrganizationRoles: (organizationId_1, userId_1, updateAssignedOrganizationRoles_1, ...args_1) => __awaiter(this, [organizationId_1, userId_1, updateAssignedOrganizationRoles_1, ...args_1], void 0, function* (organizationId, userId, updateAssignedOrganizationRoles, options = {}) {
632
+ // verify required parameter 'organizationId' is not null or undefined
633
+ assertParamExists('updateAssignedOrganizationRoles', 'organizationId', organizationId);
634
+ // verify required parameter 'userId' is not null or undefined
635
+ assertParamExists('updateAssignedOrganizationRoles', 'userId', userId);
636
+ // verify required parameter 'updateAssignedOrganizationRoles' is not null or undefined
637
+ assertParamExists('updateAssignedOrganizationRoles', 'updateAssignedOrganizationRoles', updateAssignedOrganizationRoles);
638
+ const localVarPath = `/organizations/{organizationId}/users/{userId}/assigned-roles`
639
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
640
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
641
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
642
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
643
+ let baseOptions;
644
+ if (configuration) {
645
+ baseOptions = configuration.baseOptions;
646
+ }
647
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
648
+ const localVarHeaderParameter = {};
649
+ const localVarQueryParameter = {};
650
+ // authentication oauth2 required
651
+ // oauth required
652
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
653
+ localVarHeaderParameter['Content-Type'] = 'application/json';
654
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
655
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
656
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
657
+ localVarRequestOptions.data = serializeDataIfNeeded(updateAssignedOrganizationRoles, localVarRequestOptions, configuration);
658
+ return {
659
+ url: toPathString(localVarUrlObj),
660
+ options: localVarRequestOptions,
661
+ };
662
+ }),
663
+ /**
664
+ *
665
+ * @summary Update organization invitation
666
+ * @param {string} organizationId Organization ID
667
+ * @param {string} invitationId Invitation ID
668
+ * @param {UpdateOrganizationInvitation} updateOrganizationInvitation
669
+ * @param {*} [options] Override http request option.
670
+ * @throws {RequiredError}
671
+ */
672
+ updateOrganizationInvitation: (organizationId_1, invitationId_1, updateOrganizationInvitation_1, ...args_1) => __awaiter(this, [organizationId_1, invitationId_1, updateOrganizationInvitation_1, ...args_1], void 0, function* (organizationId, invitationId, updateOrganizationInvitation, options = {}) {
673
+ // verify required parameter 'organizationId' is not null or undefined
674
+ assertParamExists('updateOrganizationInvitation', 'organizationId', organizationId);
675
+ // verify required parameter 'invitationId' is not null or undefined
676
+ assertParamExists('updateOrganizationInvitation', 'invitationId', invitationId);
677
+ // verify required parameter 'updateOrganizationInvitation' is not null or undefined
678
+ assertParamExists('updateOrganizationInvitation', 'updateOrganizationInvitation', updateOrganizationInvitation);
679
+ const localVarPath = `/organizations/{organizationId}/invitations/{invitationId}`
680
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
681
+ .replace(`{${"invitationId"}}`, encodeURIComponent(String(invitationId)));
682
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
683
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
684
+ let baseOptions;
685
+ if (configuration) {
686
+ baseOptions = configuration.baseOptions;
687
+ }
688
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
689
+ const localVarHeaderParameter = {};
690
+ const localVarQueryParameter = {};
691
+ // authentication oauth2 required
692
+ // oauth required
693
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
694
+ localVarHeaderParameter['Content-Type'] = 'application/json';
695
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
696
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
697
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
698
+ localVarRequestOptions.data = serializeDataIfNeeded(updateOrganizationInvitation, localVarRequestOptions, configuration);
699
+ return {
700
+ url: toPathString(localVarUrlObj),
701
+ options: localVarRequestOptions,
702
+ };
703
+ }),
704
+ /**
705
+ *
706
+ * @summary Update organization quota
707
+ * @param {string} organizationId Organization ID
708
+ * @param {UpdateOrganizationQuota} updateOrganizationQuota
709
+ * @param {*} [options] Override http request option.
710
+ * @throws {RequiredError}
711
+ */
712
+ updateOrganizationQuota: (organizationId_1, updateOrganizationQuota_1, ...args_1) => __awaiter(this, [organizationId_1, updateOrganizationQuota_1, ...args_1], void 0, function* (organizationId, updateOrganizationQuota, options = {}) {
713
+ // verify required parameter 'organizationId' is not null or undefined
714
+ assertParamExists('updateOrganizationQuota', 'organizationId', organizationId);
715
+ // verify required parameter 'updateOrganizationQuota' is not null or undefined
716
+ assertParamExists('updateOrganizationQuota', 'updateOrganizationQuota', updateOrganizationQuota);
717
+ const localVarPath = `/organizations/{organizationId}/quota`
718
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
719
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
720
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
721
+ let baseOptions;
722
+ if (configuration) {
723
+ baseOptions = configuration.baseOptions;
724
+ }
725
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
726
+ const localVarHeaderParameter = {};
727
+ const localVarQueryParameter = {};
728
+ // authentication oauth2 required
729
+ // oauth required
730
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
731
+ localVarHeaderParameter['Content-Type'] = 'application/json';
732
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
733
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
734
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
735
+ localVarRequestOptions.data = serializeDataIfNeeded(updateOrganizationQuota, localVarRequestOptions, configuration);
736
+ return {
737
+ url: toPathString(localVarUrlObj),
738
+ options: localVarRequestOptions,
739
+ };
740
+ }),
741
+ /**
742
+ *
743
+ * @summary Update organization role
744
+ * @param {string} organizationId Organization ID
745
+ * @param {string} roleId Role ID
746
+ * @param {UpdateOrganizationRole} updateOrganizationRole
747
+ * @param {*} [options] Override http request option.
748
+ * @throws {RequiredError}
749
+ */
750
+ updateOrganizationRole: (organizationId_1, roleId_1, updateOrganizationRole_1, ...args_1) => __awaiter(this, [organizationId_1, roleId_1, updateOrganizationRole_1, ...args_1], void 0, function* (organizationId, roleId, updateOrganizationRole, options = {}) {
751
+ // verify required parameter 'organizationId' is not null or undefined
752
+ assertParamExists('updateOrganizationRole', 'organizationId', organizationId);
753
+ // verify required parameter 'roleId' is not null or undefined
754
+ assertParamExists('updateOrganizationRole', 'roleId', roleId);
755
+ // verify required parameter 'updateOrganizationRole' is not null or undefined
756
+ assertParamExists('updateOrganizationRole', 'updateOrganizationRole', updateOrganizationRole);
757
+ const localVarPath = `/organizations/{organizationId}/roles/{roleId}`
758
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
759
+ .replace(`{${"roleId"}}`, encodeURIComponent(String(roleId)));
760
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
761
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
762
+ let baseOptions;
763
+ if (configuration) {
764
+ baseOptions = configuration.baseOptions;
765
+ }
766
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
767
+ const localVarHeaderParameter = {};
768
+ const localVarQueryParameter = {};
769
+ // authentication oauth2 required
770
+ // oauth required
771
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
772
+ localVarHeaderParameter['Content-Type'] = 'application/json';
773
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
774
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
775
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
776
+ localVarRequestOptions.data = serializeDataIfNeeded(updateOrganizationRole, localVarRequestOptions, configuration);
777
+ return {
778
+ url: toPathString(localVarUrlObj),
779
+ options: localVarRequestOptions,
780
+ };
781
+ }),
782
+ /**
783
+ *
784
+ * @summary Update role for organization member
785
+ * @param {string} organizationId Organization ID
786
+ * @param {string} userId User ID
787
+ * @param {UpdateOrganizationMemberRole} updateOrganizationMemberRole
788
+ * @param {*} [options] Override http request option.
789
+ * @throws {RequiredError}
790
+ */
791
+ updateRoleForOrganizationMember: (organizationId_1, userId_1, updateOrganizationMemberRole_1, ...args_1) => __awaiter(this, [organizationId_1, userId_1, updateOrganizationMemberRole_1, ...args_1], void 0, function* (organizationId, userId, updateOrganizationMemberRole, options = {}) {
792
+ // verify required parameter 'organizationId' is not null or undefined
793
+ assertParamExists('updateRoleForOrganizationMember', 'organizationId', organizationId);
794
+ // verify required parameter 'userId' is not null or undefined
795
+ assertParamExists('updateRoleForOrganizationMember', 'userId', userId);
796
+ // verify required parameter 'updateOrganizationMemberRole' is not null or undefined
797
+ assertParamExists('updateRoleForOrganizationMember', 'updateOrganizationMemberRole', updateOrganizationMemberRole);
798
+ const localVarPath = `/organizations/{organizationId}/users/{userId}/role`
799
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
800
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
801
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
802
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
803
+ let baseOptions;
804
+ if (configuration) {
805
+ baseOptions = configuration.baseOptions;
806
+ }
807
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
808
+ const localVarHeaderParameter = {};
809
+ const localVarQueryParameter = {};
810
+ // authentication oauth2 required
811
+ // oauth required
812
+ yield setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
813
+ localVarHeaderParameter['Content-Type'] = 'application/json';
814
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
815
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
816
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
817
+ localVarRequestOptions.data = serializeDataIfNeeded(updateOrganizationMemberRole, localVarRequestOptions, configuration);
818
+ return {
819
+ url: toPathString(localVarUrlObj),
820
+ options: localVarRequestOptions,
821
+ };
822
+ }),
823
+ };
824
+ };
825
+ /**
826
+ * OrganizationsApi - functional programming interface
827
+ * @export
828
+ */
829
+ export const OrganizationsApiFp = function (configuration) {
830
+ const localVarAxiosParamCreator = OrganizationsApiAxiosParamCreator(configuration);
831
+ return {
832
+ /**
833
+ *
834
+ * @summary Accept organization invitation
835
+ * @param {string} invitationId Invitation ID
836
+ * @param {*} [options] Override http request option.
837
+ * @throws {RequiredError}
838
+ */
839
+ acceptOrganizationInvitation(invitationId, options) {
840
+ return __awaiter(this, void 0, void 0, function* () {
841
+ var _a, _b, _c;
842
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.acceptOrganizationInvitation(invitationId, options);
843
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
844
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.acceptOrganizationInvitation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
845
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
846
+ });
847
+ },
848
+ /**
849
+ *
850
+ * @summary Cancel organization invitation
851
+ * @param {string} organizationId Organization ID
852
+ * @param {string} invitationId Invitation ID
853
+ * @param {*} [options] Override http request option.
854
+ * @throws {RequiredError}
855
+ */
856
+ cancelOrganizationInvitation(organizationId, invitationId, options) {
857
+ return __awaiter(this, void 0, void 0, function* () {
858
+ var _a, _b, _c;
859
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelOrganizationInvitation(organizationId, invitationId, options);
860
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
861
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.cancelOrganizationInvitation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
862
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
863
+ });
864
+ },
865
+ /**
866
+ *
867
+ * @summary Create organization
868
+ * @param {CreateOrganization} createOrganization
869
+ * @param {*} [options] Override http request option.
870
+ * @throws {RequiredError}
871
+ */
872
+ createOrganization(createOrganization, options) {
873
+ return __awaiter(this, void 0, void 0, function* () {
874
+ var _a, _b, _c;
875
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrganization(createOrganization, options);
876
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
877
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.createOrganization']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
878
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
879
+ });
880
+ },
881
+ /**
882
+ *
883
+ * @summary Create organization invitation
884
+ * @param {string} organizationId Organization ID
885
+ * @param {CreateOrganizationInvitation} createOrganizationInvitation
886
+ * @param {*} [options] Override http request option.
887
+ * @throws {RequiredError}
888
+ */
889
+ createOrganizationInvitation(organizationId, createOrganizationInvitation, options) {
890
+ return __awaiter(this, void 0, void 0, function* () {
891
+ var _a, _b, _c;
892
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrganizationInvitation(organizationId, createOrganizationInvitation, options);
893
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
894
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.createOrganizationInvitation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
895
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
896
+ });
897
+ },
898
+ /**
899
+ *
900
+ * @summary Create organization role
901
+ * @param {string} organizationId Organization ID
902
+ * @param {CreateOrganizationRole} createOrganizationRole
903
+ * @param {*} [options] Override http request option.
904
+ * @throws {RequiredError}
905
+ */
906
+ createOrganizationRole(organizationId, createOrganizationRole, options) {
907
+ return __awaiter(this, void 0, void 0, function* () {
908
+ var _a, _b, _c;
909
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createOrganizationRole(organizationId, createOrganizationRole, options);
910
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
911
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.createOrganizationRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
912
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
913
+ });
914
+ },
915
+ /**
916
+ *
917
+ * @summary Decline organization invitation
918
+ * @param {string} invitationId Invitation ID
919
+ * @param {*} [options] Override http request option.
920
+ * @throws {RequiredError}
921
+ */
922
+ declineOrganizationInvitation(invitationId, options) {
923
+ return __awaiter(this, void 0, void 0, function* () {
924
+ var _a, _b, _c;
925
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.declineOrganizationInvitation(invitationId, options);
926
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
927
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.declineOrganizationInvitation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
928
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
929
+ });
930
+ },
931
+ /**
932
+ *
933
+ * @summary Delete organization
934
+ * @param {string} organizationId Organization ID
935
+ * @param {*} [options] Override http request option.
936
+ * @throws {RequiredError}
937
+ */
938
+ deleteOrganization(organizationId, options) {
939
+ return __awaiter(this, void 0, void 0, function* () {
940
+ var _a, _b, _c;
941
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteOrganization(organizationId, options);
942
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
943
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.deleteOrganization']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
944
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
945
+ });
946
+ },
947
+ /**
948
+ *
949
+ * @summary Delete organization member
950
+ * @param {string} organizationId Organization ID
951
+ * @param {string} userId User ID
952
+ * @param {*} [options] Override http request option.
953
+ * @throws {RequiredError}
954
+ */
955
+ deleteOrganizationMember(organizationId, userId, options) {
956
+ return __awaiter(this, void 0, void 0, function* () {
957
+ var _a, _b, _c;
958
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteOrganizationMember(organizationId, userId, options);
959
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
960
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.deleteOrganizationMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
961
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
962
+ });
963
+ },
964
+ /**
965
+ *
966
+ * @summary Delete organization role
967
+ * @param {string} organizationId Organization ID
968
+ * @param {string} roleId Role ID
969
+ * @param {*} [options] Override http request option.
970
+ * @throws {RequiredError}
971
+ */
972
+ deleteOrganizationRole(organizationId, roleId, options) {
973
+ return __awaiter(this, void 0, void 0, function* () {
974
+ var _a, _b, _c;
975
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteOrganizationRole(organizationId, roleId, options);
976
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
977
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.deleteOrganizationRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
978
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
979
+ });
980
+ },
981
+ /**
982
+ *
983
+ * @summary Get organization by ID
984
+ * @param {string} organizationId Organization ID
985
+ * @param {*} [options] Override http request option.
986
+ * @throws {RequiredError}
987
+ */
988
+ getOrganization(organizationId, options) {
989
+ return __awaiter(this, void 0, void 0, function* () {
990
+ var _a, _b, _c;
991
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganization(organizationId, options);
992
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
993
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.getOrganization']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
994
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
995
+ });
996
+ },
997
+ /**
998
+ *
999
+ * @summary Get count of organization invitations for authenticated user
1000
+ * @param {*} [options] Override http request option.
1001
+ * @throws {RequiredError}
1002
+ */
1003
+ getOrganizationInvitationsCountForAuthenticatedUser(options) {
1004
+ return __awaiter(this, void 0, void 0, function* () {
1005
+ var _a, _b, _c;
1006
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationInvitationsCountForAuthenticatedUser(options);
1007
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1008
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.getOrganizationInvitationsCountForAuthenticatedUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1009
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1010
+ });
1011
+ },
1012
+ /**
1013
+ *
1014
+ * @summary Get organization current usage overview
1015
+ * @param {string} organizationId Organization ID
1016
+ * @param {*} [options] Override http request option.
1017
+ * @throws {RequiredError}
1018
+ */
1019
+ getOrganizationUsageOverview(organizationId, options) {
1020
+ return __awaiter(this, void 0, void 0, function* () {
1021
+ var _a, _b, _c;
1022
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationUsageOverview(organizationId, options);
1023
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1024
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.getOrganizationUsageOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1025
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1026
+ });
1027
+ },
1028
+ /**
1029
+ *
1030
+ * @summary Leave organization
1031
+ * @param {string} organizationId Organization ID
1032
+ * @param {*} [options] Override http request option.
1033
+ * @throws {RequiredError}
1034
+ */
1035
+ leaveOrganization(organizationId, options) {
1036
+ return __awaiter(this, void 0, void 0, function* () {
1037
+ var _a, _b, _c;
1038
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.leaveOrganization(organizationId, options);
1039
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1040
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.leaveOrganization']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1041
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1042
+ });
1043
+ },
1044
+ /**
1045
+ *
1046
+ * @summary List pending organization invitations
1047
+ * @param {string} organizationId Organization ID
1048
+ * @param {*} [options] Override http request option.
1049
+ * @throws {RequiredError}
1050
+ */
1051
+ listOrganizationInvitations(organizationId, options) {
1052
+ return __awaiter(this, void 0, void 0, function* () {
1053
+ var _a, _b, _c;
1054
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrganizationInvitations(organizationId, options);
1055
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1056
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.listOrganizationInvitations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1057
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1058
+ });
1059
+ },
1060
+ /**
1061
+ *
1062
+ * @summary List organization invitations for authenticated user
1063
+ * @param {*} [options] Override http request option.
1064
+ * @throws {RequiredError}
1065
+ */
1066
+ listOrganizationInvitationsForAuthenticatedUser(options) {
1067
+ return __awaiter(this, void 0, void 0, function* () {
1068
+ var _a, _b, _c;
1069
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrganizationInvitationsForAuthenticatedUser(options);
1070
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1071
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.listOrganizationInvitationsForAuthenticatedUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1072
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1073
+ });
1074
+ },
1075
+ /**
1076
+ *
1077
+ * @summary List organization members
1078
+ * @param {string} organizationId Organization ID
1079
+ * @param {*} [options] Override http request option.
1080
+ * @throws {RequiredError}
1081
+ */
1082
+ listOrganizationMembers(organizationId, options) {
1083
+ return __awaiter(this, void 0, void 0, function* () {
1084
+ var _a, _b, _c;
1085
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrganizationMembers(organizationId, options);
1086
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1087
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.listOrganizationMembers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1088
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1089
+ });
1090
+ },
1091
+ /**
1092
+ *
1093
+ * @summary List organization roles
1094
+ * @param {string} organizationId Organization ID
1095
+ * @param {*} [options] Override http request option.
1096
+ * @throws {RequiredError}
1097
+ */
1098
+ listOrganizationRoles(organizationId, options) {
1099
+ return __awaiter(this, void 0, void 0, function* () {
1100
+ var _a, _b, _c;
1101
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrganizationRoles(organizationId, options);
1102
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1103
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.listOrganizationRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1104
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1105
+ });
1106
+ },
1107
+ /**
1108
+ *
1109
+ * @summary List organizations
1110
+ * @param {*} [options] Override http request option.
1111
+ * @throws {RequiredError}
1112
+ */
1113
+ listOrganizations(options) {
1114
+ return __awaiter(this, void 0, void 0, function* () {
1115
+ var _a, _b, _c;
1116
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listOrganizations(options);
1117
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1118
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.listOrganizations']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1119
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1120
+ });
1121
+ },
1122
+ /**
1123
+ *
1124
+ * @summary Update assigned roles to organization member
1125
+ * @param {string} organizationId Organization ID
1126
+ * @param {string} userId User ID
1127
+ * @param {UpdateAssignedOrganizationRoles} updateAssignedOrganizationRoles
1128
+ * @param {*} [options] Override http request option.
1129
+ * @throws {RequiredError}
1130
+ */
1131
+ updateAssignedOrganizationRoles(organizationId, userId, updateAssignedOrganizationRoles, options) {
1132
+ return __awaiter(this, void 0, void 0, function* () {
1133
+ var _a, _b, _c;
1134
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAssignedOrganizationRoles(organizationId, userId, updateAssignedOrganizationRoles, options);
1135
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1136
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.updateAssignedOrganizationRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1137
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1138
+ });
1139
+ },
1140
+ /**
1141
+ *
1142
+ * @summary Update organization invitation
1143
+ * @param {string} organizationId Organization ID
1144
+ * @param {string} invitationId Invitation ID
1145
+ * @param {UpdateOrganizationInvitation} updateOrganizationInvitation
1146
+ * @param {*} [options] Override http request option.
1147
+ * @throws {RequiredError}
1148
+ */
1149
+ updateOrganizationInvitation(organizationId, invitationId, updateOrganizationInvitation, options) {
1150
+ return __awaiter(this, void 0, void 0, function* () {
1151
+ var _a, _b, _c;
1152
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateOrganizationInvitation(organizationId, invitationId, updateOrganizationInvitation, options);
1153
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1154
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.updateOrganizationInvitation']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1155
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1156
+ });
1157
+ },
1158
+ /**
1159
+ *
1160
+ * @summary Update organization quota
1161
+ * @param {string} organizationId Organization ID
1162
+ * @param {UpdateOrganizationQuota} updateOrganizationQuota
1163
+ * @param {*} [options] Override http request option.
1164
+ * @throws {RequiredError}
1165
+ */
1166
+ updateOrganizationQuota(organizationId, updateOrganizationQuota, options) {
1167
+ return __awaiter(this, void 0, void 0, function* () {
1168
+ var _a, _b, _c;
1169
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateOrganizationQuota(organizationId, updateOrganizationQuota, options);
1170
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1171
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.updateOrganizationQuota']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1172
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1173
+ });
1174
+ },
1175
+ /**
1176
+ *
1177
+ * @summary Update organization role
1178
+ * @param {string} organizationId Organization ID
1179
+ * @param {string} roleId Role ID
1180
+ * @param {UpdateOrganizationRole} updateOrganizationRole
1181
+ * @param {*} [options] Override http request option.
1182
+ * @throws {RequiredError}
1183
+ */
1184
+ updateOrganizationRole(organizationId, roleId, updateOrganizationRole, options) {
1185
+ return __awaiter(this, void 0, void 0, function* () {
1186
+ var _a, _b, _c;
1187
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateOrganizationRole(organizationId, roleId, updateOrganizationRole, options);
1188
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1189
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.updateOrganizationRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1190
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1191
+ });
1192
+ },
1193
+ /**
1194
+ *
1195
+ * @summary Update role for organization member
1196
+ * @param {string} organizationId Organization ID
1197
+ * @param {string} userId User ID
1198
+ * @param {UpdateOrganizationMemberRole} updateOrganizationMemberRole
1199
+ * @param {*} [options] Override http request option.
1200
+ * @throws {RequiredError}
1201
+ */
1202
+ updateRoleForOrganizationMember(organizationId, userId, updateOrganizationMemberRole, options) {
1203
+ return __awaiter(this, void 0, void 0, function* () {
1204
+ var _a, _b, _c;
1205
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateRoleForOrganizationMember(organizationId, userId, updateOrganizationMemberRole, options);
1206
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1207
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.updateRoleForOrganizationMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1208
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1209
+ });
1210
+ },
1211
+ };
1212
+ };
1213
+ /**
1214
+ * OrganizationsApi - factory interface
1215
+ * @export
1216
+ */
1217
+ export const OrganizationsApiFactory = function (configuration, basePath, axios) {
1218
+ const localVarFp = OrganizationsApiFp(configuration);
1219
+ return {
1220
+ /**
1221
+ *
1222
+ * @summary Accept organization invitation
1223
+ * @param {string} invitationId Invitation ID
1224
+ * @param {*} [options] Override http request option.
1225
+ * @throws {RequiredError}
1226
+ */
1227
+ acceptOrganizationInvitation(invitationId, options) {
1228
+ return localVarFp.acceptOrganizationInvitation(invitationId, options).then((request) => request(axios, basePath));
1229
+ },
1230
+ /**
1231
+ *
1232
+ * @summary Cancel organization invitation
1233
+ * @param {string} organizationId Organization ID
1234
+ * @param {string} invitationId Invitation ID
1235
+ * @param {*} [options] Override http request option.
1236
+ * @throws {RequiredError}
1237
+ */
1238
+ cancelOrganizationInvitation(organizationId, invitationId, options) {
1239
+ return localVarFp.cancelOrganizationInvitation(organizationId, invitationId, options).then((request) => request(axios, basePath));
1240
+ },
1241
+ /**
1242
+ *
1243
+ * @summary Create organization
1244
+ * @param {CreateOrganization} createOrganization
1245
+ * @param {*} [options] Override http request option.
1246
+ * @throws {RequiredError}
1247
+ */
1248
+ createOrganization(createOrganization, options) {
1249
+ return localVarFp.createOrganization(createOrganization, options).then((request) => request(axios, basePath));
1250
+ },
1251
+ /**
1252
+ *
1253
+ * @summary Create organization invitation
1254
+ * @param {string} organizationId Organization ID
1255
+ * @param {CreateOrganizationInvitation} createOrganizationInvitation
1256
+ * @param {*} [options] Override http request option.
1257
+ * @throws {RequiredError}
1258
+ */
1259
+ createOrganizationInvitation(organizationId, createOrganizationInvitation, options) {
1260
+ return localVarFp.createOrganizationInvitation(organizationId, createOrganizationInvitation, options).then((request) => request(axios, basePath));
1261
+ },
1262
+ /**
1263
+ *
1264
+ * @summary Create organization role
1265
+ * @param {string} organizationId Organization ID
1266
+ * @param {CreateOrganizationRole} createOrganizationRole
1267
+ * @param {*} [options] Override http request option.
1268
+ * @throws {RequiredError}
1269
+ */
1270
+ createOrganizationRole(organizationId, createOrganizationRole, options) {
1271
+ return localVarFp.createOrganizationRole(organizationId, createOrganizationRole, options).then((request) => request(axios, basePath));
1272
+ },
1273
+ /**
1274
+ *
1275
+ * @summary Decline organization invitation
1276
+ * @param {string} invitationId Invitation ID
1277
+ * @param {*} [options] Override http request option.
1278
+ * @throws {RequiredError}
1279
+ */
1280
+ declineOrganizationInvitation(invitationId, options) {
1281
+ return localVarFp.declineOrganizationInvitation(invitationId, options).then((request) => request(axios, basePath));
1282
+ },
1283
+ /**
1284
+ *
1285
+ * @summary Delete organization
1286
+ * @param {string} organizationId Organization ID
1287
+ * @param {*} [options] Override http request option.
1288
+ * @throws {RequiredError}
1289
+ */
1290
+ deleteOrganization(organizationId, options) {
1291
+ return localVarFp.deleteOrganization(organizationId, options).then((request) => request(axios, basePath));
1292
+ },
1293
+ /**
1294
+ *
1295
+ * @summary Delete organization member
1296
+ * @param {string} organizationId Organization ID
1297
+ * @param {string} userId User ID
1298
+ * @param {*} [options] Override http request option.
1299
+ * @throws {RequiredError}
1300
+ */
1301
+ deleteOrganizationMember(organizationId, userId, options) {
1302
+ return localVarFp.deleteOrganizationMember(organizationId, userId, options).then((request) => request(axios, basePath));
1303
+ },
1304
+ /**
1305
+ *
1306
+ * @summary Delete organization role
1307
+ * @param {string} organizationId Organization ID
1308
+ * @param {string} roleId Role ID
1309
+ * @param {*} [options] Override http request option.
1310
+ * @throws {RequiredError}
1311
+ */
1312
+ deleteOrganizationRole(organizationId, roleId, options) {
1313
+ return localVarFp.deleteOrganizationRole(organizationId, roleId, options).then((request) => request(axios, basePath));
1314
+ },
1315
+ /**
1316
+ *
1317
+ * @summary Get organization by ID
1318
+ * @param {string} organizationId Organization ID
1319
+ * @param {*} [options] Override http request option.
1320
+ * @throws {RequiredError}
1321
+ */
1322
+ getOrganization(organizationId, options) {
1323
+ return localVarFp.getOrganization(organizationId, options).then((request) => request(axios, basePath));
1324
+ },
1325
+ /**
1326
+ *
1327
+ * @summary Get count of organization invitations for authenticated user
1328
+ * @param {*} [options] Override http request option.
1329
+ * @throws {RequiredError}
1330
+ */
1331
+ getOrganizationInvitationsCountForAuthenticatedUser(options) {
1332
+ return localVarFp.getOrganizationInvitationsCountForAuthenticatedUser(options).then((request) => request(axios, basePath));
1333
+ },
1334
+ /**
1335
+ *
1336
+ * @summary Get organization current usage overview
1337
+ * @param {string} organizationId Organization ID
1338
+ * @param {*} [options] Override http request option.
1339
+ * @throws {RequiredError}
1340
+ */
1341
+ getOrganizationUsageOverview(organizationId, options) {
1342
+ return localVarFp.getOrganizationUsageOverview(organizationId, options).then((request) => request(axios, basePath));
1343
+ },
1344
+ /**
1345
+ *
1346
+ * @summary Leave organization
1347
+ * @param {string} organizationId Organization ID
1348
+ * @param {*} [options] Override http request option.
1349
+ * @throws {RequiredError}
1350
+ */
1351
+ leaveOrganization(organizationId, options) {
1352
+ return localVarFp.leaveOrganization(organizationId, options).then((request) => request(axios, basePath));
1353
+ },
1354
+ /**
1355
+ *
1356
+ * @summary List pending organization invitations
1357
+ * @param {string} organizationId Organization ID
1358
+ * @param {*} [options] Override http request option.
1359
+ * @throws {RequiredError}
1360
+ */
1361
+ listOrganizationInvitations(organizationId, options) {
1362
+ return localVarFp.listOrganizationInvitations(organizationId, options).then((request) => request(axios, basePath));
1363
+ },
1364
+ /**
1365
+ *
1366
+ * @summary List organization invitations for authenticated user
1367
+ * @param {*} [options] Override http request option.
1368
+ * @throws {RequiredError}
1369
+ */
1370
+ listOrganizationInvitationsForAuthenticatedUser(options) {
1371
+ return localVarFp.listOrganizationInvitationsForAuthenticatedUser(options).then((request) => request(axios, basePath));
1372
+ },
1373
+ /**
1374
+ *
1375
+ * @summary List organization members
1376
+ * @param {string} organizationId Organization ID
1377
+ * @param {*} [options] Override http request option.
1378
+ * @throws {RequiredError}
1379
+ */
1380
+ listOrganizationMembers(organizationId, options) {
1381
+ return localVarFp.listOrganizationMembers(organizationId, options).then((request) => request(axios, basePath));
1382
+ },
1383
+ /**
1384
+ *
1385
+ * @summary List organization roles
1386
+ * @param {string} organizationId Organization ID
1387
+ * @param {*} [options] Override http request option.
1388
+ * @throws {RequiredError}
1389
+ */
1390
+ listOrganizationRoles(organizationId, options) {
1391
+ return localVarFp.listOrganizationRoles(organizationId, options).then((request) => request(axios, basePath));
1392
+ },
1393
+ /**
1394
+ *
1395
+ * @summary List organizations
1396
+ * @param {*} [options] Override http request option.
1397
+ * @throws {RequiredError}
1398
+ */
1399
+ listOrganizations(options) {
1400
+ return localVarFp.listOrganizations(options).then((request) => request(axios, basePath));
1401
+ },
1402
+ /**
1403
+ *
1404
+ * @summary Update assigned roles to organization member
1405
+ * @param {string} organizationId Organization ID
1406
+ * @param {string} userId User ID
1407
+ * @param {UpdateAssignedOrganizationRoles} updateAssignedOrganizationRoles
1408
+ * @param {*} [options] Override http request option.
1409
+ * @throws {RequiredError}
1410
+ */
1411
+ updateAssignedOrganizationRoles(organizationId, userId, updateAssignedOrganizationRoles, options) {
1412
+ return localVarFp.updateAssignedOrganizationRoles(organizationId, userId, updateAssignedOrganizationRoles, options).then((request) => request(axios, basePath));
1413
+ },
1414
+ /**
1415
+ *
1416
+ * @summary Update organization invitation
1417
+ * @param {string} organizationId Organization ID
1418
+ * @param {string} invitationId Invitation ID
1419
+ * @param {UpdateOrganizationInvitation} updateOrganizationInvitation
1420
+ * @param {*} [options] Override http request option.
1421
+ * @throws {RequiredError}
1422
+ */
1423
+ updateOrganizationInvitation(organizationId, invitationId, updateOrganizationInvitation, options) {
1424
+ return localVarFp.updateOrganizationInvitation(organizationId, invitationId, updateOrganizationInvitation, options).then((request) => request(axios, basePath));
1425
+ },
1426
+ /**
1427
+ *
1428
+ * @summary Update organization quota
1429
+ * @param {string} organizationId Organization ID
1430
+ * @param {UpdateOrganizationQuota} updateOrganizationQuota
1431
+ * @param {*} [options] Override http request option.
1432
+ * @throws {RequiredError}
1433
+ */
1434
+ updateOrganizationQuota(organizationId, updateOrganizationQuota, options) {
1435
+ return localVarFp.updateOrganizationQuota(organizationId, updateOrganizationQuota, options).then((request) => request(axios, basePath));
1436
+ },
1437
+ /**
1438
+ *
1439
+ * @summary Update organization role
1440
+ * @param {string} organizationId Organization ID
1441
+ * @param {string} roleId Role ID
1442
+ * @param {UpdateOrganizationRole} updateOrganizationRole
1443
+ * @param {*} [options] Override http request option.
1444
+ * @throws {RequiredError}
1445
+ */
1446
+ updateOrganizationRole(organizationId, roleId, updateOrganizationRole, options) {
1447
+ return localVarFp.updateOrganizationRole(organizationId, roleId, updateOrganizationRole, options).then((request) => request(axios, basePath));
1448
+ },
1449
+ /**
1450
+ *
1451
+ * @summary Update role for organization member
1452
+ * @param {string} organizationId Organization ID
1453
+ * @param {string} userId User ID
1454
+ * @param {UpdateOrganizationMemberRole} updateOrganizationMemberRole
1455
+ * @param {*} [options] Override http request option.
1456
+ * @throws {RequiredError}
1457
+ */
1458
+ updateRoleForOrganizationMember(organizationId, userId, updateOrganizationMemberRole, options) {
1459
+ return localVarFp.updateRoleForOrganizationMember(organizationId, userId, updateOrganizationMemberRole, options).then((request) => request(axios, basePath));
1460
+ },
1461
+ };
1462
+ };
1463
+ /**
1464
+ * OrganizationsApi - object-oriented interface
1465
+ * @export
1466
+ * @class OrganizationsApi
1467
+ * @extends {BaseAPI}
1468
+ */
1469
+ export class OrganizationsApi extends BaseAPI {
1470
+ /**
1471
+ *
1472
+ * @summary Accept organization invitation
1473
+ * @param {string} invitationId Invitation ID
1474
+ * @param {*} [options] Override http request option.
1475
+ * @throws {RequiredError}
1476
+ * @memberof OrganizationsApi
1477
+ */
1478
+ acceptOrganizationInvitation(invitationId, options) {
1479
+ return OrganizationsApiFp(this.configuration).acceptOrganizationInvitation(invitationId, options).then((request) => request(this.axios, this.basePath));
1480
+ }
1481
+ /**
1482
+ *
1483
+ * @summary Cancel organization invitation
1484
+ * @param {string} organizationId Organization ID
1485
+ * @param {string} invitationId Invitation ID
1486
+ * @param {*} [options] Override http request option.
1487
+ * @throws {RequiredError}
1488
+ * @memberof OrganizationsApi
1489
+ */
1490
+ cancelOrganizationInvitation(organizationId, invitationId, options) {
1491
+ return OrganizationsApiFp(this.configuration).cancelOrganizationInvitation(organizationId, invitationId, options).then((request) => request(this.axios, this.basePath));
1492
+ }
1493
+ /**
1494
+ *
1495
+ * @summary Create organization
1496
+ * @param {CreateOrganization} createOrganization
1497
+ * @param {*} [options] Override http request option.
1498
+ * @throws {RequiredError}
1499
+ * @memberof OrganizationsApi
1500
+ */
1501
+ createOrganization(createOrganization, options) {
1502
+ return OrganizationsApiFp(this.configuration).createOrganization(createOrganization, options).then((request) => request(this.axios, this.basePath));
1503
+ }
1504
+ /**
1505
+ *
1506
+ * @summary Create organization invitation
1507
+ * @param {string} organizationId Organization ID
1508
+ * @param {CreateOrganizationInvitation} createOrganizationInvitation
1509
+ * @param {*} [options] Override http request option.
1510
+ * @throws {RequiredError}
1511
+ * @memberof OrganizationsApi
1512
+ */
1513
+ createOrganizationInvitation(organizationId, createOrganizationInvitation, options) {
1514
+ return OrganizationsApiFp(this.configuration).createOrganizationInvitation(organizationId, createOrganizationInvitation, options).then((request) => request(this.axios, this.basePath));
1515
+ }
1516
+ /**
1517
+ *
1518
+ * @summary Create organization role
1519
+ * @param {string} organizationId Organization ID
1520
+ * @param {CreateOrganizationRole} createOrganizationRole
1521
+ * @param {*} [options] Override http request option.
1522
+ * @throws {RequiredError}
1523
+ * @memberof OrganizationsApi
1524
+ */
1525
+ createOrganizationRole(organizationId, createOrganizationRole, options) {
1526
+ return OrganizationsApiFp(this.configuration).createOrganizationRole(organizationId, createOrganizationRole, options).then((request) => request(this.axios, this.basePath));
1527
+ }
1528
+ /**
1529
+ *
1530
+ * @summary Decline organization invitation
1531
+ * @param {string} invitationId Invitation ID
1532
+ * @param {*} [options] Override http request option.
1533
+ * @throws {RequiredError}
1534
+ * @memberof OrganizationsApi
1535
+ */
1536
+ declineOrganizationInvitation(invitationId, options) {
1537
+ return OrganizationsApiFp(this.configuration).declineOrganizationInvitation(invitationId, options).then((request) => request(this.axios, this.basePath));
1538
+ }
1539
+ /**
1540
+ *
1541
+ * @summary Delete organization
1542
+ * @param {string} organizationId Organization ID
1543
+ * @param {*} [options] Override http request option.
1544
+ * @throws {RequiredError}
1545
+ * @memberof OrganizationsApi
1546
+ */
1547
+ deleteOrganization(organizationId, options) {
1548
+ return OrganizationsApiFp(this.configuration).deleteOrganization(organizationId, options).then((request) => request(this.axios, this.basePath));
1549
+ }
1550
+ /**
1551
+ *
1552
+ * @summary Delete organization member
1553
+ * @param {string} organizationId Organization ID
1554
+ * @param {string} userId User ID
1555
+ * @param {*} [options] Override http request option.
1556
+ * @throws {RequiredError}
1557
+ * @memberof OrganizationsApi
1558
+ */
1559
+ deleteOrganizationMember(organizationId, userId, options) {
1560
+ return OrganizationsApiFp(this.configuration).deleteOrganizationMember(organizationId, userId, options).then((request) => request(this.axios, this.basePath));
1561
+ }
1562
+ /**
1563
+ *
1564
+ * @summary Delete organization role
1565
+ * @param {string} organizationId Organization ID
1566
+ * @param {string} roleId Role ID
1567
+ * @param {*} [options] Override http request option.
1568
+ * @throws {RequiredError}
1569
+ * @memberof OrganizationsApi
1570
+ */
1571
+ deleteOrganizationRole(organizationId, roleId, options) {
1572
+ return OrganizationsApiFp(this.configuration).deleteOrganizationRole(organizationId, roleId, options).then((request) => request(this.axios, this.basePath));
1573
+ }
1574
+ /**
1575
+ *
1576
+ * @summary Get organization by ID
1577
+ * @param {string} organizationId Organization ID
1578
+ * @param {*} [options] Override http request option.
1579
+ * @throws {RequiredError}
1580
+ * @memberof OrganizationsApi
1581
+ */
1582
+ getOrganization(organizationId, options) {
1583
+ return OrganizationsApiFp(this.configuration).getOrganization(organizationId, options).then((request) => request(this.axios, this.basePath));
1584
+ }
1585
+ /**
1586
+ *
1587
+ * @summary Get count of organization invitations for authenticated user
1588
+ * @param {*} [options] Override http request option.
1589
+ * @throws {RequiredError}
1590
+ * @memberof OrganizationsApi
1591
+ */
1592
+ getOrganizationInvitationsCountForAuthenticatedUser(options) {
1593
+ return OrganizationsApiFp(this.configuration).getOrganizationInvitationsCountForAuthenticatedUser(options).then((request) => request(this.axios, this.basePath));
1594
+ }
1595
+ /**
1596
+ *
1597
+ * @summary Get organization current usage overview
1598
+ * @param {string} organizationId Organization ID
1599
+ * @param {*} [options] Override http request option.
1600
+ * @throws {RequiredError}
1601
+ * @memberof OrganizationsApi
1602
+ */
1603
+ getOrganizationUsageOverview(organizationId, options) {
1604
+ return OrganizationsApiFp(this.configuration).getOrganizationUsageOverview(organizationId, options).then((request) => request(this.axios, this.basePath));
1605
+ }
1606
+ /**
1607
+ *
1608
+ * @summary Leave organization
1609
+ * @param {string} organizationId Organization ID
1610
+ * @param {*} [options] Override http request option.
1611
+ * @throws {RequiredError}
1612
+ * @memberof OrganizationsApi
1613
+ */
1614
+ leaveOrganization(organizationId, options) {
1615
+ return OrganizationsApiFp(this.configuration).leaveOrganization(organizationId, options).then((request) => request(this.axios, this.basePath));
1616
+ }
1617
+ /**
1618
+ *
1619
+ * @summary List pending organization invitations
1620
+ * @param {string} organizationId Organization ID
1621
+ * @param {*} [options] Override http request option.
1622
+ * @throws {RequiredError}
1623
+ * @memberof OrganizationsApi
1624
+ */
1625
+ listOrganizationInvitations(organizationId, options) {
1626
+ return OrganizationsApiFp(this.configuration).listOrganizationInvitations(organizationId, options).then((request) => request(this.axios, this.basePath));
1627
+ }
1628
+ /**
1629
+ *
1630
+ * @summary List organization invitations for authenticated user
1631
+ * @param {*} [options] Override http request option.
1632
+ * @throws {RequiredError}
1633
+ * @memberof OrganizationsApi
1634
+ */
1635
+ listOrganizationInvitationsForAuthenticatedUser(options) {
1636
+ return OrganizationsApiFp(this.configuration).listOrganizationInvitationsForAuthenticatedUser(options).then((request) => request(this.axios, this.basePath));
1637
+ }
1638
+ /**
1639
+ *
1640
+ * @summary List organization members
1641
+ * @param {string} organizationId Organization ID
1642
+ * @param {*} [options] Override http request option.
1643
+ * @throws {RequiredError}
1644
+ * @memberof OrganizationsApi
1645
+ */
1646
+ listOrganizationMembers(organizationId, options) {
1647
+ return OrganizationsApiFp(this.configuration).listOrganizationMembers(organizationId, options).then((request) => request(this.axios, this.basePath));
1648
+ }
1649
+ /**
1650
+ *
1651
+ * @summary List organization roles
1652
+ * @param {string} organizationId Organization ID
1653
+ * @param {*} [options] Override http request option.
1654
+ * @throws {RequiredError}
1655
+ * @memberof OrganizationsApi
1656
+ */
1657
+ listOrganizationRoles(organizationId, options) {
1658
+ return OrganizationsApiFp(this.configuration).listOrganizationRoles(organizationId, options).then((request) => request(this.axios, this.basePath));
1659
+ }
1660
+ /**
1661
+ *
1662
+ * @summary List organizations
1663
+ * @param {*} [options] Override http request option.
1664
+ * @throws {RequiredError}
1665
+ * @memberof OrganizationsApi
1666
+ */
1667
+ listOrganizations(options) {
1668
+ return OrganizationsApiFp(this.configuration).listOrganizations(options).then((request) => request(this.axios, this.basePath));
1669
+ }
1670
+ /**
1671
+ *
1672
+ * @summary Update assigned roles to organization member
1673
+ * @param {string} organizationId Organization ID
1674
+ * @param {string} userId User ID
1675
+ * @param {UpdateAssignedOrganizationRoles} updateAssignedOrganizationRoles
1676
+ * @param {*} [options] Override http request option.
1677
+ * @throws {RequiredError}
1678
+ * @memberof OrganizationsApi
1679
+ */
1680
+ updateAssignedOrganizationRoles(organizationId, userId, updateAssignedOrganizationRoles, options) {
1681
+ return OrganizationsApiFp(this.configuration).updateAssignedOrganizationRoles(organizationId, userId, updateAssignedOrganizationRoles, options).then((request) => request(this.axios, this.basePath));
1682
+ }
1683
+ /**
1684
+ *
1685
+ * @summary Update organization invitation
1686
+ * @param {string} organizationId Organization ID
1687
+ * @param {string} invitationId Invitation ID
1688
+ * @param {UpdateOrganizationInvitation} updateOrganizationInvitation
1689
+ * @param {*} [options] Override http request option.
1690
+ * @throws {RequiredError}
1691
+ * @memberof OrganizationsApi
1692
+ */
1693
+ updateOrganizationInvitation(organizationId, invitationId, updateOrganizationInvitation, options) {
1694
+ return OrganizationsApiFp(this.configuration).updateOrganizationInvitation(organizationId, invitationId, updateOrganizationInvitation, options).then((request) => request(this.axios, this.basePath));
1695
+ }
1696
+ /**
1697
+ *
1698
+ * @summary Update organization quota
1699
+ * @param {string} organizationId Organization ID
1700
+ * @param {UpdateOrganizationQuota} updateOrganizationQuota
1701
+ * @param {*} [options] Override http request option.
1702
+ * @throws {RequiredError}
1703
+ * @memberof OrganizationsApi
1704
+ */
1705
+ updateOrganizationQuota(organizationId, updateOrganizationQuota, options) {
1706
+ return OrganizationsApiFp(this.configuration).updateOrganizationQuota(organizationId, updateOrganizationQuota, options).then((request) => request(this.axios, this.basePath));
1707
+ }
1708
+ /**
1709
+ *
1710
+ * @summary Update organization role
1711
+ * @param {string} organizationId Organization ID
1712
+ * @param {string} roleId Role ID
1713
+ * @param {UpdateOrganizationRole} updateOrganizationRole
1714
+ * @param {*} [options] Override http request option.
1715
+ * @throws {RequiredError}
1716
+ * @memberof OrganizationsApi
1717
+ */
1718
+ updateOrganizationRole(organizationId, roleId, updateOrganizationRole, options) {
1719
+ return OrganizationsApiFp(this.configuration).updateOrganizationRole(organizationId, roleId, updateOrganizationRole, options).then((request) => request(this.axios, this.basePath));
1720
+ }
1721
+ /**
1722
+ *
1723
+ * @summary Update role for organization member
1724
+ * @param {string} organizationId Organization ID
1725
+ * @param {string} userId User ID
1726
+ * @param {UpdateOrganizationMemberRole} updateOrganizationMemberRole
1727
+ * @param {*} [options] Override http request option.
1728
+ * @throws {RequiredError}
1729
+ * @memberof OrganizationsApi
1730
+ */
1731
+ updateRoleForOrganizationMember(organizationId, userId, updateOrganizationMemberRole, options) {
1732
+ return OrganizationsApiFp(this.configuration).updateRoleForOrganizationMember(organizationId, userId, updateOrganizationMemberRole, options).then((request) => request(this.axios, this.basePath));
1733
+ }
1734
+ }