@daytonaio/api-client 0.15.0 → 0.17.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.
- package/.openapi-generator/FILES +5 -3
- package/.openapi-generator/VERSION +1 -1
- package/.openapi-generator-ignore +7 -0
- package/api/api-keys-api.ts +412 -324
- package/api/docker-registry-api.ts +731 -549
- package/api/images-api.ts +596 -346
- package/api/nodes-api.ts +259 -210
- package/api/organizations-api.ts +2504 -1671
- package/api/preview-api.ts +330 -0
- package/api/toolbox-api.ts +4651 -3186
- package/api/users-api.ts +317 -271
- package/api/workspace-api.ts +1536 -969
- package/api.ts +10 -12
- package/base.ts +35 -30
- package/common.ts +78 -66
- package/configuration.ts +102 -89
- package/dist/api/api-keys-api.js +66 -63
- package/dist/api/docker-registry-api.js +123 -107
- package/dist/api/images-api.d.ts +42 -0
- package/dist/api/images-api.js +161 -66
- package/dist/api/nodes-api.js +46 -47
- package/dist/api/organizations-api.d.ts +71 -0
- package/dist/api/organizations-api.js +560 -336
- package/dist/api/preview-api.d.ts +143 -0
- package/dist/api/preview-api.js +269 -0
- package/dist/api/toolbox-api.js +709 -569
- package/dist/api/users-api.js +49 -59
- package/dist/api/workspace-api.d.ts +51 -4
- package/dist/api/workspace-api.js +330 -190
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.js +6 -7
- package/dist/common.d.ts +3 -3
- package/dist/common.js +27 -45
- package/dist/configuration.js +2 -1
- package/dist/esm/api/api-keys-api.js +67 -64
- package/dist/esm/api/docker-registry-api.js +124 -108
- package/dist/esm/api/images-api.d.ts +42 -0
- package/dist/esm/api/images-api.js +162 -67
- package/dist/esm/api/nodes-api.js +47 -48
- package/dist/esm/api/organizations-api.d.ts +71 -0
- package/dist/esm/api/organizations-api.js +561 -337
- package/dist/esm/api/preview-api.d.ts +143 -0
- package/dist/esm/api/preview-api.js +262 -0
- package/dist/esm/api/toolbox-api.js +710 -570
- package/dist/esm/api/users-api.js +50 -60
- package/dist/esm/api/workspace-api.d.ts +51 -4
- package/dist/esm/api/workspace-api.js +331 -191
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/base.js +6 -7
- package/dist/esm/common.d.ts +3 -3
- package/dist/esm/common.js +28 -46
- package/dist/esm/configuration.js +2 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/esm/models/api-key-list.d.ts +12 -12
- package/dist/esm/models/api-key-list.js +6 -6
- package/dist/esm/models/api-key-response.d.ts +12 -12
- package/dist/esm/models/api-key-response.js +6 -6
- package/dist/esm/models/command.d.ts +3 -3
- package/dist/esm/models/completion-context.d.ts +2 -2
- package/dist/esm/models/completion-item.d.ts +7 -7
- package/dist/esm/models/completion-list.d.ts +2 -2
- package/dist/esm/models/create-api-key.d.ts +9 -9
- package/dist/esm/models/create-api-key.js +6 -6
- package/dist/esm/models/create-docker-registry.d.ts +8 -8
- package/dist/esm/models/create-docker-registry.js +1 -1
- package/dist/esm/models/create-image.d.ts +9 -3
- package/dist/esm/models/create-node.d.ts +13 -13
- package/dist/esm/models/create-node.js +2 -2
- package/dist/esm/models/create-organization-invitation.d.ts +6 -6
- package/dist/esm/models/create-organization-invitation.js +1 -1
- package/dist/esm/models/create-organization-quota.d.ts +11 -11
- package/dist/esm/models/create-organization-role.d.ts +10 -10
- package/dist/esm/models/create-organization-role.js +6 -6
- package/dist/esm/models/create-organization.d.ts +1 -67
- package/dist/esm/models/create-session-request.d.ts +1 -1
- package/dist/esm/models/create-user.d.ts +15 -4
- package/dist/esm/models/create-user.js +4 -1
- package/dist/esm/models/create-workspace.d.ts +14 -26
- package/dist/esm/models/create-workspace.js +2 -2
- package/dist/esm/models/docker-registry.d.ts +11 -11
- package/dist/esm/models/docker-registry.js +1 -1
- package/dist/esm/models/execute-request.d.ts +3 -3
- package/dist/esm/models/execute-response.d.ts +2 -2
- package/dist/esm/models/file-info.d.ts +8 -8
- package/dist/esm/models/file-status.d.ts +4 -4
- package/dist/esm/models/git-add-request.d.ts +2 -2
- package/dist/esm/models/git-branch-request.d.ts +2 -2
- package/dist/esm/models/git-clone-request.d.ts +6 -6
- package/dist/esm/models/git-commit-info.d.ts +5 -5
- package/dist/esm/models/git-commit-request.d.ts +4 -4
- package/dist/esm/models/git-commit-response.d.ts +1 -1
- package/dist/esm/models/git-repo-request.d.ts +3 -3
- package/dist/esm/models/git-status.d.ts +4 -4
- package/dist/esm/models/image-dto.d.ts +21 -15
- package/dist/esm/models/image-state.d.ts +1 -1
- package/dist/esm/models/image-state.js +1 -1
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/list-branch-response.d.ts +1 -1
- package/dist/esm/models/list-workspaces-labels-parameter.d.ts +26 -0
- package/dist/esm/models/list-workspaces-labels-parameter.js +14 -0
- package/dist/esm/models/lsp-completion-params.d.ts +5 -5
- package/dist/esm/models/lsp-document-request.d.ts +3 -3
- package/dist/esm/models/lsp-location.d.ts +2 -2
- package/dist/esm/models/lsp-server-request.d.ts +2 -2
- package/dist/esm/models/lsp-symbol.d.ts +3 -3
- package/dist/esm/models/match.d.ts +3 -3
- package/dist/esm/models/organization-invitation.d.ts +21 -15
- package/dist/esm/models/organization-invitation.js +2 -2
- package/dist/esm/models/organization-role.d.ts +16 -16
- package/dist/esm/models/organization-role.js +6 -6
- package/dist/esm/models/organization-suspension.d.ts +30 -0
- package/dist/esm/models/organization-suspension.js +14 -0
- package/dist/esm/models/organization-user.d.ts +11 -11
- package/dist/esm/models/organization-user.js +1 -1
- package/dist/esm/models/organization.d.ts +31 -7
- package/dist/esm/models/paginated-images-dto.d.ts +4 -4
- package/dist/esm/models/port-preview-url.d.ts +30 -0
- package/dist/esm/models/port-preview-url.js +14 -0
- package/dist/esm/models/position.d.ts +2 -2
- package/dist/esm/models/project-dir-response.d.ts +1 -1
- package/dist/esm/models/range.d.ts +2 -2
- package/dist/esm/models/registry-push-access-dto.d.ts +6 -6
- package/dist/esm/models/replace-request.d.ts +3 -3
- package/dist/esm/models/replace-result.d.ts +3 -3
- package/dist/esm/models/search-files-response.d.ts +1 -1
- package/dist/esm/models/session-execute-request.d.ts +9 -2
- package/dist/esm/models/session-execute-response.d.ts +3 -3
- package/dist/esm/models/session.d.ts +2 -2
- package/dist/esm/models/set-image-general-status.d.ts +24 -0
- package/dist/esm/models/set-image-general-status.js +14 -0
- package/dist/esm/models/toggle-state.d.ts +1 -1
- package/dist/esm/models/update-assigned-organization-roles.d.ts +1 -1
- package/dist/esm/models/update-docker-registry.d.ts +3 -3
- package/dist/esm/models/update-organization-invitation.d.ts +5 -5
- package/dist/esm/models/update-organization-invitation.js +1 -1
- package/dist/esm/models/update-organization-member-role.d.ts +2 -2
- package/dist/esm/models/update-organization-member-role.js +1 -1
- package/dist/esm/models/update-organization-quota.d.ts +11 -11
- package/dist/esm/models/update-organization-role.d.ts +10 -10
- package/dist/esm/models/update-organization-role.js +6 -6
- package/dist/esm/models/usage-overview.d.ts +15 -15
- package/dist/esm/models/user-public-key.d.ts +2 -2
- package/dist/esm/models/user.d.ts +4 -4
- package/dist/esm/models/workspace-info.d.ts +5 -4
- package/dist/esm/models/workspace-labels.d.ts +1 -1
- package/dist/esm/models/workspace-state.d.ts +2 -2
- package/dist/esm/models/workspace-state.js +2 -2
- package/dist/esm/models/workspace.d.ts +26 -19
- package/dist/esm/models/workspace.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/models/api-key-list.d.ts +12 -12
- package/dist/models/api-key-list.js +6 -6
- package/dist/models/api-key-response.d.ts +12 -12
- package/dist/models/api-key-response.js +6 -6
- package/dist/models/command.d.ts +3 -3
- package/dist/models/completion-context.d.ts +2 -2
- package/dist/models/completion-item.d.ts +7 -7
- package/dist/models/completion-list.d.ts +2 -2
- package/dist/models/create-api-key.d.ts +9 -9
- package/dist/models/create-api-key.js +6 -6
- package/dist/models/create-docker-registry.d.ts +8 -8
- package/dist/models/create-docker-registry.js +1 -1
- package/dist/models/create-image.d.ts +9 -3
- package/dist/models/create-node.d.ts +13 -13
- package/dist/models/create-node.js +2 -2
- package/dist/models/create-organization-invitation.d.ts +6 -6
- package/dist/models/create-organization-invitation.js +1 -1
- package/dist/models/create-organization-quota.d.ts +11 -11
- package/dist/models/create-organization-role.d.ts +10 -10
- package/dist/models/create-organization-role.js +6 -6
- package/dist/models/create-organization.d.ts +1 -67
- package/dist/models/create-session-request.d.ts +1 -1
- package/dist/models/create-user.d.ts +15 -4
- package/dist/models/create-user.js +5 -0
- package/dist/models/create-workspace.d.ts +14 -26
- package/dist/models/create-workspace.js +2 -2
- package/dist/models/docker-registry.d.ts +11 -11
- package/dist/models/docker-registry.js +1 -1
- package/dist/models/execute-request.d.ts +3 -3
- package/dist/models/execute-response.d.ts +2 -2
- package/dist/models/file-info.d.ts +8 -8
- package/dist/models/file-status.d.ts +4 -4
- package/dist/models/git-add-request.d.ts +2 -2
- package/dist/models/git-branch-request.d.ts +2 -2
- package/dist/models/git-clone-request.d.ts +6 -6
- package/dist/models/git-commit-info.d.ts +5 -5
- package/dist/models/git-commit-request.d.ts +4 -4
- package/dist/models/git-commit-response.d.ts +1 -1
- package/dist/models/git-repo-request.d.ts +3 -3
- package/dist/models/git-status.d.ts +4 -4
- package/dist/models/image-dto.d.ts +21 -15
- package/dist/models/image-state.d.ts +1 -1
- package/dist/models/image-state.js +1 -1
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/list-branch-response.d.ts +1 -1
- package/dist/models/list-workspaces-labels-parameter.d.ts +26 -0
- package/dist/models/list-workspaces-labels-parameter.js +15 -0
- package/dist/models/lsp-completion-params.d.ts +5 -5
- package/dist/models/lsp-document-request.d.ts +3 -3
- package/dist/models/lsp-location.d.ts +2 -2
- package/dist/models/lsp-server-request.d.ts +2 -2
- package/dist/models/lsp-symbol.d.ts +3 -3
- package/dist/models/match.d.ts +3 -3
- package/dist/models/organization-invitation.d.ts +21 -15
- package/dist/models/organization-invitation.js +2 -2
- package/dist/models/organization-role.d.ts +16 -16
- package/dist/models/organization-role.js +6 -6
- package/dist/models/organization-suspension.d.ts +30 -0
- package/dist/models/organization-suspension.js +15 -0
- package/dist/models/organization-user.d.ts +11 -11
- package/dist/models/organization-user.js +1 -1
- package/dist/models/organization.d.ts +31 -7
- package/dist/models/paginated-images-dto.d.ts +4 -4
- package/dist/models/port-preview-url.d.ts +30 -0
- package/dist/models/port-preview-url.js +15 -0
- package/dist/models/position.d.ts +2 -2
- package/dist/models/project-dir-response.d.ts +1 -1
- package/dist/models/range.d.ts +2 -2
- package/dist/models/registry-push-access-dto.d.ts +6 -6
- package/dist/models/replace-request.d.ts +3 -3
- package/dist/models/replace-result.d.ts +3 -3
- package/dist/models/search-files-response.d.ts +1 -1
- package/dist/models/session-execute-request.d.ts +9 -2
- package/dist/models/session-execute-response.d.ts +3 -3
- package/dist/models/session.d.ts +2 -2
- package/dist/models/set-image-general-status.d.ts +24 -0
- package/dist/models/set-image-general-status.js +15 -0
- package/dist/models/toggle-state.d.ts +1 -1
- package/dist/models/update-assigned-organization-roles.d.ts +1 -1
- package/dist/models/update-docker-registry.d.ts +3 -3
- package/dist/models/update-organization-invitation.d.ts +5 -5
- package/dist/models/update-organization-invitation.js +1 -1
- package/dist/models/update-organization-member-role.d.ts +2 -2
- package/dist/models/update-organization-member-role.js +1 -1
- package/dist/models/update-organization-quota.d.ts +11 -11
- package/dist/models/update-organization-role.d.ts +10 -10
- package/dist/models/update-organization-role.js +6 -6
- package/dist/models/usage-overview.d.ts +15 -15
- package/dist/models/user-public-key.d.ts +2 -2
- package/dist/models/user.d.ts +4 -4
- package/dist/models/workspace-info.d.ts +5 -4
- package/dist/models/workspace-labels.d.ts +1 -1
- package/dist/models/workspace-state.d.ts +2 -2
- package/dist/models/workspace-state.js +2 -2
- package/dist/models/workspace.d.ts +26 -19
- package/dist/models/workspace.js +1 -1
- package/index.ts +4 -5
- package/models/api-key-list.ts +34 -38
- package/models/api-key-response.ts +35 -38
- package/models/command.ts +20 -23
- package/models/completion-context.ts +14 -17
- package/models/completion-item.ts +44 -47
- package/models/completion-list.ts +15 -17
- package/models/create-api-key.ts +22 -26
- package/models/create-docker-registry.ts +51 -54
- package/models/create-image.ts +20 -17
- package/models/create-node.ts +78 -82
- package/models/create-organization-invitation.ts +31 -34
- package/models/create-organization-quota.ts +68 -71
- package/models/create-organization-role.ts +29 -32
- package/models/create-organization.ts +8 -77
- package/models/create-session-request.ts +8 -11
- package/models/create-user.ts +39 -28
- package/models/create-workspace.ts +84 -100
- package/models/docker-registry.ts +57 -60
- package/models/execute-request.ts +20 -23
- package/models/execute-response.ts +14 -17
- package/models/file-info.ts +50 -53
- package/models/file-status.ts +26 -29
- package/models/git-add-request.ts +14 -17
- package/models/git-branch-request.ts +14 -17
- package/models/git-clone-request.ts +38 -41
- package/models/git-commit-info.ts +32 -35
- package/models/git-commit-request.ts +26 -29
- package/models/git-commit-response.ts +8 -11
- package/models/git-repo-request.ts +20 -23
- package/models/git-status.ts +33 -35
- package/models/image-dto.ts +75 -73
- package/models/image-state.ts +12 -17
- package/models/index.ts +72 -68
- package/models/list-branch-response.ts +8 -11
- package/models/list-workspaces-labels-parameter.ts +27 -0
- package/models/lsp-completion-params.ts +34 -36
- package/models/lsp-document-request.ts +20 -23
- package/models/lsp-location.ts +15 -17
- package/models/lsp-server-request.ts +14 -17
- package/models/lsp-symbol.ts +21 -23
- package/models/match.ts +20 -23
- package/models/organization-invitation.ts +81 -76
- package/models/organization-role.ts +53 -56
- package/models/organization-suspension.ts +33 -0
- package/models/organization-user.ts +55 -58
- package/models/organization.ts +62 -41
- package/models/paginated-images-dto.ts +27 -29
- package/models/port-preview-url.ts +33 -0
- package/models/position.ts +14 -17
- package/models/project-dir-response.ts +8 -11
- package/models/range.ts +15 -17
- package/models/registry-push-access-dto.ts +38 -41
- package/models/replace-request.ts +20 -23
- package/models/replace-result.ts +20 -23
- package/models/search-files-response.ts +8 -11
- package/models/session-execute-request.ts +21 -17
- package/models/session-execute-response.ts +20 -23
- package/models/session.ts +15 -17
- package/models/set-image-general-status.ts +27 -0
- package/models/toggle-state.ts +8 -11
- package/models/update-assigned-organization-roles.ts +8 -11
- package/models/update-docker-registry.ts +20 -23
- package/models/update-organization-invitation.ts +25 -28
- package/models/update-organization-member-role.ts +13 -16
- package/models/update-organization-quota.ts +68 -71
- package/models/update-organization-role.ts +29 -32
- package/models/usage-overview.ts +92 -95
- package/models/user-public-key.ts +14 -17
- package/models/user.ts +27 -29
- package/models/workspace-info.ts +21 -23
- package/models/workspace-labels.ts +8 -11
- package/models/workspace-state.ts +19 -24
- package/models/workspace.ts +126 -122
- package/package.json +2 -2
- package/project.json +49 -0
- package/tsconfig.json +3 -8
- package/README.md +0 -46
- package/git_push.sh +0 -57
package/api/organizations-api.ts
CHANGED
|
@@ -5,1854 +5,2687 @@
|
|
|
5
5
|
* Daytona Workspaces API Docs
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
import type {
|
|
17
|
-
import
|
|
18
|
-
import globalAxios from 'axios';
|
|
15
|
+
import type { Configuration } from '../configuration'
|
|
16
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'
|
|
17
|
+
import globalAxios from 'axios'
|
|
19
18
|
// Some imports not used depending on template conditions
|
|
20
19
|
// @ts-ignore
|
|
21
|
-
import {
|
|
20
|
+
import {
|
|
21
|
+
DUMMY_BASE_URL,
|
|
22
|
+
assertParamExists,
|
|
23
|
+
setApiKeyToObject,
|
|
24
|
+
setBasicAuthToObject,
|
|
25
|
+
setBearerAuthToObject,
|
|
26
|
+
setOAuthToObject,
|
|
27
|
+
setSearchParams,
|
|
28
|
+
serializeDataIfNeeded,
|
|
29
|
+
toPathString,
|
|
30
|
+
createRequestFunction,
|
|
31
|
+
} from '../common'
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'
|
|
22
34
|
// @ts-ignore
|
|
23
|
-
import
|
|
35
|
+
import type { CreateOrganization } from '../models'
|
|
24
36
|
// @ts-ignore
|
|
25
|
-
import type {
|
|
37
|
+
import type { CreateOrganizationInvitation } from '../models'
|
|
26
38
|
// @ts-ignore
|
|
27
|
-
import type {
|
|
39
|
+
import type { CreateOrganizationRole } from '../models'
|
|
28
40
|
// @ts-ignore
|
|
29
|
-
import type {
|
|
41
|
+
import type { Organization } from '../models'
|
|
30
42
|
// @ts-ignore
|
|
31
|
-
import type {
|
|
43
|
+
import type { OrganizationInvitation } from '../models'
|
|
32
44
|
// @ts-ignore
|
|
33
|
-
import type {
|
|
45
|
+
import type { OrganizationRole } from '../models'
|
|
34
46
|
// @ts-ignore
|
|
35
|
-
import type {
|
|
47
|
+
import type { OrganizationSuspension } from '../models'
|
|
36
48
|
// @ts-ignore
|
|
37
|
-
import type { OrganizationUser } from '../models'
|
|
49
|
+
import type { OrganizationUser } from '../models'
|
|
38
50
|
// @ts-ignore
|
|
39
|
-
import type { UpdateAssignedOrganizationRoles } from '../models'
|
|
51
|
+
import type { UpdateAssignedOrganizationRoles } from '../models'
|
|
40
52
|
// @ts-ignore
|
|
41
|
-
import type { UpdateOrganizationInvitation } from '../models'
|
|
53
|
+
import type { UpdateOrganizationInvitation } from '../models'
|
|
42
54
|
// @ts-ignore
|
|
43
|
-
import type { UpdateOrganizationMemberRole } from '../models'
|
|
55
|
+
import type { UpdateOrganizationMemberRole } from '../models'
|
|
44
56
|
// @ts-ignore
|
|
45
|
-
import type { UpdateOrganizationQuota } from '../models'
|
|
57
|
+
import type { UpdateOrganizationQuota } from '../models'
|
|
46
58
|
// @ts-ignore
|
|
47
|
-
import type { UpdateOrganizationRole } from '../models'
|
|
59
|
+
import type { UpdateOrganizationRole } from '../models'
|
|
48
60
|
// @ts-ignore
|
|
49
|
-
import type { UsageOverview } from '../models'
|
|
61
|
+
import type { UsageOverview } from '../models'
|
|
50
62
|
/**
|
|
51
63
|
* OrganizationsApi - axios parameter creator
|
|
52
64
|
* @export
|
|
53
65
|
*/
|
|
54
66
|
export const OrganizationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
}
|
|
67
|
+
return {
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @summary Accept organization invitation
|
|
71
|
+
* @param {string} invitationId Invitation ID
|
|
72
|
+
* @param {*} [options] Override http request option.
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
*/
|
|
75
|
+
acceptOrganizationInvitation: async (
|
|
76
|
+
invitationId: string,
|
|
77
|
+
options: RawAxiosRequestConfig = {},
|
|
78
|
+
): Promise<RequestArgs> => {
|
|
79
|
+
// verify required parameter 'invitationId' is not null or undefined
|
|
80
|
+
assertParamExists('acceptOrganizationInvitation', 'invitationId', invitationId)
|
|
81
|
+
const localVarPath = `/organizations/invitations/{invitationId}/accept`.replace(
|
|
82
|
+
`{${'invitationId'}}`,
|
|
83
|
+
encodeURIComponent(String(invitationId)),
|
|
84
|
+
)
|
|
85
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
86
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
87
|
+
let baseOptions
|
|
88
|
+
if (configuration) {
|
|
89
|
+
baseOptions = configuration.baseOptions
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
93
|
+
const localVarHeaderParameter = {} as any
|
|
94
|
+
const localVarQueryParameter = {} as any
|
|
95
|
+
|
|
96
|
+
// authentication bearer required
|
|
97
|
+
// http bearer authentication required
|
|
98
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
99
|
+
|
|
100
|
+
// authentication oauth2 required
|
|
101
|
+
// oauth required
|
|
102
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
103
|
+
|
|
104
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
105
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
106
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
107
|
+
|
|
108
|
+
return {
|
|
109
|
+
url: toPathString(localVarUrlObj),
|
|
110
|
+
options: localVarRequestOptions,
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @summary Cancel organization invitation
|
|
116
|
+
* @param {string} organizationId Organization ID
|
|
117
|
+
* @param {string} invitationId Invitation ID
|
|
118
|
+
* @param {*} [options] Override http request option.
|
|
119
|
+
* @throws {RequiredError}
|
|
120
|
+
*/
|
|
121
|
+
cancelOrganizationInvitation: async (
|
|
122
|
+
organizationId: string,
|
|
123
|
+
invitationId: string,
|
|
124
|
+
options: RawAxiosRequestConfig = {},
|
|
125
|
+
): Promise<RequestArgs> => {
|
|
126
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
127
|
+
assertParamExists('cancelOrganizationInvitation', 'organizationId', organizationId)
|
|
128
|
+
// verify required parameter 'invitationId' is not null or undefined
|
|
129
|
+
assertParamExists('cancelOrganizationInvitation', 'invitationId', invitationId)
|
|
130
|
+
const localVarPath = `/organizations/{organizationId}/invitations/{invitationId}/cancel`
|
|
131
|
+
.replace(`{${'organizationId'}}`, encodeURIComponent(String(organizationId)))
|
|
132
|
+
.replace(`{${'invitationId'}}`, encodeURIComponent(String(invitationId)))
|
|
133
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
134
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
135
|
+
let baseOptions
|
|
136
|
+
if (configuration) {
|
|
137
|
+
baseOptions = configuration.baseOptions
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
141
|
+
const localVarHeaderParameter = {} as any
|
|
142
|
+
const localVarQueryParameter = {} as any
|
|
143
|
+
|
|
144
|
+
// authentication bearer required
|
|
145
|
+
// http bearer authentication required
|
|
146
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
147
|
+
|
|
148
|
+
// authentication oauth2 required
|
|
149
|
+
// oauth required
|
|
150
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
151
|
+
|
|
152
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
153
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
154
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
155
|
+
|
|
156
|
+
return {
|
|
157
|
+
url: toPathString(localVarUrlObj),
|
|
158
|
+
options: localVarRequestOptions,
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @summary Create organization
|
|
164
|
+
* @param {CreateOrganization} createOrganization
|
|
165
|
+
* @param {*} [options] Override http request option.
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
*/
|
|
168
|
+
createOrganization: async (
|
|
169
|
+
createOrganization: CreateOrganization,
|
|
170
|
+
options: RawAxiosRequestConfig = {},
|
|
171
|
+
): Promise<RequestArgs> => {
|
|
172
|
+
// verify required parameter 'createOrganization' is not null or undefined
|
|
173
|
+
assertParamExists('createOrganization', 'createOrganization', createOrganization)
|
|
174
|
+
const localVarPath = `/organizations`
|
|
175
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
176
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
177
|
+
let baseOptions
|
|
178
|
+
if (configuration) {
|
|
179
|
+
baseOptions = configuration.baseOptions
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
183
|
+
const localVarHeaderParameter = {} as any
|
|
184
|
+
const localVarQueryParameter = {} as any
|
|
185
|
+
|
|
186
|
+
// authentication bearer required
|
|
187
|
+
// http bearer authentication required
|
|
188
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
189
|
+
|
|
190
|
+
// authentication oauth2 required
|
|
191
|
+
// oauth required
|
|
192
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
193
|
+
|
|
194
|
+
localVarHeaderParameter['Content-Type'] = 'application/json'
|
|
195
|
+
|
|
196
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
197
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
198
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
199
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createOrganization, localVarRequestOptions, configuration)
|
|
200
|
+
|
|
201
|
+
return {
|
|
202
|
+
url: toPathString(localVarUrlObj),
|
|
203
|
+
options: localVarRequestOptions,
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @summary Create organization invitation
|
|
209
|
+
* @param {string} organizationId Organization ID
|
|
210
|
+
* @param {CreateOrganizationInvitation} createOrganizationInvitation
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
*/
|
|
214
|
+
createOrganizationInvitation: async (
|
|
215
|
+
organizationId: string,
|
|
216
|
+
createOrganizationInvitation: CreateOrganizationInvitation,
|
|
217
|
+
options: RawAxiosRequestConfig = {},
|
|
218
|
+
): Promise<RequestArgs> => {
|
|
219
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
220
|
+
assertParamExists('createOrganizationInvitation', 'organizationId', organizationId)
|
|
221
|
+
// verify required parameter 'createOrganizationInvitation' is not null or undefined
|
|
222
|
+
assertParamExists('createOrganizationInvitation', 'createOrganizationInvitation', createOrganizationInvitation)
|
|
223
|
+
const localVarPath = `/organizations/{organizationId}/invitations`.replace(
|
|
224
|
+
`{${'organizationId'}}`,
|
|
225
|
+
encodeURIComponent(String(organizationId)),
|
|
226
|
+
)
|
|
227
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
228
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
229
|
+
let baseOptions
|
|
230
|
+
if (configuration) {
|
|
231
|
+
baseOptions = configuration.baseOptions
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
235
|
+
const localVarHeaderParameter = {} as any
|
|
236
|
+
const localVarQueryParameter = {} as any
|
|
237
|
+
|
|
238
|
+
// authentication bearer required
|
|
239
|
+
// http bearer authentication required
|
|
240
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
241
|
+
|
|
242
|
+
// authentication oauth2 required
|
|
243
|
+
// oauth required
|
|
244
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
245
|
+
|
|
246
|
+
localVarHeaderParameter['Content-Type'] = 'application/json'
|
|
247
|
+
|
|
248
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
249
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
250
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
251
|
+
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
252
|
+
createOrganizationInvitation,
|
|
253
|
+
localVarRequestOptions,
|
|
254
|
+
configuration,
|
|
255
|
+
)
|
|
256
|
+
|
|
257
|
+
return {
|
|
258
|
+
url: toPathString(localVarUrlObj),
|
|
259
|
+
options: localVarRequestOptions,
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
/**
|
|
263
|
+
*
|
|
264
|
+
* @summary Create organization role
|
|
265
|
+
* @param {string} organizationId Organization ID
|
|
266
|
+
* @param {CreateOrganizationRole} createOrganizationRole
|
|
267
|
+
* @param {*} [options] Override http request option.
|
|
268
|
+
* @throws {RequiredError}
|
|
269
|
+
*/
|
|
270
|
+
createOrganizationRole: async (
|
|
271
|
+
organizationId: string,
|
|
272
|
+
createOrganizationRole: CreateOrganizationRole,
|
|
273
|
+
options: RawAxiosRequestConfig = {},
|
|
274
|
+
): Promise<RequestArgs> => {
|
|
275
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
276
|
+
assertParamExists('createOrganizationRole', 'organizationId', organizationId)
|
|
277
|
+
// verify required parameter 'createOrganizationRole' is not null or undefined
|
|
278
|
+
assertParamExists('createOrganizationRole', 'createOrganizationRole', createOrganizationRole)
|
|
279
|
+
const localVarPath = `/organizations/{organizationId}/roles`.replace(
|
|
280
|
+
`{${'organizationId'}}`,
|
|
281
|
+
encodeURIComponent(String(organizationId)),
|
|
282
|
+
)
|
|
283
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
284
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
285
|
+
let baseOptions
|
|
286
|
+
if (configuration) {
|
|
287
|
+
baseOptions = configuration.baseOptions
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
291
|
+
const localVarHeaderParameter = {} as any
|
|
292
|
+
const localVarQueryParameter = {} as any
|
|
293
|
+
|
|
294
|
+
// authentication bearer required
|
|
295
|
+
// http bearer authentication required
|
|
296
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
297
|
+
|
|
298
|
+
// authentication oauth2 required
|
|
299
|
+
// oauth required
|
|
300
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
301
|
+
|
|
302
|
+
localVarHeaderParameter['Content-Type'] = 'application/json'
|
|
303
|
+
|
|
304
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
305
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
306
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
307
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createOrganizationRole, localVarRequestOptions, configuration)
|
|
308
|
+
|
|
309
|
+
return {
|
|
310
|
+
url: toPathString(localVarUrlObj),
|
|
311
|
+
options: localVarRequestOptions,
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
* @summary Decline organization invitation
|
|
317
|
+
* @param {string} invitationId Invitation ID
|
|
318
|
+
* @param {*} [options] Override http request option.
|
|
319
|
+
* @throws {RequiredError}
|
|
320
|
+
*/
|
|
321
|
+
declineOrganizationInvitation: async (
|
|
322
|
+
invitationId: string,
|
|
323
|
+
options: RawAxiosRequestConfig = {},
|
|
324
|
+
): Promise<RequestArgs> => {
|
|
325
|
+
// verify required parameter 'invitationId' is not null or undefined
|
|
326
|
+
assertParamExists('declineOrganizationInvitation', 'invitationId', invitationId)
|
|
327
|
+
const localVarPath = `/organizations/invitations/{invitationId}/decline`.replace(
|
|
328
|
+
`{${'invitationId'}}`,
|
|
329
|
+
encodeURIComponent(String(invitationId)),
|
|
330
|
+
)
|
|
331
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
332
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
333
|
+
let baseOptions
|
|
334
|
+
if (configuration) {
|
|
335
|
+
baseOptions = configuration.baseOptions
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
339
|
+
const localVarHeaderParameter = {} as any
|
|
340
|
+
const localVarQueryParameter = {} as any
|
|
341
|
+
|
|
342
|
+
// authentication bearer required
|
|
343
|
+
// http bearer authentication required
|
|
344
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
345
|
+
|
|
346
|
+
// authentication oauth2 required
|
|
347
|
+
// oauth required
|
|
348
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
349
|
+
|
|
350
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
351
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
352
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
353
|
+
|
|
354
|
+
return {
|
|
355
|
+
url: toPathString(localVarUrlObj),
|
|
356
|
+
options: localVarRequestOptions,
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
/**
|
|
360
|
+
*
|
|
361
|
+
* @summary Delete organization
|
|
362
|
+
* @param {string} organizationId Organization ID
|
|
363
|
+
* @param {*} [options] Override http request option.
|
|
364
|
+
* @throws {RequiredError}
|
|
365
|
+
*/
|
|
366
|
+
deleteOrganization: async (organizationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
367
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
368
|
+
assertParamExists('deleteOrganization', 'organizationId', organizationId)
|
|
369
|
+
const localVarPath = `/organizations/{organizationId}`.replace(
|
|
370
|
+
`{${'organizationId'}}`,
|
|
371
|
+
encodeURIComponent(String(organizationId)),
|
|
372
|
+
)
|
|
373
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
374
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
375
|
+
let baseOptions
|
|
376
|
+
if (configuration) {
|
|
377
|
+
baseOptions = configuration.baseOptions
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
|
381
|
+
const localVarHeaderParameter = {} as any
|
|
382
|
+
const localVarQueryParameter = {} as any
|
|
383
|
+
|
|
384
|
+
// authentication bearer required
|
|
385
|
+
// http bearer authentication required
|
|
386
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
387
|
+
|
|
388
|
+
// authentication oauth2 required
|
|
389
|
+
// oauth required
|
|
390
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
391
|
+
|
|
392
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
393
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
394
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
395
|
+
|
|
396
|
+
return {
|
|
397
|
+
url: toPathString(localVarUrlObj),
|
|
398
|
+
options: localVarRequestOptions,
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
/**
|
|
402
|
+
*
|
|
403
|
+
* @summary Delete organization member
|
|
404
|
+
* @param {string} organizationId Organization ID
|
|
405
|
+
* @param {string} userId User ID
|
|
406
|
+
* @param {*} [options] Override http request option.
|
|
407
|
+
* @throws {RequiredError}
|
|
408
|
+
*/
|
|
409
|
+
deleteOrganizationMember: async (
|
|
410
|
+
organizationId: string,
|
|
411
|
+
userId: string,
|
|
412
|
+
options: RawAxiosRequestConfig = {},
|
|
413
|
+
): Promise<RequestArgs> => {
|
|
414
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
415
|
+
assertParamExists('deleteOrganizationMember', 'organizationId', organizationId)
|
|
416
|
+
// verify required parameter 'userId' is not null or undefined
|
|
417
|
+
assertParamExists('deleteOrganizationMember', 'userId', userId)
|
|
418
|
+
const localVarPath = `/organizations/{organizationId}/users/{userId}`
|
|
419
|
+
.replace(`{${'organizationId'}}`, encodeURIComponent(String(organizationId)))
|
|
420
|
+
.replace(`{${'userId'}}`, encodeURIComponent(String(userId)))
|
|
421
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
422
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
423
|
+
let baseOptions
|
|
424
|
+
if (configuration) {
|
|
425
|
+
baseOptions = configuration.baseOptions
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
|
429
|
+
const localVarHeaderParameter = {} as any
|
|
430
|
+
const localVarQueryParameter = {} as any
|
|
431
|
+
|
|
432
|
+
// authentication bearer required
|
|
433
|
+
// http bearer authentication required
|
|
434
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
435
|
+
|
|
436
|
+
// authentication oauth2 required
|
|
437
|
+
// oauth required
|
|
438
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
439
|
+
|
|
440
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
441
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
442
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
443
|
+
|
|
444
|
+
return {
|
|
445
|
+
url: toPathString(localVarUrlObj),
|
|
446
|
+
options: localVarRequestOptions,
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
/**
|
|
450
|
+
*
|
|
451
|
+
* @summary Delete organization role
|
|
452
|
+
* @param {string} organizationId Organization ID
|
|
453
|
+
* @param {string} roleId Role ID
|
|
454
|
+
* @param {*} [options] Override http request option.
|
|
455
|
+
* @throws {RequiredError}
|
|
456
|
+
*/
|
|
457
|
+
deleteOrganizationRole: async (
|
|
458
|
+
organizationId: string,
|
|
459
|
+
roleId: string,
|
|
460
|
+
options: RawAxiosRequestConfig = {},
|
|
461
|
+
): Promise<RequestArgs> => {
|
|
462
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
463
|
+
assertParamExists('deleteOrganizationRole', 'organizationId', organizationId)
|
|
464
|
+
// verify required parameter 'roleId' is not null or undefined
|
|
465
|
+
assertParamExists('deleteOrganizationRole', 'roleId', roleId)
|
|
466
|
+
const localVarPath = `/organizations/{organizationId}/roles/{roleId}`
|
|
467
|
+
.replace(`{${'organizationId'}}`, encodeURIComponent(String(organizationId)))
|
|
468
|
+
.replace(`{${'roleId'}}`, encodeURIComponent(String(roleId)))
|
|
469
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
470
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
471
|
+
let baseOptions
|
|
472
|
+
if (configuration) {
|
|
473
|
+
baseOptions = configuration.baseOptions
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
|
477
|
+
const localVarHeaderParameter = {} as any
|
|
478
|
+
const localVarQueryParameter = {} as any
|
|
479
|
+
|
|
480
|
+
// authentication bearer required
|
|
481
|
+
// http bearer authentication required
|
|
482
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
483
|
+
|
|
484
|
+
// authentication oauth2 required
|
|
485
|
+
// oauth required
|
|
486
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
487
|
+
|
|
488
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
489
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
490
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
491
|
+
|
|
492
|
+
return {
|
|
493
|
+
url: toPathString(localVarUrlObj),
|
|
494
|
+
options: localVarRequestOptions,
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
/**
|
|
498
|
+
*
|
|
499
|
+
* @summary Get organization by ID
|
|
500
|
+
* @param {string} organizationId Organization ID
|
|
501
|
+
* @param {*} [options] Override http request option.
|
|
502
|
+
* @throws {RequiredError}
|
|
503
|
+
*/
|
|
504
|
+
getOrganization: async (organizationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
505
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
506
|
+
assertParamExists('getOrganization', 'organizationId', organizationId)
|
|
507
|
+
const localVarPath = `/organizations/{organizationId}`.replace(
|
|
508
|
+
`{${'organizationId'}}`,
|
|
509
|
+
encodeURIComponent(String(organizationId)),
|
|
510
|
+
)
|
|
511
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
512
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
513
|
+
let baseOptions
|
|
514
|
+
if (configuration) {
|
|
515
|
+
baseOptions = configuration.baseOptions
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
|
519
|
+
const localVarHeaderParameter = {} as any
|
|
520
|
+
const localVarQueryParameter = {} as any
|
|
521
|
+
|
|
522
|
+
// authentication bearer required
|
|
523
|
+
// http bearer authentication required
|
|
524
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
525
|
+
|
|
526
|
+
// authentication oauth2 required
|
|
527
|
+
// oauth required
|
|
528
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
529
|
+
|
|
530
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
531
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
532
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
533
|
+
|
|
534
|
+
return {
|
|
535
|
+
url: toPathString(localVarUrlObj),
|
|
536
|
+
options: localVarRequestOptions,
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
/**
|
|
540
|
+
*
|
|
541
|
+
* @summary Get count of organization invitations for authenticated user
|
|
542
|
+
* @param {*} [options] Override http request option.
|
|
543
|
+
* @throws {RequiredError}
|
|
544
|
+
*/
|
|
545
|
+
getOrganizationInvitationsCountForAuthenticatedUser: async (
|
|
546
|
+
options: RawAxiosRequestConfig = {},
|
|
547
|
+
): Promise<RequestArgs> => {
|
|
548
|
+
const localVarPath = `/organizations/invitations/count`
|
|
549
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
550
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
551
|
+
let baseOptions
|
|
552
|
+
if (configuration) {
|
|
553
|
+
baseOptions = configuration.baseOptions
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
|
557
|
+
const localVarHeaderParameter = {} as any
|
|
558
|
+
const localVarQueryParameter = {} as any
|
|
559
|
+
|
|
560
|
+
// authentication bearer required
|
|
561
|
+
// http bearer authentication required
|
|
562
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
563
|
+
|
|
564
|
+
// authentication oauth2 required
|
|
565
|
+
// oauth required
|
|
566
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
567
|
+
|
|
568
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
569
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
570
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
571
|
+
|
|
572
|
+
return {
|
|
573
|
+
url: toPathString(localVarUrlObj),
|
|
574
|
+
options: localVarRequestOptions,
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
/**
|
|
578
|
+
*
|
|
579
|
+
* @summary Get organization current usage overview
|
|
580
|
+
* @param {string} organizationId Organization ID
|
|
581
|
+
* @param {*} [options] Override http request option.
|
|
582
|
+
* @throws {RequiredError}
|
|
583
|
+
*/
|
|
584
|
+
getOrganizationUsageOverview: async (
|
|
585
|
+
organizationId: string,
|
|
586
|
+
options: RawAxiosRequestConfig = {},
|
|
587
|
+
): Promise<RequestArgs> => {
|
|
588
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
589
|
+
assertParamExists('getOrganizationUsageOverview', 'organizationId', organizationId)
|
|
590
|
+
const localVarPath = `/organizations/{organizationId}/usage`.replace(
|
|
591
|
+
`{${'organizationId'}}`,
|
|
592
|
+
encodeURIComponent(String(organizationId)),
|
|
593
|
+
)
|
|
594
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
595
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
596
|
+
let baseOptions
|
|
597
|
+
if (configuration) {
|
|
598
|
+
baseOptions = configuration.baseOptions
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
|
602
|
+
const localVarHeaderParameter = {} as any
|
|
603
|
+
const localVarQueryParameter = {} as any
|
|
604
|
+
|
|
605
|
+
// authentication bearer required
|
|
606
|
+
// http bearer authentication required
|
|
607
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
608
|
+
|
|
609
|
+
// authentication oauth2 required
|
|
610
|
+
// oauth required
|
|
611
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
612
|
+
|
|
613
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
614
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
615
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
616
|
+
|
|
617
|
+
return {
|
|
618
|
+
url: toPathString(localVarUrlObj),
|
|
619
|
+
options: localVarRequestOptions,
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
/**
|
|
623
|
+
*
|
|
624
|
+
* @summary Leave organization
|
|
625
|
+
* @param {string} organizationId Organization ID
|
|
626
|
+
* @param {*} [options] Override http request option.
|
|
627
|
+
* @throws {RequiredError}
|
|
628
|
+
*/
|
|
629
|
+
leaveOrganization: async (organizationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
630
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
631
|
+
assertParamExists('leaveOrganization', 'organizationId', organizationId)
|
|
632
|
+
const localVarPath = `/organizations/{organizationId}/leave`.replace(
|
|
633
|
+
`{${'organizationId'}}`,
|
|
634
|
+
encodeURIComponent(String(organizationId)),
|
|
635
|
+
)
|
|
636
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
637
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
638
|
+
let baseOptions
|
|
639
|
+
if (configuration) {
|
|
640
|
+
baseOptions = configuration.baseOptions
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
644
|
+
const localVarHeaderParameter = {} as any
|
|
645
|
+
const localVarQueryParameter = {} as any
|
|
646
|
+
|
|
647
|
+
// authentication bearer required
|
|
648
|
+
// http bearer authentication required
|
|
649
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
650
|
+
|
|
651
|
+
// authentication oauth2 required
|
|
652
|
+
// oauth required
|
|
653
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
654
|
+
|
|
655
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
656
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
657
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
658
|
+
|
|
659
|
+
return {
|
|
660
|
+
url: toPathString(localVarUrlObj),
|
|
661
|
+
options: localVarRequestOptions,
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
/**
|
|
665
|
+
*
|
|
666
|
+
* @summary List pending organization invitations
|
|
667
|
+
* @param {string} organizationId Organization ID
|
|
668
|
+
* @param {*} [options] Override http request option.
|
|
669
|
+
* @throws {RequiredError}
|
|
670
|
+
*/
|
|
671
|
+
listOrganizationInvitations: async (
|
|
672
|
+
organizationId: string,
|
|
673
|
+
options: RawAxiosRequestConfig = {},
|
|
674
|
+
): Promise<RequestArgs> => {
|
|
675
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
676
|
+
assertParamExists('listOrganizationInvitations', 'organizationId', organizationId)
|
|
677
|
+
const localVarPath = `/organizations/{organizationId}/invitations`.replace(
|
|
678
|
+
`{${'organizationId'}}`,
|
|
679
|
+
encodeURIComponent(String(organizationId)),
|
|
680
|
+
)
|
|
681
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
682
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
683
|
+
let baseOptions
|
|
684
|
+
if (configuration) {
|
|
685
|
+
baseOptions = configuration.baseOptions
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
|
689
|
+
const localVarHeaderParameter = {} as any
|
|
690
|
+
const localVarQueryParameter = {} as any
|
|
691
|
+
|
|
692
|
+
// authentication bearer required
|
|
693
|
+
// http bearer authentication required
|
|
694
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
695
|
+
|
|
696
|
+
// authentication oauth2 required
|
|
697
|
+
// oauth required
|
|
698
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
699
|
+
|
|
700
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
701
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
702
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
703
|
+
|
|
704
|
+
return {
|
|
705
|
+
url: toPathString(localVarUrlObj),
|
|
706
|
+
options: localVarRequestOptions,
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
/**
|
|
710
|
+
*
|
|
711
|
+
* @summary List organization invitations for authenticated user
|
|
712
|
+
* @param {*} [options] Override http request option.
|
|
713
|
+
* @throws {RequiredError}
|
|
714
|
+
*/
|
|
715
|
+
listOrganizationInvitationsForAuthenticatedUser: async (
|
|
716
|
+
options: RawAxiosRequestConfig = {},
|
|
717
|
+
): Promise<RequestArgs> => {
|
|
718
|
+
const localVarPath = `/organizations/invitations`
|
|
719
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
720
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
721
|
+
let baseOptions
|
|
722
|
+
if (configuration) {
|
|
723
|
+
baseOptions = configuration.baseOptions
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
|
727
|
+
const localVarHeaderParameter = {} as any
|
|
728
|
+
const localVarQueryParameter = {} as any
|
|
729
|
+
|
|
730
|
+
// authentication bearer required
|
|
731
|
+
// http bearer authentication required
|
|
732
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
733
|
+
|
|
734
|
+
// authentication oauth2 required
|
|
735
|
+
// oauth required
|
|
736
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
737
|
+
|
|
738
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
739
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
740
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
741
|
+
|
|
742
|
+
return {
|
|
743
|
+
url: toPathString(localVarUrlObj),
|
|
744
|
+
options: localVarRequestOptions,
|
|
745
|
+
}
|
|
746
|
+
},
|
|
747
|
+
/**
|
|
748
|
+
*
|
|
749
|
+
* @summary List organization members
|
|
750
|
+
* @param {string} organizationId Organization ID
|
|
751
|
+
* @param {*} [options] Override http request option.
|
|
752
|
+
* @throws {RequiredError}
|
|
753
|
+
*/
|
|
754
|
+
listOrganizationMembers: async (
|
|
755
|
+
organizationId: string,
|
|
756
|
+
options: RawAxiosRequestConfig = {},
|
|
757
|
+
): Promise<RequestArgs> => {
|
|
758
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
759
|
+
assertParamExists('listOrganizationMembers', 'organizationId', organizationId)
|
|
760
|
+
const localVarPath = `/organizations/{organizationId}/users`.replace(
|
|
761
|
+
`{${'organizationId'}}`,
|
|
762
|
+
encodeURIComponent(String(organizationId)),
|
|
763
|
+
)
|
|
764
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
765
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
766
|
+
let baseOptions
|
|
767
|
+
if (configuration) {
|
|
768
|
+
baseOptions = configuration.baseOptions
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
|
772
|
+
const localVarHeaderParameter = {} as any
|
|
773
|
+
const localVarQueryParameter = {} as any
|
|
774
|
+
|
|
775
|
+
// authentication bearer required
|
|
776
|
+
// http bearer authentication required
|
|
777
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
778
|
+
|
|
779
|
+
// authentication oauth2 required
|
|
780
|
+
// oauth required
|
|
781
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
782
|
+
|
|
783
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
784
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
785
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
786
|
+
|
|
787
|
+
return {
|
|
788
|
+
url: toPathString(localVarUrlObj),
|
|
789
|
+
options: localVarRequestOptions,
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
/**
|
|
793
|
+
*
|
|
794
|
+
* @summary List organization roles
|
|
795
|
+
* @param {string} organizationId Organization ID
|
|
796
|
+
* @param {*} [options] Override http request option.
|
|
797
|
+
* @throws {RequiredError}
|
|
798
|
+
*/
|
|
799
|
+
listOrganizationRoles: async (
|
|
800
|
+
organizationId: string,
|
|
801
|
+
options: RawAxiosRequestConfig = {},
|
|
802
|
+
): Promise<RequestArgs> => {
|
|
803
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
804
|
+
assertParamExists('listOrganizationRoles', 'organizationId', organizationId)
|
|
805
|
+
const localVarPath = `/organizations/{organizationId}/roles`.replace(
|
|
806
|
+
`{${'organizationId'}}`,
|
|
807
|
+
encodeURIComponent(String(organizationId)),
|
|
808
|
+
)
|
|
809
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
810
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
811
|
+
let baseOptions
|
|
812
|
+
if (configuration) {
|
|
813
|
+
baseOptions = configuration.baseOptions
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
|
817
|
+
const localVarHeaderParameter = {} as any
|
|
818
|
+
const localVarQueryParameter = {} as any
|
|
819
|
+
|
|
820
|
+
// authentication bearer required
|
|
821
|
+
// http bearer authentication required
|
|
822
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
823
|
+
|
|
824
|
+
// authentication oauth2 required
|
|
825
|
+
// oauth required
|
|
826
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
827
|
+
|
|
828
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
829
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
830
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
831
|
+
|
|
832
|
+
return {
|
|
833
|
+
url: toPathString(localVarUrlObj),
|
|
834
|
+
options: localVarRequestOptions,
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
/**
|
|
838
|
+
*
|
|
839
|
+
* @summary List organizations
|
|
840
|
+
* @param {*} [options] Override http request option.
|
|
841
|
+
* @throws {RequiredError}
|
|
842
|
+
*/
|
|
843
|
+
listOrganizations: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
844
|
+
const localVarPath = `/organizations`
|
|
845
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
846
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
847
|
+
let baseOptions
|
|
848
|
+
if (configuration) {
|
|
849
|
+
baseOptions = configuration.baseOptions
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
|
853
|
+
const localVarHeaderParameter = {} as any
|
|
854
|
+
const localVarQueryParameter = {} as any
|
|
855
|
+
|
|
856
|
+
// authentication bearer required
|
|
857
|
+
// http bearer authentication required
|
|
858
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
859
|
+
|
|
860
|
+
// authentication oauth2 required
|
|
861
|
+
// oauth required
|
|
862
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
863
|
+
|
|
864
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
865
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
866
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
867
|
+
|
|
868
|
+
return {
|
|
869
|
+
url: toPathString(localVarUrlObj),
|
|
870
|
+
options: localVarRequestOptions,
|
|
871
|
+
}
|
|
872
|
+
},
|
|
873
|
+
/**
|
|
874
|
+
*
|
|
875
|
+
* @summary Suspend organization
|
|
876
|
+
* @param {string} organizationId Organization ID
|
|
877
|
+
* @param {OrganizationSuspension} [organizationSuspension]
|
|
878
|
+
* @param {*} [options] Override http request option.
|
|
879
|
+
* @throws {RequiredError}
|
|
880
|
+
*/
|
|
881
|
+
suspendOrganization: async (
|
|
882
|
+
organizationId: string,
|
|
883
|
+
organizationSuspension?: OrganizationSuspension,
|
|
884
|
+
options: RawAxiosRequestConfig = {},
|
|
885
|
+
): Promise<RequestArgs> => {
|
|
886
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
887
|
+
assertParamExists('suspendOrganization', 'organizationId', organizationId)
|
|
888
|
+
const localVarPath = `/organizations/{organizationId}/suspend`.replace(
|
|
889
|
+
`{${'organizationId'}}`,
|
|
890
|
+
encodeURIComponent(String(organizationId)),
|
|
891
|
+
)
|
|
892
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
893
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
894
|
+
let baseOptions
|
|
895
|
+
if (configuration) {
|
|
896
|
+
baseOptions = configuration.baseOptions
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
900
|
+
const localVarHeaderParameter = {} as any
|
|
901
|
+
const localVarQueryParameter = {} as any
|
|
902
|
+
|
|
903
|
+
// authentication bearer required
|
|
904
|
+
// http bearer authentication required
|
|
905
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
906
|
+
|
|
907
|
+
// authentication oauth2 required
|
|
908
|
+
// oauth required
|
|
909
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
910
|
+
|
|
911
|
+
localVarHeaderParameter['Content-Type'] = 'application/json'
|
|
912
|
+
|
|
913
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
914
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
915
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
916
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationSuspension, localVarRequestOptions, configuration)
|
|
917
|
+
|
|
918
|
+
return {
|
|
919
|
+
url: toPathString(localVarUrlObj),
|
|
920
|
+
options: localVarRequestOptions,
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
/**
|
|
924
|
+
*
|
|
925
|
+
* @summary Unsuspend organization
|
|
926
|
+
* @param {string} organizationId Organization ID
|
|
927
|
+
* @param {*} [options] Override http request option.
|
|
928
|
+
* @throws {RequiredError}
|
|
929
|
+
*/
|
|
930
|
+
unsuspendOrganization: async (
|
|
931
|
+
organizationId: string,
|
|
932
|
+
options: RawAxiosRequestConfig = {},
|
|
933
|
+
): Promise<RequestArgs> => {
|
|
934
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
935
|
+
assertParamExists('unsuspendOrganization', 'organizationId', organizationId)
|
|
936
|
+
const localVarPath = `/organizations/{organizationId}/unsuspend`.replace(
|
|
937
|
+
`{${'organizationId'}}`,
|
|
938
|
+
encodeURIComponent(String(organizationId)),
|
|
939
|
+
)
|
|
940
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
941
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
942
|
+
let baseOptions
|
|
943
|
+
if (configuration) {
|
|
944
|
+
baseOptions = configuration.baseOptions
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
948
|
+
const localVarHeaderParameter = {} as any
|
|
949
|
+
const localVarQueryParameter = {} as any
|
|
950
|
+
|
|
951
|
+
// authentication bearer required
|
|
952
|
+
// http bearer authentication required
|
|
953
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
954
|
+
|
|
955
|
+
// authentication oauth2 required
|
|
956
|
+
// oauth required
|
|
957
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
958
|
+
|
|
959
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
960
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
961
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
962
|
+
|
|
963
|
+
return {
|
|
964
|
+
url: toPathString(localVarUrlObj),
|
|
965
|
+
options: localVarRequestOptions,
|
|
966
|
+
}
|
|
967
|
+
},
|
|
968
|
+
/**
|
|
969
|
+
*
|
|
970
|
+
* @summary Update assigned roles to organization member
|
|
971
|
+
* @param {string} organizationId Organization ID
|
|
972
|
+
* @param {string} userId User ID
|
|
973
|
+
* @param {UpdateAssignedOrganizationRoles} updateAssignedOrganizationRoles
|
|
974
|
+
* @param {*} [options] Override http request option.
|
|
975
|
+
* @throws {RequiredError}
|
|
976
|
+
*/
|
|
977
|
+
updateAssignedOrganizationRoles: async (
|
|
978
|
+
organizationId: string,
|
|
979
|
+
userId: string,
|
|
980
|
+
updateAssignedOrganizationRoles: UpdateAssignedOrganizationRoles,
|
|
981
|
+
options: RawAxiosRequestConfig = {},
|
|
982
|
+
): Promise<RequestArgs> => {
|
|
983
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
984
|
+
assertParamExists('updateAssignedOrganizationRoles', 'organizationId', organizationId)
|
|
985
|
+
// verify required parameter 'userId' is not null or undefined
|
|
986
|
+
assertParamExists('updateAssignedOrganizationRoles', 'userId', userId)
|
|
987
|
+
// verify required parameter 'updateAssignedOrganizationRoles' is not null or undefined
|
|
988
|
+
assertParamExists(
|
|
989
|
+
'updateAssignedOrganizationRoles',
|
|
990
|
+
'updateAssignedOrganizationRoles',
|
|
991
|
+
updateAssignedOrganizationRoles,
|
|
992
|
+
)
|
|
993
|
+
const localVarPath = `/organizations/{organizationId}/users/{userId}/assigned-roles`
|
|
994
|
+
.replace(`{${'organizationId'}}`, encodeURIComponent(String(organizationId)))
|
|
995
|
+
.replace(`{${'userId'}}`, encodeURIComponent(String(userId)))
|
|
996
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
997
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
998
|
+
let baseOptions
|
|
999
|
+
if (configuration) {
|
|
1000
|
+
baseOptions = configuration.baseOptions
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
1004
|
+
const localVarHeaderParameter = {} as any
|
|
1005
|
+
const localVarQueryParameter = {} as any
|
|
1006
|
+
|
|
1007
|
+
// authentication bearer required
|
|
1008
|
+
// http bearer authentication required
|
|
1009
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1010
|
+
|
|
1011
|
+
// authentication oauth2 required
|
|
1012
|
+
// oauth required
|
|
1013
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
1014
|
+
|
|
1015
|
+
localVarHeaderParameter['Content-Type'] = 'application/json'
|
|
1016
|
+
|
|
1017
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
1018
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
1019
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
1020
|
+
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1021
|
+
updateAssignedOrganizationRoles,
|
|
1022
|
+
localVarRequestOptions,
|
|
1023
|
+
configuration,
|
|
1024
|
+
)
|
|
1025
|
+
|
|
1026
|
+
return {
|
|
1027
|
+
url: toPathString(localVarUrlObj),
|
|
1028
|
+
options: localVarRequestOptions,
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
/**
|
|
1032
|
+
*
|
|
1033
|
+
* @summary Update organization invitation
|
|
1034
|
+
* @param {string} organizationId Organization ID
|
|
1035
|
+
* @param {string} invitationId Invitation ID
|
|
1036
|
+
* @param {UpdateOrganizationInvitation} updateOrganizationInvitation
|
|
1037
|
+
* @param {*} [options] Override http request option.
|
|
1038
|
+
* @throws {RequiredError}
|
|
1039
|
+
*/
|
|
1040
|
+
updateOrganizationInvitation: async (
|
|
1041
|
+
organizationId: string,
|
|
1042
|
+
invitationId: string,
|
|
1043
|
+
updateOrganizationInvitation: UpdateOrganizationInvitation,
|
|
1044
|
+
options: RawAxiosRequestConfig = {},
|
|
1045
|
+
): Promise<RequestArgs> => {
|
|
1046
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
1047
|
+
assertParamExists('updateOrganizationInvitation', 'organizationId', organizationId)
|
|
1048
|
+
// verify required parameter 'invitationId' is not null or undefined
|
|
1049
|
+
assertParamExists('updateOrganizationInvitation', 'invitationId', invitationId)
|
|
1050
|
+
// verify required parameter 'updateOrganizationInvitation' is not null or undefined
|
|
1051
|
+
assertParamExists('updateOrganizationInvitation', 'updateOrganizationInvitation', updateOrganizationInvitation)
|
|
1052
|
+
const localVarPath = `/organizations/{organizationId}/invitations/{invitationId}`
|
|
1053
|
+
.replace(`{${'organizationId'}}`, encodeURIComponent(String(organizationId)))
|
|
1054
|
+
.replace(`{${'invitationId'}}`, encodeURIComponent(String(invitationId)))
|
|
1055
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1056
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
1057
|
+
let baseOptions
|
|
1058
|
+
if (configuration) {
|
|
1059
|
+
baseOptions = configuration.baseOptions
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
|
1063
|
+
const localVarHeaderParameter = {} as any
|
|
1064
|
+
const localVarQueryParameter = {} as any
|
|
1065
|
+
|
|
1066
|
+
// authentication bearer required
|
|
1067
|
+
// http bearer authentication required
|
|
1068
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1069
|
+
|
|
1070
|
+
// authentication oauth2 required
|
|
1071
|
+
// oauth required
|
|
1072
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
1073
|
+
|
|
1074
|
+
localVarHeaderParameter['Content-Type'] = 'application/json'
|
|
1075
|
+
|
|
1076
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
1077
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
1078
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
1079
|
+
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1080
|
+
updateOrganizationInvitation,
|
|
1081
|
+
localVarRequestOptions,
|
|
1082
|
+
configuration,
|
|
1083
|
+
)
|
|
1084
|
+
|
|
1085
|
+
return {
|
|
1086
|
+
url: toPathString(localVarUrlObj),
|
|
1087
|
+
options: localVarRequestOptions,
|
|
1088
|
+
}
|
|
1089
|
+
},
|
|
1090
|
+
/**
|
|
1091
|
+
*
|
|
1092
|
+
* @summary Update organization quota
|
|
1093
|
+
* @param {string} organizationId Organization ID
|
|
1094
|
+
* @param {UpdateOrganizationQuota} updateOrganizationQuota
|
|
1095
|
+
* @param {*} [options] Override http request option.
|
|
1096
|
+
* @throws {RequiredError}
|
|
1097
|
+
*/
|
|
1098
|
+
updateOrganizationQuota: async (
|
|
1099
|
+
organizationId: string,
|
|
1100
|
+
updateOrganizationQuota: UpdateOrganizationQuota,
|
|
1101
|
+
options: RawAxiosRequestConfig = {},
|
|
1102
|
+
): Promise<RequestArgs> => {
|
|
1103
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
1104
|
+
assertParamExists('updateOrganizationQuota', 'organizationId', organizationId)
|
|
1105
|
+
// verify required parameter 'updateOrganizationQuota' is not null or undefined
|
|
1106
|
+
assertParamExists('updateOrganizationQuota', 'updateOrganizationQuota', updateOrganizationQuota)
|
|
1107
|
+
const localVarPath = `/organizations/{organizationId}/quota`.replace(
|
|
1108
|
+
`{${'organizationId'}}`,
|
|
1109
|
+
encodeURIComponent(String(organizationId)),
|
|
1110
|
+
)
|
|
1111
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1112
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
1113
|
+
let baseOptions
|
|
1114
|
+
if (configuration) {
|
|
1115
|
+
baseOptions = configuration.baseOptions
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
|
1119
|
+
const localVarHeaderParameter = {} as any
|
|
1120
|
+
const localVarQueryParameter = {} as any
|
|
1121
|
+
|
|
1122
|
+
// authentication bearer required
|
|
1123
|
+
// http bearer authentication required
|
|
1124
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1125
|
+
|
|
1126
|
+
// authentication oauth2 required
|
|
1127
|
+
// oauth required
|
|
1128
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
1129
|
+
|
|
1130
|
+
localVarHeaderParameter['Content-Type'] = 'application/json'
|
|
1131
|
+
|
|
1132
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
1133
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
1134
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
1135
|
+
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1136
|
+
updateOrganizationQuota,
|
|
1137
|
+
localVarRequestOptions,
|
|
1138
|
+
configuration,
|
|
1139
|
+
)
|
|
1140
|
+
|
|
1141
|
+
return {
|
|
1142
|
+
url: toPathString(localVarUrlObj),
|
|
1143
|
+
options: localVarRequestOptions,
|
|
1144
|
+
}
|
|
1145
|
+
},
|
|
1146
|
+
/**
|
|
1147
|
+
*
|
|
1148
|
+
* @summary Update organization role
|
|
1149
|
+
* @param {string} organizationId Organization ID
|
|
1150
|
+
* @param {string} roleId Role ID
|
|
1151
|
+
* @param {UpdateOrganizationRole} updateOrganizationRole
|
|
1152
|
+
* @param {*} [options] Override http request option.
|
|
1153
|
+
* @throws {RequiredError}
|
|
1154
|
+
*/
|
|
1155
|
+
updateOrganizationRole: async (
|
|
1156
|
+
organizationId: string,
|
|
1157
|
+
roleId: string,
|
|
1158
|
+
updateOrganizationRole: UpdateOrganizationRole,
|
|
1159
|
+
options: RawAxiosRequestConfig = {},
|
|
1160
|
+
): Promise<RequestArgs> => {
|
|
1161
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
1162
|
+
assertParamExists('updateOrganizationRole', 'organizationId', organizationId)
|
|
1163
|
+
// verify required parameter 'roleId' is not null or undefined
|
|
1164
|
+
assertParamExists('updateOrganizationRole', 'roleId', roleId)
|
|
1165
|
+
// verify required parameter 'updateOrganizationRole' is not null or undefined
|
|
1166
|
+
assertParamExists('updateOrganizationRole', 'updateOrganizationRole', updateOrganizationRole)
|
|
1167
|
+
const localVarPath = `/organizations/{organizationId}/roles/{roleId}`
|
|
1168
|
+
.replace(`{${'organizationId'}}`, encodeURIComponent(String(organizationId)))
|
|
1169
|
+
.replace(`{${'roleId'}}`, encodeURIComponent(String(roleId)))
|
|
1170
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1171
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
1172
|
+
let baseOptions
|
|
1173
|
+
if (configuration) {
|
|
1174
|
+
baseOptions = configuration.baseOptions
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options }
|
|
1178
|
+
const localVarHeaderParameter = {} as any
|
|
1179
|
+
const localVarQueryParameter = {} as any
|
|
1180
|
+
|
|
1181
|
+
// authentication bearer required
|
|
1182
|
+
// http bearer authentication required
|
|
1183
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1184
|
+
|
|
1185
|
+
// authentication oauth2 required
|
|
1186
|
+
// oauth required
|
|
1187
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
1188
|
+
|
|
1189
|
+
localVarHeaderParameter['Content-Type'] = 'application/json'
|
|
1190
|
+
|
|
1191
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
1192
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
1193
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
1194
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateOrganizationRole, localVarRequestOptions, configuration)
|
|
1195
|
+
|
|
1196
|
+
return {
|
|
1197
|
+
url: toPathString(localVarUrlObj),
|
|
1198
|
+
options: localVarRequestOptions,
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1201
|
+
/**
|
|
1202
|
+
*
|
|
1203
|
+
* @summary Update role for organization member
|
|
1204
|
+
* @param {string} organizationId Organization ID
|
|
1205
|
+
* @param {string} userId User ID
|
|
1206
|
+
* @param {UpdateOrganizationMemberRole} updateOrganizationMemberRole
|
|
1207
|
+
* @param {*} [options] Override http request option.
|
|
1208
|
+
* @throws {RequiredError}
|
|
1209
|
+
*/
|
|
1210
|
+
updateRoleForOrganizationMember: async (
|
|
1211
|
+
organizationId: string,
|
|
1212
|
+
userId: string,
|
|
1213
|
+
updateOrganizationMemberRole: UpdateOrganizationMemberRole,
|
|
1214
|
+
options: RawAxiosRequestConfig = {},
|
|
1215
|
+
): Promise<RequestArgs> => {
|
|
1216
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
1217
|
+
assertParamExists('updateRoleForOrganizationMember', 'organizationId', organizationId)
|
|
1218
|
+
// verify required parameter 'userId' is not null or undefined
|
|
1219
|
+
assertParamExists('updateRoleForOrganizationMember', 'userId', userId)
|
|
1220
|
+
// verify required parameter 'updateOrganizationMemberRole' is not null or undefined
|
|
1221
|
+
assertParamExists('updateRoleForOrganizationMember', 'updateOrganizationMemberRole', updateOrganizationMemberRole)
|
|
1222
|
+
const localVarPath = `/organizations/{organizationId}/users/{userId}/role`
|
|
1223
|
+
.replace(`{${'organizationId'}}`, encodeURIComponent(String(organizationId)))
|
|
1224
|
+
.replace(`{${'userId'}}`, encodeURIComponent(String(userId)))
|
|
1225
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1226
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
1227
|
+
let baseOptions
|
|
1228
|
+
if (configuration) {
|
|
1229
|
+
baseOptions = configuration.baseOptions
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
1233
|
+
const localVarHeaderParameter = {} as any
|
|
1234
|
+
const localVarQueryParameter = {} as any
|
|
1235
|
+
|
|
1236
|
+
// authentication bearer required
|
|
1237
|
+
// http bearer authentication required
|
|
1238
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1239
|
+
|
|
1240
|
+
// authentication oauth2 required
|
|
1241
|
+
// oauth required
|
|
1242
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
1243
|
+
|
|
1244
|
+
localVarHeaderParameter['Content-Type'] = 'application/json'
|
|
1245
|
+
|
|
1246
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
1247
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
1248
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
1249
|
+
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
1250
|
+
updateOrganizationMemberRole,
|
|
1251
|
+
localVarRequestOptions,
|
|
1252
|
+
configuration,
|
|
1253
|
+
)
|
|
1254
|
+
|
|
1255
|
+
return {
|
|
1256
|
+
url: toPathString(localVarUrlObj),
|
|
1257
|
+
options: localVarRequestOptions,
|
|
1258
|
+
}
|
|
1259
|
+
},
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
992
1262
|
|
|
993
1263
|
/**
|
|
994
1264
|
* OrganizationsApi - functional programming interface
|
|
995
1265
|
* @export
|
|
996
1266
|
*/
|
|
997
|
-
export const OrganizationsApiFp = function(configuration?: Configuration) {
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1267
|
+
export const OrganizationsApiFp = function (configuration?: Configuration) {
|
|
1268
|
+
const localVarAxiosParamCreator = OrganizationsApiAxiosParamCreator(configuration)
|
|
1269
|
+
return {
|
|
1270
|
+
/**
|
|
1271
|
+
*
|
|
1272
|
+
* @summary Accept organization invitation
|
|
1273
|
+
* @param {string} invitationId Invitation ID
|
|
1274
|
+
* @param {*} [options] Override http request option.
|
|
1275
|
+
* @throws {RequiredError}
|
|
1276
|
+
*/
|
|
1277
|
+
async acceptOrganizationInvitation(
|
|
1278
|
+
invitationId: string,
|
|
1279
|
+
options?: RawAxiosRequestConfig,
|
|
1280
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1281
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.acceptOrganizationInvitation(invitationId, options)
|
|
1282
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1283
|
+
const localVarOperationServerBasePath =
|
|
1284
|
+
operationServerMap['OrganizationsApi.acceptOrganizationInvitation']?.[localVarOperationServerIndex]?.url
|
|
1285
|
+
return (axios, basePath) =>
|
|
1286
|
+
createRequestFunction(
|
|
1287
|
+
localVarAxiosArgs,
|
|
1288
|
+
globalAxios,
|
|
1289
|
+
BASE_PATH,
|
|
1290
|
+
configuration,
|
|
1291
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1292
|
+
},
|
|
1293
|
+
/**
|
|
1294
|
+
*
|
|
1295
|
+
* @summary Cancel organization invitation
|
|
1296
|
+
* @param {string} organizationId Organization ID
|
|
1297
|
+
* @param {string} invitationId Invitation ID
|
|
1298
|
+
* @param {*} [options] Override http request option.
|
|
1299
|
+
* @throws {RequiredError}
|
|
1300
|
+
*/
|
|
1301
|
+
async cancelOrganizationInvitation(
|
|
1302
|
+
organizationId: string,
|
|
1303
|
+
invitationId: string,
|
|
1304
|
+
options?: RawAxiosRequestConfig,
|
|
1305
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1306
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelOrganizationInvitation(
|
|
1307
|
+
organizationId,
|
|
1308
|
+
invitationId,
|
|
1309
|
+
options,
|
|
1310
|
+
)
|
|
1311
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1312
|
+
const localVarOperationServerBasePath =
|
|
1313
|
+
operationServerMap['OrganizationsApi.cancelOrganizationInvitation']?.[localVarOperationServerIndex]?.url
|
|
1314
|
+
return (axios, basePath) =>
|
|
1315
|
+
createRequestFunction(
|
|
1316
|
+
localVarAxiosArgs,
|
|
1317
|
+
globalAxios,
|
|
1318
|
+
BASE_PATH,
|
|
1319
|
+
configuration,
|
|
1320
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1321
|
+
},
|
|
1322
|
+
/**
|
|
1323
|
+
*
|
|
1324
|
+
* @summary Create organization
|
|
1325
|
+
* @param {CreateOrganization} createOrganization
|
|
1326
|
+
* @param {*} [options] Override http request option.
|
|
1327
|
+
* @throws {RequiredError}
|
|
1328
|
+
*/
|
|
1329
|
+
async createOrganization(
|
|
1330
|
+
createOrganization: CreateOrganization,
|
|
1331
|
+
options?: RawAxiosRequestConfig,
|
|
1332
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Organization>> {
|
|
1333
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganization(createOrganization, options)
|
|
1334
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1335
|
+
const localVarOperationServerBasePath =
|
|
1336
|
+
operationServerMap['OrganizationsApi.createOrganization']?.[localVarOperationServerIndex]?.url
|
|
1337
|
+
return (axios, basePath) =>
|
|
1338
|
+
createRequestFunction(
|
|
1339
|
+
localVarAxiosArgs,
|
|
1340
|
+
globalAxios,
|
|
1341
|
+
BASE_PATH,
|
|
1342
|
+
configuration,
|
|
1343
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1344
|
+
},
|
|
1345
|
+
/**
|
|
1346
|
+
*
|
|
1347
|
+
* @summary Create organization invitation
|
|
1348
|
+
* @param {string} organizationId Organization ID
|
|
1349
|
+
* @param {CreateOrganizationInvitation} createOrganizationInvitation
|
|
1350
|
+
* @param {*} [options] Override http request option.
|
|
1351
|
+
* @throws {RequiredError}
|
|
1352
|
+
*/
|
|
1353
|
+
async createOrganizationInvitation(
|
|
1354
|
+
organizationId: string,
|
|
1355
|
+
createOrganizationInvitation: CreateOrganizationInvitation,
|
|
1356
|
+
options?: RawAxiosRequestConfig,
|
|
1357
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationInvitation>> {
|
|
1358
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganizationInvitation(
|
|
1359
|
+
organizationId,
|
|
1360
|
+
createOrganizationInvitation,
|
|
1361
|
+
options,
|
|
1362
|
+
)
|
|
1363
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1364
|
+
const localVarOperationServerBasePath =
|
|
1365
|
+
operationServerMap['OrganizationsApi.createOrganizationInvitation']?.[localVarOperationServerIndex]?.url
|
|
1366
|
+
return (axios, basePath) =>
|
|
1367
|
+
createRequestFunction(
|
|
1368
|
+
localVarAxiosArgs,
|
|
1369
|
+
globalAxios,
|
|
1370
|
+
BASE_PATH,
|
|
1371
|
+
configuration,
|
|
1372
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1373
|
+
},
|
|
1374
|
+
/**
|
|
1375
|
+
*
|
|
1376
|
+
* @summary Create organization role
|
|
1377
|
+
* @param {string} organizationId Organization ID
|
|
1378
|
+
* @param {CreateOrganizationRole} createOrganizationRole
|
|
1379
|
+
* @param {*} [options] Override http request option.
|
|
1380
|
+
* @throws {RequiredError}
|
|
1381
|
+
*/
|
|
1382
|
+
async createOrganizationRole(
|
|
1383
|
+
organizationId: string,
|
|
1384
|
+
createOrganizationRole: CreateOrganizationRole,
|
|
1385
|
+
options?: RawAxiosRequestConfig,
|
|
1386
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationRole>> {
|
|
1387
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganizationRole(
|
|
1388
|
+
organizationId,
|
|
1389
|
+
createOrganizationRole,
|
|
1390
|
+
options,
|
|
1391
|
+
)
|
|
1392
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1393
|
+
const localVarOperationServerBasePath =
|
|
1394
|
+
operationServerMap['OrganizationsApi.createOrganizationRole']?.[localVarOperationServerIndex]?.url
|
|
1395
|
+
return (axios, basePath) =>
|
|
1396
|
+
createRequestFunction(
|
|
1397
|
+
localVarAxiosArgs,
|
|
1398
|
+
globalAxios,
|
|
1399
|
+
BASE_PATH,
|
|
1400
|
+
configuration,
|
|
1401
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1402
|
+
},
|
|
1403
|
+
/**
|
|
1404
|
+
*
|
|
1405
|
+
* @summary Decline organization invitation
|
|
1406
|
+
* @param {string} invitationId Invitation ID
|
|
1407
|
+
* @param {*} [options] Override http request option.
|
|
1408
|
+
* @throws {RequiredError}
|
|
1409
|
+
*/
|
|
1410
|
+
async declineOrganizationInvitation(
|
|
1411
|
+
invitationId: string,
|
|
1412
|
+
options?: RawAxiosRequestConfig,
|
|
1413
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1414
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.declineOrganizationInvitation(invitationId, options)
|
|
1415
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1416
|
+
const localVarOperationServerBasePath =
|
|
1417
|
+
operationServerMap['OrganizationsApi.declineOrganizationInvitation']?.[localVarOperationServerIndex]?.url
|
|
1418
|
+
return (axios, basePath) =>
|
|
1419
|
+
createRequestFunction(
|
|
1420
|
+
localVarAxiosArgs,
|
|
1421
|
+
globalAxios,
|
|
1422
|
+
BASE_PATH,
|
|
1423
|
+
configuration,
|
|
1424
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1425
|
+
},
|
|
1426
|
+
/**
|
|
1427
|
+
*
|
|
1428
|
+
* @summary Delete organization
|
|
1429
|
+
* @param {string} organizationId Organization ID
|
|
1430
|
+
* @param {*} [options] Override http request option.
|
|
1431
|
+
* @throws {RequiredError}
|
|
1432
|
+
*/
|
|
1433
|
+
async deleteOrganization(
|
|
1434
|
+
organizationId: string,
|
|
1435
|
+
options?: RawAxiosRequestConfig,
|
|
1436
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1437
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganization(organizationId, options)
|
|
1438
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1439
|
+
const localVarOperationServerBasePath =
|
|
1440
|
+
operationServerMap['OrganizationsApi.deleteOrganization']?.[localVarOperationServerIndex]?.url
|
|
1441
|
+
return (axios, basePath) =>
|
|
1442
|
+
createRequestFunction(
|
|
1443
|
+
localVarAxiosArgs,
|
|
1444
|
+
globalAxios,
|
|
1445
|
+
BASE_PATH,
|
|
1446
|
+
configuration,
|
|
1447
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1448
|
+
},
|
|
1449
|
+
/**
|
|
1450
|
+
*
|
|
1451
|
+
* @summary Delete organization member
|
|
1452
|
+
* @param {string} organizationId Organization ID
|
|
1453
|
+
* @param {string} userId User ID
|
|
1454
|
+
* @param {*} [options] Override http request option.
|
|
1455
|
+
* @throws {RequiredError}
|
|
1456
|
+
*/
|
|
1457
|
+
async deleteOrganizationMember(
|
|
1458
|
+
organizationId: string,
|
|
1459
|
+
userId: string,
|
|
1460
|
+
options?: RawAxiosRequestConfig,
|
|
1461
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1462
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganizationMember(
|
|
1463
|
+
organizationId,
|
|
1464
|
+
userId,
|
|
1465
|
+
options,
|
|
1466
|
+
)
|
|
1467
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1468
|
+
const localVarOperationServerBasePath =
|
|
1469
|
+
operationServerMap['OrganizationsApi.deleteOrganizationMember']?.[localVarOperationServerIndex]?.url
|
|
1470
|
+
return (axios, basePath) =>
|
|
1471
|
+
createRequestFunction(
|
|
1472
|
+
localVarAxiosArgs,
|
|
1473
|
+
globalAxios,
|
|
1474
|
+
BASE_PATH,
|
|
1475
|
+
configuration,
|
|
1476
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1477
|
+
},
|
|
1478
|
+
/**
|
|
1479
|
+
*
|
|
1480
|
+
* @summary Delete organization role
|
|
1481
|
+
* @param {string} organizationId Organization ID
|
|
1482
|
+
* @param {string} roleId Role ID
|
|
1483
|
+
* @param {*} [options] Override http request option.
|
|
1484
|
+
* @throws {RequiredError}
|
|
1485
|
+
*/
|
|
1486
|
+
async deleteOrganizationRole(
|
|
1487
|
+
organizationId: string,
|
|
1488
|
+
roleId: string,
|
|
1489
|
+
options?: RawAxiosRequestConfig,
|
|
1490
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1491
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganizationRole(organizationId, roleId, options)
|
|
1492
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1493
|
+
const localVarOperationServerBasePath =
|
|
1494
|
+
operationServerMap['OrganizationsApi.deleteOrganizationRole']?.[localVarOperationServerIndex]?.url
|
|
1495
|
+
return (axios, basePath) =>
|
|
1496
|
+
createRequestFunction(
|
|
1497
|
+
localVarAxiosArgs,
|
|
1498
|
+
globalAxios,
|
|
1499
|
+
BASE_PATH,
|
|
1500
|
+
configuration,
|
|
1501
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1502
|
+
},
|
|
1503
|
+
/**
|
|
1504
|
+
*
|
|
1505
|
+
* @summary Get organization by ID
|
|
1506
|
+
* @param {string} organizationId Organization ID
|
|
1507
|
+
* @param {*} [options] Override http request option.
|
|
1508
|
+
* @throws {RequiredError}
|
|
1509
|
+
*/
|
|
1510
|
+
async getOrganization(
|
|
1511
|
+
organizationId: string,
|
|
1512
|
+
options?: RawAxiosRequestConfig,
|
|
1513
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Organization>> {
|
|
1514
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganization(organizationId, options)
|
|
1515
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1516
|
+
const localVarOperationServerBasePath =
|
|
1517
|
+
operationServerMap['OrganizationsApi.getOrganization']?.[localVarOperationServerIndex]?.url
|
|
1518
|
+
return (axios, basePath) =>
|
|
1519
|
+
createRequestFunction(
|
|
1520
|
+
localVarAxiosArgs,
|
|
1521
|
+
globalAxios,
|
|
1522
|
+
BASE_PATH,
|
|
1523
|
+
configuration,
|
|
1524
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1525
|
+
},
|
|
1526
|
+
/**
|
|
1527
|
+
*
|
|
1528
|
+
* @summary Get count of organization invitations for authenticated user
|
|
1529
|
+
* @param {*} [options] Override http request option.
|
|
1530
|
+
* @throws {RequiredError}
|
|
1531
|
+
*/
|
|
1532
|
+
async getOrganizationInvitationsCountForAuthenticatedUser(
|
|
1533
|
+
options?: RawAxiosRequestConfig,
|
|
1534
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<number>> {
|
|
1535
|
+
const localVarAxiosArgs =
|
|
1536
|
+
await localVarAxiosParamCreator.getOrganizationInvitationsCountForAuthenticatedUser(options)
|
|
1537
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1538
|
+
const localVarOperationServerBasePath =
|
|
1539
|
+
operationServerMap['OrganizationsApi.getOrganizationInvitationsCountForAuthenticatedUser']?.[
|
|
1540
|
+
localVarOperationServerIndex
|
|
1541
|
+
]?.url
|
|
1542
|
+
return (axios, basePath) =>
|
|
1543
|
+
createRequestFunction(
|
|
1544
|
+
localVarAxiosArgs,
|
|
1545
|
+
globalAxios,
|
|
1546
|
+
BASE_PATH,
|
|
1547
|
+
configuration,
|
|
1548
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1549
|
+
},
|
|
1550
|
+
/**
|
|
1551
|
+
*
|
|
1552
|
+
* @summary Get organization current usage overview
|
|
1553
|
+
* @param {string} organizationId Organization ID
|
|
1554
|
+
* @param {*} [options] Override http request option.
|
|
1555
|
+
* @throws {RequiredError}
|
|
1556
|
+
*/
|
|
1557
|
+
async getOrganizationUsageOverview(
|
|
1558
|
+
organizationId: string,
|
|
1559
|
+
options?: RawAxiosRequestConfig,
|
|
1560
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UsageOverview>> {
|
|
1561
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationUsageOverview(organizationId, options)
|
|
1562
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1563
|
+
const localVarOperationServerBasePath =
|
|
1564
|
+
operationServerMap['OrganizationsApi.getOrganizationUsageOverview']?.[localVarOperationServerIndex]?.url
|
|
1565
|
+
return (axios, basePath) =>
|
|
1566
|
+
createRequestFunction(
|
|
1567
|
+
localVarAxiosArgs,
|
|
1568
|
+
globalAxios,
|
|
1569
|
+
BASE_PATH,
|
|
1570
|
+
configuration,
|
|
1571
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1572
|
+
},
|
|
1573
|
+
/**
|
|
1574
|
+
*
|
|
1575
|
+
* @summary Leave organization
|
|
1576
|
+
* @param {string} organizationId Organization ID
|
|
1577
|
+
* @param {*} [options] Override http request option.
|
|
1578
|
+
* @throws {RequiredError}
|
|
1579
|
+
*/
|
|
1580
|
+
async leaveOrganization(
|
|
1581
|
+
organizationId: string,
|
|
1582
|
+
options?: RawAxiosRequestConfig,
|
|
1583
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1584
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.leaveOrganization(organizationId, options)
|
|
1585
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1586
|
+
const localVarOperationServerBasePath =
|
|
1587
|
+
operationServerMap['OrganizationsApi.leaveOrganization']?.[localVarOperationServerIndex]?.url
|
|
1588
|
+
return (axios, basePath) =>
|
|
1589
|
+
createRequestFunction(
|
|
1590
|
+
localVarAxiosArgs,
|
|
1591
|
+
globalAxios,
|
|
1592
|
+
BASE_PATH,
|
|
1593
|
+
configuration,
|
|
1594
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1595
|
+
},
|
|
1596
|
+
/**
|
|
1597
|
+
*
|
|
1598
|
+
* @summary List pending organization invitations
|
|
1599
|
+
* @param {string} organizationId Organization ID
|
|
1600
|
+
* @param {*} [options] Override http request option.
|
|
1601
|
+
* @throws {RequiredError}
|
|
1602
|
+
*/
|
|
1603
|
+
async listOrganizationInvitations(
|
|
1604
|
+
organizationId: string,
|
|
1605
|
+
options?: RawAxiosRequestConfig,
|
|
1606
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrganizationInvitation>>> {
|
|
1607
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizationInvitations(organizationId, options)
|
|
1608
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1609
|
+
const localVarOperationServerBasePath =
|
|
1610
|
+
operationServerMap['OrganizationsApi.listOrganizationInvitations']?.[localVarOperationServerIndex]?.url
|
|
1611
|
+
return (axios, basePath) =>
|
|
1612
|
+
createRequestFunction(
|
|
1613
|
+
localVarAxiosArgs,
|
|
1614
|
+
globalAxios,
|
|
1615
|
+
BASE_PATH,
|
|
1616
|
+
configuration,
|
|
1617
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1618
|
+
},
|
|
1619
|
+
/**
|
|
1620
|
+
*
|
|
1621
|
+
* @summary List organization invitations for authenticated user
|
|
1622
|
+
* @param {*} [options] Override http request option.
|
|
1623
|
+
* @throws {RequiredError}
|
|
1624
|
+
*/
|
|
1625
|
+
async listOrganizationInvitationsForAuthenticatedUser(
|
|
1626
|
+
options?: RawAxiosRequestConfig,
|
|
1627
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrganizationInvitation>>> {
|
|
1628
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizationInvitationsForAuthenticatedUser(options)
|
|
1629
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1630
|
+
const localVarOperationServerBasePath =
|
|
1631
|
+
operationServerMap['OrganizationsApi.listOrganizationInvitationsForAuthenticatedUser']?.[
|
|
1632
|
+
localVarOperationServerIndex
|
|
1633
|
+
]?.url
|
|
1634
|
+
return (axios, basePath) =>
|
|
1635
|
+
createRequestFunction(
|
|
1636
|
+
localVarAxiosArgs,
|
|
1637
|
+
globalAxios,
|
|
1638
|
+
BASE_PATH,
|
|
1639
|
+
configuration,
|
|
1640
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1641
|
+
},
|
|
1642
|
+
/**
|
|
1643
|
+
*
|
|
1644
|
+
* @summary List organization members
|
|
1645
|
+
* @param {string} organizationId Organization ID
|
|
1646
|
+
* @param {*} [options] Override http request option.
|
|
1647
|
+
* @throws {RequiredError}
|
|
1648
|
+
*/
|
|
1649
|
+
async listOrganizationMembers(
|
|
1650
|
+
organizationId: string,
|
|
1651
|
+
options?: RawAxiosRequestConfig,
|
|
1652
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrganizationUser>>> {
|
|
1653
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizationMembers(organizationId, options)
|
|
1654
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1655
|
+
const localVarOperationServerBasePath =
|
|
1656
|
+
operationServerMap['OrganizationsApi.listOrganizationMembers']?.[localVarOperationServerIndex]?.url
|
|
1657
|
+
return (axios, basePath) =>
|
|
1658
|
+
createRequestFunction(
|
|
1659
|
+
localVarAxiosArgs,
|
|
1660
|
+
globalAxios,
|
|
1661
|
+
BASE_PATH,
|
|
1662
|
+
configuration,
|
|
1663
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1664
|
+
},
|
|
1665
|
+
/**
|
|
1666
|
+
*
|
|
1667
|
+
* @summary List organization roles
|
|
1668
|
+
* @param {string} organizationId Organization ID
|
|
1669
|
+
* @param {*} [options] Override http request option.
|
|
1670
|
+
* @throws {RequiredError}
|
|
1671
|
+
*/
|
|
1672
|
+
async listOrganizationRoles(
|
|
1673
|
+
organizationId: string,
|
|
1674
|
+
options?: RawAxiosRequestConfig,
|
|
1675
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrganizationRole>>> {
|
|
1676
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizationRoles(organizationId, options)
|
|
1677
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1678
|
+
const localVarOperationServerBasePath =
|
|
1679
|
+
operationServerMap['OrganizationsApi.listOrganizationRoles']?.[localVarOperationServerIndex]?.url
|
|
1680
|
+
return (axios, basePath) =>
|
|
1681
|
+
createRequestFunction(
|
|
1682
|
+
localVarAxiosArgs,
|
|
1683
|
+
globalAxios,
|
|
1684
|
+
BASE_PATH,
|
|
1685
|
+
configuration,
|
|
1686
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1687
|
+
},
|
|
1688
|
+
/**
|
|
1689
|
+
*
|
|
1690
|
+
* @summary List organizations
|
|
1691
|
+
* @param {*} [options] Override http request option.
|
|
1692
|
+
* @throws {RequiredError}
|
|
1693
|
+
*/
|
|
1694
|
+
async listOrganizations(
|
|
1695
|
+
options?: RawAxiosRequestConfig,
|
|
1696
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Organization>>> {
|
|
1697
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizations(options)
|
|
1698
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1699
|
+
const localVarOperationServerBasePath =
|
|
1700
|
+
operationServerMap['OrganizationsApi.listOrganizations']?.[localVarOperationServerIndex]?.url
|
|
1701
|
+
return (axios, basePath) =>
|
|
1702
|
+
createRequestFunction(
|
|
1703
|
+
localVarAxiosArgs,
|
|
1704
|
+
globalAxios,
|
|
1705
|
+
BASE_PATH,
|
|
1706
|
+
configuration,
|
|
1707
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1708
|
+
},
|
|
1709
|
+
/**
|
|
1710
|
+
*
|
|
1711
|
+
* @summary Suspend organization
|
|
1712
|
+
* @param {string} organizationId Organization ID
|
|
1713
|
+
* @param {OrganizationSuspension} [organizationSuspension]
|
|
1714
|
+
* @param {*} [options] Override http request option.
|
|
1715
|
+
* @throws {RequiredError}
|
|
1716
|
+
*/
|
|
1717
|
+
async suspendOrganization(
|
|
1718
|
+
organizationId: string,
|
|
1719
|
+
organizationSuspension?: OrganizationSuspension,
|
|
1720
|
+
options?: RawAxiosRequestConfig,
|
|
1721
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1722
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.suspendOrganization(
|
|
1723
|
+
organizationId,
|
|
1724
|
+
organizationSuspension,
|
|
1725
|
+
options,
|
|
1726
|
+
)
|
|
1727
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1728
|
+
const localVarOperationServerBasePath =
|
|
1729
|
+
operationServerMap['OrganizationsApi.suspendOrganization']?.[localVarOperationServerIndex]?.url
|
|
1730
|
+
return (axios, basePath) =>
|
|
1731
|
+
createRequestFunction(
|
|
1732
|
+
localVarAxiosArgs,
|
|
1733
|
+
globalAxios,
|
|
1734
|
+
BASE_PATH,
|
|
1735
|
+
configuration,
|
|
1736
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1737
|
+
},
|
|
1738
|
+
/**
|
|
1739
|
+
*
|
|
1740
|
+
* @summary Unsuspend organization
|
|
1741
|
+
* @param {string} organizationId Organization ID
|
|
1742
|
+
* @param {*} [options] Override http request option.
|
|
1743
|
+
* @throws {RequiredError}
|
|
1744
|
+
*/
|
|
1745
|
+
async unsuspendOrganization(
|
|
1746
|
+
organizationId: string,
|
|
1747
|
+
options?: RawAxiosRequestConfig,
|
|
1748
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1749
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unsuspendOrganization(organizationId, options)
|
|
1750
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1751
|
+
const localVarOperationServerBasePath =
|
|
1752
|
+
operationServerMap['OrganizationsApi.unsuspendOrganization']?.[localVarOperationServerIndex]?.url
|
|
1753
|
+
return (axios, basePath) =>
|
|
1754
|
+
createRequestFunction(
|
|
1755
|
+
localVarAxiosArgs,
|
|
1756
|
+
globalAxios,
|
|
1757
|
+
BASE_PATH,
|
|
1758
|
+
configuration,
|
|
1759
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1760
|
+
},
|
|
1761
|
+
/**
|
|
1762
|
+
*
|
|
1763
|
+
* @summary Update assigned roles to organization member
|
|
1764
|
+
* @param {string} organizationId Organization ID
|
|
1765
|
+
* @param {string} userId User ID
|
|
1766
|
+
* @param {UpdateAssignedOrganizationRoles} updateAssignedOrganizationRoles
|
|
1767
|
+
* @param {*} [options] Override http request option.
|
|
1768
|
+
* @throws {RequiredError}
|
|
1769
|
+
*/
|
|
1770
|
+
async updateAssignedOrganizationRoles(
|
|
1771
|
+
organizationId: string,
|
|
1772
|
+
userId: string,
|
|
1773
|
+
updateAssignedOrganizationRoles: UpdateAssignedOrganizationRoles,
|
|
1774
|
+
options?: RawAxiosRequestConfig,
|
|
1775
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationUser>> {
|
|
1776
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateAssignedOrganizationRoles(
|
|
1777
|
+
organizationId,
|
|
1778
|
+
userId,
|
|
1779
|
+
updateAssignedOrganizationRoles,
|
|
1780
|
+
options,
|
|
1781
|
+
)
|
|
1782
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1783
|
+
const localVarOperationServerBasePath =
|
|
1784
|
+
operationServerMap['OrganizationsApi.updateAssignedOrganizationRoles']?.[localVarOperationServerIndex]?.url
|
|
1785
|
+
return (axios, basePath) =>
|
|
1786
|
+
createRequestFunction(
|
|
1787
|
+
localVarAxiosArgs,
|
|
1788
|
+
globalAxios,
|
|
1789
|
+
BASE_PATH,
|
|
1790
|
+
configuration,
|
|
1791
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1792
|
+
},
|
|
1793
|
+
/**
|
|
1794
|
+
*
|
|
1795
|
+
* @summary Update organization invitation
|
|
1796
|
+
* @param {string} organizationId Organization ID
|
|
1797
|
+
* @param {string} invitationId Invitation ID
|
|
1798
|
+
* @param {UpdateOrganizationInvitation} updateOrganizationInvitation
|
|
1799
|
+
* @param {*} [options] Override http request option.
|
|
1800
|
+
* @throws {RequiredError}
|
|
1801
|
+
*/
|
|
1802
|
+
async updateOrganizationInvitation(
|
|
1803
|
+
organizationId: string,
|
|
1804
|
+
invitationId: string,
|
|
1805
|
+
updateOrganizationInvitation: UpdateOrganizationInvitation,
|
|
1806
|
+
options?: RawAxiosRequestConfig,
|
|
1807
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationInvitation>> {
|
|
1808
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganizationInvitation(
|
|
1809
|
+
organizationId,
|
|
1810
|
+
invitationId,
|
|
1811
|
+
updateOrganizationInvitation,
|
|
1812
|
+
options,
|
|
1813
|
+
)
|
|
1814
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1815
|
+
const localVarOperationServerBasePath =
|
|
1816
|
+
operationServerMap['OrganizationsApi.updateOrganizationInvitation']?.[localVarOperationServerIndex]?.url
|
|
1817
|
+
return (axios, basePath) =>
|
|
1818
|
+
createRequestFunction(
|
|
1819
|
+
localVarAxiosArgs,
|
|
1820
|
+
globalAxios,
|
|
1821
|
+
BASE_PATH,
|
|
1822
|
+
configuration,
|
|
1823
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1824
|
+
},
|
|
1825
|
+
/**
|
|
1826
|
+
*
|
|
1827
|
+
* @summary Update organization quota
|
|
1828
|
+
* @param {string} organizationId Organization ID
|
|
1829
|
+
* @param {UpdateOrganizationQuota} updateOrganizationQuota
|
|
1830
|
+
* @param {*} [options] Override http request option.
|
|
1831
|
+
* @throws {RequiredError}
|
|
1832
|
+
*/
|
|
1833
|
+
async updateOrganizationQuota(
|
|
1834
|
+
organizationId: string,
|
|
1835
|
+
updateOrganizationQuota: UpdateOrganizationQuota,
|
|
1836
|
+
options?: RawAxiosRequestConfig,
|
|
1837
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Organization>> {
|
|
1838
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganizationQuota(
|
|
1839
|
+
organizationId,
|
|
1840
|
+
updateOrganizationQuota,
|
|
1841
|
+
options,
|
|
1842
|
+
)
|
|
1843
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1844
|
+
const localVarOperationServerBasePath =
|
|
1845
|
+
operationServerMap['OrganizationsApi.updateOrganizationQuota']?.[localVarOperationServerIndex]?.url
|
|
1846
|
+
return (axios, basePath) =>
|
|
1847
|
+
createRequestFunction(
|
|
1848
|
+
localVarAxiosArgs,
|
|
1849
|
+
globalAxios,
|
|
1850
|
+
BASE_PATH,
|
|
1851
|
+
configuration,
|
|
1852
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1853
|
+
},
|
|
1854
|
+
/**
|
|
1855
|
+
*
|
|
1856
|
+
* @summary Update organization role
|
|
1857
|
+
* @param {string} organizationId Organization ID
|
|
1858
|
+
* @param {string} roleId Role ID
|
|
1859
|
+
* @param {UpdateOrganizationRole} updateOrganizationRole
|
|
1860
|
+
* @param {*} [options] Override http request option.
|
|
1861
|
+
* @throws {RequiredError}
|
|
1862
|
+
*/
|
|
1863
|
+
async updateOrganizationRole(
|
|
1864
|
+
organizationId: string,
|
|
1865
|
+
roleId: string,
|
|
1866
|
+
updateOrganizationRole: UpdateOrganizationRole,
|
|
1867
|
+
options?: RawAxiosRequestConfig,
|
|
1868
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationRole>> {
|
|
1869
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganizationRole(
|
|
1870
|
+
organizationId,
|
|
1871
|
+
roleId,
|
|
1872
|
+
updateOrganizationRole,
|
|
1873
|
+
options,
|
|
1874
|
+
)
|
|
1875
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1876
|
+
const localVarOperationServerBasePath =
|
|
1877
|
+
operationServerMap['OrganizationsApi.updateOrganizationRole']?.[localVarOperationServerIndex]?.url
|
|
1878
|
+
return (axios, basePath) =>
|
|
1879
|
+
createRequestFunction(
|
|
1880
|
+
localVarAxiosArgs,
|
|
1881
|
+
globalAxios,
|
|
1882
|
+
BASE_PATH,
|
|
1883
|
+
configuration,
|
|
1884
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1885
|
+
},
|
|
1886
|
+
/**
|
|
1887
|
+
*
|
|
1888
|
+
* @summary Update role for organization member
|
|
1889
|
+
* @param {string} organizationId Organization ID
|
|
1890
|
+
* @param {string} userId User ID
|
|
1891
|
+
* @param {UpdateOrganizationMemberRole} updateOrganizationMemberRole
|
|
1892
|
+
* @param {*} [options] Override http request option.
|
|
1893
|
+
* @throws {RequiredError}
|
|
1894
|
+
*/
|
|
1895
|
+
async updateRoleForOrganizationMember(
|
|
1896
|
+
organizationId: string,
|
|
1897
|
+
userId: string,
|
|
1898
|
+
updateOrganizationMemberRole: UpdateOrganizationMemberRole,
|
|
1899
|
+
options?: RawAxiosRequestConfig,
|
|
1900
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationUser>> {
|
|
1901
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateRoleForOrganizationMember(
|
|
1902
|
+
organizationId,
|
|
1903
|
+
userId,
|
|
1904
|
+
updateOrganizationMemberRole,
|
|
1905
|
+
options,
|
|
1906
|
+
)
|
|
1907
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
1908
|
+
const localVarOperationServerBasePath =
|
|
1909
|
+
operationServerMap['OrganizationsApi.updateRoleForOrganizationMember']?.[localVarOperationServerIndex]?.url
|
|
1910
|
+
return (axios, basePath) =>
|
|
1911
|
+
createRequestFunction(
|
|
1912
|
+
localVarAxiosArgs,
|
|
1913
|
+
globalAxios,
|
|
1914
|
+
BASE_PATH,
|
|
1915
|
+
configuration,
|
|
1916
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
1917
|
+
},
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1312
1920
|
|
|
1313
1921
|
/**
|
|
1314
1922
|
* OrganizationsApi - factory interface
|
|
1315
1923
|
* @export
|
|
1316
1924
|
*/
|
|
1317
|
-
export const OrganizationsApiFactory = function (
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
* @param {*} [options] Override http request option.
|
|
1325
|
-
* @throws {RequiredError}
|
|
1326
|
-
*/
|
|
1327
|
-
acceptOrganizationInvitation(invitationId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1328
|
-
return localVarFp.acceptOrganizationInvitation(invitationId, options).then((request) => request(axios, basePath));
|
|
1329
|
-
},
|
|
1330
|
-
/**
|
|
1331
|
-
*
|
|
1332
|
-
* @summary Cancel organization invitation
|
|
1333
|
-
* @param {string} organizationId Organization ID
|
|
1334
|
-
* @param {string} invitationId Invitation ID
|
|
1335
|
-
* @param {*} [options] Override http request option.
|
|
1336
|
-
* @throws {RequiredError}
|
|
1337
|
-
*/
|
|
1338
|
-
cancelOrganizationInvitation(organizationId: string, invitationId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1339
|
-
return localVarFp.cancelOrganizationInvitation(organizationId, invitationId, options).then((request) => request(axios, basePath));
|
|
1340
|
-
},
|
|
1341
|
-
/**
|
|
1342
|
-
*
|
|
1343
|
-
* @summary Create organization
|
|
1344
|
-
* @param {CreateOrganization} createOrganization
|
|
1345
|
-
* @param {*} [options] Override http request option.
|
|
1346
|
-
* @throws {RequiredError}
|
|
1347
|
-
*/
|
|
1348
|
-
createOrganization(createOrganization: CreateOrganization, options?: RawAxiosRequestConfig): AxiosPromise<Organization> {
|
|
1349
|
-
return localVarFp.createOrganization(createOrganization, options).then((request) => request(axios, basePath));
|
|
1350
|
-
},
|
|
1351
|
-
/**
|
|
1352
|
-
*
|
|
1353
|
-
* @summary Create organization invitation
|
|
1354
|
-
* @param {string} organizationId Organization ID
|
|
1355
|
-
* @param {CreateOrganizationInvitation} createOrganizationInvitation
|
|
1356
|
-
* @param {*} [options] Override http request option.
|
|
1357
|
-
* @throws {RequiredError}
|
|
1358
|
-
*/
|
|
1359
|
-
createOrganizationInvitation(organizationId: string, createOrganizationInvitation: CreateOrganizationInvitation, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationInvitation> {
|
|
1360
|
-
return localVarFp.createOrganizationInvitation(organizationId, createOrganizationInvitation, options).then((request) => request(axios, basePath));
|
|
1361
|
-
},
|
|
1362
|
-
/**
|
|
1363
|
-
*
|
|
1364
|
-
* @summary Create organization role
|
|
1365
|
-
* @param {string} organizationId Organization ID
|
|
1366
|
-
* @param {CreateOrganizationRole} createOrganizationRole
|
|
1367
|
-
* @param {*} [options] Override http request option.
|
|
1368
|
-
* @throws {RequiredError}
|
|
1369
|
-
*/
|
|
1370
|
-
createOrganizationRole(organizationId: string, createOrganizationRole: CreateOrganizationRole, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationRole> {
|
|
1371
|
-
return localVarFp.createOrganizationRole(organizationId, createOrganizationRole, options).then((request) => request(axios, basePath));
|
|
1372
|
-
},
|
|
1373
|
-
/**
|
|
1374
|
-
*
|
|
1375
|
-
* @summary Decline organization invitation
|
|
1376
|
-
* @param {string} invitationId Invitation ID
|
|
1377
|
-
* @param {*} [options] Override http request option.
|
|
1378
|
-
* @throws {RequiredError}
|
|
1379
|
-
*/
|
|
1380
|
-
declineOrganizationInvitation(invitationId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1381
|
-
return localVarFp.declineOrganizationInvitation(invitationId, options).then((request) => request(axios, basePath));
|
|
1382
|
-
},
|
|
1383
|
-
/**
|
|
1384
|
-
*
|
|
1385
|
-
* @summary Delete organization
|
|
1386
|
-
* @param {string} organizationId Organization ID
|
|
1387
|
-
* @param {*} [options] Override http request option.
|
|
1388
|
-
* @throws {RequiredError}
|
|
1389
|
-
*/
|
|
1390
|
-
deleteOrganization(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1391
|
-
return localVarFp.deleteOrganization(organizationId, options).then((request) => request(axios, basePath));
|
|
1392
|
-
},
|
|
1393
|
-
/**
|
|
1394
|
-
*
|
|
1395
|
-
* @summary Delete organization member
|
|
1396
|
-
* @param {string} organizationId Organization ID
|
|
1397
|
-
* @param {string} userId User ID
|
|
1398
|
-
* @param {*} [options] Override http request option.
|
|
1399
|
-
* @throws {RequiredError}
|
|
1400
|
-
*/
|
|
1401
|
-
deleteOrganizationMember(organizationId: string, userId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1402
|
-
return localVarFp.deleteOrganizationMember(organizationId, userId, options).then((request) => request(axios, basePath));
|
|
1403
|
-
},
|
|
1404
|
-
/**
|
|
1405
|
-
*
|
|
1406
|
-
* @summary Delete organization role
|
|
1407
|
-
* @param {string} organizationId Organization ID
|
|
1408
|
-
* @param {string} roleId Role ID
|
|
1409
|
-
* @param {*} [options] Override http request option.
|
|
1410
|
-
* @throws {RequiredError}
|
|
1411
|
-
*/
|
|
1412
|
-
deleteOrganizationRole(organizationId: string, roleId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1413
|
-
return localVarFp.deleteOrganizationRole(organizationId, roleId, options).then((request) => request(axios, basePath));
|
|
1414
|
-
},
|
|
1415
|
-
/**
|
|
1416
|
-
*
|
|
1417
|
-
* @summary Get organization by ID
|
|
1418
|
-
* @param {string} organizationId Organization ID
|
|
1419
|
-
* @param {*} [options] Override http request option.
|
|
1420
|
-
* @throws {RequiredError}
|
|
1421
|
-
*/
|
|
1422
|
-
getOrganization(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Organization> {
|
|
1423
|
-
return localVarFp.getOrganization(organizationId, options).then((request) => request(axios, basePath));
|
|
1424
|
-
},
|
|
1425
|
-
/**
|
|
1426
|
-
*
|
|
1427
|
-
* @summary Get count of organization invitations for authenticated user
|
|
1428
|
-
* @param {*} [options] Override http request option.
|
|
1429
|
-
* @throws {RequiredError}
|
|
1430
|
-
*/
|
|
1431
|
-
getOrganizationInvitationsCountForAuthenticatedUser(options?: RawAxiosRequestConfig): AxiosPromise<number> {
|
|
1432
|
-
return localVarFp.getOrganizationInvitationsCountForAuthenticatedUser(options).then((request) => request(axios, basePath));
|
|
1433
|
-
},
|
|
1434
|
-
/**
|
|
1435
|
-
*
|
|
1436
|
-
* @summary Get organization current usage overview
|
|
1437
|
-
* @param {string} organizationId Organization ID
|
|
1438
|
-
* @param {*} [options] Override http request option.
|
|
1439
|
-
* @throws {RequiredError}
|
|
1440
|
-
*/
|
|
1441
|
-
getOrganizationUsageOverview(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<UsageOverview> {
|
|
1442
|
-
return localVarFp.getOrganizationUsageOverview(organizationId, options).then((request) => request(axios, basePath));
|
|
1443
|
-
},
|
|
1444
|
-
/**
|
|
1445
|
-
*
|
|
1446
|
-
* @summary Leave organization
|
|
1447
|
-
* @param {string} organizationId Organization ID
|
|
1448
|
-
* @param {*} [options] Override http request option.
|
|
1449
|
-
* @throws {RequiredError}
|
|
1450
|
-
*/
|
|
1451
|
-
leaveOrganization(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1452
|
-
return localVarFp.leaveOrganization(organizationId, options).then((request) => request(axios, basePath));
|
|
1453
|
-
},
|
|
1454
|
-
/**
|
|
1455
|
-
*
|
|
1456
|
-
* @summary List pending organization invitations
|
|
1457
|
-
* @param {string} organizationId Organization ID
|
|
1458
|
-
* @param {*} [options] Override http request option.
|
|
1459
|
-
* @throws {RequiredError}
|
|
1460
|
-
*/
|
|
1461
|
-
listOrganizationInvitations(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrganizationInvitation>> {
|
|
1462
|
-
return localVarFp.listOrganizationInvitations(organizationId, options).then((request) => request(axios, basePath));
|
|
1463
|
-
},
|
|
1464
|
-
/**
|
|
1465
|
-
*
|
|
1466
|
-
* @summary List organization invitations for authenticated user
|
|
1467
|
-
* @param {*} [options] Override http request option.
|
|
1468
|
-
* @throws {RequiredError}
|
|
1469
|
-
*/
|
|
1470
|
-
listOrganizationInvitationsForAuthenticatedUser(options?: RawAxiosRequestConfig): AxiosPromise<Array<OrganizationInvitation>> {
|
|
1471
|
-
return localVarFp.listOrganizationInvitationsForAuthenticatedUser(options).then((request) => request(axios, basePath));
|
|
1472
|
-
},
|
|
1473
|
-
/**
|
|
1474
|
-
*
|
|
1475
|
-
* @summary List organization members
|
|
1476
|
-
* @param {string} organizationId Organization ID
|
|
1477
|
-
* @param {*} [options] Override http request option.
|
|
1478
|
-
* @throws {RequiredError}
|
|
1479
|
-
*/
|
|
1480
|
-
listOrganizationMembers(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrganizationUser>> {
|
|
1481
|
-
return localVarFp.listOrganizationMembers(organizationId, options).then((request) => request(axios, basePath));
|
|
1482
|
-
},
|
|
1483
|
-
/**
|
|
1484
|
-
*
|
|
1485
|
-
* @summary List organization roles
|
|
1486
|
-
* @param {string} organizationId Organization ID
|
|
1487
|
-
* @param {*} [options] Override http request option.
|
|
1488
|
-
* @throws {RequiredError}
|
|
1489
|
-
*/
|
|
1490
|
-
listOrganizationRoles(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrganizationRole>> {
|
|
1491
|
-
return localVarFp.listOrganizationRoles(organizationId, options).then((request) => request(axios, basePath));
|
|
1492
|
-
},
|
|
1493
|
-
/**
|
|
1494
|
-
*
|
|
1495
|
-
* @summary List organizations
|
|
1496
|
-
* @param {*} [options] Override http request option.
|
|
1497
|
-
* @throws {RequiredError}
|
|
1498
|
-
*/
|
|
1499
|
-
listOrganizations(options?: RawAxiosRequestConfig): AxiosPromise<Array<Organization>> {
|
|
1500
|
-
return localVarFp.listOrganizations(options).then((request) => request(axios, basePath));
|
|
1501
|
-
},
|
|
1502
|
-
/**
|
|
1503
|
-
*
|
|
1504
|
-
* @summary Update assigned roles to organization member
|
|
1505
|
-
* @param {string} organizationId Organization ID
|
|
1506
|
-
* @param {string} userId User ID
|
|
1507
|
-
* @param {UpdateAssignedOrganizationRoles} updateAssignedOrganizationRoles
|
|
1508
|
-
* @param {*} [options] Override http request option.
|
|
1509
|
-
* @throws {RequiredError}
|
|
1510
|
-
*/
|
|
1511
|
-
updateAssignedOrganizationRoles(organizationId: string, userId: string, updateAssignedOrganizationRoles: UpdateAssignedOrganizationRoles, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationUser> {
|
|
1512
|
-
return localVarFp.updateAssignedOrganizationRoles(organizationId, userId, updateAssignedOrganizationRoles, options).then((request) => request(axios, basePath));
|
|
1513
|
-
},
|
|
1514
|
-
/**
|
|
1515
|
-
*
|
|
1516
|
-
* @summary Update organization invitation
|
|
1517
|
-
* @param {string} organizationId Organization ID
|
|
1518
|
-
* @param {string} invitationId Invitation ID
|
|
1519
|
-
* @param {UpdateOrganizationInvitation} updateOrganizationInvitation
|
|
1520
|
-
* @param {*} [options] Override http request option.
|
|
1521
|
-
* @throws {RequiredError}
|
|
1522
|
-
*/
|
|
1523
|
-
updateOrganizationInvitation(organizationId: string, invitationId: string, updateOrganizationInvitation: UpdateOrganizationInvitation, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationInvitation> {
|
|
1524
|
-
return localVarFp.updateOrganizationInvitation(organizationId, invitationId, updateOrganizationInvitation, options).then((request) => request(axios, basePath));
|
|
1525
|
-
},
|
|
1526
|
-
/**
|
|
1527
|
-
*
|
|
1528
|
-
* @summary Update organization quota
|
|
1529
|
-
* @param {string} organizationId Organization ID
|
|
1530
|
-
* @param {UpdateOrganizationQuota} updateOrganizationQuota
|
|
1531
|
-
* @param {*} [options] Override http request option.
|
|
1532
|
-
* @throws {RequiredError}
|
|
1533
|
-
*/
|
|
1534
|
-
updateOrganizationQuota(organizationId: string, updateOrganizationQuota: UpdateOrganizationQuota, options?: RawAxiosRequestConfig): AxiosPromise<Organization> {
|
|
1535
|
-
return localVarFp.updateOrganizationQuota(organizationId, updateOrganizationQuota, options).then((request) => request(axios, basePath));
|
|
1536
|
-
},
|
|
1537
|
-
/**
|
|
1538
|
-
*
|
|
1539
|
-
* @summary Update organization role
|
|
1540
|
-
* @param {string} organizationId Organization ID
|
|
1541
|
-
* @param {string} roleId Role ID
|
|
1542
|
-
* @param {UpdateOrganizationRole} updateOrganizationRole
|
|
1543
|
-
* @param {*} [options] Override http request option.
|
|
1544
|
-
* @throws {RequiredError}
|
|
1545
|
-
*/
|
|
1546
|
-
updateOrganizationRole(organizationId: string, roleId: string, updateOrganizationRole: UpdateOrganizationRole, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationRole> {
|
|
1547
|
-
return localVarFp.updateOrganizationRole(organizationId, roleId, updateOrganizationRole, options).then((request) => request(axios, basePath));
|
|
1548
|
-
},
|
|
1549
|
-
/**
|
|
1550
|
-
*
|
|
1551
|
-
* @summary Update role for organization member
|
|
1552
|
-
* @param {string} organizationId Organization ID
|
|
1553
|
-
* @param {string} userId User ID
|
|
1554
|
-
* @param {UpdateOrganizationMemberRole} updateOrganizationMemberRole
|
|
1555
|
-
* @param {*} [options] Override http request option.
|
|
1556
|
-
* @throws {RequiredError}
|
|
1557
|
-
*/
|
|
1558
|
-
updateRoleForOrganizationMember(organizationId: string, userId: string, updateOrganizationMemberRole: UpdateOrganizationMemberRole, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationUser> {
|
|
1559
|
-
return localVarFp.updateRoleForOrganizationMember(organizationId, userId, updateOrganizationMemberRole, options).then((request) => request(axios, basePath));
|
|
1560
|
-
},
|
|
1561
|
-
};
|
|
1562
|
-
};
|
|
1563
|
-
|
|
1564
|
-
/**
|
|
1565
|
-
* OrganizationsApi - object-oriented interface
|
|
1566
|
-
* @export
|
|
1567
|
-
* @class OrganizationsApi
|
|
1568
|
-
* @extends {BaseAPI}
|
|
1569
|
-
*/
|
|
1570
|
-
export class OrganizationsApi extends BaseAPI {
|
|
1925
|
+
export const OrganizationsApiFactory = function (
|
|
1926
|
+
configuration?: Configuration,
|
|
1927
|
+
basePath?: string,
|
|
1928
|
+
axios?: AxiosInstance,
|
|
1929
|
+
) {
|
|
1930
|
+
const localVarFp = OrganizationsApiFp(configuration)
|
|
1931
|
+
return {
|
|
1571
1932
|
/**
|
|
1572
|
-
*
|
|
1933
|
+
*
|
|
1573
1934
|
* @summary Accept organization invitation
|
|
1574
1935
|
* @param {string} invitationId Invitation ID
|
|
1575
1936
|
* @param {*} [options] Override http request option.
|
|
1576
1937
|
* @throws {RequiredError}
|
|
1577
|
-
* @memberof OrganizationsApi
|
|
1578
1938
|
*/
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1939
|
+
acceptOrganizationInvitation(invitationId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1940
|
+
return localVarFp.acceptOrganizationInvitation(invitationId, options).then((request) => request(axios, basePath))
|
|
1941
|
+
},
|
|
1583
1942
|
/**
|
|
1584
|
-
*
|
|
1943
|
+
*
|
|
1585
1944
|
* @summary Cancel organization invitation
|
|
1586
1945
|
* @param {string} organizationId Organization ID
|
|
1587
1946
|
* @param {string} invitationId Invitation ID
|
|
1588
1947
|
* @param {*} [options] Override http request option.
|
|
1589
1948
|
* @throws {RequiredError}
|
|
1590
|
-
* @memberof OrganizationsApi
|
|
1591
1949
|
*/
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1950
|
+
cancelOrganizationInvitation(
|
|
1951
|
+
organizationId: string,
|
|
1952
|
+
invitationId: string,
|
|
1953
|
+
options?: RawAxiosRequestConfig,
|
|
1954
|
+
): AxiosPromise<void> {
|
|
1955
|
+
return localVarFp
|
|
1956
|
+
.cancelOrganizationInvitation(organizationId, invitationId, options)
|
|
1957
|
+
.then((request) => request(axios, basePath))
|
|
1958
|
+
},
|
|
1596
1959
|
/**
|
|
1597
|
-
*
|
|
1960
|
+
*
|
|
1598
1961
|
* @summary Create organization
|
|
1599
|
-
* @param {CreateOrganization} createOrganization
|
|
1962
|
+
* @param {CreateOrganization} createOrganization
|
|
1600
1963
|
* @param {*} [options] Override http request option.
|
|
1601
1964
|
* @throws {RequiredError}
|
|
1602
|
-
* @memberof OrganizationsApi
|
|
1603
1965
|
*/
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1966
|
+
createOrganization(
|
|
1967
|
+
createOrganization: CreateOrganization,
|
|
1968
|
+
options?: RawAxiosRequestConfig,
|
|
1969
|
+
): AxiosPromise<Organization> {
|
|
1970
|
+
return localVarFp.createOrganization(createOrganization, options).then((request) => request(axios, basePath))
|
|
1971
|
+
},
|
|
1608
1972
|
/**
|
|
1609
|
-
*
|
|
1973
|
+
*
|
|
1610
1974
|
* @summary Create organization invitation
|
|
1611
1975
|
* @param {string} organizationId Organization ID
|
|
1612
|
-
* @param {CreateOrganizationInvitation} createOrganizationInvitation
|
|
1976
|
+
* @param {CreateOrganizationInvitation} createOrganizationInvitation
|
|
1613
1977
|
* @param {*} [options] Override http request option.
|
|
1614
1978
|
* @throws {RequiredError}
|
|
1615
|
-
* @memberof OrganizationsApi
|
|
1616
1979
|
*/
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1980
|
+
createOrganizationInvitation(
|
|
1981
|
+
organizationId: string,
|
|
1982
|
+
createOrganizationInvitation: CreateOrganizationInvitation,
|
|
1983
|
+
options?: RawAxiosRequestConfig,
|
|
1984
|
+
): AxiosPromise<OrganizationInvitation> {
|
|
1985
|
+
return localVarFp
|
|
1986
|
+
.createOrganizationInvitation(organizationId, createOrganizationInvitation, options)
|
|
1987
|
+
.then((request) => request(axios, basePath))
|
|
1988
|
+
},
|
|
1621
1989
|
/**
|
|
1622
|
-
*
|
|
1990
|
+
*
|
|
1623
1991
|
* @summary Create organization role
|
|
1624
1992
|
* @param {string} organizationId Organization ID
|
|
1625
|
-
* @param {CreateOrganizationRole} createOrganizationRole
|
|
1993
|
+
* @param {CreateOrganizationRole} createOrganizationRole
|
|
1626
1994
|
* @param {*} [options] Override http request option.
|
|
1627
1995
|
* @throws {RequiredError}
|
|
1628
|
-
* @memberof OrganizationsApi
|
|
1629
1996
|
*/
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1997
|
+
createOrganizationRole(
|
|
1998
|
+
organizationId: string,
|
|
1999
|
+
createOrganizationRole: CreateOrganizationRole,
|
|
2000
|
+
options?: RawAxiosRequestConfig,
|
|
2001
|
+
): AxiosPromise<OrganizationRole> {
|
|
2002
|
+
return localVarFp
|
|
2003
|
+
.createOrganizationRole(organizationId, createOrganizationRole, options)
|
|
2004
|
+
.then((request) => request(axios, basePath))
|
|
2005
|
+
},
|
|
1634
2006
|
/**
|
|
1635
|
-
*
|
|
2007
|
+
*
|
|
1636
2008
|
* @summary Decline organization invitation
|
|
1637
2009
|
* @param {string} invitationId Invitation ID
|
|
1638
2010
|
* @param {*} [options] Override http request option.
|
|
1639
2011
|
* @throws {RequiredError}
|
|
1640
|
-
* @memberof OrganizationsApi
|
|
1641
2012
|
*/
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
}
|
|
1645
|
-
|
|
2013
|
+
declineOrganizationInvitation(invitationId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2014
|
+
return localVarFp.declineOrganizationInvitation(invitationId, options).then((request) => request(axios, basePath))
|
|
2015
|
+
},
|
|
1646
2016
|
/**
|
|
1647
|
-
*
|
|
2017
|
+
*
|
|
1648
2018
|
* @summary Delete organization
|
|
1649
2019
|
* @param {string} organizationId Organization ID
|
|
1650
2020
|
* @param {*} [options] Override http request option.
|
|
1651
2021
|
* @throws {RequiredError}
|
|
1652
|
-
* @memberof OrganizationsApi
|
|
1653
2022
|
*/
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
}
|
|
1657
|
-
|
|
2023
|
+
deleteOrganization(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2024
|
+
return localVarFp.deleteOrganization(organizationId, options).then((request) => request(axios, basePath))
|
|
2025
|
+
},
|
|
1658
2026
|
/**
|
|
1659
|
-
*
|
|
2027
|
+
*
|
|
1660
2028
|
* @summary Delete organization member
|
|
1661
2029
|
* @param {string} organizationId Organization ID
|
|
1662
2030
|
* @param {string} userId User ID
|
|
1663
2031
|
* @param {*} [options] Override http request option.
|
|
1664
2032
|
* @throws {RequiredError}
|
|
1665
|
-
* @memberof OrganizationsApi
|
|
1666
2033
|
*/
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
2034
|
+
deleteOrganizationMember(
|
|
2035
|
+
organizationId: string,
|
|
2036
|
+
userId: string,
|
|
2037
|
+
options?: RawAxiosRequestConfig,
|
|
2038
|
+
): AxiosPromise<void> {
|
|
2039
|
+
return localVarFp
|
|
2040
|
+
.deleteOrganizationMember(organizationId, userId, options)
|
|
2041
|
+
.then((request) => request(axios, basePath))
|
|
2042
|
+
},
|
|
1671
2043
|
/**
|
|
1672
|
-
*
|
|
2044
|
+
*
|
|
1673
2045
|
* @summary Delete organization role
|
|
1674
2046
|
* @param {string} organizationId Organization ID
|
|
1675
2047
|
* @param {string} roleId Role ID
|
|
1676
2048
|
* @param {*} [options] Override http request option.
|
|
1677
2049
|
* @throws {RequiredError}
|
|
1678
|
-
* @memberof OrganizationsApi
|
|
1679
2050
|
*/
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
2051
|
+
deleteOrganizationRole(
|
|
2052
|
+
organizationId: string,
|
|
2053
|
+
roleId: string,
|
|
2054
|
+
options?: RawAxiosRequestConfig,
|
|
2055
|
+
): AxiosPromise<void> {
|
|
2056
|
+
return localVarFp
|
|
2057
|
+
.deleteOrganizationRole(organizationId, roleId, options)
|
|
2058
|
+
.then((request) => request(axios, basePath))
|
|
2059
|
+
},
|
|
1684
2060
|
/**
|
|
1685
|
-
*
|
|
2061
|
+
*
|
|
1686
2062
|
* @summary Get organization by ID
|
|
1687
2063
|
* @param {string} organizationId Organization ID
|
|
1688
2064
|
* @param {*} [options] Override http request option.
|
|
1689
2065
|
* @throws {RequiredError}
|
|
1690
|
-
* @memberof OrganizationsApi
|
|
1691
2066
|
*/
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
}
|
|
1695
|
-
|
|
2067
|
+
getOrganization(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Organization> {
|
|
2068
|
+
return localVarFp.getOrganization(organizationId, options).then((request) => request(axios, basePath))
|
|
2069
|
+
},
|
|
1696
2070
|
/**
|
|
1697
|
-
*
|
|
2071
|
+
*
|
|
1698
2072
|
* @summary Get count of organization invitations for authenticated user
|
|
1699
2073
|
* @param {*} [options] Override http request option.
|
|
1700
2074
|
* @throws {RequiredError}
|
|
1701
|
-
* @memberof OrganizationsApi
|
|
1702
2075
|
*/
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
2076
|
+
getOrganizationInvitationsCountForAuthenticatedUser(options?: RawAxiosRequestConfig): AxiosPromise<number> {
|
|
2077
|
+
return localVarFp
|
|
2078
|
+
.getOrganizationInvitationsCountForAuthenticatedUser(options)
|
|
2079
|
+
.then((request) => request(axios, basePath))
|
|
2080
|
+
},
|
|
1707
2081
|
/**
|
|
1708
|
-
*
|
|
2082
|
+
*
|
|
1709
2083
|
* @summary Get organization current usage overview
|
|
1710
2084
|
* @param {string} organizationId Organization ID
|
|
1711
2085
|
* @param {*} [options] Override http request option.
|
|
1712
2086
|
* @throws {RequiredError}
|
|
1713
|
-
* @memberof OrganizationsApi
|
|
1714
2087
|
*/
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
2088
|
+
getOrganizationUsageOverview(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<UsageOverview> {
|
|
2089
|
+
return localVarFp
|
|
2090
|
+
.getOrganizationUsageOverview(organizationId, options)
|
|
2091
|
+
.then((request) => request(axios, basePath))
|
|
2092
|
+
},
|
|
1719
2093
|
/**
|
|
1720
|
-
*
|
|
2094
|
+
*
|
|
1721
2095
|
* @summary Leave organization
|
|
1722
2096
|
* @param {string} organizationId Organization ID
|
|
1723
2097
|
* @param {*} [options] Override http request option.
|
|
1724
2098
|
* @throws {RequiredError}
|
|
1725
|
-
* @memberof OrganizationsApi
|
|
1726
2099
|
*/
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
}
|
|
1730
|
-
|
|
2100
|
+
leaveOrganization(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2101
|
+
return localVarFp.leaveOrganization(organizationId, options).then((request) => request(axios, basePath))
|
|
2102
|
+
},
|
|
1731
2103
|
/**
|
|
1732
|
-
*
|
|
2104
|
+
*
|
|
1733
2105
|
* @summary List pending organization invitations
|
|
1734
2106
|
* @param {string} organizationId Organization ID
|
|
1735
2107
|
* @param {*} [options] Override http request option.
|
|
1736
2108
|
* @throws {RequiredError}
|
|
1737
|
-
* @memberof OrganizationsApi
|
|
1738
2109
|
*/
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
2110
|
+
listOrganizationInvitations(
|
|
2111
|
+
organizationId: string,
|
|
2112
|
+
options?: RawAxiosRequestConfig,
|
|
2113
|
+
): AxiosPromise<Array<OrganizationInvitation>> {
|
|
2114
|
+
return localVarFp.listOrganizationInvitations(organizationId, options).then((request) => request(axios, basePath))
|
|
2115
|
+
},
|
|
1743
2116
|
/**
|
|
1744
|
-
*
|
|
2117
|
+
*
|
|
1745
2118
|
* @summary List organization invitations for authenticated user
|
|
1746
2119
|
* @param {*} [options] Override http request option.
|
|
1747
2120
|
* @throws {RequiredError}
|
|
1748
|
-
* @memberof OrganizationsApi
|
|
1749
2121
|
*/
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
2122
|
+
listOrganizationInvitationsForAuthenticatedUser(
|
|
2123
|
+
options?: RawAxiosRequestConfig,
|
|
2124
|
+
): AxiosPromise<Array<OrganizationInvitation>> {
|
|
2125
|
+
return localVarFp
|
|
2126
|
+
.listOrganizationInvitationsForAuthenticatedUser(options)
|
|
2127
|
+
.then((request) => request(axios, basePath))
|
|
2128
|
+
},
|
|
1754
2129
|
/**
|
|
1755
|
-
*
|
|
2130
|
+
*
|
|
1756
2131
|
* @summary List organization members
|
|
1757
2132
|
* @param {string} organizationId Organization ID
|
|
1758
2133
|
* @param {*} [options] Override http request option.
|
|
1759
2134
|
* @throws {RequiredError}
|
|
1760
|
-
* @memberof OrganizationsApi
|
|
1761
2135
|
*/
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
2136
|
+
listOrganizationMembers(
|
|
2137
|
+
organizationId: string,
|
|
2138
|
+
options?: RawAxiosRequestConfig,
|
|
2139
|
+
): AxiosPromise<Array<OrganizationUser>> {
|
|
2140
|
+
return localVarFp.listOrganizationMembers(organizationId, options).then((request) => request(axios, basePath))
|
|
2141
|
+
},
|
|
1766
2142
|
/**
|
|
1767
|
-
*
|
|
2143
|
+
*
|
|
1768
2144
|
* @summary List organization roles
|
|
1769
2145
|
* @param {string} organizationId Organization ID
|
|
1770
2146
|
* @param {*} [options] Override http request option.
|
|
1771
2147
|
* @throws {RequiredError}
|
|
1772
|
-
* @memberof OrganizationsApi
|
|
1773
2148
|
*/
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
2149
|
+
listOrganizationRoles(
|
|
2150
|
+
organizationId: string,
|
|
2151
|
+
options?: RawAxiosRequestConfig,
|
|
2152
|
+
): AxiosPromise<Array<OrganizationRole>> {
|
|
2153
|
+
return localVarFp.listOrganizationRoles(organizationId, options).then((request) => request(axios, basePath))
|
|
2154
|
+
},
|
|
1778
2155
|
/**
|
|
1779
|
-
*
|
|
2156
|
+
*
|
|
1780
2157
|
* @summary List organizations
|
|
1781
2158
|
* @param {*} [options] Override http request option.
|
|
1782
2159
|
* @throws {RequiredError}
|
|
1783
|
-
* @memberof OrganizationsApi
|
|
1784
2160
|
*/
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
}
|
|
1788
|
-
|
|
2161
|
+
listOrganizations(options?: RawAxiosRequestConfig): AxiosPromise<Array<Organization>> {
|
|
2162
|
+
return localVarFp.listOrganizations(options).then((request) => request(axios, basePath))
|
|
2163
|
+
},
|
|
1789
2164
|
/**
|
|
1790
|
-
*
|
|
2165
|
+
*
|
|
2166
|
+
* @summary Suspend organization
|
|
2167
|
+
* @param {string} organizationId Organization ID
|
|
2168
|
+
* @param {OrganizationSuspension} [organizationSuspension]
|
|
2169
|
+
* @param {*} [options] Override http request option.
|
|
2170
|
+
* @throws {RequiredError}
|
|
2171
|
+
*/
|
|
2172
|
+
suspendOrganization(
|
|
2173
|
+
organizationId: string,
|
|
2174
|
+
organizationSuspension?: OrganizationSuspension,
|
|
2175
|
+
options?: RawAxiosRequestConfig,
|
|
2176
|
+
): AxiosPromise<void> {
|
|
2177
|
+
return localVarFp
|
|
2178
|
+
.suspendOrganization(organizationId, organizationSuspension, options)
|
|
2179
|
+
.then((request) => request(axios, basePath))
|
|
2180
|
+
},
|
|
2181
|
+
/**
|
|
2182
|
+
*
|
|
2183
|
+
* @summary Unsuspend organization
|
|
2184
|
+
* @param {string} organizationId Organization ID
|
|
2185
|
+
* @param {*} [options] Override http request option.
|
|
2186
|
+
* @throws {RequiredError}
|
|
2187
|
+
*/
|
|
2188
|
+
unsuspendOrganization(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2189
|
+
return localVarFp.unsuspendOrganization(organizationId, options).then((request) => request(axios, basePath))
|
|
2190
|
+
},
|
|
2191
|
+
/**
|
|
2192
|
+
*
|
|
1791
2193
|
* @summary Update assigned roles to organization member
|
|
1792
2194
|
* @param {string} organizationId Organization ID
|
|
1793
2195
|
* @param {string} userId User ID
|
|
1794
|
-
* @param {UpdateAssignedOrganizationRoles} updateAssignedOrganizationRoles
|
|
2196
|
+
* @param {UpdateAssignedOrganizationRoles} updateAssignedOrganizationRoles
|
|
1795
2197
|
* @param {*} [options] Override http request option.
|
|
1796
2198
|
* @throws {RequiredError}
|
|
1797
|
-
* @memberof OrganizationsApi
|
|
1798
2199
|
*/
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
2200
|
+
updateAssignedOrganizationRoles(
|
|
2201
|
+
organizationId: string,
|
|
2202
|
+
userId: string,
|
|
2203
|
+
updateAssignedOrganizationRoles: UpdateAssignedOrganizationRoles,
|
|
2204
|
+
options?: RawAxiosRequestConfig,
|
|
2205
|
+
): AxiosPromise<OrganizationUser> {
|
|
2206
|
+
return localVarFp
|
|
2207
|
+
.updateAssignedOrganizationRoles(organizationId, userId, updateAssignedOrganizationRoles, options)
|
|
2208
|
+
.then((request) => request(axios, basePath))
|
|
2209
|
+
},
|
|
1803
2210
|
/**
|
|
1804
|
-
*
|
|
2211
|
+
*
|
|
1805
2212
|
* @summary Update organization invitation
|
|
1806
2213
|
* @param {string} organizationId Organization ID
|
|
1807
2214
|
* @param {string} invitationId Invitation ID
|
|
1808
|
-
* @param {UpdateOrganizationInvitation} updateOrganizationInvitation
|
|
2215
|
+
* @param {UpdateOrganizationInvitation} updateOrganizationInvitation
|
|
1809
2216
|
* @param {*} [options] Override http request option.
|
|
1810
2217
|
* @throws {RequiredError}
|
|
1811
|
-
* @memberof OrganizationsApi
|
|
1812
2218
|
*/
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
2219
|
+
updateOrganizationInvitation(
|
|
2220
|
+
organizationId: string,
|
|
2221
|
+
invitationId: string,
|
|
2222
|
+
updateOrganizationInvitation: UpdateOrganizationInvitation,
|
|
2223
|
+
options?: RawAxiosRequestConfig,
|
|
2224
|
+
): AxiosPromise<OrganizationInvitation> {
|
|
2225
|
+
return localVarFp
|
|
2226
|
+
.updateOrganizationInvitation(organizationId, invitationId, updateOrganizationInvitation, options)
|
|
2227
|
+
.then((request) => request(axios, basePath))
|
|
2228
|
+
},
|
|
1817
2229
|
/**
|
|
1818
|
-
*
|
|
2230
|
+
*
|
|
1819
2231
|
* @summary Update organization quota
|
|
1820
2232
|
* @param {string} organizationId Organization ID
|
|
1821
|
-
* @param {UpdateOrganizationQuota} updateOrganizationQuota
|
|
2233
|
+
* @param {UpdateOrganizationQuota} updateOrganizationQuota
|
|
1822
2234
|
* @param {*} [options] Override http request option.
|
|
1823
2235
|
* @throws {RequiredError}
|
|
1824
|
-
* @memberof OrganizationsApi
|
|
1825
2236
|
*/
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
2237
|
+
updateOrganizationQuota(
|
|
2238
|
+
organizationId: string,
|
|
2239
|
+
updateOrganizationQuota: UpdateOrganizationQuota,
|
|
2240
|
+
options?: RawAxiosRequestConfig,
|
|
2241
|
+
): AxiosPromise<Organization> {
|
|
2242
|
+
return localVarFp
|
|
2243
|
+
.updateOrganizationQuota(organizationId, updateOrganizationQuota, options)
|
|
2244
|
+
.then((request) => request(axios, basePath))
|
|
2245
|
+
},
|
|
1830
2246
|
/**
|
|
1831
|
-
*
|
|
2247
|
+
*
|
|
1832
2248
|
* @summary Update organization role
|
|
1833
2249
|
* @param {string} organizationId Organization ID
|
|
1834
2250
|
* @param {string} roleId Role ID
|
|
1835
|
-
* @param {UpdateOrganizationRole} updateOrganizationRole
|
|
2251
|
+
* @param {UpdateOrganizationRole} updateOrganizationRole
|
|
1836
2252
|
* @param {*} [options] Override http request option.
|
|
1837
2253
|
* @throws {RequiredError}
|
|
1838
|
-
* @memberof OrganizationsApi
|
|
1839
2254
|
*/
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
2255
|
+
updateOrganizationRole(
|
|
2256
|
+
organizationId: string,
|
|
2257
|
+
roleId: string,
|
|
2258
|
+
updateOrganizationRole: UpdateOrganizationRole,
|
|
2259
|
+
options?: RawAxiosRequestConfig,
|
|
2260
|
+
): AxiosPromise<OrganizationRole> {
|
|
2261
|
+
return localVarFp
|
|
2262
|
+
.updateOrganizationRole(organizationId, roleId, updateOrganizationRole, options)
|
|
2263
|
+
.then((request) => request(axios, basePath))
|
|
2264
|
+
},
|
|
1844
2265
|
/**
|
|
1845
|
-
*
|
|
2266
|
+
*
|
|
1846
2267
|
* @summary Update role for organization member
|
|
1847
2268
|
* @param {string} organizationId Organization ID
|
|
1848
2269
|
* @param {string} userId User ID
|
|
1849
|
-
* @param {UpdateOrganizationMemberRole} updateOrganizationMemberRole
|
|
2270
|
+
* @param {UpdateOrganizationMemberRole} updateOrganizationMemberRole
|
|
1850
2271
|
* @param {*} [options] Override http request option.
|
|
1851
2272
|
* @throws {RequiredError}
|
|
1852
|
-
* @memberof OrganizationsApi
|
|
1853
2273
|
*/
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
2274
|
+
updateRoleForOrganizationMember(
|
|
2275
|
+
organizationId: string,
|
|
2276
|
+
userId: string,
|
|
2277
|
+
updateOrganizationMemberRole: UpdateOrganizationMemberRole,
|
|
2278
|
+
options?: RawAxiosRequestConfig,
|
|
2279
|
+
): AxiosPromise<OrganizationUser> {
|
|
2280
|
+
return localVarFp
|
|
2281
|
+
.updateRoleForOrganizationMember(organizationId, userId, updateOrganizationMemberRole, options)
|
|
2282
|
+
.then((request) => request(axios, basePath))
|
|
2283
|
+
},
|
|
2284
|
+
}
|
|
1857
2285
|
}
|
|
1858
2286
|
|
|
2287
|
+
/**
|
|
2288
|
+
* OrganizationsApi - object-oriented interface
|
|
2289
|
+
* @export
|
|
2290
|
+
* @class OrganizationsApi
|
|
2291
|
+
* @extends {BaseAPI}
|
|
2292
|
+
*/
|
|
2293
|
+
export class OrganizationsApi extends BaseAPI {
|
|
2294
|
+
/**
|
|
2295
|
+
*
|
|
2296
|
+
* @summary Accept organization invitation
|
|
2297
|
+
* @param {string} invitationId Invitation ID
|
|
2298
|
+
* @param {*} [options] Override http request option.
|
|
2299
|
+
* @throws {RequiredError}
|
|
2300
|
+
* @memberof OrganizationsApi
|
|
2301
|
+
*/
|
|
2302
|
+
public acceptOrganizationInvitation(invitationId: string, options?: RawAxiosRequestConfig) {
|
|
2303
|
+
return OrganizationsApiFp(this.configuration)
|
|
2304
|
+
.acceptOrganizationInvitation(invitationId, options)
|
|
2305
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
/**
|
|
2309
|
+
*
|
|
2310
|
+
* @summary Cancel organization invitation
|
|
2311
|
+
* @param {string} organizationId Organization ID
|
|
2312
|
+
* @param {string} invitationId Invitation ID
|
|
2313
|
+
* @param {*} [options] Override http request option.
|
|
2314
|
+
* @throws {RequiredError}
|
|
2315
|
+
* @memberof OrganizationsApi
|
|
2316
|
+
*/
|
|
2317
|
+
public cancelOrganizationInvitation(organizationId: string, invitationId: string, options?: RawAxiosRequestConfig) {
|
|
2318
|
+
return OrganizationsApiFp(this.configuration)
|
|
2319
|
+
.cancelOrganizationInvitation(organizationId, invitationId, options)
|
|
2320
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2321
|
+
}
|
|
2322
|
+
|
|
2323
|
+
/**
|
|
2324
|
+
*
|
|
2325
|
+
* @summary Create organization
|
|
2326
|
+
* @param {CreateOrganization} createOrganization
|
|
2327
|
+
* @param {*} [options] Override http request option.
|
|
2328
|
+
* @throws {RequiredError}
|
|
2329
|
+
* @memberof OrganizationsApi
|
|
2330
|
+
*/
|
|
2331
|
+
public createOrganization(createOrganization: CreateOrganization, options?: RawAxiosRequestConfig) {
|
|
2332
|
+
return OrganizationsApiFp(this.configuration)
|
|
2333
|
+
.createOrganization(createOrganization, options)
|
|
2334
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
/**
|
|
2338
|
+
*
|
|
2339
|
+
* @summary Create organization invitation
|
|
2340
|
+
* @param {string} organizationId Organization ID
|
|
2341
|
+
* @param {CreateOrganizationInvitation} createOrganizationInvitation
|
|
2342
|
+
* @param {*} [options] Override http request option.
|
|
2343
|
+
* @throws {RequiredError}
|
|
2344
|
+
* @memberof OrganizationsApi
|
|
2345
|
+
*/
|
|
2346
|
+
public createOrganizationInvitation(
|
|
2347
|
+
organizationId: string,
|
|
2348
|
+
createOrganizationInvitation: CreateOrganizationInvitation,
|
|
2349
|
+
options?: RawAxiosRequestConfig,
|
|
2350
|
+
) {
|
|
2351
|
+
return OrganizationsApiFp(this.configuration)
|
|
2352
|
+
.createOrganizationInvitation(organizationId, createOrganizationInvitation, options)
|
|
2353
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2356
|
+
/**
|
|
2357
|
+
*
|
|
2358
|
+
* @summary Create organization role
|
|
2359
|
+
* @param {string} organizationId Organization ID
|
|
2360
|
+
* @param {CreateOrganizationRole} createOrganizationRole
|
|
2361
|
+
* @param {*} [options] Override http request option.
|
|
2362
|
+
* @throws {RequiredError}
|
|
2363
|
+
* @memberof OrganizationsApi
|
|
2364
|
+
*/
|
|
2365
|
+
public createOrganizationRole(
|
|
2366
|
+
organizationId: string,
|
|
2367
|
+
createOrganizationRole: CreateOrganizationRole,
|
|
2368
|
+
options?: RawAxiosRequestConfig,
|
|
2369
|
+
) {
|
|
2370
|
+
return OrganizationsApiFp(this.configuration)
|
|
2371
|
+
.createOrganizationRole(organizationId, createOrganizationRole, options)
|
|
2372
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2373
|
+
}
|
|
2374
|
+
|
|
2375
|
+
/**
|
|
2376
|
+
*
|
|
2377
|
+
* @summary Decline organization invitation
|
|
2378
|
+
* @param {string} invitationId Invitation ID
|
|
2379
|
+
* @param {*} [options] Override http request option.
|
|
2380
|
+
* @throws {RequiredError}
|
|
2381
|
+
* @memberof OrganizationsApi
|
|
2382
|
+
*/
|
|
2383
|
+
public declineOrganizationInvitation(invitationId: string, options?: RawAxiosRequestConfig) {
|
|
2384
|
+
return OrganizationsApiFp(this.configuration)
|
|
2385
|
+
.declineOrganizationInvitation(invitationId, options)
|
|
2386
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
/**
|
|
2390
|
+
*
|
|
2391
|
+
* @summary Delete organization
|
|
2392
|
+
* @param {string} organizationId Organization ID
|
|
2393
|
+
* @param {*} [options] Override http request option.
|
|
2394
|
+
* @throws {RequiredError}
|
|
2395
|
+
* @memberof OrganizationsApi
|
|
2396
|
+
*/
|
|
2397
|
+
public deleteOrganization(organizationId: string, options?: RawAxiosRequestConfig) {
|
|
2398
|
+
return OrganizationsApiFp(this.configuration)
|
|
2399
|
+
.deleteOrganization(organizationId, options)
|
|
2400
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
/**
|
|
2404
|
+
*
|
|
2405
|
+
* @summary Delete organization member
|
|
2406
|
+
* @param {string} organizationId Organization ID
|
|
2407
|
+
* @param {string} userId User ID
|
|
2408
|
+
* @param {*} [options] Override http request option.
|
|
2409
|
+
* @throws {RequiredError}
|
|
2410
|
+
* @memberof OrganizationsApi
|
|
2411
|
+
*/
|
|
2412
|
+
public deleteOrganizationMember(organizationId: string, userId: string, options?: RawAxiosRequestConfig) {
|
|
2413
|
+
return OrganizationsApiFp(this.configuration)
|
|
2414
|
+
.deleteOrganizationMember(organizationId, userId, options)
|
|
2415
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
/**
|
|
2419
|
+
*
|
|
2420
|
+
* @summary Delete organization role
|
|
2421
|
+
* @param {string} organizationId Organization ID
|
|
2422
|
+
* @param {string} roleId Role ID
|
|
2423
|
+
* @param {*} [options] Override http request option.
|
|
2424
|
+
* @throws {RequiredError}
|
|
2425
|
+
* @memberof OrganizationsApi
|
|
2426
|
+
*/
|
|
2427
|
+
public deleteOrganizationRole(organizationId: string, roleId: string, options?: RawAxiosRequestConfig) {
|
|
2428
|
+
return OrganizationsApiFp(this.configuration)
|
|
2429
|
+
.deleteOrganizationRole(organizationId, roleId, options)
|
|
2430
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2431
|
+
}
|
|
2432
|
+
|
|
2433
|
+
/**
|
|
2434
|
+
*
|
|
2435
|
+
* @summary Get organization by ID
|
|
2436
|
+
* @param {string} organizationId Organization ID
|
|
2437
|
+
* @param {*} [options] Override http request option.
|
|
2438
|
+
* @throws {RequiredError}
|
|
2439
|
+
* @memberof OrganizationsApi
|
|
2440
|
+
*/
|
|
2441
|
+
public getOrganization(organizationId: string, options?: RawAxiosRequestConfig) {
|
|
2442
|
+
return OrganizationsApiFp(this.configuration)
|
|
2443
|
+
.getOrganization(organizationId, options)
|
|
2444
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2445
|
+
}
|
|
2446
|
+
|
|
2447
|
+
/**
|
|
2448
|
+
*
|
|
2449
|
+
* @summary Get count of organization invitations for authenticated user
|
|
2450
|
+
* @param {*} [options] Override http request option.
|
|
2451
|
+
* @throws {RequiredError}
|
|
2452
|
+
* @memberof OrganizationsApi
|
|
2453
|
+
*/
|
|
2454
|
+
public getOrganizationInvitationsCountForAuthenticatedUser(options?: RawAxiosRequestConfig) {
|
|
2455
|
+
return OrganizationsApiFp(this.configuration)
|
|
2456
|
+
.getOrganizationInvitationsCountForAuthenticatedUser(options)
|
|
2457
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2460
|
+
/**
|
|
2461
|
+
*
|
|
2462
|
+
* @summary Get organization current usage overview
|
|
2463
|
+
* @param {string} organizationId Organization ID
|
|
2464
|
+
* @param {*} [options] Override http request option.
|
|
2465
|
+
* @throws {RequiredError}
|
|
2466
|
+
* @memberof OrganizationsApi
|
|
2467
|
+
*/
|
|
2468
|
+
public getOrganizationUsageOverview(organizationId: string, options?: RawAxiosRequestConfig) {
|
|
2469
|
+
return OrganizationsApiFp(this.configuration)
|
|
2470
|
+
.getOrganizationUsageOverview(organizationId, options)
|
|
2471
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
/**
|
|
2475
|
+
*
|
|
2476
|
+
* @summary Leave organization
|
|
2477
|
+
* @param {string} organizationId Organization ID
|
|
2478
|
+
* @param {*} [options] Override http request option.
|
|
2479
|
+
* @throws {RequiredError}
|
|
2480
|
+
* @memberof OrganizationsApi
|
|
2481
|
+
*/
|
|
2482
|
+
public leaveOrganization(organizationId: string, options?: RawAxiosRequestConfig) {
|
|
2483
|
+
return OrganizationsApiFp(this.configuration)
|
|
2484
|
+
.leaveOrganization(organizationId, options)
|
|
2485
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
/**
|
|
2489
|
+
*
|
|
2490
|
+
* @summary List pending organization invitations
|
|
2491
|
+
* @param {string} organizationId Organization ID
|
|
2492
|
+
* @param {*} [options] Override http request option.
|
|
2493
|
+
* @throws {RequiredError}
|
|
2494
|
+
* @memberof OrganizationsApi
|
|
2495
|
+
*/
|
|
2496
|
+
public listOrganizationInvitations(organizationId: string, options?: RawAxiosRequestConfig) {
|
|
2497
|
+
return OrganizationsApiFp(this.configuration)
|
|
2498
|
+
.listOrganizationInvitations(organizationId, options)
|
|
2499
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2502
|
+
/**
|
|
2503
|
+
*
|
|
2504
|
+
* @summary List organization invitations for authenticated user
|
|
2505
|
+
* @param {*} [options] Override http request option.
|
|
2506
|
+
* @throws {RequiredError}
|
|
2507
|
+
* @memberof OrganizationsApi
|
|
2508
|
+
*/
|
|
2509
|
+
public listOrganizationInvitationsForAuthenticatedUser(options?: RawAxiosRequestConfig) {
|
|
2510
|
+
return OrganizationsApiFp(this.configuration)
|
|
2511
|
+
.listOrganizationInvitationsForAuthenticatedUser(options)
|
|
2512
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2515
|
+
/**
|
|
2516
|
+
*
|
|
2517
|
+
* @summary List organization members
|
|
2518
|
+
* @param {string} organizationId Organization ID
|
|
2519
|
+
* @param {*} [options] Override http request option.
|
|
2520
|
+
* @throws {RequiredError}
|
|
2521
|
+
* @memberof OrganizationsApi
|
|
2522
|
+
*/
|
|
2523
|
+
public listOrganizationMembers(organizationId: string, options?: RawAxiosRequestConfig) {
|
|
2524
|
+
return OrganizationsApiFp(this.configuration)
|
|
2525
|
+
.listOrganizationMembers(organizationId, options)
|
|
2526
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2527
|
+
}
|
|
2528
|
+
|
|
2529
|
+
/**
|
|
2530
|
+
*
|
|
2531
|
+
* @summary List organization roles
|
|
2532
|
+
* @param {string} organizationId Organization ID
|
|
2533
|
+
* @param {*} [options] Override http request option.
|
|
2534
|
+
* @throws {RequiredError}
|
|
2535
|
+
* @memberof OrganizationsApi
|
|
2536
|
+
*/
|
|
2537
|
+
public listOrganizationRoles(organizationId: string, options?: RawAxiosRequestConfig) {
|
|
2538
|
+
return OrganizationsApiFp(this.configuration)
|
|
2539
|
+
.listOrganizationRoles(organizationId, options)
|
|
2540
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2541
|
+
}
|
|
2542
|
+
|
|
2543
|
+
/**
|
|
2544
|
+
*
|
|
2545
|
+
* @summary List organizations
|
|
2546
|
+
* @param {*} [options] Override http request option.
|
|
2547
|
+
* @throws {RequiredError}
|
|
2548
|
+
* @memberof OrganizationsApi
|
|
2549
|
+
*/
|
|
2550
|
+
public listOrganizations(options?: RawAxiosRequestConfig) {
|
|
2551
|
+
return OrganizationsApiFp(this.configuration)
|
|
2552
|
+
.listOrganizations(options)
|
|
2553
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
/**
|
|
2557
|
+
*
|
|
2558
|
+
* @summary Suspend organization
|
|
2559
|
+
* @param {string} organizationId Organization ID
|
|
2560
|
+
* @param {OrganizationSuspension} [organizationSuspension]
|
|
2561
|
+
* @param {*} [options] Override http request option.
|
|
2562
|
+
* @throws {RequiredError}
|
|
2563
|
+
* @memberof OrganizationsApi
|
|
2564
|
+
*/
|
|
2565
|
+
public suspendOrganization(
|
|
2566
|
+
organizationId: string,
|
|
2567
|
+
organizationSuspension?: OrganizationSuspension,
|
|
2568
|
+
options?: RawAxiosRequestConfig,
|
|
2569
|
+
) {
|
|
2570
|
+
return OrganizationsApiFp(this.configuration)
|
|
2571
|
+
.suspendOrganization(organizationId, organizationSuspension, options)
|
|
2572
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
/**
|
|
2576
|
+
*
|
|
2577
|
+
* @summary Unsuspend organization
|
|
2578
|
+
* @param {string} organizationId Organization ID
|
|
2579
|
+
* @param {*} [options] Override http request option.
|
|
2580
|
+
* @throws {RequiredError}
|
|
2581
|
+
* @memberof OrganizationsApi
|
|
2582
|
+
*/
|
|
2583
|
+
public unsuspendOrganization(organizationId: string, options?: RawAxiosRequestConfig) {
|
|
2584
|
+
return OrganizationsApiFp(this.configuration)
|
|
2585
|
+
.unsuspendOrganization(organizationId, options)
|
|
2586
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
/**
|
|
2590
|
+
*
|
|
2591
|
+
* @summary Update assigned roles to organization member
|
|
2592
|
+
* @param {string} organizationId Organization ID
|
|
2593
|
+
* @param {string} userId User ID
|
|
2594
|
+
* @param {UpdateAssignedOrganizationRoles} updateAssignedOrganizationRoles
|
|
2595
|
+
* @param {*} [options] Override http request option.
|
|
2596
|
+
* @throws {RequiredError}
|
|
2597
|
+
* @memberof OrganizationsApi
|
|
2598
|
+
*/
|
|
2599
|
+
public updateAssignedOrganizationRoles(
|
|
2600
|
+
organizationId: string,
|
|
2601
|
+
userId: string,
|
|
2602
|
+
updateAssignedOrganizationRoles: UpdateAssignedOrganizationRoles,
|
|
2603
|
+
options?: RawAxiosRequestConfig,
|
|
2604
|
+
) {
|
|
2605
|
+
return OrganizationsApiFp(this.configuration)
|
|
2606
|
+
.updateAssignedOrganizationRoles(organizationId, userId, updateAssignedOrganizationRoles, options)
|
|
2607
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2610
|
+
/**
|
|
2611
|
+
*
|
|
2612
|
+
* @summary Update organization invitation
|
|
2613
|
+
* @param {string} organizationId Organization ID
|
|
2614
|
+
* @param {string} invitationId Invitation ID
|
|
2615
|
+
* @param {UpdateOrganizationInvitation} updateOrganizationInvitation
|
|
2616
|
+
* @param {*} [options] Override http request option.
|
|
2617
|
+
* @throws {RequiredError}
|
|
2618
|
+
* @memberof OrganizationsApi
|
|
2619
|
+
*/
|
|
2620
|
+
public updateOrganizationInvitation(
|
|
2621
|
+
organizationId: string,
|
|
2622
|
+
invitationId: string,
|
|
2623
|
+
updateOrganizationInvitation: UpdateOrganizationInvitation,
|
|
2624
|
+
options?: RawAxiosRequestConfig,
|
|
2625
|
+
) {
|
|
2626
|
+
return OrganizationsApiFp(this.configuration)
|
|
2627
|
+
.updateOrganizationInvitation(organizationId, invitationId, updateOrganizationInvitation, options)
|
|
2628
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
/**
|
|
2632
|
+
*
|
|
2633
|
+
* @summary Update organization quota
|
|
2634
|
+
* @param {string} organizationId Organization ID
|
|
2635
|
+
* @param {UpdateOrganizationQuota} updateOrganizationQuota
|
|
2636
|
+
* @param {*} [options] Override http request option.
|
|
2637
|
+
* @throws {RequiredError}
|
|
2638
|
+
* @memberof OrganizationsApi
|
|
2639
|
+
*/
|
|
2640
|
+
public updateOrganizationQuota(
|
|
2641
|
+
organizationId: string,
|
|
2642
|
+
updateOrganizationQuota: UpdateOrganizationQuota,
|
|
2643
|
+
options?: RawAxiosRequestConfig,
|
|
2644
|
+
) {
|
|
2645
|
+
return OrganizationsApiFp(this.configuration)
|
|
2646
|
+
.updateOrganizationQuota(organizationId, updateOrganizationQuota, options)
|
|
2647
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2650
|
+
/**
|
|
2651
|
+
*
|
|
2652
|
+
* @summary Update organization role
|
|
2653
|
+
* @param {string} organizationId Organization ID
|
|
2654
|
+
* @param {string} roleId Role ID
|
|
2655
|
+
* @param {UpdateOrganizationRole} updateOrganizationRole
|
|
2656
|
+
* @param {*} [options] Override http request option.
|
|
2657
|
+
* @throws {RequiredError}
|
|
2658
|
+
* @memberof OrganizationsApi
|
|
2659
|
+
*/
|
|
2660
|
+
public updateOrganizationRole(
|
|
2661
|
+
organizationId: string,
|
|
2662
|
+
roleId: string,
|
|
2663
|
+
updateOrganizationRole: UpdateOrganizationRole,
|
|
2664
|
+
options?: RawAxiosRequestConfig,
|
|
2665
|
+
) {
|
|
2666
|
+
return OrganizationsApiFp(this.configuration)
|
|
2667
|
+
.updateOrganizationRole(organizationId, roleId, updateOrganizationRole, options)
|
|
2668
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2669
|
+
}
|
|
2670
|
+
|
|
2671
|
+
/**
|
|
2672
|
+
*
|
|
2673
|
+
* @summary Update role for organization member
|
|
2674
|
+
* @param {string} organizationId Organization ID
|
|
2675
|
+
* @param {string} userId User ID
|
|
2676
|
+
* @param {UpdateOrganizationMemberRole} updateOrganizationMemberRole
|
|
2677
|
+
* @param {*} [options] Override http request option.
|
|
2678
|
+
* @throws {RequiredError}
|
|
2679
|
+
* @memberof OrganizationsApi
|
|
2680
|
+
*/
|
|
2681
|
+
public updateRoleForOrganizationMember(
|
|
2682
|
+
organizationId: string,
|
|
2683
|
+
userId: string,
|
|
2684
|
+
updateOrganizationMemberRole: UpdateOrganizationMemberRole,
|
|
2685
|
+
options?: RawAxiosRequestConfig,
|
|
2686
|
+
) {
|
|
2687
|
+
return OrganizationsApiFp(this.configuration)
|
|
2688
|
+
.updateRoleForOrganizationMember(organizationId, userId, updateOrganizationMemberRole, options)
|
|
2689
|
+
.then((request) => request(this.axios, this.basePath))
|
|
2690
|
+
}
|
|
2691
|
+
}
|