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