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